Parameter calibration method, device, vehicle ECU and vehicle

By performing compliance checks and hierarchical management of key parameters in the underlying ECU system, the problem of insufficient reliability and safety of parameter calibration in the existing technology is solved, the reliability and safety of parameter calibration are improved, and the working performance of ECU is optimized.

CN115755828BActive Publication Date: 2025-08-29SHANGHAI HUAXING DIGITAL TECH
View PDF 4 Cites 0 Cited by

Patent Information

Application Number
CN202211305446.6
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-10-24
Publication Date
2025-08-29
Estimated Expiration
2042-10-24

AI Technical Summary

Technical Problem

In the prior art, the reliability and security of parameters during the ECU parameter calibration process are low, mainly because all parameters are verified by the upper computer, and there is a lack of verification of the underlying control system.

Method used

By distinguishing key parameters from ordinary parameters, the ECU underlying system is used to perform compliance verification of key parameters, and hierarchical management is carried out at the memory address level to ensure accurate calibration of key parameters.

Benefits of technology

It improves the reliability and safety of parameter calibration, improves the working performance of the ECU, takes into account flexibility and efficiency, and ensures the accuracy of key parameters.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115755828B_ABST
    Figure CN115755828B_ABST
Patent Text Reader

Abstract

The present invention relates to the field of ECU calibration technology, and provides a parameter calibration method, device, vehicle ECU, and vehicle, wherein the parameter calibration method includes: obtaining calibration information of a parameter to be calibrated, including a memory address corresponding to the parameter to be calibrated and a preset parameter value corresponding to the parameter to be calibrated; determining the type of the parameter to be calibrated based on the memory address corresponding to the parameter to be calibrated; if the parameter to be calibrated is a key parameter, performing a compliance check on the preset parameter value corresponding to the key parameter; if the preset parameter value corresponding to the key parameter passes the compliance check, modifying the parameter value of the key parameter to the corresponding preset parameter value through the memory address corresponding to the key parameter. The present invention is used to solve the defect in the prior art that all parameters are only checked by a host computer, resulting in low reliability and security of parameter calibration, and realizes compliance check of the preset parameter value corresponding to the key parameter, thereby improving the reliability and security of parameter calibration.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of ECU calibration, and in particular to a parameter calibration method and device, a vehicle ECU, and a vehicle. Background Art

[0002] An ECU (Electronic Control Unit), also known as the "on-board computer," primarily uses data collection and exchange between various sensors and buses to determine vehicle status and the driver's intent, and to control the vehicle through actuators. Calibration involves adjusting, optimizing, and finalizing the control algorithms for the operating and control parameters of each ECU based on various vehicle performance requirements, such as power, economy, emissions, and auxiliary functions.

[0003] With the rapid advancement of electronic technology and increasingly stringent emissions regulations, ECU control requirements are becoming increasingly complex and precise, inevitably leading to a growing workload for ECU parameter calibration. Currently, ECU parameter calibration is primarily performed using the CCP (CAN Calibration Protocol) or XCP (Universal Measurement and Calibration Protocol). During calibration, parameter values ​​are modified based on their actual addresses, and all parameters are verified only by the host computer. This results in low reliability and security. Summary of the Invention

[0004] The present invention provides a parameter calibration method, device, vehicle ECU and vehicle, which are used to solve the defects in the prior art that all parameters are only verified by a host computer, resulting in low reliability and safety of parameter calibration, and realize compliance verification of preset parameter values ​​corresponding to key parameters, thereby improving the reliability and safety of parameter calibration.

[0005] The present invention provides a parameter calibration method, comprising:

[0006] Acquire calibration information of the parameter to be calibrated, where the calibration information of the parameter to be calibrated includes a memory address corresponding to the parameter to be calibrated and a preset parameter value corresponding to the parameter to be calibrated;

[0007] Determining the type of the parameter to be calibrated based on the memory address corresponding to the parameter to be calibrated, where the type of the parameter to be calibrated includes a key parameter and a common parameter;

[0008] If the parameter to be calibrated is a key parameter, performing compliance verification on the preset parameter value corresponding to the key parameter;

[0009] If the preset parameter value corresponding to the key parameter passes the compliance check, the parameter value of the key parameter is modified to the corresponding preset parameter value through the memory address corresponding to the key parameter.

[0010] According to a parameter calibration method provided by the present invention, obtaining calibration information of the parameter to be calibrated includes:

[0011] Obtaining a memory address corresponding to the parameter to be calibrated, wherein if the parameter to be calibrated is the key parameter, the memory address corresponding to the parameter to be calibrated is a virtual address; if the parameter to be calibrated is the common parameter, the memory address corresponding to the parameter to be calibrated is an actual address;

