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
本文链接:https://www.wllwen.com/kejilunwen/jisuanjikexuelunwen/2126469.html