CAN Bus Analysis and Application Programming
- Author
- TangJinHai
- Advisor
- LiuYanWen
- School
- Inner Mongolia University
- Major
- Computer technology
- Classification
- TP336 Bus channel
- Degree
- Master's thesis
- Year
- 2013
- Downloads
- 11
- Citations
- 0
Abstract
In this paper, the advanced embedded technology and CAN bus technology combined with effective, the CAN bus protocol, hardware and drive are analyzed. The application part of CAN bus, through the ARM9extended CAN bus, and component CAN bus network, achieve multiple ARM9through the CAN bus communication, and gives the correct test and the a successful application example.In the paper, using UP-TECH S3C2410/P270DVP embedded development platform as the hardware platform, embedded Linux operating system as software platform, the C language programming to achieve CAN bus hardware initialization, sending and receiving data and other functions. The cross compiler to compile is using in the development.This thesis consists of six chapters:The first chapter introduces the research background. Mainly introduces embedded system and CAN bus current situation and development trend.The second chapter describes the hardware and software platform and development environment to build. Including experimental platform introduction, cross compile environment set up, PC Linux system environment and programming environment to build as well as the boot program, kernel and the root file system transplant etc.In the third chapter, CAN bus are analyzed in detail. Mainly includes the hardware analysis, protocol analysis, driving analysis and SPI interface analysis.The fourth chapter gave CAN bus application programming. Focuses on the program implementation and testing.The fifth chapter gave a the application of CAN bus.The sixth chapter summarizes the thesis and points out that the future research directions.
Table of contents
Summary 4-5
ABSTRACT 5-6
directory 6-8
chart catalog 8-9
Article Chapter Introduction 9-11
1.1 background 9
1.2 embedded operating system development status and trends at home and abroad 9-10
1.3 CAN Status bus technology development at home and abroad 10-11
Chapter II CAN bus analysis 11-23
2.1 CAN bus Introduction 11-12
2.2 CAN bus hardware analysis 12-15
2.2.1 MCP2510 introduced 12-14
2.2.2 TJA1050 introduced 14-15
2.3 SPI Interface analysis 15-18
2.3.2 SPI communication theory 16
2.3.3 SPI Interface commands introduced 16-18
2.4 CAN bus protocol analysis 18-20
2.4.1 CAN bus electrical characteristics 18
2.4.2 hierarchy CAN bus 18
2.4.3 CAN transmission and frame structure packets 18-20
2.4.4 error handling 20
2.5 CAN bus driver analysis 20-22
2.5. 1 driver Profile 20-21
2.5.2 CAN bus driver analysis 21-22
2.6 Summary 22-23
third chapter describes the development platform to build and environment 23-29
3.1 system development environment build 23
3.2 embedded Linux system development environment 23-25 ??
3.3 ARM9 development board established environmental 25-28
3.3.1 Bootloader transplant 25-26
3.3.2 Linux kernel porting 26-27
3.3.3 Linux file system migration 27-28
3.4 Summary 28-29
Chapter IV CAN bus node communications and test 29 -44
4.1 CAN bus node software 29-36
4.1.1 CAN node initialization achieve 29-31
4.1.2 sending Program achieve 31-33
4.1.3 receiving Program 33-36
4.2 CAN bus node communications test 36-42
4.2.1 single- node communication test 36-37
4.2.2 two -node communication test 37-39
4.2.3 CAN bus network communications test 39-42
4.2 .4 CAN bus network control test 42
4.3 Summary intelligent 42-44
Chapter V CAN bus network application examples of household 44-48 <br / > 5.1 Introduction intelligent home networking and 44-45
5.2 smart home design 45-47
5.3 Summary 47-48
Article Conclusion chapters 48-50
6.1 summarizes 48-49
6.2 Prospects 49-50
References 50-52
Thanks 52
Related dissertations
- Can Bus Analysis and Application Programming
- Research and Design of Smart Home System Based on Embedded Web Server and Zigbee
- The Design of the Operating Parameters’Monitoring System on the Maize Harvesting Machine’s Header
- A Study on the Singlechip of the Low Cost Computer Based on ARM9
- Research and Implement of Display Terminal for Loom Based on ARM9
- Design and Realization of a Safety System Based on ARM and Bluetooth
- The Design of Small Coal Mine Remote Monitoring System Based on ARM
- The Design and Implementation of Wireless Indoor Monitoring Alarm System Based on ARM9
- The Design and Realization of Extended System in Distributed Firealarm System Based on Microcontroller
- Smart Home Monitoring System Based on Ni Wireless Sensor Network
- The Design of Monitoring System for the Photovoltaic Plant Based on DSP
- Design and Application of the Distributed Monitoring System Based on Embedded Web
- Design of Intelligent Household Security and Alarm System Based on ARM9
- The Design of the Platform for Environmental Monitoring Based on ARM9
- The Design of Hybrid Electric Bus Data Acquisition and Test System
- Research and Implementation of Meteorological Monitoring System Based on ARM9
- Industrial Field Data Acquisition System Design Based on CAN Bus
- Design of the Hazard Source Monitoring System Based on CAN Bus
- The Design of Displacement Detection System Based on CPLD Grating Subdividing Technology
- Research on Data Acquisition System of Can Bus