[0012] Obtaining a preset parameter value corresponding to the parameter to be calibrated;

[0013] Based on the memory address corresponding to the parameter to be calibrated and the preset parameter value corresponding to the parameter to be calibrated, calibration information of the parameter to be calibrated is obtained.

[0014] According to a parameter calibration method provided by the present invention, determining the type of the parameter to be calibrated based on the memory address corresponding to the parameter to be calibrated includes:

[0015] The memory address corresponding to the parameter to be calibrated is compared with a set memory address threshold to determine the type of the parameter to be calibrated.

[0016] According to a parameter calibration method provided by the present invention, after determining the type of the parameter to be calibrated based on the memory address corresponding to the parameter to be calibrated, the method further includes:

[0017] If the parameter to be calibrated is a common parameter, the parameter value of the common parameter is modified to the corresponding preset parameter value through the memory address corresponding to the common parameter.

[0018] According to a parameter calibration method provided by the present invention, the parameter value of the key parameter is modified to the corresponding preset parameter value through the memory address corresponding to the key parameter, including:

[0019] Mapping the virtual address corresponding to the key parameter to the actual address corresponding to the key parameter;

[0020] The parameter value of the key parameter is modified to the corresponding preset parameter value through the actual address corresponding to the key parameter.

[0021] The present invention also provides a parameter calibration device, comprising:

[0022] An acquisition module, configured to acquire calibration information of a parameter to be calibrated, wherein the calibration information of the parameter to be calibrated includes a memory address corresponding to the parameter to be calibrated and a preset parameter value corresponding to the parameter to be calibrated;

[0023] a determination module, configured to determine the type of the parameter to be calibrated based on the memory address corresponding to the parameter to be calibrated, where the type of the parameter to be calibrated includes a key parameter and a common parameter;

[0024] a verification module, configured to, if the parameter to be calibrated is a key parameter, perform compliance verification on a preset parameter value corresponding to the key parameter;

[0025] The modification module is used to modify the parameter value of the key parameter to the corresponding preset parameter value through the memory address corresponding to the key parameter if the preset parameter value corresponding to the key parameter passes the compliance check.

[0026] The present invention also provides a vehicle ECU, comprising: a parameter calibration device as described in any one of the above.

[0027] The present invention also provides a vehicle, comprising: a vehicle ECU as described in any one of the above.

[0028] The present invention also provides an electronic device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the program, any of the parameter calibration methods described above is implemented.

[0029] The present invention also provides a non-transitory computer-readable storage medium having a computer program stored thereon, which implements any of the parameter calibration methods described above when executed by a processor.

[0030] The parameter calibration method provided by the present invention first obtains calibration information of the parameter to be calibrated, including a memory address corresponding to the parameter to be calibrated and a preset parameter value corresponding to the parameter to be calibrated, wherein the calibration information of the parameter to be calibrated can be obtained after verification by a host computer, and the memory address and the preset parameter value can provide a basic basis for subsequent calibration parameters; then, based on the memory address corresponding to the parameter to be calibrated, key parameters and common parameters are distinguished, so as to facilitate hierarchical management and control of key parameters and common parameters, taking into account flexibility and efficiency, and being safer and more reliable; thereafter, compliance verification is performed on the preset parameter value corresponding to the key parameter, that is, on the basis of the verification by the host computer, further verification is added to the key parameter, which can improve the reliability and safety of the key parameter calibration; finally, if the preset parameter value corresponding to the key parameter passes the compliance verification, the parameter value of the key parameter is modified to the corresponding preset parameter value through the memory address corresponding to the key parameter, so as to achieve accurate calibration of the key parameter and further ensure the working performance of the ECU. BRIEF DESCRIPTION OF THE DRAWINGS

[0031] In order to more clearly illustrate the technical solutions in the present invention or the prior art, the following briefly introduces the drawings required for use in the embodiments or the description of the prior art. Obviously, the drawings described below are some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.

[0032] Figure 1 It is a flow chart of the parameter calibration method provided by the present invention;

[0033] Figure 2 It is a schematic diagram of the memory address provided by the present invention;

[0034] Figure 3 Schematic diagram of the process of parameter calibration method based on CCP protocol provided by the present invention;

[0035] Figure 4 It is a structural schematic diagram of the parameter calibration device provided by the present invention;

[0036] Figure 5 It is a structural schematic diagram of the electronic device provided by the present invention. DETAILED DESCRIPTION

[0037] To make the objectives, technical solutions, and advantages of the present invention more clear, the technical solutions of the present invention will be clearly and completely described below in conjunction with the accompanying drawings. Obviously, the embodiments described are only some of the embodiments of the present invention, not all of them. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without making creative efforts shall fall within the scope of protection of the present invention.

