Device Registration; Code To Support Future Api Frames - Digi XBee XTC User Manual

Digimesh radio frequency (rf) module
Hide thumbs Also See for XBee XTC:
Table of Contents

Advertisement

API frames
generated and you can use it to identify if the remote device successfully received and applied the
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®/XBee-PRO XTend Compatible (XTC) DigiMesh RF Module 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
break;
default:
//Discard any other API frame types that are not being used

Code to support future API frames

65

Advertisement

Table of Contents
loading

This manual is also suitable for:

Xbee-pro xtc

Table of Contents