簡易檢索 / 詳目顯示

研究生: 黃英豪
Ying-Hao Huang
論文名稱: 一個應用於智慧農場的物聯網系統 - 行動裝置應用程式設計
An Internet of Things System for Smart Farm Applications - Design of Mobile Application
指導教授: 吳傳嘉
Chwan-Chia Wu
口試委員: 謝錫堃
Ce-Kuen Shieh
吳傳嘉
Chwan-Chia Wu
黎碧煌
Bih-Hwang Lee
張俊明
Chun-Ming Chang
學位類別: 碩士
Master
系所名稱: 電資學院 - 電機工程系
Department of Electrical Engineering
論文出版年: 2020
畢業學年度: 108
語文別: 中文
論文頁數: 103
中文關鍵詞: 智慧農場行動裝置Android物聯網資料庫
外文關鍵詞: Smart Farm, Mobile Device, Android, IoT, Database
相關次數: 點閱:256下載:0
分享至:
查詢本校圖書館目錄 查詢臺灣博碩士論文知識加值系統 勘誤回報
  • 在全世界上的每一個地方,不論是要存取資訊、與人聯絡溝通或者是做門生意,人們都必須連線使用網際網路,才能打破距離上的限制。但是,不只是只有人,物品也必須使用網際網路。如今各行各業廣泛運用了機器對機器的通訊,以便追蹤機器作業、回報錯誤,以及發出服務警示,形成了所謂的「物聯網」。
    隨著物聯網技術的蓬勃發展,物聯網應用也愈來愈多、應用的領域也愈來愈廣。如今舉凡小至門鎖防盜系統,大至工廠裡供應鏈上的大數據分析與應用,皆是物聯網對我們周遭生活上帶來的改變,涵蓋範圍十分廣泛。
    在農業領域的應用上,物聯網最普遍的應用是在農場的溫室中佈置許多的感測器來蒐集資料並且透過物聯網的技術將這些資料上傳至雲端的資料庫上,而資料庫的資料即可進一步用於分析或者是相關應用,從而解決傳統農業的問題。
    本論文實作的行動裝置應用程式中,使用者可以確認感測器是否有上線到雲端的資料庫上,而且使用者可以新增多個溫室,把上線的感測器分配到各個溫室中,也可以自由得對感測器進行拖曳,從而控制各個感測器在溫室內的相對位置,而各個感測器可以設定警報上限以及下限,如果觸發警報,使用者能夠使用MQTT的方式對設備傳遞控制訊息,對已發生的問題做及時的處理,降低農場的損失。


    Everywhere in the world, whether it is to access information, communicate with
    people, or do business, people must connect to the Internet to break the distance limit. However, not only people, but also items must use the Internet. Nowadays, various industries widely use machine-to-machine communication to track machine
    operations, report errors, and issue service alerts, forming the so-called "Internet of Things".
    In the application in the agricultural field, the most common application of the
    Internet of Things is to arrange many sensors in the greenhouse of the farm to collect data and upload these data to the cloud database, and the data in the database can be further used for analysis to solve the problems of traditional agriculture.
    In the mobile application implemented in this paper, the user can confirm whether the sensor is online to the cloud database, and the user can add multiple greenhouses and put the online sensors are distributed to each greenhouse, and the user can freely drag the sensors to control the position of the greenhouse, and then each sensor can set the upper bound and lower bound alarm. If an alarm is triggered, the user can use MQTT to transmit control commands to the equipment, and deal with the problems that have occurred in a timely manner to reduce the loss of the farm.

    摘要 I Abstract II 誌謝 III 目錄 IV 圖目錄 VII 表目錄 X 第一章 緒論 1 1.1 研究背景 1 1.2 研究動機 4 1.3 研究內容 8 1.4 章節架構 9 第二章 系統軟體架構介紹 10 2.1 Android 簡介 10 2.1.1 Android 系統架構 11 2.1.2 Android 特色 15 2.2 MySQL 簡介 18 2.3 JDBC 簡介 19 2.3.1 JDBC 架構 22 2.3.2 JDBC 類型 25 2.4 開發環境 26 2.4.1 Java 26 2.4.2 Android Studio 27 2.4.3 phpMyAdmin 28 2.4.4 IoTMQTTPanel 30 2.5 MQTT 31 2.5.1 MQTT 架構 31 2.5.2 MQTT Publish / Subscribe 32 2.5.3 MQTT 特性 33 2.5.3 MQTT 封包結構 35 第三章 系統架構設計 37 3.1 系統架構 37 3.2 溫室設置 41 3.2.1 新增溫室 41 3.2.2 刪除溫室 44 3.3 感測器設定 45 3.4 感測器控制與同步 47 3.4.1 感測器拖曳 47 3.4.2 取得感測值 51 3.4.3 設定警報上限 52 3.4.4 設定警報下限 53 3.4.5 觸發警報 54 3.5 MQTT 訂閱主題 54 3.6 資料庫架構 57 第四章 實作與成果 59 4.1 溫室設置 59 4.1.1 新增溫室 59 4.1.2 刪除溫室 60 4.2 感測器設定 60 4.2.1 感測器分配 61 4.2.2 警報上下限設定 62 4.2.3 感測器位置同步 63 4.3 警報觸發 65 4.4 遙控開關 67 4.4.1 遙控開啟 67 4.4.2 遙控關閉 68 4.5 實作成果討論 69 第五章 結論與未來展望 71 5.1 結論 71 5.2 未來展望 72 參考文獻 73 附錄一 拖曳物件之程式碼 77 附錄二 偵測警報之程式碼 81

    [1] International Telecommuncation Union,FactsFigures2019,2019, https://www.itu.int/en/ITU-D/Statistics/Documents/facts/FactsFigures2019.pdf
    [2] Website,台灣網路使用概況報告,InsightXplorer,2019, https://www.ixresearch.com/reports/cati
    [3] Website,2005~2019 台灣上網率追蹤調查,InsightXplorer,2019, https://live.staticflickr.com/65535/49514412818_d1b680fb2a_o.png
    [4] Deloitte,Almost Three-Quarters of Americans Over 55 Now Own A Smartphone,2018, https://www.marketingcharts.com/digital/mobile-phone-106575
    [5] Gartner,台灣物聯網大趨勢(一):現況與未來,亞太教育訓練網,2018, http://www.asia-learning.com/km/kmdoc/277220288/t/
    [6] 行政院農業委員會,何謂智慧農場?, https://www.intelligentagri.com.tw/xmdoc/cont?xsmsid=0J164373919378174143
    [7] 尚茂智能科計股份有限公司,智慧農業4.0 解決方案架構圖,2016, http://www.sunmoretek.com.cn/simple/05_news/02_detail.php?NID=226
    [8] The International Data Corporation,Smartphone Market Share,2020, https://www.idc.com/promo/smartphone-market-share/os
    [9] Website,魚菜共生,Wikipedia,2020, https://zh.wikipedia.org/wiki/%E9%AD%9A%E8%8F%9C%E5%85%B1%E7%94%9F
    [10] Website,城田魚菜共生健康農場,認識魚菜共生, https://www.myfarm.com.tw/about_6.htm
    [11] Website,Android/簡介,Wikibooks,2016, https://zh.m.wikibooks.org/zh-tw/Android/%E7%AE%80%E4%BB%8B
    [12] Website, Android, Wikipedia, 2020, https://zh.wikipedia.org/wiki/Android
    [13] Website,Java 程式教學甘仔店,Blogger,2013, http://pclevin.blogspot.com/2013/11/android.html
    [14] Website,Android 的層級結構,每日頭條,2020, https://kknews.cc/zh-tw/code/e5e4ajz.html
    [15] Website,Android 系統架構分層及每層詳細介紹,每日頭條,2018, https://kknews.cc/zh-tw/code/o9ngqaq.html
    [16] Website,Android Architecture 2,Blogger,2008, http://stenlyho.blogspot.com/2008/09/android-architecture.html
    [17] 吳雲漢,一個聲控智慧家庭系統之設計,國立台灣科技大學電機系碩士論文,2015
    [18] Website, MySQL, Wikipedia, 2020, https://zh.wikipedia.org/wiki/MySQL
    [19] Website,Java 資料庫連接,Wikipedia,2020, https://zh.wikipedia.org/wiki/Java%E6%95%B0%E6%8D%AE%E5%BA%93%E8%BF%9E%E6%8E%A5
    [20] Website,JDBC 簡介及連線MySQL 資料庫,程式前沿,2018, https://codertw.com/%E7%A8%8B%E5%BC%8F%E8%AA%9E%E8%A8%80/432147/
    [21] Website, JDBC Architecture Model, FacingIssuesOnIT, 2018, https://facingissuesonit.com/tag/jdbc-architecture/
    [22] Website,JDBC 系列之 JDBC 層次結構和基本構成,CSDN,2018, https://blog.csdn.net/dufufd/article/details/80602246
    [23] Website, Java, Wikipedia, 2020, https://zh.wikipedia.org/wiki/Java
    [24] Website, Android Studio, Wikipedia, 2020, https://zh.wikipedia.org/wiki/Android_Studio
    [25] Website, phpMyAdmin, Wikipedia, 2020, https://zh.wikipedia.org/wiki/PhpMyAdmin
    [26] Rahul Kundu, IoT MQTT Panel, GooglePlay, 2020, https://play.google.com/store/apps/details?id=snr.lab.iotmqttpanel.prod&hl=zh_T
    W
    [27] Website, MQTT, Wikipedia, 2020, https://zh.wikipedia.org/wiki/MQTT
    [28] 程冠衡,應用於智慧農場系統之網狀網路設計(I) - Wi-Fi 網路,國立台灣科技大學電機系碩士論文,2019
    [29] Website, Raspberry Pi 筆記(48):IoT 裝置間的通訊協定MQTT, Blogger, 2019, https://atceiling.blogspot.com/2019/04/raspberry-pi-48devicesmqtt.html
    [30] Website,MQTT 入門介绍,菜鳥教程, https://www.runoob.com/w3cnote/mqtt-intro.html
    [31] Website,[Protocol]認識MQTT,Blogger,2019, https://oranwind.org/-broker-ren-shi-mqtt/
    [32] Website, What sort of Quality of Service (QoS) does MQTT offer?, Devopedia, 2017, https://devopedia.org/mqtt
    [33] 許祐寧,一個應用於智慧農場的物聯網系統 - 網路與雲端資料庫實作,國立台灣科技大學電機系碩士論文,2020
    [34] 林政宏,一個應用於智慧農場的物聯網系統 - 網頁應用程式設計,國立台灣科技大學電機系碩士論文,2020
    [35] Website,Android 中的窗口座標體系和螢幕的觸控事件,程式前沿,2019, https://codertw.com/%E7%A8%8B%E5%BC%8F%E8%AA%9E%E8%A8%80/667327/#top

    無法下載圖示 全文公開日期 2025/08/09 (校內網路)
    全文公開日期 2030/08/09 (校外網路)
    全文公開日期 2030/08/09 (國家圖書館:臺灣博碩士論文系統)
    QR CODE