6.3 Using the Sleep Mode
The RCM4510W RabbitCore module has two components that are involved when the
sleep mode is invoked — the XBee RF module and the Rabbit 4000 microprocessor.
End devices, unlike coordinators and routers, can enter a low-power sleep mode. This
sleep mode is controlled by the XBee RF module, and fully powers down the Rabbit 4000
microprocessor for significant savings in power use.
The sleep mode can only be initiated while the RCM4510W is in the Run Mode (see
Section 4.3.1 for more information on the Program Mode and the Run Mode).
Once the XBee RF module on the RCM4510W is operating in the sleep mode, it will peri-
odically wake up and poll its parent router or coordinator to determine whether there is an
incoming message. If one is found, the message will be received and the Rabbit 4000
microprocessor will be restarted. Otherwise the XBee RF module will return to sleep.
Depending on how the sleep mode is configured, the XBee RF module may also restart the
Rabbit 4000 microprocessor after a timeout has passed even if no message is received.
The sleep mode is controlled by the XBee RF module with a set of user-configurable
parameters. Although a parameter can be set with an AT command, the recommended pro-
cedure is to only initiate the sleep mode using either the zb_Rabbit_poweroff() or
the xb_sleep() function call.
The most important parameters are ST, SP, and SN. Together they control the duration of
sleep and wake times.
? ST is measured in milliseconds, and controls the amount of time the XBee RF module,
and consequently the Rabbit microprocessor, will stay awake waiting for RF or serial
data before going to sleep. If any data are received, the ST counter will be reset. The
Rabbit 4000 microprocessor needs approximately two seconds to boot and reinitialize
the XBee RF module, so the value of ST must be at least 2000.
? SP is measured in 0.01 second intervals and controls the length of sleep for the XBee
RF module. The XBee RF module will operate in a low-power mode for the time spec-
ified in SP, and then wake up briefly to poll its parent for a message. Depending on the
value of SN, the XBee RF module may then either return to sleep or wake up the Rabbit
4000 microprocessor. There are several important considerations for SP.
- The ZigBee parent (coordinator or router) can buffer a message for only 30 seconds,so SP must be
set to no more than 28 seconds.
- While SP is measured in 0.01 second intervals, it only has a 0.25 second resolution, and any value
sent to the XBee RF module is rounded automatically.
- The overhead of polling for a message was tested internally and was found to be approximately 20
ms. Thus a hypothetical sleep with SN = 100 and SP = 100 will not wake the Rabbit microproces-
sor until 102 seconds have elapsed (rather than the expected 100 seconds). The polling time may be
sensitive to network conditions and firmware version, so you should perform your own testing if
timing is critical.
? SN determines how many multiples of SP the radio will sleep before waking up if no
message was otherwise received.
User ’s Manual
65
相关PDF资料
101-8430-09-203 LED BASE SUBMINI PANEL INDICATOR
103-0537-403 CAP PMI OILTIGHT 1" CLEAR
103-1234-403 CAP LG PANEL IND BLUE OIL TIGHT
103-1336-403 CAP PMI TORPEDO 1" LIGHT YELLOW
103-3101-05-103 LED BASE T-3 1/4 PANEL OIL TIGHT
1032DX5 INDICATOR NEON GREEN PANEL MNT
1033QD5 NEON IND GRN LITE PANEL MNT QC
1034 LAMP INCAND S-8 DBL INDEX VOLT
相关代理商/技术参数
101-1294 功能描述:处理器配件 12VDC POWER SUPPLY REPLACES 101-0686 RoHS:否 制造商:Olimex Ltd. 产品:Cable 用于:
101-1295 功能描述:处理器配件 RCM5600W Antenna Kit RoHS:否 制造商:Olimex Ltd. 产品:Cable 用于:
10-112989-1 制造商: 功能描述: 制造商:undefined 功能描述:
10112A WAF 制造商:Intersil Corporation 功能描述:
10112-A-0440-2 制造商:Amatom Electronic Hardware 功能描述:
10112-A-0632-2 制造商:Amatom Electronic Hardware 功能描述:
10112-B-0632-6A 制造商:Amatom Electronic Hardware 功能描述:
10-112-BLANK 制造商:Calrad Electronics 功能描述: