Design and Implementation of Data Link Layer and Transport Layer in Automotive CAN Network

Author
LiZuoZuo
Advisor
ZuoHua
School
University of Electronic Science and Technology
Major
Computer Software and Theory
Classification
TP273 Automatic control,automatic control system
Degree
Master's thesis
Year
2013
Downloads
24
Citations
0

Request the full text

Abstract

Electronic technology improves the vehicle dynamic, safety and comport whichprompts the transformation of vehicle products from mechanization to mechatronics andintelligent. The car network has become an important part in the automotive electronics,as a mass of ECUs deployed in car. Bus technology supports data exchange effectivelybetween ECUs as compared to traditional hard-wired technology which faces hugechallenges at present. CAN bus is widely applied to chassis control system, driverassistance system and power train.The urgent requirement for the automotive electronic embedded software isproposed by networked communication. The current automotive electronic softwarewhich is developed with private solutions can’t cope with the increasingly complexfunctional requirements due to poor portability and maintainability. AUTOSAR is henceproposed to provide a feature-driven development approach and standardized solutionfor architecture integration, aiming to improve software reusability and reducedevelopment cost.After investigating CAN network architecture of AUTOSAR communicationspecifications, this thesis designs and implements layered and function-clippingcommunication software based on CAN bus protocol. Bottom-up, the driver performsthe hardware access and offers hardware independent API to the upper layer. The CANinterface provides a unique interface to access different CAN hardware, managehardware state and guarantee the L_PDU transmission services depending on bufferingmechanism. CAN transport layer provides services for segmentation of data in transmitdirection and reassembling of data in receive direction. At the same time, conformancetest system used for validating the production is developed according to the presentresearch results of test domain in communication system.The main work of this thesis can be summarized in the following aspects:The AUTOSAR standard communication mechanism is analyzed, and thevehicle CAN network data linklayer and transport layer in accordance with thelayered AUTOSAR architecture are implemented. Combined with the transmission characteristics of CAN bus, invatgated thereliable transmission theories and practical experience on computer network,this paper put forword a series of methods to guarantee the quality of vehiclenetwork communication between varies of nodes.After analizing ETSI specification about comformance test, developedcomformance test system based on TTCN-3which is powerful test descriptionlanguage. This paper designed the test suit and fixed configuration set forvalidating the communicaton software abve.Local enterprises mostly concentrate on functional integration, which accumulatebus technology and automotive software technology weakly and lack the research ofembedded software architecture conforming to their own situation.The implementationof subject improves the reliability and reusability of the communication software inautomotive electronics, makes the exporatory contribution to the developing of Chineseautomotive electronic software.

Table of contents

