用户名: 密码: 验证码:
基于Ethernet/IP协议的数据通信接口研究
详细信息    本馆镜像全文|  推荐本文 |  |   获取CNKI官网全文
摘要
近年来,随着以太网技术在工业控制领域的广泛应用,Ethernet/IP作为解决网络中数据传输速率低,缺乏透明度,软件和维护费用高等问题的工业以太网新方案,得到越来越多的关注。Ethernet/IP是一个完全开放的技术,这种开放性使其很快的在世界范围内得以推广,国内外的许多大公司和研究机构看到这方面的商机,纷纷着手进行研究。
     本文就是在这种背景下,基于Ethernet/IP进行从节点的开发与研究,主要针对Ethernet/IP的通信接口部分展开相关的研究工作。通过对Ethernet/IP的分析,设计了基于Ethernet/IP的通信协议栈程序并搭建了硬件平台,最后通过测试实验证明了课题的正确性与可行性。
     本文首先分析了Ethernet/IP的对象模型、通信原理、传输方式以及数据封装格式,编写了EDS(Electronic Data Sheet ),然后设计了基于ARM的Linux操作系统硬件平台,包括:微处理器ARM9 S3C2440核心电路、存储电路(SDRAM、FLASH)、电源电路、系统复位电路、JTAG接口电路和以太网接口电路等,从现今常见的硬件平台和操作系统中选取各方面因素都比较优秀的设计方案,并绘制了protel电路原理图及PCB实验板,最终搭建了Ethernet/IP数据通信的硬件平台,并在其上嵌入了Linux操作系统(Linux 2.6.30版本),与PC机建立了交叉编译环境。宿主机是虚拟机VMware workstation+Red Hat Linux 9.0,目标机是自主搭建的Linux操作系统硬件平台。
     在上述基础上,本文还用C语言编写了Ethernet/IP的通信协议栈程序,并在Linux下通过编译器GCC把程序转换成Linux C语言程序,然后在调试器GDB中链接调试程序至无错误,同时编写了工程管理文件makefile,进而在集成开发环境Eclipse下生成了可执行文件,最终完成了软件程序的设计过程。
     最后对Ethernet/IP通信接口进行了测试:以woodhead公司的板卡PCU-ETHIO作为Ethernet/IP主站,通信接口硬件平台作为从站,完成了两者之间的显式报文以及I/O报文的通信传输过程,验证了该通信接口的正确性和可行性,为课题的进一步研究提供了正确的理论基础和实践经验。
In recent years, with Ethernet technology is widely used in industrial control field,Ethernet/IP has gotten more and more attention as a new plan for industrial Ethernet to solve the low data rate networks, lack of transparency, software and maintenance cost issues. Ethernet/IP is a completely open technology.And this feature make it to the world quickly, many large companies and research institutions have found business opportunities in this area and have started to study it.
     In this context, the slave station is developed and researched ,which is based on the Industrial Ethernet protocol and mainly research on communication interface of Ethernet / IP.
     In this paper the object model, communication theory, transmission and data encapsulation formats of the Ethernet/IP has been analyzed, and the EDS(Electronic Data Sheet) has been compiled.And then a Linux operating system hardware platform for the ARM has been designed, including: microprocessor ARM9 S3C2440 core circuit, memory circuit (SDRAM,FLASH), power circuit, system reset circuit, JTAG emulation circuit and Ethernet interface circuit. Select the good design from common hardwareplatform and operating system and the protel schematic and PCB test board have been drawn. Finally the Ethernet/IP data communications hardware platforms and embedded linux operating system (Linux 2.6.30 version) have been build and a cross-compiler environment to the PC has been established.
     Based on the above, the Ethernet/IP communications protocol stack program with C programming languages which converts the program to C programming languages by the GCC in Linux this paper also has been written. And then it links the debugger GDB to the error-free. At the same time, the project management documentation“makefile”has been compiled, and then the executable file has been build in the Eclipse integrated development environment, then the software design process was completed.
     Finally, the Ethernet/IP communication interface was need to be tested: the woodhead’s PCU-ETHIO was set as Ethernet/IP master station and communications interface hardware platform was set as slave station to complete explicit messages and I/O packet communications transmission between the two. And then the correctness and feasibility of the communication interface was verified.So it provides a correct theoretical basis and practical experience for the further study of the subject.
