Operate in API mode
API mode overview
XBee 868LP RF Modules User Guide
170
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){
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