
API Operation
API serial exchanges
XBee/XBee-PRO® S2C ZigBee® RF Module
155
n
0x0004 = length
n
0x08 = AT Command API frame type
n
0x01 = Frame ID (set to non-zero value)
n
0x4E44 = AT command (
ND
)
n
0x64 = Checksum
The checksum is calculated as [0xFF - (0x08 + 0x01 + 0x4E + 0x44)]
Example
: Send a remote command to the coordinator to set AD1/DIO1 as a digital input (
D1
=3) and
apply changes to force the I/O update.
The API remote command frame should look like:
0x7E 0x00 0x10 0x17 0x01 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0xFF 0xFE 0x02 0x44 0x31 0x03
0x70
Where:
n
0x10 = length (16 bytes excluding checksum)
n
0x17 = Remote Command API frame type
n
0x01 = Frame ID
n
0x0000000000000000 = Coordinator's address (can be replaced with coordinator's actual 64-
bit address if known)
n
0xFFFE = 16- bit Destination Address
n
0x02 = Apply Changes (Remote Command Options)
n
0x4431 = AT command (
D1
)
n
0x03 = Command Parameter (the parameter could also be sent as 0x0003 or 0x00000003)
0x70 = Checksum
API serial exchanges
You can use the Frame ID field to correlate between the outgoing frames and associated responses.
AT commands
The following image shows the API frame exchange that takes place at the serial interface when
sending an AT command request to read or set a device parameter. You can disable the response by
setting the frame ID to 0 in the request.
Содержание XBee
Страница 1: ...XBee XBee PRO S2C ZigBee RF Module User Guide ...
Страница 259: ...AT commands Execution commands XBee XBee PRO S2C ZigBee RF Module 259 Parameter range N A Default N A ...
Страница 289: ...Regulatory information ANATEL Brazil XBee XBee PRO S2C ZigBee RF Module 289 ...
Страница 290: ...Regulatory information ANATEL Brazil XBee XBee PRO S2C ZigBee RF Module 290 ...
Страница 303: ...Load ZigBee firmware on 802 15 4 devices Background 304 Load ZB firmware 305 XBee XBee PRO S2C ZigBee RF Module 303 ...