A parameter calibration method, device, storage medium and electronic device
By constructing calibration description files based on mapping files and dealing with the problem of inconsistent address digits, the CCP protocol is compatible with various types of processors, solving the problem of high calibration costs, reducing calibration costs and improving versatility.
Patent Information
- Application Number
- CN202411008677.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-26
- Publication Date
- 2025-05-06
- Estimated Expiration
- 2044-07-26
AI Technical Summary
When calibrating ECU chips, the calibration cost is high and lacks universality because the number of bits supported by the calibration tool is incompatible with the minimum addressing length of the ECU chip.
The file is constructed based on the pre-edited mapping file corresponding to the driver of the target electronic control unit, and the calibration description file is generated for calibration, and processed according to the address of the parameters to be calibrated in the file and the number of address bits supported by the calibration protocol of the pre-determined automotive electronic control unit to generate the target calibration description file to achieve compatibility between the calibration protocol and various types of processors.
The calibration protocol is compatible with various types of processors, reducing the cost of preset calibration tools to calibrate various types of processors without the need to design new hardware or large-scale modification software.
Smart Images

Figure CN119126612B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of embedded development technology, and in particular to a parameter calibration method, device, storage medium and electronic equipment. Background Art
[0002] With the rapid development of automotive electronics, in the process of developing vehicle ECU (electronic control unit), due to the large number of parameters involved in ECU and the uncertainty of parameters in different environments, ECU parameter calibration has become an indispensable link. At present, the bus distribution on the car is basically based on the CAN bus. CCP is an ECU calibration protocol based on the CAN bus, which has been widely used in the field of automotive electronics. When the minimum addressing length of the ECU chip to be calibrated is different from the number of bits supported by the calibration protocol. The existing CCP (CAN Calibration Protocol, referred to as CCP) protocol calibration method mainly improves the CCP protocol calibration protocol on the upper computer side, and the lower computer modifies the data transmission method to achieve it. Although this method is feasible, the driver of each CAN card is different, so secondary development is required for different CAN card drivers, and it is not universal in terms of equipment and has a high cost. Summary of the invention
[0003] In view of this, the present invention provides a parameter calibration method, device, storage medium and electronic device, the main purpose of which is to solve the problem of high cost of ECU calibration when the number of bits supported by the calibration tool is incompatible with the minimum addressing length of the ECU chip.
[0004] To solve the above problems, the present application provides a parameter calibration method, including:
[0005] Performing file construction based on a pre-edited mapping file corresponding to a driver program of a target electronic control unit to obtain a calibration description file for calibrating parameters to be calibrated of the target electronic control unit;
[0006] Processing the first address according to the first address corresponding to the parameter to be calibrated in the calibration description file and the number of address bits supported by the predetermined automotive electronic control unit calibration protocol to generate a target calibration description file;
[0007] The parameters to be calibrated of the target electronic control unit are calibrated based on the target calibration description file and predetermined target calibration values corresponding to the parameters to be calibrated to obtain calibration results.
[0008] Optionally, before constructing the file based on the pre-edited mapping file corresponding to the driver of the target electronic control unit, the method further includes:
[0009] Based on the preset collector, the command request corresponding to the command receiving object is sent to the lower computer;
[0010] Performing periodic data collection on each predetermined parameter of the target electronic control unit based on the periodic parameters carried in the command request to obtain an initial data set;
[0011] When the number of address bits corresponding to each predetermined parameter in the target electronic control unit is the same as the number of address bits supported by the predetermined automotive electronic control unit calibration protocol, determining the initial data set as a measurement data set;
[0012] When the number of address bits corresponding to each predetermined parameter in the target electronic control unit is different from the number of address bits supported by the predetermined automotive electronic control unit calibration protocol, the initial data set is processed based on the number of address bits supported by the predetermined automotive electronic control unit calibration protocol to obtain a target data set, and the target data set is determined as a measurement data set.
[0013] Optionally, before constructing the file based on the pre-edited mapping file corresponding to the driver of the target electronic control unit, the method further includes:
[0014] Based on the observation data set, a to-be-calibrated parameter of the target electronic control unit and a target calibration value corresponding to the to-be-calibrated parameter are determined.
[0015] Optionally, the file construction based on the pre-edited mapping file corresponding to the driver of the target electronic control unit to obtain a calibration description file for calibrating the parameters to be calibrated of the target electronic control unit specifically includes:
[0016] Perform information screening based on the mapping file to obtain device parameter information, interface parameter information, and target electronic control unit parameter information used to generate the calibration description file;
[0017] Based on the device parameter information, the interface parameter information and the target electronic control unit parameter information, a file is constructed to generate a calibration description file for calibrating the parameters to be calibrated of the target electronic control unit;
[0018] The calibration description file carries a target device identifier and member variables corresponding to the target device.
[0019] Optionally, the processing of the first address corresponding to the parameter to be calibrated in the calibration description file and the number of address bits supported by the predetermined automotive electronic control unit calibration protocol to generate a target calibration description file specifically includes:
[0020] Performing a division operation on the first address bit number corresponding to the parameter to be calibrated in the calibration description file and the address bit number supported by the predetermined automotive electronic control unit calibration protocol, to obtain a value where the first address bit number is a multiple of the address bit number supported by the predetermined automotive electronic control unit calibration protocol;
[0021] Performing a multiplication operation based on the first address and the multiple value to obtain a second address supported by the predetermined automotive electronic control unit calibration protocol;
[0022] A file is constructed based on the second address to obtain the target calibration description file.
[0023] Optionally, calibrating the parameters to be calibrated of the target electronic control unit based on the target calibration description file and the predetermined target calibration values corresponding to the parameters to be calibrated to obtain the calibration results specifically includes:
[0024] The second address and the predetermined target calibration value in the target calibration description file are sent to a lower computer to prompt the lower computer to calibrate the parameter to be calibrated based on the second address and the predetermined target calibration value to obtain a calibration result.
[0025] Optionally, the performing a multiplication operation based on the first address and the multiple value to obtain a second address supported by the predetermined automotive electronic control unit calibration protocol specifically includes:
[0026] When the number of address bits supported by the predetermined automotive electronic control unit calibration protocol is 8 bits and the number of bits of the first address is 16 bits, modifying the bit type of the first address to a word type to obtain the second address;
[0027] When the number of address bits supported by the predetermined automotive electronic control unit calibration protocol is 8 bits and the number of bits of the first address is 32 bits, the bit type of the first address is modified to a floating point type to obtain the second address.
[0028] In order to solve the above problems, the present application provides a parameter calibration device, which is compatible with various types of processors, and the device includes:
[0029] A file construction module, used for performing file construction based on a pre-edited mapping file corresponding to a driver program of a target electronic control unit, to obtain a calibration description file for calibrating parameters to be calibrated of the target electronic control unit;
[0030] An address processing module, used for processing the first address corresponding to the parameter to be calibrated in the calibration description file according to the first address and the number of address bits supported by the predetermined automotive electronic control unit calibration protocol, to generate a target calibration description file;
[0031] The calibration module is used to calibrate the parameters to be calibrated of the target electronic control unit based on the target calibration description file and the predetermined target calibration values corresponding to the parameters to be calibrated to obtain calibration results.
[0032] In order to solve the above problem, the present application provides a storage medium, characterized in that the storage medium stores a computer program, and when the computer program is executed by a processor, the steps of the above parameter calibration method are implemented.
[0033] In order to solve the above problem, the present application provides an electronic device, characterized in that it includes at least a memory and a processor, the memory stores a computer program, and the processor implements the steps of the above-mentioned parameter calibration method when executing the computer program on the memory.
[0034] Beneficial effects of the present application: The present application constructs a file based on a pre-edited mapping file corresponding to the driver of the target electronic control unit to obtain a calibration description file for calibrating the parameters to be calibrated of the target electronic control unit; the first address corresponding to the parameter to be calibrated in the calibration description file and the number of address bits supported by the predetermined automotive electronic control unit calibration protocol are processed to generate a target calibration description file; the calibration protocol can be made compatible with various types of processors by changing the address corresponding to the parameter to be calibrated in the calibration description file, which is simple to implement and does not require the design of new hardware or large-scale software modification. The parameters to be calibrated of the target electronic control unit are calibrated based on the target calibration description file and the predetermined target calibration value corresponding to the parameter to be calibrated to obtain a calibration result. The cost of calibrating various types of processors with preset calibration tools is saved.
[0035] The above description is only an overview of the technical solution of the present invention. In order to more clearly understand the technical means of the present invention, it can be implemented according to the contents of the specification. In order to make the above and other purposes, features and advantages of the present invention more obvious and easy to understand, the specific implementation methods of the present invention are listed below. BRIEF DESCRIPTION OF THE DRAWINGS
[0036] Various other advantages and benefits will become apparent to those of ordinary skill in the art by reading the detailed description of the preferred embodiments below. The accompanying drawings are only for the purpose of illustrating the preferred embodiments and are not to be considered as limiting the present invention. Moreover, the same reference symbols are used throughout the accompanying drawings to represent the same components. In the accompanying drawings:
[0037] Figure 1 A schematic diagram of a process flow of a parameter calibration method provided in an embodiment of the present application is shown;
[0038] Figure 2A schematic diagram of a process flow of a parameter calibration method provided by another embodiment of the present application is shown;
[0039] Figure 3 A structural block diagram of a parameter calibration device provided in another embodiment of the present application is shown. DETAILED DESCRIPTION
[0040] Various aspects and features of the present application are described herein with reference to the accompanying drawings.
[0041] It should be understood that various modifications may be made to the embodiments of the present application. Therefore, the above description should not be considered as limiting, but only as an example of the embodiments. Other modifications within the scope and spirit of the present application will occur to those skilled in the art.
[0042] The accompanying drawings, which are incorporated in and constitute a part of the specification, illustrate embodiments of the present application and, together with the general description of the present application given above and the detailed description of the embodiments given below, serve to explain the principles of the present application.
[0043] These and other characteristics of the present application will become apparent from the following description of a preferred form of embodiment given as a non-limiting example with reference to the accompanying drawings.
[0044] It should also be understood that although the present application has been described with reference to some specific examples, those skilled in the art will be able to readily implement many other equivalent forms of the present application.
[0045] The above and other aspects, features and advantages of the present application will become more apparent in view of the following detailed description when taken in conjunction with the accompanying drawings.
[0046] Specific embodiments of the present application are described hereinafter with reference to the accompanying drawings; however, it should be understood that the embodiments applied for are merely examples of the present application, which may be implemented in a variety of ways. Well-known and / or repeated functions and structures are not described in detail to avoid unnecessary or redundant details that obscure the present application. Therefore, the specific structural and functional details applied for herein are not intended to be limiting, but merely serve as a basis and representative basis for the claims to teach those skilled in the art to use the present application in a variety of ways with substantially any suitable detailed structure.
[0047] This specification may use the phrases "in one embodiment," "in another embodiment," "in yet another embodiment," or "in other embodiments," all of which may refer to one or more of the same or different embodiments according to the present application.
[0048] The present application embodiment provides a parameter calibration method, such as Figure 1 As shown, including:
[0049] Step S101: constructing a file based on a pre-edited mapping file corresponding to a driver program of a target electronic control unit to obtain a calibration description file for calibrating parameters to be calibrated of the target electronic control unit;
[0050] In the specific implementation process of this step, the mapping file is a MAP file, which is a text file that contains various information about the decisions made by the linker when generating an executable file. The main purpose of the MAP file is to help developers understand the layout of the program in memory, as well as to identify and debug symbol reference problems. The MAP file includes the entry point address of the program. The address and size of the program segments, including code segments, data segments, etc. The symbol table lists the name, type, address and other information of all symbols (such as function names, variable names) in the program. The address and size of statically allocated global variables and static variables. It also includes information such as the relocation table and the string table. The calibration description file is an A2L file, and the file is constructed by obtaining the relevant information corresponding to the parameters to be calibrated in the MAP file to obtain the calibration description file for calibrating the parameters to be calibrated of the target electronic control unit.
[0051] Step S102: processing the first address corresponding to the parameter to be calibrated in the calibration description file according to the first address and the number of address bits supported by the predetermined automotive electronic control unit calibration protocol to generate a target calibration description file;
[0052] In the specific implementation process of this step, a division operation is performed based on the first address bit number and the address bit number supported by the predetermined automotive electronic control unit calibration protocol to obtain a value that is a multiple of the address bit number supported by the predetermined automotive electronic control unit calibration protocol; a multiplication operation is performed based on the first address and the multiple value to obtain a second address supported by the predetermined automotive electronic control unit calibration protocol; and a file is constructed based on the second address to obtain the target calibration description file.
[0053] Step S103: Calibrate the parameters to be calibrated of the target electronic control unit based on the target calibration description file and the predetermined target calibration values corresponding to the parameters to be calibrated to obtain calibration results.
[0054] During the specific implementation of this step, the second address and the predetermined target calibration value in the target calibration description file are sent to the lower computer to prompt the lower computer to calibrate the parameters to be calibrated based on the second address and the predetermined target calibration value to obtain a calibration result.
[0055] The present application constructs a file based on a pre-edited mapping file corresponding to the driver of the target electronic control unit to obtain a calibration description file for calibrating the parameters to be calibrated of the target electronic control unit; the first address corresponding to the parameter to be calibrated in the calibration description file and the number of address bits supported by the predetermined automotive electronic control unit calibration protocol are processed to generate a target calibration description file; the calibration protocol can be made compatible with various types of processors by changing the address corresponding to the parameter to be calibrated in the calibration description file, which is simple to implement and does not require the design of new hardware or large-scale software modification. The parameters to be calibrated of the target electronic control unit are calibrated based on the target calibration description file and the predetermined target calibration value corresponding to the parameter to be calibrated to obtain a calibration result. The cost of calibrating various types of processors with preset calibration tools is saved.
[0056] Another embodiment of the present application provides another parameter calibration method, such as Figure 2 As shown, including:
[0057] Step S201: obtaining a measurement data set;
[0058] In the specific implementation process of this step, the command request corresponding to the command receiving object is sent to the lower computer based on the preset collector; the preset collector is a data acquisition unit DAQ (Data Acquisition Command, referred to as DAQ). Based on the periodic parameters carried in the command request, periodic data acquisition is performed on each predetermined parameter of the target electronic control unit to obtain an initial data set; in the DAQ mode, the master device first sends a command requesting DAQ, and after receiving the command, the slave device configures itself according to the parameters in the command and uploads data to the master device, and uploads data to the master device autonomously according to a certain period. When the number of address bits corresponding to each predetermined parameter in the target electronic control unit is the same as the number of address bits supported by the predetermined automotive electronic control unit calibration protocol, the initial data set is determined as a measurement data set; when the number of address bits corresponding to each predetermined parameter in the target electronic control unit is different from the number of address bits supported by the predetermined automotive electronic control unit calibration protocol, the initial data set is processed based on the number of address bits supported by the predetermined automotive electronic control unit calibration protocol to obtain a target data set, and the target data set is determined as a measurement data set. Specifically, when the number of address bits corresponding to each predetermined parameter in the target electronic control unit is different from the number of address bits supported by the predetermined automotive electronic control unit calibration protocol, a division operation is performed based on the number of address bits corresponding to each predetermined parameter and the number of address bits supported by the predetermined automotive electronic control unit calibration protocol to obtain a first multiple, the address corresponding to each of the predetermined parameters is multiplied by the first multiple, a new address corresponding to each of the predetermined parameters is generated, a target data set is obtained, and the target data set is determined as a measurement data set.
[0059] Step S202: determining the parameters to be calibrated of the target electronic control unit and the target calibration values corresponding to the parameters to be calibrated based on the measurement data set;
[0060] In the specific implementation process of this step, a certain parameter or certain parameters in the measurement data set that deviate from the expected value can be determined as parameters to be calibrated through the measurement data set and the current operating status of the vehicle, and the target calibration value corresponding to each parameter to be calibrated can be determined based on each parameter to be calibrated and the preset design requirements.
[0061] Step S203: constructing a file based on a pre-edited mapping file corresponding to the driver of the target electronic control unit to obtain a calibration description file for calibrating the parameters to be calibrated of the target electronic control unit;
[0062] In the specific implementation process of this step, information screening is performed based on the mapping file to obtain device parameter information, interface parameter information and target electronic control unit parameter information for generating the calibration description file; file construction is performed based on the device parameter information, the interface parameter information and the target electronic control unit parameter information to generate a calibration description file for calibrating the parameters to be calibrated of the target electronic control unit; wherein the calibration description file carries the target device identifier and the member variables corresponding to the target device. The mapping file is a MAP file, which is a text file that contains various information about the decisions made by the linker when generating an executable file. The main purpose of the MAP file is to help developers understand the layout of the program in memory, as well as to identify and debug symbol reference problems. The MAP file includes the entry point address of the program. The address and size of the program segments, including code segments, data segments, etc. The symbol table lists the name, type, address and other information of all symbols (such as function names, variable names) in the program. The address and size of statically allocated global variables and static variables. It also includes information such as a relocation table and a string table. The calibration description file is an A2L file, which is constructed by obtaining relevant information corresponding to the parameters to be calibrated in the MAP file to obtain a calibration description file for calibrating the parameters to be calibrated of the target electronic control unit.
[0063] Step S204: performing a division operation on the first address bit number corresponding to the parameter to be calibrated in the calibration description file and the address bit number supported by the predetermined automotive electronic control unit calibration protocol to obtain a value that the first address bit number is a multiple of the address bit number supported by the predetermined automotive electronic control unit calibration protocol;
[0064] In the specific implementation process of this step, when the address bit number supported by the predetermined automotive electronic control unit calibration protocol is 8 bits and the first address bit number is 16 bits, a division operation is performed according to the first address bit number corresponding to the parameter to be calibrated in the calibration description file and the address bit number supported by the predetermined automotive electronic control unit calibration protocol, and the first address bit number is obtained as a multiple of 2 times the address bit number supported by the predetermined automotive electronic control unit calibration protocol; when the address bit number supported by the predetermined automotive electronic control unit calibration protocol is 8 bits and the first address bit number is 32 bits, a division operation is performed according to the first address bit number corresponding to the parameter to be calibrated in the calibration description file and the address bit number supported by the predetermined automotive electronic control unit calibration protocol, and the first address bit number is obtained as a multiple of 4 times the address bit number supported by the predetermined automotive electronic control unit calibration protocol.
[0065] Step S205: performing a multiplication operation based on the first address and the multiple value to obtain a second address supported by the predetermined automotive electronic control unit calibration protocol;
[0066] In the specific implementation of this step, when the address bit number supported by the predetermined automotive electronic control unit calibration protocol is 8 bits and the first address bit number is 16 bits, the bit type of the first address is modified to a word type to obtain the second address; when the address bit number supported by the predetermined automotive electronic control unit calibration protocol is 8 bits and the first address bit number is 32 bits, the bit type of the first address is modified to a floating point type to obtain the second address. This application does not limit the type of automotive electronic control unit, and is applicable to higher-bit chip processors, such as 64-bit, 128-bit, etc., which can all be calibrated by the method of this application.
[0067] Step S206: constructing a file based on the second address to obtain the target calibration description file;
[0068] In the specific implementation process of this step, a predetermined file generation tool is used to construct a file for the second address corresponding to the parameter to be calibrated. The predetermined file generation tool can be an automotive electronic development tool such as CANape and INCA. The file is constructed based on the file category of the selected predetermined file generation tool and the configuration information configured for the file to be constructed to obtain the target calibration description file. The configuration information includes configuration information such as the ECU model and the parameter to be calibrated.
[0069] Step S207: Calibrate the parameters to be calibrated of the target electronic control unit based on the target calibration description file and the predetermined target calibration values corresponding to the parameters to be calibrated to obtain calibration results.
[0070] In the specific implementation process of this step, the target calibration description file is parsed and processed, and the upper computer parses the address of the array space storing the parameters to be optimized of the controlled device through the A2L description file; parses the driver file; finds the data segment storing this array space in the driver file according to the parsed address of the array space, and then writes the calibration values corresponding to the parameters to be optimized of the matched corresponding controlled device into this continuous array space through online or offline calibration; after the calibration is completed, the upper computer generates a new driver file according to the generation format of the driver; the upper computer is connected to the lower computer, and the new driver file is burned to the lower computer through the program burning module to complete the calibration of the lower computer.
[0071] The present application obtains a measurement data set; determines the parameters to be calibrated of the target electronic control unit and the target calibration values corresponding to the parameters to be calibrated based on the measurement data set; constructs a file based on a pre-edited mapping file corresponding to the driver of the target electronic control unit to obtain a calibration description file for calibrating the parameters to be calibrated of the target electronic control unit; performs a division operation on the first address bit number corresponding to the parameters to be calibrated in the calibration description file and the address bit number supported by the predetermined automotive electronic control unit calibration protocol to obtain a value where the first address bit number is a multiple of the address bit number supported by the predetermined automotive electronic control unit calibration protocol; performs a multiplication operation based on the first address and the multiple value to obtain a second address supported by the predetermined automotive electronic control unit calibration protocol; constructs a file based on the second address to obtain the target calibration description file; and calibrates the parameters to be calibrated of the target electronic control unit based on the target calibration description file and the predetermined target calibration values corresponding to the parameters to be calibrated to obtain a calibration result. By changing the address corresponding to the parameter to be calibrated in the calibration description file, the calibration protocol can be made compatible with various types of processors, which is simple to implement and does not require the design of new hardware or large-scale modification of software, thus saving the cost of calibrating various types of processors with preset calibration tools.
[0072] Another embodiment of the present application discloses a parameter calibration device, such as Figure 3 As shown, including:
[0073] A file construction module 1, used for performing file construction based on a pre-edited mapping file corresponding to a driver program of a target electronic control unit, to obtain a calibration description file for calibrating parameters to be calibrated of the target electronic control unit;
[0074] An address processing module 2, used for processing the first address corresponding to the parameter to be calibrated in the calibration description file according to the first address and the number of address bits supported by the predetermined automotive electronic control unit calibration protocol, to generate a target calibration description file;
[0075] The calibration module 3 is used to calibrate the parameters to be calibrated of the target electronic control unit based on the target calibration description file and the predetermined target calibration values corresponding to the parameters to be calibrated to obtain calibration results.
[0076] In a specific implementation process, the parameter calibration device also includes: a measurement data set acquisition module, which is specifically used to: send a command request corresponding to a command receiving object to a lower computer based on a preset collector; perform periodic data acquisition on each predetermined parameter of the target electronic control unit based on the periodic parameters carried in the command request to obtain an initial data set; when the number of address bits corresponding to each predetermined parameter in the target electronic control unit is the same as the number of address bits supported by the predetermined automotive electronic control unit calibration protocol, determine the initial data set as a measurement data set; when the number of address bits corresponding to each predetermined parameter in the target electronic control unit is different from the number of address bits supported by the predetermined automotive electronic control unit calibration protocol, process the initial data set based on the number of address bits supported by the predetermined automotive electronic control unit calibration protocol to obtain a target data set, and determine the target data set as a measurement data set.
[0077] In a specific implementation process, the parameter calibration device further includes: a determination module, which is specifically used to: determine the parameters to be calibrated of the target electronic control unit and the target calibration values corresponding to the parameters to be calibrated based on the observation data set.
[0078] In the specific implementation process, the file construction module 1 is specifically used to: perform information screening based on the mapping file to obtain device parameter information, interface parameter information and target electronic control unit parameter information used to generate the calibration description file; perform file construction based on the device parameter information, the interface parameter information and the target electronic control unit parameter information to generate a calibration description file for calibrating the parameters to be calibrated of the target electronic control unit; wherein the calibration description file carries a target device identifier and member variables corresponding to the target device.
[0079] In the specific implementation process, the address processing module 2 specifically includes: performing a division operation on the first address bit number corresponding to the parameter to be calibrated in the calibration description file and the address bit number supported by the predetermined automotive electronic control unit calibration protocol to obtain a value where the first address bit number is a multiple of the address bit number supported by the predetermined automotive electronic control unit calibration protocol; performing a multiplication operation based on the first address and the multiple value to obtain a second address supported by the predetermined automotive electronic control unit calibration protocol; and performing a file construction based on the second address to obtain the target calibration description file.
[0080] In the specific implementation process, the calibration module 3 is specifically used to: send the second address and the predetermined target calibration value in the target calibration description file to the lower computer, so as to prompt the lower computer to calibrate the parameters to be calibrated based on the second address and the predetermined target calibration value to obtain the calibration result.
[0081] In the specific implementation process, the calibration module 3 is also used for: when the number of address bits supported by the predetermined automotive electronic control unit calibration protocol is 8 bits and the number of bits of the first address is 16 bits, the bit type of the first address is modified to a word type to obtain the second address; when the number of address bits supported by the predetermined automotive electronic control unit calibration protocol is 8 bits and the number of bits of the first address is 32 bits, the bit type of the first address is modified to a floating point type to obtain the second address.
[0082] The present application constructs a file based on a pre-edited mapping file corresponding to the driver of the target electronic control unit to obtain a calibration description file for calibrating the parameters to be calibrated of the target electronic control unit; the first address corresponding to the parameter to be calibrated in the calibration description file and the number of address bits supported by the predetermined automotive electronic control unit calibration protocol are processed to generate a target calibration description file; the calibration protocol can be made compatible with various types of processors by changing the address corresponding to the parameter to be calibrated in the calibration description file, which is simple to implement and does not require the design of new hardware or large-scale software modification. The parameters to be calibrated of the target electronic control unit are calibrated based on the target calibration description file and the predetermined target calibration value corresponding to the parameter to be calibrated to obtain a calibration result. The cost of calibrating various types of processors with preset calibration tools is saved.
[0083] Another embodiment of the present application provides a storage medium, wherein the storage medium stores a computer program, and when the computer program is executed by a processor, the following method steps are implemented:
[0084] Step 1: constructing a file based on a pre-edited mapping file corresponding to a driver program of a target electronic control unit to obtain a calibration description file for calibrating parameters to be calibrated of the target electronic control unit;
[0085] Step 2: Processing the first address corresponding to the parameter to be calibrated in the calibration description file according to the first address and the number of address bits supported by the predetermined automotive electronic control unit calibration protocol to generate a target calibration description file;
[0086] Step three: calibrate the parameters to be calibrated of the target electronic control unit based on the target calibration description file and the predetermined target calibration values corresponding to the parameters to be calibrated to obtain calibration results.
[0087] Those skilled in the art can understand that all or part of the processes in the above-mentioned embodiment methods can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to memory, storage, database or other media used in the embodiments provided in this application can include non-volatile and / or volatile memory. Non-volatile memory can include read-only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM) or flash memory. Volatile memory can include random access memory (RAM) or external cache memory. As an illustration and not limitation, RAM is available in many forms, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double data rate SDRAM (DDRSDRAM), enhanced SDRAM (ESDRAM), synchronous link (Synchlink) DRAM (SLDRAM), memory bus (Rambus) direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM).
[0088] Those skilled in the art can clearly understand that for the convenience and simplicity of description, only the division of the above-mentioned functional units and modules is used as an example. In actual applications, the above-mentioned functions can be distributed and completed by different functional units and modules as needed, that is, the internal structure of the device can be divided into different functional units or modules to complete all or part of the functions described above.
[0089] The specific implementation process of the above method steps can refer to the embodiments of the above-mentioned arbitrary parameter calibration method, and this embodiment will not be repeated here.
[0090] The present application constructs a file based on a pre-edited mapping file corresponding to the driver of the target electronic control unit to obtain a calibration description file for calibrating the parameters to be calibrated of the target electronic control unit; the first address corresponding to the parameter to be calibrated in the calibration description file and the number of address bits supported by the predetermined automotive electronic control unit calibration protocol are processed to generate a target calibration description file; the calibration protocol can be made compatible with various types of processors by changing the address corresponding to the parameter to be calibrated in the calibration description file, which is simple to implement and does not require the design of new hardware or large-scale software modification. The parameters to be calibrated of the target electronic control unit are calibrated based on the target calibration description file and the predetermined target calibration value corresponding to the parameter to be calibrated to obtain a calibration result. The cost of calibrating various types of processors with preset calibration tools is saved.
[0091] Another embodiment of the present application provides an electronic device, which may be a server, and the electronic device includes a processor, a memory, a network interface, and a database connected via a system bus. The processor of the electronic device is used to provide computing and control capabilities. The memory of the electronic device includes a non-volatile and / or volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, a computer program, and a database. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The network interface of the electronic device is used to communicate with an external client via a network connection. When the electronic device program is executed by the processor, it implements a function or step on the server side of a parameter calibration method.
[0092] In one embodiment, an electronic device is provided, which may be a client. The electronic device includes a processor, a memory, a network interface, a display screen, and an input device connected via a system bus. The processor of the electronic device is used to provide computing and control capabilities. The memory of the electronic device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The network interface of the electronic device is used to communicate with an external server via a network connection. When the electronic device program is executed by the processor, the functions or steps on the client side of a parameter calibration method are implemented.
[0093] Another embodiment of the present application provides an electronic device, comprising at least a memory and a processor, wherein the memory stores a computer program, and the processor implements the following method steps when executing the computer program in the memory:
[0094] Step 1: constructing a file based on a pre-edited mapping file corresponding to a driver program of a target electronic control unit to obtain a calibration description file for calibrating parameters to be calibrated of the target electronic control unit;
[0095] Step 2: Processing the first address corresponding to the parameter to be calibrated in the calibration description file according to the first address and the number of address bits supported by the predetermined automotive electronic control unit calibration protocol to generate a target calibration description file;
[0096] Step three: calibrate the parameters to be calibrated of the target electronic control unit based on the target calibration description file and the predetermined target calibration values corresponding to the parameters to be calibrated to obtain calibration results.
[0097] The specific implementation process of the above method steps can refer to the embodiments of the above-mentioned arbitrary parameter calibration method, and this embodiment will not be repeated here.
[0098] The present application constructs a file based on a pre-edited mapping file corresponding to the driver of the target electronic control unit to obtain a calibration description file for calibrating the parameters to be calibrated of the target electronic control unit; the first address corresponding to the parameter to be calibrated in the calibration description file and the number of address bits supported by the predetermined automotive electronic control unit calibration protocol are processed to generate a target calibration description file; the calibration protocol can be made compatible with various types of processors by changing the address corresponding to the parameter to be calibrated in the calibration description file, which is simple to implement and does not require the design of new hardware or large-scale software modification. The parameters to be calibrated of the target electronic control unit are calibrated based on the target calibration description file and the predetermined target calibration value corresponding to the parameter to be calibrated to obtain a calibration result. The cost of calibrating various types of processors with preset calibration tools is saved.
[0099] The above embodiments are only exemplary embodiments of the present application and are not intended to limit the present application. The protection scope of the present application is defined by the claims. Those skilled in the art may make various modifications or equivalent substitutions to the present application within the essence and protection scope of the present application, and such modifications or equivalent substitutions shall also be deemed to fall within the protection scope of the present application.
Claims
1. A parameter calibration method, characterized in that: Compatible with various types of processors, the method includes: Performing file construction based on a pre-edited mapping file corresponding to a driver program of a target electronic control unit to obtain a calibration description file for calibrating parameters to be calibrated of the target electronic control unit; Processing the first address according to the first address corresponding to the parameter to be calibrated in the calibration description file and the number of address bits supported by the predetermined automotive electronic control unit calibration protocol to generate a target calibration description file; Calibrate the parameters to be calibrated of the target electronic control unit based on the target calibration description file and the predetermined target calibration values corresponding to the parameters to be calibrated to obtain calibration results; Before constructing the file based on the pre-edited mapping file corresponding to the driver program of the target electronic control unit, the method further includes: Based on the preset collector, the command request corresponding to the command receiving object is sent to the lower computer; Performing periodic data collection on each predetermined parameter of the target electronic control unit based on the periodic parameters carried in the command request to obtain an initial data set; When the number of address bits corresponding to each predetermined parameter in the target electronic control unit is the same as the number of address bits supported by the predetermined automotive electronic control unit calibration protocol, determining the initial data set as a measurement data set; When the number of address bits corresponding to each predetermined parameter in the target electronic control unit is different from the number of address bits supported by the predetermined automotive electronic control unit calibration protocol, the initial data set is processed based on the number of address bits supported by the predetermined automotive electronic control unit calibration protocol to obtain a target data set, and the target data set is determined as a measurement data set; Based on the measurement data set, a to-be-calibrated parameter of the target electronic control unit and a target calibration value corresponding to the to-be-calibrated parameter are determined.
2. The method according to claim 1, characterized in that The file construction is performed based on the pre-edited mapping file corresponding to the driver program of the target electronic control unit to obtain a calibration description file for calibrating the parameters to be calibrated of the target electronic control unit, specifically including: Perform information screening based on the mapping file to obtain device parameter information, interface parameter information, and target electronic control unit parameter information used to generate the calibration description file; Based on the device parameter information, the interface parameter information and the target electronic control unit parameter information, a file is constructed to generate a calibration description file for calibrating the parameters to be calibrated of the target electronic control unit; The calibration description file carries a target device identifier and member variables corresponding to the target device.
3. The method according to claim 1, characterized in that The processing of the first address according to the first address corresponding to the parameter to be calibrated in the calibration description file and the number of address bits supported by the predetermined automotive electronic control unit calibration protocol to generate a target calibration description file specifically includes: Performing a division operation on the first address bit number corresponding to the parameter to be calibrated in the calibration description file and the address bit number supported by the predetermined automotive electronic control unit calibration protocol, to obtain a value where the first address bit number is a multiple of the address bit number supported by the predetermined automotive electronic control unit calibration protocol; Performing a multiplication operation based on the first address and the multiple value to obtain a second address supported by the predetermined automotive electronic control unit calibration protocol; A file is constructed based on the second address to obtain the target calibration description file.
4. The method according to claim 3, characterized in that The step of calibrating the parameters to be calibrated of the target electronic control unit based on the target calibration description file and the predetermined target calibration values corresponding to the parameters to be calibrated to obtain calibration results specifically includes: The second address and the predetermined target calibration value in the target calibration description file are sent to a lower computer to prompt the lower computer to calibrate the parameter to be calibrated based on the second address and the predetermined target calibration value to obtain a calibration result.
5. The method according to claim 3, characterized in that The performing of multiplication processing based on the first address and the multiple value to obtain the second address supported by the predetermined automotive electronic control unit calibration protocol specifically includes: When the number of address bits supported by the predetermined automotive electronic control unit calibration protocol is 8 bits and the number of bits of the first address is 16 bits, modifying the bit type of the first address to a word type to obtain the second address; When the number of address bits supported by the predetermined automotive electronic control unit calibration protocol is 8 bits and the number of bits of the first address is 32 bits, the bit type of the first address is modified to a floating point type to obtain the second address.
6. A parameter calibration device, characterized in that: Compatible with various types of processors, the device includes: A measurement data set acquisition module, the measurement data set acquisition module is specifically used to: send a command request corresponding to a command receiving object to a lower computer based on a preset collector; perform periodic data acquisition on each predetermined parameter of a target electronic control unit based on a periodic parameter carried in the command request to obtain an initial data set; when the number of address bits corresponding to each predetermined parameter in the target electronic control unit is the same as the number of address bits supported by a predetermined automotive electronic control unit calibration protocol, determine the initial data set as a measurement data set; when the number of address bits corresponding to each predetermined parameter in the target electronic control unit is different from the number of address bits supported by the predetermined automotive electronic control unit calibration protocol, process the initial data set based on the number of address bits supported by the predetermined automotive electronic control unit calibration protocol to obtain a target data set, and determine the target data set as a measurement data set; A determination module, the determination module is specifically used to: determine the to-be-calibrated parameters of the target electronic control unit and the target calibration value corresponding to the to-be-calibrated parameters based on the measurement data set; A file construction module, used for performing file construction based on a pre-edited mapping file corresponding to a driver program of a target electronic control unit, to obtain a calibration description file for calibrating parameters to be calibrated of the target electronic control unit; An address processing module, used for processing the first address corresponding to the parameter to be calibrated in the calibration description file according to the first address and the number of address bits supported by the predetermined automotive electronic control unit calibration protocol, to generate a target calibration description file; The calibration module is used to calibrate the parameters to be calibrated of the target electronic control unit based on the target calibration description file and the predetermined target calibration values corresponding to the parameters to be calibrated to obtain calibration results.
7. A storage medium, characterized in that: The storage medium stores a computer program, and when the computer program is executed by a processor, the steps of the parameter calibration method according to any one of claims 1 to 5 are implemented.
8. An electronic device, characterized in that: The method comprises at least a memory and a processor, wherein the memory stores a computer program, and the processor implements the steps of the parameter calibration method according to any one of claims 1 to 5 when executing the computer program on the memory.
Citation Information
Patent Citations
Systems and methods for memory map utilization
CN105700493A
An A2L variable address processing method and device
CN109697279A
Engine controller calibration system and method based on grammar configuration function
CN116540675A