Computer Engineering and Applications ›› 2009, Vol. 45 ›› Issue (28): 79-82.DOI: 10.3778/j.issn.1002-8331.2009.28.023

• 研发、设计、测试 • Previous Articles     Next Articles

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服务器应用的关键技术研究

王真星,石林祥,沈武敏   

  1. 上海第二工业大学 计算机与信息学院,上海 201209
  • 通讯作者: 王真星

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

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

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

CLC Number: