A calibration method based on the heterogeneous architecture of the XCP protocol
By introducing a shared memory module and sub-modules into the MCU+SOC system and using Ethernet communication to calibrate the MCU+SOC, the problem of immature MCU+SOC calibration methods is solved, and a stable, real-time, anti-interference, and low-cost calibration process is achieved.
Patent Information
- Application Number
- CN202210494256.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-05-07
- Publication Date
- 2026-03-17
- Estimated Expiration
- 2042-05-07
AI Technical Summary
In the current technology, the calibration method of MCU+SOC is not yet mature and cannot effectively achieve a stable calibration process.
By adding a shared memory module to the user application on the System-on-Chip (SoC) side and a shared memory sub-module to the user application on the Microcontroller Unit (MCU) side, and connecting the two in series using Ethernet communication, the calibration process of MCU+SoC can be realized.
It achieves stable calibration of MCU+SOC, has strong real-time transmission performance, long transmission distance, strong anti-electromagnetic interference capability, and low cost.
Smart Images

Figure CN114859866B_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of XCP calibration technology, and in particular to a calibration method based on a heterogeneous architecture of the XCP protocol. Background Technology
[0002] XCP is actually a supplement to the ECN mechanism. Its main idea is to make full use of the network intermediate nodes' knowledge of link bandwidth to provide the end-to-end congestion control mechanism with more and more effective network bandwidth hints than whether congestion has occurred, so that the control mechanism can adapt to the current network conditions more quickly.
[0003] With the continuous development of automobiles, the electronic and electrical architecture of vehicles has undergone tremendous changes, gradually transitioning from a distributed architecture to a domain controller-based architecture. Currently, the common method for calibrating automotive electronic control units (ECUs) involves connecting external devices to the online diagnostic interface via a controller area network (CLAN) device to communicate with the vehicle's network ECUs, thereby monitoring and calibrating the software module variables of each ECU. Domain controllers utilize an MCU+SOC implementation; however, a mature solution for calibrating MCU+SOCs is still lacking. Summary of the Invention
[0004] Based on the above-mentioned technical problems, the purpose of this invention is to provide a calibration method based on the XCP protocol heterogeneous architecture, which is more stable for MCU+SOC calibration.
[0005] To achieve the above objectives, the present invention provides the following technical solution:
[0006] A calibration method based on the XCP protocol heterogeneous architecture includes the following steps:
[0007] Step 1: The computer-based calibration software sends commands to the calibration tool via USB. The calibration tool then sends the commands sent by the computer-based calibration software to the domain controller (DCU).
[0008] Step 2: After receiving the command, the Domain Controller (DCU) drives the internal Microcontroller Unit (MCU) and System-on-Chip (SoC) to work. A shared memory module is added to the user application on the SoC side, and a shared memory sub-module is added to the user application on the MCU side. The shared memory module on the SoC side and the shared memory sub-module on the DCU side handshake to read, modify, and calibrate the command.
[0009] Step 3: After calibration is completed, the address of the calibrated command is sent to the calibration tool via the vehicle bus. The calibration tool then transmits the information to the computer calibration software via USB for display, thus completing the entire calibration process.
[0010] Preferably, step 2 is performed as follows:
[0011] Step 2.1: The drive control unit (DCU) includes a microcontroller unit (MCU) and a system-on-a-chip (SoC). A shared memory module is added to the user application on the SoC side, and a shared memory sub-module is added to the user application on the MCU side.
[0012] Step 2.2: The shared memory module on the SoC side performs initialization operations and handshakes with the shared memory sub-module on the DCU side.
[0013] Step 2.3: The command enters the XCP calibration protocol stack through the communication driver module. The XCP calibration protocol stack splits the command into a variable set, and the variable set enters the shared memory module through the shared memory submodule.
[0014] Step 2.4: The on-chip system SoC performs real-time monitoring. After the shared memory module is successfully initialized, it enters a loop to read the variable set transmitted from the microcontroller unit MCU to the shared memory module in real time, which is the relevant calibration data.
[0015] Step 2.5: The external host computer interacts with the drive control unit (DCU) through the controller local area network bus to modify and monitor the relevant calibration data on the SoC side in real time, thereby obtaining the calibration value on the SoC side.
[0016] Preferably, the shared memory module in the system-on-a-chip (SoC) and the shared memory submodule in the microcontroller unit (MCU) are implemented using Ethernet communication.
[0017] Preferably, the microcontroller unit (MCU) imports the A2L file into the host computer, which can then read the variable values of the MCU and obtain the variable values of the system-on-a-chip (SoC) through the shared memory module and the shared memory sub-module.
[0018] If the variable value of the microcontroller unit (MCU) is modified, the MCU modifies the variable value corresponding to the system-on-chip (SoC) via Ethernet through the shared memory module and the shared memory submodule.
[0019] Compared with the prior art, the beneficial effects of the present invention are:
[0020] 1. This invention enables MCU+SoC calibration by adding a shared memory module to the user application on the System-on-Chip (SoC) side and a shared memory sub-module to the user application on the Microcontroller Unit (MCU) side.
[0021] 2. By using Ethernet communication, the shared memory module and the shared memory sub-module are connected in series to work together, which makes the transmission between the shared memory module and the shared memory sub-module highly real-time and has a long transmission distance. Attached Figure Description
[0022] To more clearly illustrate the specific embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the specific embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are some embodiments of the present invention. For those skilled in the art, other drawings can be obtained from these drawings without creative effort.
[0023] Figure 1 This is a schematic diagram of the MCU+SoC calibration architecture in this invention;
[0024] Figure 2 This is an address mapping diagram in this invention. Detailed Implementation
[0025] The technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of the present invention, and not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of the present invention.
[0026] Please see Figures 1 to 2 The present invention provides a technical solution:
[0027] A calibration method based on the XCP protocol heterogeneous architecture includes the following steps:
[0028] Step 1: The computer-based calibration software sends commands to the calibration tool via USB. The calibration tool then sends the commands sent by the computer-based calibration software to the domain controller (DCU).
[0029] Step 2: After receiving the command, the Domain Controller (DCU) drives the internal Microcontroller Unit (MCU) and System-on-Chip (SoC) to work. A shared memory module is added to the user application on the SoC side, and a shared memory sub-module is added to the user application on the MCU side. The shared memory module on the SoC side and the shared memory sub-module on the DCU side handshake to read, modify, and calibrate the command.
[0030] Step 3: After calibration is completed, the address of the calibrated command is sent to the calibration tool via the vehicle bus. The calibration tool then transmits the information to the computer calibration software via USB for display, thus completing the entire calibration process.
[0031] As a specific embodiment of the present invention, step 2 is performed as follows:
[0032] Step 2.1: The drive control unit (DCU) includes a microcontroller unit (MCU) and a system-on-a-chip (SoC). A shared memory module is added to the user application on the SoC side, and a shared memory sub-module is added to the user application on the MCU side.
[0033] Step 2.2: The shared memory module on the SoC side performs initialization operations and handshakes with the shared memory sub-module on the DCU side.
[0034] Step 2.3: The command enters the XCP calibration protocol stack through the communication driver module. The XCP calibration protocol stack splits the command into a variable set, and the variable set enters the shared memory module through the shared memory submodule.
[0035] Step 2.4: The SoC performs real-time monitoring. After the shared memory module is successfully initialized, it enters a loop to read the variable set transmitted from the microcontroller unit (MCU) to the shared memory module in real time, which is the relevant calibration data.
[0036] The variable set is divided into a first variable set, a second variable set, and a third variable set. The first variable set enters the reference page calibration variables through the FLASH driver module, the second variable set enters the working fluid calibration variables, and the third variable set enters the measurement variables. Subsequently, the first variable set, the second variable set, and the third variable set enter the user application of the microcontroller unit (MCU).
[0037] Step 2.5: The external host computer interacts with the drive control unit (DCU) through the controller local area network bus to modify the relevant calibration data of the on-chip system (SoC) in real time, thereby obtaining the calibration value of the SoC.
[0038] In one specific embodiment of the present invention, the shared memory module in the System-on-Chip (SoC) and the shared memory submodule in the Microcontroller Unit (MCU) are implemented using Ethernet communication.
[0039] By using Ethernet communication, the shared memory module and the shared memory sub-module are connected in series to work together, which gives the transmission between the shared memory module and the shared memory sub-module advantages such as strong real-time performance, long transmission distance, strong anti-electromagnetic interference capability, and low cost.
[0040] As a specific embodiment of the present invention, the microcontroller unit (MCU) imports the A2L file into the host computer, and the host computer can read the variable values of the microcontroller unit (MCU), thereby obtaining the variable values of the system on chip (SoC) through the shared memory module and the shared memory sub-module.
[0041] If the variable value of the microcontroller unit (MCU) is modified, the MCU will modify the corresponding variable value of the system on-chip (SoC) via Ethernet through the shared memory module and the shared memory sub-module.
[0042] To ensure that the variable set monitoring and setting interface in the System-on-Chip (SoC) is consistent with the variable set monitoring and setting interface in the Microcontroller Unit (MCU), and to reuse the shared memory submodule and other functional modules on the MCU side for the encapsulation and mapping of variable sets.
[0043] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, and not to limit them; although the present invention has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that modifications can still be made to the technical solutions described in the foregoing embodiments, or equivalent substitutions can be made to some or all of the technical features; and these modifications or substitutions do not cause the essence of the corresponding technical solutions to deviate from the scope of the technical solutions of the embodiments of the present invention.
Claims
1. A calibration method based on XCP protocol heterogeneous architecture, characterized in that, The method comprises the following steps: Step 1, the computer terminal calibration software sends a command to the calibration tool through USB, and the calibration tool sends the command sent by the computer terminal calibration software to the domain controller DCU; Step 2, after the domain controller DCU receives the command, the internal micro control unit MCU and the system on chip SoC are driven to work, a shared memory module is added in the user application program on the side of the system on chip SoC, and a shared memory submodule is added in the user application program on the side of the micro control unit MCU; The shared memory module on the side of the system on chip SoC and the shared memory submodule on the side of the drive control unit DCU perform handshake to read, modify and calibrate the command; Step 3, after the calibration is completed, the address of the calibrated command is responded to the calibration tool through the automobile bus, the calibration tool is transmitted to the computer terminal calibration software through USB to display, and the whole calibration process is completed; The process of step 2 is as follows: Step 2.1, the drive control unit DCU comprises a micro control unit MCU and a system on chip SoC, a shared memory module is added in the user application program on the side of the system on chip SoC, and a shared memory submodule is added in the user application program on the side of the micro control unit MCU; Step 2.2, the shared memory module on the side of the system on chip SoC performs initialization operation and handshake with the shared memory submodule on the side of the drive control unit DCU; Step 2.3, the command enters the XCP calibration protocol stack through the communication drive module, the XCP calibration protocol stack splits the command into a variable set, and the variable set enters the shared memory module through the shared memory submodule; Step 2.4, the system on chip SoC performs real-time monitoring, and after the shared memory module is successfully initialized, enters a loop for reading, and reads the variable set transmitted by the micro control unit MCU to the shared memory module in real time, that is, the related calibration data; Step 2.5, the external host computer interacts with the drive control unit DCU through the controller area network bus, and modifies and monitors the related calibration data on the side of the system on chip SoC in real time, so as to obtain the calibration value on the side of the system on chip SoC; The variable set in step 2.3 is divided into a first variable set, a second variable set and a third variable set, the first variable set enters the reference page calibration variable through the FLASH drive module, the second variable set enters the working page calibration variable, and the third variable set enters the measurement variable, and then the first variable set, the second variable set and the third variable set enter the user application program of the micro control unit MCU.
2. The calibration method based on XCP protocol heterogeneous architecture according to claim 1, characterized in that, The shared memory module in the system on chip SoC and the shared memory submodule in the micro control unit MCU are realized by Ethernet communication.
3. The calibration method based on XCP protocol heterogeneous architecture according to claim 1, characterized in that, The micro control unit MCU imports an A2L file into the host computer, the host computer can read the variable value of the micro control unit MCU, so as to obtain the variable value of the system on chip SoC through the shared memory module and the shared memory submodule; If modifying the variable value of the micro control unit MCU, the micro control unit MCU modifies the variable value corresponding to the system on chip SoC through the shared memory module and the shared memory submodule through Ethernet.
Citation Information
Patent Citations
Automobile electric control unit calibration system and method based on ASAP standard
CN101334662A
Calibration method and system, target electric appliance and storage medium
CN112485571A
Automobile domain controller data forwarding system and method
CN113709047A