研究生: |
程冠衡 Guan-Heng Cheng |
---|---|
論文名稱: |
應用於智慧農場系統之網狀網路設計(I) - Wi-Fi網路 Design of a mesh network for smart farm system (I) - Wi-Fi network |
指導教授: |
吳傳嘉
Chwan-Chia Wu |
口試委員: |
黎碧煌
Bih-Hwang Lee 張俊明 Chun-Ming Chang |
學位類別: |
碩士 Master |
系所名稱: |
電資學院 - 電機工程系 Department of Electrical Engineering |
論文出版年: | 2019 |
畢業學年度: | 107 |
語文別: | 中文 |
論文頁數: | 66 |
中文關鍵詞: | 物聯網 、Wi-Fi 、無線區域網路 |
外文關鍵詞: | IoT, Wi-Fi, WLAN |
相關次數: | 點閱:183 下載:3 |
分享至: |
查詢本校圖書館目錄 查詢臺灣博碩士論文知識加值系統 勘誤回報 |
隨著物聯網技術的發展,相關的應用也越來越多、應用的領域也越來越廣。在農業領域的應用上,最常見的使用情境就是在農場中佈置許多的感測器來收集資料並透過無線網路將這些資料上傳至雲端的資料庫,這些收集的資料即可進一步用於相關應用,包含遠端監測應用與大數據分析。同樣地,農場中的設備也可以與網路連線,實現遠端控制的功能,甚至可根據其他感測資訊進行自動化控制。
在農業物聯網應用中,系統最基本的構成要素包含感測器與設備、無線路由器、雲端資料庫。其中無線路由器提供無線網路,使其他的物聯網裝置可以和雲端連接。然而在農業的應用上場域一般較為寬闊,所以僅透過一個無線路由器可能會有無線訊號範圍不足的情形,因此本論文提出一個網路建構設計,希望能解決這個問題。
本論文實作的網路中,網路的組成除了原先的無線路由器,還包含多個ESP-01 Wi-Fi模組,這些Wi-Fi節點透過簡單的設定後,可自動的加入由原始路由器和已加入的Wi-Fi節點所構成的網路。其中,Wi-Fi節點的連接是以階層式的樹狀拓樸方式從原始的路由器延伸網路,透過這樣的連接方式以擴大無線網路訊號的覆蓋範圍。此外,當Wi-Fi節點斷線時會嘗試尋找新的存取點來重新加入網路,以期達到網狀網路的功能。
本論文在實作上分為四個部分,第一部分為在Wi-Fi模組上實作網路建構功能,包含網路設定介面、網路自動連接流程及透過MQTT上傳拓樸資訊到雲端。第二部分為提供給外接MCU的介面,通訊的介面為serial port,功能包含透過MQTT傳遞要上傳雲端的資料或來自雲端的控制指令。第三部分為建立各式的伺服器,包含傳遞MQTT資料的MQTT broker,儲存應用資訊的MySQL資料庫,以及提供用戶網頁介面的網頁伺服器。第四部分為提供給用戶的網頁介面,功能包含查看網路拓樸資訊與MCU端的應用。
With the development of the Internet of Things technology, more and more related applications are being applied, and the fields of application are becoming wider and wider. In the agricultural field, the most common use scenario is to arrange many sensors on the farm to collect data and upload the data to the cloud database through the wireless network. The collected data can be further used for related applications, including remote monitoring applications and big data analytics. Similarly, devices on the farm can be connected to the Internet for remote control and even automated control based on other sensing information.
In agricultural IoT applications, the most basic components of the system include sensors and devices, wireless routers, and cloud databases. The wireless router provides a wireless network that allows other IoT devices to connect to the cloud. However, in the application of agriculture, the field is generally wide, so there may be insufficient wireless signal range through only one wireless router. Therefore, this thesis proposes a network construction design, hoping to solve this problem.
In the network implemented in this thesis, the network consists of the original wireless router and multiple ESP-01 Wi-Fi modules. These Wi-Fi nodes, through simple settings, can be automatically added to the network formed by the original router and the joined Wi-Fi nodes. Among them, the connection of the Wi-Fi node extends the network from the original router in a hierarchical tree topology, and the coverage of wireless network signals is expanded through such a connection. In addition, when the Wi-Fi node is disconnected, it will try to find a new access point to rejoin the network, and thus expect to achieve the function of the mesh network.
This thesis is divided into four parts in the implementation. The first part is to implement the network construction function on the Wi-Fi module, including the network setting interface, the network automatic connection process and uploading the topology information to the cloud through MQTT. The second part is the interface provided to the external MCU. The communication interface is serial port. The function includes transferring the data to be uploaded to the cloud or the control command from the cloud through MQTT. The third part is to build a variety of servers, including the MQTT broker that delivers MQTT data, the MySQL database that stores application information, and the web server that provides the user's web interface. The fourth part is the web interface provided to the user. The function includes viewing the network topology information and the application of the MCU side.
[1] Website,智慧農業,行政院農業委員會,2019
Available from : http://www.intelligentagri.com.tw/
[2] 黃能富,物聯網科技與智慧農業,科技大觀園,2018
Available from : https://scitechvista.nat.gov.tw/c/sggD.htm
[3] 孔德廉,全球物聯網時代,農業走向智慧│如何跨領域專業「打群架」?,上下游News&Market,2017
Available from : https://www.newsmarket.com.tw/blog/101611/
[4] 葉奕緯、王明德,LPWAN技術前景看好? 廠商怎麼看,聯合新聞網,2018
Available from : https://udn.com/news/story/6903/3198817
[5] Cees Links,物聯網標準:終局之戰,EDN Taiwan 電子技術設計網,2019
Available from : https://www.edntaiwan.com/news/article/20190604NT31-IoT-Standards-The-End-Game
[6] 王奕超,Wi-Fi、藍牙、ZigBee-無線通訊三強,誰主沉浮?,iBT數位建築雜誌,無日期
Available from : http://www.ibtmag.com.tw/new_article.asp?ar_id=24983
[7] Website,無線區域網路,Wikipedia,2019
Available from : https://zh.wikipedia.org/wiki/%E6%97%A0%E7%BA%BF%E5%B1%80%E5%9F%9F%E7%BD%91
[8] Website,Wi-Fi,Wikipedia,2019
Available from : https://zh.wikipedia.org/wiki/Wi-Fi
[9] Aladdin Salah Masri, Wireless Network Modes The basic topologies in wireless LANs, ResearchGate, 2009
Available from :https://www.researchgate.net/figure/Wireless-Network-Modes-
The-basic-topologies-in-wireless-LANs-is-shown-in-figure-210_fig26_280681580
[10] Benny Bing, Emerging Technologies in Wireless LANs: Theory, Design, and Deployment, Cambridge University Press, 2008, p217, p219, p329, p334
Available from : https://books.google.com.tw/books?id=L__jFgCNJuEC
[11] Website, Shared mesh, Wikipedia, 2019
Available from : https://en.wikipedia.org/wiki/Shared_mesh
[12] Website, Switched mesh, Wikipedia, 2019
Available from : https://en.wikipedia.org/wiki/Switched_mesh
[13] Website,網路位址轉換,Wikipedia,2019
Available from : https://zh.wikipedia.org/wiki/%E7%BD%91%E7%BB%9C%E5%9C%B0%E5%9D%80%E8%BD%AC%E6%8D%A2
[14] 趙英傑,MQTT教學(一):認識MQTT,網昱多媒體,2017
Available from : https://swf.com.tw/?p=1002
[15] The HiveMQ Team, MQTT Essentials, HiveMQ , 2015
Available from : https://www.hivemq.com/mqtt-essentials/
[16] G. T. Wang,樹莓派安裝 Mosquitto 輕量級 MQTT Broker 教學,連接各種物聯網設備,G. T. Wang,2016
Available from : https://blog.gtwang.org/iot/raspberry-pi/raspberry-pi-mosquitto-mqtt-broker-iot-integration/
[17] Website, ESP8266, Wikipedia, 2019
Available from : https://en.wikipedia.org/wiki/ESP8266
[18] Espressif Systems, ESP8266EX_Datasheet, 2019
Available from : https://www.espressif.com/sites/default/files/documentation/0a-esp8266ex_datasheet_en.pdf
[19] Website, SDKs & Demos, Espressif Systems, 2019
Available from : https://www.espressif.com/en/support/download/sdks-demos
[20] martin-ger, esp_wifi_repeater: A full functional WiFi Repeater (correctly: a WiFi NAT Router), GitHub
Available from : https://github.com/martin-ger/esp_wifi_repeater
[21] Website, Eclipse Mosquitto
Available from : https://mosquitto.org/
[22] Website, MySQL
Available from : https://dev.mysql.com/
[23] Website, phpMyAdmin
Available from : https://www.phpmyadmin.net/
[24] mgdm, Mosquitto-PHP: A wrapper for the Eclipse Mosquitto™ MQTT client library for PHP., GitHub
Available from : https://github.com/mgdm/Mosquitto-PHP
[25] Website, mosquitto php Wiki, GitHub
Available from : https://github.com/mqtt/mqtt.github.io/wiki/mosquitto-php