欢迎访问ic37.com |
会员登录 免费注册
发布采购

XB24CZ7PITB003 参数 Datasheet PDF下载

XB24CZ7PITB003图片预览
型号: XB24CZ7PITB003
PDF下载: 下载PDF文件 查看货源
内容描述: [RF TXRX MOD 802.15.4 TRACE ANT]
分类和应用:
文件页数/大小: 180 页 / 2660 K
品牌: ETC [ ETC ]
 浏览型号XB24CZ7PITB003的Datasheet PDF文件第105页浏览型号XB24CZ7PITB003的Datasheet PDF文件第106页浏览型号XB24CZ7PITB003的Datasheet PDF文件第107页浏览型号XB24CZ7PITB003的Datasheet PDF文件第108页浏览型号XB24CZ7PITB003的Datasheet PDF文件第110页浏览型号XB24CZ7PITB003的Datasheet PDF文件第111页浏览型号XB24CZ7PITB003的Datasheet PDF文件第112页浏览型号XB24CZ7PITB003的Datasheet PDF文件第113页  
Operate in API mode  
API mode overview  
API mode overview  
As an alternative to Transparent operating mode, you can use API operating mode. API mode provides  
a structured interface where data is communicated through the serial interface in organized packets  
and in a determined order. This enables you to establish complex communication between devices  
without having to define your own protocol. The API specifies how commands, command responses  
and device status messages are sent and received from the device using the serial interface or the  
SPI interface.  
We may add new frame types to future versions of firmware, so build the ability to filter out additional  
API frames with unknown frame types into your software interface.  
API frame specifications  
The firmware supports two API operating modes: without escaped characters and with escaped  
characters. Use the AP command to enable either mode. To configure a device to one of these modes,  
set the following AP parameter values:  
AP command  
setting  
Description  
AP = 0  
Transparent operating mode, UART serial line replacement with API modes  
disabled. This is the default option.  
AP = 1  
AP = 2  
API operation.  
API operation with escaped characters (only possible on UART).  
The API data frame structure differs depending on what mode you choose.  
The firmware silently discards any data it receives prior to the start delimiter. If the device does not  
receive the frame correctly or if the checksum fails, the device discards the frame.  
API operation (AP parameter = 1)  
We recommend this API mode for most applications. The following table shows the data frame  
structure when you enable this mode:  
Frame fields  
Start delimiter  
Length  
Byte  
1
Description  
0x7E  
2 - 3  
4 - n  
n + 1  
Most Significant Byte, Least Significant Byte  
Frame data  
Checksum  
API-specific structure  
1 byte  
API operation-with escaped characters (AP parameter = 2)  
Set API to 2 to allow escaped control characters in the API frame. Due to its increased complexity, we  
only recommend this API mode in specific circumstances. API 2 may help improve reliability if the  
serial interface to the device is unstable or malformed frames are frequently being generated.  
XBee/XBee-PRO S2C 802.15.4 RF Module User Guide  
109  
 
 
 
 
 复制成功!