[0038] The present invention provides a parameter calibration method that can be performed by an ECU calibration system based on the CCP or XCP protocol. The system may include a host computer and at least one ECU, each ECU including its own CAN communication module with the CCP or XCP protocol; the system also includes a CAN bus analysis tool connecting the host computer and the CAN communication module.

[0039] The following combination Figures 1 to 3 The parameter calibration method of the present invention is described.

[0040] Figure 1 It is a flow chart of the parameter calibration method provided by the present invention.

[0041] like Figure 1 As shown, the parameter calibration method provided in this embodiment can be executed by the software and / or hardware of the ECU, and includes at least the following steps:

[0042] S101 : Acquire calibration information of a parameter to be calibrated, where the calibration information of the parameter to be calibrated includes a memory address corresponding to the parameter to be calibrated and a preset parameter value corresponding to the parameter to be calibrated.

[0043] Specifically, the parameters to be calibrated may include control parameters, intermediate tracking parameters, debugging parameters, etc., and calibration information of multiple parameters to be calibrated can be obtained simultaneously. Among them, the parameters to be calibrated can be divided into key parameters and ordinary parameters according to the importance of the parameters and the specific usage scenarios of the parameters. Generally speaking, important control parameters related to system safety and stability are defined as key parameters, such as PID parameters, etc., and parameters that record process information and debugging functions are defined as ordinary parameters, such as intermediate tracking parameters and debugging parameters. The memory address can be obtained by the ECU through memory allocation for different parameters. For ordinary parameters, the actual address can be directly allocated and opened to the outside. For key parameters, the virtual address corresponding to the actual address can be obtained after the ECU addresses it and then opened to the outside.

[0044] The preset parameter value is the modified value of the parameter set by the user. The calibration information of the parameter to be calibrated can be obtained after verification by the host computer. The calibration information of the parameter to be calibrated can be downloaded from the host computer by the ECU through a CAN communication module with CCP or XCP protocol, providing a reliable data basis for parameter calibration.

[0045] S102: Determine the type of the parameter to be calibrated based on the memory address corresponding to the parameter to be calibrated, where the type of the parameter to be calibrated includes a key parameter and a common parameter.

[0046] Among them, there are generally fewer key parameters, while there are generally more common parameters. The memory addresses of the parameters to be calibrated are allocated from small to large. Therefore, the memory addresses corresponding to the key parameters are different from the memory addresses of the common parameters. The memory addresses corresponding to the key parameters are generally smaller than the memory addresses of the common parameters. The key parameters and the common parameters can be distinguished based on the size characteristics of the memory addresses.

[0047] S103: If the parameter to be calibrated is a key parameter, a compliance check is performed on a preset parameter value corresponding to the key parameter.

[0048] Among them, the ECU can perform compliance verification on the preset parameter values ​​corresponding to the key parameters, and the compliance verification includes but is not limited to upper and lower limit checks, type, read and write and other security verifications. In implementation, compliance verification rules corresponding to different virtual addresses can be stored to perform compliance verification on the preset parameter values ​​corresponding to the corresponding key parameters. Conventional calibration methods based on the CCP protocol all modify the value of the parameter through the actual address of the parameter, and the data verification is completed on the upper computer, and the underlying control system will not verify it. In this application, when calibrating the key parameters, the underlying control system ECU can verify its data, which is not available in the conventional calibration system that implements the CCP protocol. By having the ECU perform compliance verification on the preset parameter values ​​corresponding to the key parameters, it can further ensure that the key parameters meet the parameter standards specified by the ECU, ensure the accuracy of the key parameters, and reduce the probability of parameter errors.

[0049] S104: If the preset parameter value corresponding to the key parameter passes the compliance check, the parameter value of the key parameter is modified to the corresponding preset parameter value through the memory address corresponding to the key parameter.

[0050] The preset parameter values ​​can be set by the user through the host computer and can be adjusted according to actual needs. If the preset parameter values ​​corresponding to the key parameters pass the compliance check, the parameter values ​​of the key parameters can be modified to achieve accurate calibration of the key parameters, ensure the safety and reliability of ECU parameter calibration, and improve the working performance of the ECU.

