EasyManuals Logo
Home>Digi>Control Unit>XBee

Digi XBee User Manual

Digi XBee
96 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Page #73 background imageLoading...
Page #73 background image
© 2014 Digi International Inc. 73
XBee/XBee-PRO
®
DigiMesh 2.4 User Manual
XBee Frame Data
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 NH parameter
value of the module.
Frame Fields Offset Example Description
Start Delimiter 0 0x7E
Length
MSB 1 0x00
Number of bytes between the length
and the checksum
LSB 2 0x04
Frame-specific
Data
Frame Type 3 0x08
Frame ID 4 0x52 (R)
Identifies the UART data frame for
the host to correlate with a
subsequent ACK (acknowledgement).
If set to 0, no response is sent.
AT Command
5 0x4E (N) Command Name - Two ASCII
characters that identify the AT
Command.
6 0x48 (H)
Parameter
Value
(optional)
If present, indicates the requested
parameter value to set the given
register. If no characters present,
register is queried.
void XBee
_
HandleRxAPIFram
e
(
_
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;
}
}

Table of Contents

Other manuals for Digi XBee

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the Digi XBee and is the answer not in the manual?

Digi XBee Specifications

General IconGeneral
BrandDigi
ModelXBee
CategoryControl Unit
LanguageEnglish

Related product manuals