CMay 2018Added note on range estimation. Changed ICto ISED.
DJune 2019 Added FCC publication 996369 related information.
ENovember
2019
FJanuary
2020
Removed Australian certification information. Added the UARTdata rate to
the performance specifications table. Added digital outputs to the physical
specifications table. Revised the cyclic sleep current numbers. Added the HS
command. Removed the indoor range specification.
Removed all references to the CONFIG line.
Added IFETEL certifications.
Trademarks and copyright
Digi, Digi International, and the Digi logo are trademarks or registered trademarks in the United
States and other countries worldwide. All other trademarks mentioned in this document are the
property of their respective owners.
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
Customer support
Gather support information: Before contacting Digi technical support for help, gather the following
information:
Product name and model
Product serial number (s)
Firmware version
Operating system/browser (if applicable)
XBee®/XBee-PRO XTend Compatible (XTC) DigiMesh RF Module User Guide
2
Logs (from time of reported issue)
Trace (if possible)
Description of issue
Steps to reproduce
Contact Digi technical support: Digi offers multiple technical support plans and service packages.
Contact us at +1 952.912.3444 or visit us at www.digi.com/support.
Feedback
To provide feedback on this document, email your comments to
Include the document title and part number (XBee®/XBee-PRO XTend Compatible (XTC) DigiMesh RF
Module User Guide, 90001480 F) in the subject line of your email.
techcomm@digi.com
XBee®/XBee-PRO XTend Compatible (XTC) DigiMesh RF Module User Guide
3
Contents
XBee®/XBee-PRO XTend Compatible (XTC) DigiMesh RF Module User
Guide
Applicable firmware10
Technical specifications
Performance specifications12
Power requirements12
Cyclic sleep current (mA, average)13
Networking and security specifications13
General specifications13
Regulatory conformity summary15
Hardware
Mechanical drawings17
Pin signals18
Recommended pin connections20
Modes
Transparent and API operating modes22
Transparent operating mode22
API operating mode22
Receive mode22
Transmit mode23
Command mode23
Enter Command mode23
Troubleshooting24
Send AT commands24
Response to AT commands25
Apply command changes25
Make command changes permanent25
Exit Command mode25
Operation
Serial interface28
XBee®/XBee-PRO XTend Compatible (XTC) DigiMesh RF Module User Guide
4
UART data flow28
Serial flow control28
Networking methods
The MAC and PHY layers31
64-bit addresses31
Make a unicast transmission32
Delivery methods32
Point to Point / Point to Multipoint (P2MP)32
Repeater/directed broadcast32
DigiMesh networking33
AT commands
Addressing commands38
CI (Cluster ID)38
DH (Destination Address High)38
DL (Destination Address Low)38
NI (Node Identifier)38
NO (Network Discovery Options)39
NT (Network Discovery Back-off)39
SH (Serial Number High)40
SL (Serial Number Low)40
TO (Transmit Options)40
Command mode options41
CC (Command Character)41
CT (Command Mode Timeout)41
GT (Guard Times)41
Diagnostic commands42
%H (MAC Unicast One Hop Time)42
%V (Board Voltage)42
%8 (MAC Broadcast One Hop Time)42
BC (Bytes Transmitted)42
DB (Last Packet RSSI)43
EA (MAC ACK Failure Count)43
ER (Receive Count Error)43
GD (Good Packets Received)44
RC (RSSI for channel)44
R# (Reset Number)44
TR (Transmit Error Count)45
UA (Unicasts Attempted Count)45
Firmware commands45
CK (Configuration CRC)45
DD (Device Type Identifier)45
NP (Maximum Packet Payload Bytes)45
HS (Hardware Series)46
HV (Hardware Version)46
VL (Firmware Version - Verbose)46
VR (Firmware Version)46
I/O settings commands47
CD (GP02 Configuration)47
CS (GP01 Configuration)47
RP (RSSI PWM Timer)47
XBee®/XBee-PRO XTend Compatible (XTC) DigiMesh RF Module User Guide
XBee®/XBee-PRO XTend Compatible (XTC) DigiMesh RF Module User Guide
7
Examples98
Remote AT Command Response- 0x9798
Description98
Examples99
Work with networked devices
Network commissioning and diagnostics102
Local configuration102
Remote configuration102
Send a remote command102
Apply changes on remote devices102
Remote command response102
Establish and maintain network links103
Build aggregate routes103
DigiMesh routing examples103
Replace nodes104
Test links in a network - loopback cluster104
Test links between adjacent devices105
Example106
RSSI indicators107
Discover all the devices on a network107
Trace route option108
NACK messages109
Regulatory information
FCC (United States)111
OEM labeling requirements111
FCC notices111
RF exposure statement113
FCC antenna certifications113
XBee-PRO XTC antenna options114
XBee XTC antenna options119
FCC publication 996369 related information124
ISED (Innovation, Science and Economic Development Canada)126
Labeling requirements126
Transmitters for detachable antennas126
Detachable antennas126
IFETEL (Mexico)127
OEM labeling requirements127
PCB design and manufacturing
Recommended footprint and keepout129
Design notes131
Host board design131
Improve antenna performance132
RF pad version132
Recommended solder reflow cycle133
Flux and cleaning134
Rework134
XBee®/XBee-PRO XTend Compatible (XTC) DigiMesh RF Module User Guide
8
XBee®/XBee-PRO XTend Compatible (XTC) DigiMesh
RF Module User Guide
The XBee/XBee-PRO XTend Compatible (XTC) RF module provides a radio frequency (RF) solution for
the reliable delivery of critical data between remote devices. It is a 30 dBm (1 Watt) long-range
original equipment manufacturer (OEM) device. We also offer a low power version of this module that
offers transmit power adjustable up to 13 dBm.
The XTC module uses Frequency Hopping Spread Spectrum (FHSS) agility to avoid interference by
hopping to a new frequency on every packet transmission or re-transmission. Its transmit power is
software adjustable up to 30 dBm, which is the maximum output power allowable by governments
that use 900 MHz as a license-free band. The XTC module is approved for use in the United States and
Canada.
The XTC transfers a standard asynchronous serial data stream, operates within the ISM 900 MHz
frequency band and offers two RF data rates of 10 kb/s and 125 kb/s.
As the name suggests, the XTC is over-the-air compatible with Digi's XTend module. The XTC is not a
drop-in replacement for the XTend. If you require form factor compatibility, you must use the XTend vB
RF Module.
For new applications, we recommend that you use the XBee/XBee-Pro SX module. It uses the same
hardware as the XTC but we optimize the firmware for the best range and interference immunity.
However, it is not over-the-air compatible with the XTend.
Applicable firmware10
XBee®/XBee-PRO XTend Compatible (XTC) DigiMesh RF Module User Guide
9
XBee®/XBee-PRO XTend Compatible (XTC) DigiMesh RF Module User GuideApplicable firmware
Applicable firmware
This manual supports the following firmware:
n 0x800x for XTC DigiMesh
XBee®/XBee-PRO XTend Compatible (XTC) DigiMesh RF Module User Guide
10
Technical specifications
The following tables provide the device's technical specifications.
WARNING! When operating at 1 W power output, observe a minimum separation distance
of 6 ft (2 m) between devices. Transmitting in close proximity of other devices can damage
the device's front end.
Performance specifications12
Power requirements12
Networking and security specifications13
General specifications13
Regulatory conformity summary15
XBee®/XBee-PRO XTend Compatible (XTC) DigiMesh RF Module User Guide
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.
SpecificationXBee XTCXBee-PRO XTC
Frequency range
RF data rate (software selectable)10 kb/s to 125 kb/s
Transmit power (software selectable)Up to 13 dBmUp to 30 dBm
This table describes the agency approvals for the devices.
CountryXBee XTCXBee-PROXTC
United StatesFCC ID: MCQ-XBSXFCC ID: MCQ-XBPSX
CanadaIC: 1846A-XBSXIC: 1846A-XBPSX
AustraliaRCMRCM
MexicoRCPDIXB19-1819RCPDIXB19-2288
XBee®/XBee-PRO XTend Compatible (XTC) DigiMesh RF Module User Guide
15
Hardware
Mechanical drawings17
Pin signals18
XBee®/XBee-PRO XTend Compatible (XTC) DigiMesh RF Module User Guide
16
HardwareMechanical drawings
Mechanical drawings
The following images show the XTC mechanical drawings. The XTC has the same form factor as other
Digi surface-mount (SMT) XBee devices, except there is an additional copper ground pad on the
bottom.
XBee®/XBee-PRO XTend Compatible (XTC) DigiMesh RF Module User Guide
17
HardwarePin signals
Pin signals
The following table describes the pin signals. Low-asserted signals have a horizontal line over the
signal name.
Pin DesignationI/O Function
1GND-Ground
2VCCIPower supply
3DOUTOUART Data Out
4DINIUART Data In
XBee®/XBee-PRO XTend Compatible (XTC) DigiMesh RF Module User Guide
18
HardwarePin signals
Pin DesignationI/O Function
5GPO2/RX LEDOGeneral Purpose Output / RX LED
6RESETIModule reset
7RSSIORX Signal Strength Indicator
8-Disabled
9ReservedNC Do not connect
10SLEEP (DTR)IPin Sleep Control Line
11GND-Ground
12-Disabled
13GND-Ground
14-Disabled
15-Disabled
16-Disabled
17-Disabled
18ReservedNC Do not connect
19ReservedNC Do not connect
20ReservedNC Do not connect
21ReservedNC Do not connect
22GND-Ground
23ReservedNC Do not connect
24-Disabled
25GPO1/CTS /RS-485
TX_EN
26ON/SLEEPOModule sleep status indicator
27ReservedNC Do not connect
28TX _PWROTransmit power
29RTSIRequest-to-Send Flow Control
30-Disabled
OGeneral Purpose Output / Clear-to-Send Flow Control / RS-485
Transmit Enable
31-Disabled
32-Disabled
XBee®/XBee-PRO XTend Compatible (XTC) DigiMesh RF Module User Guide
19
HardwarePin signals
Pin DesignationI/O Function
33ReservedNC
34ReservedNC
35GND-Ground
36RFI/O RF I/O for RF pad variant
37NCNC
38GND-Ground pad for heat transfer to host PCB
Note If you integrate the XTC RF Module with a host PC board, leave all lines you do not use
disconnected (floating).
Recommended pin connections
The only required pin connections are VCC, GND, DOUT and DIN. To support serial firmware updates,
you should connect VCC, GND, DOUT, DIN, RTS, and SLEEP (DTR).
XBee®/XBee-PRO XTend Compatible (XTC) DigiMesh RF Module User Guide
20
Modes
The XTC RF Module is in Receive Mode when it is not transmitting data. The device shifts into the
other modes of operation under the following conditions:
n Transmit mode (Serial data in the serial receive buffer is ready to be packetized)
n Sleep mode
n Command Mode (Command mode sequence is issued (not available when using the SPI port))
Transparent and API operating modes22
Receive mode22
Transmit mode23
Command mode23
XBee®/XBee-PRO XTend Compatible (XTC) DigiMesh RF Module User Guide
21
ModesTransparent and API operating modes
Transparent and API operating modes
The firmware operates in several different modes. Two top-level modes establish how the device
communicates with other devices through its serial interface: Transparent operating mode and API
operating mode.
Transparent operating mode
Devices operate in this mode by default. The device acts as a serial line replacement when it is in
Transparent operating mode. The device queues all UART data it receives through the DIN pin for RF
transmission. When a device receives RF data, it sends the data out through the DOUT pin.
API operating mode
API operating mode is an alternative to Transparent operating mode. API mode is a frame-based
protocol that allows you to direct data on a packet basis. The device communicates UART data in
packets, also known as API frames. This mode allows for structured communications with computers
and microcontrollers.
The advantages of APIoperating mode include:
n It is easier to send information to multiple destinations
n The host receives the source address for each received data frame
n You can change parameters without entering Command mode
n You can query or set a configuration parameter while a pending command—for example ND—is
in progress. This cannot be done in Command mode.
For more information, see API frame specifications.
Receive mode
This is the default mode for the XTC RF Module. The device is in Receive mode when it is not
transmitting data. If a destination node receives a valid RF packet, the destination node transfers the
data to its serial transmit buffer.
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 received data on the RF network, that data must
meet the following criteria:
n Network ID match
n Channel match
n Address match
XBee®/XBee-PRO XTend Compatible (XTC) DigiMesh RF Module User Guide
22
ModesTransmit mode
Transmit mode
When DigiMesh data is transmitted from one node to another, the destination node transmits a
network-level acknowledgment back across the established route to the source node. This
acknowledgment packet indicates to the source node that the destination node received the data
packet. If the source node does not receive a network acknowledgment, it retransmits the data.
For more information, see Data transmission and routing.
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 XTC RF Module using this mode, you
have to send an AT command.Every AT command starts with the lettersATfollowed by the two
characters that identify the command and then by some optional configuration values.
The operating modes of the XTC RF Module are controlled by the AP (API Enable) setting,
butCommand mode is always available as a mode thedevice 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.
Enter Command mode
To get a device to switch into Command mode, you must issue the following sequence:+++within one
second. There must be at least one second preceding and following the+++sequence. Both the
command character (CC) and the silence before and after the sequence (GT) are configurable. When
the entrance criteria are met the device responds with OK\r on UART signifying that it has entered
Command mode successfully and is ready to start processing AT commands.
If configured to operate in Transparent operating mode, when entering Command mode the XTC RF
Module knows to stop sending data and start accepting commands locally.
XBee®/XBee-PRO XTend Compatible (XTC) DigiMesh RF Module User Guide
23
ModesCommand 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. IfCTtime (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 (Exit Command Mode).
You can customize the command character, the guard times and the timeout in the device’s
configuration settings. For more information, seeCC (Command Character),CT (Command Mode
Timeout)andGT (Guard Times).
When the device is in Command mode, it listens for user input and is able to receive AT commands on
the UART. IfCTtime (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 (Exit Command Mode).
You can customize the command character, the guard times and the timeout in the device’s
configuration settings. For more information, seeCC (Command Sequence Character),CT (Command
Mode Timeout)andGT (Guard Times).
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).
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 (Interface Data 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
from a serial console, it is often a button or menu item.
n Asserting DIN (serial break) upon power up or reset enters Command mode. XCTU guides you
through a reset and automatically issues the break when needed.
Both of these methods temporarily set the device's baud rate to 9600 and return anOKon the UART
to indicate that Command mode is active. When Command mode exits, the device returns to normal
operation at the baud rate that BDis set to.
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 lettersAT, which stands for "attention." TheATis 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.
The preceding example changes NI (Node Identifier) to My XBee.
XBee®/XBee-PRO XTend Compatible (XTC) DigiMesh RF Module User Guide
24
ModesCommand mode
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 theNI (Node Identifier) to My XBeeand 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 leading0xfor exampleFFFFor0xFFFF.
Response to AT commands
When using AT commands to set parameters the XTC RF Module 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 anOKmessage.
ATAP<cr>
1<cr>
Apply command changes
Any changes you make to the configuration command registers using AT commands do not take effect
until you apply the changes. For example, if you send theBDcommand to change the baud rate, the
actual baud rate does not change until you apply the changes. To apply changes:
1. Send AC (Apply Changes).
2. Send WR (Write).
or:
3. Exit Command mode.
Make command changes permanent
Send a WR (Write) command to save the changes. WR writes parameter values to non-volatile memory
so that parameter modifications persist through subsequent resets.
Send as RE (Restore Defaults) to wipe settings saved using WR back to their factory defaults.
Note You still have to use WR to save the changes enacted with RE.
Exit Command mode
1. Send CN (Exit Command Mode) followed by a carriage return.
or:
2. If the device does not receive any valid AT commands within the time specified byCT
(Command Mode Timeout), it returns to Transparent or API mode. The default Command mode
timeout is10seconds.
XBee®/XBee-PRO XTend Compatible (XTC) DigiMesh RF Module User Guide
25
ModesCommand mode
For an example of programming the device using AT Commands and descriptions of each configurable
parameter, see AT commands.
1. Send CN (Exit Command Mode) followed by a carriage return.
or:
2. If the device does not receive any valid AT commands within the time specified byCT
(Command Mode Timeout), it returns to Transparent or API mode. The default Command mode
timeout is10seconds.
For an example of programming the device using AT Commands and descriptions of each configurable
parameter, see Commands.
XBee®/XBee-PRO XTend Compatible (XTC) DigiMesh RF Module User Guide
26
Operation
WARNING! When operating at 1 W power output, observe a minimum separation distance
of 6 ft (2 m) between devices. Transmitting in close proximity of other devices can damage
the device's front end.
Serial interface28
XBee®/XBee-PRO XTend Compatible (XTC) DigiMesh RF Module User Guide
27
OperationSerial interface
Serial interface
The XTC RF Module provides a serial interface to an RF link. The XTC RF Module converts serial data to
RF data and sends that data to any over-the-air compatible 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.
UART data flow
Devices that have a UART interface connect directly to the pins of the XTC RF Module as shown in the
following figure. The figure shows system data flow in a UART-interfaced environment. Low-asserted
signals have a horizontal line over the signal name.
Serial data
A device sends data to the XTC RF Module's UART through pin 4 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 XTC RF Module) 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 flow control
The RTS and CTS device pins provide RTS and/or CTS flow control. CTS flow control signals the host to
stop sending serial data to the device. RTS flow control lets the host signal the device so it will not
send the data in the serial transmit buffer out the UART. Use the D6 and D7 commands to enable RTS
and CTS flow control.
XBee®/XBee-PRO XTend Compatible (XTC) DigiMesh RF Module User Guide
28
OperationSerial interface
CTS flow control
CTS flow control is enabled by default; you can disable it with the D7 command. When the serial
receive buffer fills with the number of bytes specified by the FT parameter, the device de-asserts CTS
(sets it high) to signal the host device to stop sending serial data. The device re-asserts CTS when less
than FT-16 bytes are in the UART receive buffer; for more information, see FT (Flow Control
Threshold).
RTS flow control
If you send the D6 command to enable RTS flow control, the device does not send data in the serial
transmit buffer out the DOUT pin as long as RTS is de-asserted (set high). Do not de-assert RTS for
long periods of time or the serial transmit buffer will fill. If the device receives an RF data packet and
the serial transmit buffer does not have enough space for all of the data bytes, it discards the entire
RF data packet.
XBee®/XBee-PRO XTend Compatible (XTC) DigiMesh RF Module User Guide
29
Networking methods
The MAC and PHY layers31
64-bit addresses31
Make a unicast transmission32
Delivery methods32
XBee®/XBee-PRO XTend Compatible (XTC) DigiMesh RF Module User Guide
30
Networking methodsThe MAC and PHY layers
The MAC and PHY layers
Most network protocols use the concept of layers to separate different components and functions
into independent modules that developers can assemble in different ways.
The PHY layer defines the physical and electrical characteristics of the network. It is responsible for
managing the hardware that modulates and demodulates the RF bits.
The MAC layer is responsible for sending and receiving RF frames. As part of each packet, there is a
MAC layer data header that has addressing information as well as packet options. This layer
implements packet acknowledgments (ACKs), packet tracking to eliminate duplicates, and so forth.
n When a device is transmitting, it cannot receive packets.
n When a device is not sleeping, it is either receiving or transmitting.
n There are no beacons or master/slave requirements in the design of the MAC/PHY.
The XTC RF Module uses a patented method for scanning and finding a transmission. When a device
transmits, it sends out a repeated preamble pattern, a MAC header, optionally a network header,
followed by packet data. A receiving device is able to scan all the channels to find a transmission
during the preamble, then once it has locked into that channel it attempts to receive the whole
packet.
The following table shows the AT commands related to the MAC/PHY layers.
AT
command Function
HPChange HP (Preamble ID) to make it so a group of devices will not interfere with
another group of devices in the same vicinity. The advantage of changing this
parameter is that a receiving device will not lock into a transmission of a transmitting
device that does not have the same Preamble ID.
IDChange ID (Network ID) to further keep devices from interfering with each other. The
device matches this ID after it matches the preamble pattern and after it receives the
MAC header.
A unique network identifier distinguishes each network. For devices to communicate,
they must be configured with the same network identifier. The ID parameter allows
multiple networks to co-exist on the same physical channel.
PLSets the transmit (TX) power level. You can reduce the power level from the maximum
to reduce current consumption or for testing. This comes at the expense of reduced
radio range.
RR
MT
Specifies the number of times a sending device attempts to get an ACK from a
destination device when it sends a unicast packet.
Specifies the number of times that a device repeatedly transmits a broadcast packet.
This adds redundancy, which improves reliability.
64-bit addresses
We assign each device a unique IEEE 64-bit address at the factory. When a device is in API operating
mode and it sends a packet, this is the source address that the receiving device returns.
XBee®/XBee-PRO XTend Compatible (XTC) DigiMesh RF Module User Guide
31
Networking methodsMake a unicast transmission
n Use the SH and SLcommands to read this address.
n The form of the address is: 0x0013A2XXXXXXXXXX.
n The first six digits are the Digi Organizationally Unique Identifier (OUI).
n The broadcast address is 0x000000000000FFFF.
Make a unicast transmission
To transmit to a specific device in Transparent operating mode:
n Set DH:DL to the SH:SL of the destination device.
To transmit to a specific device in API operating mode:
n In the 64-bit destination address of the API frame, enter the SH:SL address of the destination
device.
Delivery methods
The TO (Transmit Options) command sets the default delivery method that the device uses when in
Transparent mode. In API mode, the TxOptions field of the API frame overrides the TO command, if
non-zero.
The XTC RF Module supports three delivery methods:
n Point-to-multipoint (TO = 0x40).
n Repeater (directed broadcast) (TO = 0x80).
n DigiMesh (TO = 0xC0).
Point to Point / Point to Multipoint (P2MP)
This delivery method does not use a network header, only the MAC header.
In P2MP, the sending devices always send all messages directly to the destination. Other nodes do not
repeat the packet. The sending device only delivers a P2MP unicast directly to the destination device,
which must be in range of the sending device.
The XTC RF Module uses patented technology that allows the destination device to receive unicast
transmissions directed to it, even when there is a large amount of traffic. This works best if you keep
broadcast transmissions to a minimum.
A sending node repeats a P2MP broadcast transmission MT+1 times, but the receiving nodes do not
repeat it, so like a unicast transmission, the receiving device must be in range.
All devices that receive a P2MP broadcast transmission output the data through the serial port.
Repeater/directed broadcast
All of the routers in a network receive and repeat directed broadcast transmissions. Because it does
not use ACKs, the originating node sends the broadcast multiple times. By default a broadcast
transmission is sent four times—the extra transmissions become automatic retries without
acknowledgments. This results in all nodes repeating the transmission four times. Sending frequent
broadcast transmissions can quickly reduce the available network bandwidth, so use broadcast
transmissions sparingly.
XBee®/XBee-PRO XTend Compatible (XTC) DigiMesh RF Module User Guide
32
Networking methodsDelivery methods
MAC layer
The MAC layer is the building block that is used to build repeater capability. To implement Repeater
mode, we use a network layer header that comes after the MAC layer header in each packet. In this
network layer there is additional packet tracking to eliminate duplicate broadcasts.
In this delivery method, the device sends both unicast and broadcast packets out as broadcasts that
are always repeated. All repeated packets are sent to every device. The devices that receive the
broadcast send broadcast data out their serial port.
When a device sends a unicast, it specifies a destination address in the network header. Then, only the
device that has the matching destination address sends the unicast out its serial port. This is called a
directed broadcast.
Any node that has a CE parameter set to router rebroadcasts the packet if its BH (broadcast hops) or
broadcast radius values are not depleted. If a node has already seen a repeated broadcast, it ignores
the broadcast.
The NH parameter sets the maximum number of hops that a broadcast transmission is repeated. The
device always uses the NH value unless you specify a BH value that is smaller.
By default the CE parameter is set to route all broadcasts. As such, all nodes that receive a repeated
packet will repeat it. If you change the CE parameter, you can limit which nodes repeat packets, which
helps dense networks from becoming overly congested while packets are being repeated.
Transmission timeout calculations for Repeater/directed broadcast mode are the same as for
DigiMesh broadcast transmissions.
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
node until it reaches its final destination.
n Ad-hoc network creation. This is an automated process that creates an entire network of
nodes on the fly, without any human intervention.
n Self-healing. This process automatically figures out if one or more nodes on the network is
missing and reconfigures the network to repair any broken routes.
n Peer-to-peer architecture. No hierarchy and no parent-child relationships are needed.
n Quiet protocol. Routing overhead will be reduced by using a reactive protocol similar to AODV.
n Route discovery. Rather than maintaining a network map, routes will be discovered and
created only when needed.
n Selective acknowledgments. Only the destination node will reply to route requests.
n Reliable delivery. Reliable delivery of data is accomplished by means of acknowledgments.
n Sleep modes. Low power sleep modes with synchronized wake are supported with variable
sleep and wake times.
XBee®/XBee-PRO XTend Compatible (XTC) DigiMesh RF Module User Guide
33
Networking methodsDelivery methods
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.
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.
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.
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.
XBee®/XBee-PRO XTend Compatible (XTC) DigiMesh RF Module User Guide
34
Networking methodsDelivery methods
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.
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.
n Whether the transmission is a unicast or a broadcast.
n If the route to the destination address is known.
Timeouts or timing information is provided for the following transmission types:
n Broadcast transmission
n Unicast transmission on a known route
n Unicast transmission on an unknown route
n Unicast transmission on a broken route
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 Extended Transmit Status - 0x8B as the primary method to
determine if a transmission is complete.
Unicast one hop time
unicastOneHopTime is a building block of many of the following calculations. It represents the amount
of time it takes to send a unicast transmission between two adjacent nodes. The amount of time
depends on the %H parameter.
XBee®/XBee-PRO XTend Compatible (XTC) DigiMesh RF Module User Guide
35
Networking methodsDelivery methods
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
Transmit a unicast with a known route
When a device knows a route to a destination node, the transmission time is largely a function of the
number of hops and retries. The timeout associated with a unicast assumes that the maximum
number of hops is necessary, as specified by the NH command.
You can estimate the timeout in the following manner:
knownRouteUnicastTime=2*NH*MR*unicastOneHopTime
Transmit a unicast with an unknown route
If the transmitting device does not know the route to the destination, it begins by sending a route
discovery. If the route discovery is successful, then the transmitting device transmits data. You can
estimate the timeout associated with the entire operation as follows:
If the route to a destination node changes after route discovery completes, a node begins by
attempting to send the data along the previous route. After it fails, it initiates route discovery and,
when the route discovery finishes, transmits the data along the new route. You can estimate the
timeout associated with the entire operation as follows:
XBee®/XBee-PRO XTend Compatible (XTC) DigiMesh RF Module User Guide
37
AT commandsAddressing commands
Addressing commands
The following AT commands are addressing commands.
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)
DH (Destination Address High)
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 (Destination Address Low)
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 (Node Identifier)
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.
XBee®/XBee-PRO XTend Compatible (XTC) DigiMesh RF Module User Guide
38
AT commandsAddressing commands
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.
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)
NO (Network Discovery Options)
Set or read the network discovery options value for the ND (Network Discovery) command on a
particular device. The options bit field value changes the behavior of the ND command and what
optional values the local device returns when it receives an ND command or API Node Identification
Indicator (0x95)frame.
Use NOto suppress or include a self-response to ND (Node Discover) commands. When NO bit 1 = 1, a
device performing a Node Discover includes a response entry for itself.
Parameter range
0x0 - 0x7 (bit field)
Bit field
Option Description
0x01
0x02
0x04
Default
Append the DD (Digi Device Identifier) value to ND responses or API node identification
frames.
Local device sends ND response frame out the serial interface when ND is issued.
Append the RSSI of the last hop to ND, FN, and responses or API node identification
frames.
0x0
NT (Network Discovery Back-off)
Sets or displays the network discovery back-off parameter for a device. This sets the maximum value
for the random delay that the device uses to send network discovery responses.
Parameter range
0x20 - 0x2EE0 (x 100 ms)
Default
0x82 (13 seconds)
XBee®/XBee-PRO XTend Compatible (XTC) DigiMesh RF Module User Guide
39
AT commandsAddressing commands
SH (Serial Number High)
Displays the upper 32 bits of the unique IEEE 64-bit extended address assigned to the XTend 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 (Serial Number Low)
Displays the lower 32 bits of the unique IEEE 64-bit RF extended address assigned to the XTend 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
TO (Transmit Options)
The bitfield that configures the transmit options for Transparent mode.
The device's transmit options. The device uses these options for all transparent transmissions. API
transmissions can override this using the TxOptions field in the API frame.
Parameter range
0 - 0xFF
Bit field:
BitMeaningDescription
6,7Delivery method
5Reserved<set this bit to 0>
4Reserved<set this bit to 0>
3Trace RouteEnable a Trace Route on all DigiMesh API packets
2NACKEnable a NACK messages on all DigiMesh API packets
1Disable RDDisable Route Discovery on all DigiMesh unicasts
0Disable ACKDisable acknowledgments on all unicasts
XBee®/XBee-PRO XTend Compatible (XTC) DigiMesh RF Module User Guide
40
AT commandsCommand mode options
n Bits 6 and 7 cannot be set to DigiMesh on the 10k build.
n Bits 4 and 5 must be set to 0.
n Bits 1, 2, and 3 cannot be set on the 10k build.
When you set BR to 0 the TO option has the DigiMesh and Repeater mode disabled automatically.
Default
0xC0
Command mode options
The following commands are Command mode option commands.
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 Mode Timeout)
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)
GT (Guard Times)
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)
XBee®/XBee-PRO XTend Compatible (XTC) DigiMesh RF Module User Guide
41
AT commandsDiagnostic commands
Diagnostic commands
The following AT commands are diagnostic commands. Diagnostic commands are typically volatile and
will not persist across a power cycle.
%H (MAC Unicast One Hop Time)
The MAC unicast one hop time timeout in milliseconds. If you change the MAC parameters it can
change this value.
Parameter range
[read-only]
Default
N/A
0x267
%V (Board Voltage)
Reads the supply voltage to the module's VCC (pin 2).
The conversion of the hex value returned by %V to Volts is VAL/65536 = Volts.
Example:
2.8 VDC = 2.8 * 65536 = 0x2CCCD
3.3 VDC = 3.3 * 65536 = 0x34CCD
Parameter range
[read-only]:
0x26666 - 0x39999 (2.40 to 3.60 V)
Default
N/A
%8 (MAC Broadcast One Hop Time)
Parameter range
[read-only]
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.
XBee®/XBee-PRO XTend Compatible (XTC) DigiMesh RF Module User Guide
42
AT commandsDiagnostic commands
Parameter range
0 - 0xFFFF
Default
0
DB (Last Packet RSSI)
Reports the RSSI in -dBm of the last received RF data packet. DB returns a hexadecimal value for the dBm measurement.
For example, if DB returns 0x60, then the RSSI of the last packet received was -96 dBm.
The RSSImeasurement is accurate from approximately -50 to -100 dBm.
DB only indicates the signal strength of the last hop. It does not provide an accurate quality
measurement for a multihop link.
If the XTC RF Module has been reset and has not yet received a packet, DB reports 0.
This value is volatile (the value does not persist in the device's memory after a power-up sequence).
Parameter range
0x28 - 0x6E (-40 dBm to -110 dBm) [read-only]
Default
0
EA (MAC ACK Failure Count)
This count increments whenever a MAC ACK timeout occurs on a MAC-level unicast. When the number
reaches 0xFFFF, the firmware does not count further events.
To reset the counter to any 16-bit unsigned value, append a hexadecimal parameter to the command.
This value is volatile (the value does not persist in the device's memory after a power-up sequence).
Parameter range
0 - 0xFFFF
Default
0
N/A
ER (Receive Count Error)
This count increments when a device receives a packet that contains integrity errors of some sort.
When the number reaches 0xFFFF, the firmware does not count further events.
To reset the counter to any 16-bit value, append a hexadecimal parameter to the command. This
value is volatile (the value does not persist in the device's memory after a power-up sequence).
Occasionally random noise can cause this value to increment.
The ER parameter is not reset by pin, serial port or cyclic sleep modes.
Default
0
XBee®/XBee-PRO XTend Compatible (XTC) DigiMesh RF Module User Guide
43
AT commandsDiagnostic commands
GD (Good Packets Received)
This count increments when a device receives a good frame with a valid MAC header on the RF
interface. Received MAC ACK packets do not increment this counter. Once the number reaches
0xFFFF, it does not count further events.
To reset the counter to any 16-bit unsigned value, append a hexadecimal parameter to the command.
This value is volatile (the value does not persist in the device's memory after a power-up sequence).
Parameter range
0 - 0xFFFF
Default
0
RC (RSSI for channel)
Reads and reports the power level on a given channel.
Channel must be provided as a parameter for this command or an ERROR will be received. Channels
for this command are zero based (0 = Channel 1, 0x31 = Channel 50)
Parameter range
[read-only]: 40 - 110 [dBm]
Default
N/A
R# (Reset Number)
Provides the reason for the last device reset.
Parameter range
0-5
Parameter Description
0Power up reset
2Watchdog reset
3Software reset
4Reset line reset
5Brownout reset
Default
0
XBee®/XBee-PRO XTend Compatible (XTC) DigiMesh RF Module User Guide
44
AT commandsFirmware commands
TR (Transmit Error Count)
Parameter range
0 - 0xFFFF
Default
0
UA (Unicasts Attempted Count)
The number of unicast transmissions expecting an acknowledgment (when RR > 0).
This value is volatile (the value does not persist in the device's memory after a power-up sequence).
Parameter range
0 - 0xFFFF
Default
0
Firmware commands
The following AT commands are firmware commands.
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
N/A
Default
N/A
DD (Device Type Identifier)
Stores the Digi device type identifier value. Use this value to differentiate between multiple XBee
devices.
Parameter range
0 - 0xFFFFFFFF
Default
0x80000
NP (Maximum Packet Payload Bytes)
Reads the maximum number of RF payload bytes that you can send in a transmission.
XBee®/XBee-PRO XTend Compatible (XTC) DigiMesh RF Module User Guide
45
AT commandsFirmware commands
Using APS encryption (API transmit option bit enabled), reduces the maximum payload size by 9 bytes.
Using source routing (AR < 0xFF), further reduces the maximum payload size.
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
HS (Hardware Series)
Read the device's hardware series number.
Parameter range
N/A
Default
0x0A00 - set in the firmware
HV (Hardware Version)
Display the hardware version number of the device.
Parameter range
0 - 0xFFFF [read-only]
Default
Set in firmware
VL (Firmware Version - Verbose)
Reads the verbose firmware version of the device.
Parameter range
Returns a string
Default
0
VR (Firmware Version)
Reads the firmware version on a device.
Parameter range
0 - 0xFFFFFFFF [read-only]
Default
Set in firmware
XBee®/XBee-PRO XTend Compatible (XTC) DigiMesh RF Module User Guide
46
AT commandsI/O settings commands
I/O settings commands
The following AT commands are I/O settings commands.
CD (GP02 Configuration)
Selects or reads the behavior of the GPO2 line (pin 5).
Parameter range
0 - 4
Parameter Configuration
0RXLED
1Static high
2Static low
3Reserved
4RX LED (valid address only)
Default
2
CS (GP01 Configuration)
Sets or displays the behavior of the GPO1 line (pin 25). This output can provide RS-232 flow control and
controls the TX enable signal for RS-485 or RS-422 operations.
By default, GP01 provides RS-232 Clear-to-Send (CTS ) flow control.
Parameter range
0 - 4
Parameter Configuration
0RS-232
1RS-485 TX enable low
2Static high
3RS-485 TX enable high
4Static low
Default
0
CTS
flow control
RP (RSSI PWM Timer)
Enables a pulse-width modulated (PWM) output on the RSSI pin (pin 7). We calibrate the pin to show
the difference between received signal strength and the sensitivity level of the device. PWM pulses
XBee®/XBee-PRO XTend Compatible (XTC) DigiMesh RF Module User Guide
47
AT commandsI/O diagnostic commands
vary from zero to 95 percent. Zero percent means the RF signal the device receives is at or below the
device's sensitivity level.
A non-zero value defines the time that PWM output is active with the RSSI value of the last RF packet
the device receives. After the set time when the device has not received RF packets, it sets the PWM
output low (0 percent PWM) until the device receives another RF packet. It also sets PWM output low
at power-up. A parameter value of 0xFF permanently enables PWM output and always reflects the
value of the last received RF packet.
Parameter range
0 - 0xFF [x 100 ms]
Default
0x28 (4 seconds)
RT (GPI1 Configuration)
Sets or displays the behavior of the GPI1 pin (pin 29) of the device. You can configure the pin to enable
RTS flow control.
Parameter range
0 - 2
ParameterConfiguration
0Disabled
1
2
Default
0 (disabled)
I/O diagnostic commands
The following AT commands are I/O diagnostic commands.
TP (Board Temperature)
The current module temperature in degrees Celsius in 8-bit two’s compliment format. For example
0x1A = 26 °C, and 0xF6 = -10 °C.
Parameter range
0 - 0xFF [read-only]
Default
N/A
N/A
RTS flow control enable
MAC/PHY commands
The following AT commands are MAC/PHY commands.
XBee®/XBee-PRO XTend Compatible (XTC) DigiMesh RF Module User Guide
48
AT commandsMAC/PHY commands
HP (Preamble ID)
The preamble ID for which the device communicates. Only devices with matching preamble IDs can
communicate with each other. Different preamble IDs minimize interference between multiple sets of
devices operating in the same vicinity.
When a device receives a packet it checks HP before the network ID, as it is encoded in the preamble
and the network ID is encoded in the MAC header.
Parameter range
0 - 9
Default
0
ID (Network ID)
Sets or displays the Vendor Identification Number (VID) of the device. Devices must have matching
VIDs in order to communicate. If the device uses OEM network IDs, 0xFFFF uses the factory value.
Parameter range
0x10 - 0x7FFF (user-settable)
0 - 0x0F and 0x8000 - 0xFFFF (factory-set)
Default
0x3332
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
PL (TX Power Level)
Sets or displays the power level at which the device transmits conducted power. Power levels are
approximate.
For XBee, PL = 4, PM = 1 is tested at the time of manufacturing. Other power levels are approximate.
On channel 26, transmitter power will not exceed -4 dBm.
The PRO XTC device requires the power supply to be above 3.3 V to ensure 30 dBm output power. The
following table shows the typical values over supply voltage.
XBee®/XBee-PRO XTend Compatible (XTC) DigiMesh RF Module User Guide
49
AT commandsNetwork commands
Power supplyOutput power @ PL = 3
3.3 to 3.6 V30 dBm typical
3.0 V29 dBm typical
2.6 V27 dBm typical
Parameter range
0 - 4
These parameters equate to the following settings for the XTC DigiMesh module:
SettingXTC power levelXTC PRO Power level
00 dBm21.5 dBm
110 dBm
213 dBm
313 dBm27 dBm
413 dBm30 dBm
Default
4
RR (Unicast Mac Retries)
Set or read the maximum number of MAC level packet delivery attempts for unicasts. If RR is nonzero, the sent unicast packets request an acknowledgment from the recipient. Unicast packets can
be retransmitted up to RR times if the transmitting device does not receive a successful
acknowledgment.
Parameter range
0 - 0xF
Default
0xA (10 retries)
Network commands
The following commands are network commands.
BH (Broadcast Hops)
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
XBee®/XBee-PRO XTend Compatible (XTC) DigiMesh RF Module User Guide
50
AT commandsNetwork commands
Default
0
CE (Routing / Messaging Mode)
The routing and messaging mode of the device.
End devices do not propagate broadcasts and will not become intermediate nodes on a route.
Parameter range
0 - 2
ParameterDescriptionRoutes packets
0Standard routerYes
1N/AN/A
2End deviceNo
Default
0
MR (Mesh Unicast Retries)
Set or read the maximum number of network packet delivery attempts. If MR is non-zero, the packets
a device sends request a network acknowledgment, and can be resent up to MR+1 times if the device
does not receive an acknowledgment.
Changing this value dramatically changes how long a route request takes.
We recommend that you set this value to 1.
If you set this parameter to 0, it disables network ACKs. Initially, the device can find routes, but a
route will never be repaired if it fails.
Note This command is supported in the 200k variant only.
Parameter range
0 - 7 mesh unicast retries
Default
1
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 - 20 hops
XBee®/XBee-PRO XTend Compatible (XTC) DigiMesh RF Module User Guide
51
AT commandsSecurity commands
Default
7
NN (Network Delay Slots)
Set or read the maximum random number of network delay slots before rebroadcasting a network
packet.
Parameter range
1 - 0xA network delay slots
Default
3
Security commands
The following AT commands are security commands.
EE (Encryption Enable)
Enables or disables Advanced Encryption Standard (AES) encryption.
Set this command parameter the same on all devices in a network.
Parameter range
0 - 1
ParameterDescription
0Encryption Disabled
1Encryption Enabled
Default
0
KY (AES Encryption Key)
Sets the 128-bit network security key value that the device uses for encryption and decryption.
This command is write-only. If you attempt to read KY, the device returns an OK status.
Set this command parameter the same on all devices in a network.
Parameter range
128-bit value
Default
N/A
0
XBee®/XBee-PRO XTend Compatible (XTC) DigiMesh RF Module User Guide
52
AT commandsSerial interfacing commands
Serial interfacing commands
The following AT commands are serial interfacing commands.
AO (API Options)
The API data frame output format for RF packets received. This parameter applies to both the
UARTand SPI interfaces.
Use AO to enable different API output frames.
Parameter range
0 - 2
ParameterDescription
0API Rx Indicator - 0x90, this is for standard data frames.
1API Explicit Rx Indicator - 0x91, this is for Explicit Addressing data frames.
2XTend DigiMesh API Rx Indicator - 0x80
Default
2
AP (API Enable)
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.
Enables API Mode. The device ignores this command when using SPI. API mode 1 is always used.
Parameter range
0 - 2
Parameter Description
0
1API Mode Without Escapes. The device packetizes all UART input and output data in API
2API Mode With Escapes. The device is in API mode and inserts escaped sequences to
Default
0
Transparent mode, API mode is off. All UART input and output is raw data and the
device uses the RO and RB parameters to delineate packets.
format, without escape sequences.
allow for control characters. The device passes XON (0x11), XOFF (0x13), Escape
(0x7D), and start delimiter 0x7E as data.
XBee®/XBee-PRO XTend Compatible (XTC) DigiMesh RF Module User Guide
53
AT commandsSerial interfacing commands
BD (Baud Rate)
To request non-standard baud rates with values above 0x80, you can use the Serial Console toolbar in
XCTUto 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.
The range between standard and non-standard baud rates (0x9 - 0x4B0) is invalid. The range between
0x2580 and 0x4AFF is also invalid.
Parameter range
Standard baud rates: 0x0 - 0x8
Non-standard baud rates: 0x4B0 - 0x1C9468 (0x2581 to 0x4AFF not supported)
ParameterDescription
0x01200 b/s
0x12400 b/s
0x24800 b/s
0x39600 b/s
0x419200 b/s
0x538400 b/s
0x657600 b/s
0x7115200 b/s
0x8230400 b/s
Non-standard rates: 0x4B0 - 0x1C9468 (0x2581 to 0x4AFF not supported)
Default
0x03 (9600 b/s)
FT (Flow Control Threshold)
Sets or displays the flow control threshold.
De-assert CTS when the number of bytes specified by the FT parameter are in the DIN buffer. Reassert CTS when less than FT - 16 bytes are in the UART receive buffer.
Parameter range
0x11 - 0x16F
Default
0x13F
XBee®/XBee-PRO XTend Compatible (XTC) DigiMesh RF Module User Guide
54
AT commandsSerial interfacing commands
NB (Parity)
Set or read the serial parity settings for UART communications.
Parameter range
0x00 - 0x04
ParameterDescription
0x00No parity
0x01Even parity
0x02Odd parity
0x03Mark parity (forced high)
0x04Space parity (forced low)
Default
0x00
RB (Packetization Threshold)
Sets or displays the character threshold value.
RF transmission begins after a device receives data in the DIN buffer and meets either of the following
criteria:
n The UART receives RB characters
n The UART receive lines detect RO character times of silence after receiving at least 1 byte of
data
If a device lowers PK below the value of RB, RB is automatically lowered to match the PK value.
If RO = 0, the device must receive RB bytes before beginning transmission.
RB and RO criteria only apply to the first packet of a multi-packet transmission. If data remains in the
DIN buffer after the first packet, transmissions continue in a streaming manner until there is no data
left in the DIN buffer.
Parameter range
1 - 0x100 (bytes) (Maximum value equals the current value of PK Parameter (up to 0x100 HEX (800
decimal))
Default
0xD3
RO (Packetization Timeout)
Set or read the number of character times of inter-character silence required before transmission
begins. For information on how ROworks with the RB command, see RB (Packetization Threshold).
Parameter range
0 - 0xFF [x UART character times]
XBee®/XBee-PRO XTend Compatible (XTC) DigiMesh RF Module User Guide
55
AT commandsSpecial commands
Default
SB (Stop Bits)
Parameter range
0 - 1
ParameterConfiguration
0One stop bit
1Two stop bits
Default
0
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
CN (Exit Command Mode)
Immediately exits Command Mode and applies pending changes.
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
XBee®/XBee-PRO XTend Compatible (XTC) DigiMesh RF Module User Guide
56
AT commandsSpecial commands
RE (Restore Defaults)
Restore device parameters to factory defaults.
Parameter range
N/A
Default
N/A
WR (Write)
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
R1 (Restored Compiled)
Restore device parameters to the compiled defaults.
Parameter range
N/A
Default
N/A
XBee®/XBee-PRO XTend Compatible (XTC) DigiMesh RF Module User Guide
57
Operate in API mode
API mode overview59
XBee®/XBee-PRO XTend Compatible (XTC) DigiMesh RF Module User Guide
58
Operate in API modeAPI mode overview
API mode overview
As an alternative to Transparent operating mode, you can use API operating mode. API mode provides
a structured interface where data is communicated through the serial interface in organized packets
and in a determined order. This enables you to establish complex communication between devices
without having to define your own protocol. The API specifies how commands, command responses
and device status messages are sent and received from the device using the serial interface or the
SPIinterface.
We may add new frame types to future versions of firmware, so build the ability to filter out additional
API frames with unknown frame types into your software interface.
API frame specifications
The firmware supports two API operating modes: without escaped characters and with escaped
characters. Use the AP command to enable either mode. To configure a device to one of these modes,
set the following AP parameter values:
AP command
settingDescription
AP = 0
AP = 1
AP = 2
Software flow control (XON and XOFF) uses API mode 2. The XTC RF Module does not support
software flow control and only supports API mode 2 for compatibility with other XBee devices. We
recommend using API mode 1.
The APIdata 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.
Transparent operating mode, UARTserial line replacement with API modes
disabled. This is the default option.
API operation.
API operation with escaped characters (only possible on UART).
API operation (AP parameter = 1)
We recommend this API mode for most applications. The following table shows the data frame
structure when you enable this mode:
Frame fieldsByteDescription
Start delimiter10x7E
Length2 - 3Most Significant Byte, Least Significant Byte
Frame data4 - nAPI-specific structure
Checksumn + 11 byte
API operation-with escaped characters (AP parameter = 2)
Set API to 2 to allow escaped control characters in the API frame. Due to its increased complexity, we
only recommend this API mode in specific circumstances. API 2 may help improve reliability if the
serial interface to the device is unstable or malformed frames are frequently being generated.
XBee®/XBee-PRO XTend Compatible (XTC) DigiMesh RF Module User Guide
59
Operate in API modeAPI mode overview
When operating in API 2, if an unescaped 0x7E byte is observed, it is treated as the start of a new API
frame and all data received prior to this delimiter is silently discarded. For more information on using
this API mode, refer to the following knowledge base article:
The following table shows the structure of an API frame with escaped characters:
Frame fieldsByte Description
Start delimiter 10x7E
Length2 - 3Most Significant Byte, Least Significant ByteCharacters escaped if needed
Frame data4 - nAPI-specific structure
Checksumn + 1 1 byte
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:
XBee®/XBee-PRO XTend Compatible (XTC) DigiMesh RF Module User Guide
60
Operate in API modeAPI mode overview
Frame data
Start
delimiterLength
123456789...nn+1
0x7EMSBLSB
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.
Frame
type
APIframe type
Data
Data
Checksum
Single byte
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.
Calculate and verify checksums
To calculate the checksum of an API frame:
1. Add all bytes of the packet, except the start delimiter 0x7E and the length (the second and
third bytes).
2. Keep only the lowest 8 bits from the result.
3. Subtract this quantity from 0xFF.
To verify the checksum of an API frame:
1. Add all bytes including the checksum; do not include the delimiter and length.
2. If the checksum is correct, the last two digits on the far right of the sum equal 0xFF.
Example
Consider the following sample data packet: 7E 00 0A 01 01 50 01 00 48 65 6C 6C 6F B8+
Byte(s)Description
7EStart delimiter
00 0ALength bytes
01API identifier
01API frame ID
50 01Destination address low
00Option byte
XBee®/XBee-PRO XTend Compatible (XTC) DigiMesh RF Module User Guide
61
Operate in API modeAPI mode overview
Byte(s)Description
48 65 6C 6C 6FData packet
B8Checksum
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):
Now take the result of 0x247 and keep only the lowest 8 bits which in this example is 0x47 (the two
far right digits). Subtract 0x47 from 0xFF and you get 0xB8 (0xFF - 0x47 = 0xB8). 0xB8 is the checksum
for this data packet.
If an API data packet is composed with an incorrect checksum, the XTC RF Module 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.
If operating in API mode with escaped characters (AP parameter = 2), when sending or receiving a
serial data frame, specific data values must be escaped (flagged) 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'ed with 0x20).
The following data bytes need to be escaped:
n 0x7E: start delimiter
n 0x7D: escape character
n 0x11: XON
n 0x13: XOFF
To escape a character:
1. Insert 0x7D (escape character).
2. Append it with the byte you want to escape, XOR'ed with 0x20.
In API mode with escaped characters, the length field does not include any escape characters in the
frame and the firmware calculates the checksum with non-escaped data.
XBee®/XBee-PRO XTend Compatible (XTC) DigiMesh RF Module User Guide
62
API frames
The following sections document API frame types.
API frame exchanges64
Code to support future API frames65
Local AT Command Request - 0x0866
Queue Local AT Command Request - 0x0967
64-bit Transmit Request - 0x0069
Transmit Request - 0x1070
Explicit Addressing Command Request - 0x1173
Remote AT Command Request - 0x1776
Local AT Command Response - 0x8879
Modem Status - 0x8A81
Modem status codes82
Extended Transmit Status - 0x8B83
Transmit Status - 0x8984
Route Information - 0x8D87
Aggregate Addressing Update- 0x8E89
64-bit Receive Packet - 0x8090
Receive Packet - 0x9092
Explicit Receive Indicator - 0x9193
Node Identification Indicator - 0x9596
Remote AT Command Response- 0x9798
XBee®/XBee-PRO XTend Compatible (XTC) DigiMesh RF Module User Guide
63
API framesAPI frame exchanges
API frame exchanges
Every outgoing API frame has a corresponding response (or ACK) frame that indicates the success or
failure of the outgoing API frame. This section details some of the common API exchanges that occur.
You can use the Frame ID field to correlate between the outgoing frames and associated responses.
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.
Transmit and Receive RF data
The following image shows the API exchanges that take place on the serial interface when a device
sends a 0x10, or 0x11 Transmit Request to another device.
Use the AP command to choose the type of data frame you want to receive, either a (0x90) RX
Indicator frame 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
XBee®/XBee-PRO XTend Compatible (XTC) DigiMesh RF Module User Guide
64
API framesCode to support future API frames
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.
Code to support future API frames
If your software application supports the API, you should make provisions that allow for new API
frames in future firmware releases. For example, you can include the following section of code on a
host microprocessor that handles serial API frames that are sent out the device's DOUT pin:
//Discard any other API frame types that are not being used
XBee®/XBee-PRO XTend Compatible (XTC) DigiMesh RF Module User Guide
65
API framesLocal AT Command Request - 0x08
break;
}
}
Local AT Command Request - 0x08
Response frame:Local AT Command Response - 0x88
Description
This frame type is used to query or set command parameters on the local device. Any parameter that
is set with this frame type will apply the change immediately. If you wish to queue multiple parameter
changes and apply them later, use the Queue Local AT Command Request - 0x09 instead.
When querying parameter values, this frame behaves identically to Queue Local AT Command Request
- 0x09: You can query parameter values by sending this frame with a command but no parameter
value field—the two-byte AT command is immediately followed by the frame checksum. When an AT
command is queried, a Local AT Command Response - 0x88frameis populated with the parameter
value that is currently set on the device. The Frame ID of the 0x88 response is the same one set by the
command in the 0x08 request frame.
Format
The following table provides the contents of the frame. For details on frame structure, see API frame
format.
Offset SizeFrame FieldDescription
08-bitStart DelimiterIndicates the start of an API frame.
116-bitLengthNumber of bytes between the length and checksum.
38-bit
48-bit
516-bit
7-nvariable
EOF8-bitChecksum0xFF minus the 8-bit sum of bytes from offset 3 tothis byte
Frame typeLocal AT Command Request - 0x08
Frame IDIdentifies the data frame for the host to correlate with a
subsequent response.
If set to0, the device will not emit a response frame.
AT commandThe two ASCII characters that identify theAT Command.
Parameter
value
(optional)
If present, indicates the requested parameter value to set the
given register.
If no characters are present, it queries the current parameter
value and returns the result in the response.
(between length and checksum).
Examples
Each example is written without escapes (AP = 1) and all bytes are represented in hex format. For
brevity, the start delimiter, length, and checksum fields have been excluded.
XBee®/XBee-PRO XTend Compatible (XTC) DigiMesh RF Module User Guide
66
API framesQueue Local AT Command Request - 0x09
Set the local command parameter
Set the NI string of the radio to "End Device".
The correspondingLocal AT Command Response - 0x88with a matching Frame ID will indicate
whether the parameter change succeeded.
7E 00 0E 08 A1 4E 49 45 6E 64 20 44 65 76 69 63 65 38
Frame typeFrame IDAT commandParameter value
0x080xA10x4E490x456E6420446576696365
RequestMatches response"NI""End Device"
Query local command parameter
Query the temperature of the module—TP command.
The corresponding Local AT Command Response - 0x88with a matching Frame ID will return the
temperature value.
7E 00 04 08 17 54 50 3C
Frame typeFrame IDAT commandParameter value
0x080x170x5450(omitted)
RequestMatches response"TP"Query the parameter
Queue Local AT Command Request - 0x09
Response frame:Local AT Command Response - 0x88
Description
This frame type is used to query or set queued command parameters on the local device. In contrast
to Local AT Command Request - 0x08, this frame queues new parameter values and does not apply
them until you either:
n Issue a Local AT Command using the 0x08 frame
n Issue an AC command—queued or otherwise
When querying parameter values, this frame behaves identically to Local AT Command Request - 0x08:
You can query parameter values by sending this frame with a command but no parameter value field—
the two-byte AT command is immediately followed by the frame checksum. When an AT command is
queried, a Local AT Command Response - 0x88 frame is populated with the parameter value that is
currently set on the device. The Frame ID of the 0x88 response is the same one set by the command in
the 0x09 request frame.
Format
The following table provides the contents of the frame. For details on frame structure, see API frame
specifications.
XBee®/XBee-PRO XTend Compatible (XTC) DigiMesh RF Module User Guide
67
API framesQueue Local AT Command Request - 0x09
Offset SizeFrame FieldDescription
08-bitStart DelimiterIndicates the start of an API frame.
116-bitLengthNumber of bytes between the length and checksum.
38-bit
48-bit
516-bit
7-nvariable
EOF8-bitChecksum0xFF minus the 8-bit sum of bytes from offset 3 tothis byte
Frame typeQueue Local AT Command Request - 0x09
Frame IDIdentifies the data frame for the host to correlate with a
subsequent response.
If set to0, the device will not emit a response frame.
AT commandThe two ASCII characters that identify theAT Command.
Parameter
value
(optional)
If present, indicates the requested parameter value to set the
given register at a later time.
If no characters are present, it queries the current parameter
value and returns the result in the response.
(between length and checksum).
Examples
Each example is written without escapes (AP = 1) and all bytes are represented in hex format. For
brevity, the start delimiter, length, and checksum fields have been excluded.
Queue setting local command parameter
Set the UART baud rate to 115200, but do not apply changes immediately.
The device will continue to operate at the current baud rate until the change is applied with a
subsequent AC command.
The correspondingLocal AT Command Response - 0x88with a matching Frame ID will indicate
whether the parameter change succeeded.
7E 00 05 09 53 42 44 07 16
Frame typeFrame IDAT commandParameter value
0x090x530x42440x07
RequestMatches response"BD"7 = 115200 baud
Query local command parameter
Query the temperature of the module (TP command).
The corresponding Local AT Command Response - 0x88frame with a matching Frame ID will return
the temperature value.
7E 00 04 09 17 54 50 3B
XBee®/XBee-PRO XTend Compatible (XTC) DigiMesh RF Module User Guide
68
API frames64-bit Transmit Request - 0x00
Frame typeFrame IDAT commandParameter value
0x090x170x5450(omitted)
RequestMatches response"TP"Query the parameter
64-bit Transmit Request - 0x00
Response frame:Transmit Status - 0x89
Description
This frame type is used to send serial payload data as an RF packet to a remote device with a
corresponding 64-bit IEEE address.
Note This frame format is deprecated and should only be used by customers who require
compatibility with legacy Digi RF products. For new designs, we encourage you to useTransmit
Request - 0x10to initiate API transmissions.
Format
The following table provides the contents of the frame. For details on frame structure, see API frame
format.
Frame
Offset Size
08-bitStart
116-bitLengthNumber of bytes between the length and checksum.
38-bitFrame type
48-bitFrame ID
564-bit
138-bit
FieldDescription
Indicates the start of an API frame.
Delimiter
64-bit Transmit Request- 0x00
Identifies the data frame for the host to correlate with a
subsequent response.
If set to 0, the device will not emit a response frame.
Destination
address
OptionsA bit field of options that affect the outgoing transmission:
Set to the 64-bit IEEE address of the destination device.
If set to 0x000000000000FFFF, the broadcast address is used.
n Bit 0: Disable MAC ACK [0x01]
n Bit 1: Reserved (set to 0)
n Bit 2: Send packet with Broadcast PAN ID [0x04]
l 802.15.4 firmwares only
Note Option values may be combined. Set all unused bits to 0.
XBee®/XBee-PRO XTend Compatible (XTC) DigiMesh RF Module User Guide
69
API framesTransmit Request - 0x10
Frame
Offset Size
FieldDescription
14-nvariable RF data
EOF8-bitChecksum0xFF minus the 8-bit sum of bytes from offset 3 tothis byte
The serial data to be sent to the destination. Use NP to query the
maximum payload size that can be supported based on current
settings.
(between length and checksum).
Examples
Each example is written without escapes (AP = 1) and all bytes are represented in hex format.For
brevity, the start delimiter, length, and checksum fields have been excluded.
64-bit unicast
Sending a unicast transmission to a device with the 64-bit address of 0013A20012345678 with the
serial data "TxData".
The correspondingTransmit Status - 0x89response with a matching Frame ID will indicate whether
the transmission succeeded.
This frame type is used to send payload data as an RF packet to a specific destination. This frame type
is typically used for transmitting serial data to one or more remote devices.
0x00000000
0000FFFF
0x000x42726F616463617374
XBee®/XBee-PRO XTend Compatible (XTC) DigiMesh RF Module User Guide
70
API framesTransmit Request - 0x10
The endpoints used for these data transmissions are defined by the SE and EP commands and the
cluster ID defined by the CI command—excluding 802.15.4. To define theapplication-layer addressing
fields on a per-packet basis, use theExplicit Addressing Command Request - 0x11instead.
Query the NPcommand to read the maximum number of payload bytes that can be sent.
64-bit addressing
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
Format
The following table provides the contents of the frame. For details on the frame structure, see API
frame specifications.
Offset SizeFrame FieldDescription
08-bitStart
Delimiter
116-bitLengthNumber of bytes between the length and checksum.
38-bit
48-bit
564-bit
1316-bit
158-bit
168-bit
17-nvariable
Frame typeTransmit Request - 0x10
Frame IDIdentifies the data frame for the host to correlate with a
64-bit
destination
address
ReservedUnused, but this field is typically set to 0xFFFE.
Broadcast
radius
Transmit
options
Payload
data
Indicates the start of an API frame.
subsequent response frame.
If set to 0, the device will not emit a response frame.
Set to the 64-bit IEEE address of the destination device.
Broadcast address is 0x000000000000FFFF.
Sets the maximum number of hops a broadcast transmission can
traverse. This parameter is only used for broadcast transmissions.
If set to0—recommended—the value of NHspecifies the broadcast
radius.
See the Transmit options bit field table below for available
options.
If set to0, the value ofTOspecifies the transmit options.
Data to be sent to the destination device.Up toNPbytes per
packet.
EOF8-bitChecksum0xFF minus the 8-bit sum of bytes from offset 3 tothis byte
(between length and checksum).
Transmit options bit field
The available transmit options vary depending on the protocol being used. Bitfield options can be
combined. Set all unused bits to 0.
XBee®/XBee-PRO XTend Compatible (XTC) DigiMesh RF Module User Guide
71
API framesTransmit Request - 0x10
DigiMesh
BitMeaningDescription
0Disable ACK [0x01]Disable acknowledgments on all unicasts.
Disable route
1
discoveries [0x02]
Unicast NACK [0x04]
2
Disable Route Discovery on all DigiMesh unicasts.
Enable unicast NACK messages on DigiMesh transmissions
When set, a failed transmission will generate a Route Information -
0x8Dframe for diagnosis.
Unicast trace route
3
[0x08]
Secure Session
4
Encryption [0x10]
5Reserved<set this bit to 0>
6,7Delivery method
Enable a unicast Trace Route on DigiMesh transmissions
When set, the transmission will generate a Route Information -
0x8Dframe.
Encrypt payload for transmission across a Secure Session.
Reduces maximum payload size by 4 bytes.
Each example is written without escapes (AP=1) and all bytes are represented in hex format.For
brevity, the start delimiter, length, and checksum fields have been excluded.
64-bit unicast
Sending a unicast transmission to a device with the 64-bit address of 0013A20012345678 with the
serial data "TxData". Transmit options are set to 0, which means the transmission will send using the
options set by the TO command.
The corresponding Transmit Status - 0x89response with a matching Frame ID will indicate whether
the transmission succeeded.
Sending a broadcast transmission of the serial data "Broadcast" to neighboring devicesand
suppressing the corresponding response by setting Frame ID to 0.
XBee®/XBee-PRO XTend Compatible (XTC) DigiMesh RF Module User Guide
OptionsRF data
72
API framesExplicit Addressing Command Request - 0x11
This frame type is used to send payload data as an RF packet to a specific destination
usingapplication-layer addressing fields. The behavior of this frame is similar to Transmit Request -
0x10, but with additional fields available for user-defined endpoints, cluster ID, and profile ID.
This frame type is typically used for OTA updates, and serial data transmissions.
Query NP (Maximum Packet Payload Bytes) to read the maximum number of payload bytes that can
be sent.
64-bit addressing
Tx
Options RF data
Will useTO"Broadcast"
n For broadcast transmissions, set the 64-bit destination address to0x000000000000FFFF
n For unicast transmissions, set the 64-bit address field to the address of the desired destination
node
Reserved endpoints
For serial data transmissions, the 0xE8endpoint should be used for both source and destination
endpoints.
The active Digi endpoints are:
n 0xE8 - Digi Data endpoint
n 0xE6 - Digi Device Object(DDO) endpoint
n 0xE5 - XBee3 - Secure Session Server endpoint
n 0xE4 - XBee3 - Secure Session Client endpoint
n 0xE3 - XBee3 - Secure Session SRP authentication endpoint
Reserved cluster IDs
For serial data transmissions, the 0x0011 cluster ID should be used.
The following cluster IDs can be used on the 0xE8 data endpoint:
XBee®/XBee-PRO XTend Compatible (XTC) DigiMesh RF Module User Guide
73
API framesExplicit Addressing Command Request - 0x11
n 0x0011- Transparent data cluster ID
n 0x0012-Loopback cluster ID:The destination node echoes any transmitted packet back to the
source device. Cannot be used on XBee 802.15.4 firmware.
Reserved profile IDs
The Digi profile ID of 0xC105 should be used when sending serial data between XBee devices.
Format
The following table provides the contents of the frame. For details on the frame structure, see API
frame specifications.
Offset SizeFrame FieldDescription
08-bitStart DelimiterIndicates the start of an API frame.
116-bitLengthNumber of bytes between the length and checksum.
Frame IDIdentifies the data frame for the host to correlate with a
subsequent response.
If set to0, the device will not emit a response frame.
64-bit
destination
address
ReservedUnused, but this field is typically set to 0xFFFE.
Source EndpointSource endpoint for the transmission.
Destination
Endpoint
Cluster IDThe Cluster ID that the host uses in the transmission.
Profile IDThe Profile ID that the host uses in the transmission.
Broadcast radiusSets the maximum number of hops a broadcast
Set to the 64-bit IEEE address of the destination device.
Broadcast address is0x000000000000FFFF.
Zigbee coordinator address is 0x0000000000000000.
When using 16-bit addressing, set this field
to0xFFFFFFFFFFFFFFFF.
Serial data transmissions should use 0xE8.
Destination endpoint for the transmission.
Serial data transmissions should use 0xE8.
Serial data transmissions should use 0x11.
Serial data transmissions between XBee devices should use
0xC105.
transmission can traverse. This parameter is only used for
broadcast transmissions.
If set to0 (recommended), the value ofNHspecifies the
broadcast radius.
XBee®/XBee-PRO XTend Compatible (XTC) DigiMesh RF Module User Guide
74
API framesExplicit Addressing Command Request - 0x11
Offset SizeFrame FieldDescription
228-bit
23-nvariable
EOF8-bitChecksum0xFF minus the 8-bit sum of bytes from offset 3 tothis byte
Transmit options See the Transmit options bit field table below for available
options.
If set to0, the value ofTOspecifies the transmit options.
Command dataData to be sent to the destination device.Up toNPbytes
per packet.
(between length and checksum).
Transmit options bit field
The available transmit options vary depending on the protocol being used. Bitfield options can be
combined. Set all unused bits to 0.
DigiMesh
BitMeaningDescription
0Disable ACK [0x01]Disable acknowledgments on all unicasts.
Disable route
1
discoveries [0x02]
Unicast NACK [0x04]Enable unicast NACK messages on DigiMesh transmissions
2
Disable Route Discovery on all DigiMesh unicasts.
When set, a failed transmission will generate a Route Information -
0x8Dframe for diagnosis.
Unicast trace route
3
[0x08]
Secure Session
4
Encryption [0x10]
5Reserved<set this bit to 0>
6,7Delivery method
Enable a unicast Trace Route on DigiMesh transmissions
When set, the transmission will generate a Route Information -
0x8Dframe.
Encrypt payload for transmission across a Secure Session
Reduces maximum payload size by 4 bytes.
Each example is written without escapes (AP=1) and all bytes are represented in hex format.For
brevity, the start delimiter, length, and checksum fields have been excluded.
64-bit unicast
Sending a unicast transmission to an XBee device with the 64-bit address of0013A20012345678with
the serial data "TxData". Transmit options are set to 0, which means the transmission will send using
the options set by the TO command. This transmission is identical to aTransmit Request - 0x10using
default settings.
XBee®/XBee-PRO XTend Compatible (XTC) DigiMesh RF Module User Guide
75
API framesRemote AT Command Request - 0x17
The correspondingExtended Transmit Status - 0x8Bresponse with a matching Frame ID will indicate
whether the transmission succeeded.
Sending a loopback transmission to an device with the 64-bit address of0013A20012345678 using
Cluster ID 0x0012. To better understand the raw performance, retries and acknowledgements are
disabled.
The correspondingExtended Transmit Status - 0x8B response with a matching Frame ID can be used
to verify that the transmission was sent.
The destination will not emit a receive frame, instead it will return the transmission back to the
sender. The source device will emit the receive frame—the frame type is determined by the value
ofAO—if the packet looped back successfully.
XBee®/XBee-PRO XTend Compatible (XTC) DigiMesh RF Module User Guide
profile
N/ADisabl
e
retries
461
"TxData"
76
API framesRemote AT Command Request - 0x17
Description
This frame type is used to query or set AT command 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.
When querying parameter values you can query parameter values by sending this framewith a
command but no parameter value field—the two-byte AT command is immediately followed by the
frame checksum. When an AT command is queried, aRemote AT Command Response- 0x97frameis
populated with the parameter value that is currently set on the device. The Frame ID of the 0x97
response is the same one set by the command in the 0x17 request frame.
Note Remote AT Command Requests should only be issued as unicast transmissions to avoid
potential network disruption. Broadcasts are not acknowledged, so there is no guarantee all devices
will receive the request. Responses are returned immediately by all receiving devices, which can cause
congestion on a large network.
Format
The following table provides the contents of the frame. For details on frame structure, see API frame
specifications.
Offset SizeFrame FieldDescription
08-bitStart
Delimiter
116-bitLengthNumber of bytes between the length and checksum.
38-bitFrame type
48-bitFrame ID
564-bit64-bit
destination
address
1316-bitReserved
Indicates the start of an API frame.
Remote AT Command Request - 0x17.
Identifies the data frame for the host to correlate with a
subsequent response.
If set to 0, the device will not emit a response frame.
Set to the 64-bit IEEE address of the destination device.
Unused, but this field is typically set to0xFFFE.
XBee®/XBee-PRO XTend Compatible (XTC) DigiMesh RF Module User Guide
77
API framesRemote AT Command Request - 0x17
Offset SizeFrame FieldDescription
158-bitRemote
command
options
Bit field of options that apply to the remote AT command request:
n Bit 0: Disable ACK[0x01]
n Bit 1: Apply changes on remote [0x02]
l If not set, changes will not applied until the device
receives an AC command or a subsequent command
change is received with this bit set
n Bit 2: Reserved (set to 0)
n Bit 3: Reserved (set to 0)
n Bit 4: Send the remote command securely [0x10]
Note Option values may be combined.Set all unused bits to 0.
1616-bit
AT
The two ASCII characters that identify theAT Command.
command
18-nvariable Parameter
value
(optional)
If present, indicates the requested parameter value to set the
given register.
If no characters are present, it queries the current parameter
value and returns the result in the response.
EOF8-bitChecksum0xFF minus the 8-bit sum of bytes from offset 3 tothis byte
(between length and checksum).
Examples
Each example is written without escapes—AP = 1—and all bytes are represented in hex format. For
brevity, the start delimiter, length, and checksum fields have been excluded.
Set remote command parameter
Set the NI string ofa device with the 64-bit address of 0013A20012345678 to "Remote" and apply the
change immediately.
The correspondingRemote AT Command Response- 0x97 with a matching Frame ID will indicate
success.
7E 00 15 17 27 00 13 A2 00 12 34 56 78 FF FE 02 4E 49 52 65 6D 6F 74 65 F6
Frame
typeFrame ID64-bit destReserved
0x170x270x0013A200
0xFFFE0x020x4E490x52656D6F7465
12345678
RequestMatches
Unused
response
Command
options
AT
command
Parameter
value
Apply Change"NI""Remote"
XBee®/XBee-PRO XTend Compatible (XTC) DigiMesh RF Module User Guide
78
API framesLocal AT Command Response - 0x88
Queue remote command parameter change
Change the PAN ID of a remote device so it can migrate to a new PAN, since this change would cause
network disruption, the change is queued so that it can be made active later with a subsequentAC
command or written to flash with a queued WR command so the change will be active after a power
cycle.
The corresponding Remote AT Command Response- 0x97with a matching Frame ID will indicate
success.
Query the temperature of a remote device—TP command.
The correspondingRemote AT Command Response- 0x97with a matching Frame ID will return the
temperature value.
7E 00 0F 17 FA 00 13 A2 00 12 34 56 78 FF FE 00 54 50 84
Frame
typeFrame ID64-bit destReserved
0x170xFA0x0013A200
12345678
RequestMatches
response
0xFFFE0x000x5450(omitted)
Unused
Command
options
N/A"TP"Query the
AT
command
Parameter
value
parameter
Local AT Command Response - 0x88
Request frames:
n Local AT Command Request - 0x08
n Queue Local AT Command Request - 0x09
Description
This frame type is emitted in response to a local AT Command request. Some commands send back
multiple response frames; for example, . Refer to individual AT command descriptions for details on
API response behavior.
This frame is only emitted if theFrame ID in the request is non-zero.
XBee®/XBee-PRO XTend Compatible (XTC) DigiMesh RF Module User Guide
79
API framesLocal AT Command Response - 0x88
Format
The following table provides the contents of the frame. For details on frame structure, see API frame
specifications.
Offset SizeFrame Field Description
08-bitStart
Delimiter
116-bitLengthNumber of bytes between the length and checksum.
38-bitFrame type
48-bitFrame ID
516-bit
78-bitCommand
8-nvariable Command
EOF8-bitChecksum0xFF minus the 8-bit sum of bytes from offset 3 tothis byte
AT
command
status
data
(optional)
Indicates the start of an API frame.
Local AT Command Response - 0x88
Identifies the data frame for the host to correlate with a prior
request.
The two ASCII characters that identify theAT Command.
If the host requested a command parameter change, this field will
be omitted.
If the host queried a command by omitting the parameter value in
the request, this field will return the value currently set on the
device.
(between length and checksum).
Examples
Each example is written without escapes (AP = 1) and all bytes are represented in hex format. For
brevity, the start delimiter, length, and checksum fields have been excluded.
Set local command parameter
Host set the NI string of the local device to "End Device" using a 0x08 request frame.
The corresponding Local AT Command Response - 0x88with a matching Frame ID is emitted as a
response:
7E 00 05 88 01 4E 49 00 DF
Frame type Frame IDAT command Command Status Command data
0x880xA10x4E490x00(omitted)
ResponseMatches request "NI"SuccessParameter changes return no
XBee®/XBee-PRO XTend Compatible (XTC) DigiMesh RF Module User Guide
data
80
API framesModem Status - 0x8A
Query local command parameter
Host queries the temperature of the local device—TP command—using a 0x08 request frame.
The corresponding Local AT Command Response - 0x88with a matching Frame ID is emitted with the
temperature value as a response:
7E 00 07 88 01 54 50 00 FF FE D5
Frame typeFrame IDAT commandCommand StatusCommand data
0x880x170x54500x000xFFFE
ResponseMatches request"TP"Success-2 °C
Modem Status - 0x8A
Description
This frame type is emitted in response to specific conditions. The status field of this frame indicates
the device behavior.
Format
The following table provides the contents of the frame. For details on frame structure, see API frame
specifications.
Offset Size
08-
116-
38-
Frame
FieldDescription
Start
bit
Delimiter
LengthNumber of bytes between the length and checksum.
bit
Frame
bit
type
Indicates the start of an API frame.
Modem Status - 0x8A
XBee®/XBee-PRO XTend Compatible (XTC) DigiMesh RF Module User Guide
81
API framesModem status codes
Frame
Offset Size
FieldDescription
48-
bit
Modem
status
Complete list of modem statuses:
0x00 = Hardware reset or power up
0x01 =Watchdog timer reset
0x02 = Joined network
0x03 = Left network
0x06 = Coordinator started
0x07 = Network security key was updated
0x0B = Network woke up
0x0C = Network went to sleep
0x0D = Voltage supply limit exceeded
0x0E = Remote Manager connected
0x0F = Remote Manager disconnected
0x11 = Modem configuration changed while join in progress
0x12 = Access fault
0x13 = Fatal error
0x3B = Secure session successfully established
0x3C = Secure session ended
0x3D = Secure session authentication failed
0x3E = Coordinator detected a PAN ID conflict but took no action
0x3F = Coordinator changed PAN ID due to a conflict
0x32 = BLE Connect
0x33 = BLE Disconnect
0x34 = Bandmask configuration failed
0x35 = Cellular component update started
0x36 = Cellular component update failed
0x37 = Cellular component update completed
0x38 = XBee firmware update started
0x39 = XBee firmware update failed
0x3A = XBee firmware update applying
0x40 = Router PAN ID was changed by coordinator due to a conflict
0x42 = Network Watchdog timeout expired
0x80through0xFF = Stack error
Refer to the tables below for a filtered list of status codes that are
appropriate for specific devices.
EOF8-
Checksum 0xFF minus the 8-bit sum of bytes from offset 3 tothis byte (between
bit
length and checksum).
Modem status codes
Statuses for specific modem types are listed here.
XBee DigiMesh
0x00 = Hardware reset or power up
0x01 = Watchdog timer reset
0x0B = Network woke up
0x0C = Network went to sleep
0x0D =Voltage supply limit exceeded
0x3B = XBee 3 - Secure session successfully established
0x3C = XBee 3 - Secure session ended
XBee®/XBee-PRO XTend Compatible (XTC) DigiMesh RF Module User Guide
Each example is written without escapes (AP = 1) and all bytes are represented in hex format. For
brevity, the start delimiter, length, and checksum fields have been excluded.
Boot status
When a device powers up, it returns the following API frame:
7E 00 02 8A 00 75
Frame typeModem Status
0x8A0x00
StatusHardware Reset
Extended Transmit Status - 0x8B
Request frames:
n Transmit Request - 0x10
n Explicit Addressing Command Request - 0x11
Description
This frame type is emitted when a network transmission requestcompletes. The status field of this
frame indicates whether the request succeeded or failed and the reason. This frame type provides
additional networking details about the transmission.
This frame is only emitted if the Frame ID in the request is non-zero.
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.
Offset Size Frame FieldDescription
08-
XBee®/XBee-PRO XTend Compatible (XTC) DigiMesh RF Module User Guide
Start DelimiterIndicates the start of an API frame.
bit
83
API framesTransmit Status - 0x89
Offset Size Frame FieldDescription
116-
bit
38-
bit
48-
bit
516-
bit
78-
bit
88-
bit
LengthNumber of bytes between the length and checksum.
Frame type
Frame IDIdentifies the data frame for the host to correlate with a prior
Reserved
Transmit retry
count
Delivery
status
Transmit Status - 0x8B
request.
Unused, but this field is typically set to 0xFFFE.
The number of application transmission retries that occur.
Complete list of delivery statuses:
0x00 = Success
0x01 = MAC ACK failure
0x02 = CCA/LBT failure
0x03 = Indirect message unrequested / no spectrum
available
0x21 = Network ACK failure
0x25 = Route not found
0x31 = Internal resource error
0x32 = Resource error lack of free buffers, timers, etc.
0x74 = Data payload too large
0x75 = Indirect message unrequested
98-
EOF8-
Discovery
bit
status
Checksum0xFF minus the 8-bit sum of bytes from offset 3 tothis byte
bit
Transmit Status - 0x89
Request frames:
n TX Request: 64-bit address frame - 0x00
n TX Request: 16-bit address - 0x01
n User Data Relay Input- 0x2D
Description
This frame type is emitted when a transmit requestcompletes. The status field of this frame indicates
whether the request succeeded or failed and the reason.
This frame is only emitted if the Frame ID in the request is non-zero.
Note Broadcast transmissions are not acknowledged and always return a status of 0x00, even if the
delivery failed.
Complete list of delivery statuses:
0x00 = No discovery overhead
0x02 = Route discovery
(between length and checksum).
XBee®/XBee-PRO XTend Compatible (XTC) DigiMesh RF Module User Guide
84
API framesTransmit Status - 0x89
Format
The following table provides the contents of the frame. For details on frame structure, see API frame
specifications.
Frame
Offset Size
FieldDescription
08-
bit
116-
bit
38-
bit
48-
bit
Start
Delimiter
LengthNumber of bytes between the length and checksum.
Frame
type
Frame IDIdentifies the data frame for the host to correlate with a prior request.
Indicates the start of an API frame.
Transmit Status - 0x89
XBee®/XBee-PRO XTend Compatible (XTC) DigiMesh RF Module User Guide
85
API framesTransmit Status - 0x89
Frame
Offset Size
FieldDescription
58-
bit
Delivery
status
Complete list of delivery statuses:
0x00= Success
0x01 = No ACK received
0x02 = CCA failure
0x03 = Indirect message unrequested
0x04 = Transceiver was unable to complete the transmission
0x21=Network ACK failure
0x22 =Not joined to network
0x2C = Invalid frame values (check the phone number)
0x31 = Internal error
0x32 =Resource error - lack of free buffers, timers, etc.
0x34 = No Secure Session Connection
0x35 = Encryption Failure
0x74 = Message too long
0x76 = Socket closed unexpectedly
0x78 = Invalid UDP port
0x79 = Invalid TCP port
0x7A = Invalid host address
0x7B = Invalid data mode
0x7C = Invalid interface.SeeUser Data Relay Input- 0x2D.
0x7D = Interface not accepting frames.SeeUser Data Relay
Input- 0x2D.
0x7E = A modem update is in progress. Try again after the
update is complete.
0x80 = Connection refused
0x81 = Socket connection lost
0x82 = No server
0x83 = Socket closed
0x84 = Unknown server
0x85 = Unknown error
0x86 = Invalid TLS configuration (missing file, and so forth)
0x87 = Socket not connected
0x88 = Socket not bound
Refer to the tables below for a filtered list of status codes that are
appropriate for specific devices.
EOF8-
Checksum0xFF minus the 8-bit sum of bytes from offset 3 tothis byte (between
bit
length and checksum).
Delivery status codes
Protocol-specific status codes follow
XBee DigiMesh
0x00= Success
0x01 = No ACK received
0x02 = CCA failure
0x03 = Indirect message unrequested
0x04 = Transceiver was unable to complete the transmission
0x21=Network ACK failure
XBee®/XBee-PRO XTend Compatible (XTC) DigiMesh RF Module User Guide
86
API framesRoute Information - 0x8D
0x22 =Not joined to network
Examples
Each example is written without escapes (AP = 1) and all bytes are represented in hex format. For
brevity, the start delimiter, length, and checksum fields have been excluded.
Successful transmission
Host sent a unicast transmission to a remote device using aTX Request: 64-bit address frame -
0x00frame.
The corresponding0x89 Transmit Statuswith a matching Frame ID is emitted as a response to the
request:
7E 00 03 89 52 0024
Frame typeFrame IDDelivery status
0x890x520x00
ResponseMatches requestSuccess
Route Information - 0x8D
Request frames:
n Transmit Request - 0x10
n Explicit Addressing Command Request - 0x11
Description
This frame type contains the DigiMesh routing information for a remote device on the network. This
route information can be used to diagnose marginal links between devices across multiple hops.
This frame type is emitted in response to a DigiMesh unicast transmission request which has Trace
Routing or NACK enabled. See Trace route option and NACK messages for more information.
Format
The following table provides the contents of the frame. For details on frame structure, see API frame
specifications.
Frame
Offset Size
08-
FieldDescription
Start
bit
Delimiter
Indicates the start of an API frame.
116-
XBee®/XBee-PRO XTend Compatible (XTC) DigiMesh RF Module User Guide
LengthNumber of bytes between the length and checksum.
bit
87
API framesRoute Information - 0x8D
Frame
Offset Size
FieldDescription
38-
bit
48-
bit
58-
bit
632-
bit
108-
bit
118-
bit
128-
bit
1464-
bit
Frame type
Source
event
Data
length
TimestampSystem timer value on the node generating the Route Information
ACK
timeout
count
TX blocked
count
ReservedNot used.
Destination
address
Route Information - 0x8D
Event that caused the route information to be generated:
0x11= NACK
0x12 = Trace route
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.
Packet.The timestamp is in microseconds. Only use this value for
relative time measurements because the time stamp count restarts
approximately every hour.
The number of MAC ACK timeouts that occur.
The number of times the transmission was blocked due to reception in
progress.
The 64-bit IEEE address of the final destination node of this networklevel transmission.
2164-
2964-
3764-
EOF8-
Source
bit
address
Responder
bit
address
Receiver
bit
address
Checksum0xFF minus the 8-bit sum of bytes from offset 3 tothis byte (between
bit
The 64-bit IEEEaddress of the source node of this network-level
transmission.
The 64-bit IEEE address of the node that generates this Route
Information packet after it sends (or attempts to send) the data
packet to the next hop (the Receiver node).
The 64-bit IEEE address of the node that the device sends (or attempts
to send) the data packet.
length and checksum).
Examples
Each example is written without escapes (AP = 1) and all bytes are represented in hex format.For
brevity, the start delimiter, length, and checksum fields have been excluded.
Routing information
The following example represents a possible Route Information Packet. A device emits this frame
when it performs a trace route enabled transmission from one device—serial number 0x0013A200
4052AAAA—to another—serial number 0x0013A200 4052DDDD—across a DigiMesh network.
XBee®/XBee-PRO XTend Compatible (XTC) DigiMesh RF Module User Guide
88
API framesAggregate Addressing Update- 0x8E
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.
7E 00 2A 8D 12 27 6B EB CA 93 00 00 00 00 13 A2 00 40 52 DD DD 00 13 A2 00 40 52
AA AA 00 13 A2 00 40 52 BB BB 00 13 A2 00 40 52 CC CC4E
Fra
Sour
me
ce
typ
e
eve
nt
Data
lengthTimesta
mp
ACK
time
out
TX
BlockedReser
ved
Dest
address
Source
address
Responder
address
Receive
r
address
0x8D0x12 0x27 0x6BEBC
A93
RouteTrac
e
Rout
e
~30
minutesNoretrie
0x000x000x00
No
error
s this
hop
N/ADestinationSourceNode that
Aggregate Addressing Update- 0x8E
Description
This frame type is emitted on devices that update it addressing information in response to a network
aggregator issuing an addressing update. A network aggregator is defined by a device on the network
who has had theAG (Aggregator Support)command issued. A device on the network who's
currentDHandDL matches the address provided in the AGcommand request will update DH and
DLand emit this frame.
Format
The following table provides the contents of the frame. For details on frame structure, see API frame
specifications.
0x0013A
200
4052DD
DD
0x0013A
200
4052AAA
A
0x0013A20
0
4052BBBB
sent
thisinform
ation
0x0013A
200
4052CC
CC
Next hop
Frame
Offset Size
08-
116-
38-
XBee®/XBee-PRO XTend Compatible (XTC) DigiMesh RF Module User Guide
FieldDescription
Start
bit
Delimiter
LengthNumber of bytes between the length and checksum.
bit
Frame
bit
type
Indicates the start of an API frame.
Aggregate Addressing Update- 0x8E
89
API frames64-bit Receive Packet - 0x80
Frame
Offset Size
FieldDescription
48-
bit
564-
bit
1364-
bit
EOF8-
bit
Reserved
New
address
Old
address
Checksum0xFF minus the 8-bit sum of bytes from offset 3 tothis byte (between
Reserved for future functionality.
This field returns 0.
Address to which DH and DL are being set.
Address to which DH and DL were previously set.
length and checksum).
Examples
Each example is written without escapes (AP = 1) and all bytes are represented in hex format.For
brevity, the start delimiter, length, and checksum fields have been excluded.
Aggregate address update
In the following example, a device with destination address (DH/DL) of 0x0013A200 4052AAAA updates
its destination address to 0x0013A200 4052BBBB.
7E 00 12 8E 00 00 13 A2 00 40 52 BB BB 00 13 A2 00 40 52 AA AA 19
Frame typeReservedNew addressOld address
0x8E0x000x0013A200
4052BBBB
UpdateN/A
What DH/DL is now set toWhat DH/DL was set to
64-bit Receive Packet - 0x80
Request frames:
n Transmit Request - 0x10
n Explicit Addressing Command Request - 0x11
n 64-bit Transmit Request - 0x00
n 16-bit Transmit Request- 0x01
Description
This frame type is emitted when a device configured with legacy API output—AO (API Options)=2—
receives an RF data packet from a device configured to use 64-bit source addressing—MY = 0xFFFE.
Note This frame format is deprecated and should only be used by customers who require
compatibility with legacy Digi RF products. For new designs, we encourage you to use Receive Packet
- 0x90 for reception of API transmissions.
0x0013A200
4052AAAA
XBee®/XBee-PRO XTend Compatible (XTC) DigiMesh RF Module User Guide
90
API frames64-bit Receive Packet - 0x80
Format
The following table provides the contents of the frame. For details on frame structure, see API frame
specifications.
Frame
Offset Size
FieldDescription
08-bitStart
Delimiter
116-bitLengthNumber of bytes between the length and checksum.
38-bitFrame
type
464-bit64-bit
source
address
128-bitRSSIReceived Signal Strength Indicator. The Hexadecimal equivalent of (-
138-bit
14-nvariable RF data
OptionsBit field of options that apply to the received message:
Indicates the start of an API frame.
64-bit Receive Packet - 0x80
The sender's 64-bit IEEE address.
dBm) value. For example if RX signal strength is -40 dBm, then 0x28
(40 decimal) is returned.
n Bit 0: Reserved
n Bit 1: Packet was sent as a broadcast [0x02]
n Bit 2: 802.15.4 only - Packet was broadcast across all PANs
[0x04]
Note Option values may be combined.
The RF payload data that the device receives.
EOF8-bitChecksum 0xFF minus the 8-bit sum of bytes from offset 3 tothis byte (between
length and checksum).
Examples
Each example is written without escapes (AP = 1) and all bytes are represented in hex format.For
brevity, the start delimiter, length, and checksum fields have been excluded.
64-bit unicast
A device with the 64-bit address of0013A20087654321sent a unicast transmission to a specific
device with the payload of "TxData". The following frame is emitted if the destination is configured
with AO = 2.
XBee®/XBee-PRO XTend Compatible (XTC) DigiMesh RF Module User Guide
91
API framesReceive Packet - 0x90
Frame type64-bit sourceRSSIRx optionsReceived data
0x80
Output-94 dBmACK was sent"TxData"
0x0013A200
87654321
Receive Packet - 0x90
Request frames:
n Transmit Request - 0x10
n Explicit Addressing Command Request - 0x11
Description
This frame type is emitted when a device configured with standard API output—AO (API Options) = 0—
receives an RF data packet.
Typically this frame is emitted as a result of a device on the network sending serial data using
theTransmit Request - 0x10orExplicit Addressing Command Request - 0x11addressed either as a
broadcast or unicast transmission.
Format
The following table provides the contents of the frame. For details on frame structure, see API frame
specifications.
0x5E0x010x547844617461
Offset SizeFrame FieldDescription
08-bitStart DelimiterIndicates the start of an API frame.
116-bitLengthNumber of bytes between the length and checksum.
38-bitFrame type
464-bit64-bit source
address
1216-bitReserved
Receive Packet - 0x90
The sender's 64-bit address.
Unused, but this field is typically set to 0xFFFE.
XBee®/XBee-PRO XTend Compatible (XTC) DigiMesh RF Module User Guide
92
API framesExplicit Receive Indicator - 0x91
Offset SizeFrame FieldDescription
148-bitReceive
options
Bit field of options that apply to the received message:
n Bit 0: Packet was Acknowledged [0x01]
n Bit 1: Packet was sent as a broadcast [0x02]
n Bit 2: Reserved
n Bit 3: Reserved
n Bit 4: Reserved
n Bit 5: Reserved
n Bit 6: Reserved
n Bit 6, 7: DigiMesh delivery method
l b’00 = <invalid option>
l b’01 = Point-multipoint [0x40]
l b’10 = Directed Broadcast [0x80]
l b’11 = DigiMesh [0xC0]
Note Option values may be combined.
15-nvariable Received data The RF payload data that the device receives.
EOF8-bitChecksum0xFF minus the 8-bit sum of bytes from offset 3 tothis byte
(between length and checksum).
Examples
Each example is written without escapes (AP=1) and all bytes are represented in hex format.For
brevity, the start delimiter, length, and checksum fields have been excluded.
64-bit unicast
A device with the 64-bit address of0013A20041AEB54Esent a unicast transmission to a specific
device with the payload of "TxData". The following frame is emitted if the destination is configured
with AO = 0.
7E 00 12 90 00 13 A2 00 41 AE B5 4E FF FE C1 54 78 44 61 74 61 C4
Frame type64-bit sourceReservedRx optionsReceived data
0x90
Output
0x0013A200
41AEB54E
0x56140xC10x547844617461
Unused
Explicit Receive Indicator - 0x91
Request frames:
ACK was sent in DigiMesh mode"TxData"
XBee®/XBee-PRO XTend Compatible (XTC) DigiMesh RF Module User Guide
93
API framesExplicit Receive Indicator - 0x91
n Transmit Request - 0x10
n Explicit Addressing Command Request - 0x11
Description
This frame type is emitted when a device configured with explicit API output—AO (API Options)
bit1set—receives a packet.
Typically this frame is emitted as a result of a device on the network sending serial data using
theTransmit Request - 0x10orExplicit Addressing Command Request - 0x11addressed either as a
broadcast or unicast transmission.
Format
The following table provides the contents of the frame. For details on frame structure, see API frame
specifications.
Offset SizeFrame FieldDescription
08-bitStart
Delimiter
116-bitLengthNumber of bytes between the length and checksum.
38-bitFrame type
464-bit64-bit source
address
1216-bitReserved
148-bitSource
endpoint
158-bitDestination
endpoint
1616-bitCluster IDThe Cluster ID that the frame is addressed to.
1816-bitProfile IDThe Profile ID that the fame is addressed to.
Indicates the start of an API frame.
Explicit Receive Indicator - 0x91
The sender's 64-bit address.
Unused, but this field is typically set to 0xFFFE.
Endpoint of the source that initiated transmission.
Endpoint of the destination that the message is addressed to.
XBee®/XBee-PRO XTend Compatible (XTC) DigiMesh RF Module User Guide
94
API framesExplicit Receive Indicator - 0x91
Offset SizeFrame FieldDescription
208-bitReceive
options
Bit field of options that apply to the received message for packets
sent using Digi endpoints (0xDC-0xEE):
n Bit 0: Packet was Acknowledged [0x01]
n Bit 1: Packet was sent as a broadcast [0x02]
n Bit 2: Reserved
n Bit 3: Reserved
n Bit 4: Reserved
n Bit 5: Reserved
n Bit 6: Reserved
n Bit 6, 7: DigiMesh delivery method
l b’00 = <invalid option>
l b’01 = Point-multipoint [0x40]
l b’10 = Directed Broadcast [0x80]
l b’11 = DigiMesh [0xC0]
Note Option values may be combined.
21-nvariable Received
The RF payload data that the device receives.
data
EOF8-bitChecksum0xFF minus the 8-bit sum of bytes from offset 3 tothis byte
(between length and checksum).
Examples
Each example is written without escapes (AP=1) and all bytes are represented in hex format.For
brevity, the start delimiter, length, and checksum fields have been excluded.
64-bit unicast
A device with the 64-bit address of0013A20087654321sent a unicast transmission to a specific
device with the payload of "TxData". The following frame is emitted if the destination is configured
with AO > 1.
7E 00 18 91 00 13 A2 00 41 AE B5 4E FF FE E8 E8 00 11 C1 05 C1 54 78 44 61 74 61
1C
Frame
type
0x91
Explicit
output
64-bit
sourceReserved
0x0013A200
0x87BD0xE80xE8 0x0011 0xC105 0xC10x547844617461
41AEB54E
Unused
SourceEPDest
EPCluster ProfileRxoptionsReceived data
Digi
data
Digi
data
DataDigi
profile
ACK was
sent in
DigiMesh
network
"TxData"
XBee®/XBee-PRO XTend Compatible (XTC) DigiMesh RF Module User Guide
95
API framesNode Identification Indicator - 0x95
Node Identification Indicator - 0x95
Description
This frame type is emitted when a node identification broadcast is received.The node identification
indicator contains information about the identifying device, such as address, identifier string (NI), and
other relevant data.
A node identifies itself to the network under these conditions:
n The commissioning button is pressed once.
n A CB 1 command is issued.
n A synchronous sleep node stays awake for 30 seconds in order to receive a sync message. It
also sends out an identifying message.
See for information on the payload formatting.
See NO (Network Discovery Options) for configuration options that modify the output of this frame.
Format
The following table provides the contents of the frame. For details on frame structure, see API frame
specifications.
Offset SizeFrame FieldDescription
08-bitStart
Delimiter
116-bitLengthNumber of bytes between the length and checksum.
38-bitFrame type
464-bit
1216-bitReserved
64-bit source
address
Indicates the start of an API frame.
Node Identification Indicator - 0x95
The sender's 64-bit address.
Unused, but this field is typically set to 0xFFFE.
XBee®/XBee-PRO XTend Compatible (XTC) DigiMesh RF Module User Guide
96
API framesNode Identification Indicator - 0x95
Offset SizeFrame FieldDescription
148-bit
OptionsBit field of options that apply to the received message:
1516-bitReserved
1764-bit
64-bit remote
address
25
variable
(2-byte
minimum)
Node
identification
string
n Bit 0: Reserved
n Bit 1: Packet was sent as a broadcast [0x02]
n Bit 2: Reserved
n Bit 4: Reserved
n Bit 5: Reserved
n Bit 6, 7: DigiMesh delivery method
l b’00 = <invalid option>
l b’01 = Point-multipoint [0x40]
l b’10 = Directed Broadcast [0x80]
l b’11 = DigiMesh [0xC0]
Note Option values may be combined.
Unused, but this field is typically set to 0xFFFE.
The 64-bit address of the device that sent the Node
Identification.
Node identification string on the remote device set by NI
(Node Identifier). The identification string is terminated with a
NULL byte (0x00).
27+NI16-bitReserved
29+NI
8-bit
Network
device type
Unused, but this field is typically set to 0xFFFE.
What type of network device the remote identifies as:
0 = Coordinator
1 = Router
2 = End Device
30+NI8-bitSource event
The event that caused the node identification broadcast to be
sent.
0 = Reserved
1 =Frame sent by node identification pushbutton
event—see .
The user-defined device type on the remote device set by DD
(Device Type Identifier).
Only included if the receiving device has the appropriateNO
(Network Discovery Options)bit set.
0xC105
.
.
XBee®/XBee-PRO XTend Compatible (XTC) DigiMesh RF Module User Guide
97
API framesRemote AT Command Response- 0x97
Offset SizeFrame FieldDescription
EOF-18-bitRSSI
(optional)
EOF8-bitChecksum0xFF minus the 8-bit sum of bytes from offset 3 tothis byte—
The RSSI of the last hop that relayed the message.
Only included if the receiving device has the appropriateNO
(Network Discovery Options)bit set.
between length and checksum.
Examples
Each example is written without escapes (AP = 1) and all bytes are represented in hex format.For
brevity, the start delimiter, length, and checksum fields have been excluded.
Identify remote device
A technician is replacing a DigiMesh device in the field and needs to have the its entry removed from a
cloud server's database. The technician pushes the commissioning button on the old device once to
send an identification broadcast. The server can use the broadcast to identify which device is being
replaced and perform the necessary action.
When the node identification broadcast is sent, every device that receives the message will flash the
association LED and emit the following information frame:
7E 00 27 95 00 13 A2 00 12 34 56 78 FF FE C2 FF FE 00 13 A2 00 12 34 56 78 4C 48
37 35 00 FF FE 01 01 C1 05 10 1E 00 14 00 08 0D
Frame
type
0x95
Identifica
tion
64-bit
source
0x0013A
200
1234567
8
ReservedOptions64-bit
remoteNI String
0xFFFE0xC2
Unused
DigiMe
sh
broadc
ast
0x0013A
200
1234567
8
0x4C48373
500
"LH75" +
null
Remote AT Command Response- 0x97
Request frame:Remote AT Command Request - 0x17
Description
This frame type is emitted in response to aRemote AT Command Request - 0x17. Some commands
send back multiple response frames; for example, theNDcommand. Refer to individual AT command
descriptions for details on API response behavior.
This frame is only emitted if theFrame ID in the request is non-zero.
Devi
Reserv
ed
0xFFFE0x01 0x010xC1050x10
Unused
ce
EventProfi
type
RouterButt
on
pres
s
MFG
le ID
DigiDigi
ID
1E
XBee®/XBee-PRO XTend Compatible (XTC) DigiMesh RF Module User Guide
98
API framesRemote AT Command Response- 0x97
Format
The following table provides the contents of the frame. For details on frame structure, see API frame
specifications.
Offset SizeFrame FieldDescription
08-bitStart
Delimiter
116-bitLengthNumber of bytes between the length and checksum.
38-bitFrame type
48-bitFrame ID
564-bit64-bit
source
address
1316-bitReserved
1516-bit
178-bitCommand
18-nvariable Parameter
AT
command
status
value
(optional)
Indicates the start of an API frame.
Remote AT Command Response - 0x97
Identifies the data frame for the host to correlate with a prior
request.
The sender's 64-bit address.
Unused, but this field is typically set to 0xFFFE.
The two ASCII characters that identify theAT Command.
If the host requested a command parameter change, this field will
be omitted.
If the host queried a command by omitting the parameter value in
the request, this field will return the value currently set on the
device.
EOF8-bitChecksum0xFF minus the 8-bit sum of bytes from offset 3 tothis byte
(between length and checksum).
Examples
Each example is written without escapes (AP = 1) and all bytes are represented in hex format. For
brevity, the start delimiter, length, and checksum fields have been excluded.
Set remote command parameter
Host set the NI string ofa remote device to "Remote" using aRemote AT Command Request - 0x17.
The corresponding 0x97 Remote AT Command Responsewith a matching Frame ID is emitted as a
response:
7E 00 0F 97 27 00 13 A2 00 12 34 56 78 12 7E 4E 49 00 51
XBee®/XBee-PRO XTend Compatible (XTC) DigiMesh RF Module User Guide
99
API framesRemote AT Command Response- 0x97
Frame
typeFrame ID
0x970x270x0013A200
Response Matches
request
64-bit
sourceReservedATcommand
0x127E0x4E490x00(omitted)
12345678
Unused
"NI"SuccessParameter changes
Command
StatusCommand data
return no data
Transmission failure
Host queued the the PAN ID change of a remote device using aRemote AT Command Request - 0x17.
Due to existing network congestion, the host will retry any failed attempts.
The corresponding 0x97 Remote AT Command Responsewith a matching Frame ID is emitted as a
response:
7E 00 0F 97 27 00 13 A2 00 12 34 56 78 FF FE 49 44 04 EA
Frame
typeFrame ID
0x970x270x0013A200
Response Matches
request
64-bit
sourceReservedATcommand
0xFFFE0x49440x04(omitted)
12345678
Unused
"ID"Transmission
Command
StatusCommand data
Parameter changes
failure
return no data
Query remote command parameter
Query the temperature of a remote device—TP (Board Temperature).
The corresponding 0x97 Remote AT Command Response with a matching Frame ID is emitted with
the temperature value as a response: