Skip to content

XBee API - Frame Information

This page provides detailed information about the byte allocation within different XBee frames in API 1 (API mode without escapes).

  1. 0x00 - Tx (Transmit) Request: 64 bit-address
  2. 0x08 - AT Command
  3. 0x81 - RX (Receive) Packet: 16-bit Address
  4. 0x88 - AT Command Response
  5. 0x89 - Tx (Transmit) Status

XBee API frame types

0x00 - Tx (Transmit) Request: 64 bit-address

Section titled “0x00 - Tx (Transmit) Request: 64 bit-address”
Frame ParametersBytes
Start Delimeter1
Length2
Frame Type1
Frame ID1
64-bit Destination Address8
Options1
RF Data (Payload)0 - 256*
Checksum1

*In practice, maximum payload size is actually 100 bytes

Always set to 7E in XBee API Mode

Number of bytes between Length and Checksum fields

Specefies XBee API frame type (0x00)

Identifies the UART data frame for the hose to match with subsequent reqponse. If 0, no response is requested

Set to the 64-bit address of the destination XBee module. Use 00 00 00 00 00 00 FF FF to send a broadcast packet.

XBee API frame options

Packet payload, up to 256 bytes (256 characters)

Xbee Maximum Packet Payload Length

FF minus 8-bit sum of bytes between length and checksum fields.

Frame ParametersBytes
Start Delimeter1
Length2
Frame Type1
Frame ID1
AT Command2
Parameter Value0 - 256
Checksum1

Always set to 7E in XBee API Mode

Number of bytes between Length and Checksum fields

Specefies XBee API frame type (0x00)

Identifies the UART data frame for the hose to match with subsequent reqponse. If 0, no response is requested

Two ASCII characters that identify the AT command.

If present, indicates the requested parameter value to set the given register. If no characters are present, get the value of the register.

FF minus 8-bit sum of bytes between length and checksum fields.

0x81 - RX (Receive) Packet: 16-bit Address

Section titled “0x81 - RX (Receive) Packet: 16-bit Address”
Frame ParametersBytes
Start Delimeter1
Length2
Frame Type1
16-bit Source Address2
RSSI1
Options1
RF Data0 - 100
Checksum1

Always set to 7E in XBee API Mode

Number of bytes between Length and Checksum fields

Specefies XBee API frame type (0x81)

16-bit network address of the sender device. Can be set in XTCU (Parameter MM).

Received Signal Strength Indicator (RSSI) (1 byte)

Section titled “Received Signal Strength Indicator (RSSI) (1 byte)”

Hexadecimal equivalent of (-dBm) value.

Example:

  • For a RX signal strength of -40 dBm, a 28 hexadecimal value (40 decimal) is returned.

Bitfield indicating the Rx indicator options

  • bit 0 - [reserved]
  • bit 1 - Address broadcast
  • bit 2 - PAN broadcast
  • bits 3-7 0 [reserved]

Packet payload, up to 100 bytes (100 characters)

FF minus 8-bit sum of bytes between length and checksum fields.

Frame ParametersBytes
Start Delimeter1
Length2
Frame Type1
Frame ID1
AT Command2
Command Status1
Command Data0 - 256
Checksum1

Always set to 7E in XBee API Mode.

Number of bytes between Length and Checksum fields.

Specefies XBee API frame type (0x88).

Identifies the UART data frame being reported. If the Frame ID = 0 in AT Command Mode, no AT Command Response will be given.

Two ASCII characters that identify the AT command.

The status of the AT Command

Status CodeDescription
00OK
01ERROR
02Invalid Command
03Invalid Parameter
04Tx Failure

Register data in binary format. If the register was set in the AT Command, then this field is not returned.

FF minus 8-bit sum of bytes between length and checksum fields.

Frame ParametersBytes
Start Delimeter1
Length2
Frame Type1
Frame ID1
Delivery Status1
Checksum1

Always set to 7E in XBee API Mode

Number of bytes between Length and Checksum fields. Should always be 00 03

Specefies XBee API frame type (0x89)

Identifies the UART data frame being reported. If the Frame ID = 0 in the transmit request, no transmit status is given

IDDescription
00Success
01An expected MAC acknowledgment never occurred
02CCA failure
03Packet was purged without being transmitted
04Physical error on the interface with the WiFi transceiver
18No Buffers
21Expected network acknowledgment never occurred
22Not joined to network
23Self-addressed
24Address not found
25Route not found
26Broadcast relay was not heard
2BInvalid Binding Table Index
2CInvalid Endpoint
31A software error occurred
32Resource Error
40CoAP message URI requires a nonzero length URI string terminated with a zero byte
41Unrecognized Digi API Frame type
42Client made a badly formed CoP request
43Server failed to handle CoAP request, perhaps due to a lack of internal resources. The client may try again
44CoAP Invalid Status
45CoAP Message Timeout, Server did not respond within the expected time
46CoAP Message Reset
74Data payload too large
75Indirect message unrequested
76Client socket creation attempt failed
77Connection does not exist
78Invalid UDP port
79Invalid TCP port
7AInvalid host
7BInvalid data mode
7CInvalid interface
7DInterface not accepting frames
80Connection refused
81Connection lost
82No server
83Socket closed
84Unknown server
85Unknown error
86Invalid TLS configuration
BBKey not authorized

FF minus 8-bit sum of bytes between length and checksum fields.