Controller software integration method, controller software assignment method, controller software integration device, controller software assignment device, vehicle, equipment and medium

By generating calibrated assignment functions and selection functions for different vehicle configurations, and integrating compilation to generate writeable target files, it solves the problems of complex software version management and increased testing and verification work under different vehicle configurations, and realizes the reduction of software versions and simplification of test and verification.

CN119960820APending Publication Date: 2025-05-09DEEPAL AUTOMOBILE TECH CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202510043005.0
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-01-10
Publication Date
2025-05-09

AI Technical Summary

Technical Problem

The existing software integration methods fail to effectively merge and compile into one target file when facing different vehicle configurations, resulting in complex software version management and increased testing and verification work.

Method used

By reading the calibration values ​​of all vehicle configurations from the application layer software model, a calibration assignment function and selection function for different vehicle configurations are generated, and integrated and compiled with the application layer software and the underlying software to generate a writeable target file.

Benefits of technology

This reduces the number of compiled software versions, simplifies software version management, and reduces subsequent software testing and verification work, while not affecting the calibration storage function modified when powering on and off the online calibration controller.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119960820A_ABST
    Figure CN119960820A_ABST
Patent Text Reader

Abstract

The invention provides a controller software integration method, a controller software assignment method, a controller software assignment device, a vehicle, equipment and a medium, which are used for reducing software versions. The controller software integration method compatible with different configuration calibration values comprises the following steps: reading all calibration values in all vehicle configurations from an application layer software model; generating calibration quantity assignment functions corresponding to different vehicle configurations, wherein the calibration quantity assignment functions are configured to assign variable calibration quantities in application layer software according to variable calibration quantity values in the corresponding vehicle configurations; generating a selection function, wherein the selection function is configured to select a target calibration quantity assignment function corresponding to the target whole vehicle configuration from the plurality of calibration quantity assignment functions according to the target whole vehicle configuration; the selection function is added into an initialization function of the application layer software, then the multiple calibration quantity assignment functions, the application layer software and the bottom layer software are integrated and compiled to generate a flammable target file, and the target file is used for being flashed into the vehicle-mounted controller.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention belongs to the field of software integration, and in particular relates to a controller software integration method, an assignment method, a device, a vehicle, equipment and a medium. Background Art

[0002] With the development of automobile electrification and intelligence, the amount of code in the on-board controller software is also growing rapidly. As the automobile development cycle is gradually shortened, the requirements for the software iteration speed are getting higher and higher. In order to meet the needs of different consumers, vehicle manufacturers have launched more and more complete vehicle configurations. For different vehicle configurations, the software can be platformized, but the software calibration parameters for various vehicle configurations are different, which leads to different software that is finally flashed to the controller. The current faster software iteration speed also puts higher requirements on software integration and software version management.

[0003] The Chinese patent with application number: 202010192164.4 and invention name: A method, device and server for integrated control of electronic control software for an automobile discloses a technical solution: a method, device and server for integrated control of electronic control software for an automobile are provided, and the method includes: when the electronic control software integration task of the automobile is triggered for execution, according to the configuration information in the configuration file, detecting whether software integration is performed; if software integration is performed, the application layer, middle layer and underlying code required for the software integration are checked out from the version control system SVN; the checked out code is integrated and compiled to generate a target file; the target file is packaged and uploaded to the SVN. The solution of the present invention realizes the scripting and automation of software integration work, saves time and improves efficiency. Although this solution can improve efficiency and save time, it does not consider merging and compiling software with different vehicle configurations but the same software logic and different calibration into one target file, which does not reduce the compiled software version, and the subsequent software testing and verification work is not reduced.

