1 / 31

概念性產品報告

概念性產品報告. 遠端電源管理 Remote Power Manager 軟體架構與操作介面 912310 林東建 上台報告 912351 洪崇紳 資料整理. RPM 簡介. RPM(Remote Power Manger). Desktop PC. Web Browse r. HTTP. TCP/IP. RPM Master. Embeded System(Linux). Micro Prosser. RS232. Real Time Clock. Serial Com. Serial Com. RS485 Com.

Download Presentation

概念性產品報告

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. 概念性產品報告 遠端電源管理 Remote Power Manager 軟體架構與操作介面 912310 林東建 上台報告 912351 洪崇紳 資料整理

  2. RPM簡介 RPM(Remote Power Manger)

  3. Desktop PC Web Browser HTTP TCP/IP RPM Master Embeded System(Linux) Micro Prosser RS232 Real Time Clock Serial Com Serial Com RS485 Com Real Time Clock Micro Prosser RS485 RPM Salve Micro Prosser …………….. Micro Prosser MAX 16 . 系統架構

  4. 軟體架構

  5. 軟體模組

  6. RPM網頁控制端

  7. Condition • System Base • RPM Status • Temperature • Event Log

  8. System Base

  9. RPM Status

  10. Temperature

  11. Event Log

  12. Configuration • Network • SNMP • Email • Web • System Time • RPM Setting • Scheduling • Environment • Logout

  13. Network

  14. SNMP

  15. Email

  16. WEB

  17. System Time

  18. RPM Setting

  19. Scheduling

  20. Environment

  21. 系統可改良 • C語言與Perl對CGI程式的撰寫 • 對溼度管理的改善

  22. 改良物件 • Perl與C • 溼度偵測

  23. Perl與C 何謂CGI: CGI是Common Gateway Interface 的簡稱。其主要的功能是在WWW環境下,藉由從使者端傳遞一些訊息給WWW伺服軟體,再由WWW伺服軟體去啟動所指定的程式碼來完成特定的工作。有了CGI功能的加入可以使得WWW的環境不僅可以有單向的資訊瀏覽,更可以有雙向的互動。程式可以用任何一種程式語言來撰寫,包括 C, Perl, Java, 以及 Visual Basic。

  24. C 1. CGI資源較少 2. 撰寫程式時,相同的功能需要較多的程式碼來表示。

  25. Perl Perl 是一解譯式的語言,專為高效率檢視文字檔案、從中抽取資料,據 以印製報表而設計。 絕大多數 CGI 應用程式的任務都涉及對資料作某種程度的處理,及連結外在程式。 Perl 恰好提供了好用的工具。

  26. Example: Perl $cgi_form = new CGI::Form; $from = $cgi_form->param('from'); $name = $cgi_form->param('name'); $to = $cgi_form->param('to'); $subject = $cgi_form->param('subject'); $message = $cgi_form->param('message'); open SENDMAIL, "| /usr/bin/sendmail -t -n“ print SENDMAIL <<End_of_Mail; From: $from <$name>

  27. To: $to Reply-To: $from Subject: $subject $message End_of_Mail

  28. Example: C語言 Decoder.c 1.利用cgi_form_decoder()解碼並取得user輸入的資料 2.呼叫send_mail(user data) SendMail.c 接收user 資料並寄信

  29. 溼度偵測 • 環境的最佳濕度: 45%~60%,最大範圍不超過35%~80% • 低濕度-靜電、火災 • 高濕度-機械零件生鏽

  30. 溼度管理改善

  31. 結論 1.透過Perl可以更方便地撰寫CGI程式問題與節省開發時間。 2.以溼度sensor來感應溼度來警告或提醒使用者RPM的機械狀態,同時啟動加濕器或降濕器來維護機房的環境狀態。

More Related