Design and Implementation of Bus Communication Stack According to AUTOSAR Specifications
- Author
- ZhouHaiJuan
- Advisor
- WuChaoZuo , ZhaoMinDe
- School
- Zhejiang University
- Major
- Applied Computer Technology
- Classification
- TP273 Automatic control,automatic control system
- Degree
- Master's thesis
- Year
- 2008
- Downloads
- 447
- Citations
- 2
Abstract
Electronic control units (ECUs) are widely used in vehicle, which are interconnected by communication links to exchange various kinds of data. Therefore, the bus networking comes to be developed to meet the communication requirements in vehicles. It provides a unified data exchange channels between all kinds of complex electronic equipments, controllers and measuring instruments.The CAN bus and 1553B bus, which are two widely used buses in civilian and military automotive area, are implemented in the bus communication stack. After investigating AUTOSAR specifications, we implement a clear-interfaced and reliable bus communication stack in accordance with AUTOSAR software architecture. Thus our system meets the complex requirements of vehicle bus communication.The bus communication stack consists of three layers, which are communication driver layer, communication interface layer and transport protocol layer. The driver layer provides the hardware accessing and offers a hardware independent API to its upper layer. The communication interface layer locates between the low-level driver layer and the upper communication service layers (i.e. Transport Protocol, Protocol Data Unit Router). It represents the interface to the service of the driver layer for the upper communication layers and abstracts the location of controllers and ECU hardware layout. Lower to PDU Router, the transport protocol module segments and reassembles I-PDUs (Interaction Protocol Data Units) which can’t transfer in one CAN or 1553B message. The core functions in communication stack are data sending and receiving. Furthermore, it should fulfill functions like framing, time monitoring, flow control, acknowledgement, assignment between frame and bus node and so on.This thesis focuses on the design and implementation of the bus communication stack according with AUTOSAR specifications.
Table of contents
Abstract 3-4
Abstract 4-5
directory 5-8
the
diagram directory 8-9
table directory 9-10
Chapter 1 Introduction 10-17
1.1 Background 10-12
1.2 research status 12-14
1.2.1 bus technology development status 12-13
1.2.2 bus protocol Research 13-14
1.3 Research purpose 14-15
the
content and contribution of 1.4 thesis 15
1.5 paper structure 15-17
Chapter 2 bus communication protocol stack technology foundation 17-25
2.1 CAN bus and 1553B bus 17-20
2.1.1 CAN bus Introduction 17-18
2.1.2 1553B bus Introduction 18-19
2.1.3 CAN bus and 1553B bus compare 19-20
2.2 AUTOSAR architecture 20-22
2.3 AUTOSAR communication system 22-23
2.4 This chapter Summary 23-25
Chapter 3 bus communication protocol stack System Overview 25-31
3.1 bus architecture of the communication protocol stack 25-27
The
the 3.2 bus communication protocol stack features outlined 27-28
3.3 important concept 28-30
3.4 This chapter Summary 30-31
Design and Implementation of the
Chapter 4 CAN driver layer and the interface layer 31-54
4.1 CAN driver layer Overview 31-32
4.2 CAN driver layer design and realization 32-36
4.2.1 CAN driver / controller initialization 32
4.2.2 the CAN bus driver / controller state management 32-33
4.2.3 CAN L-PDU sent 33-34
4.2.4 CAN L-PDU receives 34-35
4.2.5 Data consistency 35-36
4.3 CAN Interface Layer Overview 36-37
4.4 CAN interface layer design and implementation 37-44
4.4.1 initialization 37-38
4.4.2 CAN interface layer data sent 38-41
4.4.3 CAN interface layer data receiver 41-43
4.4.4 Data integrity 43-44
4.5 CAN driver layer and the interface layer mode control 44-48
4.5.1 network operation mode 44-47
4.5.2 network mode conversion 47
4.5.3 multiple CAN controllers connected to the same network 47-48
4.6 CAN driver layer and the interface layer sending process example 48-50
4.7 CAN driver layer and the interface layer receiving process example 50-52
4.7.1 PDU data buffer location 50
4.7.2 receive data stream 50-52
4.8 This chapter Summary 52-54
Design and Implementation of Chapter 5 CAN transport protocol layer 54-69
5.1 CAN Transfer Protocol layer overview 54-57
5.1.1 CAN transport layer data sending and receiving process Introduction 55-57
5.2 initialization and close 57-58
5.3 CAN transport layer data transmission process 58-60
5.3.1 sends a request 58-59
5.3.2 send confirmation 59
5.3.3 CAN transport layer to send N-SDU processing 59-60
5.4 CAN transport layer data receiving process 60-62
5.4.1 receive alerts 60
5.4.2 CAN Transport Layer received the processing of the N-SDU 60-62
5.5 CAN transport layer data transmission process example 62-63
5.6 CAN transport layer receives data process example 63-64
5.7 CAN N-PDU format design 64-67
5.7.1 address information domain 65
5.7.2 protocol control information field design 65-67
5.7.3 N-PDU to the CAN L-PDU mapping 67
5.8 This chapter Summary 67-69
Chapter 6 1553B communication protocol stack designed . 69-87
6.1 1553B communication protocol stack Overview 69-71
6.2 1553B driver layer 71-75
6.2.1 Overview 71
6.2.2 1553B drivers and terminal initialization 71-72
6.2.3 1553B the drive layer of state management 72-73
6.2.4 1553B words send and receive 73-75
6.2.5 Error Handling 75
6.3 1553B interface layer 75-84
6.3.1 Overview 75-76
6.3.2 initialization 76
6.3.3 message transmission 76-82
6.3.4 1553B interface layer state management 82-83
6.3.5 Set / query 1553B terminal work mode 83-84
6.3.6 Error Handling 84
6.4 1553B transmission protocol module 84-85
6.5 1553B bus and CAN bus interconnect 85-86
6.6 Chapter Summary 86-87
Chapter 7 Summary and Outlook 87-89
7.1 work summarizes 87
7.2 Job Outlook 87-89
the
References 89-92
of resume and the research results achieved during the study period 92-93
Acknowledgements 93
Related dissertations
- Design and Implementation of the Vehicle Control Unit for Range-extended Vehicle
- The Design of Small Coal Mine Remote Monitoring System Based on ARM
- The Design and Realization of Extended System in Distributed Firealarm System Based on Microcontroller
- The Design of Monitoring System for the Photovoltaic Plant Based on DSP
- Design and Application of the Distributed Monitoring System Based on Embedded Web
- The Design of Hybrid Electric Bus Data Acquisition and Test System
- 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
- The Design and Implementation of Vehicle Data Acquisition and Communication Device Based on CAN Bus
- Design of Remote Monitoring System of Agricultural Field Information Based on GPRS Network
- Design and Implementation of Intelligent Wiring Hardness Detection System
- Research on Indoor Localization System for Intelligent Wheelchair
- Research on CAN Bus Communication and Application Experiments
- Based on Can Field-bus Technology and Web Service Home Intelligent Control System Design and Realization
- Research of Fieldbus Relay Basing on CAN Bus
- Research and Realization of Fieldbus Conversion and Monitoring System Based on ARM
- CAN Network Development of Commercial Vehicle
- Based on Smith Fuzzy-PID of Hot Drawing Roller Temperature Control System