嵌入式Web服务器
详细信息    本馆镜像全文|  推荐本文 |  |   获取CNKI官网全文
摘要
本文研究一种基于嵌入式系统的Web服务器。本系统可以直接通过TCP/IP网络协议接入Internet实现远程访问,将传统测试仪器网络化,将传统仪器的信息通过通用异步串行口(UART)传输到本系统,然后远程客户端通过访问本系统获取信息,从而可以真正实现不受时间、地域限制的远程监控系统。本系统采用高性能RISC处理器S3C44B0X为CPU,外部扩展Flash和RAM,搭建系统硬件平台;软件方面,开发操作系统屏蔽层(Operating System Shielding,OSS),并在此基础上实现了两级调度机制,移植嵌入式实时操作系统(Real-time Operating System,RTOS)Nucleus PLUS和嵌入式TCP/IP网络协议栈Lwip,在此基础上编写应用程序。
     硬件设计中采用以ARM7为内核的处理器S3C44BOX,外部扩展容量为2M字节数的Flash存储器AM29LV160和容量为8M字节数的SDRAM存储器HY57V641620,网络控制部分使用RTL8019AS网络控制器。软件设计中,为了便于软件开发,开发了操作系统屏蔽层,使得系统开发可以在稳定的Windows平台上进行,利用功能完善的开发工具Visual C++,待开发成熟后,可以方便地转移到嵌入式系统中进一步开发。在操作系统屏蔽层中设计了两级调度系统,避免了因为任务频繁切换造成的系统性能损失。在嵌入式系统硬件平台上移植嵌入式实时操作系统Nucleus PLUS和嵌入式TCP/IP协议栈Lwip。实现硬件驱动程序,完成整个系统功能。最后,对本文的研究工作做了总结和展望。
In this paper, it researched the Embedded System Web Server. The system can visit the traditional test instruments through the TCP/IP network protocol remotely access to the Internet, the information of traditional test instruments can transmit through the Universal Asynchronous Serial Port to the system, then the remote client access the information through the system, so that we can truly monitore and control the system any time and any where. The system uses high-performance RISC processor S3C44BOX for system CPU, with external expansion of RAM and Flash, to construct the hardware platforms. The development of operating system shielding layer, and on this basis to achieve the levels scheduling mechanisms, transplant embedded real-time operating system Nucleus PLUS, and embedded TCP/IP network protocol stack Lwip to the hard platform,and achive application program.
     In hardware designment ,we use S3C44B0X which has a ARM7 core as system CPU, external expansion capacity of 2 M bytes of Flash memory AM29LV160 and capacity of 8 M bytes of SDRAM memory HY57V641620, use RTL8019AS as the network controller.When design software, in order to facilitate software development, first we developed the operating system shielding layer (Operating System Shielding), allowing the development of systems can be in the stable Windows platform, using good development tool Visual C++, when about finish the development, it will be convenient to transfer to the embedded system. In shielding layer above the operating system, level scheduling system designed to avoid frequent switching of the tasks because of the system performance loss. Then in the embedded systems hardware platform ,transplantat RTOS (Real-time Operating System) Nucleus PLUS and embedded TCP/IP protocol stack Lwip. Then, we develop the hardware drivers, to achieve system function. Finally, make summarizes and prospects about this paper.
