基于Linux的嵌入式WEB服务器的研究
详细信息    本馆镜像全文|  推荐本文 |  |   获取CNKI官网全文
摘要
随着计算机技术和通信技术的发展,嵌入式系统已经应用到社会的各个领域。嵌入式系统正以不同的形式影响着人们的生产、生活和学习方式。目前大多数嵌入式系统处于单独应用方式,以嵌入式微处理器为核心,与一些监测、伺服、指示设备配合实现一定的功能。在教育方面常用的电子词典、电子书、MP3、MP4等大多数数字设备处于独立应用状态,不能直接和Internet连接,不能实现实时的信息更新和信息交互。在一些工业控制和汽车电子应用中,为了实现多个微处理器之间的信息交流,利用CAN、RS-232、RS-485等总线将微处理器组网,但这种网络的范围有限,有关的通信协议也比较简单,并且一般是孤立于Internet之外的,没有实现系统的互联,这样就大大限制了其应用范围。
     Internet现已成为社会重要的基础信息设施之一,是信息流通的重要渠道,如果嵌入式系统能够连接到Internet上,就可以方便、低廉地将信息传送到几乎世界上的任何一个地方,并且能够实现远程控制,使其应用范围和性能大大提高,这样就能够很好的实现远程监控。本文就是基于此提出的,通过硬件平台的搭建和软件设计,构建一个嵌入式WEB服务器,实现嵌入式系统接入互联网的功能。
     论文主要从硬件平台的搭建和软件操作系统的移植两方面来研究嵌入式WEB服务器。在硬件平台的设计,主要通过比较各种不同的微处理器的性能,选定一种应用广泛并且性价比高的微处理器作为硬件平台的核心,设计构建所需的各种基本外围接口电路,来满足开发的需要,在软件方面,主要将开源代码,功能强大的μClinux操作系统,经过裁剪,移植到开发板上,运用TCP/IP协议实现Internet接入。
     论文主要开展了以下几方面的研究工作:
     (1)研究选定嵌入式微处理器,设计构建开发平台所需的外围接口电路,为下一步的开发提供高效、可靠的硬件平台。
     (2)研究嵌入式操作系统的移植方法和嵌入式WEB服务器的具体实现,利用TCP/IP协议和Socket套接字实现嵌入式WEB服务器和客户端的网络通信。利用终端机的浏览器和客户软件直接访问嵌入式WEB服务器,而不需要PC机作为交互的媒介,实现了通过Internet来对嵌入式终端系统的远程监控。
     (3)分析CGI原理,设计嵌入式WEB服务器应用程序。在构建好WEB服务器后,并使用动态网页技术为其研发应用程序,因为单单的静态网页是满足不了服务器和客户端交互的功能的。
     本论文的研究开发工作是在实践基础上完成的,对以ARM7TDMI为核心的S3C4510B嵌入式硬件平台进行了全面的设计研究,在此基础上成功的移植了Linux操作系统,通过调试,该软、硬件平台运行正常,并在该平台上实现了嵌入式WEB服务器,使得嵌入式系统成功接入Internet。在此基础上的各种各样的软件开发和使用都变得更加方便灵活。通过使用通用的浏览器,用户可以随时随地访问嵌入式WEB服务器,并维护嵌入式设备,这给系统的使用带来了极大的方便,达到了预期的效果。