[0051] In summary, the parameter calibration method provided by the embodiment of the present invention first obtains the calibration information of the parameter to be calibrated, including the memory address corresponding to the parameter to be calibrated and the preset parameter value corresponding to the parameter to be calibrated, wherein the calibration information of the parameter to be calibrated can be obtained after verification by the upper computer, and the memory address and the preset parameter value can provide a basic basis for subsequent calibration parameters; then, based on the memory address corresponding to the parameter to be calibrated, the key parameters and ordinary parameters are distinguished, so as to facilitate the hierarchical management and control of the key parameters and ordinary parameters, taking into account flexibility and efficiency, and being safer and more reliable; the preset parameter value corresponding to the key parameter is checked for compliance, that is, on the basis of the verification by the upper computer, further verification is added to the key parameter, which can improve the reliability and security of the key parameter calibration; finally, if the preset parameter value corresponding to the key parameter passes the compliance check, the parameter value of the key parameter is modified to the corresponding preset parameter value through the memory address corresponding to the key parameter, so as to achieve accurate calibration of the key parameter and further ensure the working performance of the ECU.

[0052] In addition, in this embodiment, by using memory addresses for parameter calibration, it can be compatible with the CCP protocol, so that many existing tools can be directly used, with a wider range of applications.

[0053] For example, obtaining calibration information of the parameters to be calibrated includes:

[0054] Obtaining a memory address corresponding to the parameter to be calibrated, wherein if the parameter to be calibrated is the key parameter, the memory address corresponding to the parameter to be calibrated is a virtual address; if the parameter to be calibrated is the common parameter, the memory address corresponding to the parameter to be calibrated is an actual address;

[0055] Obtaining a preset parameter value corresponding to the parameter to be calibrated;

[0056] Based on the memory address corresponding to the parameter to be calibrated and the preset parameter value corresponding to the parameter to be calibrated, calibration information of the parameter to be calibrated is obtained.

[0057] Specifically, the memory addresses corresponding to the parameters to be calibrated can be obtained by parsing the A2L file. The A2L file is generated according to the ASAM standard from the EFL or MAP file, which is compiled based on the memory addresses assigned by the ECU to each parameter to be calibrated. The virtual addresses corresponding to the key parameters can be obtained by addressing the actual addresses using the ECU controller. During the addressing process, a one-to-one mapping relationship is established between the actual and virtual addresses of the key parameters and stored in a mapping table.

[0058] like Figure 2 As shown, the actual addresses 0XAA, ..., 0XA8, 0XA7, ..., 0XA4, 0XA3, ..., 0XA1 in the memory respectively store parameter values ​​of different parameters. For key parameters, the virtual addresses corresponding to the actual addresses of the key parameters are encoded. The virtual addresses are indicated by 1, 2, ..., M in the figure. The mapping relationship between the virtual addresses and actual addresses corresponding to the key parameters is stored in the mapping table. For example, the actual address corresponding to virtual address 1 is 0XA8, and the actual address corresponding to virtual address 2 is 0XA4. Ordinary parameters are directly assigned actual addresses, such as 0XA3, ..., 0XA1.

[0059] After the key parameters are addressed by the controller, virtual addresses are opened to the outside world. The virtual addresses facilitate the ECU to perform compliance verification on the preset parameter values ​​corresponding to the key parameters, avoiding the impact on the parameter values ​​at the actual addresses. Ordinary parameters can be directly assigned actual addresses, thereby realizing hierarchical management and control of key parameters and ordinary parameters, taking into account flexibility and efficiency, and ensuring the safety and reliability of key parameters.

[0060] The preset parameter value corresponding to the parameter to be calibrated can be set by the user through the host computer. The preset parameter value can be understood as an ideal parameter value, which is used to modify the parameter value of the current parameter to be calibrated, thereby achieving calibration of the parameter to be calibrated, allowing the ECU to be in a more ideal operating state based on the modified parameter value, thereby optimizing the ECU's operating performance.

[0061] For example, determining the type of the parameter to be calibrated based on the memory address corresponding to the parameter to be calibrated includes:

[0062] The memory address corresponding to the parameter to be calibrated is compared with a set memory address threshold to determine the type of the parameter to be calibrated.

[0063] Specifically, comparing the memory address corresponding to the parameter to be calibrated with a set memory address threshold to determine the type of the parameter to be calibrated includes:

[0064] If the memory address of the parameter to be calibrated is less than the set memory address threshold, determining that the parameter to be calibrated is a key parameter;

[0065] If the memory address of the parameter to be calibrated is greater than the set memory address threshold, it is determined that the parameter to be calibrated is a common parameter.

[0066] Among them, since the memory address corresponding to the key parameters is different from the memory address of the ordinary parameters, the memory address corresponding to the key parameters is generally smaller than the memory address of the ordinary parameters. The set memory address threshold can be determined according to the difference in memory addresses. By comparing the memory address corresponding to the parameter to be calibrated with the set memory address threshold, the key parameters and ordinary parameters can be quickly distinguished.

