| 研究生: |
陳蘊行 Chen, Yun-Hsing |
|---|---|
| 論文名稱: |
具前後端與行動裝置整合之聯網智慧插座的實現 Implementation of a Networked Smart Plug from Integrating a Front-End and a Back-End into a Mobile Device |
| 指導教授: |
李建興
Lee, Chien-Hsing |
| 學位類別: |
碩士 Master |
| 系所名稱: |
工學院 - 系統及船舶機電工程學系 Department of Systems and Naval Mechatronic Engineering |
| 論文出版年: | 2018 |
| 畢業學年度: | 106 |
| 語文別: | 中文 |
| 論文頁數: | 73 |
| 中文關鍵詞: | 前後端技術 、智慧插座 、Node.js 、Cordova 、MQTT |
| 外文關鍵詞: | Front-end and Back-end, Smart Plug, Node.js, Cordova, MQTT |
| 相關次數: | 點閱:50 下載:3 |
| 分享至: |
| 查詢本校圖書館目錄 查詢臺灣博碩士論文知識加值系統 勘誤回報 |
本論文整合前後端技術,經由Node.js用以開發伺服器程式,與Cordova用以開發手機App程式,進而實現使用手機App聯網控制智慧插座,並能監控該插座被使用時之電能狀況。本智慧插座可區分為負載控制與電能量測監控兩個子單元,負載控制子單元負責插座的啟閉控制,其仿效公用免費WiFi之使用機制,當使用者由手機App以WiFi方式存取中控端伺服器開啟插座使用前,手機畫面將先被置入廣告服務,且中控端伺服器另有計時斷電與斷線切斷機制,用以防止電能浪費。當智慧插座被使用後(即負載開啟),電能量測監控子單元便會對所使用插座上之負載進行用電監控。最後,經本文所實作之量測電路,於取得電能訊號並加以運算後,可透過輕量化的MQTT協議傳輸電能資料至監控端伺服器,並將相關電力參數以動態儀表板和動態折線圖之方式呈現於前端網頁中,用以達到資料視覺化的效果。
This thesis implements a smart plug prototype by integrating a front-end and a back-end into a mobile device. The server side and the mobile application are developed using Node.js and Cordova, respectively. The implemented smart plug has a function for load control and monitor load energy consumption. The structure of the complete smart plug is divided into two parts including load control and energy monitoring. As for the load control part, it is responsible for the plug’s on/off control imitated from the mechanism of public WiFi connection that the mobile application will push advertisements before users access the control center server via WiFi to use the plug. In addition, the control center server has two mechanisms to avoid energy waste which are cut-off counted from the using time up to 30 minutes and the users disconnection cut-off mechanism. When a load on the plug is turned up, the function of energy consumption monitoring is turned on to monitor energy usage. The signals of energy usage are obtained from the energy measurement circuit and the data are calculated to deliver to the monitoring server via MQTT protocol. The monitoring server then takes this information to a webpage by dynamic dashboard and line chart to show the trend of energy usage.
[1] L. Wang, D. Peng and T. Zhang, “Design of smart home system based on WiFi smart plug,” International Journal of Smart Home, vol. 9, no. 6, 2015, pp. 173-182.
[2] R. Piyare, “Internet of things: ubiquitous home control and monitoring system using Android based smart phone,” International Journal of Internet of Things, vol. 2, no. 1, 2013, pp. 5-11.
[3] I. Abubakar, S. N. Khalid, M. W. Mustafa, H. Shareef and M. Mustapha, “Application of load monitoring in appliances’ energy management – A review,” Renewable and Sustainable Energy Reviews, vol. 67, January 2017, pp. 235-245.
[4] .1.Free WiFi點一點免費上網, (Date of retrieval: June 18, 2018):
https://www.d1dfreewifi.com.tw/#coming
[5] 曾煜棋、林政寬、林致宇、潘孟鉉,”無線網路:通訊協定、感測網路、射頻技術與應用服務”,碁峯資訊股份有限公司,2011年8月初版。
[6] A. Mahmood, N. Javaid and S. Razzaq, “A review of wireless communications for smart grid,” Renewable and Sustainable Energy Reviews, vol. 41, January, 2015, pp. 248-260.
[7] V. Wang, F. Salim and P. Moskovits, The definitive guide to HTML5 websocket, Apress 2013.
[8] 廖思幃,”基於MQTT之Scratch物聯網擴充平台設計”,國立交通大學資訊科學與工程研究所,碩士論文,民國106年10月。
[9] 王姿懿,”基於Arduino平台比較MQTT和WebSocket通訊協定表現”,國立中正大學資訊工程研究所,碩士論文,民國106年8月。
[10] A. Al-Fuqaha, M. Guizani, M. Mohammadi, M. Aledhari and M. Ayyash, “Internet of things: A survey on enabling technologies, protocols, and applications,” IEEE Communications Surveys & Tutorials, vol. 17, no. 4, June 2015, pp. 2347-2376.
[11] 錢逢祥、蔡政崇、林政毅,”不一樣的Node.js:用JavaScript打造高效能的前後台網頁程式”,松崗資產管理股份有限公司,2014年5月初版。
[12] 趙英傑,”超圖解物聯網IoT實作入門:使用JavaScript, Node.js, Arduino, Raspberry Pi, ESP8266, Espruino”,旗標出版股份有限公司,2017年4月初版4刷。
[13] Arduino Mega 2560, (Date of retrieval: June 18, 2018):
http://www.arduino.cc/en/Main/ArduinoBoardMega2560
[14] Arduino Firmata Protocol, (Date of retrieval: June 18, 2018):
https://www.arduino.cc/en/Reference/Firmata
[15] Johnny-Five, (Date of retrieval: June 18, 2018):
https://github.com/rwaldron/johnny-five
[16] Socket.IO, (Date of retrieval: June 18, 2018):
https://github.com/socketio/socket.io
[17] Express.js, (Date of retrieval: June 18, 2018):
http://expressjs.com/zh-tw/
[18] MQTT.js, (Date of retrieval: June 18, 2018):
https://github.com/mqttjs/MQTT.js
[19] Arduino Ethernet Shield, (Date of retrieval: June 18, 2018):
https://www.arduino.cc/en/Main/ArduinoEthernetShieldV1
[20] PubSubClient, (Date of retrieval: June 18, 2018):
https://github.com/knolleary/pubsubclient
[21] Cordova, (Date of retrieval: June 18, 2018):
https://cordova.apache.org/docs/en/latest/guide/overview/
[22] cordova-plugin-admob-simple, (Date of retrieval: June 18, 2018):
https://www.npmjs.com/package/cordova-plugin-admob-simple#description
[23] cordova-plugin-googlemaps, (Date of retrieval: June 18, 2018):
https://github.com/mapsplugin/cordova-plugin-googlemaps
[24] A. ElShafee and K. A. Hamed “Design and implementation of a WiFi based home automation system,” World Academy of Science, International Journal of Computer, Electrical, Automation, Control and Information Engineering, vol. 6, no. 8, 2012, pp. 1074-1080.
[25] A. Škraba, R. Stojanovi´c, A. Zupan, A. Koložvari and D. Kofjaˇc, “Speech-controlled cloud-based wheelchair platform for disabled persons,” Microprocessors and Microsystems, vol. 39, no. 8, November 2015, pp. 819-828.
[26] J. Bermúdez-Ortega, E. Besada-Portas, J. A.López-Orozco, J. A. Bonache-Seco and J. M. de la Cruz, “Remote web-based control laboratory for mobile devices based on EJsS, Raspberry Pi and Node.js,” IFAC-PapersOnLine, vol. 48, no. 29, 2015, pp. 158-163.
[27] 何信威,”智慧插座電源偵測系統”,國立台灣科技大學電子工程研究所,碩士論文,民國99年7月。
[28] 王介君,”基於智慧型插座無線電能監測系統之研究”,國立台灣科技大學電機工程研究所,碩士論文,民國101年7月。
[29] 黃俊智,”具保護協調特性的智慧型插座之研製”,國立台灣科技大學電機工程研究所,碩士論文,民國102年7月。
[30] Learn Open Energy Monitor, (Date of retrieval: June 18, 2018):
https://learn.openenergymonitor.org/electricity-monitoring/
[31] C3.js, (Date of retrieval: June 18, 2018):
http://c3js.org/