Vehicle calibration method and device, vehicle and storage medium
By allocating storage areas in the MCU's FLASH and RAM, and using the compiler's address mapping mechanism, the calibration problem of the MCU without Overlay function is solved, the data solidification process is simplified, efficient vehicle parameter calibration and data solidification are achieved, and the cost is reduced development costs.
Patent Information
- Application Number
- CN202310153099.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-02-22
- Publication Date
- 2024-08-23
AI Technical Summary
MCUs without overlay functions in the existing technology are difficult to calibrate vehicle parameters, and the data solidification process is complex and inconvenient, resulting in additional waste of storage space and verification logic development costs.
Open a first storage area in the FLASH memory of the micro control unit, open a second storage area in the RAM memory, and use the compiler's own virtual address and load address mapping mechanism to map the working values of the vehicle parameters with the reference values. Simplify the data solidification process and achieve calibration data solidification through two address flips based on Offset.
It simplifies the process of vehicle parameter calibration, reduces FLASH space occupation, avoids users from developing copy logic and verification logic, realizes the direct solidification of calibration data into HEX files, supports the software upgrade process, and improves the usability and efficiency of calibration data.
Smart Images

Figure CN118535198A
Abstract
Description
Technical Field
[0001] The present invention belongs to the field of vehicle technology, and in particular relates to a vehicle calibration method, device, vehicle and storage medium. Background Art
[0002] Vehicle calibration is the process of optimizing software data after the engine, vehicle, control algorithm, and peripheral devices are determined in order to obtain satisfactory vehicle performance, meet customer requirements, and meet national standards.
[0003] With the development of automotive chips, most of the newer and higher-end MCUs (Microcontroller Units) currently have Overlay functions, which means that when Overlay is enabled during calibration, hardware can convert the read and write FLASH addresses to RAM (Random Access Memory) mapping addresses. However, some older or relatively low-end MCU chips do not have this function, and the mainstream model development tool is Simulink, and the generated code cannot use pointers as flexibly as handwritten code. Therefore, the calibration-related work pages can only be set to the RAM area, which leads to the problem of data solidification. Summary of the invention
[0004] In view of this, the embodiments of the present invention provide a vehicle calibration method, device, vehicle and storage medium to solve the problem in the prior art that MCU without OverLay function is difficult to calibrate.
[0005] A first aspect of an embodiment of the present invention provides a vehicle calibration method, comprising:
[0006] A first storage area is opened in the FLASH memory of the microcontroller unit, and a second storage area is opened in the RAM memory of the microcontroller unit; wherein the first storage area is used to store reference values of various vehicle parameters, and the second storage area is used to store working values of various vehicle parameters;
[0007] designating the loading address of the working value of each vehicle parameter as the storage address of the corresponding reference value;
[0008] The working values of the various vehicle parameters are updated according to the newly acquired calibration values of the various vehicle parameters.
[0009] In combination with the first aspect, in a possible implementation manner of the first aspect, updating the working value of each vehicle parameter according to the newly acquired calibration value of each vehicle parameter includes:
[0010] Obtaining the calibration address of each vehicle parameter, the calibration address is obtained by the calibration tool reading the storage address of the working value of each vehicle parameter and adding the offset value corresponding to each vehicle parameter, the offset value being the offset size of the storage address of the working value of each vehicle parameter relative to the storage address of the reference value;
[0011] Subtract the offset value corresponding to each vehicle parameter from the storage address of the reference value of each vehicle parameter to obtain the storage address of the working value of each vehicle parameter;
[0012] Based on the storage address of the working value of each vehicle parameter, the working value of each vehicle parameter is updated to the newly acquired calibration value of each vehicle parameter in the second storage area of the RAM memory.
[0013] Furthermore, after the working values of the various vehicle parameters are updated to the newly acquired calibration values of the various vehicle parameters, the method further includes:
[0014] The calibration addresses of the various vehicle parameters and the newly acquired calibration values of the various vehicle parameters are exported as executable files to solidify the newly acquired calibration values of the various vehicle parameters.
[0015] Furthermore, after the calibration values of each newly acquired vehicle parameter are solidified, the following steps are also included:
[0016] According to the executable file and the preset software upgrade method, the reference values of various vehicle parameters stored in the first storage area of the FLASH memory of the target vehicle are upgraded and updated;
[0017] The target vehicle is any vehicle whose vehicle parameters need to be calibrated.
[0018] Furthermore, the software upgrade method is a remote wireless upgrade process, or a controller software upgrade process based on a unified diagnostic service.
[0019] In combination with the first aspect, in a possible implementation manner of the first aspect, a calibration protocol used when calibrating the vehicle is an XCP protocol.
[0020] In combination with the first aspect, in a possible implementation manner of the first aspect, after the vehicle is powered off and then powered on again, working values of various vehicle parameters are initialized according to reference values of various vehicle parameters.
[0021] A second aspect of an embodiment of the present invention provides a vehicle calibration device, including:
[0022] A processing module, configured to open a first storage area in a FLASH memory of a microcontroller unit and a second storage area in a RAM memory of the microcontroller unit; wherein the first storage area is used to store reference values of various vehicle parameters, and the second storage area is used to store working values of various vehicle parameters; and designating a loading address of the working value of each vehicle parameter as a storage address of a corresponding reference value;
[0023] The updating module is used to update the working value of each vehicle parameter according to the newly acquired calibration value of each vehicle parameter.
[0024] A third aspect of an embodiment of the present invention provides a vehicle, including an electronic device, the electronic device including a memory, a processor, and a computer program stored in the memory and executable on the processor, and when the processor executes the computer program, the steps of the vehicle calibration method in the first aspect or any possible implementation of the first aspect are implemented.
[0025] A fourth aspect of an embodiment of the present invention provides a computer-readable storage medium, which stores a computer program. When the computer program is executed by a processor, it implements the steps of the vehicle calibration method in the above-mentioned first aspect or any possible implementation method of the first aspect.
[0026] Compared with the prior art, the embodiments of the present invention have the following beneficial effects:
[0027] The embodiment of the present invention opens a first storage area in the FLASH memory of the microcontroller unit and opens a second storage area in the RAM memory of the microcontroller unit. The first storage area is used to store reference values of various vehicle parameters, and the second storage area is used to store working values of various vehicle parameters. The loading address of the working value of each vehicle parameter is designated as the storage address of the corresponding reference value, thereby utilizing the compiler's own virtual address and loading address mapping mechanism to achieve mapping of working values and reference values. Moreover, because the reference value of the FLASH memory must exist, when the calibration data is relocated and the power-on initialization is performed, there is no need for the user to separately develop copy logic and verification logic, thereby simplifying the process and reducing the occupancy of the FLASH space. BRIEF DESCRIPTION OF THE DRAWINGS
[0028] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative labor.
[0029] Figure 1 is a flow chart of a vehicle calibration method provided by an embodiment of the present invention;
[0030] Figure 2 is a schematic diagram of vehicle parameter storage provided by an embodiment of the present invention;
[0031] Figure 3 is a schematic diagram of a vehicle calibration process provided by an embodiment of the present invention;
[0032] Figure 4 is a schematic diagram of the structure of a vehicle calibration device provided by an embodiment of the present invention;
[0033] Figure 5 It is a schematic diagram of the structure of an electronic device provided by an embodiment of the present invention. DETAILED DESCRIPTION
[0034] In the following description, specific details such as specific system structures, technologies, etc. are provided for the purpose of illustration rather than limitation, so as to provide a thorough understanding of the embodiments of the present invention. However, it should be clear to those skilled in the art that the present invention may be implemented in other embodiments without these specific details. In other cases, detailed descriptions of well-known systems, devices, circuits, and methods are omitted to prevent unnecessary details from obstructing the description of the present invention.
[0035] In order to illustrate the technical solution of the present invention, a specific embodiment is provided below for illustration.
[0036] In the prior art, for an MCU main control chip without an Overlay function, the vehicle parameter-related working page can only be set in the RAM area, which in turn leads to the problem of data solidification.
[0037] For example, a common method is to freeze the calibration data into a planned FLASH reference area (with additional verification value) through the cooperation of the host computer calibration tool and the MCU embedded software. During the power-on process of the controller, the data and verification value are frozen by verifying the FLASH reference area. If the verification passes, the data in the FLASH area is copied to the RAM area. If it fails (maybe the data has not been frozen), the default value of the RAM area is used.
[0038] The disadvantage of this solution is that the vehicle parameters are defined in the RAM area, so the addresses of all vehicle parameters in the A2L file (the A2L file is a calibration description file based on text format, describing the parameters related to ECU communication, as well as the addresses of calibration and observation variables and physical value calculation formulas, etc.) are all RAM addresses. Therefore, after the calibration results are saved in the HEX file (the HEX file is given to the corresponding calibration tester for testing), its segment addresses are also RAM address segments. This file cannot be used as a calibration data upgrade (calibration data upgrade requires solidified data, so FLASH address segments are required). It is necessary to customize additional tools to convert the HEX full text address before it can be used as a calibration HEX. Another way to extract solidified data is to read the reference page data of the FLASH specified area from the controller through the JTAG port of the controller through a special tool, and the process is also very inconvenient. In addition, the additional planning of FLASH for data freezing has the possibility of unfrozen branches, so it is necessary to verify the legitimacy of the reference data, resulting in a waste of additional storage space and the development cost of additional verification logic.
[0039] In view of the above problems, an embodiment of the present invention provides a new vehicle calibration method, which aims to implement the calibration function for an MCU without an Overlay function and simplify the process of extracting solidified data and copying reference page data to working page data after the controller is powered on.
[0040] See also Figure 1 As shown, the specific implementation process is as follows:
[0041] Step S101, open a first storage area in the FLASH memory of the microcontroller unit, open a second storage area in the RAM memory of the microcontroller unit, and specify the loading address of the working value of each vehicle parameter as the storage address of the corresponding reference value; wherein the first storage area is used to store the reference value of each vehicle parameter, and the second storage area is used to store the working value of each vehicle parameter.
[0042] FLASH memory is a type of memory device and is a non-volatile memory.
[0043] RAM memory is also called random access memory. The contents of the storage unit can be randomly taken out or stored as needed, and the access speed is independent of the location of the storage unit. This type of memory will lose its storage content when power is off, so it is mainly used to store programs that are used for a short time.
[0044] For example, assume the following environment:
[0045] There are 2 byte type calibration quantities: Cal_Var1 and Cal_Var2;
[0046] Working page start address (RAM): (WORKADDR) 0xB00A0000;
[0047] Reference page start address (FLASH): (REFADDR) 0x80CE0000;
[0048] Calibration area length (CAL_WORKPAGE_SIZE): 16384 (16k) bytes;
[0049] The compilation environment is the GNU system compiler.
[0050] Then, you can define the reference page partition (i.e., the first storage area in the FLASH memory) and the working page partition (i.e., the second storage area in the RAM memory) in the Link file; then define and initialize the vehicle parameters in the C file, and specify the name of the vehicle parameter input segment; define the starting address of the working page output segment in the Link file as: WORKADDR, and select the previously defined vehicle parameters, and then specify its "load address" as the reference page partition established previously; and define the CopyTable data structure in the Link file, fill in the relevant information of the working page output segment, and after completing the above operations and compiling it into an A2L file with the compiler, the storage relationship of the vehicle parameters in the address space can be seen in Figure 2 shown.
[0051] Step S102, updating the working value of each vehicle parameter according to the newly acquired calibration value of each vehicle parameter.
[0052] In this embodiment, the staff can input the calibration value and update the working value stored in the working page partition. Since this embodiment borrows the mechanism of assigning the initial value of the global memory, each time the controller is powered on, the startup code elegantly assigns the calibration value stored in the reference page to the memory during the initialization and assignment of all vehicle parameters. Because the original value in the reference page must exist, not only the development of the copy logic is omitted here, but also the development of the verification logic is not required. At the same time, after the calibration value is written to the reference page partition, the controller is powered on, the vehicle parameters in the working page partition are changed to the updated parameter values in the reference page partition, and the application software uses the new values in the working page and executes the calibrated logic.
[0053] It can be seen that the embodiment of the present invention opens a first storage area in the FLASH memory of the microcontroller unit and a second storage area in the RAM memory of the microcontroller unit. The first storage area is used to store reference values of various vehicle parameters, and the second storage area is used to store working values of various vehicle parameters. The loading address of the working value of each vehicle parameter is designated as the storage address of the corresponding reference value, thereby utilizing the compiler's own virtual address and loading address mapping mechanism to achieve mapping of working values and reference values. Moreover, because the reference value of the FLASH memory must exist, when the calibration data is relocated and the power-on initialization is performed, there is no need for the user to separately develop copy logic and verification logic, thereby simplifying the process and reducing the occupancy of the FLASH space.
[0054] As a possible implementation, in step S102, the working values of each vehicle parameter are updated according to the newly acquired calibration values of each vehicle parameter, which can be described in detail as follows:
[0055] Obtaining the calibration address of each vehicle parameter, the calibration address is obtained by the calibration tool reading the storage address of the working value of each vehicle parameter and adding the offset value corresponding to each vehicle parameter, the offset value being the offset size of the storage address of the working value of each vehicle parameter relative to the storage address of the reference value;
[0056] Subtract the offset value corresponding to each vehicle parameter from the storage address of the reference value of each vehicle parameter to obtain the storage address of the working value of each vehicle parameter;
[0057] Based on the storage address of the working value of each vehicle parameter, the working value of each vehicle parameter is updated to the newly acquired calibration value of each vehicle parameter in the second storage area of the RAM memory.
[0058] In this embodiment, the problem of data solidification and extraction needs to be further solved.
[0059] At present, the mainstream protocol used in the automotive industry is the XCP protocol, and the mainstream calibration tools are CANape or INCA (the principles are basically the same, this article takes CANape as an example). What we hope to achieve is that after the vehicle parameters in the RAM memory (working page partition) are calibrated and updated by the calibration tool, all the final calibration values can be solidified into a HEX file, and its address is the reference page address (FLASH address). After the previous software is compiled, an A2L file is generated. Since the working page is located in the RAM memory, the addresses of all vehicle parameters are RAM addresses. The vehicle parameter address information extracted by the calibration tool from the A2L file is also the RAM address. Therefore, after the HEX file is generated, the address information of all vehicle parameters is the RAM address, which is inconsistent with our expected goal.
[0060] To solve the above problem, this embodiment uses a two-address flip method based on Offset to achieve our expected goal, as follows:
[0061] Calculate the offset between the address of "working page" (0xB00A0000) and "reference page" (0x80CE0000) as 0xD0C40000, and set the offset in the A2L file.
[0062] After such a change, the calibration tool will add this offset Offset to the address (RAM) of all vehicle parameters to obtain the final calibration address (which has been converted into the reference page address at this time), and the calibration tool will also understand all vehicle parameter addresses as the address of the reference page (FLASH). In this way, when it saves the final calibration value, it can be saved as the address of the reference page (FLASH). However, there is still a problem that all calibration addresses in the XCP command sent during the calibration process have become the reference page address (FLASH), and the value of FLASH cannot be changed during the calibration process. What needs to be sent is the address in the working page (RAM) to complete the change of the value of the vehicle parameter in the working page. Therefore, the offset Offset can be subtracted from the received address in the software on the MCU side, and the address can be restored to the working page address, so that the vehicle parameters in the working page are changed during the calibration value change process.
[0063] For example, see Figure 3 As shown in the figure, taking the value of vehicle parameter Cal_Var1 updated from 43 to 77 as an example, the calibration process is described in detail:
[0064] (1) Obtain the calibration value 77 and calibration address TransAddr of the vehicle parameter Cal_Var1 (the calibration address TransAddr is obtained by the CANape host computer reading the working page storage address Addr (Cal_Var1) of the vehicle parameter Cal_Var1 and adding the offset value Offset);
[0065] (2) Subtract Offset from the calibration address TransAddr to obtain the working page storage address of Cal_Var1;
[0066] (3) According to the working page storage address of Cal_Var1, the working value of Cal_Var1 is updated to 77.
[0067] In this way, after calibration, the value of "Cal_Var1" on the working page is updated from 43 to 77, and all software logic using this data will change (the significance of the calibration process), but the value of the corresponding position on the reference page (FLASH) has not changed and remains 43. If the controller is powered on again at this time, the working page will be reinitialized by the reference page, causing the value of "Cal_Var1" to be restored to 43.
[0068] For further information, see Figure 3 As shown, after the working values of each vehicle parameter are updated to the newly acquired calibration values of each vehicle parameter, the method further includes:
[0069] The calibration addresses of the various vehicle parameters and the newly acquired calibration values of the various vehicle parameters are exported as executable files to solidify the newly acquired calibration values of the various vehicle parameters.
[0070] In this embodiment, since the calibration address TransAddr is the reference page address, the CANape host computer selects the solidification range as the reference page, and the address range of the generated HEX file is within the reference page range, and the value at the corresponding address of "Cal_Var1" is 77. After calibration is achieved through the mainstream calibration tool (CANape / INCA) using two address offset flips, the calibration result is directly saved to the HEX file (the address is the reference page address specified in FLASH), and the HEX file can be directly used for subsequent software upgrades without the need to develop additional conversion tools and other complex data extraction processes.
[0071] For further information, see Figure 3 As shown, after the calibration values of each newly acquired vehicle parameter are solidified, the following steps are also included:
[0072] According to the executable file and the preset software upgrade method, the reference values of various vehicle parameters stored in the first storage area of the FLASH memory of the target vehicle are upgraded and updated;
[0073] The target vehicle is any vehicle whose vehicle parameters need to be calibrated.
[0074] In this embodiment, the exported HEX file is solidified, and the vehicles can be upgraded in batches through the software upgrade channel. After the upgrade is completed, the value of "Cal_Var1" in the reference page of all upgraded vehicles is updated to 77. If the controller is powered on again at this time, the working page is initialized by the reference page, and Cal_Var1" is initialized to 77, indicating that all updated vehicles have applied the calibrated optimization logic.
[0075] As a possible implementation method, the software upgrade method may be a remote wireless upgrade process, or the software upgrade method may be a controller software upgrade process based on a unified diagnostic service, or the software upgrade method may be other types of upgrade processes, which is not limited in this application.
[0076] As a possible implementation method, the calibration protocol used for vehicle calibration can be the XCP protocol. XCP protocol: Universal Calibration Protocol, universal calibration protocol, is mainly used to change certain parameters directly on the software. For example: various parameters need to be modified frequently during calibration. If a series of steps such as compiling, debugging, generating, and downloading are required every time a parameter is modified, work efficiency will be greatly affected. Therefore, using XCP for calibration is very convenient.
[0077] In general, the embodiments of the present invention have the following advantages:
[0078] (1) The reference page is located in the data loading area, and the calibration data relocation and power-on initialization are automatically completed using the compiler's own mechanism and the MCU startup mechanism. This simplifies the calibration data copy process after the controller is powered on, eliminates the need for verification logic development, and reduces the FLASH space occupied.
[0079] (2) Using the offset-based two-time address flip method, the calibration tool can directly fix the calibration data into the HEX file of the FLASH address segment. This simplifies the generation and extraction process of fixed data, and eliminates the need for additional customized conversion tool development and use.
[0080] (3) Calibration data is updated through the software upgrade process, which can be applied to more scenarios, such as OTA. OTA (Over The Air) is a data value-added service (referred to as OTA service) based on the short message mechanism, which dynamically downloads, deletes and updates the service menu in the SIM card through the mobile terminal or server, so that users can obtain personalized information services. It is a technology for remotely managing SIM card data and applications through the air interface of mobile communications.
[0081] It should be understood that the order of execution of the steps in the above embodiment does not necessarily mean the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiment of the present invention.
[0082] The embodiment of the present invention provides a vehicle calibration device, see Figure 4 As shown, the vehicle calibration device 40 includes:
[0083] The processing module 41 is used to open a first storage area in the FLASH memory of the microcontroller unit and a second storage area in the RAM memory of the microcontroller unit; wherein the first storage area is used to store reference values of various vehicle parameters, and the second storage area is used to store working values of various vehicle parameters; and the loading address of the working value of each vehicle parameter is designated as the storage address of the corresponding reference value.
[0084] The updating module 42 is used to update the working value of each vehicle parameter according to the newly acquired calibration value of each vehicle parameter.
[0085] As a possible implementation, the updating module 42 is specifically used for:
[0086] Obtaining the calibration address of each vehicle parameter, the calibration address is obtained by the calibration tool reading the storage address of the working value of each vehicle parameter and adding the offset value corresponding to each vehicle parameter, the offset value being the offset size of the storage address of the working value of each vehicle parameter relative to the storage address of the reference value;
[0087] Subtract the offset value corresponding to each vehicle parameter from the storage address of the reference value of each vehicle parameter to obtain the storage address of the working value of each vehicle parameter;
[0088] Based on the storage address of the working value of each vehicle parameter, the working value of each vehicle parameter is updated to the newly acquired calibration value of each vehicle parameter in the second storage area of the RAM memory.
[0089] As a possible implementation manner, after updating the working value of each vehicle parameter to the newly acquired calibration value of each vehicle parameter, the updating module 42 is further used to:
[0090] The calibration addresses of the various vehicle parameters and the newly acquired calibration values of the various vehicle parameters are exported as executable files to solidify the newly acquired calibration values of the various vehicle parameters.
[0091] As a possible implementation, after the newly acquired calibration values of each vehicle parameter are solidified, the updating module 42 is further used to:
[0092] According to the executable file and the preset software upgrade method, the reference values of various vehicle parameters stored in the first storage area of the FLASH memory of the target vehicle are upgraded and updated;
[0093] The target vehicle is any vehicle whose vehicle parameters need to be calibrated.
[0094] As a possible implementation method, the software upgrade method is a remote wireless upgrade process, or a controller software upgrade process based on a unified diagnostic service.
[0095] As a possible implementation method, the calibration protocol used when calibrating the vehicle is the XCP protocol.
[0096] As a possible implementation manner, after the vehicle is powered off and then powered on again, the working values of the various vehicle parameters are initialized according to the reference values of the various vehicle parameters.
[0097] An embodiment of the present invention provides a vehicle, including an electronic device, the electronic device including a memory, a processor, and a computer program stored in the memory and executable on the processor, and the processor implements the steps of the vehicle calibration method as described above when executing the computer program.
[0098] Figure 5 FIG. 5 is a schematic diagram of an electronic device 50 provided in an embodiment of the present invention. Figure 5 As shown, the electronic device 50 of this embodiment includes: a processor 51, a memory 52, and a computer program 53 stored in the memory 52 and executable on the processor 51, such as a vehicle calibration program. When the processor 51 executes the computer program 53, the steps in the above-mentioned vehicle calibration method embodiments are implemented, such as Figure 1 Alternatively, when the processor 51 executes the computer program 53, the functions of each module in the above-mentioned device embodiments are realized, for example Figure 4 The functions of the modules 41 to 42 are shown.
[0099] Exemplarily, the computer program 53 may be divided into one or more modules / units, one or more modules / units are stored in the memory 52, and executed by the processor 51 to implement the present invention. One or more modules / units may be a series of computer program instruction segments capable of implementing specific functions, and the instruction segments are used to describe the execution process of the computer program 53 in the electronic device 50.
[0100] The electronic device 50 may be a computing device such as a desktop computer, a notebook, a PDA, or a cloud server. The electronic device 50 may include, but is not limited to, a processor 51 and a memory 52. Those skilled in the art will appreciate that Figure 5 It is only an example of the electronic device 50 and does not constitute a limitation of the electronic device 50. It may include more or fewer components than shown in the figure, or a combination of certain components, or different components. For example, the electronic device 50 may also include input and output devices, network access devices, buses, etc.
[0101] The processor 51 may be a central processing unit (CPU), or other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field-programmable gate arrays (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. A general-purpose processor may be a microprocessor or any conventional processor, etc.
[0102] The memory 52 may be an internal storage unit of the electronic device 50, such as a hard disk or memory of the electronic device 50. The memory 52 may also be an external storage device of the electronic device 50, such as a plug-in hard disk, a smart media card (SMC), a secure digital (SD) card, a flash card, etc. equipped on the electronic device 50. Further, the memory 52 may also include both an internal storage unit of the electronic device 50 and an external storage device. The memory 52 is used to store computer programs and other programs and data required by the electronic device 50. The memory 52 may also be used to temporarily store data that has been output or is to be output.
[0103] The technicians in the relevant field 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 for illustration. In practical applications, the above-mentioned function allocation can be 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. The functional units and modules in the embodiment can be integrated in a processing unit, or each unit can exist physically separately, or two or more units can be integrated in one unit. The above-mentioned integrated unit can be implemented in the form of hardware or in the form of software functional units. In addition, the specific names of the functional units and modules are only for the convenience of distinguishing each other, and are not used to limit the scope of protection of this application. The specific working process of the units and modules in the above-mentioned system can refer to the corresponding process in the aforementioned method embodiment, which will not be repeated here.
[0104] In the above embodiments, the description of each embodiment has its own emphasis. For parts that are not described or recorded in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.
[0105] Those skilled in the art will appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of the present invention.
[0106] In the embodiments provided by the present invention, it should be understood that the disclosed devices / electronic devices and methods can be implemented in other ways. For example, the device / electronic device embodiments described above are only schematic. For example, the division of modules or units is only a logical function division. There may be other division methods in actual implementation. For example, multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.
[0107] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0108] In addition, each functional unit in each embodiment of the present invention may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.
[0109] If the integrated module / unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the present invention implements all or part of the processes in the above-mentioned embodiment method, and can also be completed by instructing the relevant hardware through a computer program. The computer program can be stored in a computer-readable storage medium, and the computer program can implement the steps of the above-mentioned various method embodiments when executed by the processor. Among them, the computer program includes computer program code, and the computer program code can be in source code form, object code form, executable file or some intermediate form. Computer-readable media can include: any entity or device that can carry computer program code, recording medium, U disk, mobile hard disk, disk, optical disk, computer memory, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), electrical carrier signal, telecommunication signal and software distribution medium, etc.
[0110] The above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit the same. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that the technical solutions described in the aforementioned embodiments may still be modified, or some of the technical features may be replaced by equivalents. Such modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present invention, and should be included in the protection scope of the present invention.
Claims
1. A vehicle calibration method, characterized in that: include: A first storage area is opened in the FLASH memory of the microcontroller unit, and a second storage area is opened in the RAM memory of the microcontroller unit; wherein the first storage area is used to store reference values of various vehicle parameters, and the second storage area is used to store working values of various vehicle parameters; designating the loading address of the working value of each vehicle parameter as the storage address of the corresponding reference value; The working values of the various vehicle parameters are updated according to the newly acquired calibration values of the various vehicle parameters.
2. The vehicle calibration method according to claim 1, characterized in that: The working values of each vehicle parameter are updated according to the newly obtained calibration values of each vehicle parameter, including: Acquire the calibration address of each vehicle parameter, wherein the calibration address is obtained by reading the storage address of the working value of each vehicle parameter by the calibration tool and adding the offset value corresponding to each vehicle parameter, wherein the offset value is the offset size of the storage address of the working value of each vehicle parameter relative to the storage address of the reference value; Subtract the offset value corresponding to each vehicle parameter from the storage address of the reference value of each vehicle parameter to obtain the storage address of the working value of each vehicle parameter; Based on the storage address of the working value of each vehicle parameter, the working value of each vehicle parameter is updated to the newly acquired calibration value of each vehicle parameter in the second storage area of the RAM memory.
3. The vehicle calibration method according to claim 2, characterized in that: After the working values of the various vehicle parameters are updated to the newly acquired calibration values of the various vehicle parameters, the method further includes: The calibration addresses of the various vehicle parameters and the newly acquired calibration values of the various vehicle parameters are exported as executable files to solidify the newly acquired calibration values of the various vehicle parameters.
4. The vehicle calibration method according to claim 3, characterized in that: After the calibration values of the newly acquired vehicle parameters are solidified, it also includes: According to the executable file and the preset software upgrade method, the reference values of various vehicle parameters stored in the first storage area of the FLASH memory of the target vehicle are upgraded and updated; The target vehicle is any vehicle whose vehicle parameters need to be calibrated.
5. The vehicle calibration method according to claim 4, characterized in that: The software upgrade method is a remote wireless upgrade process, or a controller software upgrade process based on a unified diagnostic service.
6. The vehicle calibration method according to any one of claims 1 to 5, characterized in that: The calibration protocol used when calibrating the vehicle is the XCP protocol.
7. The vehicle calibration method according to any one of claims 1 to 5, characterized in that: After the vehicle is powered off and then powered on again, the working values of various vehicle parameters are initialized according to the reference values of various vehicle parameters.
8. A vehicle calibration device, characterized in that: include: A processing module, configured to open a first storage area in a FLASH memory of a microcontroller unit and a second storage area in a RAM memory of the microcontroller unit; wherein the first storage area is used to store reference values of various vehicle parameters, and the second storage area is used to store working values of various vehicle parameters; and designating a loading address of the working value of each vehicle parameter as a storage address of a corresponding reference value; The updating module is used to update the working value of each vehicle parameter according to the newly acquired calibration value of each vehicle parameter.
9. A vehicle, comprising an electronic device, the electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the computer program, the steps of the method according to any one of claims 1 to 7 are implemented.
10. A computer-readable storage medium storing a computer program, characterized in that: When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 7 are implemented.
Citation Information
Cited By
Vehicle parameter calibration method, device, equipment, storage medium and program product
CN119828667A
Active off-line calibration system and method for vehicle-mounted controller and vehicle-mounted controller
CN120595776A