[0004] The Chinese patent with application number: CN 202110687831.0 and invention name: Software Integration Method, Device, Storage Medium and Electronic Device discloses a technical solution: a software integration method, device, storage medium and electronic device are proposed, the method comprising: determining whether all target resource files required for software integration exist according to the obtained multiple source files and software integration forms, the target resource files required for software integration are indicated in the software integration form; when it is determined that all the target resource files exist, the target resource files are integrated and compiled to obtain a compiled file; the compiled file is software tested, and when the software test passes, the compiled file is determined as the executable file corresponding to the target software obtained by software integration. In this scheme, the target resource files used for software integration are automatically checked based on the software development form, which reduces the manual workload, and can avoid invalid compilation processes to ensure the reliability of the compiled files obtained, but it does not consider merging and compiling software with different vehicle configurations but the same software logic and different calibration into one target file, which does not reduce the compiled software version, and the subsequent software testing and verification work is not reduced.

[0005] In summary, the existing software integration methods are all focused on solving the problem of automated software integration compilation, or performing targeted compilation based on the software integration form to address the problem of project application. Although the software integration efficiency is improved, it does not consider merging and compiling software with different vehicle configurations but the same software logic and different calibration into one target file, does not reduce the compiled software versions, and does not reduce the subsequent software testing and verification work. Summary of the invention

[0006] The present invention provides a controller software integration method, a vehicle-mounted controller calibration value assignment method, a device, a vehicle, equipment and a medium, which are used to reduce software versions.

[0007] The present invention can be achieved through the following technical solutions: On the one hand, the present application also provides a controller software integration method compatible with different configuration calibration values, including: Read all calibration values ​​in all vehicle configurations from the application layer software model; Generate a calibration quantity assignment function corresponding to different vehicle configurations, wherein the calibration quantity assignment function is configured to assign a variable calibration quantity in the application layer software according to a variable calibration quantity value in the corresponding vehicle configuration; Generate a selection function, wherein the selection function is configured to select a target calibration value assignment function corresponding to the target vehicle configuration from a plurality of calibration value assignment functions according to the target vehicle configuration; The selection function is added to the initialization function of the application layer software, and then multiple calibration value assignment functions, the application layer software and the underlying software are integrated and compiled to generate a flashable target file, and the target file is used to flash into the vehicle controller.

[0008] Preferably, the step of generating a calibration quantity assignment function corresponding to different vehicle configurations includes: Generate the corresponding calibration quantity assignment function C file according to different vehicle configurations; The calibration quantity assignment function C file corresponding to each vehicle configuration includes: The variable calibration quantity values ​​in the corresponding vehicle configuration are the values ​​assigned to all variable calibration quantities; All variable calibration amounts are identified from the total calibration amount values ​​read.

[0009] On the other hand, the present application also provides a method for assigning a calibration value to a vehicle controller, the method comprising: When the vehicle controller is powered on and initialized, a power-on initialization function is started from a target file written into the vehicle controller; the target file is generated according to the controller software integration method compatible with different configuration calibration values ​​described above; The power-on initialization function calls the selection function, so that the selection function calls the corresponding target calibration quantity assignment function according to the vehicle configuration; The selection function calls the target calibration value assignment function, so that the target calibration value assignment function is a variable calibration value assignment in the application layer software, so as to realize the operation of the application layer software.

[0010] Preferably, the method further comprises: If the selection function does not match the corresponding target calibration value assignment function according to the vehicle configuration, the power-on initialization function assigns the variable calibration value in the application layer software to a pre-calibrated initial value to enable the application layer software to run.

[0011] On the other hand, the present application also provides an integrated device for merging controller software versions, including: The reading module is used to read all calibration values ​​in all vehicle configurations from the application layer software model; A calibration quantity assignment function generation module, used to generate calibration quantity assignment functions corresponding to different vehicle configurations, wherein the calibration quantity assignment function is configured to assign values ​​to variable calibration quantities in the application layer software according to variable calibration quantity values ​​in the corresponding vehicle configuration; A selection function generation module, used to generate a selection function, wherein the selection function is configured to select a target calibration value assignment function corresponding to the target vehicle configuration from a plurality of calibration value assignment functions according to the target vehicle configuration; The target file generation module is used to add the selection function to the initialization function of the application layer software, and then integrate and compile multiple calibration value assignment functions, application layer software and underlying software to generate a flashable target file, which is used to flash into the vehicle controller.

[0012] Preferably, the calibration value assignment function generation module is used to include: A calibration quantity assignment function C file generation unit, used to generate corresponding calibration quantity assignment function C files according to different vehicle configurations; The calibration quantity assignment function C file corresponding to each vehicle configuration includes: The variable calibration quantity values ​​in the corresponding vehicle configuration are the values ​​assigned to all variable calibration quantities; All variable calibration amounts are identified from the total calibration amount values ​​read.

[0013] On the other hand, the present application also provides a vehicle controller calibration value assignment device, the method comprising: An initialization module, used to start a power-on initialization function from a target file written into the vehicle controller when the vehicle controller is powered on and initialized; the target file is generated by the controller software integration method compatible with different configuration calibration values ​​mentioned above; A target calibration quantity assignment function selection module is used for the power-on initialization function to call a selection function, so that the selection function calls the corresponding target calibration quantity assignment function according to the vehicle configuration; The assignment module is used for the selection function to call the target calibration assignment function, so that the target calibration function is assigned to the variable calibration in the application layer software to realize the operation of the application layer software.

[0014] On the other hand, the present application also provides a vehicle, comprising the above-mentioned on-vehicle controller calibration quantity assignment device.

[0015] On the other hand, the present application also provides a control device, including a processor, a memory, and a program or instruction stored in the memory and executable on the processor, wherein the program or instruction, when executed by the processor, implements the steps of the above-mentioned controller software integration method compatible with different configuration calibration values.

[0016] On the other hand, the present application also provides a readable storage medium, on which a program or instruction is stored, and when the program or instruction is executed by a processor, the steps of the above-mentioned controller software integration method compatible with different configuration calibration values ​​are implemented.

[0017] The beneficial effects of the present invention are: By merging and compiling software with different vehicle configurations, the same software logic and different calibration quantities into one target file, the compiled target software versions can be reduced, thereby reducing the complexity of software version management and some software testing and verification work, without affecting the function of storing the calibration quantities modified when the online calibration controller is powered on and off. BRIEF DESCRIPTION OF THE DRAWINGS

[0018] Figure 1 A schematic diagram of a controller software integration method compatible with different configuration calibration values ​​in an embodiment of the present application; Figure 2 A schematic diagram of a method for assigning a calibration value to a vehicle controller in an embodiment of the present application; Figure 3 This is a schematic diagram of the program running sequence when the vehicle controller is powered on in an embodiment of the present application; Figure 4 A schematic diagram of a controller software integration device compatible with different configuration calibration values ​​in an embodiment of the present application; Figure 5 Schematic diagram of a calibration value assignment device for an on-board controller in an embodiment of the present application. DETAILED DESCRIPTION

[0019] The method of the present invention is further described below in conjunction with the embodiments and accompanying drawings. This embodiment is implemented based on the technical solution of the present invention, and provides a detailed implementation method and specific operation process, but the protection scope of the present invention is not limited to the following embodiments.

[0020] Reference Figure 1 , the embodiment of the present application provides a controller software integration method compatible with different configuration calibration values, including: S11, reading each calibration value in all vehicle configurations from the application layer software model.

[0021] Extract all calibration quantities in the application layer software model, and obtain the specific values ​​of all calibration quantities in the software configured for all vehicles; The purpose of this step is to collect all calibration quantities that may affect vehicle performance and understand the specific values ​​of these calibration quantities for each vehicle configuration.

[0022] In an embodiment of the present application, the application layer software model is a Matlab / simulink model, and all calibration quantities in the application layer software model can be obtained by writing an M language script program; these values ​​are organized into a format that is easy to manage and access, for example: the values ​​of the calibration quantities in different vehicle configurations can be first exported to CSV and other formats through INCA software; and then the above-mentioned export file is read by writing an M language script program to obtain the value of each calibration quantity in different vehicle configurations.

[0023] Review the application layer software model and identify all configurable calibration quantities; for each vehicle configuration, extract the specific values ​​of these calibration quantities from the corresponding configuration files or databases; organize these values ​​into a format that is easy to manage and access, such as a CSV file or database table.

