基于Ethernet的嵌入式远程监控系统
详细信息    本馆镜像全文|  推荐本文 |  |   获取CNKI官网全文
摘要
把嵌入式系统与网络相结合,构造能与网络相连接的智能节点,是目前控制、通讯、计算机等多学科的研究热点。这种智能节点可以是复杂昂贵的工业实时控制设备,也有可能是小巧经济可以接入Internet的智能家电。
     本文的工作致力于将嵌入式实时操作系统(RTOS)μC/OS-Ⅱ和应用最广泛的网络协议TCP/IP协议相结合,移植到51系列单片机上。这样的系统由内置64K程序Flash存储器的WinbondW5168EBP单片机,32K扩展数据存储器和RTL8019AS以太网络接口控制芯片构成。
     本系统最大的特点是在8位单片机上实现了HTTP协议。系统配置成功后,成为局域网中有独立IP地址的一个节点。局域网中的任一一台PC在IE浏览器的地址栏输入配置给系统的IP地址,就可以访问到存储在本系统中的超文本页面。
     单片机上实现TCP/IP的意义和价值在于:将原来孤立的控制单元改造成能够融合进控制网络和信息网络的节点。同时,以太网上运行的TCP/IP协议是一个开放的标准,它并不由某个厂商所控制。开放性和公开性使得开发具有自主知识产权的系统成为可能。
     本论文研究实现的基于RTOS和TCP/IP协议的分布式单片机测控系统,主要做了以下几个方面的工作:
     1实现了公开源码的嵌入式操作系统μC/OS-Ⅱ在51系列单片机Winbond W78E516BP上的移植;
     2通过合理选择,实现了TCP/IP协议栈中的部分内容。值得重点指出的是用8位单片机实现了HTTP协议,从而使得单片机成为了可以用IE浏览器直接访问的节点;
     3对本系统的硬件部分设计的电磁兼容性和软件部分的可靠性技木设计做了较为详细的研究;
     4分析了基于TCP/IP协议的分布式单片机测控系统的实时工作性能,提出了工业以太网的性能敏感因素和改进系统可靠性、稳定性的办法;同时对嵌入式系统的性能测试也做了研究。
     5系统用于系统的网络数据通信和远程控制。
At present , to combine the embedded system with the intellectual node that can link with network is a hot research focus in many research fields including automation control, communication, computer science, etc. The system can be constructed by complicated and expensive industrial real-time control equipments, or the intellectual electrical home appliances of small size and low cost.
     Job of this paper devoted to transplanting the RTOS uC/OS-II and the TCP/IP protocols to the 51 serial MCU platform. Such a system is established by Winbond's W5168EBP MCU with built-in 64K programmable flash memory, 32K expanded data memory and Ethernet network interface control chip- RTL8019AS.
     The most remarkable strength of this system is having realized the HTTP protocol on the 8bits MCU platform. After the system has been configured correctly, it will be a node with independent IP address in the Ethernet. Then any PC inside the same network can visit the system as a website through IE browser without any special software or hardware. You can input this IP address into the address bar of the IE browser, then you can visit the hypertext page stored in the system, through operating the control button on the page directly, the I/O output level of the MCU can be changed according to your operation.
     The purpose and the value of such a system are:
     1 The originally isolated control node will be transformed and can be merged into automation control network and information network.
     2 The TCP/IP protocols are open and free, it is not controlled by a certain manufacturer. It makes possible to develop the system with independent intellectual property right.
     This paper focuses on the following aspects:
     1 Transplanting the uC/OS-II RTOS to the specific platform;
     2 Realizing part of the TCP/IP protocols according to the system demand .The most remarkable point is the realization of the HTTP protocol in an 8bits MCU platform;
     3 Researching EMC of hardware system design and ability technology design of software .
     4 Analyzing the system's real-time performance with data from experiment, finding out the most important factor that determines the real time performance; And researching on Performance Testing of the Embedded System.
     5 Applying the system to the Simulation Research on Joint Operation of Multiple Power Generating Method in Marine Power Station on the fields of network communication and remote control.