[0067] ECU is an embedded chip. Because embedded chips are different from terminals such as computers, on the one hand, they save space, and on the other hand, their performance is relatively low. The memory address threshold is used to first determine whether it is a key parameter, and then the compliance of the preset parameter value corresponding to the key parameter is checked, which can also save performance.

[0068] For example, after determining the type of the parameter to be calibrated based on the memory address corresponding to the parameter to be calibrated, the method further includes:

[0069] If the parameter to be calibrated is a common parameter, the parameter value of the common parameter is modified to the corresponding preset parameter value through the memory address corresponding to the common parameter.

[0070] Among them, since ordinary parameters are generally calibrated directly using actual addresses, and ordinary parameters are less important and have little impact on the working performance of the ECU, there is no need for the ECU to perform compliance verification on the preset parameter values ​​corresponding to ordinary parameters. Instead, the ECU can directly calibrate based on the actual addresses of the ordinary parameters, which can greatly improve the calibration efficiency of the parameters.

[0071] For example, modifying the parameter value of the key parameter to the corresponding preset parameter value through the memory address corresponding to the key parameter includes:

[0072] Mapping the virtual address corresponding to the key parameter to the actual address corresponding to the key parameter; wherein the actual address corresponding to the key parameter is mapped one-to-one to the virtual address;

[0073] The parameter value of the key parameter is modified to the corresponding preset parameter value through the actual address corresponding to the key parameter.

[0074] Among them, since the key parameters use virtual addresses, and calibration requires modifying parameter values ​​based on actual addresses, the ECU can first perform compliance verification on the preset parameter values ​​corresponding to the key parameters based on the virtual addresses to avoid affecting the parameter values ​​at the actual addresses. Figure 2 ,Then, for the key parameters that have passed the compliance check of the preset parameter values, the corresponding actual addresses can be obtained according to the virtual address mapping, so that the key parameters can be calibrated based on the actual addresses of the key parameters to ensure the accuracy of the key parameter calibration.

[0075] The following describes the parameter calibration method in detail, taking the CCP protocol as an example. The CCP protocol is a CAN bus-based ECU calibration protocol that can quickly and effectively calibrate an ECU.

[0076] Figure 3 It is a flow chart of the parameter calibration method based on the CCP protocol provided by the present invention.

[0077] like Figure 3 As shown, the parameter calibration method based on the CCP protocol provided in this embodiment specifically includes:

[0078] The first step is to obtain calibration information of the parameter to be calibrated, where the calibration information of the parameter to be calibrated includes a memory address corresponding to the parameter to be calibrated and a preset parameter value corresponding to the parameter to be calibrated.

[0079] For example, obtaining calibration information of the parameter to be calibrated includes: obtaining a memory address corresponding to the parameter to be calibrated, wherein, if the parameter to be calibrated is the key parameter, the memory address corresponding to the parameter to be calibrated is a virtual address; if the parameter to be calibrated is the ordinary parameter, the memory address corresponding to the parameter to be calibrated is an actual address; obtaining a preset parameter value corresponding to the parameter to be calibrated; and obtaining the calibration information of the parameter to be calibrated based on the memory address corresponding to the parameter to be calibrated and the preset parameter value corresponding to the parameter to be calibrated.

[0080] Wherein, obtaining the memory address corresponding to the parameter to be calibrated includes:

[0081] 1) ECU allocates memory addresses for each parameter to be calibrated. For common parameters, actual addresses are directly allocated. For key parameters, virtual addresses are allocated. Common parameters directly open their actual addresses to the outside world, while key parameters open their virtual addresses to the outside world.

[0082] 2) Generate an A2L file based on the memory addresses assigned to the parameters to be calibrated.

[0083] Specifically, an EFL or MAP file can be generated by compiling software based on the memory addresses allocated to the parameters to be calibrated. The EFL or MAP file can then be converted into an A2L file according to the ASAM standard, and the A2L file's upper and lower limits, type, etc. can be set. The A2L file is a description format for ECU parameters defined by the ASAMMCD-2MC standard for measurement and calibration purposes, and has a conventional meaning known in the art.

[0084] 3) Parse and verify the A2L file.

[0085] In order to read and write the parameters to be calibrated, the target file corresponding to the parameters to be calibrated needs to be parsed. In the embodiment of the present invention, the target file is an A2L file. By parsing the A2L file, the data type, memory address, conversion formula, precision, offset and other attributes of the parameters to be calibrated can be obtained.

[0086] Specifically, the A2L file can be parsed and verified by a host computer. For example, the host computer can use CANape calibration software to verify the format of the A2L file and the set parameters. After the host computer verifies, the verification results need to be further checked to ensure that the verification results are accurate.

