Design and Implementation of Calibration System Based on XCP Protocol
- Author
- LiYan
- Advisor
- QinGuiHe
- School
- Jilin University
- Major
- Applied Computer Technology
- Classification
- TP273 Automatic control,automatic control system
- Degree
- Master's thesis
- Year
- 2012
- Downloads
- 86
- Citations
- 0
Abstract
In recent years, with the progress and development of automotive electronics technology,there are growing numbers of electrical and electronic equipments used in the automotivesector, this adds a lot of safety and comfort features for the modern automobile, greatlyimproving scientific and technological content of the vehicle, making the car itself moreintelligent and humane. Using a large number of electronic control units on the automotiveindustry has made a revolutionary breakthrough, making the car closer to the needs of users asa commodity, but it also increases the difficulty of development of the engine control unit atthe same time. To coordinate communication between the electronic control unit and othercontrollers, and exhaust gas emission targets specified in line with relevant laws andregulations, the engine control unit requires a large number of dynamic process managementand optimization. This need to find an effective way to change the observation of thesecontrol variables, so the XCP protocol came into being as a calibration process specificationin a variety of bus transport and communications, greatly reducing engine R&D cycle.Calibration system as a part of the master control unit, adjust the control variables to find anoptimal combination of points in terms of stability, security, and dynamic engine. Thedevelopment of Calibration system has a profound effect on researching in ECU, it hasbecome the focus of attention of the major car manufacturers as well as related R&Ddepartment.The work of this thesis is built around “Design and Implementation of CalibrationSystem Based on XCP Protocol”. Firstly, starting from the architecture of the calibrationsystem, calibration system is divided into the protocol processing module, the transmissiondata processing module, the generic driver modules and calibration environment configuration.Through further study and research relevant background knowledge, understanding XCPcalibration protocol specification and transmission processes, design and implement aprotocol handler, including the establishment of communication links, and communicationssecurity access, calibration data download and online calibration function. Secondly, startingfrom the CAN bus transfer mechanism, combined with the functional requirements ofcalibration system and data transmission characteristics, a completed the task of systemtransport layer. Including the bus to send and receive packets of information and to downloadthe data group packet processing sub-module. According to the understanding of the maincontrol chip (TC1767) data manual, achieved its module universal driving. Finally, the combination of demand and calibration system features to optimize the structure of the codeand the interface between each module, and the components on the functionality andperformance test, the successful realization of the calibration system based on XCP protocol.The first chapter of this thesis describes the development background and research statusof the calibration system. This section highlights the practical significance of the system andthe importance of the development process of automotive electronic control unit, andsummarizes the general terms of the structure and function of the calibration system. Finally,introduce the main contents of this article.The second chapter of this thesis introduces on the communication protocols andtransmission bus. This section is to compare and analyze two data acquisition modes of theXCP protocol, a brief description and characteristics of the CAN bus and packet structure.The communication part of the agreement, including the transmission of the XCP protocolspecification, namely the transport layer and physical layer independent of the XCP protocolcan be transmitted in the CAN, LIN, USB, etc. on the bus; protocol specification describes thetransmission packet types and transmission in the communication process command; interfacedefinition describes the ASAP2of the database file used in the calibration process.The third chapter of this thesis is the needs analysis of the calibration system. The needsanalysis is to design and implement the necessary work of a calibration system, it also toensure that the calibration system to complete the key to quality. Calibration System in thischapter for XCP, respectively, from the master chip select, calibration protocol, real-timereliability, system functions and system configuration environment aspects described anddemonstrated.The fourth chapter of this thesis is an overview of the calibration system; this chapterbegins with a brief analysis of the calibration mode of communication, configuration,environment, and key technologies. Calibration and software architecture of the systemanalysis and design at the application layer, including the initialization module, system taskmodule and calibration data module. Calibration component protocol processing layerincludes a packet buffer settings and data stream processing. The underlying driver partFLASH drive and the functionality of the CAN driver function. XCP command processorinclude the protocol handler and the various sub-function of the command function. Duringthe execution of the entire system is divided into the following phases, the first componentstarts the clock and register initialization, followed by the various functional modules to beinitialized, start the scheduler perform a periodic task. CAN network data stream processingsection in the CAN interrupt service routine to extract data, group packages and transportlayer. XCP protocol processor part, respectively, for security access, calibration datadownload, online data observations core module design and realization.The fifth chapter of this paper details the core module of the calibration system. Thetransmission of the XCP protocol layer packet structure definition, demarcation of the basic commands, command parsing process, and core functions to achieve the analysis and design.Depth calibration system to establish communication links, communication security access,calibration data download and data-line calibration function modules. Finally, this chapter isdesigned and implemented the driver function of the FLASH module and the CAN module.The sixth chapter of this thesis introduces the calibration system based on XCP protocoltesting and debugging. This chapter focuses on the functionality and reliability of thecalibration system is tested and analyzed. According to the function demand of design andvalidate a calibration assembly for test case. This paper introduces the test of related testingmethods and test results, and the test results are analyzed.The seventh chapter summarizes and prospects, this text has completed work andtheoretical innovation in content, and the calibration system development direction in thefuture as briefly.
Table of contents
Summary 5-7
Abstract 7-13
Chapter 1 Introduction 13-16
1.1 Development Background and Significance 13
1.2 calibration system Overview proposed 13-14
1.3 issues main content of 14
1.4 of this study 14-16
Article Chapter 2 auto calibration and bus protocol 16-23
2.1 calibration process 16-17
2.1.1 online calibration 17
2.1.2 offline calibration 17
2.2 XCP calibration Protocol 17-21
2.2.1 development of 17
2.2.2 agreement 17 - 20
2.2.3 data acquisition mode 20-21
2.3 CAN bus 21-23
2.3.1 Overview 21-22 <br / > 2.3.2 bus packet structure 22-23
Chapter 3 Requirements Analysis 23-28
3.1 master chip demand analysis 23
3.2 calibration Protocol needs analysis 23-24
3.3 real-time and reliability requirements analysis 24
3.4 system functional requirements analysis 24-25
3.5 configuration environmental requirements analysis 25-28
3.5.1 calibration system Configuration 25-26
3.5.2 set mirrored memory 26-28
4 Chapter calibration system design 28-41
4.1 system communication mode 28-29
4.2 modules introduced 29-31
4.3 core processor 31-35
4.3.1 clock management module 31
4.3.2 FLASH modules 31-34
4.3.3 CAN modules 34-35
4.4 program flow analysis 35-38
4.5 CAN network data stream processing 38-39
4.6 XCP protocol processor 39-41
Chapter 5 calibration system detailed design 41-59
5.1 command parsing module 41-47
5.1.1 transmission packet structure definition 41-43
5.1.2 calibration basic commands 43-44
5.1.3 command parsing 44-46
5.1.4 core performance function achieve 46-47
5.2 system core functions to achieve 47-54
5.2.1 establish communication 48
5.2.2 communications Security access 48-49
5.2.3 calibration data download 49-52
5.2.4 data line calibration 52
5.2.5 DAQ mechanism to achieve 52-54
5.3 driver modules to achieve 54-59
5.3.1 FLASH module 54-57
5.3.2 CAN module 57-59
Chapter 6 experimental debugging and testing 59-67
6.1 test purpose and necessity 59-65
6.1.1 real-time test 59-61
6.1.2 security testing 61-62
6.1.3 reliability Test 62-65
6.2 test Platform and Tools 65-66
6.2.1 calibration tool CANape 65
6.2.2 test environment 65-66
6.3 test results 66 -67
Chapter 7 summary and Outlook 67-69
7.1 Full Summary 67-68
7.1.1 work done 67 <br / > 7.1.2 theoretical innovation 67-68
7.2 Prospects 68-69
References About 69-71
authors and during the school acquired research 71-72
Thanks 72
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
- Search on Hybrid Control in Internet Congestion Control 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
- Non-linear Model and Calibration System of Switched Reluctance Motor
- The Research of Calibration System for Gas Engine Based on CCP
- Development of High Performance ECU Platform and Its Application Research
- 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