Api Serial Exchanges; At Commands - Digi XBee-PRO S2C Zigbee User Manual

Rf module
Hide thumbs Also See for XBee-PRO S2C Zigbee:
Table of Contents

Advertisement

API Operation
0x01 = Frame ID (set to non-zero value)
n
0x4E44 = AT command (ND)
n
0x64 = Checksum
n
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:
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-
n
bit address if known)
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)
n
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/XBee-PRO® S2C Zigbee® RF Module
API serial exchanges
154

Advertisement

Table of Contents
loading

This manual is also suitable for:

Xbee s2c zigbee

Table of Contents