Library to easily communicate with XBee modules.
Table of Contents
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.
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.
Here are some ready to use examples on how to use Power Management:
For ZigBee modules:¶
ZigBee Power Management using Cyclic Sleep example for mbed XBeeLib By Digi
ZigBee Power Management using Pin Sleep example for mbed XBeeLib By Digi
For 802.15.4 modules:¶
802.15.4 Power Management using Cyclic Sleep example for mbed XBeeLib By Digi
802.15.4 Power Management using Pin Sleep example for mbed XBeeLib By Digi
For DigiMesh modules:¶
DigiMesh Power Management using Asynchronous Cyclic Sleep example for mbed XBeeLib By Digi