基于CANopen-EtherNet/IP的协议转换模块研究
详细信息    本馆镜像全文|  推荐本文 |  |   获取CNKI官网全文
摘要
控制器局域网CAN定义了物理层和数据链路层,但没有在应用层定义报文标识符和数据字节的使用。CANopen是一种基于CAN总线的开放的、标准化的应用层协议,并在国内外的工业自动化领域中得到广泛应用。
     EtherNet/IP是工业以太网的缩写,是一种开放的、适用于工业环境的通信网络。它采用了以太网TCP/IP协议和工业以太网标准,在应用层则采用CIP协议进行实时I/O控制和点对点的信息交换。因其结合了CIP技术与以太网技术的优点,所以在工业自动化网络领域具有巨大的发展潜力。
     本文首先分析了CANopen协议规范,主要是DS301V402应用层和通信子协议。然后,对于CANopen协议栈CAN-Festival、 EtherNet/IP协议及其协议栈OpENer进行了分析。课题选用S3C2440A微处理器、MCP2510独立CAN控制器、DM9000E以太网MAC控制器为核心的硬件平台,并设计与实现了电路模块。系统软件平台为基于Linux2.6.30内核的嵌入式操作系统,采用交叉编译。编写基于S3C2440A微处理器和Linux内核的CAN驱动程序,协议栈的驱动程序接口,及支持CANopen协议主站基本功能的主程序,从而实现CAN-Festival协议栈到目标平台的移植,建立一个基于嵌入式Linux平台的CANopen主站。
     在OpENer协议栈实例的基础上建立一个基于嵌入式Linux平台的EtherNet/IP从站。然后通过建立两个命名管道实现Linux系统下同时运行的EtherNet/IP从站进程与CANopen主站进程之间的双向数据交换,从而实现CANopen网络与EtherNet/IP网络间的通信。最后,通过接入CANopen和EtherNet/IP网络的目标平台上的实验验证了该协议转换模块是可行与有效的。
Only the physical layer and the data link layer are defined in CAN field bus, but the usage of identifier and data in CAN message are not defined in application layer. CANopen is an open and standardized application layer protocol based on CAN, and it is widely used in industrial automation field both at home and abroad.
     EtherNet/IP, the abbreviation of industrial Ethernet, is a communication system which is open and suitable for use in industrial environments. It uses Ethernet with TCP/IP protocol and industrial Ethernet standard, and CIP protocol is used to accomplish real-time I/O control and point-to-point information exchange. By merging advantages of CIP and Ethernet technology, it has great development potential in the field of industrial automation network.
     CANopen protocol specification, especially DS301V402application layer and communication profile, is analyzed first in this paper. Then CAN-Festival, which is a protocol stack of CANopen, is analyzed. EtherNet/IP protocol and its protocol stack OpENer are analyzed too. The core of the hardware platform of the subject consists of S3C2440A microprocessor, MCP2510independent CAN controller and DM9000E Ethernet MAC controller. In addition, the circuit module is designed and implemented. The system software platform is an embedded operating system based on Linux2.6.30kernel and cross compiling is used. CAN driver based on S3C2440A microprocessor and Linux kernel, the driver interface of the protocol stack, and the main program supporting basic functions of a master defined in CANopen protocol are written. Then CAN-Festival protocol stack could be transplanted to the target platform and a CANopen master based on embedded Linux platform could be set up.
     An EtherNet/IP slave based on embedded Linux platform is set up on the basis of an example of OpENer protocol stack. Then two named pipes are built to achieve bi-directional data exchange between EtherNet/IP slave process and CANopen master process, which are run on Linux at the same time. By this way, communication between CANopen and EtherNet/IP network could be realized. Finally, experiments on the target platform in CANopen and EtherNet/IP network are implemented to verify the feasibility and validity of the protocol conversion module.