引文
[1] Raj Kamal. Embedded Systems Architecture Programming And Design,北京,清华大学出版社,2005.2:4
    [2] STANKOVIC, J. Misconceptions about realtime computing: A serious problem for next generation systems. IEEE Computer 21(10), 1988: 10~19
    [3]赵海,嵌入式Internet二十一世纪的一场革命,北京,清华大学出版社,2001.9
    [4] Datasheet of S3C44BOX,SAMSUNG
    [5] John L. Hennessy,David A.Patterson,Computer architecture:a quantitarive approach,机械工业出版社,2007.1
    [6]周洁,杨心怀,32位RISC CPU ARM芯片的应用和选型,电子技术应用,2002(8): 6~9
    [7]崔龙,周启明,江文瑞,基于ARM的实时测控系统开发平台,单片机与嵌入式系统应用2003(1):47~50
    [8] Datasheet of AM29LV160,AMD
    [9] Datasheet of HY57V641620,HYNIX
    [10] Datasheet of RTL8019AS,REALTEK
    [11] Dennis E. Hall,Deborah k. Scherrer,Jossph S. Sventek,A virtual operating system,Communications of the ACM,September 1980,Volume 23 Number 9,495~502
    [12]杨朝阳,李毅,虚拟操作系统中的POSIX实时接口的设计,武汉理工大学学报,2003(2):42~45
    [13] By Kevin M. Obenland ,POSIX in Real-Time, http://www.embedded.com/story/OEG20010 312 S0073
    [14] Windows NT Workstation Resource Kits Chapter 29 - POSIX Compatibility, https://www.microsoft.com/technet/archive/ntwrkstn/reskit/poscomp.mspx?mfr=true
    [15] Abraham Silberschatz,Peter Baer Galvin,Greg Gagne,Operating System Concepts,北京,高等教育出版社,2002.5:273
    [16] Jonathan Bartlett,内存管理内幕,http://www.ibm.com/developerworks/cn/linux/l-memory/
    [17]曾非一,桑楠,熊光泽,嵌入式系统内存管理方案研究,单片机与嵌入式系统应用,2005(1):5~7
    [18]何煦岚,沈丽容,两级嵌入式系统的消息驱动和快速传送,计算机工程与设计,2007(10).4980~4983
    [19]刘毅,面向通信领域的嵌入式软件平台的设计与实现,[硕士学位论文],四川成都,西南交通大学,2004.12
    [20] Tornado 2.2 API Programmer's Guide,WindRiver,Inc, www.wrs.com
    [21] WindView 2.2 User's Guide,WindRiver, Inc, www.wrs.com
    [22]用直接消息传递机制实现高可用性(HA)的软件设计――新生代RTOS:OSS http://www.ed-china.com/ART_8800009940_400014_500012_TS_d82db1d4.HTM
    [23]周建光,李鹏,嵌入式实时系统任务内调度的策略和实现,计算机与信息技术,2006(10): 54~56
    [24] TOMIYAMA H, CHIKADA S, HONDA S. An RTOS based Aproach to Design and Validation of Embedded System, IEEE International Symposium on VLSI Design, Automation and Test [C ].2005. 185~187
    [25] HAOBOY, GERSTLAUER A , GAJSKID,RTOS Scheduling inTransaction Level Models,IEEE International Conference on Hareware /Software Codesign and System Synthesis. 2003. 31~36.
    [26] Jane W.S,Liu Real-time systems,Pearson Education,2002.11:62
    [27] C.L.Liu,J.W.Layland,Scheduling Algorithms for Multiprogramming in Hard Real-Time Environment,Jornal of the ACM,vol.20,January 1973, 46~61
    [28] W.Zhao,K.Ramamritham,J.A.Stankovic,Preemptive Scheduling Under Time and Resource Constraints,IEEE Transactions on Computers,vol.C-36,August 1987, 949~960
    [29] Tilborg V, Koob A M, Foundations of Real-time Computing:Scheduling and Resource Management[M]. Kluwer Academic Publishers,1991
    [30] Sha L,Rajkumar R,Sathaye S S. Generalized Rate-Monotonic Scheduling Theory:A Framework for Developing Real-Time Systems[J].Proceedings of the IEEE,1994,82(1):68-82,
    [31] Lehoczky J,Lui Sha,Ye Ding.The Rate Monotonic Scheduling Algorithm:Exact Characterization And Average Case Behavior[A].Proc.IEEE Real-Time Systems Symposium[C].1989.166-171
    [32] Nucleus PLUS Reference Manual[M].Accelerated Technology Inc.1999
    [33]道理,Nucleus体系结构分析及应用研究[硕士学位论文],中南大学,2007.4
    [34]杜春雷,ARM体系结构与编程,北京,清华大学出版社,2003
    [35] Adam Dunkels.A Lightweight TCP/IP Stack. http://www.sics.se/~adam/lwip.
    [36] Design and Implementation of the LwIP TCP/IP Stack http://www.sics.se/~adam/lwip/documentation.html
    [37] Gray R. Wright, W.Richard Stevens.著,谢希仁等译TCP/IP详解,卷一:协议北京,机械工业出版社,2000
    [38]尹良勇,施文康,庄燕子,单片机以太网接口的实现,电子元器件,2005(9):584~588
    [39] Andrew S. Tanenbaum.Computer NetWorks.北京清华大学出版社,2003
    [40] W.Richard Stevens,Bill Fenner,Andrew M,Rudoff.Unix Network Programming,Volume 1:The Sockets Networking API.北京,机械工业出版社,2004
    [41] Gray R. Wright, W.Richard Stevens.著,谢希仁等译TCP/IP详解,卷三:TCP事务协议,HTTP,NNTP和UNIX域协议,北京,机械工业出版社,2000