User Manual
Table Of Contents
- 1. XBee®/XBee-PRO® RF Modules
- 2. RF Module Operation
- 3. RF Module Configuration
- Programming the RF Module
- Remote Configuration Commands
- Command Reference Tables
- Command Descriptions
- A1 (End Device Association) Command
- A2 (Coordinator Association) Command
- AC (Apply Changes) Command
- AI (Association Indication) Command
- AP (API Enable) Command
- AS (Active Scan) Command
- BD (Interface Data Rate) Command
- CA (CCA Threshold) Command
- CC (Command Sequence Character) Command
- CE (Coordinator Enable) Command
- CH (Channel) Command
- CN (Exit Command Mode) Command
- CT (Command Mode Timeout) Command
- D0 - D4 (DIOn Configuration) Commands
- D5 (DIO5 Configuration) Command
- D6 (DIO6 Configuration) Command
- D7 (DIO7 Configuration) Command
- D8 (DI8 Configuration) Command
- DA (Force Disassociation) Command
- DB (Received Signal Strength) Command
- DH (Destination Address High) Command
- DL (Destination Address Low) Command
- DN (Destination Node) Command
- DP (Disassociation Cyclic Sleep Period) Command
- EA (ACK Failures) Command
- EC (CCA Failures) Command
- ED (Energy Scan) Command
- EE (AES Encryption Enable) Command
- FP (Force Poll) Command
- FR (Software Reset) Command
- GT (Guard Times) Command
- HV (Hardware Version) Command
- IA (I/O Input Address) Command
- IC (DIO Change Detect) Command
- ID (Pan ID) Command
- IO (Digital Output Level) Command
- IR (Sample Rate) Command
- IS (Force Sample) Command
- IT (Samples before TX) Command
- IU (I/O Output Enable) Command
- KY (AES Encryption Key) Command
- M0 (PWM0 Output Level) Command
- M1 (PWM1 Output Level) Command
- MM (MAC Mode) Command
- MY (16-bit Source Address) Command
- NB (Parity) Command
- ND (Node Discover) Command
- NI (Node Identifier) Command
- NO (Node Discover Options) Command
- NT (Node Discover Time) Command
- P0 (PWM0 Configuration) Command
- P1 (PWM1 Configuration) Command
- PL (Power Level) Command
- PR (Pull-up Resistor) Command
- PT (PWM Output Timeout) Command
- RE (Restore Defaults) Command
- RN (Random Delay Slots) Command
- RO (Packetization Timeout) Command
- RP (RSSI PWM Timer) Command
- RR (XBee Retries) Command
- SC (Scan Channels) Command
- SD (Scan Duration) Command
- SH (Serial Number High) Command
- SL (Serial Number Low) Command
- SM (Sleep Mode) Command
- SO (Sleep Mode Command)
- SP (Cyclic Sleep Period) Command
- ST (Time before Sleep) Command
- T0 - T7 ((D0-D7) Output Timeout) Command
- VL (Firmware Version - Verbose)
- VR (Firmware Version) Command
- WR (Write) Command
- API Operation
- Appendix A: Agency Certifications
- Appendix B. Additional Information
XBee®/XBee‐PRO®RFModules‐802.15.4‐v1.xEx[2011.06.1]
©2011DigiInternatonal,Inc. 24
Direct Transmission
A Coordinator can be configured to use only Direct Transmission by setting the SP (Cyclic Sleep
Period) parameter to "0". Also, a Coordinator using indirect transmissions will revert to direct
transmission if it knows the destination module is awake.
To enable this behavior, the ST (Time before Sleep) value of the Coordinator must be set to match
the ST value of the End Device. Once the End Device either transmits data to the Coordinator or
polls the Coordinator for data, the Coordinator will use direct transmission for all subsequent data
transmissions to that module address until ST time occurs with no activity (at which point it will
revert to using indirect transmissions for that module address). "No activity" means no transmis-
sion or reception of messages with a specific address. Global messages will not reset the ST timer.
Indirect Transmission
To configure Indirect Transmissions in a PAN (Personal Area Network), the SP (Cyclic Sleep Period)
parameter value on the Coordinator must be set to match the longest sleep value of any End
Device. The sleep period value on the Coordinator determines how long (time or number of bea-
cons) the Coordinator will retain an indirect message before discarding it.
An End Device must poll the Coordinator once it wakes from Sleep to determine if the Coordinator
has an indirect message for it. For Cyclic Sleep Modes, this is done automatically every time the
module wakes (after SP time). For Pin Sleep Modes, the A1 (End Device Association) parameter
value must be set to enable Coordinator polling on pin wake-up. Alternatively, an End Device can
use the FP (Force Poll) command to poll the Coordinator as needed.
CCA (Clear Channel Assessment)
Prior to transmitting a packet, a CCA (Clear Channel Assessment) is performed on the channel to
determine if the channel is available for transmission. The detected energy on the channel is com-
pared with the CA (Clear Channel Assessment) parameter value. If the detected energy exceeds
the CA parameter value, the packet is not transmitted.
Also, a delay is inserted before a transmission takes place. This delay is able to be set using the RN
(Backoff Exponent) parameter. If RN is set to “0”, then there is no delay before the first CCA is per-
formed. The RN parameter value is the equivalent of the “minBE” parameter in the 802.15.4 spec-
ification. The transmit sequence follows the 802.15.4 specification.
By default, the MM (MAC Mode) parameter = 0. On a CCA failure, the module will attempt to re-
send the packet up to two additional times.
When in Unicast packets with RR (Retries) = 0, the module will execute two CCA retries. Broadcast
packets always get two CCA retries.
Acknowledgement
If the transmission is not a broadcast message, the module will expect to receive an acknowledge-
ment from the destination node. If an acknowledgement is not received, the packet will be resent
up to 3 more times. If the acknowledgement is not received after all transmissions, an ACK failure
is recorded.