[0024] S12, generating calibration quantity assignment functions for different vehicle configurations.

[0025] The step S12 specifically involves automatically generating calibration quantity assignment functions for different vehicle configurations through a writing tool.

[0026] Taking vehicle configuration a as an example, generate the calibration quantity assignment function C file of vehicle configuration a. The main contents of this file are two parts: first, add "_a" after each calibration quantity name to form a new variable, define the variable as a global variable, and assign the specific value of the calibration quantity in the configuration to the newly added variable; second, make the calibration quantity in the model equal to the corresponding newly added variable. Defining the newly added variable as a global variable can add the variable to A2L, which is convenient for one version of software to realize the calibration quantity management of multiple vehicle configurations and after the calibration personnel modify the calibration value online, there is no problem in reading the calibration value when it is powered off and powered on.

[0027] The purpose of this step is to automatically generate calibration quantity assignment codes for each vehicle configuration, reducing manual coding errors and duplication of work.

[0028] Write a script or program that reads the calibration data collated in step 1.

[0029] For each vehicle configuration (such as vehicle configuration a), a C file (such as calibration_a.c) is generated.

[0030] In this file, create a global variable with a specific suffix (such as _a) for each calibrator and assign specific values ​​for this configuration to these variables.

[0031] At the same time, write code in this file to replace the original calibrated variables in the model with these newly generated global variables. This is usually implemented through macro definitions or inline functions to ensure that the replacement occurs at compile time.

[0032] S13, the writing tool automatically generates a selection function.

[0033] The selection function is configured to call and run the corresponding calibration quantity assignment function according to the vehicle configuration selection.

[0034] The purpose of this step is to dynamically select and call the corresponding calibration value assignment function according to the vehicle configuration.

[0035] By writing a selection function (such as select_calibration_function()), the selection function decides which calibration function to call based on the vehicle configuration (which can be obtained by reading a vehicle configuration file, environment variables or hardware ID).

[0036] In the selection function, conditional statements (such as if-else or switch) are used to match different configurations and call the corresponding scalar assignment function.

[0037] S14, adding the selection function to the initialization function of the application layer software, and integrating and compiling multiple calibration value assignment functions, the application layer software and the bottom layer software to generate a flashable target file.

[0038] The initialization function of the application layer software is only run once during the controller power-on initialization process.

[0039] The purpose of this step is to integrate the application layer software with the underlying software and ensure that the calibration amount is set correctly according to the vehicle configuration when the software starts.

[0040] The selection function written in S13 is called in the initialization function of the application layer software.

[0041] Ensure that all generated scalar assignment and selection functions are included in the compilation process.

[0042] Use appropriate compilers and build systems (such as Makefile, CMake, etc.) to integrate the application layer software and the underlying software into a flashable target file (such as a binary file, firmware image, etc.).

[0043] Verify that the generated object file contains all necessary code and runs correctly on different vehicle configurations.

[0044] Through the above process, software with different vehicle configurations but the same software logic and different calibration quantities can be merged and compiled into one target file. After the target file is flashed to the controller, when the power is turned on and initialized, the program reads the configuration of the vehicle and runs the calibration quantity assignment function of the corresponding configuration. In this way, the program with the corresponding calibration quantity can be run after the software power-on initialization is completed.

[0045] In the above steps S11-S14, the values ​​of the calibration quantities in the model are obtained, calibration quantity assignment functions for different vehicle configurations and selection functions for calibration quantity assignment functions for different vehicle configurations are generated. The content formats of these three files are relatively fixed and can be automatically generated by writing scripts.

