Code To Support Future Api Frames - Digi XBee 868LP User Manual

Radio frequency (rf) modules
Hide thumbs Also See for XBee 868LP:
Table of Contents

Advertisement

Operate in API mode
transmission unless the frame ID is set to 0 in the TX request. If the packet cannot be delivered to the
destination, the transmit status frame indicates the cause of failure.
The received data frame type (0x90 or 0x91) is determined by the AO command.
Remote AT commands
The following image shows the API frame exchanges that take place at the serial interface when
sending a remote AT command. The device does not send out a remote command response frame
through the serial interface if the remote device does not receive the remote command.
Device Registration
The following image shows the API frame exchanges that take place at the serial interface when
registering a joining device to a trust center.

Code to support future API frames

If your software application supports the API, you should make provisions that allow for new API
frames in future firmware releases. For example, you can include the following section of code on a
host microprocessor that handles serial API frames that are sent out the device's DOUT pin:
void XBee_HandleRxAPIFrame(_apiFrameUnion *papiFrame){
switch(papiFrame->api_id){
XBee 868LP RF Modules User Guide
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
API mode overview
170

Advertisement

Table of Contents
loading

Table of Contents