
API Operation
Frame descriptions
XBee/XBee-PRO® S2C ZigBee® RF Module
171
Create Source Route - 0x21
Description
This frame creates a source route in the device. A source route specifies the complete route a packet
traverses to get from source to destination. For best results, use source routing with many-to-one
routing.
Note
Both the 64-bit and 16-bit destination addresses are required when creating a source route.
These are obtained when the device receives a Route Record Indicator (0xA1) frame.
Format
The following table provides the contents of the frame.
Frame
data
fields
Offset
Description
Frame
type
3
Frame ID
4
Always set the Frame ID to 0.
64-bit
destination
address
5-12
MSB first, LSB last. Set to the 64-bit address of the
destination device.
Reserved 64-bit address for the coordinator =
0x0000000000000000
Broadcast = 0x000000000000FFFF.
16-bit
destination
network
address
13-14
Set to 0xFFFE if the address is unknown, or if sending a
broadcast.
Route
command
options
15
Set to 0.
Number of
addresses
16
The number of addresses in the source route (excluding
source and destination). If this number is 0 or greater than
the source route table size (40), the device silently discards
this API frame. However, the device discards a frame with
more than 11 intermediate hops.
Address 1
17
Neighbor of destination
18
Address 2
(closer
hop)
19
Address of intermediate hop
20