User's Guide
Table Of Contents
- XBee/XBee-PRO S2C 802.15.4 RF Module User Guide
- Technical specifications
- Hardware
- Configure the XBee/XBee-PRO S2C 802.15.4 RF Module
- Modes
- Operation
- AT commands
- Special commands
- Networking and security commands
- C8 (802.15.4 Compatibility)
- CH (Operating Channel)
- ID (Network ID)
- DH (Destination Address High)
- DL (Destination Address Low)
- MY (Source Address)
- SH (Serial Number High)
- SL (Serial Number Low)
- MM (MAC Mode)
- RR (XBee Retries)
- RN (Random Delay Slots)
- ND (Network Discovery)
- NT (Node Discover Timeout)
- NO (Node Discovery Options)
- DN (Discover Node)
- CE (Coordinator Enable)
- SC (Scan Channels)
- SD (Scan Duration)
- A1 (End Device Association)
- A2 (Coordinator Association)
- AI (Association Indication)
- DA (Force Disassociation)
- FP (Force Poll)
- AS (Active Scan)
- ED (Energy Detect)
- EE (Encryption Enable)
- KY (AES Encryption Key)
- NI (Node Identifier)
- NP (Maximum Packet Payload Bytes)
- RF interfacing commands
- Sleep commands
- Serial interfacing commands
- I/O settings commands
- D0 (DIO0/AD0)
- D1 (DIO1/AD1)
- D2 (DIO2/AD2)
- D3 (DIO3/AD3)
- D4 (DIO4)
- D5 (DIO5/ASSOCIATED_INDICATOR)
- D8 (DIO8/SLEEP_REQUEST)
- P0 (RSSI/PWM0 Configuration)
- P1 (PWM1 Configuration)
- P2 (SPI_MISO)
- M0 (PWM0 Duty Cycle)
- M1 (PWM1 Duty Cycle)
- P5 (SPI_MISO)
- P6 (SPI_MOSI Configuration)
- P7 (SPI_SSEL )
- P8 (SPI_SCLK)
- P9 (SPI_ATTN)
- PR (Pull-up/Down Resistor Enable)
- PD (Pull Up/Down Direction)
- IU (I/O Output Enable)
- IT (Samples before TX)
- IS (Force Sample)
- IO (Digital Output Level)
- IC (DIO Change Detect)
- IR (Sample Rate)
- RP (RSSI PWM Timer)
- I/O line passing commands
- Diagnostic commands
- Command mode options
- Operate in API mode
- API mode overview
- API frame specifications
- Escaped characters in API frames
- Frame descriptions
- TX Request: 64-bit address frame - 0x00
- TX Request: 16-bit address - 0x01
- AT Command frame - 0x08
- AT Command - Queue Parameter Value frame - 0x09
- Remote AT Command Request frame - 0x17
- RX Packet: 64-bit Address frame - 0x80
- Receive Packet: 16-bit address frame - 0x81
- RX (Receive) Packet: 64-bit address IO frame- 0x82
- RX Packet: 16-bit address I/O frame - 0x83
- AT Command Response frame - 0x88
- TX Status frame - 0x89
- Modem Status frame - 0x8A
- Remote Command Response frame - 0x97
- Regulatory information
- Load 802.15.4 firmware on ZB devices
- Migrate from XBee through-hole to surface-mount devices
- PCB design and manufacturing
Operation I/O support
XBee/XBee-PRO S2C 802.15.4 RF Module User Guide
57
Multiple samples per packet
The IT parameter specifies how many I/O samples can be transmitted in a single OTA packet. Any
single-byte value (0 - 0xFF) is accepted for input. However, the value is adjusted downward based on
how many I/O samples can fit into a maximum size packet; see Maximum payload. A query of the IT
parameter after changes are applied tells how many I/O samples actually occur.
Since MM must be 0 or 3 to send I/O samples, the maximum payload in the best of conditions (short
source address, short destination address, and no encryption) is 114 bytes. Seven of those bytes are
used by the command header and the I/O header, leaving 107 bytes for I/O samples. The minimum I/O
sample is 2 bytes. Therefore the maximum possible usable value for IT is 53 (or 0x35).
API support
I/O data is sent out the UART using an API frame. All other data can be sent and received using
Transparent Operation or API frames if API mode is enabled (AP > 0).
API Operations support two RX (Receive) frame identifiers for I/O data (set 16-bit address to 0xFFFE
and the device does 64-bit addressing):
n 0x82 for RX Packet: 64-bit Address I/O
n 0x83 for RX Packet: 16-bit Address I/O
The API command header is the same as shown in RX Packet: 64-bit Address frame - 0x80 and RX
Packet: 16-bit address I/O frame - 0x83. RX data follows the format described in I/O data format.
Periodic I/O sampling
Periodic I/O sampling is done by periodically gathering samples on the source node and sending the
samples to the destination node to output on its serial port.
Source node
On the source node, the IR parameter specifies how many milliseconds between samples. The IT
parameter specifies how many samples will be sent OTA in a single packet, and the DH/DL
parameters designate the node that will receive the samples. In addition MM must be 0 or 3 for I/O
samples to be sent.
The maximum value of IR is 0xFFFF. If IR is 0, periodic I/O sampling is disabled. Otherwise, IR specifies
the number of milliseconds between samples.
If IT is 0, than an I/O sample is sent every IR milliseconds. If IR is greater than 0, then an I/O sample is
sent every IR*IT milliseconds. Any single-byte value (0 - 0xFF) is accepted for input. However, the value
is adjusted downward based on how many I/O samples can fit into a maximum size packet. A query of
the IT parameter after changes are applied tells how many I/O samples will actually occur. Since MM
must be 0 or 3 to send I/O samples, the maximum payload in the best of conditions (short source
address, short destination address, and no encryption) is 114 bytes. Seven of those bytes are used by
the command header and the I/O header, leaving 107 bytes for I/O samples. The minimum I/O sample
is 2 bytes. Therefore the maximum possible usable value for IT is 53 (or 0x35).