[0087] 4) Based on the CCP protocol, the memory address corresponding to the parameter to be calibrated is obtained from the parsed and verified A2L file. Specifically, the calibration information of the parameter to be calibrated is downloaded from the host computer via the CCP protocol.

[0088] The step of obtaining the preset parameter value corresponding to the parameter to be calibrated includes setting the preset parameter value via a host computer, which may be a PC or a mobile phone, connected to the ECU via a dedicated CAN communication device and calibrating the ECU based on the CCP protocol.

[0089] In the second step, the ECU determines the type of the parameter to be calibrated based on the memory address corresponding to the parameter to be calibrated, and the type of the parameter to be calibrated includes a key parameter and a common parameter.

[0090] In the third step, if the parameter to be calibrated is a key parameter, the ECU performs a compliance check on the preset parameter value corresponding to the key parameter. After the ECU performs the compliance check, it is necessary to further check the verification result to ensure the accuracy of the verification result. If the parameter to be calibrated is a common parameter, the ECU modifies the parameter value of the common parameter to the corresponding preset parameter value based on the memory address corresponding to the common parameter. The memory address corresponding to the common parameter refers to the actual address of the common parameter.

[0091] In the fourth step, if the preset parameter value corresponding to the key parameter passes the compliance check, the parameter value of the key parameter is modified to the corresponding preset parameter value based on the memory address corresponding to the key parameter. The actual address corresponding to the key parameter is determined based on the memory address corresponding to the key parameter, and then the parameter value of the key parameter is modified to the corresponding preset parameter value based on the actual address corresponding to the key parameter, completing the calibration of the key parameter.

[0092] In the fifth step, if the key parameters fail the compliance check, the ECU feeds back a check failure signal to the host computer and does not calibrate the key parameters.

[0093] The parameter calibration method based on the CCP protocol provided in an embodiment of the present invention adopts the CCP protocol, and can use mature calibration tools to increase the audience of the ECU. The CCP protocol avoids the recompilation of the ECU's underlying software, and can quickly and effectively implement the calibration of the ECU, further ensuring the reliability and security of the ECU calibration. In addition, the parameters are divided into common parameters and key parameters, and hierarchical management and control are carried out, taking into account flexibility and efficiency, further ensuring the security and reliability of the key parameter calibration. For key parameters, the ECU verification is added to improve the accuracy of the key parameter calibration and optimize the working performance of the ECU. For common parameters, the ECU verification is not performed, which is conducive to improving the efficiency of parameter calibration.

[0094] The parameter calibration device provided by the present invention is described below. The parameter calibration device described below and the parameter calibration method described above can be referred to in correspondence with each other. Figure 4 As shown, the parameter calibration device includes:

[0095] An acquisition module 401 is configured to acquire calibration information of a parameter to be calibrated, wherein the calibration information of the parameter to be calibrated includes a memory address corresponding to the parameter to be calibrated and a preset parameter value corresponding to the parameter to be calibrated;

[0096] A determination module 402 is configured to determine the type of the parameter to be calibrated based on the memory address corresponding to the parameter to be calibrated, where the type of the parameter to be calibrated includes a key parameter and a common parameter;

[0097] A verification module 403 is configured to, if the parameter to be calibrated is a key parameter, perform compliance verification on a preset parameter value corresponding to the key parameter;

[0098] The modification module 404 is configured to modify the parameter value of the key parameter to the corresponding preset parameter value through the memory address corresponding to the key parameter if the preset parameter value corresponding to the key parameter passes the compliance check.

[0099] For example, the acquisition module 401 is specifically configured to:

[0100] Obtaining a memory address corresponding to the parameter to be calibrated, wherein if the parameter to be calibrated is the key parameter, the memory address corresponding to the parameter to be calibrated is a virtual address; if the parameter to be calibrated is the common parameter, the memory address corresponding to the parameter to be calibrated is an actual address;

[0101] Obtaining a preset parameter value corresponding to the parameter to be calibrated;

[0102] Based on the memory address corresponding to the parameter to be calibrated and the preset parameter value corresponding to the parameter to be calibrated, calibration information of the parameter to be calibrated is obtained.

[0103] For example, the determining module 402 is specifically configured to:

[0104] The memory address corresponding to the parameter to be calibrated is compared with a set memory address threshold to determine the type of the parameter to be calibrated.

[0105] For example, the modification module 404 is further configured to:

[0106] If the parameter to be calibrated is a common parameter, the parameter value of the common parameter is modified to the corresponding preset parameter value through the memory address corresponding to the common parameter.

[0107] For example, the modification module 404 is specifically configured to:

