Operate in API mode
API mode overview
XBee 868LP RF Modules User Guide
168
API frame names
API ID
AT Command
0x08
AT Command - Queue Parameter Value
0x09
Transmit Request
0x10
Explicit Addressing Command Frame
0x11
Remote Command Request
0x17
AT Command Response
0x88
Modem Status
0x8A
Transmit Status
0x8B
Receive Packet (AO=0)
0x90
Explicit Rx Indicator (AO=1)
0x91
I/O Data Sample RX Indicator
0x92
Node Identification Indicator (AO=0)
0x95
Remote Command Response
0x97
Calculate and verify checksums
To calculate the checksum of an API frame:
1. Add all bytes of the packet, except the start delimiter 0x7E and the length (the second and
third bytes).
2. Keep only the lowest 8 bits from the result.
3. Subtract this quantity from 0xFF.
To verify the checksum of an API frame:
1. Add all bytes including the checksum; do not include the delimiter and length.
2. If the checksum is correct, the last two digits on the far right of the sum equal 0xFF.
Example
Consider the following sample data packet:
7E 00 0A 01 01 50 01 00 48 65 6C 6C 6F B8
+
Byte(s)
Description
7E
Start delimiter
00 0A
Length bytes
01
API identifier
01
API frame ID
50 01
Destination address low