| 研究生: |
魏裕恆 Wei, Yu-Heng |
|---|---|
| 論文名稱: |
嵌入式網頁伺服器應用於管理不斷電系統 An Embedded Web Server for UPS Management System |
| 指導教授: |
陳中和
Chen, Chung-Ho |
| 學位類別: |
碩士 Master |
| 系所名稱: |
電機資訊學院 - 電腦與通信工程研究所 Institute of Computer & Communication Engineering |
| 論文出版年: | 2015 |
| 畢業學年度: | 103 |
| 語文別: | 中文 |
| 論文頁數: | 75 |
| 中文關鍵詞: | 嵌入式網頁伺服器 、不斷電系統 、RESTful Web Service |
| 外文關鍵詞: | Embedded Web Server, RESTful Web Service, Uninterruptible Power Supply |
| 相關次數: | 點閱:120 下載:3 |
| 分享至: |
| 查詢本校圖書館目錄 查詢臺灣博碩士論文知識加值系統 勘誤回報 |
本論文主旨在於實現一套應用於管理不斷電系統的嵌入式網管系統,我們提出了一份詳細的系統架構,藉由此系統架構來說明我們是如何整合網管系統和不斷電系統。接著,根據所提出的系統架構,我們實現了一組監控程式,稱它為Server AP。透過Server AP可以讓網管系統使用RS232和Modbus協定來跟不斷電系統通訊,以達交換資料的目的。並也讓其執行事件紀錄的功能,將系統上之重要事件紀錄下來,或是讓其利用SMTP協定來做送信通知事件的功能。且為了能將即時的不斷電系統資訊顯示在網管系統的使用者介面中,我們利用CGI程式來達到可提供動態資訊網頁的功能。而對於CGI程式如何取得這些資訊的議題,我們根據不同的資料使用情境,讓CGI程式分別利用Named Pipe和Shared Memory跟Server AP交換資料,使不斷電系統之資料可以回傳至正確的CGI程式,並同時處理以RS232為關鍵資源時發生之飢餓現象,來確保系統執行時能提供良好的表現。再來,為了能讓此系統擁有支援集中式管理的功能,我們參考Representational State Transfer ( REST )系統設計的風格,讓我們的網管系統以提供RESTful API的方式來支援集中管理的功能。最後,我們將此網管系統實現於一ARM-based的嵌入式平台,透過將系統實現於一實際的嵌入式平台中,來驗證我們所提出之系統的可行性。
The purpose of this thesis is to develop and build an embedded web server for monitoring Uninterruptible Power Supply (UPS). First, we propose our system architecture design to integrate a management system and the UPS. With the design of system architecture, we can implement our software programs step by step. One of the most important programs in the system is a server-side application program ( Server AP ). We implement this program to perform various functions. These functions include communication with the UPS, logging system events, and sending warning events to user by using email. Besides, we also implement CGI programs to generate dynamic web pages and provide system operations to user. And in order to handle Starvation problem of shared resource, we use Shared Memory and Named Pipe in the communication between the CGI programs and the Server AP under different circumstances. This mechanism can also improve the performance of the system. Furthermore, with RESTful web service, our management system can be integrated into a centrally managed system in the future. At last, we implement our system in a real embedded platform to verify our system design.
[1] Modbus, communications protocol, http://www.modbus.org.
[2] Linux kernel, open source operation system kernel, https://www.kernel.org.
[3] BusyBox, http://www.busybox.net.
[4] Raspberry Pi, https://www.raspberrypi.org.
[5] Hypertext Transfer Protocol ( HTTP ), RFC-2616.
[6] Extensible Markup Language, RFC-4646.
[7] JavaScript Object Notation, RFC-4627.
[8] Roy Thomas Fielding, “Architectural Styles and the Design of Network-Based Software Architectures”, Ph.D. Dissertation, 2000.
[9] Simple Mail Transfer Protocol ( SMTP ), RFC-2821.
[10] mini-httpd, a small HTTP server, http://acme.com/software/mini_httpd.
[11] SOAP, communications protocol, http://www.w3.org/TR/soap.
[12] Qinma Kang and Hong HE, “Study on Embedded Web Server and Realization”, International Symposium on Pervasive Computing and Applications, 2006.
[13] Sematic UI, free open source web template, http://semantic-ui.com.
[14] OpenSSL, open source toolkit, https://www.openssl.org.
[15] LibXML, open source toolkit, http://www.xmlsoft.org/index.html.
[16] Web Service, http://www.w3schools.com/webservices/ws_intro.asp.
[17] Simple Network Management Protocol ( SNMP ), https://en.wikipedia.org/wiki/Simple_Network_Management_Protocol.
[18] ARM, http://www.arm.com/index.php.
[19] F. Belqasmi, “RESTful Web Services for Service Provisioning in Next Generation Networks: A Survey,” IEEE Comm., vol. 49, no. 12, 2011, pp. 66–73.
[20] Fatna Belqasmi, Jagdeep Singh, Suhib Younis Bani Melhem and Roch H. Glitho, “SOAP-Based vs. RESTful Web Services A Case Study for Multimedia Conferencing”, Published by the IEEE Computer Society, 2012.
[21] Tao Lin, Hai Zhao, Jiyong Wang, Guangjie Han and Jindong Wang, "An Embedded Web Server for Equipments", Parallel Architectures, Algorithms and Networks, 2004.
[22] Aiko Pras, Thomas Drevers, Remco van de Meent and Dick Quartel, "Comparing the Performance of SNMP and Web Services-Based Management", IEEE Transactions on Network and Service Management, 2004.
[23] Heller Martin, "REST and CRUD: the Impedance Mismatch", http://www.infoworld.com/article/2640739/application-development/rest-and-crud--the-impedance-mismatch.html, 2007.