Digi XBee User Manual Page 9

  • Download
  • Add to my manuals
  • Print
  • Page
    / 10
  • Table of contents
  • BOOKMARKS
  • Rated. / 5. Based on customer reviews
Page view 8
XBee®/XBeePRO®ZBRFModules
©2010DigiInternational,Inc. 136
Sleep Commands
Execution Commands
Where most AT commands set or query register values, execution commands cause an action to
be executed on the module. Execution commands are executed immediately and do not require
changes to be applied.
SleepCommands
AT
Command
Name and Description
Node
Type
1
Parameter Range Default
SM
Sleep Mode Sets the sleep mode on the RF module. An XBee loaded with router
firmware can be configured as either a router (SM set to 0) or an end device (SM > 0).
Changing a device from a router to an end device (or vice versa) forces the device to
leave the network and attempt to join as the new device type when changes are applied.
RE
0-Sleep disabled (router)
1-Pin sleep enabled
4-Cyclic sleep enabled
5 - Cyclic sleep, pin wake
0 - Router
4 - End
Device
SN
Number of Sleep Periods. Sets the number of sleep periods to not assert the On/Sleep
pin on wakeup if no RF data is waiting for the end device. This command allows a host
application to sleep for an extended time if no RF data is present
CRE 1 - 0xFFFF 1
SP
Sleep Period. This value determines how long the end device will sleep at a time, up to
28 seconds. (The sleep time can effectively be extended past 28 seconds using the SN
command.) On the parent, this value determines how long the parent will buffer a
message for the sleeping end device. It should be set at least equal to the longest SP
time of any child end device.
CRE
0x20 - 0xAF0 x 10ms
(Quarter second
resolution)
0x20
ST
Time Before Sleep Sets the time before sleep timer on an end device.The timer is reset
each time serial or RF data is received. Once the timer expires, an end device may enter
low power operation. Applicable for cyclic sleep end devices only.
E 1 - 0xFFFE (x 1ms)
0x1388 (5
seconds)
SO
Command
Sleep Options. Configure options for sleep. Unused option bits should be set to 0.
Sleep options include:
0x02 - Always wake for ST time
0x04 - Sleep entire SN * SP time
Sleep options should not be used for most applications. See chapter 6 for more
information.
E0 - 0xFF 0
WH
Wake Host. Set/Read the wake host timer value. If the wake host timer is set to a non-
zero value, this timer specifies a time (in millisecond units) that the device should allow
after waking from sleep before sending data out the UART or transmitting an IO sample.
If serial characters are received, the WH timer is stopped immediately.
E 0 - 0xFFFF (x 1ms)
SI
Sleep Immediately. See Execution Commands table below..
PO
Polling Rate. Sets the polling rate for the end device. E 0 - 0x1770 (10msec)
0x00 (100
msec)
ExecutionCommands
AT
Command
Name and Description
Node Type
1
Parameter Range Default
AC
Apply Changes. Applies changes to all command registers causing queued command
register values to be applied. For example, changing the serial interface rate with the BD
command will not change the UART interface rate until changes are applied with the AC
command. The CN command and 0x08 API command frame also apply changes.
CRE -
WR
Write. Write parameter values to non-volatile memory so that parameter modifications
persist through subsequent resets.
Note: Once WR is issued, no additional characters should be sent to the module until
after the "OK\r" response is received. The WR command should be used sparingly. The
EM250 supports a limited number of write cycles.“
CRE -- --
RE Restore Defaults. Restore module parameters to factory defaults. CRE -- --
FR
Software Reset. Reset module. Responds immediately with an OK status, and then
performs a software reset about 2 seconds later.
CRE -- --
NR
Network Reset. Reset network layer parameters on one or more modules within a PAN.
Responds immediately with an “OK” then causes a network restart. All network
configuration and routing information is consequently lost.
If NR = 0: Resets network layer parameters on the node issuing the command.
If NR = 1: Sends broadcast transmission to reset network layer parameters on all nodes
in the PAN.
CRE
0 - 1 --
SI
Sleep Immediately. Cause a cyclic sleep module to sleep immediately rather than wait
for the ST timer to expire.
E- -
CB
Commissioning Pushbutton. This command can be used to simulate commissioning
button presses in software. The parameter value should be set to the number of button
presses to be simulated. For example, sending the ATCB1 command will execute the
action associated with 1 commissioning button press.
CRE
Page view 8
1 2 3 4 5 6 7 8 9 10

Comments to this Manuals

No comments