计算机工程与应用 ›› 2009, Vol. 45 ›› Issue (28): 79-82.DOI: 10.3778/j.issn.1002-8331.2009.28.023

• 研发、设计、测试 • 上一篇    下一篇

嵌入式Web服务器应用的关键技术研究

王真星,石林祥,沈武敏   

  1. 上海第二工业大学 计算机与信息学院,上海 201209
  • 收稿日期:2008-08-19 修回日期:2008-11-17 出版日期:2009-10-01 发布日期:2009-10-01
  • 通讯作者: 王真星

Study on key technology of embedded Webserver application

WANG Zhen-xing,SHI Lin-xiang,SHEN Wu-min   

  1. School of Computer and Information,Shanghai Second Polytechnic University,Shanghai 201209,China
  • Received:2008-08-19 Revised:2008-11-17 Online:2009-10-01 Published:2009-10-01
  • Contact: WANG Zhen-xing

摘要: 动态嵌入式Web服务器使用cgi脚本来完成业务流程,但大部分嵌入式系统性能有限,为了降低嵌入式服务器的负载,探讨了采用javascript脚本和cgi配合的方式来完成业务流程,即服务器端cgi程序将参数添加在网页末尾,客户端网页内嵌的javascript脚本提取参数并显示。研究了cgi通过shell命令调用应用程序,再由应用程序调用驱动程序来控制硬件设备的方法。

关键词: 嵌入式, Web服务器, cgi, javascript, linux

Abstract: In dynamic embedded Webserver,cgi program is adopted to serve the required workflow.However,the performance of embedded system is limited.To reduce the load of Webserver,this paper makes cgi and javascript collaboratively work to process the embedded webapplication.Cgi processes the parameters submitted by post command on client PC and appends the results to the end of html page,Javascript embedded in html page parses and displays the results on the right place.The paper also designs a method that detaches cgi,application program and driver,cgi can indirectly send parameter to driver by exchanging the parameter with application through shell environment.In this way,cgi and application can be designed and debugged independently.

Key words: embedded, Webserver, cgi, javascript, linux

中图分类号: