Xbee/Xbee-Pro Digimesh 2.4: User Guide
Xbee/Xbee-Pro Digimesh 2.4: User Guide
Xbee/Xbee-Pro Digimesh 2.4: User Guide
4
Radio Frequency (RF) Module
User Guide
Revision history—90000991
V June 2017 Modified regulatory and certification information as required by RED (Radio
Equipment Directive).
W May 2018 Added note on range estimation. Changed IC to ISED.
Disclaimers
Information in this document is subject to change without notice and does not represent a
commitment on the part of Digi International. Digi provides this document “as is,” without warranty of
any kind, expressed or implied, including, but not limited to, the implied warranties of fitness or
merchantability for a particular purpose. Digi may make improvements and/or changes in this manual
or in the product(s) and/or the program(s) described in this manual at any time.
Warranty
To view product warranty information, go to the following website:
www.digi.com/howtobuy/terms
Send comments
Documentation feedback: To provide feedback on this document, send your comments to
[email protected].
Customer support
Digi Technical Support: Digi offers multiple technical support plans and service packages to help our
customers get the most out of their Digi product. For information on Technical Support plans and
pricing, contact us at +1 952.912.3444 or visit us at www.digi.com/support.
Technical specifications
Performance specifications 12
Power requirements 12
General specifications 13
Networking and security specifications 13
Regulatory conformity summary 13
Hardware
Mechanical drawings 16
Mounting considerations 17
Hardware diagram 18
Pin signals 19
Notes 20
Recommended pin connections 20
Design notes 20
Power supply design 20
Board layout 20
Antenna performance 21
Keepout area 21
DC characteristics 23
ADC operating characteristics 23
ADC timing and performance characteristics 24
Modes
Transparent and API operating modes 26
Transparent operating mode 26
API operating mode 26
Comparing Transparent and API modes 26
Additional modes 28
Command mode 28
Idle mode 28
Serial communication
Serial interface 35
UART data flow 35
Serial data 35
Serial buffers 36
Serial buffer issues 36
Serial flow control 37
CTS flow control 37
RTS flow control 37
Sleep modes
About sleep modes 60
Asynchronous modes 60
Synchronous modes 60
Normal mode 60
Asynchronous pin sleep mode 61
Asynchronous cyclic sleep mode 61
Asynchronous cyclic sleep with pin wake up mode 61
Synchronous sleep support mode 61
Synchronous cyclic sleep mode 62
The sleep timer 62
Sleep coordinator sleep modes in the DigiMesh network 62
Synchronization messages 63
Become a sleep coordinator 65
Preferred sleep coordinator option 65
Resolution criteria and selection option 65
Commissioning Pushbutton option 66
Auto-early wake-up sleep option 67
Select sleep parameters 67
Start a sleeping synchronous network 67
Add a new node to an existing network 68
Change sleep parameters 69
Rejoin nodes that lose sync 69
Diagnostics 70
Query sleep cycle 70
Sleep status 70
Missed sync messages command 71
Sleep status API messages 71
AT commands
Special commands 73
AC (Apply Changes) 73
FR (Software Reset) 73
RE command 73
WR command 73
MAC/PHY commands 74
CH (Operating Channel) 74
ID (Network ID) 74
MT (Broadcast Multi-Transmits) 74
Frame descriptions
AT Command frame - 0x08 116
AT Command - Queue Parameter Value frame - 0x09 118
Transmit Request frame - 0x10 120
Explicit Addressing Command frame - 0x11 123
Remote AT Command Request frame - 0x17 126
AT Command Response frame - 0x88 128
Modem Status frame - 0x8A 130
Transmit Status frame - 0x8B 131
Route Information Packet frame - 0x8D 133
Aggregate Addressing Update frame - 0x8E 136
Receive Packet frame - 0x90 138
Explicit Rx Indicator frame - 0x91 140
Data Sample Rx Indicator frame - 0x92 142
Node Identification Indicator frame - 0x95 144
Remote Command Response frame - 0x97 147
Regulatory information
United States (FCC) 150
OEM labeling requirements 150
FCC notices 150
RF exposure statement 151
FCC-approved antennas (2.4 GHz) 151
Australia (C-Tick) 157
Labeling requirements 157
Brazil ANATEL 157
Modelo XBee-Pro S3B: 158
ISED (Innovation, Science and Economic Development Canada) 158
Labeling requirements 158
Europe 158
Maximum power and frequency specifications 159
OEM labeling requirements 159
Restrictions 159
Declarations of conformity 159
Approved antennas 160
Japan 160
Labeling requirements 160
Worldwide acceptance 10
Antenna options 10
Part numbers 10
Worldwide acceptance
We manufacture and certify the XBee/XBee-PRO DigiMesh 2.4s to certain industry standards. These
standards enable you to understand what the devices can do and where you can use them.
The Federal Communications Commission (FCC) approves the devices for use in the United States. For
details, see United States (FCC). If a system contains XBee/XBee-PRO DigiMesh 2.4s, the system
inherits Digi’s certifications.
The devices are certified to operate in the industrial, scientific, and medical (ISM) 2.4 GHz frequency
band.
We manufacture the devices under International Organization for Standardization (ISO) 9001:2000
registered standards.
We optimize the devices for use in the United States and Canada. For a complete list of agency
approvals, see Regulatory information.
Antenna options
Digi devices come in a variety of antenna options. The options that allow you to connect an external
antenna are reverse polarity standard subminiature assembly (RPSMA) and U.FL. Typically, you make
connections with either a dipole antenna with a U.FL connection, or a U.FL to RPSMA antenna adapter
cable.
RPSMA is the more traditional antenna connector, however, if the device is going to be inside of an
enclosure, you would need to locate the device near the edge of the enclosure to allow the connector
to pass through an available bulkhead. The RPSMA connector uses the same body as a regular SMA
connector, but changes the gender of the center conductor. The female RPSMA actually has a male
center conductor. We equip the XBee devices with an RPSMA female plug, while the antenna is an
RPSMA male jack.
The U.FL connection allows for connectivity to an external antenna. U.FL is a small antenna connection
for use with a pigtail connector. A pigtail is a short (typically 4 - 6 in) cable that either terminates into
an external antenna port such as an RPSMA, N or TNC connection or an antenna. You would attach the
RPSMA connector to a bulkhead. These options allow you to mount the device away from the edge of
the enclosure in your product and centrally locate the radio. U.FL is fragile and is not designed for
multiple insertions without a specialized tool to separate the pigtail without damaging the connector;
for more information, see http://www.digikey.com/product-detail/en/U.FL-LP(V)-N-2/HR5017-
ND/513034.
The other available antenna options are printed circuit board (PCB) and wire antennas. We form the
PCB antenna directly on the device with conductive traces. A PCB antenna performs about the same
as a wire antenna.
An integrated wire antenna consists of a small wire (about 80 mm) sticking up perpendicular to the
PCB. It uses a 1/4-wave wire that we solder directly to the PCB of the OEM device.
All Digi devices with antenna connectors have less than 0.1 dB loss; we do not consider one to be
"better" than the other in terms of reliability or insertion loss. RF device specifications such as -110
dBm receiver sensitivity, +3 0 dBm TX power, and so forth, already include any insertion loss due to
the soldered RF connector.
Part numbers
The part numbers for these devices are available at the following link:
www.digi.com/products/xbee-rf-solutions/modules/xbee-digimesh-2-4#partnumbers
Performance specifications 12
Power requirements 12
General specifications 13
Networking and security specifications 13
Regulatory conformity summary 13
Performance specifications
The following table describes the performance specifications for the devices.
Note Range figure estimates are based on free-air terrain with limited sources of interference. Actual
range will vary based on transmitting power, orientation of transmitter and receiver, height of
transmitting antenna, height of receiving antenna, weather conditions, interference sources in the
area, and terrain between receiver and transmitter, including indoor and outdoor structures such as
walls, trees, buildings, hills, and mountains.
Power requirements
The following table describes the power requirements for the XBee/XBee-PRO DigiMesh 2.4.
General specifications
The following table describes the general specifications for the devices.
Mechanical drawings 16
Mounting considerations 17
Hardware diagram 18
Pin signals 19
Design notes 20
DC characteristics 23
ADC operating characteristics 23
ADC timing and performance characteristics 24
Mechanical drawings
The following figures show the mechanical drawings for the XBee/XBee-PRO DigiMesh 2.4. The
drawings do not show antenna options.
Mounting considerations
We design the through-hole module to mount into a receptacle so that you do not have to solder the
module when you mount it to a board. The development kits may contain RS-232 and USB interface
boards that use two 20-pin receptacles to receive modules.
The following illustration shows the module mounting into the receptacle on the RS-232 interface
board.
Note We recommend that you print an outline of the module on the board to indicate the
correct orientation for mounting the module.
Hardware diagram
The following diagram shows a simplified view of XBee/XBee-PRO DigiMesh 2.4 hardware.
Pin signals
The following table shows the pin signals and their descriptions.
Pin
# Pin name Direction Description
1 Vcc - Power supply
2 DOUT Output UART data out
3 DIN/CONFIG Input UART data in
4 DIO12 Either Digital I/O 12
5 RESET Input/open Device reset. The reset pulse must be at least 100 µs.
drain Drive this line as an open drain/collector. The device
output drives this line low when a reset occurs. Never drive this
line high.
6 PWM0/RSSI/DIO10 Either PWM output 0 / RX signal strength indicator / Digital I/O
7 PWM/DIO11 Either PWM output 1 / Digital I/O 11
8 Reserved - Do not connect
9 DTR / SLEEP_ Either Pin sleep control line or Digital I/O 8
RQ / DIO8
10 GND - Ground
11 AD4/ DIO4 Either Analog input 4 or Digital I/O 4
12 CTS/ DIO7 Either Clear-to-send flow control or Digital I/O 7
13 ON/SLEEP Output Device Status Indicator or Digital I/O 9
14 VREF - You must connect this line if you want to use analog I/O
sampling. Must be between 2.6 V and Vcc.
15 Associate / DIO5/ AD5 Either Associated indicator, Digital I/O 5
16 RTS/ DIO6 Either Request-to-send flow control, Digital I/O 6
17 AD3 / DIO3 Either Analog input 3 or Digital I/O 3
18 AD2 / DIO2 Either Analog input 2 or Digital I/O 2
Pin
# Pin name Direction Description
19 AD1 / DIO1 Either Analog input 1 or Digital I/O 1
20 AD0 / DIO0 / Either Analog input 0, Digital I/O 0, or Commissioning
Commissioning Pushbutton
Pushbutton
Notes
The table specifies signal direction with respect to the device.
The device includes a 50 kΩ pull-up resistor attached to RESET.
You can configure several of the input pull-ups using the PR command.
Leave any unused pins disconnected.
Design notes
The following guidelines help to ensure a robust design.
Board layout
We design XBee devices to be self sufficient and have minimal sensitivity to nearby processors,
crystals or other printed circuit board (PCB) components. Keep power and ground traces thicker than
signal traces and make sure that they are able to comfortably support the maximum current
specifications. There are no other special PCB design considerations to integrate XBee devices, with
the exception of antennas.
Antenna performance
Antenna location is important for optimal performance. The following suggestions help you achieve
optimal antenna performance. Point the antenna up vertically (upright). Antennas radiate and receive
the best signal perpendicular to the direction they point, so a vertical antenna's omnidirectional
radiation pattern is strongest across the horizon.
Position the antennas away from metal objects whenever possible. Metal objects between the
transmitter and receiver can block the radiation path or reduce the transmission distance. Objects
that are often overlooked include:
n metal poles
n metal studs
n structure beams
n concrete, which is usually reinforced with metal rods
If you place the device inside a metal enclosure, use an external antenna. Common objects that have
metal enclosures include:
n vehicles
n elevators
n ventilation ducts
n refrigerators
n microwave ovens
n batteries
n tall electrolytic capacitors
Do not place XBee devices with the chip or integrated PCB antenna inside a metal enclosure.
Do not place any ground planes or metal objects above or below the antenna.
For the best results, mount the device at the edge of the host PCB. Ensure that the ground, power,
and signal planes are vacant immediately below the antenna section.
Keepout area
We recommend that you allow a “keepout” area, as shown in the following drawing.
Through-hole keepout
Notes
1. We recommend non-metal enclosures. For metal enclosures, use an external antenna.
2. Keep metal chassis or mounting structures in the keepout area at least 2.54 cm (1 in) from the
antenna.
3. Maximize the distance between the antenna and metal objects that might be mounted in the
keepout area.
4. These keepout area guidelines do not apply for wire whip antennas or external RF connectors.
Wire whip antennas radiate best over the center of a ground plane.
DC characteristics
The following table displays the DC characteristics (VCC = 2.8 - 3.4 VDC).
RES Ideal resolution (1 LSB)3 2.08V > VDDAD > 3.6V 2.031 3.516 mV
1All Accuracy numbers are based on processor and system being in WAIT state (very little activity and no I/O
switching) and that adequate low-pass filtering is present on analog input pins (filter with 0.01 µF to 0.1 µF
capacitor between analog input and VREFL). Failure to observe these guidelines may result in system or
microcontroller noise causing accuracy errors which will vary based on board layout and the type and
magnitude of the activity. Data transmission and reception during data conversion may cause some
degradation of these specifications, depending on the number and timing of packets. It is advisable to test the
ADCs in your installation if best accuracy is required.
2RAS is the real portion of the impedance of the network driving the analog input pin. Values greater than this
amount may not fully charge the input circuitry of the ATD resulting in accuracy error.
3The resolution is the ideal step size or 1LSB = (VREFH–VREFL)/1024.
4Differential non-linearity is the difference between the current code width and the ideal code width (1LSB).
The current code width is the difference in the transition voltages to and from the current code.
5Integral non-linearity is the difference between the transition voltage to the current code and the adjusted
ideal transition voltage for the current code. The adjusted ideal transition voltage is (Current Code.1/2)*(1/
((VREFH+EFS).(VREFL+EZS))).
6Zero-scale error is the difference between the transition to the first valid code and the ideal transition to that
code. The Ideal transition voltage to a given code is (Code.1/2)*(1/(VREFH·VREFL)).
7Full-scale error is the difference between the transition to the last valid code and the ideal transition to that
code. The ideal transition voltage to a given code is (Code.1/2)*(1/(VREFH·VREFL)).
8Input leakage error is error due to input leakage across the real portion of the impedance of the network
driving the analog pin. Reducing the impedance of the network reduces this error.
9Total unadjusted error is the difference between the transition voltage to the current code and the ideal
straight-line transfer function. This measure of error includes inherent quantization error (1/2 LSB) and circuit
error (differential, integral, zero-scale, and full-scale) error. The specified value of ETU assumes zero EIL (no
leakage or zero real source impedance).
n Sleep mode
n Command Mode (Command mode sequence is issued (not available when using the SPI port))
Disadvantages: Disadvantages:
n You cannot set or read the n The interface is more complex; data is
Additional modes
In addition to the serial communication modes, several modes apply to how devices communicate
with each other.
Command mode
Command mode is a state in which the firmware interprets incoming characters as commands.
Command mode allows you to modify the device’s firmware using parameters you can set using AT
commands. When you want to read or set any setting of the device, you have to send it an AT
command. Every AT command starts with the letters "AT", followed by the two characters that
identify the command that is being sent and then by some optional configuration values. For more
details, see Enter Command mode.
Idle mode
The device is in Idle mode when it is not receiving or transmitting data. During Idle mode, the device
listens for valid data on both the RF and serial ports.
Receive mode
If a destination node receives a valid RF packet, the destination node transfers the data to its serial
transmit buffer. For the serial interface to report receive data on the RF network, that data must
meet the following criteria:
n ID match
n Channel match
n Address match
Sleep modes
Sleep modes allows the device to enter states of low power consumption when not in use. The device
is almost completely off during sleep, and is incapable of sending or receiving data until it wakes up.
XBee devices support both pin sleep, where the module enters sleep mode upon pin transition, and
cyclic sleep, where the module sleeps for a fixed time. While asleep, nodes cannot receive RF
messages or read commands from the UART port.
The sleep modes are:
n Normal mode. Normal mode is the default for a newly powered-on node. In this mode, a node
n Synchronous Sleep Support mode. A node in this mode synchronizes itself with a sleeping
network, but does not sleep itself. At any time, the node responds to new nodes that attempt
to join the sleeping network using a sync message.
n Synchronous Cyclic Sleep mode. A node in synchronous cyclic sleep mode sleeps for a
programmed time, wakes in unison with other nodes, exchanges data and sync messages, and
then returns to sleep.
Transmit mode
When the device receives serial data and is ready to packetize it, it exits Idle mode and attempts to
transmit the serial data.
Command mode
Command mode is a state in which the firmware interprets incoming characters as commands. It
allows you to modify the device’s configuration using parameters you can set using AT
commands. When you want to read or set any parameter of the XBee/XBee-PRO DigiMesh 2.4 using
this mode, you have to send an AT command. Every AT command starts with the letters AT followed by
the two characters that identify the command and then by some optional configuration values.
The operating modes of the XBee/XBee-PRO DigiMesh 2.4 are controlled by the API Mode setting,
but Command mode is always available as a mode the device can enter while configured for any of the
operating modes.
Command mode is available on the UART interface for all operating modes. You cannot use the SPI
interface to enter Command mode.
Note Do not press Return or Enter after typing +++ because it interrupts the guard time silence and
prevents you from entering Command mode.
When the device is in Command mode, it listens for user input and is able to receive AT commands on
the UART. If CT time (default is 10 seconds) passes without any user input, the device drops out of
Command mode and returns to the previous operating mode. You can force the device to leave
Command mode by sending CN command.
You can customize the command character, the guard times and the timeout in the device’s
configuration settings. For more information, see CC (Command Character), CT command and GT
command.
Troubleshooting
Failure to enter Command mode is often due to baud rate mismatch. Ensure that the baud rate of the
connection matches the baud rate of the device. By default, BD (Baud Rate) = 3 (9600 b/s).
There are two alternative ways to enter Command mode:
n A serial break for six seconds enters Command mode. You can issue the "break" command
Send AT commands
Once the device enters Command mode, use the syntax in the following figure to send AT commands.
Every AT command starts with the letters AT, which stands for "attention." The AT is followed by two
characters that indicate which command is being issued, then by some optional configuration values.
To read a parameter value stored in the device’s register, omit the parameter field.
Multiple AT commands
You can send multiple AT commands at a time when they are separated by a comma in Command
mode; for example, ATNIMy XBee,AC<cr>.
The preceding example changes the NI (Node Identifier) to My XBee and makes the setting active
through AC (Apply Changes).
Parameter format
Refer to the list of AT commands for the format of individual AT command parameters. Valid formats
for hexidecimal values include with or without a leading 0x for example FFFF or 0xFFFF.
Response to AT commands
When using AT commands to set parameters the XBee/XBee-PRO DigiMesh 2.4 responds with OK<cr>
if successful and ERROR<cr> if not.
For devices with a file system:
ATAP1<cr>
OK<cr>
When reading parameters, the device returns the current parameter value instead of an OK message.
ATAP<cr>
1<cr>
Note You still have to use WR to save the changes enacted with RE.
Software libraries 33
Configure the device using XCTU 33
XBee Network Assistant 33
Software libraries
One way to communicate with the XBee/XBee-PRO DigiMesh 2.4 is by using a software library. The
libraries available for use with the XBee/XBee-PRO DigiMesh 2.4 include:
n XBee Java library
contains.
n Update the configuration of all the nodes of the network, specific groups, or single devices
based on configuration profiles.
n Geo-locate your network devices or place them in custom maps and get information about the
connections between them.
n Export the network you are inspecting and import it later to continue working or work offline.
n Use automatic application updates to keep you up to date with the latest version of the tool.
See the XBee Network Assistant User Guide for more information.
To install the XBee Network Assistant:
1. Navigate to digi.com/xbeenetworkassistant.
2. Click General Diagnostics, Utilities and MIBs.
3. Click the XBee Network Assistant - Windows x86 link.
4. When the file finishes downloading, run the executable file and follow the steps in the XBee
Network Assistant Setup Wizard.
Serial interface 35
UART data flow 35
Serial buffers 36
Serial flow control 37
Serial interface
The XBee/XBee-PRO DigiMesh 2.4 provides a serial interface to an RF link. The XBee/XBee-PRO
DigiMesh 2.4 converts serial data to RF data and sends that data to any device in an RF network. The
device can communicate through its serial port with any logic and voltage compatible universal
asynchronous receiver/transmitter (UART) or through a level translator to any serial device.
Serial data
A device sends data to the XBee/XBee-PRO DigiMesh 2.4's UART through pin 3 DIN as an asynchronous
serial signal. When the device is not transmitting data, the signals should idle high.
For serial communication to occur, you must configure the UART of both devices (the microcontroller
and the XBee/XBee-PRO DigiMesh 2.4) with compatible settings for the baud rate, parity, start bits,
stop bits, and data bits.
Each data byte consists of a start bit (low), 8 data bits (least significant bit first) and a stop bit (high).
The following diagram illustrates the serial bit pattern of data passing through the device. The
diagram shows UART data packet 0x1F (decimal number 31) as transmitted through the device.
Serial buffers
The XBee/XBee-PRO DigiMesh 2.4 maintains internal buffers to collect serial and RF data that it
receives. The serial receive buffer collects incoming serial characters and holds them until the device
can process them. The serial transmit buffer collects the data it receives via the RF link until it
transmits that data out the serial port. The following figure shows the process of device buffers
collecting received serial data.
Local configuration
You can configure devices locally using serial commands in Transparent or API mode, or remotely
using remote API commands. Devices that are in API mode can send configuration commands to set
or read the configuration settings of any device in the network.
Remote configuration
When you do not have access to the device's serial port, you can use a separate device in API mode to
remotely configure it. To remotely configure devices, use the following steps.
The device that sends a remote command does not receive a remote command response frame if:
1. It could not reach the destination device.
2. You set the frame ID to 0 in the remote command request.
Example one:
In a scenario where you deploy a network, and then you want to update the DH and DL registers of all
the devices in the network so that they use the MAC address of the aggregator node, which has the
MAC address 0x0013A200 4052C507, you could use the following technique.
1. Deploy all devices in the network with the default DH/DL of 0xFFFF.
2. Serially, send an ATAGFFFF command to the aggregator node so it sends the broadcast
transmission to the rest of the nodes.
All the nodes in the network that receive the AG broadcast set their DH to 0x0013A200 and their DL to
0x4052C507. These nodes automatically build a route to the aggregator node.
Example two:
If you want all of the nodes in the network to build routes to an aggregator node with a MAC address
of 0x0013A200 4052C507 without affecting the DH and DL registers of any nodes in the network:
1. Send the ATAGFFFE command to the aggregator node. This sends an AG broadcast to all of the
nodes in the network.
2. All of the nodes internally update only their routing table information to contain a route to the
aggregator node.
3. None of the nodes update their DH and DL registers because none of the registers are set to
the 0xFFFE address.
Replace nodes
You can use the AG command to update the routing table and DH/DL registers in the network after
you replace a device. To update only the routing table information without affecting the DH and DL
registers, use the process in example two, above.
To update the DH and DL registers of the network, use example three, below.
Example three:
This example shows how to cause all devices to update their DH and DL registers to the MAC address
of the sending device. In this case, assume you are using a device with a serial number of 0x0013A200
4052C507 as a network aggregator, and the sending device has a MAC address of 0x0013A200
F5E4D3B2 To update the DH and DL registers to the sending device's MAC address:
1. Replace the aggregator with 0x0013A200 F5E4D3B2.
2. Send the ATAG0013A200 4052C507 command to the new device.
The configuration steps for sending data to the loopback cluster ID depend on what mode the device
is in. For details on setting the mode, see API Mode. The following sections list the steps based on the
device's mode.
Number of
bytes Field name Description
8 Destination The address the device uses to test its link. For this example, use the
address device A address.
2 Payload size The size of the test packet. Use the NP command to query the
maximum payload size for the device.
2 Iterations The number of packets to send. This must be a number between 1 and
4000.
Number of
bytes Field name Description
8 Destination The address the device used to test its link.
address
Number of
bytes Field name Description
2 Payload size The size of the test packet device A sent to test the link.
2 Iterations The number of packets that device A sent.
2 Success The number of packets that were successfully
acknowledged.
2 Retries The number of MAC retries used to transfer all the packets.
1 Result 0x00 - the command was successful.
0x03 - invalid parameter used.
1 RR The maximum number of MAC retries allowed.
1 maxRSSI The strongest RSSI reading observed during the test.
1 minRSSI The weakest RSSI reading observed during the test.
1 avgRSSI The average RSSI reading observed during the test.
Example
Suppose that you want to test the link between device A (SH/SL = 0x0013A200 40521234) and device
B (SH/SL=0x0013A 200 4052ABCD) by transmitting 1000 40-byte packets:
Send the following API packet to the serial interface of device A.
In the following example packet, whitespace marks fields, bold text is the payload portion of the
packet:
7E 0020 11 01 0013A20040521234 FFFE E6 E6 0014 C105 00 00 0013A2004052ABCD 0028 03E8 EB
When the test is finished, the following API frame may be received:
7E 0027 91 0013A20040521234 FFFE E6 E6 0094 C105 00 0013A2004052ABCD 0028 03E8 03E7 0064
00 0A 50 53 52 9F
This means:
n 999 out of 1000 packets were successful.
RSSI indicators
The received signal strength indicator (RSSI) measures the amount of power present in a radio signal.
It is an approximate value for signal strength received on an antenna.
You can use the DB command to measure the RSSI on a device. DB returns the RSSI value measured in
-dBm of the last packet the device received. This number can be misleading in multi-hop DigiMesh
networks. The DB value only indicates the received signal strength of the last hop. If a transmission
spans multiple hops, the DB value provides no indication of the overall transmission path, or the
quality of the worst link, it only indicates the quality of the last link.
To determine the DB value in hardware:
1. Use the PO command to enable the RSSI pulse-width modulation (PWM) functionality.
2. Use the RSSI/PWM module pin (pin 6). When the device receives data, it sets the RSSI PWM
duty cycle to a value based on the RSSI of the packet it receives.
This value only indicates the quality of the last hop of a multi-hop transmission. You could connect this
pin to an LED to indicate if the link is stable or not.
Note Because of the large number of Route Information Packet frames that a unicast with trace
route enabled can generate, we suggest you only use the trace route option for occasional diagnostic
purposes and not for normal operations.
The Transmit Request (0x10) frame contains a trace route option, which transmits routing
information packets to the originator of the unicast using the intermediate nodes.
When a device sends a unicast with the trace route option enabled, the unicast transmits to its
destination devices, which forward the unicast to its eventual destination. The destination device
transmits a Route Information Packet (0x8D) frame back along the route to the unicast originator.
The Route Information Packet frame contains:
outputs a Route Information Packet frame indicating that the transmission of the data packet
from device A to device E was successful in forwarding one hop from device A to device B.
n After the data packet makes a successful MAC transmission from device B to device C, device B
transmits a Route Information Packet frame to device A. When device A receives the Route
Information packet, it outputs it over its serial interface.
n After the data packet makes a successful MAC transmission from device C to device D, device C
transmits a Route Information Packet frame to device A (through device B). When device A
receives the Route Information packet, it outputs it over its serial interface.
n After the data packet makes a successful MAC transmission from device D to device E, device D
transmits a Route Information Packet frame to device A (through device C and device B). When
device A receives the Route Information packet, it outputs it over its serial interface.
There is no guarantee that Route Information Packet frames will arrive in the same order as the
route taken by the unicast packet. On a weak route, it is also possible for the transmission of Route
Information Packet frames to fail before arriving at the unicast originator.
NACK messages
Transmit Request (0x10 and 0x11) frames contain a negative-acknowledge character (NACK) API
option (Bit 2 of the Transmit Options field).
If you use this option when transmitting data, when a MAC acknowledgment failure occurs on one of
the hops to the destination device, the device generates a Route Information Packet (0x8D) frame
and sends it to the originator of the unicast.
This information is useful because it allows you to identify and repair marginal links.
To support the Commissioning Pushbutton and its associated LED functions, connect a pushbutton
and an LED to device pins 20 and 15 respectively.
Definitions
To enable the Commissioning Pushbutton functionality on pin 20, set the D0 command to 1. The
functionality is enabled by default.
You must perform multiple button presses within two seconds.
The following table provides the pushbutton definitions.
Sleep
configuration
Button and sync
presses status Action
1 Not configured Immediately sends a Node Identification broadcast transmission.
for sleep All devices that receive this transmission blink their Associate LED rapidly
for one second.
All devices in API operating mode that receive this transmission send a
Node Identification Indicator frame (0x95) out their UART.
Sleep
configuration
Button and sync
presses status Action
1 Configured for Wakes the device for 30 seconds.
asynchronous Immediately sends a Node Identification broadcast transmission.
sleep All devices that receive this transmission blink their Associate LED rapidly
for one second.
All devices in API operating mode that receive this transmission send a
Node Identification Indicator frame (0x95) out their UART.
1 Configured for Wakes the module for 30 seconds or until the synchronized network
synchronous goes to sleep.
sleep Queues a Node Identification broadcast transmission that it sends at the
beginning of the next network wake cycle.
All devices that receive this transmission blink their Associate LED rapidly
for one second.
All devices in API operating mode that receive this transmission send a
Node Identification Indicator frame (0x95) out their UART.
2 Not configured No effect.
for
synchronous
sleep
2 Configured for Causes a node configured with sleeping router nomination enabled to
synchronous immediately nominate itself as the network sleep coordinator. For more
sleep information, see SO command.
4 Any Sends an RE command to restore device parameters to default values.
Associate LED
The Associate pin (pin 15) provides an indication of the device's sleep status and diagnostic
information. To take advantage of these indications, connect an LED to the Associate pin.
To enable the Associate LED functionality, set the D5 command to 1; it is enabled by default. If
enabled, the Associate pin is configured as an output. This section describes the behavior of the pin.
The Associate pin indicates the synchronization status of a sleep compatible XBee/XBee-PRO
DigiMesh 2.4. If a device is not sleep compatible, the pin functions as a power indicator.
Use the LT command to override the blink rate of the Associate pin. If you set LT to 0, the device uses
the default blink time: 500 ms for a sleep coordinator, 250 ms otherwise.
The following table describes the Associate LED functionality.
Sleep
mode LED status Meaning
0 On, blinking The device has power and is operating properly
1, 4, 5 Off The device is in a low power mode
1, 4, 5 On, blinking The device has power, is awake and is operating properly
7 On, solid The network is asleep, or the device has not synchronized with the
network, or has lost synchronization with the network
7, 8 On, slow blinking The device is acting as the network sleep coordinator and is
(500 ms blink time) operating properly
7, 8 On, fast blinking The device is properly synchronized with the network
(250 ms blink time)
8 Off The device is in a low power mode
8 On, solid The device has not synchronized or has lost synchronization with the
network
Diagnostics support
The Associate pin works with the Commissioning Pushbutton to provide additional diagnostic
behaviors to aid in deploying and testing a network. If you press the Commissioning Pushbutton once,
the device transmits a broadcast Node Identification Indicator (0x95) frame at the beginning of the
next wake cycle if the device is sleep compatible, or immediately if the device is not sleep compatible.
If you enable the Associate LED functionality using the D5 command, a device that receives this
transmission blinks its Associate pin rapidly for one second.
The following table provides the pin configurations when you set the configuration command for a
particular pin.
PWM1 / DIO11 7 P1
DTR / SLEEP_RQ / DIO8 9 D8
AD4 / DIO4 11 D4
CTS/ DIO7 12 D7
ON/SLEEP/ DIO9 13 D9
AD3 / DIO3 17 D3
AD2 / DIO2 18 D2
AD1 / DIO1 19 D1
Use the PR command to enable internal pull up/down resistors for each digital input. Use the PD
command to determine the direction of the internal pull up/down resistor.
Queried sampling
You can use the IS command to query the current state of all digital input and ADC lines on the device.
If no inputs are defined, the command returns with an ERROR.
If you send the IS command from Command mode, then the device returns a carriage return delimited
list containing the following fields.
1 Analog Indicates which lines have analog inputs enabled for sampling. Each bit in the
channel analog channel mask corresponds to one analog input channel.
mask
bit 0 = AD0/DIO0
bit 1 = AD1/DIO1
bit 2 = AD2/DIO2
bit 3 = AD3/DIO3
bit 4 = AD4/DIO4
bit 5 = ASSOC/AD5/DIO5
Variable Sampled If you enable any digital I/O lines, the first two bytes of the data set indicate
data set the state of all enabled digital I/O.
Only digital channels that you enable in the Digital channel mask bytes have
any meaning in the sample set. If do not enable any digital I/O on the device, it
omits these two bytes.
Following the digital I/O data (if there is any), each enabled analog channel
returns two bytes. The data starts with AIN0 and continues sequentially for
each enabled analog input channel up to AIN5.
n For all other IR values, the firmware samples data when IR milliseconds elapse and the sample
data transmits to a remote device.
The DH and DL commands determine the destination address of the I/O samples.
Only devices with API operating mode enabled send I/O data samples out their serial interface.
Devices that are in Transparent mode (AP = 0) discard the I/O data samples they receive. You must
configure at least one pin as a digital or ADC input to generate sample data.
A device with sleep enabled transmits periodic I/O samples at the IR rate until the ST time expires and
the device can resume sleeping. For more information about setting sleep modes, see Sleep modes.
Note Use caution when combining Change Detect sampling with sleep modes. IC only causes a
sample to be generated if the change takes place during a wake period. If the device is sleeping when
the digital input transition occurs, then no change is detected and an I/O sample is not generated.
Use IR in conjunction with IC in this instance, since IR generates an I/O sample upon wakeup and
ensures that the change is properly observed.
DigiMesh networking 54
Network identifiers 55
Routing 56
DigiMesh networking
A mesh network is a topology in which each node in the network is connected to other nodes around
it. Each node cooperates in transmitting information. Mesh networking provides these important
benefits:
n Routing. With this technique, the message is propagated along a path by hopping from node to
With mesh networking, the distance between two nodes does not matter as long as there are enough
nodes in between to pass the message along. When one node wants to communicate with another,
the network automatically calculates the best path.
A mesh network is also reliable and offers redundancy. For example, If a node can no longer operate
because it has been removed from the network or because a barrier blocks its ability to communicate,
the rest of the nodes can still communicate with each other, either directly or through intermediate
nodes.
Note Mesh networks use more bandwidth for administration and therefore have less available for
payloads.
Network identifiers
You define DigiMesh networks with a unique network identifier. Use the ID command to set this
identifier. For devices to communicate, you must configure them with the same network identifier and
the same operating channel. For devices to communicate, the CH and ID commands must be equal on
all devices in the network.
The ID command directs the devices to talk to each other by establishing that they are all part of the
same network. The ID parameter allows multiple DigiMesh networks to co-exist on the same physical
channel.
Operating channels
The XBee/XBee-PRO DigiMesh 2.4 operates over the 2.4 GHz band using direct sequence spread
spectrum (DSSS) modulation. DSSS modulation allows the device to operate over a channel or
frequency that you specify.
The 2.4 GHz frequency band defines 16 operating channels. XBee devices support all 16 channels and
XBee-PRO devices support 12 of the 16 channels.
Use the CH command to select the operating channel on a device. CH tells the device the frequency to
use to communicate.
For devices to communicate, the CH and ID commands must be equal on all devices in the network.
Note these requirements for communication:
n A device can only receive data from other devices within the same network (with the same ID
value) and using the same channel (with the same CH value).
n A device can only transmit data to other devices within the same network (with the same ID
value) and using the same channel (with the same CH value).
Unicast addressing
When devices transmit using DigiMesh unicast, the network uses retries and acknowledgments
(ACKs) for reliable data delivery. In a retry and acknowledgment scheme, for every data packet that a
device sends, the receiving device must send an acknowledgment back to the transmitting device to
let the sender know that the data packet arrived at the receiver. If the transmitting device does not
receive an acknowledgment then it re-sends the packet. It sends the packet a finite number of times
before the system times out.
The MR (Mesh Network Retries) parameter determines the number of mesh network retries. The
sender device transmits RF data packets up to MR + 1 times across the network route, and the
receiver transmits ACKs when it receives the packet. If the sender does not receive a network ACK
within the time it takes for a packet to traverse the network twice, the sender retransmits the
packet.
If a device sends a unicast that uses both MAC and NWK retries and acknowledgments:
n Use MAC retries and acknowledgments for transmissions between adjacent devices in the
route.
n Use NWK retries and acknowledgments across the entire route.
To send unicast messages while in Transparent operating mode, set the DH and DL on the
transmitting device to match the corresponding SH and SL parameter values on the receiving device.
Broadcast addressing
All of the routers in a network receive and repeat broadcast transmissions. Broadcast transmissions
do not use ACKs, so the sending device sends the broadcast multiple times. By default, the sending
device sends a broadcast transmission four times. The transmissions become automatic retries
without acknowledgments. This results in all nodes repeating the transmission four times as well.
In order to avoid RF packet collisions, the network inserts a random delay before each router relays
the broadcast message. You can change this random delay time with the NN parameter.
Sending frequent broadcast transmissions can quickly reduce the available network bandwidth. Use
broadcast transmissions sparingly.
The broadcast address is a 64 bit address with the lowest 16 bits set to 1. The upper bits are set to 0.
To send a broadcast transmission:
n Set DH to 0.
n Set DL to 0xFFFF.
In API operating mode, this sets the destination address to 0x000000000000FFFF.
Routing
A device within a mesh network determines reliable routes using a routing algorithm and table. The
routing algorithm uses a reactive method derived from Ad-hoc On-demand Distance Vector (AODV).
The firmware uses an associative routing table to map a destination node address with its next hop. A
device sends a message to the next hop address, and the message either reaches its destination or
forwards to an intermediate router that routes the message on to its destination.
If a message has a broadcast address, it is broadcast to all neighbors, then all routers that receive the
message rebroadcast the message MT+1 times. Eventually, the message reaches the entire network.
Packet tracking prevents a node from resending a broadcast message more than MT+1 times. This
means that a node that relays a broadcast will only relay it after it receives it the first time and it will
discard repeated instances of the same packet.
Route discovery
Route discovery is a process that occurs when:
1. The source node does not have a route to the requested destination.
2. A route fails. This happens when the source node uses up its network retries without receiving
an ACK.
Route discovery begins by the source node broadcasting a route request (RREQ). We call any router
that receives the RREQ and is not the ultimate destination, an intermediate node.
Intermediate nodes may either drop or forward a RREQ, depending on whether the new RREQ has a
better route back to the source node. If so, the node saves, updates and broadcasts the RREQ.
When the ultimate destination receives the RREQ, it unicasts a route reply (RREP) back to the source
node along the path of the RREQ. It does this regardless of route quality and regardless of how many
times it has seen an RREQ before.
This allows the source node to receive multiple route replies. The source node selects the route with
the best round trip route quality, which it uses for the queued packet and for subsequent packets with
the same destination address.
DigiMesh throughput
Throughput in a DigiMesh network can vary due to a number of variables, including:
n The number of hops.
We performed data throughput measurements with the serial interface rate set to 115200 b/s, and
measured the time to send 100,000 bytes from the source to the destination. During the test, there
were no route discoveries or failures.
Transmission timeouts
When a device in API operating mode receives a Transmit Request (0x10, 0x11) frame, or a device in
Transparent operating mode meets the packetization requirements (RO, RB), the time required to
route the data to its destination depends on:
n A number of configured parameters.
Note The timeouts in this documentation are theoretical timeouts and are not precisely accurate.
Your application should pad the calculated maximum timeouts by a few hundred milliseconds. When
you use API operating mode, use Transmit Status frame - 0x8B as the primary method to determine if
a transmission is complete.
3 unicastOneHopTime = 63 ms
Transmit a broadcast
All of the routers in a network must relay a broadcast transmission.
The maximum delay occurs when the sender and receiver are on the opposite ends of the network.
The NH and %H parameters define the maximum broadcast delay as follows:
BroadcastTxTime = NH * NN * %8
Unless BH < NH, in which case the formula is:
BroadcastTxTime = BH * NN * %8
Asynchronous modes
n Do not use asynchronous sleep modes in a synchronous sleeping network, and vice versa.
n Use the asynchronous sleep modes to control the sleep state on a device by device basis.
n Do not use devices operating in asynchronous sleep mode to route data.
n We strongly encourage you to set asynchronous sleeping devices as end-devices using the CE
command. This prevents the node from attempting to route data.
Synchronous modes
Synchronous sleep makes it possible for all nodes in the network to synchronize their sleep and wake
times. All synchronized cyclic sleep nodes enter and exit a low power state at the same time.
This forms a cyclic sleeping network.
n A device acting as a sleep coordinator sends a special RF packet called a sync message to
synchronize nodes.
n To make a device in the network a coordinator, a node uses several resolution criteria.
n The sleep coordinator sends one sync message at the beginning of each wake period. The
coordinator sends the sync message as a broadcast and every node in the network repeats it.
n You can change the sleep and wake times for the entire network by locally changing the
settings on an individual device. The network uses the most recently set sleep settings.
Normal mode
Set SM to 0 to enter Normal mode.
Normal mode is the default sleep mode. If a device is in this mode, it does not sleep and is always
awake.
Use mains-power for devices in Normal mode.
A device in Normal mode synchronizes to a sleeping network, but does not observe synchronization
data routing rules; it routes data at any time, regardless of the network's wake state.
When synchronized, a device in Normal mode relays sync messages that sleep-compatible nodes
generate, but does not generate sync messages itself.
Once a device in Normal mode synchronizes with a sleeping network, you can put it into a sleep-
compatible sleep mode at any time.
Note Because sleep support nodes do not sleep, they should be mains powered.
Note Configure all nodes in a synchronous sleep network to operate in either synchronous sleep
support mode or synchronous cyclic sleep mode. asynchronous sleeping nodes are not compatible
with synchronous sleeping nodes.
Synchronization messages
A sleep coordinator regularly sends sync messages to keep the network in sync. Unsynchronized
nodes also send messages requesting sync information.
Sleep compatible nodes use Deployment mode when they first power up and the sync message has
not been relayed. A sleep coordinator in Deployment mode rapidly sends sync messages until it
receives a relay of one of those messages. Deployment mode:
n Allows you to effectively deploy a network.
n Allows a sleep coordinator that resets to rapidly re-synchronize with the rest of the network.
If a node exits deployment mode and then receives a sync message from a sleep coordinator that is in
Deployment mode, it rejects the sync message and sends a corrective sync to the sleep coordinator.
Use the SO (sleep options) command to disable deployment mode. This option is enabled by default.
A sleep coordinator that is not in deployment mode sends a sync message at the beginning of the
wake cycle. The sleep coordinator listens for a neighboring node to relay the sync. If it does not hear
the relay, the sleep coordinator sends the sync one additional time.
A node that is not a sleep coordinator and has never been synchronized sends a message requesting
sync information at the beginning of its wake cycle. Synchronized nodes which receive one of these
messages respond with a synchronization packet.
If you use the SO command to configure nodes as non-coordinators, and if the non-coordinators go six
or more sleep cycles without hearing a sync, they send a message requesting sync at the beginning of
their wake period.
The following diagram illustrates the synchronization behavior of sleep compatible devices.
CAUTION! Use the preferred sleep coordinator bit with caution. The advantages of using
the option become weaknesses if you use it on a node that is not in the proper position
or configuration.
You can also use the preferred sleep coordinator option when you set up a network for the first time.
When you start a network, you can configure a node as a sleep coordinator so it will begin sending
sleep messages. After you set up the network, disable the preferred sleep coordinator bit.
n Is not configured as a non-coordinator (presumably because the sleep coordinator has been
disabled).
Depending on the platform and other configurable options, such a node eventually uses the selection
process after a number of sleep cycles without a sync.
A node that uses the selection process begins acting as the new network sleep coordinator.
It is possible for multiple nodes to declare themselves as the sleep coordinator. If this occurs, the
firmware uses the following resolution criteria to identify the sleep coordinator from among the nodes
using the selection process:
1. Newer sleep parameters: the network considers a node using newer sleep parameters (SP and
ST) as higher priority to a node using older sleep parameters. See Change sleep parameters.
2. Preferred sleep coordinator: a node acting as a preferred sleep coordinator is higher priority to
other nodes.
3. Sleep support node: sleep support nodes are higher priority to cyclic sleep nodes. You can
modify this behavior using the SO parameter.
4. Serial number: If the previous factors do not resolve the priority, the network considers the
node with the higher serial number to be higher priority.
sync message, not the ones specified in its SP and ST parameters. It does not update the SP
and ST parameters with the values of the sync message. Use the OS and OW commands to
query the operating network sleep and wake times currently being used by the node.
n Changing network parameters can cause a node to become a sleep coordinator and change
the sleep settings of the network. The following commands can cause this to occur: NH, NN,
and MR.
For most applications, we recommend configuring the NH, NN, and MR network parameters during
initial deployment only. The default values of NH and NN are optimized to work for most deployments.
3. Power on the new nodes within range of the sleep coordinator. The nodes quickly receive a
sync message and synchronize themselves to the short cycle SP and ST set on the sleep
coordinator.
4. Configure the new nodes to the sleep mode you want, either cyclic sleeping modes or sleep
support modes.
5. Set the SP and ST values on the sleep coordinator to the values you want for the network.
6. Wait a sleep cycle for the sleeping nodes to sync themselves to the new SP and ST values.
7. Disable the preferred sleep coordinator option bit on the sleep coordinator unless you want a
preferred sleep coordinator.
8. Deploy the nodes to their positions.
Alternatively, prior to deploying the network you can use the WR command to set up nodes with their
sleep settings pre-configured and written to flash. If this is the case, you can use the Commissioning
Pushbutton and associate LED to aid in deployment:
1. If you are going to use a preferred sleep coordinator in the network, deploy it first.
2. If there will not be a preferred sleep coordinator, select a node for deployment, power it on and
press the Commissioning Pushbutton twice. This causes the node to begin emitting sync
messages.
3. Verify that the first node is emitting sync messages by watching its associate LED. A slow blink
indicates that the node is acting as a sleep coordinator.
4. Power on nodes in range of the sleep coordinator or other nodes that have synchronized with
the network. If the synchronized node is asleep, you can wake it by pressing the
Commissioning Pushbutton once.
5. Wait a sleep cycle for the new node to sync itself.
6. Verify that the node syncs with the network. The associate LED blinks when the device is
awake and synchronized.
7. Continue this process until you deploy all of the nodes.
If you do not use one of these two methods, you must wait for the network to wake up before adding
the new node.
Place the new node in range of the network with a sleep/wake cycle that is shorter than the wake
period of the network.
The new node periodically sends sync requests until the network wakes up and it receives a sync
message.
coordinator, we suggest that you use this node to make changes to network settings.
n If you do not know the network sleep coordinator, you can use any node that does not have the
non-sleep coordinator sleep option bit set. For details on the bit, see SO command.
When you make changes to a node’s sleep parameters, that node becomes the network’s sleep
coordinator unless it has the non-sleep coordinator option selected. It sends a sync message with the
new sleep settings to the entire network at the beginning of the next wake cycle. The network
immediately begins using the new sleep parameters after it sends this sync.
Changing sleep parameters increases the chances that nodes will lose sync. If a node does not receive
the sync message with the new sleep settings, it continues to operate on its old settings. To minimize
the risk of a node losing sync and to facilitate the re-syncing of a node that does lose sync, take the
following precautions:
1. Whenever possible, avoid changing sleep parameters.
2. Enable the missed sync early wake up sleep option in the SO command. This option is enabled
by default. This command tells a node to wake up progressively earlier based on the number of
cycles it goes without receiving a sync. This increases the probability that the un-synced node
will be awake when the network wakes up and sends the sync message.
Note Using this sleep option increases reliability but may decrease battery life. Nodes using this sleep
option that miss sync messages increase their wake time and decrease their sleep time during cycles
where they miss the sync message. This increases power consumption.
When you are changing between two sets of sleep settings, choose settings so that the wake periods
of the two sleep settings occur at the same time. In other words, try to satisfy the following equation:
(SP1 + ST1 ) = N * (SP2 + ST2 )
where SP1 /ST1 and SP2 /ST2 are the desired sleep settings and N is an integer.
intervals. When this occurs the first task is to repair, replace, and strengthen the weak link with new
and/or redundant devices to fix the problem and prevent it from occurring in the future.
When you use the default DigiMesh sleep parameters, separated subnets do not drift out of phase
with each other. Subnets can drift out of phase with each other if you configure the network in one of
the following ways:
n If you disable the non-sleep coordinator bit in the SO command on multiple devices in the
network, they are eligible for the network to nominate them as a sleep coordinator. For more
details, see SO command.
n If the devices in the network do not use the auto early wake-up sleep option.
If a network has multiple subnets that drift out of phase with each other, get the subnets back in
phase with the following steps:
1. Place a sleep support node in range of both subnets.
2. Select a node in the subnet that you want the other subnet to sync with.
3. Use this node to slightly change the sleep cycle settings of the network, for example,
increment ST.
4. Wait for the subnet’s next wake cycle. During this cycle, the node you select to change the
sleep cycle parameters sends the new settings to the entire subnet it is in range of, including
the sleep support node that is in range of the other subnet.
5. Wait for the out of sync subnet to wake up and send a sync. When the sleep support node
receives this sync, it rejects it and sends a sync to the subnet with the new sleep settings.
6. The subnets will now be in sync. You can remove the sleep support node.
7. You can also change the sleep cycle settings back to the previous settings.
If you only need to replace a few nodes, you can use this method:
1. Reset the out of sync node and set its sleep mode to Synchronous Cyclic Sleep mode (SM = 8).
2. Set up a short sleep cycle.
3. Place the node in range of a sleep support node or wake a sleeping node with the
Commissioning Pushbutton.
4. The out of sync node receives a sync from the node that is synchronized to the network. It then
syncs to the network sleep settings.
Diagnostics
The following diagnostics are useful in applications that manage a sleeping router network:
Sleep status
Use the SS command to query useful information regarding the sleep status of the device. Use this
command to query if the node is currently acting as a network sleep coordinator.
Special commands 73
MAC/PHY commands 74
Network commands 78
Addressing commands 80
Diagnostic - addressing commands 83
Addressing discovery/configuration commands 84
Security commands 86
Serial interfacing commands 86
I/O settings commands 89
I/O sampling commands 97
Sleep commands 99
Diagnostic - sleep status/timing commands 102
Command mode options 104
Firmware version/information commands 105
Special commands
The following commands are special commands.
AC (Apply Changes)
Immediately applies new settings without exiting Command mode.
Parameter range
N/A
Default
N/A
FR (Software Reset)
Resets the device. The device responds immediately with an OK and performs a reset 100 ms later.
If you issue FR while the device is in Command Mode, the reset effectively exits Command mode.
Parameter range
N/A
Default
N/A
RE command
Restore device parameters to factory defaults.
Parameter range
N/A
Default
N/A
WR command
Writes parameter values to non-volatile memory so that parameter modifications persist through
subsequent resets.
Note Once you issue a WR command, do not send any additional characters to the device until after
you receive the OK response.
Parameter range
N/A
Default
N/A
MAC/PHY commands
The following AT commands are MAC/PHY commands.
CH (Operating Channel)
Set or read the operating channel devices used to transmit and receive data. The channel is one of
three addressing configurations available to the device. The other configurations are the PAN ID (ID
command) and destination addresses (DL and DH commands).
In order for devices to communicate with each other, they must share the same channel number. A
network can use different channels to prevent devices in one network from listening to the
transmissions of another. Adjacent channel rejection is 23 dB.
The command uses 802.15.4 channel numbers. Center frequency = 2405 MHz + (CH - 11 decimal) * 5
MHz.
Parameter range
0xB - 0x1A
Default
0xC (12 decimal)
ID (Network ID)
Set or read the user network identifier.
Devices must have the same network identifier to communicate with each other.
Devices can only communicate with other devices that have the same network identifier and channel
configured.
When receiving a packet, the device check this after the preamble ID. If you are using Original
equipment manufacturer (OEM) network IDs, 0xFFFF uses the factory value.
Parameter range
0 - 0xFFFF
Default
0x7FFF
MT (Broadcast Multi-Transmits)
Set or read the number of additional MAC-level broadcast transmissions. All broadcast packets are
transmitted MT+1 times to ensure they are received.
Parameter range
0 - 0xF
Default
3
CA (CCA Threshold)
Set or read the Clear Channel Assessment (CCA) threshold. Prior to transmitting a packet, the device
performs a CCA to detect energy on the channel. If the device detects energy above the CCA
threshold, it will not transmit the packet.
The CA parameter is measured in units of -dBm.
Setting the parameter to 0x00 disables CCA, otherwise the valid range is 0x24 - 0x50.
Parameter range
0x0 - 0x50 -dBm
Default
0x0 (CCA disabled)
Example
If you set the CA parameter to 60 (0x3C), the device does not transmit if it detects a signal greater
than -60 dBm on the channel.
Parameter range
0-4
These parameters equate to the following settings for the XBee RF module:
These parameters equate to the following settings for the XBee-PRO RF module:
Default
4
Parameter range
0 - 0xF
Default
0xA (10 retries)
ED (Energy Detect)
Starts an energy detect scan. This command accepts an argument to specify the time in milliseconds
to scan all channels. The device loops through all the available channels until the time elapses. It
returns the maximal energy on each channel, a comma follows each value, and the list ends with a
carriage return. The values returned reflect the energy level that ED detects in -dBm units.
Parameter range
0 - 0x3A98 (15 seconds)
Default
N/A
BC (Bytes Transmitted)
The number of RF bytes transmitted. The firmware counts every byte of every packet, including
MAC/PHY headers and trailers. The purpose of this count is to estimate battery life by tracking time
spent performing transmissions.
This number rolls over to 0 from 0xFFFF.
You can reset the counter to any unsigned 16-bit value by appending a hexadecimal parameter to the
command.
Parameter range
0 - 0xFFFF
Default
0
Parameter range
N/A
Default
0
Parameter range
N/A
Default
N/A
Parameter range
Default
Parameter range
N/A
Default
N/A
Parameter range
N/A
Default
N/A
Parameter range
0 - 0xFFFF
Default
0
Parameter range
[read-only]
Default
N/A
Parameter range
[read-only]
Default
N/A
Network commands
The following commands are network commands.
Parameter range
0-2
Default
0
BH command
The maximum transmission hops for broadcast data transmissions.
If you set BH greater than NH, the device uses the value of NH.
Parameter range
0 - 0x20
Default
0
NH (Network Hops)
Sets or displays the maximum number of hops across the network. This parameter limits the number
of hops. You can use this parameter to calculate the maximum network traversal time.
You must set this parameter to the same value on all nodes in the network.
Parameter range
1 - 0x20 (1 - 32 hops)
Default
7
DM (DigiMesh Options)
A bit field mask that you can use to enable or disable DigiMesh features.
Bit:
0: Disable aggregator updates. When set to 1, the device does not issue or respond to AG requests.
1: Disable Trace Route and NACK responses. When set to 1, the device does not generate or respond
to Trace Route or NACK requests.
Parameter range
0 - 0x03 (bit field)
Default
0
Parameter range
1 - 0xA network delay slots
Default
3
Parameter range
0 - 7 mesh unicast retries
Default
1
Addressing commands
The following AT commands are addressing commands.
SH command
Displays the upper 32 bits of the unique IEEE 64-bit extended address assigned to the product family
in the factory.
The 64-bit source address is always enabled. This value is read-only and it never changes.
Parameter range
0 - 0xFFFFFFFF [read-only]
Default
Set in the factory
SL command
Displays the lower 32 bits of the unique IEEE 64-bit RF extended address assigned to the product
family in the factory.
The 64-bit source address is always enabled. This value is read-only and it never changes.
Parameter range
0 - 0xFFFFFFFF [read-only]
Default
Set in the factory
DH command
Set or read the upper 32 bits of the 64-bit destination address. When you combine DH with DL, it
defines the destination address that the device uses for transmissions in Transparent mode.
The destination address is also used for I/O sampling in both Transparent and API modes.
To transmit using a 16-bit address, set DH to 0 and DL less than 0xFFFF.
0x000000000000FFFF is the broadcast address.
Parameter range
0 - 0xFFFFFFFF
Default
0
DL command
Set or display the lower 32 bits of the 64-bit destination address. When you combine DH with DL, it
defines the destination address that the device uses for transmissions in Transparent mode.
The destination address is also used for I/O sampling in both Transparent and API modes.
0x000000000000FFFF is the broadcast address.
Parameter range
0 - 0xFFFFFFFF
Default
0xFFFF
NI command
Stores the node identifier string for a device, which is a user-defined name or description of the
device. This can be up to 20 ASCII characters.
n XCTU prevents you from exceeding the string limit of 20 characters for this command. If you
are using another software application to send the string, you can enter longer strings, but the
software on the device returns an error.
Use the ND (Network Discovery) command with this string as an argument to easily identify devices
on the network.
The DN command also uses this identifier.
Parameter range
A string of case-sensitive ASCII printable characters from 0 to 20 bytes in length. A carriage return
or a comma automatically ends the command.
Default
0x20 (an ASCII space character)
Parameter range
0x20 - 0x2EE0 (x 100 ms)
Default
0x82 (13 seconds)
Parameter range
0x0 - 0x7 (bit field)
Bit field
Option Description
0x01 Append the DD (Digi Device Identifier) value to ND responses or API node identification
frames.
0x02 Local device sends ND response frame out the serial interface when ND is issued.
0x04 Append the RSSI of the last hop to ND, FN, and responses or API node identification
frames.
Default
0x0
CI (Cluster ID)
The application layer cluster ID value. The device uses this value as the cluster ID for all data
transmissions.
If you set this value to 0x12 (loopback Cluster ID), the destination node echoes any transmitted
packet back to the source device.
Parameter range
0 - 0xFFFF
Default
0x11 (Transparent data cluster ID)
DE command
Sets or displays the application layer destination ID value. The value is used as the destination
endpoint for all data transmissions. The default value (0xE8) is the Digi data endpoint.
Parameter range
0 - 0xFF
Default
0xE8
SE command
Sets or displays the application layer source endpoint value. The value is used as the source endpoint
for all data transmissions. The default value (0xE8) is the Digi data endpoint.
Sets or displays the application layer source endpoint value used for data transmissions.
This command only affects outgoing transmissions in transparent mode (AP=0).
0xE8 is the Digi data endpoint used for outgoing data transmissions.
0xE6 is the Digi device object endpoint used for configuration and commands.
Parameter range
0 - 0xFF
Default
0xE8
Parameter range
[read-only]
Default
0x3D6A
AG (Aggregator Support)
The AG command sends a broadcast through the network that has the following effects on nodes that
receive the broadcast:
n The receiving node establishes a DigiMesh route back to the originating node, if there is space
Parameter range
Any 64-bit address
Default
N/A
DN (Discover Node)
Resolves an NI (Node identifier) string to a physical address (case sensitive).
The following events occur after DN discovers the destination node:
When DN is sent in Command mode:
1. The device sets DL and DH to the extended (64-bit) address of the device with the matching NI
string.
2. The receiving device returns OK (or ERROR).
3. The device exits Command mode to allow for immediate communication. If an ERROR is
received, then Command mode does not exit.
When DN is sent as a AT Command frame - 0x08:
1. The receiving device returns 0xFFFE followed by its 64-bit extended addresses in a Remote
Command Response frame - 0x97.
2. The device returns an ERROR message if it is given without a destination node (that is without
a parameter) or if the given destination node does not respond within N? milliseconds.
Parameter range
20-byte ASCII string
Default
N/A
ND (Network Discover)
Discovers and reports all of the devices it finds on a network. If you send ND through a local API frame,
each network node returns a separate AT Command Response (0x88) or Remote Command Response
(0x97) frame, respectively.
Parameter range
N/A
Default
N/A
FN (Find Neighbors)
Discovers and reports all devices found within immediate (1 hop) RF range. FN reports the following
information for each device it discovers:
MY<CR> (always 0xFFFE)
SH<CR>
SL<CR>
NI<CR> (Variable length)
PARENT_NETWORK ADDRESS<CR> (2 Bytes) (always 0xFFFE)
DEVICE_TYPE<CR> (1 Byte: 0 = Coordinator, 1 = Router, 2 = End Device)
STATUS<CR> (1 Byte: Reserved)
PROFILE_ID<CR> (2 Bytes)
MANUFACTURER_ID<CR> (2 Bytes)
DIGI DEVICE TYPE<CR> (4 Bytes. Optionally included based on NO settings.)
RSSI OF LAST HOP<CR> (1 Byte. Optionally included based on NO settings.)
<CR>
If you send the FN command in Command mode, after (NT*100) ms + overhead time, the command
ends by returning a carriage return, represented by <CR>.
If you send the FN command through a local AT Command (0x08) or remote AT command (0x17) API
frame, each response returns as a separate AT Command Response (0x88) or Remote Command
Response (0x97) frame, respectively. The data consists of the bytes in the previous list without the
carriage return delimiters. The NI string ends in a 0x00 null character.
Parameter range
N/A
Default
N/A
Security commands
The following AT commands are security commands.
EE (Encryption Enable)
Enables or disables 128-bit Advanced Encryption Standard (AES) encryption.
Set this command parameter the same on all devices in a network.
Parameter range
0-1
Parameter Description
0 Encryption Disabled
1 Encryption Enabled
Default
0
Parameter range
128-bit value
Default
N/A
BD (Baud Rate)
Sets or displays the serial interface baud rate for communication between the device's serial port and
the host.
To request non-standard baud rates with values above 0x80, you can use the Serial Console toolbar in
XCTU to configure the serial connection (if the console is connected), or click the Connect button (if
the console is not yet connected).
When you send non-standard baud rates to a device, it stores the closest interface data rate
represented by the number in the BD register. Read the BD command by sending ATBD without a
parameter value, and the device returns the value stored in the BD register.
Parameter range
Standard baud rates: 0x0 - 0x7
Value Description
0x0 1,200 b/s
0x1 2,400 b/s
0x2 4,800 b/s
0x3 9,600 b/s
0x4 19,200 b/s
0x5 38,400 b/s
0x6 57,600 b/s
0x7 115,200 b/s
0x39 to 0xF4240 if the host supports it.
Default
0x03 (9600 b/s)
NB (Parity)
Set or read the serial parity settings for UART communications.
Parameter range
0x00 - 0x04
Parameter Description
0x00 No parity
0x01 Even parity
0x02 Odd parity
0x03 Mark parity (forced high)
0x04 Space parity (forced low)
Default
0x00
RO command
Set or read the number of character times of inter-character silence required before transmission
begins when operating in Transparent mode.
Set RO to 0 to transmit characters as they arrive instead of buffering them into one RF packet.
Parameter range
0 - 0xFF (x character times)
Default
3
Parameter range
0x11 - 0xEE bytes
Default
0xBE
API Mode
Set or read the API mode setting. The device can format the RF packets it receives into API frames
and send them out the serial port.
When you enable API, you must format the serial data as API frames because Transparent operating
mode is disabled.
Parameter range
0-2
Parameter Description
0 Transparent mode, API mode is off. All UART input and output is raw data and the
device uses the RO parameter to delineate packets.
1 API Mode Without Escapes. The device packetizes all UART input and output data in API
format, without escape sequences.
2 API Mode With Escapes. The device is in API mode and inserts escaped sequences to
allow for control characters. The device passes XON (0x11), XOFF (0x13), Escape
(0x7D), and start delimiter 0x7E as data.
Default
0
AO command
The API data frame output format for RF packets received.
Use AO to enable different API output frames.
Parameter range
0-2
Parameter Description
0 API Rx Indicator - 0x90, this is for standard data frames.
1 API Explicit Rx Indicator - 0x91, this is for Explicit Addressing data frames.
Default
0
CB command
Use CB to simulate commissioning pushbutton presses in software.
Set the parameter value to the number of button presses that you want to simulate. For example,
send CB1 to perform the action of pressing the Commissioning Pushbutton once.
See The Commissioning Pushbutton.
See Commissioning pushbutton.
Parameter range
0-4
Default
N/A
D0 (DIO0/AD0)
Sets or displays the DIO0/AD0 configuration (pin 20).
Parameter range
0-5
Parameter Description
0 Disabled
1 Commissioning Pushbutton
2 ADC
3 Digital input
4 Digital output, low
5 Digital output, high
Default
1
D1 (DIO1/AD1)
Sets or displays the DIO1/AD1 configuration (pin 19).
Parameter range
0, 2 - 5
Parameter Description
0 Disabled
1 N/A
2 ADC
3 Digital input
4 Digital output, low
5 Digital output, high
6 PTI_EN
Default
0
D2 (DIO2/AD2)
Sets or displays the DIO2/AD2 configuration (pin 18).
Parameter range
0, 2 - 5
Parameter Description
0 Disabled
1 N/A
2 ADC
3 Digital input
4 Digital output, low
5 Digital output, high
Default
0
D3 (DIO3/AD3)
Sets or displays the DIO3/AD3 configuration (pin 17).
Parameter range
0, 2 - 5
Parameter Description
0 Disabled
1 N/A
2 ADC
3 Digital input
4 Digital output, low
5 Digital output, high
Default
0
D4 (DIO4/AD4)
Sets or displays the DIO4/AD4 configuration (pin 11).
Parameter range
0, 2 - 5
Parameter Description
0 Disabled
1 N/A
2 ADC
3 Digital input
4 Digital output, low
5 Digital output, high
Default
0
D5 (DIO5/AD5/ASSOCIATED_INDICATOR)
Sets or displays the DIO5/AD5/ASSOCIATED_INDICATOR configuration (pin 15).
Parameter range
Parameter Description
0 Disabled
1 Associate LED indicator - blinks when associated
2 ADC
3 Digital input
4 Digital output, default low
5 Digital output, default high
Default
1
D6 (DIO6/RTS)
Sets or displays the DIO6/RTS configuration (pin 16).
Parameter range
0, 1, 3 - 5
Parameter Description
0 Disabled
1 RTS flow control
2 N/A
3 Digital input
4 Digital output, low
5 Digital output, high
Default
0
D7 (DIO7/CTS)
Sets or displays the DIO7/CTS configuration (pin 12).
Parameter range
0, 1, 3 - 7
Parameter Description
0 Disabled
1 CTS flow control
2 N/A
3 Digital input
4 Digital output, low
5 Digital output, high
6 RS-485 Tx enable, low Tx (0 V on transmit, high when idle)
7 RS-485 Tx enable high, high Tx (high on transmit, 0 V when idle)
Default
0x1
D8 (DIO8/SLEEP_REQUEST)
Sets or displays the DIO8/SLEEP_REQUEST configuration (pin 9).
This line is also used with Pin Sleep, but pin sleep ignores the D8 configuration. It is always used to
control pin sleep, regardless of configuration of D8.
Parameter range
0, 1, 3 - 5
Parameter Description
0 Disabled
1 N/A
2 N/A
3 Digital input
4 Digital output, low
5 Digital output, high
Default
1
D9 (ON_SLEEP)
Sets or displays the ON/SLEEP configuration (pin 13).
Parameter range
0, 1, 3 - 5
Parameter Description
0 Disabled
1 ON/SLEEP output
2 N/A
3 Digital input
4 Digital output, low
5 Digital output, high
Default
1
P0 (DIO10/RSSI/PWM0 Configuration)
Sets or displays the PWM0/RSSI/DIO10 configuration (pin 6).
Parameter range
0-5
Parameter Description
0 Disabled
1 RSSI PWM0 output
2 PWM0 output
3 Digital input
4 Digital output, low
5 Digital output, high
Default
1
P1 (DIO11/PWM1 Configuration)
Sets or displays the DIO11/PWM1 configuration (pin 7).
Parameter range
0-5
Parameter Description
0 Disabled
1 N/A
Parameter Description
2 PWM1 output
3 Digital input
4 Digital output, low
5 Digital output, high
Default
0
P2 (DIO12 Configuration)
Sets or displays the DIO12 configuration (pin 4).
Parameter range
1, 3 - 5
Parameter Description
0 Disabled
1 N/A
2 N/A
3 Digital input
4 Digital output, low
5 Digital output, high
Default
0
6 DIO8/SLEEP_REQUEST
7 DIO14/DIN/CONFIG
8 DIO5/AD6/ASSOCIATE
9 DIO9/On/SLEEP
10 DIO12
11 DIO10/RSSI/PWM0
12 DIO11/PWM1
13 DIO7/CTS
14 DOUT (pin 2)
Parameter range
0 - 0x7FFF (bit field)
Default
0x1FFF
Parameter range
0 - 0x3FF
Default
0
Parameter range
0 - 0x3FF
Default
0
LT command
Set or read the Associate LED blink time. If you use the D5 command to enable the Associate LED
functionality (DIO5/Associate pin), this value determines the on and off blink times for the LED when
the device has joined the network.
If LT = 0, the device uses the default blink rate: 500 ms for a sleep coordinator, 250 ms for all other
nodes.
For all other LT values, the firmware measures LT in 10 ms increments.
Parameter range
0x14 - 0xFF (x 10 ms)
Default
0
RP command
The PWM timer expiration in 0.1 seconds. RP sets the duration of pulse width modulation (PWM) signal
output on the RSSI pin. The signal duty cycle updates with each received packet and shuts off when
the timer expires.
When RP = 0xFF, the output is always on.
Parameter range
0 - 0xFF (x 100 ms)
Default
0x28 (four seconds)
Parameter range
0 - 0xFFFF (bit field)
Default
0
Parameter range
1 - 0xFF
Default
1
tb
IR (Sample Rate)
Set or read the I/O sample rate to enable periodic sampling. When set, this parameter causes the
device to sample all enabled DIO and ADC at a specified interval.
To enable periodic sampling, set IR to a non-zero value, and enable the analog or digital I/O
functionality of at least one device pin (see D0 (DIO0/AD0) -D9 (ON_SLEEP), P0 (DIO10/RSSI/PWM0
Configuration)- P2 (DIO12 Configuration).
WARNING! If you set IR to 1 or 2, the device will not keep up and many samples will be
lost.
Parameter range
0 - 0xFFFF (x 1 ms)
Default
0
IS command
Forces a read of all enabled digital and analog input lines. The data is returned through the UART or
SPI.
When operating in Transparent mode (AP = 0), the data is returned in the following format:
All bytes are converted to ASCII:
number of samples<CR>
channel mask<CR>
DIO data<CR> (If DIO lines are enabled)
ADC channel Data<CR> (This will repeat for every enabled ADC channel)
<CR> (end of data noted by extra <CR>)
When operating in API mode (AP = 1), the command immediately returns an OK response. The data
follows in the normal API format for DIO data.
Parameter range
N/A
Default
N/A
Sleep commands
The following AT commands are sleep commands.
SM command
Sets or displays the sleep mode of the device.
Normal mode is always awake. Pin sleep modes allow you to wake the device with the SLEEP_
REQUEST line. Asynchronous cyclic mode sleeps for SP time and briefly wakes, checking for activity.
Sleep Support mode is always awake but can effectively communicate with SM8 nodes. Synchronized
Cyclic Sleep nodes sleep for SP and wake for ST time.
Synchronous modes are not compatible with asynchronous modes.
Parameter range
0, 1, 4, 5, 7, 8
Parameter Description
0 Normal.
1 Asynchronous Pin Sleep. In this mode, the SLEEP_RQ line controls the sleep/wake
state of the device.
2 N/A
3 N/A
4 Asynchronous Cyclic Sleep. In this mode, the device periodically sleeps and wakes
based on the SP and ST commands.
5 Asynchronous Cyclic Sleep Pin Wake. When you assert the SLEEP_RQ pin, the device
enters a cyclic sleep mode similar to Asynchronous Cyclic Sleep. When you de-assert
the SLEEP_RQ pin, the device immediately wakes up. The device does not sleep when
you de-assert the SLEEP_RQ pin.
6 N/A
7 Sleep Support
8 Synchronized Cyclic Sleep
Default
0
SO command
Set or read the sleep options bit field of a device. This command is a bitmask.
You can set or clear any of the available sleep option bits.
You cannot set bit 0 and bit 1 at the same time.
Parameter range
0x0 - 0xFFFF
For synchronous sleep devices, the following sleep bit field options are defined:
Bit Option
0 Preferred sleep coordinator; setting this bit causes a sleep compatible device to always act as
sleep coordinator
1 Non-sleep coordinator; setting this bit causes a device to never act as a sleep coordinator
2 Enable API sleep status messages
3 Disable early wake-up for missed syncs
4 Enable node type equality (disables seniority based on device type)
5 Disable lone coordinator sync repeat
For asynchronous sleep devices, the following sleep bit field options are defined:
Bit Option
8 Always wake for ST time
Default
0x2 (non-sleep coordinator)
SN command
Set or read the number of sleep periods value. This command controls the number of sleep periods
that must elapse between assertions of the ON_SLEEP line during the wake time of Asynchronous
Cyclic Sleep. This allows external circuitry to sleep longer than the SP time.
During cycles when ON_SLEEP is de-asserted, the device wakes up and checks for any serial or RF
data. If it receives any such data, then it asserts the ON_SLEEP line and the device wakes up fully.
Otherwise, the device returns to sleep after checking.
This command does not work with synchronous sleep devices.
Parameter range
1 - 0xFFFF
Default
1
Example
Set to 1 to set ON_SLEEP high after each SP time (default).
If SN = 3, the ON_SLEEP line asserts only every third wakeup; SN = 9, every ninth wakeup; and so
forth.
SP (Sleep Time)
Sets or displays the device's sleep time. This command defines the amount of time the device sleeps
per cycle.
Parameter range
0x1 - 0x15F900 (x 10 ms)
Default
0xC8
ST (Wake Time)
Sets or displays the wake time of the device.
For devices in asynchronous sleep, ST defines the amount of time that a device stays awake after it
receives RF or serial data.
For devices in synchronous sleep, ST defines the amount of time that a device stays awake when
operating in cyclic sleep mode. The command adjusts the value upwards automatically if it is too small
to function properly based on other settings.
For devices in synchronous sleep, the minimum wake time is a function of MT, SP, NH, NN, and
platform dependent values. If you increase SP, NH, NN, or MT, the ST value raises automatically. The
maximum value is one hour (0x36EE80 ms).
Parameter range
0x1 - 0x36EE80 (x 1 ms)
Default
0x7D0 (3 seconds)
Parameter range
0 - 0xFFFF (x 1 ms)
Default
0
SS (Sleep Status)
Queries a number of Boolean values that describe the device's status.
Bit Description
0 This bit is true when the network is in its wake state.
1 This bit is true if the node currently acts as a network sleep coordinator.
2 This bit is true if the node ever receives a valid sync message after it powers on.
3 This bit is true if the node receives a sync message in the current wake cycle.
4 This bit is true if you alter the sleep settings on the device so that the node
nominates itself and sends a sync message with the new settings at the beginning of
the next wake cycle.
5 This bit is true if you request that the node nominate itself as the sleep coordinator
using the Commissioning Pushbutton or the CB2 command.
Parameter range
N/A
[read-only]
Default
N/A
Parameter range
N/A
Default
N/A
Parameter range
N/A
Default
N/A
Parameter range
N/A
Default
N/A
Parameter range
N/A
Default
N/A
CC (Command Character)
The character value the device uses to enter Command mode.
The default value (0x2B) is the ASCII code for the plus (+) character. You must enter it three times
within the guard time to enter Command mode. To enter Command mode, there is also a required
period of silence before and after the command sequence characters of the Command mode
sequence (GT + CC + GT). The period of silence prevents inadvertently entering Command mode.
Parameter range
0 - 0xFF
Recommended: 0x20 - 0x7F (ASCII)
Default
0x2B (the ASCII plus character: +)
CT command
Sets or displays the Command mode timeout parameter. If a device does not receive any valid
commands within this time period, it returns to Idle mode from Command mode.
Parameter range
2 - 0x1770 (x 100 ms)
Default
0x64 (10 seconds)
CN command
Immediately exits Command Mode and applies pending changes.
Parameter range
N/A
Default
N/A
GT command
Set the required period of silence before and after the command sequence characters of the
Command mode sequence (GT + CC + GT). The period of silence prevents inadvertently entering
Command mode.
Parameter range
0x2 - 0xCE4 (x 1 ms)
Default
0x3E8 (one second)
VL command
Shows detailed version information including the application build date and time.
Parameter range
N/A
Default
N/A
VR command
Reads the firmware version on a device.
Parameter range
0 - 0xFFFFFFFF [read-only]
Default
Set in the factory
HV command
Display the hardware version number of the device.
Parameter range
0 - 0xFFFF [read-only]
Default
Set in firmware
DD command
Stores the Digi device type identifier value. Use this value to differentiate between multiple XBee
devices.
If you change DD, RE command will not restore defaults. The only way to get DD back to default values
is to explicitly set it to defaults.
Parameter range
0 - 0xFFFFFFFF
Default
0x50000
Note NP returns a hexadecimal value. For example, if NP returns 0x54, this is equivalent to 84 bytes.
Parameter range
0 - 0xFFFF (bytes) [read-only]
Default
N/A
CK (Configuration CRC)
Displays the cyclic redundancy check (CRC) of the current AT command configuration settings.
This command allows you to detect an unexpected configuration change on a device. Use the code
that the device returns to determine if a node has the configuration you want.
After a firmware update this command may return a different value.
Parameter range
0 - 0xFFFFFFFF
Default
N/A
AP command
setting Description
AP = 0 Transparent operating mode, UART serial line replacement with API modes
disabled. This is the default option.
AP = 1 API operation.
AP = 2 API operation with escaped characters (only possible on UART).
The API data frame structure differs depending on what mode you choose.
The firmware silently discards any data it receives prior to the start delimiter. If the device does not
receive the frame correctly or if the checksum fails, the device discards the frame.
http://knowledge.digi.com/articles/Knowledge_Base_Article/Escaped-Characters-and-API-Mode-2
The following table shows the structure of an API frame with escaped characters:
Escape characters
When sending or receiving a UART data frame, you must escape (flag) specific data values so they do
not interfere with the data frame sequencing. To escape an interfering data byte, insert 0x7D and
follow it with the byte to be escaped XOR’d with 0x20. If not escaped, 0x11 and 0x13 are sent as is.
Data bytes that need to be escaped:
n 0x7E – Frame delimiter
n 0x7D – Escape
n 0x11 – XON
n 0x13 – XOFF
Example - Raw UART data frame (before escaping interfering bytes): 0x7E 0x00 0x02 0x23 0x11 0xCB
0x11 needs to be escaped which results in the following frame: 0x7E 0x00 0x02 0x23 0x7D 0x31 0xCB
Note In the previous example, the length of the raw data (excluding the checksum) is 0x0002 and the
checksum of the non-escaped data (excluding frame delimiter and length) is calculated as:
0xFF - (0x23 + 0x11) = (0xFF - 0x34) = 0xCB.
Start delimiter
This field indicates the beginning of a frame. It is always 0x7E. This allows the device to easily detect a
new incoming frame.
Length
The length field specifies the total number of bytes included in the frame's data field. Its two-byte
value excludes the start delimiter, the length, and the checksum.
Frame data
This field contains the information that a device receives or will transmit. The structure of frame data
depends on the purpose of the API frame:
Frame data
Start Frame
delimiter Length type Data Checksum
1 2 3 4 5 6 7 8 9 ... n n+1
0x7E MSB LSB API frame type Data Single byte
n Frame type is the API frame type identifier. It determines the type of API frame and indicates
how the Data field organizes the information.
n Data contains the data itself. This information and its order depend on the what type of frame
that the Frame type field defines.
Checksum
Checksum is the last byte of the frame and helps test data integrity. It is calculated by taking the hash
sum of all the API frame bytes that came before it, except the first three bytes (start delimiter and
length).
The device does not process frames sent through the serial interface with incorrect checksums, and
ignores their data.
Example
Consider the following sample data packet: 7E 00 0A 01 01 50 01 00 48 65 6C 6C 6F B8+
Byte(s) Description
7E Start delimeter
00 0A Length bytes
01 API identifier
01 API frame ID
50 01 Destination address low
00 Option byte
48 65 6C 6C 6F Data packet
B8 Checksum
To calculate the check sum you add all bytes of the packet, excluding the frame delimiter 7E and the
length (the second and third bytes):
7E 00 0A 01 01 50 01 00 48 65 6C 6C 6F B8
Add these hex bytes:
Now take the result of 0x247 and keep only the lowest 8 bits which in this example is 0xC4 (the two
far right digits). Subtract 0x47 from 0xFF and you get 0x3B (0xFF - 0xC4 = 0x3B). 0x3B is the checksum
for this data packet.
If an API data packet is composed with an incorrect checksum, the XBee/XBee-PRO DigiMesh 2.4 will
consider the packet invalid and will ignore the data.
To verify the check sum of an API packet add all bytes including the checksum (do not include the
delimiter and length) and if correct, the last two far right digits of the sum will equal FF.
01 + 01 + 50 + 01 + 00 + 48 + 65 + 6C + 6C + 6F + B8 = 2FF
Frame descriptions
The following sections describe the API frames.
Note Using a Frame ID of 0 disables responses, which can reduce network congestion for non-critical
transmissions.
AT commands
The following image shows the API frame exchange that takes place at the UART when you send a
0x08 AT Command Request or 0x09 AT Command-Queue Request to read or set a device parameter.
To disable the 0x88 AT Command Response, set the frame ID to 0 in the request.
The device sends the 0x8B Transmit Status frame at the end of a data transmission unless you set the
frame ID to 0 in the transmit request. If the packet cannot be delivered to the destination, the 0x8B
Transmit Status frame indicates the cause of failure.
Use the AP command to choose the type of data frame you want to receive, either a (0x90) Receive
Packet or a (0x91) Explicit Rx Indicator frame.
Remote AT commands
The following image shows the API frame exchanges that take place on the serial interface when you
send a 0x17 Remote AT Command frame The 0x97 Remote AT Command Response is always
generated and you can use it to identify if the remote device successfully received and applied the
command.
Device Registration
The following image shows the API frame exchanges that take place at the serial interface when
registering a joining device to a trust center.
case RX_IO_SAMPLE_FRAME:
//process IO sample frame
break;
case NODE_IDENTIFICATION_FRAME:
//process node identification frame
break;
default:
//Discard any other API frame types that are not being used
break;
}
}
Description
Use this frame to query or set device parameters on the local device. This API command applies
changes after running the command. You can query parameter values by sending the 0x08 AT
Command frame with no parameter value field (the two-byte AT command is immediately followed by
the frame checksum).
A 0x8B response frame is populated with the parameter value that is currently set on the device.
Format
The following table provides the contents of the frame. For details on frame structure, see API frame
specifications.
Frame
data
fields Offset Description
Frame 3 0x08
type
AT 5-6 Command name: two ASCII characters that identify the AT command.
command
Parameter 7-n If present, indicates the requested parameter value to set the given register.
value If no characters are present, it queries the register.
Example
The following example illustrates an AT Command frame when you query the device's NH parameter
value.
Description
This frame allows you to query or set device parameters. In contrast to the AT Command (0x08)
frame, this frame queues new parameter values and does not apply them until you issue either:
n The AT Command (0x08) frame (for API type)
n The AC command
When querying parameter values, the 0x09 frame behaves identically to the 0x08 frame. The device
returns register queries immediately and not does not queue them. The response for this command is
also an AT Command Response frame (0x88).
Format
The following table provides the contents of the frame. For details on frame structure, see API frame
specifications.
Frame data
fields Offset Description
Frame type 3 0x09
Frame ID 4 Identifies the data frame for the host to correlate with a subsequent
ACK. If set to 0, the device does not send a response.
AT command 5-6 Command name: two ASCII characters that identify the AT command.
Parameter value 7-n If present, indicates the requested parameter value to set the given
register. If no characters are present, queries the register.
Example
The following example sends a command to change the baud rate (BD) to 115200 baud, but does not
apply the changes immediately. The device continues to operate at the previous baud rate until you
apply the changes.
Note In this example, you could send the parameter as a zero-padded 2-byte or 4-byte value.
Description
This frame causes the device to send payload data as an RF packet to a specific destination.
n For broadcast transmissions, set the 64-bit destination address to 0x000000000000FFFF .
n For unicast transmissions, set the 64 bit address field to the address of the desired destination
node.
n Set the reserved field to 0xFFFE.
n Query the NP command to read the maximum number of payload bytes.
You can set the broadcast radius from 0 up to NH. If set to 0, the value of NH specifies the broadcast
radius (recommended). This parameter is only used for broadcast transmissions.
You can read the maximum number of payload bytes with the NP command.
Note Using source routing reduces the RF payload by two bytes per intermediate hop in the source
route.
Format
The following table provides the contents of the frame. For details on the frame structure, see API
frame specifications.
Frame
data
fields Offset Description
Frame 3 0x10
type
Frame ID 4 Identifies the data frame for the host to correlate with a subsequent ACK. If
set to 0, the device does not send a response.
64-bit 5-12 MSB first, LSB last. Set to the 64-bit address of the destination device.
destination Broadcast = 0x000000000000FFFF
address
Reserved 13-14 Set to 0xFFFE.
Broadcast 15 Sets the maximum number of hops a broadcast transmission can occur. If set
radius to 0, the broadcast radius is set to the maximum hops value.
Frame
data
fields Offset Description
Transmit 16 0x01 = Disable ACK
options 0x02 = Disable network address discovery
0x04 = Generate trace route frames for each hop of all transmitted packets
0x08 = Generate NACK frames (which look identical to trace route frames) on
transmitted packets for any hop that fails along the path. No trace route
frames are generated for successful hops.
Note 0x04 is the hex value when bit 2 is set and 0x08 is the hex value when bit
3 is set.
Example
The example shows how to send a transmission to a device if you disable escaping (AP = 1), with
destination address 0x0013A200 400A0127, and payload “TxData0A”.
If you enable escaping (AP = 2), the frame should look like:
0x7E 0x00 0x16 0x10 0x01 0x00 0x7D 0x33 0xA2 0x00 0x40 0x0A 0x01 0x27 0xFF 0xFE 0x00
0x00 0x54 0x78 0x44 0x61 0x74 0x61 0x30 0x41 0x7D 0x33
The device calculates the checksum (on all non-escaped bytes) as [0xFF - (sum of all bytes from API
frame type through data payload)].
Description
This frame is similar to Transmit Request (0x10), but it also requires you to specify the application-
layer addressing fields: endpoints, cluster ID, and profile ID.
This frame causes the device to send payload data as an RF packet to a specific destination, using
specific source and destination endpoints, cluster ID, and profile ID.
n For broadcast transmissions, set the 64-bit destination address to 0x000000000000FFFF .
n For unicast transmissions, set the 64 bit address field to the address of the desired destination
node.
n Set the reserved field to 0xFFFE.
You can read the maximum number of payload bytes with the NP command.
Format
The following table provides the contents of the frame. For details on the frame structure, see API
frame specifications.
Frame data
fields Offset Description
Frame type 3 0x11
Frame ID 4 Identifies the data frame for the host to correlate with a subsequent
ACK. If set to 0, the device does not send a response.
64-bit 5-12 MSB first, LSB last. Set to the 64-bit address of the destination device.
destination Broadcast = 0x000000000000FFFF
address
Reserved 13-14 Set to 0xFFFE.
Source endpoint 15 Source endpoint for the transmission.
Destination 16 Destination endpoint for the transmission.
endpoint
Cluster ID 17-18 The Cluster ID that the host uses in the transmission.
Profile ID 19-20 The Profile ID that the host uses in the transmission.
Broadcast radius 21 Sets the maximum number of hops a broadcast transmission can
traverse. If set to 0, the transmission radius set to the network
maximum hops value.
If the broadcast radius exceeds the value of NH then the devices use the
value of NH as the radius. Only broadcast transmissions use this
parameter.
Frame data
fields Offset Description
Transmission 22 0x01 = Disable ACK
options 0x02 = Disable network address discovery
0x04 = Generate trace route frames for each hop of all transmitted
packets
0x08 = Generate NACK frames (which look identical to trace route
frames) on transmitted packets for any hop that fails along the path. No
trace route frames are generated for successful hops.
Note 0x04 is the hex value when bit 2 is set and 0x08 is the hex value
when bit 3 is set.
Data payload 23-n Up to NP bytes per packet. Sent to the destination device.
Example
The following example sends a data transmission to a device with:
n 64-bit address: 0x0013A200 01238400
Frame ID 4 0x01
10 0x23
11 0x84
LSB12 0x00
Reserved 13 0xFF
14 0xFE
Source endpoint 15 0xE8
Destination endpoint 16 0xE8
Cluster ID 17 0x00
18 0x11
Profile ID 19 0xC1
20 0x05
Broadcast radius 21 0x00
Transmit options 22 0x00
Data payload 23 0x54
24 0x78
25 0x44
26 0x61
27 0x74
28 0x61
Checksum 29 0xA6
Description
Used to query or set device parameters on a remote device. For parameter changes on the remote
device to take effect, you must apply changes, either by setting the Apply Changes options bit, or by
sending an AC command to the remote.
Format
The following table provides the contents of the frame. For details on frame structure, see API frame
specifications.
Frame
data
fields Offset Description
Frame 3 0x17
type
Frame ID 4 Identifies the data frame for the host to correlate with a subsequent ACK. If
set to 0, the device does not send a response.
64-bit 5-12 MSB first, LSB last. Set to the 64-bit address of the destination device.
destination
address
Reserved 13-14 Set to 0xFFFE.
Remote 15 0x02 = Apply changes on remote. If you do not set this, you must send the
command AC command for changes to take effect.
options Set all other bits to 0.
AT 16-17 Command name: two ASCII characters that identify the command.
command
Command 18-n If present, indicates the parameter value you request for a given register. If
parameter no characters are present, it queries the register. Numeric parameter values
are given in binary format.
Example
The following example sends a remote command:
n Change the broadcast hops register on a remote device to 1 (broadcasts go to 1-hop neighbors
only).
n Apply changes so the new configuration value takes effect immediately.
In this example, the 64-bit address of the remote device is 0x0013A200 40401122.
14 0xFE
Remote command options 15 0x02 (apply changes)
AT command 16 0x42 (B)
17 0x48 (H)
Command parameter 18 0x01
Checksum 19 0xF5
Description
A device sends this frame in response to an AT Command (0x08 or 0x09) frame. Some commands send
back multiple frames; for example, the ND command.
Format
Frame data
fields Offset Description
Frame type 3 0x88
Frame ID 4 Identifies the data frame for the host to correlate with a subsequent ACK. If
set to 0, the device does not send a response.
Example
If you change the BD parameter on a local device with a frame ID of 0x01, and the parameter is valid,
the user receives the following response.
Frame data
fields Offset Example
Start delimiter 0 0x7E
Length MSB 1 0x00
LSB 2 0x05
Frame type 3 0x88
Frame ID 4 0x01
AT command 5 0x42 (B)
6 0x44 (D)
Frame data
fields Offset Example
Command status 7 0x00
Command data (No command data implies the parameter was set rather than
queried)
Checksum 8 0xF0
Description
Devices send the status messages in this frame in response to specific conditions.
Format
The following table provides the contents of the frame. For details on frame structure, see API frame
specifications.
Example
When a device powers up, it returns the following API frame.
Checksum 5 0x75
Description
When a Transmit Request (0x10, 0x11) completes, the device sends a Transmit Status message out of
the serial interface. This message indicates if the Transmit Request was successful or if it failed.
Note Broadcast transmissions are not acknowledged and always return a status of 0x00, even if the
delivery failed.
Format
The following table provides the contents of the frame. For details on frame structure, see API frame
specifications.
Frame data
fields Offset Description
Frame type 3 0x8B
Frame ID 4 Identifies the serial interface data frame being reported. If Frame ID = 0 in
the associated request frame, no response frame is delivered.
16-bit 5 The 16-bit Network Address where the packet was delivered (if
destination successful). If not successful, this address is 0xFFFD (destination address
address 6 unknown).
Transmit retry 7 The number of application transmission retries that occur.
count
Delivery 8 0x00 = Success
status 0x01 = MAC ACK failure
0x02 = Collision avoidance failure
0x21 = Network ACK failure
0x25 = Route not found
0x31 = Internal resource error
0x32 = Internal error
Example
In the following example, the destination device reports a successful unicast data transmission
successful and a route discovery occurred. The outgoing Transmit Request that this response frame
uses Frame ID of 0x47.
Description
If you enable NACK or the Trace Route option on a DigiMesh unicast transmission, a device can output
this frame for the transmission.
Format
The following table provides the contents of the frame. For details on frame structure, see API frame
specifications.
Length 5 The number of bytes that follow, excluding the checksum. If the
length increases, new items have been added to the end of the list
for future revisions.
Timestamp 6-9 System timer value on the node generating the Route Information
Packet. The timestamp is in microseconds. Only use this value for
relative time measurements because the time stamp count restarts
approximately every hour.
ACK timeout count 10 The number of MAC ACK timeouts that occur.
TX blocked count 11 The number of times the transmission was blocked due to reception
in progress.
Reserved 12 Reserved, set to 0s.
Destination address 13-20 The address of the final destination node of this network-level
transmission.
Source address 21-28 Address of the source node of this network-level transmission.
Responder address 29-36 Address of the node that generates this Route Information packet
after it sends (or attempts to send) the packet to the next hop (the
Receiver node).
Receiver address 37-44 Address of the node that the device sends (or attempts to send) the
data packet.
Example
The following example represents a possible Route Information Packet. A device receives the packet
when it performs a trace route on a transmission from one device (serial number 0x0013A200
4052AAAA) to another (serial number 0x0013A200 4052DDDD).
This particular frame indicates that the network successfully forwards the transmission from one
device (serial number 0x0013A200 4052BBBB) to another device (serial number 0x0013A200
4052CCCC).
14 0x13
15 0xA2
16 0x00
17 0x40
18 0x52
19 0xAA
LSB 20 0xAA
Description
The device sends out an Aggregate Addressing Update frame on the serial interface of an API-enabled
node when an address update frame (generated by the AG command being issued on a node in the
network) causes the node to update its DH and DL registers.
For more information, refer to Establish and maintain network links.
Format
The following table provides the contents of the frame. For details on frame structure, see API frame
specifications.
Frame
data
fields Offset Description
Frame 3 0x8E
type
Format 4 Byte reserved to indicate the format of additional packet information which may
ID be added in future firmware revisions. In the current firmware revision, this field
returns 0x00.
New 5-12 Address to which DH and DL are being set.
address
Old 13-20 Address to which DH and DL were previously set.
address
Example
In the following example, a device with destination address (DH/DL) of 0x0013A200 4052AAAA updates
its destination address to 0x0013A200 4052BBBB.
Description
When a device configured with a standard API Rx Indicator (AO = 0) receives an RF data packet, it
sends it out the serial interface using this message type.
Format
The following table provides the contents of the frame. For details on frame structure, see API frame
specifications.
Example
In the following example, a device with a 64-bit address of 0x0013A200 40522BAA sends a unicast
data transmission to a remote device with payload RxData. If AO=0 on the receiving device, it sends
the following frame out its serial interface.
13 0xFE
Receive options 14 0x01
Received data 15 0x52
16 0x78
17 0x44
18 0x61
19 0x74
20 0x61
Checksum 21 0x11
Description
When a device configured with explicit API Rx Indicator (AO = 1) receives an RF packet, it sends it out
the serial interface using this message type.
Note If a Transmit Request frame - 0x10 is sent to a device with AO = 1, the receiving device receives
a 0x91 frame with the Source endpoint (SE), Destination endpoint (DE), and Cluster ID (CI) that were
set on the transmitting device in Transparent mode, and not the default values.
The Cluster ID and endpoints must be used to identify the type of transaction that occurred.
Format
The following table provides the contents of the frame. For details on frame structure, see API frame
specifications.
Example
In the following example, a device with a 64-bit address of 0x0013A200 40522BAA sends a broadcast
data transmission to a remote device with payload RxData.
If a device sends the transmission:
n With source and destination endpoints of 0xE0
n Cluster ID = 0x2211
n Profile ID = 0xC105
If AO = 1 on the receiving device, it sends the following frame out its serial interface.
13 0xFE
Source endpoint 14 0xE0
Destination endpoint 15 0xE0
Cluster ID 16 0x22
17 0x11
Profile ID 18 0xC1
19 0x05
Receive options 20 0x02
Received data 21 0x52
22 0x78
23 0x44
24 0x61
25 0x74
26 0x61
Checksum 27 0x68
Description
When you enable periodic I/O sampling or digital I/O change detection on a remote device, the UART
of the device that receives the sample data sends this frame out.
Format
The following table provides the contents of the frame. For details on frame structure, see API frame
specifications.
Frame data
fields Offset Description
Frame type 3
64- 4-11 The sender's 64-bit address.
bit source address
Reserved 12-13 Reserved.
Receive options 14 Bit field:
0x01 = Packet acknowledged
0x02 = Packet is a broadcast packet
Ignore all other bits
Number of 15 The number of sample sets included in the payload. Always set to 1.
samples
Digital channel 16-17 Bitmask field that indicates which digital I/O lines on the 17 0x1C
mask remote have sampling enabled, if any.
Analog channel 18 Bitmask field that indicates which analog I/O lines on the remote have
mask sampling enabled, if any.
Digital samples (if 19-20 If the sample set includes any digital I/O lines (Digital channel mask >
included) 0), these two bytes contain samples for all enabled digital I/O lines. DIO
lines that do not have sampling enabled return 0. Bits in these two
bytes map the same as they do in the Digital channel mask field.
Analog sample 21-22 If the sample set includes any analog I/O lines (Analog channel mask >
0), each enabled analog input returns a 2-byte value indicating the A/D
measurement of that input. Analog samples are ordered sequentially
from ADO/DIO0 to AD3/DIO3.
Example
In the following example, the device receives an I/O sample from a device with a 64-bit serial number
of 0x0013A20040522BAA.
The configuration of the transmitting device takes a digital sample of a number of digital I/O lines and
an analog sample of AD1. It reads the digital lines to be 0x0014 and the analog sample value is 0x0225.
Description
A device receives this frame when:
n it transmits a node identification message to identify itself
n AO = 0
The data portion of this frame is similar to a network discovery response. For more information, see
ND (Network Discover).
Format
The following table provides the contents of the frame. For details on frame structure, see API frame
specifications.
Frame data
fields Offset Description
Frame type 3 0x95
64-bit source 4-11 MSB first, LSB last. The sender's 64-bit address.
address
Reserved 12-13 Reserved.
Frame data
fields Offset Description
Digi Profile ID 31-32 Set to the Digi application profile ID.
Digi 33-34 Set to the Digi Manufacturer ID.
Manufacturer
ID
Digi DD value 35-38 Reports the DD value of the responding device. Use the NO command to
(optional) enable this field.
RSSI (optional) 39 Received signal strength indicator. Use the NO command to enable this
field.
Example
If you press the commissioning pushbutton on a remote device with 64-bit address
0x0013A200407402AC and a default NI string sends a Node Identification, all devices on the network
receive the following node identification indicator:
A remote device with 64-bit address 0x0013A200407402AC and a default NI string sends a Node
Identification, all devices on the network receive the following node identification indicator:
0x7e 0025 9500 13a2 0040 7402 acff fec2 fffe 0013 a200 4074 02ac 2000 fffe 0101
c105 101e
If you press the commissioning button on a remote router device with 64-bit address 0x0013A200
40522BAA, 16-bit address 0x7D84, and default NI string, devices on the network receive the node
identification indicator.
13 0xFE
Receive options 14 0xC2
Reserved 15 0xFF
16 0xFE
64-bit remote address MSB 17 0x00
18 0x13
19 0xA2
20 0x00
21 0x40
22 0x74
23 0x02
LSB 24 0xAC
NI string 25 0x20
26 0x00
Reserved 27 0xFF
28 0xFE
Device type 29 0x01
Source event 30 0x01
Digi Profile ID 31 0xC1
32 0x05
Digi Manufacturer ID 33 0x10
34 0x1E
Digi DD value 35 0x00
(optional)
36 0x0C
37 0x00
38 0x00
RSSI (optional) 39 0x2E
Checksum 40 0x33
Description
If a device receives this frame in response to a Remote Command Request (0x17) frame, the device
sends an AT Command Response (0x97) frame out the serial interface.
Some commands, such as the ND command, may send back multiple frames.
Format
The following table provides the contents of the frame. For details on frame structure, see API frame
specifications.
Example
If a device sends a remote command to a remote device with 64-bit address 0x0013A200 40522BAA to
query the SL command, and if the frame ID = 0x55, the response would look like the following
example.
FCC notices
IMPORTANT: The XBee / XBee-PRO RF Module has been certified by the FCC for use with other
products without any further certification (as per FCC section 2.1091). Modifications not expressly
approved by Digi could void the user's authority to operate the equipment.
IMPORTANT: OEMs must test final product to comply with unintentional radiators (FCC section 15.107
and 15.109) before declaring compliance of their final product to Part 15 of the FCC rules.
IMPORTANT: The RF module has been certified for remote and base radio applications. If the module
will be used for portable applications, please take note of the following instructions:
n For XBee modules where the antenna gain is less than 13.8 dBi, no additional SAR testing is
required. The 20 cm separation distance is not required for antenna gain less than 13.8 dBi.
n For XBee modules where the antenna gain is greater than 13.8 dBi and for all XBee-PRO
modules, the device must undergo SAR testing.
This equipment has been tested and found to comply with the limits for a Class B digital device,
pursuant to Part 15 of the FCC Rules. These limits are designed to provide reasonable protection
against harmful interference in a residential installation. This equipment generates, uses and can
radiate radio frequency energy and, if not installed and used in accordance with the instructions, may
cause harmful interference to radio communications. However, there is no guarantee that
interference will not occur in a particular installation.
If this equipment does cause harmful interference to radio or television reception, which can be
determined by turning the equipment off and on, the user is encouraged to try to correct the
interference by one or more of the following measures:
1The FCC ID for the XBee is “OUR-XBEE.” The FCC ID for the XBee-PRO is “OUR-XBEEPRO.”
RF exposure statement
If you are an integrating the XBee into another product, you must include the following Caution
statement in product manuals to alert users of FCC RF exposure compliance:
Antennas approved for use with the XBee/XBee-PRO RF Modules (cable loss is not required)
Type Minimum
Part number (description) Gain Application* separation
A24-HASM-450 Dipole (half-wave 2.1 dBi Fixed/mobile 20 cm
articulated
RPSMA - 4.5”)
29000095 Dipole (half-wave 2.1 dBi Fixed/mobile 20 cm
articulated
RPSMA - 4.5”)
Type Minimum
Part number (description) Gain Application* separation
A24-HABSM* Dipole (articulated 2.1 dBi Fixed 20 cm
RPSMA)
A24-HABUF-P5I Dipole (half-wave 2.1 dBi Fixed 20 cm
articulated
bulkhead mount
U.FL. with 5”
pigtail)
A24-HASM-525 Dipole (half-wave 2.1 dBi Fixed/mobile 20 cm
articulated
RPSMA - 5.25")
A24-QI Monopole 1.5 dBi Fixed 20 cm
(integrated whip)
A24-C1 Surface-mount -1.5 dBi Fixed/mobile 20 cm
29000430 Integrated PCB -0.5 dBi Fixed/mobile 20 cm
Antenna
* If you are using the RF module in a portable application or if the module is used in a handheld
device and the antenna is less than 20 cm from the human body when the device is in operation: The
integrator may be responsible for passing additional Specific Absorption Rate (SAR) testing based on
FCC rules 2.1091 and FCC Guidelines for Human Exposure to Radiofrequency Electromagnetic
Fields, OET Bulletin and Supplement C. See the note under FCC notices for more information. The
testing results will be submitted to the FCC for approval prior to selling the integrated unit. The
required SAR testing measures emissions from the module and how they affect the person.
Antennas approved for use with the XBee RF Modules (cable loss is shown if required)
* If you are using the RF module in a portable application or if the module is used in a handheld
device and the antenna is less than 20 cm from the human body when the device is in operation: The
integrator may be responsible for passing additional Specific Absorption Rate (SAR) testing based on
FCC rules 2.1091 and FCC Guidelines for Human Exposure to Radio Frequency Electromagnetic
Fields, OET Bulletin and Supplement C. See the note under FCC notices for more information. The
testing results will be submitted to the FCC for approval prior to selling the integrated unit. The
required SAR testing measures emissions from the module and how they affect the person.
Antennas approved for use with the XBee-PRO DigiMesh 2.4 RF Modules (cable loss is
required)
* If you are using the RF module in a portable application or if the module is used in a handheld
device and the antenna is less than 20 cm from the human body when the device is in operation: The
integrator may be responsible for passing additional Specific Absorption Rate (SAR) testing based on
FCC rules 2.1091 and FCC Guidelines for Human Exposure to Radio Frequency Electromagnetic
Fields, OET Bulletin and Supplement C. See the note under FCC notices for more information. The
testing results will be submitted to the FCC for approval prior to selling the integrated unit. The
required SAR testing measures emissions from the module and how they affect the person.
Australia (C-Tick)
These products comply with requirements to be used in end products in Australia. All products with
EMC and radio communications must have a registered C-Tick mark. Registration to use the
compliance mark will only be accepted from Australian manufacturers or importers, or their agent, in
Australia.
Labeling requirements
In order to place a C-Tick mark on an end product, a company must comply with 1 or 2 below:
1. Have a company presence in Australia.
2. Have a company, distributor, or agent in Australia that will sponsor importing the end product.
Contact Digi for questions about locating a contact in Australia.
Brazil ANATEL
The XBee RF modules with 802.15.4 or DigiMesh firmware (models noted in the following conformity
information) comply with Brazil ANATEL standards in Resolution No. 506. The following information is
required in the user manual for the product containing the radio and on the product containing the
radio (in Portuguese):
The XBee-PRO RF modules with 802.15.4 or DigiMesh firmware (models noted in conformity
information below) comply with Brazil ANATEL standards in Resolution No. 506. The following
information is required in the user manual for the product containing the radio and on the product
containing the radio (in Portuguese):
Labeling requirements
IC requires you to place a clearly visible label on the outside of the final product enclosure, displaying
the following text:
Contains Model XBee Radio, IC: 4214A-XBEE
Contains Model XBee-PRO Radio, IC: 4214A-XBEEPRO
The integrator is responsible for its product to comply with IC ICES-003 & FCC Part 15, Sub. B -
Unintentional Radiators. ICES-003 is the same as FCC Part 15 Sub. B and Industry Canada accepts
FCC test report or CISPR 22 test report for compliance with ICES-003.
Europe
The RF Module is certified for use in several European countries; for a complete list, go to digi.com.
If the XBee/XBee-PRO DigiMesh 2.4 is incorporated into a product, the manufacturer must ensure
compliance of the final product with articles 3.1a and 3.1b of the RE Directive (Radio Equipment
Directive). A Declaration of Conformity must be issued for each of these standards and kept on file as
described in the RE Directive (Radio Equipment Directive).
Furthermore, the manufacturer must maintain a copy of the RF Module user guide documentation and
ensure the final product does not exceed the specified power ratings, antenna specifications, and/or
installation requirements as specified in the user manual.
n Frequencies: 5 MHz channel spacing, beginning at 2405 MHz and ending at 2480 MHz.
For the XBee-PRO device:
n Maximum power: 11.16 dBm Equivalent Isotropically Radiated Power (EIRP).
n Frequencies: 5 MHz channel spacing, beginning at 2410 MHz and ending at 2465 MHz.
The CE mark shall consist of the initials “CE” taking the following form:
n If the CE marking is reduced or enlarged, the proportions given in the above graduated
Restrictions
The power output of the XBee-PRO RF Modules must not exceed 10 dBm. The power level is set using
the PL command. The International Variant of this product is internally limited to 10 dBm.
France imposes restrictions on the 2.4 GHz band. Go to art-telecom.Fr or contact Digi for more
information.
Declarations of conformity
Digi has issued Declarations of Conformity for the (product name) concerning emissions, EMC, and
safety. For more information, see https://www.digi.com/resources/certifications.
Important note
Digi customers assume full responsibility for learning and meeting the required guidelines for each
country in their distribution market. Refer to the radio regulatory agency in the desired countries of
Approved antennas
When you integrate high-gain antennas, European regulations stipulate the EIRP power maximums.
Use the following guidelines to determine which antennas to use when you design an application.
All antenna part numbers followed by an asterisk (*) are not available from Digi. Consult with an
antenna manufacturer for an equivalent option.
The following antenna types are tested and approved for use with the XBee Module:
Yagi
RF module was tested and approved with 15 dBi antenna gain with 1 dB cable-loss (EIRP Maximum of
14 dBm). Any Yagi type antenna with 14 dBi gain or less can be used with no cable-loss.
Omni-directional
RF module was tested and approved with 15 dBi antenna gain with 1 dB cable-loss (EIRP Maximum of
14 dBm). Any Omni-directional type antenna with 14 dBi gain or less can be used with no cable-loss.
Flat panel
RF module was tested and approved with 19 dBi antenna gain with 4.8 dB cable-loss (EIRP Maximum
of 14.2 dBm). Any Flat Panel type antenna with 14.2 dBi gain or less can be used with no cable-loss.
The embedded XBee-PRO was tested and approved for use with the following antennas:
Note At 10 dBm transmit power, the PL parameter value must equal 0, or you must use the
international variant.
Dipole
2.1 dBi, omni-directional, articulated RPSMA, Digi part number A24-HABSM*.
Chip antenna
-1.5 dBi.
Japan
In order to use the XBee-PRO in Japan, you must order the International version. The International
XBee-PRO RF Modules are limited to a transmit power output of 10 dBm (10 mW).
Labeling requirements
A clearly visible label on the outside of the final product enclosure must display the following text:
R201WW07215214 (XBee)
R201WW08215111 (XBee-PRO)