[0108] Mapping the virtual address corresponding to the key parameter to the actual address corresponding to the key parameter;

[0109] The parameter value of the key parameter is modified to the corresponding preset parameter value through the actual address corresponding to the key parameter.

[0110] The present invention further provides a vehicle ECU comprising: the parameter calibration device as described in any one of the above. The vehicle ECU comprises a memory, wherein the memory can store the modified parameter values ​​obtained by the parameter calibration method as described in any one of the above.

[0111] Vehicle ECUs include but are not limited to ABS (anti-lock braking system), ACC (adaptive cruise control), BMS (battery management system), EMS (engine management system), automatic driving controller, VCU (vehicle control unit), etc.

[0112] The present invention further provides a vehicle, comprising: the vehicle ECU as described above. The vehicle ECU optimized by parameter calibration can further optimize the control performance of the vehicle.

[0113] Figure 5 An example of a physical structure diagram of an electronic device is shown below. Figure 5 As shown, the electronic device may include: a processor (processor) 501, a communication interface (Communications Interface) 502, a memory (memory) 603 and a communication bus 504, wherein the processor 501, the communication interface 502, and the memory 503 communicate with each other via the communication bus 504. The processor 501 may call the logic instructions in the memory 503 to execute the parameter calibration method, which includes:

[0114] Acquire calibration information of the parameter to be calibrated, where the calibration information of the parameter to be calibrated includes a memory address corresponding to the parameter to be calibrated and a preset parameter value corresponding to the parameter to be calibrated;

[0115] Determining the type of the parameter to be calibrated based on the memory address corresponding to the parameter to be calibrated, where the type of the parameter to be calibrated includes a key parameter and a common parameter;

[0116] If the parameter to be calibrated is a key parameter, performing compliance verification on the preset parameter value corresponding to the key parameter;

[0117] If the preset parameter value corresponding to the key parameter passes the compliance check, the parameter value of the key parameter is modified to the corresponding preset parameter value through the memory address corresponding to the key parameter.

[0118] In addition, the logic instructions in the above-mentioned memory 503 can be implemented in the form of a software functional unit and can be stored in a computer-readable storage medium when sold or used as an independent product. Based on this understanding, the technical solution of the present invention, or the part that contributes to the prior art, or the part of the technical solution, can be embodied in the form of a software product. The computer software product is stored in a storage medium and includes several instructions for enabling a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present invention. The aforementioned storage medium includes: various media that can store program codes, such as a USB flash drive, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk.

[0119] On the other hand, the present invention further provides a computer program product, comprising a computer program stored on a non-transitory computer-readable storage medium, wherein the computer program comprises program instructions. When the program instructions are executed by a computer, the computer is capable of performing the parameter calibration method provided by the above methods, the method comprising:

[0120] Acquire calibration information of the parameter to be calibrated, where the calibration information of the parameter to be calibrated includes a memory address corresponding to the parameter to be calibrated and a preset parameter value corresponding to the parameter to be calibrated;

[0121] Determining the type of the parameter to be calibrated based on the memory address corresponding to the parameter to be calibrated, where the type of the parameter to be calibrated includes a key parameter and a common parameter;

[0122] If the parameter to be calibrated is a key parameter, performing compliance verification on the preset parameter value corresponding to the key parameter;

[0123] If the preset parameter value corresponding to the key parameter passes the compliance check, the parameter value of the key parameter is modified to the corresponding preset parameter value through the memory address corresponding to the key parameter.

[0124] In another aspect, the present invention further provides a non-transitory computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, is implemented to perform the parameter calibration methods provided above, the methods comprising:

[0125] Acquire calibration information of the parameter to be calibrated, where the calibration information of the parameter to be calibrated includes a memory address corresponding to the parameter to be calibrated and a preset parameter value corresponding to the parameter to be calibrated;

[0126] Determining the type of the parameter to be calibrated based on the memory address corresponding to the parameter to be calibrated, where the type of the parameter to be calibrated includes a key parameter and a common parameter;

[0127] If the parameter to be calibrated is a key parameter, performing compliance verification on the preset parameter value corresponding to the key parameter;

[0128] If the preset parameter value corresponding to the key parameter passes the compliance check, the parameter value of the key parameter is modified to the corresponding preset parameter value through the memory address corresponding to the key parameter.

[0129] The device embodiments described above are merely illustrative. The units described as separate components may or may not be physically separate, and the components shown as units may or may not be physical units, i.e., they may be located in one location or distributed across multiple network units. Some or all of the modules may be selected based on actual needs to achieve the objectives of the present embodiment. Persons of ordinary skill in the art will be able to understand and implement the present invention without inventive effort.

