DIGI XBEE3 ZIGBEE3.0 用户指南

所需积分/C币:5 2019-01-24 16:39:37 2.63MB PDF

DIGI XBEE3 ZIGBEE3.0 用户指南 帧描述 ZIGBEE3.0 OTA 过程 API 操作 AT命令 管理终端设备
Contact Digi technical support Digi offers multiple technical support plans and service packages Contactusat+1952.912.3444orvisitusatwww.digi.com/support. Feedback To provide feedback on this document, email your comments to techcomm@digi.com Include the document title and part number(Digi XBee3 Zigbee RF Module User Guide, 90001539 C) in the subject line of your email Digi XBee3 Zigbee RF Module User Guide 3 Contents Digi XBee3 Zigbee RF Module User Guide Applicable firmware and hardware 15 Change the firmware protocol Regulatory information 15 Get started Configure the XBee3 Zigbee RF Module Configure the device using XCTU 18 Customize XBee Zigbee firmware 18 Custom defaults 18 Set custom defaults 18 Restore factory default 18 Limitations 18 figuration Create a new factory default 19 Set a custom configuration 19 Clear all custom configur ation on a de 19 Ⅹ Bee bootloader 19 Send a firmware image 20 Software libraries 20 XBee Network Update the firmware over-the-air Add the device to xctu 23 Update to the latest firmware 23 Custom defaults Set custom defaults 24 Restore factory defaults 24 Limitations 24 Get started with MicroPython About MicroPython 26 MicroPython on the XBee 3 Zigbee RF Module 26 Jse xct to enter the MicroPython environment 26 Use the MicroPython Terminal in XCTU 27 Digi XBee3 Zigbee RF Module User Guide MicroPython examples∴… .27 Example: hello world 27 Example: enter MicroPython paste mode......... 27 Example: using the time module 28 Example: AT commands using MicroPython 28 MicroPython networking and communication examples 29 Zigbee networks with MicroPython............... 29 Example: forming and joining a Zigbee network using MicroPython 30 Example: network Discovery using MicroPython Examples: trans mitting data Receiving data ,33 Example: communication between two XBee 3 Zigbee modules 34 Exit MicroPython mode 37 Other terminal programs 37 Tera Term for Windows ····· 鲁番香 37 Use picocom in Linux 38 Mic helpo Get started with ble Enable bLe on the XBee3 Zigbee RF Module Enable ble and configure the Ble password 42 Get the digi XBee mobile phone application 43 Connect with ble and configure your XBee3 device 43 BLE reference BLE advertising behavior and services .46 Device information service 46 XBee APi ble Service 46 API Request characteristic 46 API Response characteristic 47 Serial communication Serial interface 49 uart data flow .49 49 Serial buffers 50 Serial receive buffer 50 Serial transmit buffer ..51 UART tlow control 51 cTS flow control 51 RtS flow control 51 Break contro 51 SPI operation SPI communications 53 Full duplex operation 54 Low power operation 54 Select the sPi port 55 Force UART operation 56 Digi XBee3 Zigbee RF Module User Guide 5 Modes Trans parent operating mod 58 Serial-to-RF packetization 58 API operating mode 58 Command mode 58 Enter command modi 59 Troubleshooting .59 Send at commands 59 Response to AT commands 60 Apply command changes 60 Make command changes permanent 60 Exit Command mode 60 Idle mode 61 Transmit mode 61 Receive mode 62 Sleep mode Zigbee networks The Zigbee specification 64 Zigbee stack layers ....64 Zigbee networking concepts Device types 65 PAN ID 67 Operating channels 67 Zigbee application layers: in depth 68 Application Support Sublayer(APS) 68 Application profiles 68 Zigbee coordinator operation 69 Form a network 69 Security policy 70 Channel selectin 70 PAN ID Selection 70 Persistent data 70 Coordinator startup........-----. 70 Permit joining 72 Reset the coordinator Leave a network 72 Replace a coordinator (security disabled only 73 Example: start a coordinator 74 Example: replace a coordinator(security disabled) 74 Router operation 74 Discover Zigbee networks 74 Join a network 75 Authentication 75 Persistent data 75 Router joining ·. 75 Router network connectivity 76 End device operation 79 Discover Zigbee networks 79 Join a network 80 ent child relationship End device capacity Digi XBee3 Zigbee RF Module User Guide 6 Authentication Persistent data 80 Orphan scans 81 End device joining 81 Parent connectivity 82 Reset the end device 82 Channel scanning Manage multiple zigbee networks 83 Filter pan id 83 Configure security keys 83 Prevent unwanted devices from joining ..··.··.··.········;··..·.··.··.·..····.:····. 83 Application messaging framework 84 Transmission, addressing, and routing Addressing 86 64-bit device addresses 86 16-bit device addresses 86 Application layer addressing 86 Data trans mission 86 Broadcast transmissions 87 Unicast transmissions 87 Address resolution 87 Address table 88 Group ta ble 89 Binding transmissions ..................... Multicast transmissions 89 Address resolution .·.······ 89 Address resolution 89 Binding table 90 Fragmentation 90 Data transmission examples∴∴… Send a packet in Transparent mode 90 Send data in api mode 91 API frame examples 92 RF packet routing........................ 92 Link status transmission 93 AODV mesh routing 94 Many-to-One routing 97 High/Low RAM Concentrator mode .97 g 97 Encrypted transmissions 102 Maximum RF payload size 102 Throughput 104 ZDO transmissions 104 Send a zdo command 105 Receiving ZDO command and responses 105 Trans mission timeouts ······音·· “.·....·....·· .107 Unicast timeout 107 Extended timeout 108 Transmission examples 108 Digi XBee3 Zigbee RF Module User Gu Zigbee security Security overview 112 Network key 112 Link key 112 Preconfigured link key derate securit 112 Well-known default link key -low security 113 Install code derived link key -high security 113 113 Key management 114 Centralized securit 114 Distributed security 114 registratio 114 Centralized trust center 115 Distributed trust center 115 Example: Forming twork 115 Example: Join a secure network using a preconfigured link key 116 Example: Register a joining node without a preconfigured link key 117 Example: Register a joining node using an install code 118 Example: Deregister a previously registered device 118 Registration scenario 119 Network commissioning and diagnostics Place devices 121 Test links in a network -loopback cluster 121 Transparent operating mode configuration(AP=0) 121 RSSI indicators 121 Device discovery 122 Network discover 122 ZDO discovery 122 Joining announce 122 Commissioning pushbutton and associate LED 122 XBee3 Smt 123 XBee3 micro 123 XBee3 Through-hole 124 Commissioning pushbutton 124 Associate led 125 Binding 126 End_ device_Bind_reg Example of a End_Device Bind reg 126 128 Group table APl 129 Add group command 129 View gro up 130 Get Group Membership(1 of 2) 131 Get Group Membership(2 of 2) 133 Remove Group..……∴ 134 Remove All Groups ... 135 Default responses 136 Common status codes 136 Manage End Devices End device operation 139 Digi XBee3 Zigbee RF Module User Guide 8 Parent operation 139 End Device poll timeouts 140 Packet buffer usage .· 140 Non-Parent device operation 141 End Device configuration 141 Pin slee 142 Cyclic sleep................. 144 Recommended sleep current measurements 149 Achieve the lowest sleep current 149 Compensate for switching time 149 Internal pin pull-ups .·.·.·.·.··.······..······· ·香·番D看香要鲁鲁 ·.···.··· 149 Transmit re data 150 Receiving rF data 150 1/0 sampling 150 Wake end devices with the Commissioning Pushbutton 150 Parent verification 150 Rejoining 151 Router/ Coordinator configuration 151 RF packet buffering timeout....................................151 Child poll timeout 151 Adaptive polling...... 152 Transmission timeout 152 Short sleep periods∴……… Extended sleep periods 152 Sleep examples 153 Example 1: Configure a device to sleep for 20 seconds, but set sn such that the on/sleep line will remain de-asserted for up to l minute 153 Example 2: Configure an end device to sleep for 20 seconds, send 4 l/0 samples in 2 seconds, and return to sleep 153 Example 3: configure a device for extended sleep: to sleep for 4 minutes 154 Analog and digital l/o lines 0 configurati 156 1/0 sampling 156 /0 examples 158 ample 1: Configure the following I/ 0 settings on the XBee 158 Example 3: Configure the RSSI/PWM pin to operate for 2 seconds after each received RF...15 Example 2: Calculate the pwm counts for a packet received with an rssi of -84 dBm 58 acket 158 Example 1: Configure the following IyO settings on the XBee 159 Example 2: Calculate the PWM counts for a packet received with an RSSI of -84 dBm Example 3 Configure the RSSI/PWM pin to operate for 2 seconds after each received RF acket 159 Queried sampling 159 Periodic 1/o sampling 160 Change detection sampling 160 RSSI PWM 161 AT commands Networking 163 CE(Device role 163 ID(Extended PAN ID) 16 Digi XBee3 Zigbee RF Module User guide ll(Initial 16-bit PAN ID) 163 S(Zigbee Stack Profile 164 CR(Conflict Report) 164 NJ (Node Join Time) 164 DJ(Disable Joining 165 NW (Network Watchdog Timeout) 165 JV( Coordinator Join Verification) 166 JN Join Notification) 166 DO (Miscellaneous Device Options 167 DC (Joining Device Controls 167 CB(Commissioning Pushbutton) ·香·番D看香要鲁鲁 ····.···· 168 NR Network Reset 168 Operational Network Parameters commands 169 Al (Association Indication 169 OP (Operating Extended PAN ID) 169 Ol (Operating 16-bit PAN ID) 170 CH(Operating Channe l) 170 NC (Number of Remaining Children 170 Security commands..........................................170 EE(Encryption Enable 170 EO(Encryption Opti 171 KY(Link Key 171 NK(Trust Center Network Key).................................172 KT(Trust Center Link Key Registration Timeout) 172 I?(Install Code) 172 Zigbee Addressing commands 172 SH (Serial Number High 173 ( Serial Number Low) 173 MY(16-bit Network Address)..... ..173 MP (16-bit Parent Network Address 173 DH (Destination Address High) 174 DL command 174 NI (Node Identifier) 174 NH( M Unicast Hops) 175 BH (Broadcast Hops)............ 175 AR (Aggregate Routing Notification 175 DD(Device Type Identifier) 175 ND(Network Discovery) 176 DN (Discover Node) 176 NT (Node Discover Timeout) 177 NO(Network Discovery Options) 177 NP (Maximum Packet Payload Bytes) .178 Zigbee addressing commands 178 TO(Transmit Options) 178 SE Source Endpoint 178 DE (Destination Endpoint 179 Cl (Cluster ID) 179 RF interfacing commands 179 PL (TX PoWer Level 179 PP(Power at PL4 ..180 SC(Scan Channels 180 SD (Scan duration 181 AS(Active Scan 181 ED (Energy Detect 182 DB command Digi XBee3 Zigbee RF Module User Guide 10

...展开详情
img
Lurix
  • 签到新秀

    累计签到获取,不积跬步,无以至千里,继续坚持!

关注 私信 TA的资源

上传资源赚积分,得勋章
相关内容推荐