引文
[1] 邴志刚著.计算机控制.北京:清华大学出版社,北京交通大学出版社,2005.
    [2] 潘仕彬 何铮著.用于单片机的以太网网关—网络通.单片机与嵌入式系统应用, 2003年8期
    [3] (加)Kirk Zurell 著.嵌入式系统的C程序设计.北京:机械工业出版社,2002
    [4] (美)Rick Grehan 等著.32位嵌入式系统编程.北京:中国电力出版社,2001
    [5] (美)Jean J.Labrosse 著.嵌入式实时操作系统μ C/OS—Ⅱ.第2版.北京:北京航空航天大学出版社,2003
    [6] 陈强王建华著.μC/OS-Ⅱ 任务调度机制的改进.单片机与嵌入式系统应用 2004年1期
    [7] 徐爱钧 彭秀华著.单片机高级语言C51windows环境编程与应用.北京:电子工业出版社, 2001
    [8] 赖麒文著.8051单片机C语言彻底应用.北京:科学出版社,2002
    [9] 马忠梅等编著.单片机C语言Windows环境编程宝典.北京:北京航空航天大学出版社,2003
    [10] 吴金戌等著.8051单片机实践与应用.北京:清华大学出版社,2002
    [11] 沈红卫著.单片机应用系统设计实例与分析.北京:北京航空航天大学出版社,2003
    [12] 张沛颀著.基于C语言编程MCS-51单片机原理与应用.北京:清华大学出版社,2003
    [13] 陈正凯编.C++函数库查询辞典.北京:中国铁道出版社,2001
    [14] 黄匡庸编.新编电脑查询辞典.北京:中国铁道出版社,2002
    [15] (美)Brian W.Kernighan,Dennis Ritchie 著.C程序设计语言.第二版.北京:机械工业出版社,2001
    [16] 谭浩强著.C程序设计.北京:清华大学出版社,2003
    [17] (美)Harvey M.Deitel 等著.C++大学教程.第2版.北京:电子工业出版社,2002
    [18] (美)Harvey M.Deitel 等著.C++大学教程试验指导书.北京:电子工业出版社,2002
    [19] (美)Myke Predko.PC接口技术内幕.北京:中国电力出版社,2002
    [20] 楼然苗著.51系列单片机设计实例.第2版.北京:北京航空航天大学出版社,2006
    [21] 沈美明著.IBM-PC汇编语言程序设计.北京:清华大学出版社,2001
    [22] (美)Andrew S.Tanenbaum 著.计算机网络.第3版.北京:清华大学出版社,1998
    [23] (美)W.Richard Stevens 著.TCP/IP详解.卷1协议.北京:机械工业出版社,2000
    [24] (美)W.Richard Stevens 著.TCP/IP详解.卷2实现.北京:机械工业出版社,2000
    [25] (美)Jeremy Bentham 著.嵌入式系统Web服务器TCP/IP Lean.北京:机械工业出版社,2003
    [26] 严蔚敏著.数据结构.北京:清华大学出版社,1992
    [27] 吉雷编.Protel99从入门到精通.西安:西安电子科技出版社,2000
    [28] 高放等著.单片机编程中的堆栈清理技术.电子世界,2003年第3期
    [29] 董春桥等著.自动控制网络数据通信协议研究.自动化与仪表,2003年第3期
    [30] 张智杰等著.以太网在自动化中的应用.自动化与仪表,2003年第3期
    [31] 潘世永等著.工业控制网络的体系结构.电气自动化,2003年第4期
    [32] Stan著.实时的以太网传输硬件技术论述.工控与变频,2003年第1,2期
    [33] 魏余芳等著.工业以太网与现场总线组网的研究.自动化信息,2003年12期
    [34] 黄布毅等著.基于uCLinux的Web技术实现.电子设计应用,2003年12期
    [35] Realtek Co. RTL8019(AS) Specification 2000.10
    [36] Realtek Co. RTL8019(AS) Application Circuits 2000.10
    [37] 祝福,肖彦直 计算机控制系统的抗干扰技术[J].计算机与数字工程, 2005,
    [38] 夏扬.计算机控制技术[M].北京:机械工业出版社,2004
    [39] 于海生.微型计算机控制系统[M] 北京:清华大学出版社,1999.
    [40] 白同云,吕晓德.电磁兼容设计[M].北京:北京邮电大学出版社,2001.
    [41] 张军,彭宣戈.嵌入式系统硬件抗干扰技术[J].微计算机信息, 2006,22(5-2)
    [42] 何立民编.单片机应用技术选编.北京:北京航空航天大学出版社,2003
    [43] 单片机C程序设计及应用实例.北京:人民邮电出版社,2003
    [44] (美)Jean J.Labrosse 著.嵌入式系统构件.北京:机械工业出版社,2002
    [45] 胡皓.提高控制系统软件可靠性的措施[J].陕西工程学院学报, 2002,18(1)
    [46] 孔娟.单片机测控系统中的抗干扰技术[J].自动化与仪器仪表, 2003,(3):
    [47] 王铁勇 在单片机中嵌入操作系统的利弊 今日电子2002年第9期
    [48] 刘光斌.单片机系统实用抗干扰技术[M].北京:人民邮电出版社,2003
    [49] 王富荣.提高单片机系统可靠性的设计方法[J].电子器件, 2004(4):752-754.
    [50] 邵贝贝译.μ C/OS-Ⅱ源码公开的实时嵌入式操作系统.中国电力出版社,2001
    [51] 熊光泽.嵌入式系统软硬件协同设计技术综述[J].计算机应用, 2006(4):758--760
    [52] 李庆城.嵌入式系统的系统测试和可靠性评估[J].单片机与嵌入式系统应用,2003(8):11—13
    [53] 金敏,等.嵌入式系统——组成、原理与设计编程 [M] 人民邮电出版社,2006.8
    [54] http://www.gd-emb.org/detail/id-51.html
    [55] www.chinakong.com
    [56] www.csdn.com
    [57] www.c51bbs.com
    [58] www.onlinecontroll.com
    [59] GaryR. Wright, W. Richard Stevens. TCP/IP Illustrated Volume2: The Implementation机械工业出版社.

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

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

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