[0130] Through the description of the above embodiments, those skilled in the art can clearly understand that each embodiment can be implemented by means of software plus a necessary general hardware platform, or of course, by hardware. Based on this understanding, the essence of the above technical solution or the part that contributes to the existing technology can be embodied in the form of a software product. The computer software product can be stored in a computer-readable storage medium, such as ROM / RAM, a magnetic disk, an optical disk, etc., and includes a number of instructions for enabling a computer device (which can be a personal computer, a server, or a network device, etc.) to execute the methods described in each embodiment or certain parts of the embodiments.

[0131] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit it. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the various embodiments of the present invention.

Claims

1. A parameter calibration method, characterized in that: include: Acquire calibration information of the parameter to be calibrated, where the calibration information of the parameter to be calibrated includes a memory address corresponding to the parameter to be calibrated and a preset parameter value corresponding to the parameter to be calibrated; Determining the type of the parameter to be calibrated based on the memory address corresponding to the parameter to be calibrated, where the type of the parameter to be calibrated includes a key parameter and a common parameter, wherein determining the type of the parameter to be calibrated based on the memory address corresponding to the parameter to be calibrated includes: Comparing the memory address corresponding to the parameter to be calibrated with a set memory address threshold to determine the type of the parameter to be calibrated; If the parameter to be calibrated is a key parameter, performing compliance verification on the preset parameter value corresponding to the key parameter; If the preset parameter value corresponding to the key parameter passes the compliance check, the parameter value of the key parameter is modified to the corresponding preset parameter value through the memory address corresponding to the key parameter.

2. The parameter calibration method according to claim 1, characterized in that: The step of obtaining calibration information of the parameters to be calibrated includes: Obtaining a memory address corresponding to the parameter to be calibrated, wherein if the parameter to be calibrated is the key parameter, the memory address corresponding to the parameter to be calibrated is a virtual address; if the parameter to be calibrated is the common parameter, the memory address corresponding to the parameter to be calibrated is an actual address; Obtaining a preset parameter value corresponding to the parameter to be calibrated; Based on the memory address corresponding to the parameter to be calibrated and the preset parameter value corresponding to the parameter to be calibrated, calibration information of the parameter to be calibrated is obtained.

3. The parameter calibration method according to any one of claims 1 to 2, characterized in that: After determining the type of the parameter to be calibrated based on the memory address corresponding to the parameter to be calibrated, the method further includes: If the parameter to be calibrated is a common parameter, the parameter value of the common parameter is modified to the corresponding preset parameter value through the memory address corresponding to the common parameter.

4. The parameter calibration method according to claim 2, characterized in that: The step of modifying the parameter value of the key parameter to the corresponding preset parameter value by using the memory address corresponding to the key parameter includes: Mapping the virtual address corresponding to the key parameter to the actual address corresponding to the key parameter; The parameter value of the key parameter is modified to the corresponding preset parameter value through the actual address corresponding to the key parameter.

5. A parameter calibration device, characterized in that: include: An acquisition module, configured to acquire calibration information of a parameter to be calibrated, wherein the calibration information of the parameter to be calibrated includes a memory address corresponding to the parameter to be calibrated and a preset parameter value corresponding to the parameter to be calibrated; A determination module is configured to determine the type of the parameter to be calibrated based on the memory address corresponding to the parameter to be calibrated, where the type of the parameter to be calibrated includes a key parameter and a common parameter. The determining the type of the parameter to be calibrated based on the memory address corresponding to the parameter to be calibrated includes: Comparing the memory address corresponding to the parameter to be calibrated with a set memory address threshold to determine the type of the parameter to be calibrated; a verification module, configured to, if the parameter to be calibrated is a key parameter, perform compliance verification on a preset parameter value corresponding to the key parameter; The modification module is used to modify the parameter value of the key parameter to the corresponding preset parameter value through the memory address corresponding to the key parameter if the preset parameter value corresponding to the key parameter passes the compliance check.

6. A vehicle ECU, characterized in that: include: The parameter calibration device as claimed in claim 5.

7. A vehicle, characterized in that: include: The vehicle ECU according to claim 6.

8. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein: When the processor executes the program, the parameter calibration method according to any one of claims 1 to 4 is implemented.

9. A non-transitory computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the parameter calibration method according to any one of claims 1 to 4 is implemented.

Citation Information

Patent Citations

  • Control method based on CCP or XCP protocol

    CN111781909A

  • Control parameter processing method, device and equipment

    CN113805559A

  • Aerial work platform parameter calibration control method and system

    CN113816317A

  • Data measurement calibration method and device, vehicle controller, vehicle and medium

    CN114740825A