Specifications

XBee®/XBeePRO®SERFModules
©2009DigiInternational,Inc. 27
the network should likewise be de-registered or removed from the trust center using the same API
frame.
Example 1 - Registering a Device
A router with a 64-bit address of 0x0013A200404C15A6 wants to join the network with a link key
of 0x1. The following API frame can be sent to the XBee coordinator (trust center) to register the
device.
Raw:
7E 00 0E 24 01 0013A200 404C15A6 FFFE 00 01 E0
Decoded:
0x7E Start delimiter
0x000E Length (all bytes after length, excluding checksum)
0x24 API frame type (Register Joining Device)
0x01 Frame ID (arbitrarily selected. Set >0 to get a status response.)
0x0013A200 404C15A6 64-bit address of joining device
0xFFFE 16-bit address (set to 0xFFFE)
0x00 Key Options (set to 0)
0x01 Key (up to 16 bytes, leading 0's can be omitted)
0xE0 Checksum
If successful, the XBee would respond with:
Raw:
7E 0003 A4 01 00 5A
Decoded:
0x7E Start delimiter
0x0003 Length (all bytes after length, excluding checksum)
0xA4 API frame type (Register Joining Device Status)
0x01 Frame ID (matches frame ID of the request)
0x00 Status (success)
0x5A Checksum
Example 2 - Removing a Device
Removing a device from the PAN is a 2 step process. The device must first be told to leave the
network, and then it should be removed from the trust center's key table.
Suppose we want to remove a router with a 64-bit address of 0x0013A200404C15A5 from the
network. The explicit transmit API frame (0x11) can be used to send a ZDO Leave Request ([4],
2.4.3.3.5) as shown below:
Raw:
7E 001D 11 01 0013A200404C15A5 FFFE 00 00 0034 0000 00 00 A5154C4000A21300 00 C6
Decoded:
0x7E Start delimiter
0x001D Length
0x11 API frame type (Explicit Addressing ZigBee Command Frame)
0x01 Frame ID (arbitrarily selected. Set > 0 to get a status response)
0x0013A200404C15A564-bit address of destination device
0xFFFE16-bit address of destination device (unknown)
0x00 Source Endpoint
0x00 Destination Endpoint