[0046] Reference Figure 3 After the target file is written to the vehicle controller, the vehicle controller is initialized when powered on (corresponding to Figure 3 In step S31), the program copies the calibration quantity from Flash to RAM, then reads the configuration of the whole vehicle, runs the selection function of the calibration quantity assignment function of the whole vehicle configuration, runs the calibration quantity assignment function of the corresponding configuration according to the configuration of the whole vehicle, and uses the value of the calibration quantity in the corresponding whole vehicle configuration as the definition value of the calibration quantity in RAM; if the configuration of the whole vehicle is judged to be configuration a, the calibration quantity assignment function of the whole vehicle configuration a is run (corresponding to steps S32, S33 and S36), and the value of the calibration quantity in RAM is the calibration quantity value corresponding to the whole vehicle configuration a; if the configuration of the whole vehicle is judged to be configuration b (corresponding to steps S32, S33 and S37), the calibration quantity assignment function of the whole vehicle configuration b is run, The value of the calibration quantity in RAM is the calibration quantity value corresponding to the vehicle configuration b; if the vehicle configuration is judged to be configuration c (corresponding to steps S32, S33, S34 and S38), the calibration quantity assignment function of the vehicle configuration c is run, and the value of the calibration quantity in RAM is the calibration quantity value corresponding to the vehicle configuration c; if the vehicle configuration is judged to be not any of the above three configurations, the assignment function is not allowed, and the initial value of the calibration quantity is run after the software is powered on and initialized (corresponding to steps S32, S33, S34 and S35), and the value of the calibration quantity in RAM is the pre-set initial calibration quantity value, so that the program with the corresponding calibration quantity can be run after the software power-on initialization is completed. After the assignment is completed, that is, the software power-on initialization is completed, and the controller control logic program is executed (corresponding to the arrangement S39).

[0047] After the programmable target file generated by the above integration method is flashed to the vehicle controller, refer to Figure 2 In an embodiment of the present application, a method for assigning a calibration value to a vehicle controller is also provided, and the method comprises: S21, when the vehicle controller is powered on and initialized, a power-on initialization function is started from a target file written into the vehicle controller; the target file is generated according to the controller software integration method compatible with different configuration calibration values ​​described above; S22, the power-on initialization function calls the selection function, so that the selection function calls the corresponding target calibration quantity assignment function according to the vehicle configuration; S23, selecting a function to call a target calibration value assignment function, so that the target calibration value assignment function is a variable calibration value assignment in the application layer software, so as to realize the operation of the application layer software.

[0048] Reference Figure 2 , the vehicle controller calibration quantity assignment method also includes: S24, if the selection function does not match the corresponding target calibration quantity assignment function according to the vehicle configuration, the power-on initialization function assigns the variable calibration quantity in the application layer software to a pre-calibrated initial value to enable the application layer software to run.

[0049] The above method can reduce the compiled target software version, thereby reducing the complexity of software version management and some software testing and verification work, and does not affect the function of storing the calibration quantity modified when the online calibration controller is powered on and off.

[0050] Reference Figure 4 On the other hand, the embodiment of the present application further provides an integrated device for merging controller software versions, including: The reading module 101 is used to read all calibration values ​​in all vehicle configurations from the application layer software model; A calibration quantity assignment function generation module 102, used to generate calibration quantity assignment functions corresponding to different vehicle configurations, wherein the calibration quantity assignment function is configured to assign values ​​to variable calibration quantities in the application layer software according to variable calibration quantity values ​​in the corresponding vehicle configuration; A selection function generation module 103 is used to generate a selection function, wherein the selection function is configured to select a target calibration value assignment function corresponding to the target vehicle configuration from a plurality of calibration value assignment functions according to the target vehicle configuration; The target file generation module 104 is used to add the selection function to the initialization function of the application layer software, and then integrate and compile multiple calibration value assignment functions, application layer software and underlying software to generate a flashable target file, which is used to flash into the vehicle controller.

[0051] Preferably, the calibration value assignment function generation module 102 is used to include: A calibration quantity assignment function C file generation unit, used to generate corresponding calibration quantity assignment function C files according to different vehicle configurations; The calibration quantity assignment function C file corresponding to each vehicle configuration includes: The variable calibration quantity values ​​in the corresponding vehicle configuration are the values ​​assigned to all variable calibration quantities; All variable calibration amounts are identified from the total calibration amount values ​​read.