With the computer technology and communication technology, embedded systems have been applied to all areas of society. Embedded systems are impacting on people's production, living and learning in different forms. Most embedded systems have been applied in a single approach to embedded microprocessor core, with some monitoring, servo, pointing device with a certain function. Commonly they are used in education, for example electronic dictionaries, e-book, MP3, MP4 and other digital devices in most of the independent application state, not directly connected with Internet ,they can not be achieved real-time information updates and information exchange. In some industrial control and automotive applications, in order to achieve the exchange of information between multiple microprocessors, we use CAN, RS-232, RS-485 bus to the microprocessor connection with networking, but scope of the network is limited, and the communication protocol is relatively simple, and generally isolated from the outside Internet, without implementation of the interconnection system, thus greatly limiting the scope of its application.
     Internet has become one of important social basic information infrastructure and is one important channel for the flow of information, if the embedded system can connect to the Internet, you can easily, cheaply transfer the information to virtually anywhere in the world, and may conveniently realize remote control. If you can embedded system connect to Internet, it will greatly enhance the scope of use, so that remote monitoring can be achieved. This article is based on this proposed through the hardware platform design and software design, to build an embedded WEB server and embedded systems connected to the Internet function.
     Papers, mainly studied the embedded WEB server from two aspects of hardware and software operating system transplantation, in the hardware platforms design side, by comparing the performance of a variety of microprocessors, the final selection of a widely used and cost-effective microprocessor as core of a hardware platform, in order to based on this platform to build a variety of peripheral circuit required to meet the development needs, in the software side, the major use of open source, powerful Linux operating system, after cutting, transplanted to the development board, using TCP/IP protocol to achieve into the Internet.
     Papers, mainly be studied by the following aspects:
     (1) Study in selected development platform for embedded microprocessor design to build the necessary peripheral interface circuit for the next stage of development to provide efficient and reliable hardware platform.
     (2) To study the embedded operating system migration methods and concrete realization of the embedded WEB server for embedded systems to build a WEB server. using TCP / IP protocol and Socket socket makes embedded WEB server and client side network communications.Using terminals browser and client software to directly access the embedded WEB server, without the need for PC as a medium of interaction .
     (3) Research Network, Communication Theory, using TCP / IP protocol and Socket socket make embedded WEB server and client side network communications.
     (4) To analize CGI principle, design of embedded WEB server application. To build a good WEB server, but also to use dynamic web technology for their applications, because the static page single can not satisfy interaction functions of the server and client.
     In this paper, research and development work is done on the basis of practice, as ARM7TDMI core, embedded hardware systems S3C4510B conducted a comprehensive study, through commissioning, the hardware system is running normally, on this basis, the successful transplant of the Linux operating system, the system operating normally, and the system implemented on embedded WEB server, enabling embedded system successfully access Internet. On this basis, a variety of software development and use have become more convenient and flexible. By using a common browser, users can anytime, anywhere access to the embedded WEB server, maintaining embedded devices, to provide the ultimate of the system convenitly, to achieve the desired results.
