© 2014 Digi International Inc. 75
XBee/XBee-PRO
®
DigiMesh 2.4 User Manual
This example shows if escaping is disabled (AP=1).
Example: The example above shows how to send a transmission to a module where escaping is
disabled (AP=1) with destination address 0x0013A200 40014011, payload "TxData0A". If
escaping is enabled (AP=2), the frame should look like:
0x7E 0x00 0x16 0x10 0x01 0x00 0x7D 0x33 0xA2 0x00 0x40 0x0A 0x01 0x27
0xFF 0xFE 0x00 0x00 0x54 0x78 0x44 0x61 0x74 0x61 0x30 0x41 0x7D 0x33
The checksum is calculated (on all non-escaped bytes) as [0xFF - (sum of all bytes from API
frame type through data payload)].
Frame Fields Offset Example Description
Start Delimiter 0 0x7E
Length
MSB 1 0x00
Number of bytes between the length
and the checksum
LSB 2 0x16
Frame-specific
Data
Frame Type 3 0x10
Frame ID 4 0x01
Identifies the UART data frame for
the host to correlate with a
subsequent ACK (acknowledgement).
If set to 0, no response is sent.
64-bit
Destination
Address
MSB 5 0x00
Set to the 64-bit address of the
destination device. The following
address is also supported:
0x000000000000FFFF - Broadcast
address
60x13
70xA2
80x00
90x40
10 0x0A
11 0x01
LSB 12 0x27
Reserved
13 0xFF
Set to 0xFFFE.
14 0xFE
Broadcast
Radius
15 0x00
Sets maximum number of hops a
broadcast transmission can occur. If
set to 0, the broadcast radius will
be set to the maximum hops value.
Transmit
Options
16 0x00
Bitfield:
bit 0: Disable ACK
bit 1: Don't attempt route Discovery.
All other bits must be set to 0.
RF Data
17 0x54
Data that is sent to the destination
device
18 0x78
19 0x44
20 0x61
21 0x74
22 0x61
23 0x30
24 0x41
Checksum 25 0x13
0xFF - the 8 bit sum of bytes from
offset 3 to this byte.