Cyclic Sleep; Example: Enable Sleep Mode; Step 1: Requirements - Digi XBee Zigbee Mesh Kit User Manual

Radio frequency (rf) module
Table of Contents

Advertisement

Low power and battery life

Cyclic sleep

Cyclic sleep allows the module to sleep for a specified time and wake for a short time to poll its parent
for any buffered data messages before returning to sleep again.
Enable cyclic sleep mode by setting the Sleep Mode (SM) parameter to 4 or 5. The cyclic sleep with pin
wake up (SM = 5) is a slight variation of the cyclic sleep mode (SM = 4) that allows the module to be
woken prematurely by de-asserting the Sleep_RQ pin.
The following parameters control cyclic sleep:
Parameter Name
SP
Cyclic
Sleep
Period
SN
Number of
Cyclic
Sleep
Periods
ST
Time
before
Sleep
SO
Sleep
Options
Press the Commissioning button to wake a sleeping device for 30 seconds.

Example: enable sleep mode

This example shows you how to extend the battery life of an XBee Zigbee module. The example uses
all three modules included in the kit to demonstrate how a Zigbee network handles messages when
some modules are sleeping.
Configure one of the modules as coordinator and the other two as end devices with different sleep
modes. An end device periodically sends the value of an ADC to the other end device. Since the
receiver is asleep, the coordinator stores all of its messages and forwards them to the destination
module once it wakes up.
Tip
If you get stuck, see Troubleshooting.
Step 1: Requirements
For this setup you need the following hardware and software.
Hardware
Three XBee Zigbee Mesh Kit modules
n
Three XBee Grove Development Boards
n
XBee® Zigbee® Mesh Kit
Description
Configures the sleep period of the module.
Configures the number of sleep periods multiplier.
Defines the period of inactivity of the module (during which no data is sent
or received) before returning to cyclic sleep. If the XBee is transmitting or
receiving a message, it will not go to sleep.
Defines options for sleep mode behavior:
0x02: Always wake for full ST time.
0x04: Enable extended sleep (sleep for full SP * SN time).
Cyclic sleep
86

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the XBee Zigbee Mesh Kit and is the answer not in the manual?

Subscribe to Our Youtube Channel

Table of Contents