基于ARM7的嵌入式系统CAN总线和以太网通信研究与实现
发布时间:2018-07-11 18:39
本文选题:ARM + CAN总线 ; 参考:《安徽大学》2012年硕士论文
【摘要】:现场总线技术使得工业设备仪器不再是独立的信息孤岛,通过总线技术,他们可以彼此之间共享软硬件,这是现场设备网络化的重大突破,但是现场总线未能实现跨地域的控制网络。随着计算机、控制、通讯、网络等信息技术的发展,为实现工业企业的综合化管理,需要建立包含从工业现场设备层到企业控制层、管理层的各个层次的网络平台。以太网以其能便捷的访问远程系统、共享/访问多数据库等优势,许多现场总线系统最终都连接到以太网,做到共享资源,高效地完成复杂的控制任务。不仅保证横向设备间的相互通讯,同时为数据信息的纵向传递提供通道。工业设备接上Internet使得远程监控、协同工作的距离和范围更广更远。 本文首先研究分析了CAN总线网络协议和以太网通信协议技术的特点,利用高性能嵌入式ARM7处理器LPC2400为核心的硬件开发平台实现了CAN总线网络的数据传输和TCP通信设计与实现,并在综上所述的分析基础上进一步实现了CAN总线协议数据与以太网协议数据之间的互相转换,使CAN总线网络和以太网网络能够实现不同协议的数据的通信,即相互之间的协议转换。具体如下所述: 1.CAN总线网络的数据传输 详细介绍了ARM7处理器LPC2400的CAN控制器的通信系统的设计方案。介绍了CAN控制器的初始化和数据的发送过程。CAN总线网络上由CAN控制器所发出的数据,采用了PCI-9820非智能2通道CAN接口卡来检测CAN总线上的数据。 2.以太网的TCP通信的设计与实现 此部分主要需要完成的是基于ARM内核的微处理器以太网的TCP通信。在LPC2400ARM成功的移植了μC/OS-Ⅱ嵌入式操作系统和实现嵌入式TCP/IP协议栈--ZLG/IP软件包。在以上基础上实现基于TCP协议的服务器应用程序。 3.CAN总线协议与以太网协议的相互转换 在对CAN总线协议和TCP/IP协议栈进行深入分析研究的基础上,设计了一种不同网络之间的互连网关,基于ARM7的CAN总线网络与以太网网络相互通信网关,即CAN总线协议与以太网网络协议的相互转换。并在最后通过调试和测试验证了本设计的可行性和正确性。
[Abstract]:Field bus technology makes industrial equipment instruments no longer an independent information island. Through bus technology, they can share software and hardware with each other. This is a major breakthrough in the networking of field equipment. But the field bus can not realize the cross-regional control network. With the development of information technology, such as computer, control, communication, network and so on, in order to realize the integrated management of industrial enterprises, it is necessary to establish a network platform which includes all levels from industrial field equipment layer to enterprise control layer and management level. Ethernet has the advantages of convenient access to remote system, sharing / accessing multi-database, and so on. Many fieldbus systems are connected to Ethernet eventually, so that they can share resources and accomplish complex control tasks efficiently. It not only guarantees the communication between horizontal devices, but also provides the channel for the longitudinal transmission of data information. Industrial equipment connected to the Internet makes remote monitoring, the distance and scope of collaborative work wider and farther. Firstly, the characteristics of can bus network protocol and Ethernet communication protocol are studied and analyzed in this paper. The design and implementation of can bus network data transmission and TCP communication are realized based on the hardware development platform of high performance embedded ARM7 processor LPC2400. On the basis of the above analysis, the can bus protocol data and the Ethernet protocol data are further converted, so that the can bus network and the Ethernet network can realize the data communication of different protocols. That is, the protocol conversion between each other. The details are as follows: 1. The design of can controller communication system of ARM7 processor LPC2400 is introduced in detail. This paper introduces the initialization of can controller and the process of transmitting data. The data sent out by can controller on can bus network is introduced. PCI-9820 non-intelligent 2-channel can interface card is used to detect the data on can bus. 2. The design and implementation of TCP communication based on arm core is the main part of TCP communication of Ethernet based on arm kernel. We successfully transplanted 渭 C / OS- 鈪,
本文编号:2116254
本文链接:https://www.wllwen.com/kejilunwen/jisuanjikexuelunwen/2116254.html