嵌入式CAN-Ethernet网关的研究与实现
详细信息    本馆镜像全文|  推荐本文 |  |   获取CNKI官网全文
摘要
随着计算机控制技术及网络技术的发展,人们对工业现场总线与Ethernet的整合提出了新的要求,希望通过现有的技术使工业管理深入到现场总线。控制器局域网Controller Area Network(CAN)作为一种工业现场总线,能有效支持分布式控制和实时控制,具有高性能和高可靠性的特点,现已在各种控制系统中被广泛的使用。
     课题来源于“矿井安全生产数字化控制平台”项目,采用CAN总线+Ethernet的网络架构。由于该系统存在两种异构网络设备的接入和相互通信问题,且CAN总线自身也存在不适合长距离通信和多个网络的互连等局限。因此,本文设计了一种新型的以ARM7处理器为核心的高性能嵌入式CAN-Ethernet网关,用来实现控制系统中监控层和设备层设备间的稳固、简洁的互连通信,完成对大规模现场设备的实时监控。
     本文通过对CAN总线和Ethernet这两种异构网络技术的分析,进行了网络互联和通信的可行性研究;针对嵌入式CAN-Ethernet网关需要实现的功能,提出了软硬件设计思想、协议转换模型;阐述网关软件的总体框架,给出硬件的具体实现方案;并对μC/OS-Ⅱ操作系统进行了裁剪,完成其在LPC2194微处理器上的移植及任务设计;制定了CAN总线和以太网的编址方案,设计并实现了嵌入式TCP/IP协议栈和具体协议转换方案。最后,文章利用排队论相关技术对实际的嵌入式CAN-Ethernet网关系统建立了数学模型,并进行分析、检验其性能。结果表明该网关系统实现了CAN与Ethernet高效无缝的互连,且运行稳定可靠。
With the development of computer control, as well as Ethernet technology, new demands have been made at the scene of industrial integration with the Ethernet, and desire using existing technology to make industrial management penetrate into the fieldbus. Controller Area Network (CAN) as a kind of industrial fieldbus networks can effectively support the distributed control and the real-time control. It has high performance and redundant reliable, and has been widely used at various control systems.
     This thesis is motivated by the project "Mine Safety Production Figures Control Platform". The architecture of the system is based on CAN bus & Industrial Ethernet network, so that the problems of two heterogeneous network equipments multiple access and communication need to be resolved. Furthermore, CAN bus is not suitable for long-distance communication and large number of network interconnection. So we design a new high-performance embedded CAN-Ethernet gateway based on the ARM7 processor core to obtain a simple and steady connection between monitor-layer and equipment-layer in a control system.
     Based on the analysis of the CAN bus and the Ethernet technology, a networking and communication feasibility study is made on. According to the functions of the embedded CAN-Ethernet gateway system, we have established the gateway framework, protocol conversion model, hardware and software scheme. In addition,μC/OS-II, embedded TCP/IP protocol stacks are tailored and transplanted onto the LPC2194.μC/OS- II tasks, CAN-Ethernet protocol conversion and communication programme are also developed. At last, using the queuing theory to obtain a performance analysis, the report proves the embedded CAN-Ethernet gateway achieves an efficient and reliably interconnection between CAN and Ethernet.
引文
[1]钱春来.工业控制系统的演变[J].甘肃科技纵横,2005,34(5):37.
    [2]沈德耀,金敏.现场总线纵横谈[J].仪器仪表标准化与计量.2003 No.1
    [3]李京,过程控制与计算机控制系统[M].北京;化学工业出版社,2006.
    [4]贾东耀,汪仁煌.工控网络结构的发展趋势[J].工业仪表与自动化装置,2002,(5);11-14.
    [5]王常力,罗安.分布式控制系统(DCS)设计与应用实例[M].北京;电子工业出版社,2004.
    [6]缪学勤.工业以太网技术最新进展[J].电气时代,2004,(2);24-27.
    [7]史久根,张培仁,陈真勇.CAN现场总线系统设计技术[M].北京;国防工业出版社,2004.
    [8]李阳铭.基于ARM的嵌入式网关研究[D].硕士学位论文.合肥工业大学,2006.
    [9]邬宽明.CAN总线原理和应用系统设计[M].北京航空航天大学出版社.1996.
    [10]Lee H H,Kim G S.Real time data communication using gateway for CAN and Profibus[A].8th Korea-Russia International Symposium on Science and Technology.IEEE Press,2004,6:219-223.
    [11]Hertel J W,LONWORKS in industrial[A].IEEE Symposium on Emerging Technologies and Factory Automation.IEEE Press,2001,10:385-388.
    [12]Feldman,Daniel.Power over ethernet:How high can you go?[J]Electronics World,2006,6:18-20.
    [13]Freeman M.Industrial ethernet challenges[J].Building Engineer,2004,79(7):12-13.
    [14]徐皑冬,王宏,杨志家.基于以太网的工控网络[J].信息与控制,2000,29(2);182-186.
    [15]冯冬芹,金建祥,褚健.工业以太网关键技术初探[J].信息与控制,2003,32(3);219-224.
    [16]杨波,徐成.嵌入式CAN-Ethernet网关的设计与实现[J].计算机应用,2005,25(2):273-275.
    [17]我国煤炭行业的现状.http://www.jrj.com.cn/NewsRead.
    [18]于景文等.现代化煤矿采煤新工艺,新技术与新标准实用全书[M].吉林科技出版社.2003.9.
    [19]陆阳,韩江洪,鲁照权.一种面向现场总线的时分同步MAC协议模型框 架[J].小型微型计算机系统.2001,22(6):739-743.
    [20]饶运涛,邹继军,郑永芸,现场总线CAN原理与应用技术[M].北京航空航天大学出版社.2003.
    [21]凌志浩.现场总线与工业以太网[M].机械工业出版社.2007.
    [22]DeVan W,Hicks S,Lawson Get al.Using A Control System Ethernet Network as a Field Bus[A].Proceedings of 2005 Particle Accelerator Conference.Piscataway:IEEE Press,2005,5.3961-3963.
    [23]李斌.工业现场嵌入式网关设计[D].硕士学位论文.陕西科技大学,2003.
    [24]Scharbarg J L,Boyer M,Fraboul C.CAN-Ethernet architectures for real-time applications[A].Emerging Technologies and Factory Automation.IEEE Press,2005,9:245-252.
    [25]Ivanov I E,Filipowa K W.Integrated scheduling of heterogeneous CAN and Ethernet-based hard real-time network[A].27th International Spring Seminar on Electronics Technology.IEEE Press,2004,5:481-485.
    [26]Wong William,32-bit microcontroller combines CAN and Ethernet interfaces [J].Electronic Design,2002,11:51.
    [27]黄天戌,余智欣,袁学文.一种新型的CAN现场总线与以太网互连方案的设计与研究[J].计算机工程与应用,2005,(4);125-127.
    [28]王廷尧,马克城.以太网技术基础讲座[J].光通信技术.2002,9.
    [29]周立功单片机.http://www.zlgmcu.com/home.asp.
    [30]Zhou Yongqin,Wang Xudong,Zhou Meilan.The Research and Realization for Passenger Car CAN Bus[J].IFOST,2006,10:244-247.
    [31]WRichard Stevens.TCP/IP详解卷1;协议(英文版)[M].机械工业出版社,2002.
    [32]Andrew S Tanenbaum,Computer Networks(Forth Edition)[M].Prentice Hall PTR,2002.
    [33]何立民.嵌入式系统的定义与发展历史[J].单片机与嵌入式系统应用,2004,(1);6-8.
    [34]邓龙军等.单片机在以太网卡通信中的应用.广东工业大学学报,2001.12.
    [35]田泽.嵌入式系统开发与应用[M].北京航空航天大学出版社,2005.
    [36]梁泰文,阳宪惠.CAN/Internet嵌入式网关的一种设计方案及实现[J].冶金自动化,2004,(2);5-10.
    [37]李楠,周洁敏,黄宁.CAN总线与以太网连接方法研究[J].工业控制计算机,2007,20(1):19-21.
    [38]吴明晖,徐睿,黄健.基于ARM的嵌入式系统开发与应用[M].人民邮电出版社,2004.
    [39]Philips Semiconductors.LPC2194 Datasheet.2004.
    [40]周立功.ARM嵌入式系统实验教程(三)-扩展实验[M].北京;北京航空航天大学出版社,2006.
    [41]宋延昭.嵌入式操作系统介绍及选型原则[J].工业控制计算机,2005,18(7);41-42.
    [42]μCOS-Ⅱ官方网站.http://www.ucos-Ⅱ-com.
    [43]邵贝贝.嵌入式实时操作系统μC/OS-Ⅱ[M].北京航空航天大学出版社.2003.
    [44]张继东,张卫东,许晓鸣.现场总线与以太网互联研究[J].计算机工程2001,5(8)49-52.
    [45]George M R,Wong W F,Windows CE for a reconfigurable system-on-a-chip processor[A].2004 IEEE International Conference on Field-Programmable Technology.Piscataway:IEEE Press,2004.201 - 207.
    [46]Yam Michael,Security and palm os 5.x[J].Dr.Dobb's Journal,2004,29(6):57-60.
    [47]Van Beneden Bart,Examining the VxWorks AE 1.1 RTOS[J].Dr.Dobb's Journal,2002,27(11):66-70.
    [48]杜根远,邱颖豫.基于隧道技术的IPv6迁移策略[J].中国有线电视,2004,(1):21-23.
    [49]周建胜,谷勇,刘文权.一种开放源代码的嵌入式操作系统-uCLinux[J].中国科技信息,2005,(19);82.
    [50]朱显新,黄涛,卢珞先.uC/OS和uClinux的比较[J].单片机与嵌入式系统应用,2004,(10):5-7.
    [51]美国ARM公司.使用ADS1.2进行嵌入式软件开发[J].电子设计应用,2003,(4):60-63.
    [52]王金刚,宫霄霖,苏淇.JTAG调试技术及其ARM仿真器应用[J].电子测量技术,2004,(4):24-25.
    [53]Realtek.RTL8019as Datasheet.2000.
    [54]DUNKELSA,Design and Implementation of the lwIP TCP/IP Stack [Z].Swedish Institute of ComputerScience.2001.
    [55]Data SheetLPC2100.PhilipsSemiconductors.2003.1
    [56]ARMTTDMIS Technical Reference manual.Philips Semiconductors.2002.12
    [57]ARM Limited.ARM Developer Suite Version 1.2 Developer Guide.2001.
    [58]Data SheetTJA1040.Philips Semiconductors.2004.1.
    [59]Data SheetTJA1020.Philips Semiconductors.2001.5.
    [60]高红玉,徐建城,曾成奇.基于ARM的CAN总线智能节点的设计[J].电 子技术应用,2005,(4);24-26.
    [61]Justin Menga,CCNP Practical Studies:Switching[M].Cisco Press.2004.
    [62]Griem T,Ayyagari A,Kim J H.RSVP over IPsec tunnel mode using RFC 3175[A].IEEE Military Communications Conference MILCOM Piscataway:IEEE Press,2005.3246 - 3250.
    [63]陈鑫林.现代通信中的排队论[M].电子工业出版社.1999.
    [64]车驾雄.以太网网络负载分析[J].计算机工程.2000,8(8):26-28.
    [65]钱敏平.随机过程引论[M].北京大学出版社.1990,10.
    [66]张福德.排队论及其程序设计[M].吉林大学出版社.1985,9.
    [67]Colitti L,Di Battista G,Patrignani M.Discovering IPv6-in-IPv4 tunnels in the Internet[A].IEEE Symposium Record on Network Operations and Management Symposium.Piscataway:IEEE Press,2004.613-626.
    [68]罗桂兰等.排队论对嵌入式系统网络性能的测试评估.沈阳师范大学学报(自然科学版),2005,23(8):54-56.
    [69]林涛等.嵌入式Internet服务器排队模型抽取问题的研究.小型微型计算机系统,2005.26(5):845-849.

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

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

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