摘要
嵌入式设备资源有限,在这种情况下实现Web服务功能比较困难。针对嵌入式设备这种特点,本文通过比较几种Web服务器的优缺点,选定了Shttpd作为嵌入式Web服务器,并对其在Linux嵌入式平台下进行了移植。文中详细解析了CGI技术的相关原理,并结合HTML表单和CGI技术,给出了用C语言编写的基于CGIC库的串口程序,实现了客户端与服务端的动态交互。
The resource of embedded devices is limited, so it is difficult to implement the web server function under this situation. Due to limited resource of embedded devices, this paper selected Shttpd as an embedded web server by comparing the advantages and disadvantages of several web servers and transplanted Shttpd under Linux embedded platform. The article specifically analyzed the operational principle of CGI technology. A serial port program used C language based on the CGIC library was given, which combined with HTML forms and CGI technology, realizing dynamic interactivity between the client and the Web Server.
出处
《电子设计工程》
2011年第21期152-154,158,共4页
Electronic Design Engineering