An Introduction to Zig Bee MengHuan Wu 1
An Introduction to Zig. Bee Meng-Huan Wu 1 2011/03/28 Wireless and Broadband Networks Laboratory Department of CSIE National Taipei University of Technology
OUTLINE Introduction IEEE 802. 15. 4 Zig. Bee Stack Wireless Sensor Networks Conclusion References 2
IEEE 802 Wireless Space Zig. Bee standard uniquely fills a gap for low data rate applications WWAN 802. 22 Range 802. 20 WMAN Wi. Max 802. 16 Wi. Fi 802. 11 WLAN WPAN 0. 01 Zig. Bee 802. 15. 4 0. 1 Bluetooth 802. 15. 1 1 10 Bandwidth (Mbps) 802. 15. 3 1000 6
IEEE 802. 15. 4 主要特性 網路拓撲 � Star � Peer-to-Peer 分配模式 � Superframe � Guaranteed time slot 低電能消耗 � 一對AAA電池可 作數年的時間 採用CSMA/CA 8
IEEE 802. 15. 4 運作頻帶 頻帶 (MHz) 頻率範圍 (MHz) Bit Rate 免費使用 調變(DSSS) 通道數目 (Kbps) 地區 868~868. 6 歐洲 1 20 BPSK 915 902~928 美國 10 40 BPSK 2450 2400~2483. 5 全球 16 250 O-QPSK 11
Zig. Bee傳輸程序 (1/5) Coordinator to device Slotted Network Device coordinator Beacon Data request Acknowledgment Data Acknowledgment 13
Zig. Bee傳輸程序 (2/5) Coordinator to device Un-Slotted Network Device coordinator Data request Acknowledgment Data Acknowledgment 14
Zig. Bee傳輸程序 (3/5) Device to coordinator � Slotted Network Device coordinator Beacon Data Acknowledgment 15
Zig. Bee傳輸程序 (4/5) Device to coordinator � Un-Slotted Network Device coordinator Data Acknowledgment 16
Zig. Bee傳輸程序 (5/5) Coordinator to coordinator Only Un-Slotted coordinator Data Acknowledgment 17
Superframe (1/2) CAP (Contention Access Period) CFP (Contention Free Period) 18
Superframe (2/2) Beacon的功能是 � 啟動superframe � 與其他device同步 � Coordinator告知device有資料要傳輸給他 19
Association Procedure 當一個device要加入由 一個coordinator形成的 PAN時,會先掃描周遭 有哪些PAN,決定其中 一個加入,並且向PAN 的coordinator association的要求 Network Device coordinator Association req. ACK Make decision Beacon Scan channel Wait for response Data req. ACK Association req. ACK 20
IEEE 802. 15. 4與Zig. Bee對應關係(1/2) Zig. Bee Device Type IEEE 802. 15. 4 Network IEEE 802. 15. 4 Device Type Coordinator PAN Coordinator FFD Router Coordinator FFD End Device FFD or RFD 21
IEEE 802. 15. 4與Zig. Bee對應關係(2/2) Zig. Bee Network Topology IEEE 802. 15. 4 Network Topology Star Tree Peer-to-Peer Mesh Peer-to-Peer 22
Zig. Bee網路拓樸(1/3) End device Star Topology 星狀拓樸 � 優點 容易同步化 低延遲 (one-hop) � 缺點 擴充難 Coordinator 23
Zig. Bee網路拓樸(2/3) Tree Topology 樹狀拓樸 End device � 優點 低路由成本 允許多點跳曜(multi-hop) � 缺點 延遲較長 (multi-hop) Coordinator Router 24
Zig. Bee網路拓樸(3/3) End device Mesh Topology 網狀拓樸 � 優點 允許多點跳曜(multi-hop) 網路形成較具彈性 低延遲 � 缺點 route discovery成本過大 Router Coordinator 25
Example 26
Zig. Bee Stack 27
Network Layer 28
Application Support Sublayer 29
AODV Route Discovery Initiation Route Request (RREQ) broadcast flood Destination Source 32
AODV Route Discovery Completion Route Reply (RREP) propagation Destination Source 33
無線規格比較 IEEE 802. 11 b Bluetooth Zig. Bee Power Profile Hours Days Years Complexity Very Complex Simple Node/Master 32 7 65536 Latency 3 seconds 10 seconds 30 ms Range 100 m 10 m 30 m Date Rate 11 Mbps 250 Kbps Security Authentication Service Set ID (SSID) 64 bit, 128 bit AES and Application Layer user defined 128 bit AES and Application Layer user defined 36
References [1]Adis, Vojvodic, “An Paper on Zig. Bee, ” in Computer Communication a n d Distributed Syst em s on Chalmers University of Technology, Sweden, EDA 390, May 2006. [2]C. J. Li, Y. F. Wang, and X. J. Guo, “The Application Research o f Wireless S e n s o r N e t w o r k B a s e d on Zig. Bee, ” in 2010 Second International Conference on Multi. Media and Information Technology, Vol. 2, pp. 89 -92, Apr. 2010. [3]鄭立編著,Zig. Bee開發手冊,台北:全華圖書股份有限公 司,2008。 [4]陳柏皓,基於UPn. P與Zig. Bee的家庭自動化系統設計與實 作,碩士論文,國立台北科技大學自動化科技研究所,台 北,2008。 40
Q&A 41
- Slides: 41