引文
[1]范富容.数据通信网络在消磁电源模块控制中的应用[D].上海交通大学硕士论文.2007.01.01
    [2]吴爱国、李长滨.工业以太网协议Ethernet/IP[J].计算机应用.2003.11.28.9-11
    [3]李爱平.基于ARM的嵌入式现场总线网关的设计与实现[D].武汉科技大学硕士论文.2006.04.28
    [4] CIP Common Specification[S].Release 1.0. 2001 by ControlNet International and Open DeviceNet Vendor association.
    [5]谢维盛.Ethernet/IP通信适配器的软件设计与实现[D].厦门大学硕士论文. 2008.05.01
    [6] An Overview of Ethernet/IP?——An Application Layer Protocol for Industrial Automation[J],By John Rinaldi,Real Time Automation,2003.
    [7]王霄峡.基于工业以太网的控制器研究与开发[D].浙江大学硕士论文. 2005.02.01
    [8]鲍雅萍、顾德英.基于Ethernet/IP的电网监控和管理信息系统[J].电工技术.2007.49
    [9]张万英.Ethernet/IP和CIP:可靠的制造自动化解决方案[J].电气时代.2008.26
    [10] ODVA& ControlNet International Ltd.,Common Industrial Protocol (CIPTM) Edition 2. 1[Z] The CIP Networks Library,January 2005,Volume 1.
    [11]冯冬芹、彭圣嘉、李杰、金建祥.工业以太网最新进展[J].自动化博览. 2003.12.30.102-105
    [12]徐智穹.一种开放的工业以太网Ethernet/IP [J].低压电气.2006.10.39-42.
    [13]高丽、林里、孔若英.Ethernet/IP在工业控制领域的应用研究[J].开发研究与设计技术.2006.10
    [14]杨亦荣、朱善安、明静. Ethernet/IP在工业实时控制中应用的研究[J].机电工程. 2002 39-42
    [15]魏庆福.现场总线技术的发展与工业以太网综述[J].工业控制计算机.2002.1-5
    [16] ODVA& ControlNet International Ltd.,DeviceNet Adaption of CIP Edition 1.1[Z] The CIP Networks Library,January 2005,Volume 3.
    [17]陈丽娜、李成铁、李秋明等.基于Ethernet/IP信息化控制系统展望[J].仪器仪表学报.2006.600-602
    [18] Ethernet/IP Adaptation of CIP Specification[S].Release 1.0. 2001,by ControlNet International and Open DeviceNet Vendor Association.
    [19]杜冠.基于ARM的嵌入式Linux系统移植的研究与实现[D].华中科技大学硕士论文.2006.05.01
    [20] Ethernet/IP Developer Recommendations White Paper[S].Release 1.00. 2001,by ControlNet International,and Open DeviceNet Vendor Association,and Industrial Ethernet Association (IEA).
    [21]曹章.基于高速USB OTG的嵌入式文件系统设计[D].哈尔滨工程大学硕士论文.2009.03.01
    [22]杜春雷.ARM体系结构与编程[M].北京:清华大学出版社.2003.127-132
    [23]徐英慧、马忠梅、王磊、王琳.ARM9嵌入式操作系统设计——基于S3C2410与Linux[M].北京航空航天出版社.2007.9.169-171
    [24]怯肇乾.嵌入式系统硬件体系设计[M].北京:北京航空航天大学出版社.2007.54-58
    [25]陈颐.ARM9嵌入式技术及嵌入式Linux高级实践教程[M].北京:北京航天航空大学出版社.2005
    [26]刘鲁新、权进国、林孝康.ARM9处理器与ARM7处理器比较[J].电子技术应用.2004.13-15
    [27] Schiffior V . The CIP family of Fieldbus Protocols and its newest Member?Ethernet/IP. Emerging Technologies and Factory Automation[C]. Proceedings. 2001 8th IEEE International Conference on.15-18 Oct. 2001, vol.1. 377 -384.
    [28]陆超.工业现场总线与以太网接口技术和通讯协议的研究[D].江南大学.2006
    [29]张飞舟、邓旭明、王豪.嵌入式工业以太网接口的开发与应用[J].计算机工程.2003.154-156
    [30]吕昌泰、罗永刚.嵌入式以太网接口的研究与设计[J].微计算机信息.2006.68-70
    [31]胡宾鑫、方方.一种嵌入式以太网接口的设计与实现[J].汕头大学学报(自然科学版).2003.(02)
    [32]基于VxWorks的S3C2440开发板上DM9000网络芯片驱动开发[D].西安电子科技大学
    [33]郭建磊.基于S3C2440和Linux的嵌入式网络驱动程序开发[D].青岛大学硕士论文. 2009.04.10
    [34]索炜.基于S3C2440Linux的无线射频模块的驱动程序设计[D].北京邮电大学硕士论文.2008.05.01
    [35] Karim Yaghmour.构建嵌入式LINUX系统[M].北京:中国电力出版社,2004.255-260.
    [36]吴红兵.基于S3C2440平台的Bootloader移植分析[J].科技信息.2008:29.58-59
    [37]于云松、由德凯、孙其芳.基于S3C2440的Bootloader的设计与实现[J].甘肃科技2008.8.
    [38]何臻祥、陈波.基于三星S3C2440Boot Loader的研究[J].软件开发与应用.2008.92-94
    [39]许伦辉、齐宝岭、黄艳国.U_Boot源码分析及在S3C2440的移植过程[J].科技广场2009.7
    [40]师磊.U_Boot在S3C2440上的分析与移植[J].计算机系统应用.2010.204-207
    [41]张徽、张华春.U_Boot在S3C2440上的移植方法[J].电子器件.2007.8.1424-1426
    [42]曲振华、梁风梅.基于S3C2440的U_Boot开发与设计[J].科技情报开发与经济.2009.3
    [43]李军、张华春.U-Boot及Linux2.6在S3C2440A平台上的移植方法[J].电子器件.2008
    [44]李亚锋、欧文盛.ARM嵌入式Linux系统开发从入门到精通[M].北京:清华大学出版社.2007
    [45]魏永明、耿丘、钟书毅.Linux设备驱动程序[M].北京:中国电力出版社.2006.304-317
    [46]陈卫民、谢楠.基于ARM的工业以太网智能网关研制[J].ARM开发与应用. 2008
    [47]俞辉、李永、何旭莉.嵌入式Linux程序设计案例与实验教程[D].机械工业出版社.2009.3
    [48]陈维刚、边宁宁、费敏锐.基于CIP协议的Ethernet/IP工业以太网节点设计[J].测控技术. 2004
    [49]张曦煌、柴志雷. Linux中TCP/IP协议实现及嵌入式应用[M].北京航空航天大学出版社.2008
    [50]顾德英、何风行.Linux下Ethernet/IP协议的实现[J].仪器仪表学报. 2005年8月.441-444
    [51]许信顺、贾智平.嵌入式linux应用编程[M].机械工业出版社.2007.1:83-94.
    [52]孙天泽、袁文菊.嵌入式设计及linux驱动开发指南[M].电子工业出版社.2007.1.111-120
    [53]韦东山.嵌入式Linux应用开发完全手册[M].北京:人民邮电出版社.2008.45-87
    [54]曹庆年、赵博、孟开元.基于ARM9的嵌入式Linux网络通信系统设计与实现[J].西北大学学报(自然科学版).2009.02.47-50
    [55]丁继东.基于ARM处理器的串行通信与以太网协议的研究与应用[D].华东师范大学. 2005
    [56]周靖吕.基于ARM9的嵌入式Linux的嵌入式开发平台研究与设计[D].电子科技大学.2005
    [57]邹思轶.嵌入式Linux设计与应用[M].北京:北京清华大学出版社.2002.231-239
    [58]杨文志.Linux实用大全[M].北京:清华大学出版社.2009.301-319
    [59] Direct-Link? PCU-ETHIO——Best choice for controlling I/O over Ethernet[Z]. Woodhead Industries, Inc. ? Woodhead L.P 2005

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

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

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