基于嵌入式技術(shù)的CAN-Ethernet互聯(lián)網(wǎng)關(guān)的設(shè)計與實現(xiàn)
發(fā)布時間:2018-06-11 23:08
本文選題:嵌入式網(wǎng)關(guān) + CAN總線; 參考:《武漢理工大學》2013年碩士論文
【摘要】:隨著計算機技術(shù)、通信技術(shù)以及嵌入式技術(shù)的飛速發(fā)展,實現(xiàn)現(xiàn)場底層監(jiān)測設(shè)備與以太網(wǎng)(Ethernet)的無縫連接,完成管理信息網(wǎng)絡(luò)與現(xiàn)場測控網(wǎng)絡(luò)的信息共享,成為當今工業(yè)發(fā)展越來越迫切的需求。然而,目前的許多現(xiàn)場監(jiān)測設(shè)備都是基于如LonWorks、DeviceNe、CAN-Bus等通信接口來組成輕量級網(wǎng)絡(luò),而企業(yè)的上層管理網(wǎng)絡(luò)則是基于以太網(wǎng)和TCP/IP協(xié)議的管理信息網(wǎng)絡(luò),兩者無法直接通信。本論文就是在這一應用背景下,致力于解決CAN總線和以太網(wǎng)兩種異構(gòu)網(wǎng)絡(luò)之間的數(shù)據(jù)不能共享這一問題。 本文在深入地研究了CAN協(xié)議、TCP/IP協(xié)議以及LwIP協(xié)議棧的特點及實現(xiàn)原理的基礎(chǔ)上,以STM32F107VCT6微處理器為硬件平臺,μC/OS-Ⅱ為軟件平臺,開發(fā)了一種高效節(jié)能的嵌入式CAN-Ethernet互聯(lián)網(wǎng)關(guān),并允許在遠程控制室對現(xiàn)場設(shè)備進行訪問,實現(xiàn)對現(xiàn)場控制系統(tǒng)的遠程監(jiān)控與實時管理。 論文首先介紹了嵌入式網(wǎng)關(guān)系統(tǒng)以及CAN和以太網(wǎng)總線協(xié)議的基本知識;然后詳細討論了系統(tǒng)的硬件電路設(shè)計、CAN與以太網(wǎng)功能模塊電路的調(diào)試;接著概述了μC/OS-Ⅱ操作系統(tǒng)的特點及其內(nèi)核工作機制,闡述了μC/OS-Ⅱ在STM32F107VCT6上的移植以及LwIP協(xié)議棧在μC/OS-Ⅱ系統(tǒng)上的移植過程,并進行了系統(tǒng)驅(qū)動程序的設(shè)計以及串口通信的實現(xiàn),另外設(shè)計了上位機監(jiān)測軟件,實現(xiàn)以太網(wǎng)服務(wù)器對CAN現(xiàn)場總線系統(tǒng)的實時監(jiān)控;最后給出了針對該嵌入式網(wǎng)關(guān)系統(tǒng)的配置文件設(shè)計和實驗室環(huán)境下的調(diào)試結(jié)果。 將本文所設(shè)計的CAN-Ethernet協(xié)議轉(zhuǎn)換互聯(lián)網(wǎng)關(guān)應用到搭建的開發(fā)平臺中,通過串口通信模塊來采集數(shù)據(jù),同時,利用上位機測試軟件來顯示其通訊情況,物理仿真結(jié)果表明,該互聯(lián)網(wǎng)關(guān)性能基本滿足預定要求,能實現(xiàn)CAN總線和以太網(wǎng)兩種異構(gòu)網(wǎng)絡(luò)之間協(xié)議轉(zhuǎn)換的功能。
[Abstract]:With the rapid development of computer technology, communication technology and embedded technology, it realizes the seamless connection between the field bottom monitoring equipment and Ethernet Ethernet, and accomplishes the information sharing between the management information network and the field measurement and control network. It has become a more and more urgent demand for the development of industry today. However, many on-site monitoring devices are based on communication interfaces such as LonWorks DeviceNeine CAN-Bus to form a lightweight network, while the upper management network of enterprises is a management information network based on Ethernet and TCP / IP protocol, which can not communicate directly between them. This paper is in this application background, This paper focuses on solving the problem that data can not be shared between can bus and Ethernet. This paper studies the characteristics and implementation principle of can protocol TCP / IP protocol and LwIP protocol stack. Using STM32F107VCT6 microprocessor as hardware platform and 渭 C / OS- 鈪,
本文編號:2007056
本文鏈接:http://www.sikaile.net/kejilunwen/jisuanjikexuelunwen/2007056.html
最近更新
教材專著