引文
[1]贾智平,张瑞华.嵌入式系统原理与接口技术第二版[M].北京:清华大学出版社,2009. 1-2.
    [2]王勇.嵌入式系统原理与设计[M].杭州:浙江大学出版社,2007.7-8.4-5.
    [3]周立功.ARM嵌入式系统基础教程(第2版)[M].北京:北京航空航天大学出版社.2008.5-6.
    [4]李驹光.ARM应用系统开发详解──基于S3C4510B的系统设计[M].北京:清华大学出版社,2006.74-76.
    [5]徐敬东,张建忠.计算机网络[M].北京:清华大学出版社,2002.12-13.
    [6]毕爱波.基于TCP/IP协议的嵌入式Internet技术的研究与应用[D].青岛:中国海洋大学.2005.30-31.
    [7]刘盼盼.嵌入式WEB服务器的设计与实现[D].太原:太原理工大学.2008.20-21.
    [8]荀启峰.基于嵌入式WEB服务器动态生成网页的方法探讨[J].甘肃科技,2007(6):38-40.
    [9]郑伟,徐荣华,王钦若.嵌入式Linux系统CGI程序设计技术.[J].单片机与嵌入式系统应用. 2004(10).21-24.
    [10]贺金平.嵌入式信息家电平台中的WEB服务器的研究与实现[D].昆明:昆明理工大学.2007.35-36.
    [11]吴坚,张家奇,蒋平.μClinux下Web Server及CGI技术的实现[J].测控技术,2007(4):64-65.
    [1] ARM Architectrue Reference Manual[M].ARM Limited.2006.
    [2]W Richard S. Advanced Programming in the Unix Environment[M].2nd ed.BEIJING:Addison-Wesley,2006.
    [3]Maxim.Cold-junction-compensated K-thermocouple-to-digital Converter[OL].[2009-10]. Real-time Embedded Software Systems
    [4]Atmel.Two-wire Serial EEPROM AT24C512 datasheet[OL].[2009-9].
    [5] Harding G,Wilkins A J,Erba G,et al.Photic-and Pattern-Induced Seizures:Expert Consensus of the Epilepsy Foundation of America Working Group.Fisher,Epilepsia,2005,46(9):1423-1425.
    [6]Atmel AT91RM9200 datasheet[OL].[2009-09].
    [7] Corbet Jonathan,Rubini Alessandro,Kroah-Hartman Greg.Linux设备驱动程序[M].魏永明译.北京:中国电力出版社,2006.
    [8]Chuang Y C.Massively Multiplayer Online RolePlaying Game-Induced Seizures:A Neglectde Health Problem in Internet Addiction,CyberPsychology & Behavior,2006,9(4):451-456.
    [9](美)诺尔加德(Noergaard,T.)著马洪兵,谷源涛译.嵌入式系统:硬件与软件架构[M]北京:人民邮电出版社,2008.
    [10](美) M.Tim Jones著路晓村,徐宏,王泰东等译.嵌入式系统TCP/IP应用层协议[M].北京:电子工业出版社,2003.
    [11] (德) Peter Liggesmeyer, Dieter Rombach著张聚,汪慧英,贾虹等译.嵌入式系统软件工程:基础知识、方法和应用[M].北京:电子工业出版社,2009.
    [12](美)LauraA.Chappell,EdTittel. TCP/IP协议原理与应用[M].北京:清华大学出版社,2009.11.
    [13]杜宝祯,祝静等.基于Linux和S3C2440的GPC控制器设计[J].单片机与嵌入式系统应用. 2009(11).15-17.
    [14]董文军.Linux驱动程序兼容性的相关问题[J].单片机与嵌入式系统应用.2010(3).16-18.
    [15]卢泰均.浅谈ARM Cortex-M0[J].2010(3).84-86.
    [16]马忠梅.ARM嵌入式处理器结构与应用基础[M].北京:北京航空航天大学出版社,2007.3.
    [17]赖于树.ARM微处理器与应用开发[M].北京:电子工业出版社,2007.8.
    [18]冼进.嵌入式Linux应用开发详解[M].北京:电子工业出版社,2007.11.
    [19]刘建超.单片机与Internet网络的通信应用研究[D].济南:山东师范大学.2007.
    [20]孙琼.嵌入式Linux应用开发程序详解[M].北京:人民邮电出版社,2006.7.
    [21]郭惠,吴迅.单片机C语言程序设计完全自学手册[M].北京:电子工业出版社,2008.10.
    [22]刘淼.嵌入式系统接口设计与Linux驱动程序开发[M].北京:北京航空航天大学出版社,2006.6.
    [23]魏建业.嵌入式操作系统μC/OS-II的分析、移植与应用研究[D].济南:山东师范大学.2007.
    [24]宋江贵.基于ARM9的嵌入式WEB Server研究应用与通信研究[D].北京:北京邮电大学.2008.
    [25]尹呈良.一种基于ARM7的嵌入式系统网络通信研究与应用[D].济南:山东师范大学.2007.
    [26]唐葛亮.基于ARM Linux的嵌入式多媒体系统设计与开发[D].成都:成都理工大学.2008.
    [27]魏勋.LED图文信息显示系统的研制[D].济南:山东师范大学.2009.
    [28]刘盼盼.嵌入式WEB服务器的设计与实现[D].太原:太原理工大学.2008.
    [29]赵国安,郁斌,薛琳强.基于Linux嵌入式原理与应用开发[M].北京:清华大学出版社,2008.10.
    [30]肖霞.基于ARM-Linux的嵌入式浏览器的研究与实现[D].成都:西华大学.2008.
    [31]方光深.基于ARM的嵌入式WEB服务器的研究与实现[D].昆明:昆明理工大学.2008.
    [32]刘银水,肖正宇,孙伟.基于ARM_Linux的嵌入式WEB服务器[J].:单片机与嵌入式系统. 2007(6):14-17.
    [33]王先春,郭杰荣,胡惟文,樊希平.基于ARM_Linux的嵌入式Web服务器的设计与实现[J]:微计算机信息.2007(5):163-165
    [34]李军民,祝红军.基于ARM-Linux新型嵌入式Web服务器设计[J]:自动化仪表.2008.
    [35]袁爱君.基于ARM的嵌入式μClinux的系统设计与WEB服务器应用的实现[D].杭州:浙江大学.2003.
    [36]张超.基于ARM和μClinux的嵌入式系统的构建研究[D].西安:西安电子科技大学.2005.
    [37]王倩.嵌入式Web Server及其网络通信实现研究[D].杭州:浙江大学.2006.
    [38]张满怀.嵌入式TCP/IP协议研究与实现[D].广州:广东工业大学.2001.
    [39]张超.基于ARM和μClniux的嵌入式系统的构建研究[D].西安:西安电子科技大学.2005.
    [40]赵磊.基于嵌入式μClinux的Web服务器的设计与应用[D].武汉:武汉理工大学2008.
    [41]徐金增.单片机编程仿真实验系统的设计与实现[D].济南:山东师范大学.2009.
    [42]谭浩强.C语言程序设计[M].北京:清华大学出版社,1999.
    [43]http://www.ARM.com/
    [44]http://www.ucos-ii.com/
    [45]http://www.embedded.com/
    [46]http://www.Linux.org/
    [47]http://www.keil.com/

© 2004-2018 中国地质图书馆版权所有 京ICP备05064691号 京公网安备11010802017129号

地址:北京市海淀区学院路29号 邮编:100083

电话:办公室:(+86 10)66554848;文献借阅、咨询服务、科技查新:66554700