The Design of Car Body Network Based on CAN Bus
- Author
- WangWei
- Advisor
- QinGuiHe
- School
- Jilin University
- Major
- Applied Computer Technology
- Classification
- TP273 Automatic control,automatic control system
- Degree
- Master's thesis
- Year
- 2006
- Downloads
- 542
- Citations
- 11
Abstract
With the development of electronic technology, more and more electronicequipments are fixed into vehicles to make driving more comfortable. But thewiring harness which joins two different electronic equipments together alsoincreases amazingly at the same time. It leads to many hidden troubles, suchas harder to maintain and less reliability. Secondly, the communication modeof those equipments is point to point mode, which means messages betweentwo points can?ˉt be shared by other points and they have to be sent againwhenever another point needs them. Fortunately, we can solve all of theseproblems mentioned above easily by using CAN (Controller Area Network)technology into car body network.CAN is a serial communication protocol which was declared by Boschcompany. Compared with other kinds of field buses, CAN bus has low priceand good performance. It saves lots of wirings because all of the CAN nodesare linked to the same bus. One message on CAN bus needn?ˉt be sent severaltimes because it is transferred serially and so it is shared by all nodes.Messages of CAN have short frame, whose data field is composed of 8 bytesat most, as a result, every message is transmitted quickly on bus. Nodes in buscompete with each other for bus occuping privilege when they are going tosend message to others. CAN bus uses message coding instead of addresscoding, and its baud rate could reach 1Mbps. It also has advantages in errordetection and self recovery, which evidently ensure the reliabile datatransmission.researching and some of them have worked out products of CAN. We caninfer easily that CAN bus would have bright future in the next few years.Car body network is usually composed of many nodes, such as chairs,meter, lights or automatic windows. In this designment, there are 5 nodes: oneis the central meter, which is linked to many light switches;the other fournodes are fixed separately in the four corners of vehicle, which are linked tomany lights (such as hight beam, passing lamp, turn light, emergency light,etc.). The meter node is responsible for checking the changes of switches?ˉstate;while the other four are responsible for controlling the lights?ˉ states.When a driver turns on any light switch, the meter node will find out aswitch-state-change at once and it will send a message to CAN bus accordingto the switch and the state, then the other four will receive the message if theyneed and consequently control the corresponding light.Among all the elements used in node circuit, the main chips are:AT89C51, SJA1000 and 82C250. Their characters and functions are shortlydescribed in this paper. The circuit diagrams are also provided in detail.Besides the existing physical layer protocol data link layer protocol, theapplication layer protocol should be defined according to the special purposein this designment. Eight different message IDs are used because there areeight kinds of light should be controlled. Those IDs present the meaning ofmessages, and they also denote the static priority of messages. One byte datais used in every message frame to denote the specified operation type to bedone. When several nodes are sending messages to bus at the same time, theone whose message has high priority will get the access to use bus, and theothers have to wait until the bus is free again.Filter configuration is also necessary in application layer definition. If anode receives every message transferred on bus, its CPU will be very busy. Byconfiguring the ACR and AMR for every node, they could pick out themessage they need and give up useless messages and then alleviate the burdenof CPU.Aside from the hardware circuit and the protocol definition, the softwarealso plays a big part in this designment. The software is programmed inMCS-51 ASM language because ASM has high efficiency and fast runningspeed and could operate hardware directly. The whole program is divided intoseveral small parts according to their basic functions, so that the code is easierto be read and is much more robust.This designment testifies the feasibility of using CAN bus to car bodynetwork. The error disposal part could be added in the future work, and wewill put emphasis upon the research of communication between different busnetwork, such as LIN or MOST.
Table of contents
Chapter 1 Introduction 8-17 1.1 Significance of the project content
the 8-11 research background
1.1.1 8-9
1.1 .2 practical significance 9
1.1.3 This paper studies the content 9-11
1.2 CAN bus technology Introduction
1.2.1 CAN 11-17 hierarchy 11
1.2.2 bus values ?? 11-12
1.2.3 packet transmission 12-15
1.2.4 newspaper the text filtering 15
1.2.5 encoding 15
1.2.6 Arbitration 15-17
Chapter 2 component development platform 17-28
2.1 MCU: on AT89C51 the the 2.1.1 memory space
17-20 the 17-18 2.1.2 timer / counter
18 -19
2.1.3 interrupt system 19-20
2.2 CAN controller: of SJA1000 20-25
2.2.1 features 20 - 21
2.2.2 internal structure 21-22
2.2.3 system location to register 22-23
2.2.4 the PeliCAN 23-25 ??
2.3 CAN transceiver: 82C250 25-26
the the 2.4 emulation platform and tools 26-28
Chapter 3 hardware circuit design 28-39
3.1 overall structure design 28-29
the 3.2 node circuit design 29-33
3.3 each component pin is actually connected 33-37
3.4 nodes connected peripherals 37-39
Chapter 4, the application layer protocol defines the message 39-43
4.1 system defined 39-41
4.2 node mask setting 41-43
Chapter 5 software program designed 43-63
5.1 node program flowchart 43
5.2 variable symbols defined 43-49
5.3 CPU initialization 49-51
5.4 the CAN interface initialization Design 51 - 55
5.5 central node sending packets the 55-56
5.6 node receives packets process 56-58
5.7 the content of the message to determine the subsequent processing 58-60
5.8 timer interrupt flashing 60-63
Chapter 6 Summary and Outlook to References 63-64
64-66
summary 66-69
ABSTRACT 69-72
Acknowledgements 72-73
mentor Introduction 73
Author 73
Related dissertations
- Design of Embedded Data Acquisition and Processing System of MEMS-INS
- Design and Realization of CS-50Catalyst Production Control System Based on CAN Bus
- Design of DeviceNet-CANopen Integrated Slave Node
- The Research of Embeded Intelligent Household Based on ARM
- Design of Industrial Controller Based on EPA
- The Design of the Rectification Recovery System Based on the CAN Bus
- The Upgrading and Reconstruction of Tang Shan Vocational Technical College Campus Network
- The Design and Implementation of Building Equipment Management Information System
- The Effects and Mechanism of Ca2+/CaN/Cbl-b/Akt in the Oxygen-glucose Deprivation and Pharmacological Preconditioning
- The Design of Digitalized High-frequency Switching Power Supply Based on DSP
- Design and Implementation of High Frequency PFC On-board Charger
- Research on Fault Recorder System Based on STM32F4
- Design of Smart Terminal for New Energy Micro Grid of Island
- Research on the Technique of Parallel UPS and Network Control Inverter System Based on PQ Droop
- The Study on the Control System of the Distributed Electric Boiler
- The Design of Electric Vehicle Charging System and the Research of Its Intelligent Control Strategy
- Research and implementation of CAN and GPS/GPRS of the vehicle traveling data recorder based on
- Design of Vehicle Electrical and Electronic Systems Test Platform Based on Labview
- Research and Implementation of OSEK Network Management Mechanism in Automotive CAN Network
- Key Technology Design of Automotive Body Network