引文
[1]陈在平,王峰.基于CANopen协议从节点研究[J].制造业自动化,2010,32(02):27.[2]CAN in Automation.Application Layer and Communication Profile, CiA Draft Standard301Version4.02[S].2002.[3]ControlNet International and Open DeviceNet Vendor Association.EtherNet/IP Adaption of CIP Specification, Release1.0[S].2001.[4]徐智穹.一种开放的工业以太网EtherNet/IP[J]低压电器,2006,10:39-42.[5]邓卫,裴玮,齐智平.基于ARM技术的以太网与CAN现场总线协议转换网关的设计与实现[J].机电一体化,2007,04:28-33.[6]孔峰,张衡,宋雪桦等.基于CANopen协议的汽车控制网络初探[J].汽车工程,2007,29(07):594.[7]徐拮,闫士珍,宋威等.基于MC9S12DP512和uC/OS-II的CANopen主站开发[J].计算机工程与科学:2009,31(05):118.[8]徐喆,张卓,闫士珍.基于uC/OS-II的CANopen从节点的实现[J].计算机系统应用,2008,07:113-118.[9]Embedded Systems Academy.MicroCANopen v3.30Manual[Z].2007.[10]Janez Paternoster.CANopenNode Manual[Z].2006.[11]广州致远电子有限公司.嵌入式CANopen协议转换模块XGate-COP10[J]电子技术应用,2009,10:32-33.[12]北京博控自动化技术有限公司CANopen通讯技术V1.0[Z].2006.[13]罗克韦尔自动化有限公司EtherNet/IP网络在工业控制领域应用以太网[Z].2006.[14]广州致远电子有限公司.ZNE-100TL智能型嵌入式以太网串口转换模块用户手册V1.02[Z].2008.[15]上海泗博自动化技术有限公司.嵌入式EtherNet/IP模块EIP-341产品手册V1.0[Z].2009.[16]HMS工业网络有限公司Anybus X-gateway User Manual V1.13[Z].2011.[17]上海泗博自动化技术有限公司EtherNet IP/CANopen网关ENC-310产品手册V1.3[Z].2009.[18]杨水清,张剑,施云飞等.ARM嵌入式Linux系统开发技术详解[M].北京:电子工业出版社,2008.[19]Lolitech.CanFestival v3.0Manual[Z].2011.[20]Kurt Schweiger,Rene Smodic,Alois Zoitl,etc.OpENer Version1.0.2[Z].2010.[21]三星电子有限公司S3C2440A MICROCONTROLLER USER'S MANUAL[Z].2007.[22]陈明Linux基础与应用[M].北京:清华大学出版社,2009.[23]郑强Linux驱动开发入门与实战[M].北京:清华大学出版社,2011.[24]CAN in Automation.CANopen Manual[Z].2000.[25]任玮蒙,陶维青.基于CAN总线的高层协议CANopen[J]自动化技术与应用,2007,26(04):128-130.[26]饶运涛,邹继军,王进宏等.现场总线CAN原理与应用技术[M].北京:北京航空航天大学出版社,2007.[27]刘怡,王家乐CANopen从站协议的设计与实现[J].电子技术,2011,09:38-40.[28]Robert Bosch Corporation.CAN Specification Version2.0[S].1991.[29]薛吉,邱浩,奚培峰等.工业以太网EtherNet/IP介绍及其产品开发[J].低压电器,2009,5:32-35.[30]ControlNet International and Open DeviceNet Vendor Association.CIP Common Specification, Release1.0[S].2001.[31]刘健,薛吉.工业以太网协议EtherNet/IP性能分析[J].低压电器,2010,16:17-19.[32]吴爱国,李长滨.工业以太网协议EtherNet/IP[J]计算机应用,2003,23(11):9-11.[33]Alois Zoitl.Coding Rules for OpENer-Open Source EtherNet/IP Adapter Stack[Z].2009.[34]广州天嵌计算机科技有限公司.TQ2440开发板使用手册V2.3[Z].2010.[35]ALPHA SEMICONDUCTOR COMPANY.AS1117800mA Low Dropout Regulator SCSI-II Active Terminator[Z].1999.[36]Maxim Integrated Products.MAX811_DataSheet[Z].1998.[37]徐亮,阮江军,甘艳等.去耦电容在PCB板设计中的应用[J].电测与仪表.2002,39(4):5-8.[38]DAVICOM Semiconductor Inc.DM9000_DataSheet[Z].2002.[39]Pulse company.H1102_DataSheet[Z].2002.[40]Microchip Techonology Inc.MCP2510_DataSheet[Z].2004.[41]广州致远电子有限公司.CTM1050系列产品数据手册[Z].2009.[42]Atmel Corporation.AT90CAN128_DataSheet[Z].2007.[43]Integrated Device Techonology Inc.IDT7130SA/LA_DataSheet[Z].1996.[44]俞辉,李永,何旭莉等.嵌入式Linux程序设计案例与实验教程[M].北京:机械工业出版社,2009.[45]Robert Mecklenburg.GNU Make项目管理[M].南京:东南大学出版社,2006.[46]马晓煜,齐琳Linux2.6下Makefile文件的分析与研究[J].微计算机信息.2006,15:232-249.[47]Neil Matthew,Richard Stones.Linux程序设计(第3版)[M].北京:人民邮电出版社,2007.[48]李琳,李在光,魏新建Linux环境中管道通信技术的应用[J].计算机与信息技术.2008,09:86-94.[49]周超,董军军Linux进程间管道通信的研究[J].电脑开发与应用.2008,01:48-50.[50]Woodhead Industries.applicomIO2.3EtherNet/IP User Manual[Z].2005.

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

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

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