Api Frames; At Command - Digi XBee-PRO User Manual

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

Advertisement

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
Frame Fields
Start Delimiter
Length
Frame-specific
Frame Type
Data
Frame ID
AT Command
XBee/XBee-PRO ZigBee RF Modules User Guide
void XBee_HandleRxAPIFrame(_apiFrameUnion *papiFrame){
switch(papiFrame->api_id){
case RX_RF_DATA_FRAME:
//process received RF data frame
break;
case RX_IO_SAMPLE_FRAME:
//process IO sample frame
break;
case NODE_IDENTIFICATION_FRAME:
//process node identification frame
break;
default:
//Discard any other API frame types that are not being used
break;
}
}
Offset
Example
0
0x7E
MSB 1
0x00
LSB 2
0x04
3
0x08
4
0x52 (R)
5
0x4E (N)
6
0x4A (J)
Description
Number of bytes between the length and the checksum
Identifies the serial port data frame for the host to correlate with a
subsequent ACK (acknowledgment). If set to 0, no response is sent.
Command Name - Two ASCII characters that identify the AT
Command.
API frames
145

Advertisement

Table of Contents
loading

This manual is also suitable for:

XbeePs2csm

Table of Contents