基于ARM7的嵌入式系統(tǒng)CAN總線和以太網(wǎng)通信研究與實現(xiàn)
發(fā)布時間:2018-07-11 18:39
本文選題:ARM + CAN總線 ; 參考:《安徽大學》2012年碩士論文
【摘要】:現(xiàn)場總線技術使得工業(yè)設備儀器不再是獨立的信息孤島,通過總線技術,他們可以彼此之間共享軟硬件,這是現(xiàn)場設備網(wǎng)絡化的重大突破,但是現(xiàn)場總線未能實現(xiàn)跨地域的控制網(wǎng)絡。隨著計算機、控制、通訊、網(wǎng)絡等信息技術的發(fā)展,為實現(xiàn)工業(yè)企業(yè)的綜合化管理,需要建立包含從工業(yè)現(xiàn)場設備層到企業(yè)控制層、管理層的各個層次的網(wǎng)絡平臺。以太網(wǎng)以其能便捷的訪問遠程系統(tǒng)、共享/訪問多數(shù)據(jù)庫等優(yōu)勢,許多現(xiàn)場總線系統(tǒng)最終都連接到以太網(wǎng),做到共享資源,高效地完成復雜的控制任務。不僅保證橫向設備間的相互通訊,同時為數(shù)據(jù)信息的縱向傳遞提供通道。工業(yè)設備接上Internet使得遠程監(jiān)控、協(xié)同工作的距離和范圍更廣更遠。 本文首先研究分析了CAN總線網(wǎng)絡協(xié)議和以太網(wǎng)通信協(xié)議技術的特點,利用高性能嵌入式ARM7處理器LPC2400為核心的硬件開發(fā)平臺實現(xiàn)了CAN總線網(wǎng)絡的數(shù)據(jù)傳輸和TCP通信設計與實現(xiàn),并在綜上所述的分析基礎上進一步實現(xiàn)了CAN總線協(xié)議數(shù)據(jù)與以太網(wǎng)協(xié)議數(shù)據(jù)之間的互相轉(zhuǎn)換,使CAN總線網(wǎng)絡和以太網(wǎng)網(wǎng)絡能夠?qū)崿F(xiàn)不同協(xié)議的數(shù)據(jù)的通信,即相互之間的協(xié)議轉(zhuǎn)換。具體如下所述: 1.CAN總線網(wǎng)絡的數(shù)據(jù)傳輸 詳細介紹了ARM7處理器LPC2400的CAN控制器的通信系統(tǒng)的設計方案。介紹了CAN控制器的初始化和數(shù)據(jù)的發(fā)送過程。CAN總線網(wǎng)絡上由CAN控制器所發(fā)出的數(shù)據(jù),采用了PCI-9820非智能2通道CAN接口卡來檢測CAN總線上的數(shù)據(jù)。 2.以太網(wǎng)的TCP通信的設計與實現(xiàn) 此部分主要需要完成的是基于ARM內(nèi)核的微處理器以太網(wǎng)的TCP通信。在LPC2400ARM成功的移植了μC/OS-Ⅱ嵌入式操作系統(tǒng)和實現(xiàn)嵌入式TCP/IP協(xié)議棧--ZLG/IP軟件包。在以上基礎上實現(xiàn)基于TCP協(xié)議的服務器應用程序。 3.CAN總線協(xié)議與以太網(wǎng)協(xié)議的相互轉(zhuǎn)換 在對CAN總線協(xié)議和TCP/IP協(xié)議棧進行深入分析研究的基礎上,設計了一種不同網(wǎng)絡之間的互連網(wǎng)關,基于ARM7的CAN總線網(wǎng)絡與以太網(wǎng)網(wǎng)絡相互通信網(wǎng)關,即CAN總線協(xié)議與以太網(wǎng)網(wǎng)絡協(xié)議的相互轉(zhuǎn)換。并在最后通過調(diào)試和測試驗證了本設計的可行性和正確性。
[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
本文鏈接:http://sikaile.net/kejilunwen/jisuanjikexuelunwen/2116254.html
最近更新
教材專著