[0052] Reference Figure 5 On the other hand, the embodiment of the present application further provides a vehicle controller calibration value assignment device, the method comprising: Initialization module 201, used to start the power-on initialization function from the target file written into the vehicle controller when the vehicle controller is powered on and initialized; the target file is generated by the controller software integration method compatible with different configuration calibration values ​​according to claim 1 or 2; The target calibration quantity assignment function selection module 202 is used for the power-on initialization function to call the selection function, so that the selection function calls the corresponding target calibration quantity assignment function according to the vehicle configuration; The assignment module 203 is used for the selection function to call the target calibration value assignment function, so that the target calibration value function is assigned to the variable calibration value in the application layer software to realize the operation of the application layer software.

[0053] On the other hand, the present application also provides a vehicle, comprising the above-mentioned on-vehicle controller calibration quantity assignment device.

[0054] On the other hand, the present application also provides a control device, including a processor, a memory, and a program or instruction stored in the memory and executable on the processor, wherein the program or instruction, when executed by the processor, implements the steps of the above-mentioned controller software integration method compatible with different configuration calibration values.

[0055] On the other hand, the present application also provides a readable storage medium, on which a program or instruction is stored, and when the program or instruction is executed by a processor, the steps of the above-mentioned controller software integration method compatible with different configuration calibration values ​​are implemented.

[0056] It should be noted that the various embodiments in this specification are described in a progressive manner, and each embodiment focuses on the differences from other embodiments. The same or similar parts between the various embodiments can be referenced to each other.

[0057] Although the preferred embodiments of the present invention have been described, those skilled in the art may make additional changes and modifications to these embodiments once they have learned the basic creative concept. Therefore, the appended claims are intended to be interpreted as including the preferred embodiments and all changes and modifications that fall within the scope of the embodiments of the present invention.

[0058] It should also be noted that, in this article, the orientation or position relationship indicated by the terms "center", "up", "down", "left", "right", "vertical", "horizontal", "inside", "outside", etc. is based on the orientation or position relationship shown in the drawings, which is for the convenience of describing the present invention and simplifying the description, rather than indicating or implying that the device or element referred to must have a specific orientation, be constructed and operated in a specific orientation, and therefore cannot be understood as a limitation of the present invention. In addition, relational terms such as "first" and "second" are used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply that there is any such actual relationship or order between these entities or operations, nor can they be understood as indicating or implying relative importance. Moreover, the terms "include", "comprise" or any other variant thereof are intended to cover non-exclusive inclusion, so that a process, method, article or terminal device including a series of elements does not include those elements, but also includes other elements not explicitly listed, or also includes elements inherent to such a process, method, article or terminal device. In the absence of further restrictions, the elements defined by the sentence "including one..." do not exclude the existence of other identical elements in the process, method, article or terminal device including the elements.

[0059] The technical solution provided by the present invention is described in detail above. The principle and implementation mode of the present invention are described in this article using specific examples. The description of the above embodiments is only used to help understand the present invention, and the content of this specification should not be understood as limiting the present invention. At the same time, for those skilled in the art, according to the present invention, there will be different forms of changes in the specific implementation mode and application scope. It is not necessary and impossible to list all the implementation modes here, and the obvious changes or modifications derived therefrom are still within the protection scope of the present invention.

Claims

1. A controller software integration method compatible with different configuration calibration values, characterized in that: include: Read all calibration values ​​in all vehicle configurations from the application layer software model; Generate a calibration quantity assignment function corresponding to different vehicle configurations, wherein the calibration quantity assignment function is configured to assign a variable calibration quantity in the application layer software according to a variable calibration quantity value in the corresponding vehicle configuration; Generate a selection function, wherein the selection function is configured to select a target calibration value assignment function corresponding to the target vehicle configuration from a plurality of calibration value assignment functions according to the target vehicle configuration; The selection function is added to the initialization function of the application layer software, and then multiple calibration value assignment functions, the application layer software and the underlying software are integrated and compiled to generate a flashable target file, and the target file is used to flash into the vehicle controller.

