Development and Design for a Test Device of Automotive CAN-bus Instrument
- Author
- TangXiangShuo
- Advisor
- WangDengFeng
- School
- Jilin University
- Major
- Vehicle Engineering
- Classification
- U467.4 Parameters of the instruments and technology
- Degree
- Master's thesis
- Year
- 2009
- Downloads
- 451
- Citations
- 1
Abstract
With the development of the Automotive Electronics, the traditional communication such as“point to point”is getting more and more limited. Under this circumstance, the technology of Automotive Network has been created, of which the CAN-Bus is the most popular in the application. This paper is written for the automotive instrument with the CAN-bus function, to design a device to test its performance.Firstly,this paper showed the development of automotive instruments, and then followed by their corresponding test devices. We also gave the CAN-bus Protocol in detail.We gave basic principle of the design for this instrument. The writer proposed that it could be considered as“an advanced signal generator”which could generate test signal which is equal to it in an Auto. After received test signal, automotive instrument would also show the relative“information”as it in a car, and so we finished the process of test. Similarly, a device for testing a CAN-bus instrument is just a“signal generator”which could generate the CAN-bus signal.The model of the test instrument shows that it is composed of two main parts: hardware system and software system. The software system is just application software running in the PC and the hardware is only a circuit board based on a single chip. Through the Serial Communication, we could connect them, which realized the controlling the hardware by the application software which is operated by a man.The part of hardware system began with the introduction of single chip. We selected the MC9S12 Family MCU of FreeScale Company: MC9S12DJ64 MCU. In the hardware system , there are two main parts: design for a CAN-bus node and the Serial Communication Interface.For any CAN-bus node, at first, it should process the data according to the CAN-bus Protocol by a CAN-bus controller, and then convert it into the physical CAN-bus Differential signal through a CAN-bus transceiver. For the msCAN module has already been embedded in the MCU, we could only design a CAN-bus transceiver circuit to fulfill the creation of a CAN-bus node. Here we chose TJA1050transeicer of Philips Company.Although Serial Communication Interface has already been embedded in the MCU, it followed a standard in which 5V means the logic”1”and 0V logic”0”. While Serial Communication Interface of PC, COM could not be compatible to the hardware system. In this reason, we should make use of another chip to carry it out. Finally we chose the chip of MAX232.After finishing the circuit board, we need burn the program in it. Because the hardware system would communicate with the PC by the Serial Communication, we must make some specific communication rules between them in order that they are able to“understand”each other when the communication is being. Every single step of test began in the PC, and the receiver must transmit a feedback command to make sure the process of communication safer.The induction of the program burnt into the hardware system is followed by this order: 1. Describe the function of every subprogram. 2. Show its flow chart. 3.Explain corresponding Register in detail. According to the hardware system, the burning program is also composed of two main subprograms: CAN-bus transmission sub function and SCI trans-receive sub function.The application software based on the PC was programmed by VB language. First, the writer showed the data formation in the software programming including Serial Communication part and internal storage data formation part. Later the paper told the reader how to realize the Serial Communication in the VB by using its controller MSComm. At last, it guided the reader to operate the software and gave the skeleton the programming concisely.Finally we carried out the full test process to test its performance. Fortunately, the device could do a good job when we input the information in the application software and it generated the right CAN-bus signal, by which the CAN-bus instrument could give the corresponding display.
Table of contents
Summary 4-7
Chapter 1 Introduction 7-10
1.1 Introduction 7
1.2 automotive CAN bus instrument 7-8
1.3 CAN bus instrument detection device 8-9
1.4 thesis research 9-10
Chapter 2 CAN bus communication protocol basis 10-19
2.1 CAN bus Profile 10
2.2 CAN bus is composed of 10-12
2.3 CAN bus technical characteristics 12-13
2.4 CAN bus data transfer 13-17
2.5 the CAN bus timing 17-18
2.6 Summary 18-19
Chapter 3 of the CAN bus digital instrumentation device hardware design 19-30
3.1 detection device composed of 19-20
3.2 microprocessors is introduced 20-21
3.3 msCAN module 21-24
3.4 CAN bus node structures 24-26
3.5 serial communication interface SCI module 26-27
3.6 serial interface circuit design 27-29
3.7 Summary 29-30
Chapter 4 CAN instrumentation device hardware system programming 30-46
4.1 software and hardware communication protocols 30-32
of 4.2 hardware system msCAN the module is programmed 32-39
4.2.1 initialization function 33-36
4.2.2 msCAN data sent Functions 36-39
4.3 SCI serial port module of the program 39-44
4.3.1 SCI system initialization subroutines 39-41
4.3.2 SCI's send Functions 41-43
4.3.3 Functions of the receiver of the SCI system 43-44
4.4 hardware system main 44-45
4.5 Summary 45-46
CAN instrument detection device,
Chapter 5, the PC system software development 46-58
5.1 Visual Basic software programming 46-47
5.2 PC software system data format 47-50
5.2.1 PC machine with single-chip communication protocol 47-48
5.2.2 PC inside the data 48-50
5.3 Visual Basic serial communication implementation 50-56
characters and bytes in 5.3.1 serial communication 50-51
5.3.2 VB MSComm control 51-53
5.3.3 serial communication realization 53-56
5.4 application software, interface design and operation 56-57
5.5 Summary 57-58
Chapter 6 CAN instrument detection device test validation 58-65
6.1 Overview 58-60
6.2 Experimental test results and analysis 60-64
6.3 Summary 64-65
Chapter 7 summary and outlook 65-66
References 66-68
thank 68-69
Summary 69-71
Abstract 71-73
Related dissertations
- Study on Control System of Automobile Electric Door Lock on the Basis of the CAN Bus Technology
- Design and Development of Automotive CAN-BUS Dashboard
- Development of Automobile Intelligent Instrument Based on CAN Bus
- Model Selection and Design of the Value Added Tax of China’s Financial Industry
- Research on the Responsibility Cost Management Reports Systems
- Marketing Program Design on Changbaishan International Hotspring Hotel
- SG New Energy Enterprise Quality Management Model Research
- The Research of the Redesign of Performance Appraisal System for XY Company
- Improvement on Compensation System in Gaoke Company
- TDY Company Compensation System Design
- The Research of Salary Incentive Model of the Enterprise Z Based on Lao-tzu’s Taoism
- SY Corporation Agent Assessment System Design Research
- Study on AD Trading Company Internal Control System
- The transformation and upgrading of enterprises in the human resources allocation of -YT twelve. Analysis of five human resource planning
- C Bank Employee Incentive System Designed Research
- Research on performance management system of RFSY with KPI as the core
- Payment System Design of F Financial and Consulting Company
- Research and analysis of the human resources information administrator of 4C company.
- The Research on Performance Management Optimization Chenzhou Tiantai Breaking Leaf Tobacco Co.,LID.
- Designment of the Shenyang Lake, Electrical Parts Co.Ltd Salary System