
API Operation
Frame descriptions
XBee/XBee-PRO® S2C ZigBee® RF Module
160
AT Command - Queue Parameter Value frame - 0x09
Description
This frame allows you to query or set device parameters. In contrast to the AT Command (0x08)
frame, this frame queues new parameter values and does not apply them until you issue either:
n
The
AT
Command (0x08) frame (for API type)
n
The
AC
command
When querying parameter values, the 0x09 frame behaves identically to the 0x08 frame. The device
returns register queries immediately and not does not queue them. The response for this command is
also an
AT
Command Response frame (0x88).
Send a command to change the baud rate (
BD
) to 115200 baud, but do not apply changes yet. The
module continues to operate at the previous baud rate until you apply the changes.
Format
The following table provides the contents of the frame. For details on frame structure, see
Frame data
fields
Offset Description
Frame type
3
0x09
Frame ID
4
Identifies the data frame for the host to correlate with a subsequent
ACK. If set to
0
, the device does not send a response.
AT command
5-6
Command name: two ASCII characters that identify the AT command.
Parameter value
(
BD7
= 115200
baud)
7-n
If present, indicates the requested parameter value to set the given
register. If no characters are present, queries the register.
Example
The following example sends a command to change the baud rate (
BD
) to 115200 baud, but does not
apply the changes immediately. The device continues to operate at the previous baud rate until you
apply the changes.
Note
In this example, you could send the parameter as a zero-padded 2-byte or 4-byte value.
Frame data fields
Offset
Example
Start delimiter
0
0x7E
Length
MSB 1
0x00
LSB 2
0x05
Frame type
3
0x09