2. The controller software integration method compatible with different configuration calibration values ​​according to claim 1, characterized in that: The steps of generating the calibration quantity assignment function corresponding to different vehicle configurations include: Generate the corresponding calibration quantity assignment function C file according to different vehicle configurations; The calibration quantity assignment function C file corresponding to each vehicle configuration includes: The variable calibration quantity values ​​in the corresponding vehicle configuration are the values ​​assigned to all variable calibration quantities; All variable calibration amounts are identified from the total calibration amount values ​​read.

3. A method for assigning a calibration value to a vehicle controller, characterized in that: The method comprises: When the vehicle controller is powered on and initialized, a power-on initialization function is started from a target file written into the vehicle controller; the target file is generated according to the controller software integration method compatible with different configuration calibration values ​​according to claim 1 or 2; The power-on initialization function calls the selection function, so that the selection function calls the corresponding target calibration quantity assignment function according to the vehicle configuration; The selection function calls the target calibration value assignment function, so that the target calibration value assignment function is a variable calibration value assignment in the application layer software, so as to realize the operation of the application layer software.

4. The method for assigning a calibration value to a vehicle controller according to claim 3, characterized in that: The method further comprises: If the selection function does not match the corresponding target calibration value assignment function according to the vehicle configuration, the power-on initialization function assigns the variable calibration value in the application layer software to a pre-calibrated initial value to enable the application layer software to run.

5. An integrated device for merging controller software versions, characterized in that: include: The reading module is used to read all calibration values ​​in all vehicle configurations from the application layer software model; A calibration quantity assignment function generation module, used to generate calibration quantity assignment functions corresponding to different vehicle configurations, wherein the calibration quantity assignment function is configured to assign values ​​to variable calibration quantities in the application layer software according to variable calibration quantity values ​​in the corresponding vehicle configuration; A selection function generation module, used to generate a selection function, wherein the selection function is configured to select a target calibration value assignment function corresponding to the target vehicle configuration from a plurality of calibration value assignment functions according to the target vehicle configuration; The target file generation module is used to add the selection function to the initialization function of the application layer software, and then integrate and compile multiple calibration value assignment functions, application layer software and underlying software to generate a flashable target file, which is used to flash into the vehicle controller.

6. The integrated device for merging controller software versions according to claim 5, characterized in that: The module for generating the calibration value assignment function includes: A calibration quantity assignment function C file generation unit, used to generate corresponding calibration quantity assignment function C files according to different vehicle configurations; The calibration quantity assignment function C file corresponding to each vehicle configuration includes: The variable calibration quantity values ​​in the corresponding vehicle configuration are the values ​​assigned to all variable calibration quantities; All variable calibration amounts are identified from the total calibration amount values ​​read.

7. A vehicle-mounted controller calibration quantity assignment device, characterized in that: The method comprises: An initialization module, used for starting a power-on initialization function from a target file written into the vehicle controller when the vehicle controller is powered on and initialized; the target file is generated by the controller software integration method compatible with different configuration calibration values ​​as described in claim 1 or 2; A target calibration quantity assignment function selection module is used for the power-on initialization function to call a selection function, so that the selection function calls the corresponding target calibration quantity assignment function according to the vehicle configuration; The assignment module is used for the selection function to call the target calibration assignment function, so that the target calibration function is assigned to the variable calibration in the application layer software to realize the operation of the application layer software.

8. A vehicle, characterized in that: It includes the on-vehicle controller calibration quantity assignment device as described in claim 7.

9. A control device, characterized in that: It includes a processor, a memory, and a program or instruction stored in the memory and executable on the processor, wherein when the program or instruction is executed by the processor, the steps of the controller software integration method compatible with different configuration calibration values ​​as described in any one of claims 1 or 2 are implemented.

10. A readable storage medium, characterized in that: The readable storage medium stores a program or instruction, and when the program or instruction is executed by the processor, the steps of the controller software integration method compatible with different configuration calibration values ​​as described in any one of 1 or 2 are implemented.

Citation Information

Patent Citations

  • Integrated control method and device for electronic control software of automobile and server

    CN113495748A

  • Software integration method and device, storage medium and electronic equipment

    CN114780097A