CAN總線分析及應用編程
發布時間:2018-07-16 13:01
【摘要】:本文將嵌入式系統應用技術和CAN總線的應用有效的結合在一起,詳細分析了CAN總線的硬件、協議和驅動,同時分析了SPI總線,在此基礎上對CAN總線進行應用編程,通過在ARM9上擴展CAN總線以及組建CAN總線網絡,實現了多臺ARM9之間通過CAN總線進行通信,并給出了正確測試和一個成功應用實例。 本文采用UP-TECH S3C2410/P270DVP嵌入式開發平臺作為硬件平臺、嵌入式Linux操作系統作為軟件平臺、C語言編程實現CAN總線的對硬件的初始化、發送和接收數據等各項功能。 全文共分五章: 第一章介紹研究背景。重點介紹了嵌入式系統和CAN總線的現狀和發展趨勢。 第二章介紹軟硬件平臺及開發環境的搭建。包括實驗平臺的介紹、交叉編譯環境的建立、PC機Linux系統環境的和編程環境的搭建以及引導程序、內核和根文件系統的移植等內容。 第三章對CAN總線進行詳細分析。主要包括SPI總線分析及CAN總線硬件分析、協議分析和驅動分析。 第四章對CAN總線進行應用編程。重點介紹了程序的實現和測試,并給出了本文的一個成功應用實例。 第五章對全文進行了總結,指出今后的工作和待研究的方向。
[Abstract]:In this paper, the embedded system application technology and can bus application are effectively combined, and the hardware, protocol and driver of can bus are analyzed in detail, and SPI bus is analyzed at the same time. On this basis, the can bus is applied and programmed. By extending the can bus on ARM9 and setting up the can bus network, the communication between several ARM9 through can bus is realized, and a correct test and a successful application example are given. In this paper, UP-TECH S3C2410 / P270DVP embedded development platform is used as the hardware platform, and embedded Linux operating system is used as the software platform to program the can bus to initialize the hardware, send and receive the data and so on. The thesis is divided into five chapters: the first chapter introduces the research background. The present situation and development trend of embedded system and can bus are introduced in detail. The second chapter introduces the hardware and software platform and the construction of the development environment. It includes the introduction of experimental platform, the establishment of cross-compiling environment, the construction of PC Linux system environment and programming environment, the boot program, the transplantation of kernel and root file system, and so on. In the third chapter, can bus is analyzed in detail. It mainly includes SPI bus analysis and can bus hardware analysis, protocol analysis and driver analysis. The fourth chapter carries on the application programming to the can bus. The implementation and test of the program are emphatically introduced, and a successful application example is given. The fifth chapter summarizes the full text, and points out the future work and research direction.
【學位授予單位】:內蒙古大學
【學位級別】:碩士
【學位授予年份】:2012
【分類號】:TP273
本文編號:2126469
[Abstract]:In this paper, the embedded system application technology and can bus application are effectively combined, and the hardware, protocol and driver of can bus are analyzed in detail, and SPI bus is analyzed at the same time. On this basis, the can bus is applied and programmed. By extending the can bus on ARM9 and setting up the can bus network, the communication between several ARM9 through can bus is realized, and a correct test and a successful application example are given. In this paper, UP-TECH S3C2410 / P270DVP embedded development platform is used as the hardware platform, and embedded Linux operating system is used as the software platform to program the can bus to initialize the hardware, send and receive the data and so on. The thesis is divided into five chapters: the first chapter introduces the research background. The present situation and development trend of embedded system and can bus are introduced in detail. The second chapter introduces the hardware and software platform and the construction of the development environment. It includes the introduction of experimental platform, the establishment of cross-compiling environment, the construction of PC Linux system environment and programming environment, the boot program, the transplantation of kernel and root file system, and so on. In the third chapter, can bus is analyzed in detail. It mainly includes SPI bus analysis and can bus hardware analysis, protocol analysis and driver analysis. The fourth chapter carries on the application programming to the can bus. The implementation and test of the program are emphatically introduced, and a successful application example is given. The fifth chapter summarizes the full text, and points out the future work and research direction.
【學位授予單位】:內蒙古大學
【學位級別】:碩士
【學位授予年份】:2012
【分類號】:TP273
【參考文獻】
相關期刊論文 前5條
1 周宇;徐寅林;李杰;;基于嵌入式Linux的CAN總線驅動設計與實現[J];電子工程師;2008年08期
2 黃捷峰;蔡啟仲;郭毅鋒;田小剛;;CAN總線在嵌入式Linux下驅動程序的實現[J];微計算機信息;2008年02期
3 陳文藝;;物聯網技術的現狀及其在工業信息化中的作用[J];西安郵電學院學報;2010年06期
4 史久根,劉蓬,張培仁;CAN數據傳送的實時性研究及其應用[J];信息與控制;2004年03期
5 宋清昆;吳立松;;CAN總線智能節點設計[J];自動化技術與應用;2008年07期
相關碩士學位論文 前6條
1 平青;基于物聯網技術的城市照明控制系統[D];蘇州大學;2010年
2 馮巍;基于嵌入式Linux下的CAN總線智能節點的設計[D];杭州電子科技大學;2011年
3 田立勇;基于CAN總線的新型智能節點的研究[D];遼寧工程技術大學;2006年
4 鞏彩麗;基于CAN總線的智能節點通信系統設計[D];內蒙古大學;2007年
5 吳立松;CAN總線智能節點設計[D];哈爾濱理工大學;2009年
6 張婷婷;基于ARM的智能瓦斯傳感器的研究[D];西安科技大學;2010年
,本文編號:2126469
本文鏈接:http://www.malleg.cn/kejilunwen/jisuanjikexuelunwen/2126469.html

