Xbee S2 Protocol Zigbee / Programming language C

,

I’m using Pic18F4520 to work with the coordinator, and an arduino to process the sensor data and send it to the end device.
The arduino is processing data from the flow path and this data must be sent through the end device to process pic.
I need the end device format because the system will stay idle for most of the day. When system is down I will use sleep mode