Library to easily communicate with XBee modules.
Dependencies: DigiLogger
Dependents: WaterLogger XbeeGateway XBee_Cooker ProjetReceiver ... more
You are viewing an older revision! See the latest version
Radio Power Management
Digi XBee modules support different power save modes which can basically 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 SLEEP_REQ pin.
The purpose of this chapter is to introduce these 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 have to extend or adapt to a particular use case; but they are fully functional and also teach on how to configure the network coordinator and routers so packets are not lost during the sleep periods.
Warning
The examples assume that the mbed micro-controller is not doing power management so they only focus in controlling the XBee module power state. If the user extends the examples to do power management also in the mbed micro-controller, special care must be taken to synchronize cpu and radio sleep state so they can communicate properly.
Examples¶
Here you have 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