欢迎访问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文件第106页浏览型号XB24CZ7PITB003的Datasheet PDF文件第107页浏览型号XB24CZ7PITB003的Datasheet PDF文件第108页浏览型号XB24CZ7PITB003的Datasheet PDF文件第109页浏览型号XB24CZ7PITB003的Datasheet PDF文件第111页浏览型号XB24CZ7PITB003的Datasheet PDF文件第112页浏览型号XB24CZ7PITB003的Datasheet PDF文件第113页浏览型号XB24CZ7PITB003的Datasheet PDF文件第114页  
Operate in API mode  
API frame specifications  
When operating in API 2, if an unescaped 0x7E byte is observed, it is treated as the start of a new API  
frame and all data received prior to this delimiter is silently discarded. For more information on using  
this API mode, refer to the following knowledge base article:  
http://knowledge.digi.com/articles/Knowledge_Base_Article/Escaped-Characters-and-API-Mode-2  
The following table shows the structure of an API frame with escaped characters:  
Frame fields Byte  
Description  
Start delimiter 1  
0x7E  
Length  
2 - 3  
4 - n  
n + 1  
Most Significant Byte, Least Significant Byte Characters escaped if needed  
Frame data  
Checksum  
API-specific structure  
1 byte  
Escape characters  
When sending or receiving a UART data frame, you must escape (flag) specific data values so they do  
not interfere with the data frame sequencing. To escape an interfering data byte, insert 0x7D and  
follow it with the byte to be escaped XOR’d with 0x20. If not escaped, 0x11 and 0x13 are sent as is.  
Data bytes that need to be escaped:  
n
0x7E – Frame delimiter  
n
0x7D – Escape  
n
0x11 – XON  
n
0x13 – XOFF  
Example - Raw UART data frame (before escaping interfering bytes): 0x7E 0x00 0x02 0x23 0x11 0xCB  
0x11 needs to be escaped which results in the following frame: 0x7E 0x00 0x02 0x23 0x7D 0x31 0xCB  
Note In the previous example, the length of the raw data (excluding the checksum) is 0x0002 and the  
checksum of the non-escaped data (excluding frame delimiter and length) is calculated as:  
0xFF - (0x23 + 0x11) = (0xFF - 0x34) = 0xCB.  
Start delimiter  
This field indicates the beginning of a frame. It is always 0x7E. This allows the device to easily detect a  
new incoming frame.  
Length  
The length field specifies the total number of bytes included in the frame's data field. Its two-byte  
value excludes the start delimiter, the length, and the checksum.  
Frame data  
This field contains the information that a device receives or will transmit. The structure of frame data  
depends on the purpose of the API frame:  
XBee/XBee-PRO S2C 802.15.4 RF Module User Guide  
110  
 
 
 
 复制成功!