基于FPGA的CAN、1553B與USB總線的協(xié)議轉(zhuǎn)換模塊的研究與實(shí)現(xiàn)
本文選題:CAN + 1553B。 參考:《吉林大學(xué)》2016年碩士論文
【摘要】:1553B總線,其全稱為MIL-STD-1553B總線。這是一種分布處理、集中控制的主從式總線,具有響應(yīng)實(shí)時(shí)、故障容錯(cuò)以及性能穩(wěn)定等特點(diǎn)。早期的機(jī)載設(shè)備相對(duì)獨(dú)立,這就造成設(shè)備連接線束復(fù)雜,進(jìn)而產(chǎn)生一系列的弊端。1553B總線的提出極大的改善了線束復(fù)雜的問(wèn)題,隨著總線的發(fā)展,如今已經(jīng)廣泛應(yīng)用于航天航空,空間探測(cè),火控系統(tǒng)以及各種對(duì)穩(wěn)定性要求極高的場(chǎng)景。CAN總線作為工業(yè)現(xiàn)場(chǎng)中優(yōu)秀總線的代表,自誕生以來(lái)就得到了快速的發(fā)展,伴隨著汽車行業(yè)井噴式的爆發(fā),CAN總線的應(yīng)用也隨之得到了普及。由于CAN總線具有穩(wěn)定性強(qiáng),數(shù)據(jù)傳輸率高等特點(diǎn),使其應(yīng)用場(chǎng)景不局限于汽車電子,并逐漸被推廣在工業(yè)現(xiàn)場(chǎng)、以及航天航空等各個(gè)領(lǐng)域。USB總線是轉(zhuǎn)為計(jì)算機(jī)提出的與其外設(shè)之間進(jìn)行通信的標(biāo)準(zhǔn)接口,這是一種傳輸速率極高(在最新的USB3.1標(biāo)準(zhǔn)中,速率達(dá)到10Gbps)的通用串行總線。USB總線接口具有體積小巧,支持熱插拔、即插即用、兼容性好、節(jié)省系統(tǒng)資源的特點(diǎn),如今在幾乎任意一臺(tái)計(jì)算機(jī)設(shè)備上均能看到USB接口的身影。伴隨著工業(yè)控制迅猛的步發(fā)展,設(shè)備間的數(shù)據(jù)交互與共享需求越來(lái)越強(qiáng)烈,但是設(shè)備間的接口往往不同,有的出于成本考慮,有的出于特定的應(yīng)用,而有的因?yàn)樵O(shè)備隨著時(shí)間的變遷而接口顯得“老舊”。由于網(wǎng)絡(luò)結(jié)構(gòu)的差異以及底層協(xié)議相對(duì)獨(dú)立,使得網(wǎng)絡(luò)之間的操作和信息交換難以進(jìn)行。同時(shí),底層網(wǎng)絡(luò)大多具有一定的封閉性,其擴(kuò)展能力有限,這種情況在一定程度上限制了工業(yè)總線的發(fā)展與應(yīng)用。工業(yè)總線多為服務(wù)于嵌入式系統(tǒng),系統(tǒng)經(jīng)常需要將數(shù)據(jù)上傳至PC用于監(jiān)控,保存數(shù)據(jù)或進(jìn)行實(shí)時(shí)交互,為解決以上問(wèn)題本文提出了一種基于FPGA(XC6SLX75)為主控制器,以ARM(STM32F105VCT6)為CAN總線控制器,以CY7C68013作為USB總線控制器,以BU61580作為1553B總線控制器的協(xié)議轉(zhuǎn)換設(shè)備。該協(xié)議轉(zhuǎn)換模塊分別將1553B總線以及CAN總線上的數(shù)據(jù)進(jìn)行采集,通過(guò)FPGA進(jìn)行數(shù)據(jù)包的解析與重封裝處理,最終匯總于USB接口上傳至計(jì)算機(jī),同時(shí)也可以將上位機(jī)通過(guò)USB接口發(fā)送的數(shù)據(jù)解析成相應(yīng)的CAN總線報(bào)文或1553B總線報(bào)文下發(fā)至相應(yīng)的總線上。完成了傳統(tǒng)USB-CAN以及USB-1553B的協(xié)議轉(zhuǎn)換功能,并且通過(guò)上位機(jī)軟件將數(shù)據(jù)的解析與重封裝,間接的實(shí)現(xiàn)了1553B-CAN總線的數(shù)據(jù)傳輸功能。可以通過(guò)計(jì)算機(jī)實(shí)現(xiàn)遠(yuǎn)程控制,遠(yuǎn)程監(jiān)控等功能,為進(jìn)一步接入互聯(lián)網(wǎng)提供了底層基礎(chǔ)。本文充分的對(duì)CAN總線MIL-STD-1553B總線以及USB總線進(jìn)行了深入的研究,系統(tǒng)通過(guò)匯總不同協(xié)議數(shù)據(jù)、緩存、增加指令碼等方式,實(shí)現(xiàn)了不同總線報(bào)文的解碼及重編碼的方式,使計(jì)算機(jī)通過(guò)USB接口可以方便的識(shí)別各種總線的報(bào)文,并可以下發(fā)相應(yīng)總線報(bào)文至總線?紤]1553B總線與CAN總線相對(duì)獨(dú)立的特點(diǎn),系統(tǒng)利用FPGA并行運(yùn)算的特點(diǎn),將1553B總線與CAN總線的收發(fā)分割成兩個(gè)相對(duì)獨(dú)立的模塊,互不干擾,正式基于此設(shè)計(jì),兩種總線數(shù)據(jù)在同時(shí)爆發(fā)大量數(shù)據(jù)的時(shí)候不會(huì)因?yàn)閿?shù)據(jù)阻塞而導(dǎo)致數(shù)據(jù)丟包,保證了采集系統(tǒng)在原理上的可行性。最后,針對(duì)設(shè)計(jì)提出的功能指標(biāo)進(jìn)行了充分的測(cè)試,不僅對(duì)FPGA的模塊進(jìn)行逐級(jí)的功能仿真,并且借用成熟的仿真設(shè)備搭建了測(cè)試環(huán)境,通過(guò)實(shí)際測(cè)試數(shù)據(jù)進(jìn)行了功能測(cè)試及壓力測(cè)試,驗(yàn)證了所設(shè)計(jì)模塊功能的正確性以及模塊性能的穩(wěn)定性。
[Abstract]:1553B bus, its full name is MIL-STD-1553B bus. This is a distributed processing, centralized control master slave bus, which has the characteristics of real-time response, fault tolerance and performance stability. The early airborne equipment is relatively independent, which causes the complex wiring harness of the equipment, and then produces a series of disadvantages to improve the.1553B bus greatly. With the development of the bus, with the development of the bus, it has been widely used in aerospace, space detection, fire control system and all kinds of scene.CAN bus with high stability. As the representative of the excellent bus in the industrial field, it has been developed rapidly since its birth. With the blowout of the automobile industry, the CAN bus The application of the CAN bus has also been popularized. Because of its strong stability and high data transmission rate, the application scene is not limited to automotive electronics, and it is gradually popularized in the industrial field, and the.USB bus in all fields such as aerospace and aviation is a standard interface to communication between the computer and its peripherals. The universal serial bus.USB bus interface with high transmission rate (in the latest USB3.1 standard, with a rate of 10Gbps) is small in volume, supports hot pluggable, plug and play, compatibility, and saving system resources. Now, the USB interface can be seen on almost any computer equipment. With the rapid industrial control, it is accompanied by rapid industrial control. The need for data interaction and sharing between devices is becoming more and more intense, but the interfaces between devices are often different, some out of cost consideration, some out of specific applications, and some are "old" because of the change of time. The operation and information exchange between them are difficult to carry out. At the same time, the underlying network is mostly closed and its extension ability is limited. This situation restricts the development and application of the industrial bus to a certain extent. The industrial bus is mostly in the embedded system. The system often needs to upload data to PC for monitoring, save data or enter. In order to solve the problem, a kind of FPGA (XC6SLX75) based controller based on ARM (STM32F105VCT6) as the CAN bus controller, CY7C68013 as the USB bus controller and BU61580 as the protocol conversion device of the 1553B bus controller are presented in this paper. The CO conversion module takes the 1553B bus and the number of CAN bus respectively. According to the collection, the data package is parsed and repackaged through FPGA. Finally, the USB interface is uploaded to the computer. At the same time, the data sent by the host computer through the USB interface can be parsed to the corresponding CAN bus message or the 1553B bus message to the corresponding bus. The protocol of the traditional USB-CAN and USB-1553B can be completed. The function is changed, and the data is analyzed and repackaged through the upper computer software. The data transmission function of the 1553B-CAN bus is realized indirectly. The function of remote control and remote monitoring can be realized through the computer. It provides the underlying foundation for the further access to the Internet. This paper is full of the CAN bus MIL-STD-1553B bus and the USB bus. In depth research, the system realizes the decoding and heavy coding of different bus messages by collecting different protocol data, caching, and adding instruction code, so that the computer can easily identify all kinds of bus messages through the USB interface, and can send the corresponding message to the bus. The 1553B bus is relative to the CAN bus. Independent characteristics, the system uses the characteristics of FPGA parallel operation, divides the 1553B bus and CAN bus into two relatively independent modules, and does not interfere with each other. It is formally based on this design. The two kinds of bus data will not cause data packet loss due to data blocking when a large number of data are broken out at the same time, and the acquisition system is guaranteed in principle. Finally, according to the full test of the functional indexes proposed in the design, not only the functional simulation of the FPGA module is not only performed step by step, but also the test environment is built by using the mature simulation equipment, the function test and pressure test are carried out through the actual test data, and the correctness and modularity of the function of the designed module are verified and verified. The stability of the energy.
【學(xué)位授予單位】:吉林大學(xué)
【學(xué)位級(jí)別】:碩士
【學(xué)位授予年份】:2016
【分類號(hào)】:TP273
【相似文獻(xiàn)】
相關(guān)期刊論文 前10條
1 郭毅鋒;黃麗敏;;現(xiàn)場(chǎng)總線技術(shù)中CAN總線技術(shù)的教學(xué)方法研究[J];科技信息;2010年22期
2 楊靖婧;;CAN總線技術(shù)特點(diǎn)及應(yīng)用趨勢(shì)[J];農(nóng)業(yè)機(jī)械;2011年03期
3 張尊揚(yáng);李學(xué)生;哈文森;;總線技術(shù)及CAN總線技術(shù)簡(jiǎn)介[J];電子世界;2013年12期
4 王健,肖學(xué)軍,秦霆鎬;CAN總線技術(shù)應(yīng)用[J];微計(jì)算機(jī)信息;2000年05期
5 蘆怡;CAN總線技術(shù)在蒸汽計(jì)量系統(tǒng)中的應(yīng)用[J];標(biāo)準(zhǔn)化報(bào)道;2001年06期
6 李雅梅;高劍;;CAN總線技術(shù)及設(shè)計(jì)應(yīng)用[J];火控雷達(dá)技術(shù);2006年04期
7 周新發(fā);尚智;劉群;;工業(yè)現(xiàn)場(chǎng)CAN總線技術(shù)在航天領(lǐng)域的應(yīng)用[J];可編程控制器與工廠自動(dòng)化;2006年01期
8 韓亞平;高紅賓;;CAN總線技術(shù)簡(jiǎn)介[J];科技信息(學(xué)術(shù)研究);2007年07期
9 姚層林;;CAN總線技術(shù)及其在汽車上的應(yīng)用[J];科技情報(bào)開發(fā)與經(jīng)濟(jì);2007年15期
10 王學(xué)峰;;CAN總線技術(shù)及應(yīng)用[J];赤峰學(xué)院學(xué)報(bào)(自然科學(xué)版);2008年03期
相關(guān)會(huì)議論文 前10條
1 楊溪林;;我國(guó)冶金自動(dòng)化裝備行業(yè)的現(xiàn)狀與存在的問(wèn)題——兼談公司總線技術(shù)的對(duì)策[A];中國(guó)儀器儀表學(xué)會(huì)2008學(xué)術(shù)年會(huì)第二屆智能檢測(cè)控制技術(shù)及儀表裝置發(fā)展研討會(huì)報(bào)告匯編[C];2008年
2 劉濤;趙洪剛;劉新泉;孫全江;;CAN總線技術(shù)在變電站預(yù)警系統(tǒng)中的應(yīng)用[A];煤礦自動(dòng)化與信息化——第21屆全國(guó)煤礦自動(dòng)化與信息化學(xué)術(shù)會(huì)議暨第3屆中國(guó)煤礦信息化與自動(dòng)化高層論壇論文集(上冊(cè))[C];2011年
3 張寅;孔祥東;艾超;;基于總線技術(shù)的雙線智能潤(rùn)滑系統(tǒng)研究[A];中國(guó)機(jī)械工程學(xué)會(huì)流體傳動(dòng)與控制分會(huì)第六屆全國(guó)流體傳動(dòng)與控制學(xué)術(shù)會(huì)議論文集[C];2010年
4 何紅;;LonWorks技術(shù)及其應(yīng)用[A];建筑電氣設(shè)計(jì)與研究——湖北省/武漢市建筑電氣專業(yè)委員會(huì)二○○九年年會(huì)論文集[C];2009年
5 孫毅;何紅;;LonWorks技術(shù)及其應(yīng)用[A];土木建筑教育改革理論與實(shí)踐[C];2008年
6 符策偉;;汽車CAN總線技術(shù)及其故障診斷[A];綠色制造與低碳經(jīng)濟(jì)——2010年海南省機(jī)械工程學(xué)會(huì)、海南省機(jī)械工業(yè)質(zhì)量管理協(xié)會(huì)“年會(huì)”暨機(jī)械工程科技學(xué)術(shù)報(bào)告會(huì)論文集[C];2010年
7 解小華;馬彥;陳虹;;總線技術(shù)在汽車車門系統(tǒng)中的應(yīng)用[A];第二十六屆中國(guó)控制會(huì)議論文集[C];2007年
8 徐冬平;王渝;劉春華;南順成;;CAN總線技術(shù)在水平測(cè)控裝置中的應(yīng)用[A];04'中國(guó)企業(yè)自動(dòng)化和信息化建設(shè)論壇暨中南六省區(qū)自動(dòng)化學(xué)會(huì)學(xué)術(shù)年會(huì)專輯[C];2004年
9 廖銘;;現(xiàn)場(chǎng)總線技術(shù)及其在啤酒生產(chǎn)中的應(yīng)用[A];中南六。▍^(qū))自動(dòng)化學(xué)會(huì)第24屆學(xué)術(shù)年會(huì)會(huì)議論文集[C];2006年
10 張帆;楊衛(wèi)華;李之昂;佟云峰;黃瑋;;現(xiàn)場(chǎng)總線技術(shù)及其在教學(xué)中的應(yīng)用簡(jiǎn)介[A];昆明儀器儀表學(xué)會(huì)2004年學(xué)術(shù)年會(huì)論文集[C];2004年
相關(guān)重要報(bào)紙文章 前10條
1 安徽 吳剛;硬件天書之總線的故事(上)[N];電腦報(bào);2003年
2 廣東 林鳴;從羊腸小道到高速公路[N];電腦報(bào);2004年
3 郭士毅;現(xiàn)場(chǎng)總線技術(shù)市場(chǎng)展望[N];通信產(chǎn)業(yè)報(bào);2000年
4 重慶 beky;初識(shí)硬件之總線篇(下)[N];電腦報(bào);2002年
5 安徽 眼鏡;下一代總線技術(shù),誰(shuí)主沉。縖N];電腦報(bào);2001年
6 本報(bào)記者 薛斐;總線!火線![N];計(jì)算機(jī)世界;2002年
7 記者 王笑梅;現(xiàn)場(chǎng)總線技術(shù)芯片填補(bǔ)國(guó)內(nèi)空白[N];遼寧日?qǐng)?bào);2007年
8 中國(guó)四聯(lián)儀器儀表集團(tuán)有限公司 陳學(xué)軍 田英明;現(xiàn)場(chǎng)總線技術(shù)在國(guó)內(nèi)的研發(fā)及應(yīng)用情況[N];機(jī)電商報(bào);2007年
9 本報(bào)記者 康翔;路,越走越寬[N];計(jì)算機(jī)世界;2005年
10 廣東 林鳴;從羊腸小道到高速公路[N];電腦報(bào);2004年
相關(guān)碩士學(xué)位論文 前10條
1 于東超;LXI總線1553B通信模塊研制[D];哈爾濱工業(yè)大學(xué);2015年
2 高俊;基于PCIe總線高速數(shù)據(jù)傳輸系統(tǒng)的設(shè)計(jì)與實(shí)現(xiàn)[D];中國(guó)科學(xué)技術(shù)大學(xué);2015年
3 王金宇;基于CAN總線的雷達(dá)控制系統(tǒng)的設(shè)計(jì)[D];大連海事大學(xué);2015年
4 為殿奎;基于FPGA的1553B總線接口卡的設(shè)計(jì)[D];哈爾濱理工大學(xué);2011年
5 楚天;基于FlexRay總線的微小衛(wèi)星姿態(tài)控制數(shù)據(jù)傳輸系統(tǒng)[D];西安電子科技大學(xué);2014年
6 翟慶;串聯(lián)混合動(dòng)力轎車CAN總線的拓?fù)浣Y(jié)構(gòu)及通訊矩陣研究[D];吉林大學(xué);2015年
7 孫毅超;考慮錯(cuò)誤的CAN總線消息延時(shí)分布情況研究[D];浙江大學(xué);2016年
8 張明珠;基于FPGA的CAN、1553B與USB總線的協(xié)議轉(zhuǎn)換模塊的研究與實(shí)現(xiàn)[D];吉林大學(xué);2016年
9 甄玉杰;基于CAN總線技術(shù)的水控系統(tǒng)[D];合肥工業(yè)大學(xué);2008年
10 鄭中華;基于車載總線的節(jié)點(diǎn)控制單元的設(shè)計(jì)與實(shí)現(xiàn)[D];吉林大學(xué);2012年
,本文編號(hào):1933576
本文鏈接:http://sikaile.net/kejilunwen/zidonghuakongzhilunwen/1933576.html