Library to easily communicate with XBee modules.
Dependencies: DigiLogger
Dependents: WaterLogger XbeeGateway XBee_Cooker ProjetReceiver ... more
Radio Power Management
Digi XBee modules support different power save modes. These can be summarized as:
- Cyclic sleep: allows the module to sleep for a specified time and wake up for a short time to poll its parent for any buffered data messages before returning to sleep again.
- Pin sleep: allows the module to sleep and wake up according to the state of the hardware SLEEP_REQ pin.
The purpose of this chapter is to introduce XBee radio sleep modes through examples. Below you will find an example for each sleep mode and protocol. The samples are not closed, they are just usage examples that the user will need to extend or adapt to a particular use case; however they are fully functional and also teach how to configure the network coordinator and routers so that packets are not lost during the sleep periods.
Warning
The examples assume that the mbed micro-controller is not doing any power management, so they only focus in controlling the XBee module's power state. If the user extends the examples to do power management in the mbed micro-controller as well, special care must be taken to synchronize the cpu and radio sleep state so they can communicate properly.
Examples¶
Here are some ready to use examples on how to use Power Management:
For ZigBee modules:¶
Import programXBeeZB_power_mngmnt_cyclic_sleep
ZigBee Power Management using Cyclic Sleep example for mbed XBeeLib By Digi
Import programXBeeZB_power_mngmnt_pin_sleep
ZigBee Power Management using Pin Sleep example for mbed XBeeLib By Digi
For 802.15.4 modules:¶
Import programXBee802_power_mngmnt_cyclic_sleep
802.15.4 Power Management using Cyclic Sleep example for mbed XBeeLib By Digi
Import programXBee802_power_mngmnt_pin_sleep
802.15.4 Power Management using Pin Sleep example for mbed XBeeLib By Digi
For DigiMesh modules:¶
Import programXBeeDM_power_mngmnt_asyncr_cyclic_sleep
DigiMesh Power Management using Asynchronous Cyclic Sleep example for mbed XBeeLib By Digi
Import programXBeeDM_power_mngmnt_pin_sleep
DigiMesh Power Management using Pin Sleep example for mbed XBeeLib By Digi