User's Manual
Table Of Contents
- 1. Overview
- 2. RF Module Operation
- 3. XBee ZigBee Networks
- Introduction to ZigBee
- ZigBee Stack Layers
- Networking Concepts
- ZigBee Application Layers: In Depth
- Coordinator Operation
- Router Operation
- End Device Operation
- Channel Scanning
- 4. Data Transmission, Addressing, and Routing
- 5. Security
- 6. Network Commissioning and Diagnostics
- 7. Managing End Devices
- 8. XBee Analog and Digital IO Lines
- 9. API Operation
- API Frame Specifications
- API UART Exchanges
- Supporting the API
- API Frames
- AT Command
- AT Command - Queue Parameter Value
- ZigBee Transmit Request
- Explicit Addressing ZigBee Command Frame
- Remote AT Command Request
- Create Source Route
- AT Command Response
- Modem Status
- ZigBee Transmit Status
- ZigBee Receive Packet
- ZigBee Explicit Rx Indicator
- ZigBee IO Data Sample Rx Indicator
- XBee Sensor Read Indicator
- Node Identification Indicator
- Remote Command Response
- Over-the-Air Firmware Update Status
- Route Record Indicator
- Many-to-One Route Request Indicator
- Sending ZigBee Device Objects (ZDO) Commands with the API
- Sending ZigBee Cluster Library (ZCL) Commands with the API
- Sending Public Profile Commands with the API
- 10. XBee Command Reference Tables
- 11. Module Support
- Appendix A: Definitions
- Appendix B: Agency Certifications
- United States FCC
- OEM Labeling Requirements
- FCC Notices
- FCC-Approved Antennas (2.4 GHz)
- Europe (ETSI)
- OEM Labeling Requirements
- Restrictions
- Declarations of Conformity
- Approved Antennas
- XBee RF Module
- XBee-PRO (S2) RF Module
- XBee-PRO (S2B) RF Module
- Canada (IC)
- Transmitters for Detachable Antennas
- Detachable Antenna
- Appendix C: Migrating from ZNet 2.5 to XBee ZB
- Appendix D: Additional Information
Contents
XBee®/XBee‐PRO®ZBRFModules
©2009DigiInternaitonal,Inc. 4
Addressing 43
64-bit Device Addresses 43
16-bit Device Addresses 43
Application Layer Addressing 43
Data Transmission 43
Broadcast Transmissions 44
Unicast Transmissions 44
Data Transmission Examples 46
RF Packet Routing 48
Link Status Transmission 48
AODV Mesh Routing 49
Many-to-One Routing 51
Source Routing 52
Encrypted Transmissions 55
Maximum RF Payload Size 56
Throughput 56
ZDO Transmissions 56
ZigBee Device Objects (ZDO) 57
Sending a ZDO Command 57
Receiving ZDO Commands and Responses 57
Transmission Timeouts 59
Unicast Timeout 59
Extended Timeout 59
Transmission Examples 60
Security 62
Security Modes 62
ZigBee Security Model 62
Network Layer Security 62
Frame Counter 63
Message Integrity Code 63
Network Layer Encryption and Decryption 63
Network Key Updates 64
APS Layer Security 64
Message integrity Code 64
APS Link Keys 64
APS Layer Encryption and Decryption 65
Network and APS Layer Encryption 65
Trust Center 65
Forming and Joining a Secure Network 65
Implementing Security on the XBee 66
Enabling Security 66
Setting the Network Security Key 66
Setting the APS Trust Center Link Key 66
Enabling APS Encryption 66
Using a Trust Center 67
XBee Security Examples 67
Example 1: Forming a network with security
(pre-configured link keys) 67
Example 2: Forming a network with security (ob-
taining keys during joining) 68
Network Commissioning and Diagnostics 69
Device Configuration 69
Device Placement 69
Link Testing 69
RSSI Indicators 70
Device Discovery 70
Network Discovery 70
ZDO Discovery 70
Joining Announce 70
Commissioning Pushbutton and Associate LED
71
Commissioning Pushbutton 71
Associate LED 72
Managing End Devices 74
End Device Operation 74
Parent Operation 74
End Device Poll Timeouts 75
Packet Buffer Usage 75
Non-Parent Device Operation 76
XBee End Device Configuration 76
Pin Sleep 76
Cyclic Sleep 78
Transmitting RF Data 81
Receiving RF Data 81
IO Sampling 82
Waking End Devices with the Commissioning
Pushbutton 82
Parent Verification 82
Rejoining 82
XBee Router/Coordinator Configuration 83
RF Packet Buffering Timeout 83
Child Poll Timeout 83
Transmission Timeout 83
Putting it all Together 84
Short Sleep Periods 84
Extended Sleep Periods 84
Sleep Examples 84