Summary 5-7 ABSTRACT 7-13 first chapter 13-18 1.1 subject background 13-14 1.2 automotive industry Overview Status 14-16 1.2.1 domestic automotive electronics 14-15 1.2.2 automotive Electronics standardization of the road abroad 15-16 1.3 research significance and content 16-17 1.4 papers organizational structure 17-18 Chapter II technology infrastructure 18-29 2.1 automotive network architectures 18-19 2.2 -vehicle CAN bus Overview 19-20 2.3 automotive software architecture analysis 20 -22 2.4 AUTOSAR communication software model overview 22-28 2.4.1 basic concepts of network data types 22-23 2.4.2 application software in a virtual function communication model on the bus 23-25 ?? 2.4.3 AUOSAR COM layer 25-26 2.4.4 PDU routing 26-27 2.4.5 CAN transport layer 27-28 2.4.6 CAN data link layer 28 2.5 Summary 28-29 third Chapter vehicle CAN networks stratification 29-45 3.1 -vehicle CAN network transport layer analysis 29-39 3.1.1 data streaming 31-33 3.1.2 multi-frame transmission flow control 33-36 3.1.3 data frame transmission delay analysis and delay parameter calculation 36-39 <br / > 3.2 -vehicle CAN network data link layer analysis 39-41 3.2.1 internal priority inversion 39-40 3.2.2 bit of time and synchronization 40-41 3.3 AUTOSAR basic software PDU streaming process 41-43 3.4 system properties required 43-44 3.4.1 robustness requirements 43 3.4.2 reusability requirements 43-44 3.4.3 scalability requirements 44 3.5 Summary 44 -45 Chapter IV -vehicle CAN network data link layer software design and implementation 45-66 4.1 CAN -driven design and implementation 45-50 4.1. a state machine with the conversion mechanism 45-47 4.1.2 module and a single controller initialization 47-48 4.1.3 data frame transmission services 48 - 50 4.1.4 data frame reception service 50 4.2 CAN interface layer design and implementation 50-63 4.2.1 interface layer initialized 51 -53 4.2.2 interface layer state machine and the conversion mechanism 53-56 4.2.3 L_PDU delivery service 56-60 4.2.4 L_PDU receive service 60-63 4.3 bus error handling mechanism 63 4.4 network energy control 63-65 4.4.1 Interface Definition and key data structures 63-64 4.4.2 wakeup event handling mechanism 64-65 4.5 Summary 65-66 Chapter transport vehicle CAN networks protocol layer software design and implementation 66-82 5.1 system state machine and the conversion mechanism 66-67 5.2 N_PDU delivery service 67-75 5.2.1 the main data structure and interface definitions state 67-70 5.2.2 transmit channel and conversion 70-75 5.3 N_PDU receiving services 75 - 79 5.3.1 the main data structure and interface definitions 75-76 5.3.2 receive channel state and conversion 76-79 5.4 filling mechanism conversion mechanism 79-80 5.5 N_SDU and N_PDU between 80-81 5.5.1 common address format 80 5.5.2 extended address format 80-81 5.6 Summary 81-82 Chapter VI standards-based communications software compliance testing research and implementation 82-91 6.1 -vehicle CAN communication software compliance testing significance 82-83 6.2 AUTOSAR compliance testing classification 83-85 6.2.1 static test 83 <br / > 6.2.2 dynamic test 83-85 6.3 test with a fixed configuration design 85-87 6.4 adapter design 87-88 6.4.1 SUT adapter design 87 6.4.2 target adapter design 87-88 6.5 codec design 88-90 6.6 of this chapter Summary 90-91 Chapter VII of the system test 91-102 7.1 oxygen sensor diagnostic test 91-95 7.1.1 diagnostic System hardware test environment 91-92 7.1.2 oxygen sensor diagnostic test 92-95 7.2 performance verification 95-97 7.3 compliance test results and analysis 97-100 7.3.1 static test 97 7.3.2 dynamic test 97-100 7.4 code quality testing 100-101 7.5 summary 101-102 Chapter VIII of the work summary and Outlook 102-104 8.1 Full Summary 102 8.2 job Outlook 102-104 Thanks 104-105 References research results 105-107 nbsp postgraduate study period ; 107-108

Related dissertations

  1. Study on AUTOSAR Conformance Testing by Using TTCN-3
    TanWenZhi ·Hunan University ·2011 ·Master's thesis
  2. Research of CAN Network Management Based on AUTOSAR
    YuPing ·Hefei University of Technology ·2013 ·Master's thesis
  3. The Design and Implementation of Mobile IPv6 Protocol Conformance Test
  4. Research and Realization of a Test Environment Based on GFT
  5. Design of Embedded Data Acquisition and Processing System of MEMS-INS
  6. Design and Realization of CS-50Catalyst Production Control System Based on CAN Bus
    AiTianLun ·Dalian Jiaotong University ·2012 ·Master's thesis
  7. Design of DeviceNet-CANopen Integrated Slave Node
    LiuXueWei ·Tianjin University of Technology ·2013 ·Master's thesis
  8. The Research of Embeded Intelligent Household Based on ARM
    WangWenChuan ·Hefei University of Technology ·2013 ·Master's thesis
  9. Design of Industrial Controller Based on EPA
    ZuoShengChao ·Dalian Jiaotong University ·2013 ·Master's thesis
  10. The Design of the Rectification Recovery System Based on the CAN Bus
    LiuTianQi ·Dalian Jiaotong University ·2013 ·Master's thesis
  11. CACC Company DHS Project Implementation Management Research
  12. LLDP Protocol Conformance Test Based on TTCN
  13. Design and Implementation of the Conformance Test System for IPv6Translation Transition Technology
    ChenXiang ·Beijing Jiaotong University ·2014 ·Master's thesis
  14. Design and research of testing system of MPLS L2VPN protocol based on TTCN-3
  15. The Effects and Mechanism of Ca2+/CaN/Cbl-b/Akt in the Oxygen-glucose Deprivation and Pharmacological Preconditioning
    ZhangWei ·Dalian Medical University ·2013 ·Doctoral dissertation
  16. The Design of Digitalized High-frequency Switching Power Supply Based on DSP
    LiZhiYong ·Tianjin University of Technology ·2013 ·Master's thesis
  17. Design and Implementation of High Frequency PFC On-board Charger
    ChenKai ·Wuhan University of Technology ·2013 ·Master's thesis
  18. Research on Fault Recorder System Based on STM32F4
    ZhangZuo ·Hebei University of Technology ·2012 ·Master's thesis
  19. Design of Smart Terminal for New Energy Micro Grid of Island
    MaLi ·Zhejiang University ·2014 ·Master's thesis
  20. The Study on the Control System of the Distributed Electric Boiler