SP (Cyclic Sleep Period)
This command applies to the XBee 3 802.15.4 RF Module.
Sets and reads the duration of time that a remote device sleeps. After the cyclic sleep period is over, the device wakes and checks for data. If data is not present, the device goes back to sleep. The maximum sleep period is 4 hours (SP = 0x15F900).
The SP parameter is only valid if you configure the end device to operate in Cyclic Sleep (SM = 4-5). Coordinator and End Device SP values should always be equal.
To send direct messages on a coordinator, set SP = 0. If the device is a coordinator (CE (Device Role) = 1) and SP is not 0, the device sends all transmissions indirectly, meaning end devices have to poll the coordinator to receive data—FP (Force Poll) or using cyclic sleep.
End Device: SP determines the sleep period for cyclic sleeping remotes. The maximum sleep period is 4 hours (0x15F900).
Coordinator: If non-zero, SP determines the time to hold an indirect message before discarding it. A Coordinator discards indirect messages after a period of (2.5 * SP, or 65 seconds, whichever is smaller).
Parameter range
0x0 - 0x15F900 (x 10 ms) (4 hours)
Default
0x0