API operation API frames
XBee/XBee-PRO ZigBee RF Modules User Guide 127
ZigBee Receive Packet
Frame type: (0x90)
When the module receives an RF packet, it is sent out the UART using this message type.
Suppose a device with a 64-bit address of 0x0013A200 40522BAA, and 16-bit address 0x7D84 sends a unicast data
transmission to a remote device with payload “RxData”. If AO=0 on the receiving device, it would send the above
example frame out its UART.
Frame Fields Offset Example Description
Start Delimiter
00x7E
Length
MSB 1 0x00
Number of bytes between the length and the checksum
Frame-specific
Data
LSB 2 0x11
Frame Type
30x90
64-bit Source
Address
MSB 4 0x00
50x13
64-bit address of sender. Set to 0xFFFFFFFFFFFFFFFF
(unknown 64-bit address) if the sender's 64-bit address is
unknown.
60xA2
70x00
80x40
90x52
10 0x2B
LSB 11 0xAA
16-bit Source
Network Address
MSB 12 0x7D
16-bit address of sender
LSB 13 0x84
Receive Options
14 0x01
0x01 - Packet Acknowledged
0x02 - Packet was a broadcast packet
0x20 - Packet encrypted with APS encryption
0x40 - Packet was sent from an end device (if known)
Note Option values can be combined. For example, a 0x40
and a 0x01 will show as a 0x41. Other possible values
0x21, 0x22, 0x41, 0x42, 0x60, 0x61, 0x62.
Received Data
15 0x52
Received RF data
16 0x78
17 0x44
18 0x61
19 0x74
20 0x61
Checksum
21 0x0D
0xFF - the 8 bit sum of bytes from offset 3 to this byte.