API operation API frames
XBee/XBee-PRO ZigBee RF Modules User Guide 115
API frames
The following sections illustrate the types of frames encountered while using the API.
AT command
Frame type: 0x08
Used to query or set module parameters on the local device. This API command applies changes after executing
the command. Changes made to module parameters take effect once changes are applied. The API example
below illustrates an API frame when modifying the NJ parameter value of the module
The above example illustrates an AT command when querying an NJ value.
Frame Fields Offset Example Description
Start Delimiter
00x7E
Length
MSB 1 0x00
Number of bytes between the length and the checksum
LSB 2 0x04
Frame-specific Data Frame Type
30x08
Frame ID
4 0x52 (R)
Identifies the UART data frame for the host to correlate
with a subsequent ACK (acknowledgment). If set to 0, no
response is sent.
AT Command
50x4E (N)
Command Name - Two ASCII characters that identify the
AT command.
60x4A (J)
Parameter Value
(optional)
If present, indicates the requested parameter value to set
the given register.
If no characters present, register is queried.
Checksum
7 0x0D
0xFF - the 8 bit sum of bytes from offset 3 to this byte.