User Manual

Table Of Contents
XBee®/XBeePRO®RFModules‐802.15.4‐v1.xEx[2011.06.1]
©2011DigiInternatonal,Inc. 30
Special
*Firmwareversioninwhichthecommand wasfirstintroduced(firmwareversionsarenumberedinhexadecimalnotation.)
Networking & Security
Tabl e301. XBeePROCommands‐Special
AT
Command
Command
Category
Name and Description Parameter Range Default
WR Special
Write. Write parameter values to non-volatile memory so that parameter modifications
persist through subsequent power-up or reset.
Note: Once WR is issued, no additional characters should be sent to the module until
after the response "OK\r" is received.
--
RE Special Restore Defaults. Restore module parameters to factory defaults. - -
FR ( v1.x80*) Special
Software Reset. Responds immediately with an OK then performs a hard reset
~100ms later.
--
Tabl e302. XBee®/XBeePRO®Com mands‐Networking&Security(Subcategoriesdesignatedwithin{brackets})
AT
Command
Command
Category
Name and Description Parameter Range Default
CH
Networking
{Addressing}
Channel. Set/Read the channel number used for transmitting and receiving data
between RF modules (uses 802.15.4 protocol channel numbers).
0x0B - 0x1A (XBee)
0x0C - 0x17 (XBee-PRO)
0x0C (12d)
ID
Networking
{Addressing}
PAN ID. Set/Read the PAN (Personal Area Network) ID.
Use 0xFFFF to broadcast messages to all PANs.
0 - 0xFFFF
0x3332
(13106d)
DH
Networking
{Addressing}
Destination Address High. Set/Read the upper 32 bits of the 64-bit destination
address. When combined with DL, it defines the destination address used for
transmission. To transmit using a 16-bit address, set DH parameter to zero and DL less
than 0xFFFF. 0x000000000000FFFF is the broadcast address for the PAN.
0 - 0xFFFFFFFF 0
DL
Networking
{Addressing}
Destination Address Low. Set/Read the lower 32 bits of the 64-bit destination
address. When combined with DH, DL defines the destination address used for
transmission. To transmit using a 16-bit address, set DH parameter to zero and DL less
than 0xFFFF. 0x000000000000FFFF is the broadcast address for the PAN.
0 - 0xFFFFFFFF 0
MY
Networking
{Addressing}
16-bit Source Address. Set/Read the RF module 16-bit source address. Set MY =
0xFFFF to disable reception of packets with 16-bit addresses. 64-bit source address
(serial number) and broadcast address (0x000000000000FFFF) is always enabled.
0 - 0xFFFF 0
SH
Networking
{Addressing}
Serial Number High. Read high 32 bits of the RF module's unique IEEE 64-bit
address. 64-bit source address is always enabled.
0 - 0xFFFFFFFF [read-only] Factory-set
SL
Networking
{Addressing}
Serial Number Low. Read low 32 bits of the RF module's unique IEEE 64-bit address.
64-bit source address is always enabled.
0 - 0xFFFFFFFF [read-only] Factory-set
RR ( v1.xA0*)
Networking
{Addressing}
XBee Retries. Set/Read the maximum number of retries the module will execute in
addition to the 3 retries provided by the 802.15.4 MAC. For each XBee retry, the
802.15.4 MAC can execute up to 3 retries.
0 - 6 0
RN
Networking
{Addressing}
Random Delay Slots. Set/Read the minimum value of the back-off exponent in the
CSMA-CA algorithm that is used for collision avoidance. If RN = 0, collision avoidance
is disabled during the first iteration of the algorithm (802.15.4 - macMinBE).
0 - 3 [exponent] 0
MM ( v1.x80*)
Networking
{Addressing}
MAC Mode. MAC Mode. Set/Read MAC Mode value. MAC Mode enables/disables the
use of a Digi header in the 802.15.4 RF packet. When Modes 1 or 3 are enabled
(MM=1,3), duplicate packet detection is enabled as well as certain AT commands.
Please see the detailed MM description on page 47 for additional information.
0 - 3
0 = Digi Mode
1 = 802.15.4 (no ACKs)
2 = 802.15.4 (with ACKs)
3 = Digi Mode (no ACKs)
0
NI ( v1.x80*)
Networking
{Identification}
Node Identifier. Stores a string identifier. The register only accepts printable ASCII
data. A string can not start with a space. Carriage return ends command. Command will
automatically end when maximum bytes for the string have been entered. This string is
returned as part of the ND (Node Discover) command. This identifier is also used with
the DN (Destination Node) command.
20-character ASCII string -
ND ( v1.x80*)
Networking
{Identification}
Node Discover. Discovers and reports all RF modules found. The following information
is reported for each module discovered (the example cites use of Transparent operation
(AT command format) - refer to the long ND command description regarding differences
between Transparent and API operation).
MY<CR>
SH<CR>
SL<CR>
DB<CR>
NI<CR><CR>
The amount of time the module allows for responses is determined by the NT
parameter. In Transparent operation, command completion is designated by a <CR>
(carriage return). ND also accepts a Node Identifier as a parameter. In this case, only a
module matching the supplied identifier will respond. If ND self-response is enabled
(NO=1) the module initiating the node discover will also output a response for itself.
optional 20-character NI value
NT ( v1.xA0*)
Networking
{Identification}
Node Discover Time. Set/Read the amount of time a node will wait for responses from
other nodes when using the ND (Node Discover) command.
0x01 - 0xFC [x 100 ms] 0x19