© 2014 Digi International Inc. 71
XBee/XBee-PRO
®
DigiMesh 2.4 User Manual
Checksum
To test data integrity, a checksum is calculated and verified on non-escaped data.
To calculate: Not including frame delimiters and length, add all bytes keeping only the lowest 8
bits of the result and subtract the result from 0xFF.
To verify: Add all bytes (include checksum, but not the delimiter and length). If the checksum is
correct, the sum will equal 0xFF.
XBee API UART Exchanges
AT Commands
The following image shows the API frame exchange that takes place at the UART when sending
an AT command request to read or set a module parameter. The response can be disabled by
setting the frame ID to 0 in the request.
Transmitting and Receiving RF Data
The following image shows the API exchanges that take place at the UART when sending RF
data to another device. The transmit status frame is always sent at the end of a data
transmission unless the frame ID is set to 0 in the transmit request. If the packet cannot be
Modem Status 0x8A
Transmit Status 0x8B
Receive Packet (AO=0) 0x90
Explicit Rx Indicator (AO=1) 0x91
Node Identification Indicator (AO=0) 0x95
Remote Command Response 0x97
API Frame Names API ID