XBee/XBeePRO"燨EM燫F燤odules??02.15.4?爒1.xAx燵2007.05.031]
2007燤axStream,營nc.
牋牋?4
Chapter??燫F燤odule燙onfiguration
3.4. API Operation
By default, XBee/XBee-PRO RF Modules act as a serial line replacement (Transparent Operation) -
all UART data received through the DI pin is queued up for RF transmission. When the module
receives an RF packet, the data is sent out the DO pin with no additional information.
Inherent to Transparent Operation are the following behaviors:
" If module parameter registers are to be set or queried, a special operation is required for
transitioning the module into Command Mode.
" In point-to-multipoint systems, the application must send extra information so that the
receiving module(s) can distinguish between data coming from different remotes.
As an alternative to the default Transparent Operation, API (Application Programming Interface)
Operations are available. API operation requires that communication with the module be done
through a structured interface (data is communicated in frames in a defined order). The API spec-
ifies how commands, command responses and module status messages are sent and received
from the module using a UART Data Frame.
3.4.1. API Frame Specifications
Two API modes are supported and both can be enabled using the AP (API Enable) command. Use
the following AP parameter values to configure the module to operate in a particular mode:
" AP = 0 (default): Transparent Operation (UART Serial line replacement)
API modes are disabled.
" AP = 1: API Operation
" AP = 2: API Operation (with escaped characters)
Any data received prior to the start delimiter is silently discarded. If the frame is not received cor-
rectly or if the checksum fails, the data is silently discarded.
API Operation (AP parameter = 1)
When this API mode is enabled (AP = 1), the UART data frame structure is defined as follows:
Figure?01.  UART燚ata燜rame燬tructure:
MSB?燤ost燬ignificant燘yte,燣SB?燣east燬ignificant燘yte
API Operation - with Escape Characters (AP parameter = 2)
When this API mode is enabled (AP = 2), the UART data frame structure is defined as follows:
Figure?02.  UART燚ata燜rame燬tructure?爓ith爀scape燾ontrol燾haracters:
MSB?燤ost燬ignificant燘yte,燣SB?燣east燬ignificant燘yte
Escape characters. When sending or receiving a UART data frame, specific data values must be 
escaped (flagged) so they do not interfere with the UART or UART data frame operation. To escape
an interfering data byte, insert 0x7D and follow it with the byte to be escaped XORd with 0x20.
Start Delimiter
(Byte 1)
Length
(Bytes 2-3)
Frame Data
(Bytes 4-n)
Checksum
(Byte n + 1)
0x7E
MSB
LSB
API-specific Structure
1 Byte
Start Delimiter
(Byte 1)
Length
(Bytes 2-3)
Frame Data
(Bytes 4-n)
Checksum
(Byte n + 1)
0x7E
MSB
LSB
API-specific Structure
1 Byte
Characters Escaped If Needed
相关PDF资料
XIB-E BOARD INTERFACE ETHERNET
XIB-R BOARD INTERFACE RS232/485
ZMN2400HPDB BOARD ROUTER DEV ZIGBEE 100MW
ZMN24HPDK-B KIT DEV W/ZIGBEE ZMN2400HP
ZNI1000TC IC TEMP SENSOR NI1000 SOT23-3
02110102-000 SNSR TILT RATIO 60DEG 500MA FLNG
1-5209285-2 FOPC BOA 12DB FC/UPC BP SM
2-1693560-0 BOA 20DB LC/UPC BB
相关代理商/技术参数
XBIB-U-DEV 功能描述:界面开发工具 USB XBee-PRO profes onal interface board RoHS:否 制造商:Bourns 产品:Evaluation Boards 类型:RS-485 工具用于评估:ADM3485E 接口类型:RS-485 工作电源电压:3.3 V
XBIB-U-SP 功能描述:界面开发工具 USB/Xbee/Xbee-Pro Inf Brd SMT Pads RoHS:否 制造商:Bourns 产品:Evaluation Boards 类型:RS-485 工具用于评估:ADM3485E 接口类型:RS-485 工作电源电压:3.3 V
XBIB-U-SS 功能描述:界面开发工具 USB/Xbee/Xbee-Pro Inf Brd SMT Skt RoHS:否 制造商:Bourns 产品:Evaluation Boards 类型:RS-485 工具用于评估:ADM3485E 接口类型:RS-485 工作电源电压:3.3 V
XBL6450BYFVR 制造商:Texas Instruments 功能描述:ECS BLUELINK - Tape and Reel
XBL6450YFHR 制造商:Texas Instruments 功能描述:
XBLYGK2 制造商:Schneider Electric 功能描述:INSERT LABELS FOR XBTGK2XXX
XBLYGK5 制造商:Schneider Electric 功能描述:INSERT LABELS FOR XBTGK5XXX
XBLYRT01 制造商:Schneider Electric 功能描述:Label inserts for XBTRT511