Responsive image
博碩士論文 etd-1104117-200416 詳細資訊
Title page for etd-1104117-200416
論文名稱
Title
開發運用於物聯網之6LoWPAN架構之MQTT協定及定點與移動用戶個案之實現
Development of MQTT Based 6LoWPAN Architecture for IoT Applications and Realization of Stationary and Mobile User Cases
系所名稱
Department
畢業學年期
Year, semester
語文別
Language
學位類別
Degree
頁數
Number of pages
87
研究生
Author
指導教授
Advisor
召集委員
Convenor
口試委員
Advisory Committee
口試日期
Date of Exam
2017-11-30
繳交日期
Date of Submission
2017-12-05
關鍵字
Keywords
Contiki、6LoWPAN、IPv6、IEEE 802.15.4、智慧家庭、物聯網、CC2538、MQTT、ZigBee
IEEE 802.15.4, IPv6, 6LoWPAN, Contiki, CC2538, MQTT, IoT
統計
Statistics
本論文已被瀏覽 5624 次,被下載 2
The thesis/dissertation has been browsed 5624 times, has been downloaded 2 times.
中文摘要
在第五代行動通訊中 (5G),其中一項發展重點就是推動物聯網的普及。物聯網 (Internet of Things),其顧名思義就是透過網路的概念來達到物物相連的目的。有人將網際網路比喻成一朵雲,在這朵雲上能輕鬆地存取生活中連上網路的電器用品,所以當物聯網運用在家庭電器之中,就有智慧家庭 (Smart home) 的概念產生。
本論文從智慧家庭的概念著手,想像使用者透過網路可以無時無刻地遠端遙控家用電器,因此首要條件是必須在電器上佈建一組感測器,用以監控、計量、訊息交換等功能。做為智慧家電的感測器,需要大量佈建在家中,因此希望能符合以下特點:無線傳輸、節能、安全、使用便利,將會使得智慧生活更加理想。
本論文挑選6LoWPAN感測器來做為探討對象,6LoWPAN底層為IEEE 802.15.4協定,上層為IPv6的網際網路協定,融合類似ZigBee在無線區網的優點,加上能讓晶片節點上網的優勢,非常適合運用在智慧家電當中。因此本論文針對6LoWPAN的技術深入淺出,分部介紹6LoWPAN所使用的相關技術,包括:IEEE 802.15.4協定的探討、6LoWPAN調節層的分析,以及未來所使用的到IPv6的介紹等。為了實現6LoWPAN系統,本論文選用德州儀器公司研發的CC2538單晶片MCU;搭配開源式的作業系統Contiki,來提供6LoWPAN的網路通訊協定;運用MQTT應用協定來進一步實現訊息傳遞的功能;並且開發一支實現MQTT通訊的APP同時結合Server與Client的角色增加其應用性。綜合以上的技術提出智慧家庭的模擬使用者情境,以C/S架構來涵蓋整個訊息系統,提出四種有效的連線方式,供未來物聯網在連線選擇上有所參考。
Abstract
With the incoming of 5th generation communication, there are three types of technology under constructing: mobile networking, femtocell and the Internet of things (IoT). Speaking of the concept of IoT, most People have the smart home at the first thought. The most important character behind smart home are the wireless sensing networks.
Let us imagine that, in the future, all of the Home appliances are set up with several wireless sensor chips, and the chips are forming a networking. They can communicate to each other. It will be so convenient that we can easily do remote control, accessing to these appliances to do, for example, switching on/off, data loading, making procedure, and so on.
This thesis mainly focuses on how these wireless sensor chips being reached via Internet. We choose 6LoWPAN as our hardware research platform. 6LoWPAN is a wireless communicating method, which combines IPv6 and IEEE 802.15.4 protocols. In the 100 meters distance, it use IEEE 802.15.4 protocol to communicate forming a so called 6LoWPAN Networking, but it also has the ability to link to the Internet. So we discuss about the theory behind the two protocols, explaining how they can fit each other even if their packet size are mismatched.
We demonstrate a 6LoWPAN system, starting from introducing the tools, platform, hardware and software we used. Then we present the results of network connecting, including a smart phone APP. Finally, we propose four kinds of user cases to explain how to use the system in different situations.
目次 Table of Contents
摘 要 i
Abstract ii
圖 次 vi
表 次 x
第一章 序論 1
1.1 研究背景 1
1.2 動機與目的 1
1.3 論文架構 2
第二章 6LoWPAN及相關理論介紹 3
2.1 無線個人網路 3
2.1.1 概論 3
2.1.2 物聯網之頻譜選用分析 4
2.1.3 通訊協定概論 5
2.2 IEEE 802.15.4與ZigBee 8
2.2.1 IEEE 802.15.4發展介紹 8
2.2.2 IEEE 802.15.4與ZigBee 9
2.2.3 IEEE 802.15.4實體層 10
2.2.4 IEEE 802.15.4媒體存取控制層 11
2.3 IPv6 15
2.3.1 IPv6概論 15
2.3.2 IPv6位址表示法分類 15
2.3.3 IPv6網路的協定堆疊 18
2.3.4 IPv6網路的檔頭與位址數目 20
2.3.5 IPv6位址配發技術 20
2.3.6 IPv6設備與現況 22
2.4 6LoWPAN 24
2.4.1 6LoWPAN網路概述 24
2.4.2 6LoWPAN的調節層 25
2.4.3 封包的分割與重組 26
2.4.4 檔頭壓縮 27
2.5 章節討論 30
第三章 系統架構 31
3.1 6LoWPAN系統架構 31
3.2 硬體開發環境 33
3.2.1 CC2538 MCU 33
3.2.2 Debugger 35
3.2.3 USB Serial Module 36
3.2.4 乙太網路與網路模組 37
3.3 6LoWPAN開發環境 38
3.3.1 Contiki概論 38
3.3.2 開發環境Instant Contiki 39
3.3.3 Contiki網路協定堆疊 40
3.3.4 Contiki程式編譯與燒錄 41
3.4 MQTT系統搭建 43
3.4.1 MQTT簡介 43
3.4.2 MQTT訊息架構 44
3.4.3 系統搭建流程 45
3.4.4 架設於電腦之中的MQTT Broker 45
3.4.5 架設於電腦之中的MQTT Client 46
3.4.6 6LoWPAN邊界路由 47
3.4.7 6LoWPAN節點 50
3.4.8 訊息傳送測試與結果 51
3.5 章節討論 54
第四章 IoT之連線、訊息架構與實例 55
4.1 物聯網應用的使用情境 55
4.2 C/S架構-A basic Architecture to Implement IoT User Cases Using MQTT 58
4.3 MQTT Android App 60
4.4 MQTT用戶個案實現例子 63
4.5 章節討論 69
第五章 結論與未來工作 70
5.1 結論 70
5.2 未來工作 71
參考文獻 73
參考文獻 References
[1] 林淑惠, "5G、物聯網頻譜 交部、NCC有譜," in 中國時報, 2017.
[2] J. D'Ambrosia. (2017). IEEE 802 LAN/MAN Standards Committee. Available: http://grouper.ieee.org/groups/802/
[3] IEEE, "IEEE Standard for Local and metropolitan area networks— Part 15.4: Low-Rate Wireless Personal Area Networks (LR-WPANs) " in IEEE Computer Society, 2011.
[4] F. S. Al-Sharbaty, "Wireless sensors network and acknowledgement technique based ZigBee system," in Computer Science and Information Technology (CSIT), 2014 6th International Conference, 2014, pp. 75-81.
[5] J.-S. Lee, "Performance evaluation of IEEE 802.15. 4 for low-rate wireless personal area networks," IEEE Transactions on Consumer Electronics, vol. 52, pp. 742-749, 2006.
[6] M. A. Sarijari, M. S. Abdullah, A. Lo, and R. A. Rashid, "Experimental studies of the ZigBee frequency agility mechanism in home area networks," in Local Computer Networks Workshops (LCN Workshops), 2014 IEEE 39th Conference, 2014, pp. 711-717.
[7] M. Zhou and Z.-l. Nie, "Analysis and design of ZigBee MAC layers protocol," in Future Information Technology and Management Engineering (FITME), 2010 International Conference, 2010, pp. 211-215.
[8] A. L. Colina, A. Vives, A. Bagula, M. Zennaro, and E. Pietrosemoli, IoT in 5 days, 1.1 ed., 2016.
[9] PCNET網路研究所. 網路教學-TCP/IP 工作模型. Available: http://www.pcnet.idv.tw/pcnet/network/network_ip_model.htm
[10] Z. Shelby and C. Bormann, 6LoWPAN: The wireless embedded Internet vol. 43: John Wiley & Sons, 2011.
[11] P. Thubert and J. W. Hui, "Compression format for IPv6 datagrams over IEEE 802.15. 4-based networks," 2011.
[12] G. Montenegro, N. Kushalnagar, J. Hui, and D. Culler, "Transmission of IPv6 packets over IEEE 802.15. 4 networks," 2007.
[13] T. Instruments. (2017). Overview for 6LoWPAN. Available: http://www.ti.com/lsds/ti/wireless-connectivity/6lowpan/overview.page
[14] 周羿伶, "2017年台灣寬頻網路使用調查," 財團法人台灣網路資訊中心, 2017.
[15] T. Instruments, "CC2538 Powerful Wireless Microcontroller System-On-Chip for 2.4-GHz IEEE 802.15. 4, 6LoWPAN, and ZigBee Applications," CC2538 datasheet, 2015.
[16] T. Instruments. (2017). CC2538 A Powerful System-On-Chip for 2.4-GHz IEEE 802.15.4-2006 and ZigBee Applications. Available: http://www.ti.com/product/CC2538
[17] A. Dunkels and O. Schmidt, "Protothreads-lightweight stackless threads in c," SICS Research Report, 2005.
[18] M. D. Hanson, "The Client/Server Architecture," Server Management, p. 3, 2000.
[19] L. Casado and P. Tsigas, "Contikisec: A secure network layer for wireless sensor networks under the contiki operating system," Identity and Privacy in the Internet Age, pp. 133-147, 2009.
[20] B. P. Crow, I. Widjaja, J. G. Kim, and P. T. Sakai, "IEEE 802.11 wireless local area networks," IEEE Communications magazine, vol. 35, pp. 116-126, 1997.
[21] D. Culler and S. Chakrabarti, "6LoWPAN: Incorporating IEEE 802.15. 4 into the IP architecture," IPSO Alliance White Paper, 2009.
[22] S. E. Deering, "Internet protocol, version 6 (IPv6) specification," 1998.
[23] A. Dunkels, B. Gronvall, and T. Voigt, "Contiki-a lightweight and flexible operating system for tiny networked sensors," in Local Computer Networks, 2004. 29th Annual IEEE International Conference, 2004, pp. 455-462.
[24] A. Dunkels and O. Schmidt, "Protothreads - Lightweight Stackless Threads in C," Swedish Institute of Computer Science, 2005.
[25] J. A. Gutierrez, M. Naeve, E. Callaway, M. Bourgeois, V. Mitter, and B. Heile, "IEEE 802.15. 4: a developing standard for low-power low-cost wireless personal area networks," IEEE network, vol. 15, pp. 12-19, 2001.
[26] J. Hui and P. Thubert, "Compression format for IPv6 datagrams in 6LoWPAN networks."
[27] U. Hunkeler, H. L. Truong, and A. Stanford-Clark, "MQTT-S—A publish/subscribe protocol for Wireless Sensor Networks," in Communication systems software and middleware and workshops, 3rd international conference, 2008, pp. 791-798.
[28] D. Johnson, C. Perkins, and J. Arkko, "Mobility support in IPv6," 2004.
[29] X. Ma and W. Luo, "The analysis of 6LoWPAN technology," in Computational Intelligence and Industrial Application, 2008. PACIIA'08. Pacific-Asia Workshop, 2008, pp. 963-966.
[30] G. Mulligan, "The 6LoWPAN architecture," in Proceedings of the 4th workshop on Embedded networked sensors, 2007, pp. 78-82.
[31] H. Zimmermann, "OSI reference model--The ISO model of architecture for open systems interconnection," IEEE Transactions on communications, vol. 28, pp. 425-432, 1980.
[32] 黃以穎, "基於環境學習的有效率ZigBee節點佈建之室內定位," 碩士, 通訊工程研究所, 中山大學, 2016.
[33] 廖建興, "無線個人區域網路 (WPAN) 技術發展與應用概論," 中華民國電子零件認證委員會, 2006.
電子全文 Fulltext
本電子全文僅授權使用者為學術研究之目的,進行個人非營利性質之檢索、閱讀、列印。請遵守中華民國著作權法之相關規定,切勿任意重製、散佈、改作、轉貼、播送,以免觸法。
論文使用權限 Thesis access permission:自定論文開放時間 user define
開放時間 Available:
校內 Campus: 已公開 available
校外 Off-campus: 已公開 available


紙本論文 Printed copies
紙本論文的公開資訊在102學年度以後相對較為完整。如果需要查詢101學年度以前的紙本論文公開資訊,請聯繫圖資處紙本論文服務櫃台。如有不便之處敬請見諒。
開放時間 available 已公開 available

QR Code