ECU (Electronic Control Unit) upgrading and flashing method and device, electronic equipment and readable storage medium

Through the AI ​​simulation operation environment, ECU parameter debugging is solved, and the problem of difficult to guarantee the quality and stability of the ECU piece software code is achieved without real-life debugging, saving time and cost.

CN119248303AActive Publication Date: 2025-01-03CHONGQING SELIS PHOENIX INTELLIGENT INNOVATION TECH CO LTD

Patent Information

Application Number
CN202411125102.6
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-08-16
Publication Date
2025-01-03
Estimated Expiration
2044-08-16

AI Technical Summary

Technical Problem

The prior art is difficult to ensure the quality and stability of the software code of ECU parts, and the upgraded ECU requires multiple actual vehicle parameter debugging, which is time-consuming and costly.

Method used

When upgrading and writing, simulated parameters are debugged through the AI ​​simulation operation environment, and the nominal function parameters and operating status parameters are compared. If the difference is less than the preset threshold, the debugging will be completed and the software upgrade package will be directly flashed to avoid real-vehicle parameter debugging. .

Benefits of technology

Ensure the quality and stability of the ECU piece software code, reduce the time, manpower and material resources for the upgraded ECU parameter debugging, and reduce costs.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119248303A_ABST
    Figure CN119248303A_ABST
Patent Text Reader

Abstract

The invention relates to the field of new energy vehicles, and provides an ECU upgrading and flashing method and device, electronic equipment and a readable storage medium. The method comprises the following steps: when a target ECU is upgraded and flashed, acquiring a software upgrade package and nominal function parameters corresponding to the target ECU; the target ECU is controlled to conduct simulation parameter debugging in the AI simulation operation environment, and a first operation state parameter is obtained; when a first parameter comparison result between the nominal function parameter and the first operation state parameter is smaller than or equal to a preset deviation threshold value, simulation parameter debugging of the target ECU is ended; if the software source code corresponding to the software upgrade package does not need to be subjected to AI calculation optimization adjustment, the software upgrade package is flashed to the target ECU. According to the method and the device, the quality and the stability of the software source code of the ECU can be ensured, the time, manpower and material resources for performing parameter debugging on the upgraded ECU can be greatly saved, and the cost for performing parameter debugging on the upgraded target ECU can be greatly reduced.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of new energy vehicles, and in particular to an ECU upgrade flashing method, device, electronic device and readable storage medium. Background Art

[0002] Upgrading and flashing ECU components through OTA (Over the Air Technology) is a way to quickly repair, iterate and improve the functions of ECU components.

[0003] As the functions of smart connected cars become more and more abundant, the number of ECU (Electronic Control Unit) components in the vehicle system is increasing, and the functions of ECU components are becoming more and more complex and rich, which makes the amount of software code of ECU components larger and the complexity of software higher. Due to the large amount and high complexity of ECU software code, it is becoming increasingly difficult to control the quality of ECU software code, making it difficult to ensure the quality and stability of software code.

[0004] At present, the research on how to ensure the quality and stability of the software code for upgrading and flashing ECU parts is still in a blank stage. In addition, in the prior art, after the ECU parts are upgraded and flashed, in order to make the upgraded ECU parts run in the best state under various working conditions, it is usually necessary to perform multiple parameter debugging on the actual vehicle. The parameter debugging process is very time-consuming and requires a lot of manpower and material resources, and the cost is high. Summary of the invention

[0005] In view of this, the embodiments of the present application provide an ECU upgrade flashing method, device, electronic device and readable storage medium to ensure the quality and stability of the upgrade flashing software code of the ECU component, while eliminating the need to perform parameter debugging on the actual vehicle for the upgraded ECU after the ECU is upgraded and flashed, which can greatly save time, manpower and material resources for parameter debugging of the upgraded ECU, thereby greatly reducing the parameter debugging cost.

[0006] A first aspect of an embodiment of the present application provides an ECU upgrade flashing method, comprising:

[0007] When upgrading and flashing the target ECU, obtain the software upgrade package and nominal functional parameters corresponding to the target ECU;

[0008] Sending a first control instruction to the target ECU to control the target ECU to perform simulation parameter debugging in the AI ​​simulation operation environment to obtain a first operation state parameter; wherein the AI ​​simulation operation environment is associated with the nominal functional parameter;

[0009] Comparing the nominal functional parameter with the first operating state parameter to obtain a first parameter comparison result;

[0010] If the first parameter comparison result is less than or equal to the preset deviation threshold, the simulation parameter debugging of the target ECU is terminated, and it is determined whether it is necessary to perform AI calculation optimization adjustment on the software source code corresponding to the software upgrade package;

[0011] If there is no need to perform AI calculation optimization adjustment on the software source code corresponding to the software upgrade package, the software upgrade package will be flashed to the target ECU.

[0012] A second aspect of an embodiment of the present application provides an ECU upgrade flashing device, comprising:

[0013] An acquisition unit is configured to acquire a software upgrade package and nominal functional parameters corresponding to the target ECU when the target ECU is upgraded and flashed;

[0014] The control unit is configured to issue a first control instruction to the target ECU to control the target ECU to perform simulation parameter debugging in the AI ​​simulation operation environment to obtain a first operation state parameter; wherein the AI ​​simulation operation environment is associated with the nominal functional parameter;

[0015] a comparison unit, configured to compare the nominal functional parameter with the first operating state parameter to obtain a first parameter comparison result;

[0016] The judgment unit is configured to terminate the simulation parameter debugging of the target ECU if the first parameter comparison result is less than or equal to a preset deviation threshold, and judge whether it is necessary to perform AI calculation optimization adjustment on the software source code corresponding to the software upgrade package;

[0017] The flashing unit is configured to flash the software upgrade package to the target ECU if there is no need to perform AI calculation optimization adjustment on the software source code corresponding to the software upgrade package.

[0018] According to a third aspect of an embodiment of the present application, an electronic device is provided, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the steps of the above method when executing the computer program.

[0019] According to a fourth aspect of an embodiment of the present application, a readable storage medium is provided, which stores a computer program, and when the computer program is executed by a processor, the steps of the above method are implemented.

[0020] Compared with the prior art, the beneficial effects of the embodiment of the present application include at least: when upgrading and flashing the target ECU, the target ECU is controlled to perform simulation parameter debugging under the AI ​​simulation operation environment to obtain the first operation state parameter; if the first parameter comparison result between the nominal function parameter and the first operation state parameter is less than or equal to the preset deviation threshold, the simulation parameter debugging of the target ECU is terminated; at the same time, if it is determined that the software source code corresponding to the software upgrade package does not need to be adjusted by AI calculation optimization, the software upgrade package is flashed to the target ECU. In this way, not only the quality and stability of the upgrade and flashing software code of the ECU can be guaranteed, but also the nominal function parameters of the target ECU when running in the best state under various working conditions can be determined by performing simulation parameter testing on the target ECU when upgrading and flashing the target ECU, so that the upgraded target ECU can directly reach the best working state without additional testing, that is, there is no need to perform additional parameter debugging on the upgraded target ECU on the actual vehicle, thereby greatly saving the time, manpower and material resources for parameter debugging of the upgraded ECU, and greatly reducing the cost of parameter debugging of the upgraded target ECU. BRIEF DESCRIPTION OF THE DRAWINGS

[0021] In order to more clearly illustrate the technical solutions in the embodiments of the present application, 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 application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.

[0022] Figure 1 It is a schematic diagram of an application scenario of an embodiment of the present application;

[0023] Figure 2 This is a schematic diagram of a data communication transmission method in the ECU upgrade flashing method provided in an embodiment of the present application;

[0024] Figure 3 This is a schematic diagram of a message conversion method in the ECU upgrade flashing method provided in an embodiment of the present application;

[0025] Figure 4 It is a structural schematic diagram of an ECU upgrade flashing system provided in an embodiment of the present application;

[0026] Figure 5 It is a flowchart of an ECU upgrade flashing method provided in an embodiment of the present application;

[0027] Figure 6 It is a structural schematic diagram of another ECU upgrade flashing system provided in an embodiment of the present application;

[0028] Figure 7 It is a data structure diagram of a software upgrade package in the ECU upgrade flashing method provided in an embodiment of the present application;

[0029] Figure 8 It is a data structure diagram of a software source code in the ECU upgrade flashing method provided in an embodiment of the present application;

[0030] Fig. 9 It is a schematic diagram of an ECU upgrade flashing device provided in an embodiment of the present application;

[0031] Fig.10 It is a structural schematic diagram of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0032] 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 application. However, it should be clear to those skilled in the art that the present application may also 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 application.

[0033] An ECU upgrade flashing method and device according to an embodiment of the present application will be described in detail below with reference to the accompanying drawings.

[0034] Figure 1 It is a scenario diagram of an application scenario of an embodiment of the present application. The application scenario may include an OTA cloud platform 101, an intelligent cockpit domain controller (Cockpit Domain Controller, referred to as "CDC") 102, and a vehicle gateway (VGW) 103. The OTA cloud platform 101 can be connected to the intelligent cockpit controller (CDC) 102 through a 4G / 5G network; the intelligent cockpit controller 102 can be connected to the vehicle gateway (VGW) 103 through Ethernet (ETH). One or more ECU components can be mounted under the vehicle gateway 103. The vehicle gateway 103 is connected to each ECU component that can be mounted thereunder through a CAN (Controller Area Network) bus or Ethernet (ETH). The intelligent cockpit controller 102 carries an OTA upgrade master control (referred to as "UMC"). The vehicle gateway 103 carries an OTA upgrade agent (referred to as "UA"). Each ECU component carries an OTA upgrade slave control (referred to as "US").

[0035] The target ECU to be upgraded and flashed may be any one or more ECUs connected to the vehicle gateway 103 , or may be the vehicle gateway 103 or the CDC 102 .

[0036] It should be noted that the specific types, quantities and combinations of the OTA cloud platform 101, the smart cockpit controller 102 and the vehicle gateway (VGW) 103 can be adjusted according to the actual needs of the application scenario, and the embodiments of the present application do not limit this.

[0037] Figure 2 It is a schematic diagram of a data communication transmission method in the ECU upgrade flashing method provided in an embodiment of the present application. Figure 3 This is a schematic diagram of a message conversion method in the ECU upgrade flashing method provided in the embodiment of the present application. Figure 2 and Figure 3 When the OTA upgrade master control (UMC) is upgrading the target ECU, if the target ECU is an ECU that supports Ethernet (for example, the target ECU is Figure 1 If the target ECU is an ECU that does not support Ethernet (for example, the target ECU is a ECU that does not support Ethernet), the OTA upgrade master can establish a TCP (Transmission Control Protocol) communication connection with the target ECU through the vehicle gateway 103 by means of link (i.e., layer 2) transparent transmission, and then use the DOIP (Diagnostic communication over Internet Protocol) protocol to communicate and transmit data with the target ECU (ECU1-2 and ECU1-n) to upgrade the target ECU (ECU1-2 and ECU1-n). Figure 1 If the OTA upgrade master control (UMC) first establishes a TCP communication connection with the vehicle gateway 103, and then transmits the upgrade message to the vehicle gateway 103. The vehicle gateway 103 parses the received upgrade message, obtains the address information of the target ECU (ECU2-1 and ECU2-n), and then converts it into a UDS message in the ETH message format (such as Figure 3 As shown), the upgrade message is forwarded to the target ECU (ECU2-1 and ECU2-n), and the target ECU (ECU2-1 and ECU2-n) is upgraded and flashed.

[0038] Figure 4 This is a schematic diagram of the structure of an ECU upgrade flashing system provided by an embodiment of the present application. Figure 4The ECU upgrade flashing system includes an OTA cloud platform 101, a smart cockpit domain controller (CDC) 102, a vehicle gateway (VGW) 103, and an ECU component mounted under the vehicle gateway 103. The OTA cloud platform 101 and the smart cockpit domain controller 102 communicate via the HTTPS (Hyper Text Transfer Protocol over Secure Socket Layer) protocol. Figure 4 The connection relationship between the OTA cloud platform 101, CDC 102 (carrying UMC), VGW 103 and the target ECU is shown, as well as the functional module interfaces related to their external modules and internal modules. For example, the internal modules of the OTA cloud platform 101 include a software version management module and a software upgrade management module. The CDC carries the OTA upgrade master control (UMC), and the internal modules of the UMC include a security management module, an AI scene operation module, an AI calculation module, a calibration parameter module, a download management module, an upgrade management module, a collection control module and a file reinstallation module.

[0039] Figure 5 It is a flow chart of an ECU upgrade flashing method provided in an embodiment of the present application. Figure 5 The ECU upgrade flashing method can be done by Figure 1 OTA upgrade master control (UMC) to execute. Figure 5 As shown, the ECU upgrade flashing method may include the following steps:

[0040] Step S501, when upgrading and flashing the target ECU, obtain the software upgrade package and nominal functional parameters corresponding to the target ECU.

[0041] A software upgrade package usually refers to a software upgrade data package developed to repair, iterate or improve the functions of the target ECU.

[0042] Nominal functional parameters, also known as calibrated functional parameters, ideal nominal parameters, calibration parameters or nominal parameters, refer to ideal equipment parameters (or theoretical equipment parameters) used to mark or identify relevant functions of the target ECU. For example, if the target ECU is a range extender, the nominal functional parameters used to mark or identify its relevant functions include ideal torque, ideal power, etc.

[0043] Step S502, issuing a first control instruction to the target ECU to control the target ECU to perform simulation parameter debugging in the AI ​​simulation operation environment to obtain a first operation state parameter; wherein the AI ​​simulation operation environment is associated with the nominal functional parameter.

[0044] The AI ​​simulation operating environment can be understood as a virtual operating scenario (or simulation operating environment) built based on the latest AI technology (artificial intelligence technology) that is infinitely close to running the target ECU in the "real world" (or real environment, real vehicle application environment).

[0045] The AI ​​simulation operating environment is associated with the nominal functional parameters, which can be understood as the environmental configuration parameters of the AI ​​simulation operating environment are related to the nominal functional parameters of the target ECU. Among them, the environmental configuration parameters can be set according to the nominal functional parameters of the target ECU operating under various working conditions. For example, assuming that the target ECU is a range extender, when the range extender is in the starting condition, its nominal functional parameters include ideal starting torque and ideal starting power, and the environmental parameters of the AI ​​simulation operating environment can be set according to the ideal starting torque and ideal starting power.

[0046] The first operating state parameter refers to the actual device parameter of the target ECU when it is running in the AI ​​simulation operating environment. Exemplarily, assuming that the nominal functional parameters of the target ECU include ideal torque and ideal power, the first operating state parameter includes the actual torque and actual power of the target ECU when it is running in the AI ​​simulation operating environment.

[0047] Step S503: compare the nominal function parameter with the first operating state parameter to obtain a first parameter comparison result.

[0048] Specifically, the deviation value between the nominal function parameter and the first operating state parameter is calculated to obtain the first parameter comparison result. As an example, assuming that the nominal function parameter includes the ideal torque and the first operating state parameter includes the actual torque, then the deviation value between the ideal torque and the actual torque is calculated to obtain the first parameter comparison result.

[0049] Step S504: If the first parameter comparison result is less than or equal to the preset deviation threshold, the simulation parameter debugging of the target ECU is terminated, and it is determined whether it is necessary to perform AI calculation optimization adjustment on the software source code corresponding to the software upgrade package.

[0050] The preset deviation threshold can be flexibly set according to actual conditions, for example, it can be set to 5%, 6%, etc., and this application does not impose specific restrictions on this.

[0051] It is possible to pre-configure whether to perform AI calculation optimization adjustment on the software source code corresponding to the software upgrade package while debugging the parameters of the software upgrade package. For example, it can be set to perform AI calculation optimization adjustment on the software source code corresponding to the software upgrade package while debugging the parameters of the software upgrade package; it can also be set not to perform AI calculation optimization adjustment on the software source code corresponding to the software upgrade package while debugging the parameters of the software upgrade package. The specific configuration can be selected according to the actual needs of the user, or it can be automatically configured according to the vehicle system.

[0052] Step S505: If it is not necessary to perform AI calculation optimization adjustment on the software source code corresponding to the software upgrade package, the software upgrade package is flashed to the target ECU.

[0053] The technical solution provided by the embodiment of the present application, when upgrading and flashing the target ECU, the target ECU is controlled to perform simulation parameter debugging under the AI ​​simulation operation environment to obtain the first operation state parameter; if the first parameter comparison result between the nominal functional parameter and the first operation state parameter is less than or equal to the preset deviation threshold, the simulation parameter debugging of the target ECU is terminated; at the same time, if it is determined that the software source code corresponding to the software upgrade package does not need to be adjusted by AI calculation optimization, the software upgrade package is flashed to the target ECU. In this way, not only the quality and stability of the upgrade and flashing software code of the ECU can be guaranteed, but also the nominal functional parameters of the target ECU when running in the best state under various working conditions can be determined by performing simulation parameter testing on the target ECU when upgrading and flashing the target ECU, and no additional testing is required, that is, no additional parameter debugging work is required for the upgraded target ECU on the actual vehicle, thereby greatly saving the time, manpower and material resources for parameter debugging of the upgraded ECU, and greatly reducing the cost of parameter debugging of the upgraded target ECU.

[0054] Figure 6 This is a schematic diagram of another ECU upgrade flashing system provided by the embodiment of the present application. Figure 6When the OTA upgrade master control (UMC) of the CDC on the vehicle side (for example, new energy vehicles) upgrades and flashes the target ECU, it can download the software upgrade package corresponding to the target ECU from the "software upgrade management module" of the OTA cloud platform 101 through its "download management module", and temporarily store the software upgrade package in the memory of the UMC; then, the "download management module" transmits the software upgrade package to the "AI scenario operation module". The "AI scenario operation module" starts the AI ​​operating environment program, communicates and interacts with the external network of the vehicle through the 4G / 5G network to obtain an AI simulation operating environment that is associated with the nominal functional parameters of the target ECU. The "AI calculation module" obtains the nominal functional parameters of the target ECU through the "calibration parameter module", and then transmits the nominal functional parameters to the "AI scenario operation module". The "AI scenario operation module" sends the first control instruction to the target ECU through the "acquisition control module" to control the target ECU to operate under the AI ​​simulation operation environment (i.e., control the target ECU to perform functional operations under various working conditions and perform simulation parameter debugging) through the "acquisition control module" to obtain the first operation state parameter. The "acquisition control module" transmits the first operation state parameter fed back by the target ECU to the "AI scenario operation module". After receiving the first operation state parameter, the "AI scenario operation module" compares the first operation state parameter with the nominal functional parameter to obtain the first parameter comparison result. If the first parameter comparison result is less than or equal to the preset deviation threshold (such as 5%), the simulation parameter debugging of the target ECU is terminated, and it is determined whether the software source code corresponding to the software upgrade package needs to be optimized and adjusted by AI calculation; if the "AI scenario operation module" determines that the software source code corresponding to the software upgrade package does not need to be optimized and adjusted by AI calculation, the software upgrade package is flashed to the target ECU through the "acquisition control module".

[0055] In some embodiments, after comparing the nominal function parameter with the first operating state parameter to obtain the first parameter comparison result, the method further includes:

[0056] If the first parameter comparison result is greater than the preset deviation threshold, the nominal functional parameter is optimized and adjusted to obtain the first optimized functional parameter;

[0057] Updating the AI ​​simulation operating environment based on the first optimization function parameter to obtain a first updated AI simulation operating environment;

[0058] Sending a second control instruction to the target ECU to control the target ECU to operate under the first updated AI simulation operating environment to obtain a second operating state parameter;

[0059] Comparing the first optimization function parameter with the second operation state parameter to obtain a second parameter comparison result;

[0060] If the second parameter comparison result is less than or equal to the preset deviation threshold, and there is no need to perform AI calculation optimization adjustment on the software source code corresponding to the software upgrade package, the nominal function parameters in the software upgrade package are updated to the first optimized function parameters to obtain a first update upgrade package;

[0061] Flash the first update package to the target ECU.

[0062] As an example, see Figure 6 , if the "AI scenario operation module" confirms that the first parameter comparison result is greater than the preset deviation threshold (such as 5%), a parameter adjustment instruction is issued to the "AI calculation module". The "AI calculation module" receives and executes the parameter adjustment instruction, optimizes and adjusts the nominal function parameters of the target ECU according to the preset parameter adjustment strategy, and obtains the first optimized function parameters. Among them, the preset parameter adjustment strategy can be to optimize and adjust the nominal function parameters according to a preset rising gradient or descending gradient. Exemplarily, assuming that the nominal function parameters include ideal torque, the first operating state parameter is the actual torque, and the deviation value between the actual torque and the ideal torque is greater than the preset deviation threshold (such as 5%), that is, the actual torque is greater than the ideal torque. At this time, the actual torque needs to be gradually reduced, then the actual torque can be gradually reduced according to the preset descending gradient, so that the actual torque approaches or reaches the ideal torque. Next, the "AI calculation module" transmits the first optimized function parameter to the "AI scenario operation module". After receiving the first optimized function parameter, the "AI scenario operation module" updates the environmental parameters of the AI ​​simulation operation environment based on the first optimized function parameter to obtain the first updated AI simulation operation environment. Afterwards, the "AI scenario operation module" sends a second control instruction to the target ECU through the "acquisition control module" to control the target ECU to operate under the first updated AI simulation operation environment through the "acquisition control module" (i.e., control the target ECU to perform functional operations under various working conditions and perform simulation parameter debugging) to obtain the second operating state parameter. The "acquisition control module" transmits the second operating state parameter fed back by the target ECU to the "AI scenario operation module". The "AI scenario operation module" receives the second operating state parameter and compares the first optimized functional parameter with the second operating state parameter to obtain the second parameter comparison result. If the second parameter comparison result is less than or equal to the preset deviation threshold (such as 5%), and it is confirmed that the software source code corresponding to the software upgrade package does not need to be optimized and adjusted by AI calculation, the second operating state parameter is passed to the "file reinstallation module" through the "AI calculation module"; after receiving the second operating state parameter, the "file reinstallation module" updates the nominal functional parameters in the software upgrade package to the first optimized functional parameters to obtain the first update upgrade package, and then passes the first update upgrade package to the target ECU to complete the upgrade and flashing of the target ECU.

[0063] It can be understood that if the above-mentioned second parameter comparison result is greater than the preset deviation threshold, the parameter adjustment optimization process in the above-mentioned embodiment is cyclically repeated until the parameter comparison result (parameter deviation value) between the operating state parameters and the nominal functional parameters of the target ECU is less than the preset deviation threshold.

[0064] In some embodiments, the software upgrade package includes a first program space, the first program space being used to store a parameter calibration program and nominal functional parameters corresponding to the target ECU;

[0065] After comparing the first optimization function parameter with the second operation state parameter to obtain a second parameter comparison result, the method further includes:

[0066] If the second parameter comparison result is less than or equal to the preset deviation threshold, and the software source code corresponding to the software upgrade package needs to be optimized and adjusted by AI calculation, the software source code corresponding to the software upgrade package is obtained;

[0067] Extract the target source code file associated with the parameter calibration program and the nominal functional parameters in the software source code;

[0068] Use the shared source code resource library to perform AI calculations on the target source code file, and optimize and adjust the target source code file to obtain an optimized source code file;

[0069] Based on the optimization source code file, generate the optimization parameter calibration program and the second optimization function parameter;

[0070] Replacing the parameter calibration program and the nominal functional parameters of the first program space in the software upgrade package with the optimized parameter calibration program and the second optimized functional parameters to obtain a second update upgrade package;

[0071] Flash the second update package to the target ECU.

[0072] Figure 7 This is a schematic diagram of the data structure of a software upgrade package in the ECU upgrade flashing method provided in the embodiment of the present application. Figure 7The software upgrade package provided in the embodiment of the present application includes a first program space 701 (or calibration and parameter program space), a second program space 702 (or application program space) and a third program space 703 (or boot program space). The first program space 701 can be used to store the parameter calibration program and nominal function parameters of the target ECU. Among them, the parameter calibration program refers to the relevant program used to execute the calibration of the device parameters of the target ECU. The second program space 702 can be used to store the application function program of the target ECU. Among them, the application function program (or application program) is a computer program for completing one or more specific tasks. It runs in user mode, can interact with the user, and has a visual user interface. It is one of the main categories of electronic device software and refers to software written for a certain application purpose of the user. The application program is usually divided into two parts: a graphical user interface and an engine. It is different from the concept of application software. Application software refers to the purpose of use. It can be a single program or a collection of other subordinate components. The application program refers to a single executable file or a single program. In daily life, the two can be carefully distinguished, and the program is generally regarded as a component of the software. The third program space 703 can be used to store a boot program. The boot program is a utility program. After the computer is started, the system automatically inputs a short program to complete the boot process. Booting is a common method used when the computer starts to input. After the computer is started, the device implements the input of a small amount of instructions and data, and then they input other programs. This process is called booting.

[0073] Figure 8 This is a schematic diagram of the data structure of a software source code in the ECU upgrade flashing method provided in the embodiment of the present application. Figure 8 , the software source code may include a source code AI marking area, an AI modification position marking area and a source code file area; wherein the source code AI marking area may be used to mark whether AI calculation and optimization adjustment have been performed on the software source code corresponding to the software upgrade package of the target ECU. For example, the number "1" may be used to indicate that AI calculation and optimization adjustment have been performed on the software source code, and the number "0" may be used to indicate that AI calculation and optimization adjustment have not been performed on the software source code. The AI ​​modification position marking area may be used to mark which position of the code in the software source code has been modified, for example, the code from the nth line to the mth line has been modified. In this way, it is convenient for users (such as developers) to check the specific location and modification content of the software code modified by AI, so as to further confirm whether there are quality problems in the software source code modified and adjusted by AI, etc., so as to ensure the quality and stability of the software source code. The source code file area may be used to store source code files related to the nominal function parameters and parameter calibration program in the first program space 701 of the software upgrade package, the application function program in the second program space 702, and the boot program in the third program space 703.

[0074] As an example, see Figure 6 , Figure 7 and Figure 8 If the "AI scenario operation module" confirms that the second parameter comparison result is less than or equal to the preset deviation threshold (such as 5%), and determines that the software source code corresponding to the software upgrade package needs to be optimized by AI calculation (for example, the vehicle system is pre-set to optimize the nominal functional parameters of the target ECU when the software source code corresponding to the software upgrade package is optimized by AI calculation), then the software source code corresponding to the software upgrade package of the target ECU can be downloaded from the "software upgrade management module" of the OTA cloud platform 101 through the "download management module" and temporarily stored in the memory of the UMC. Next, from Figure 8 The target source code file related to the nominal function parameters of the parameter calibration program in the first program space 701 is extracted from the source code file area of ​​the software source code shown. Afterwards, the "AI scenario operation module" can use AI's powerful global shared resource library (or shared source code resource library) to perform code security and vulnerability inspection on the target source code file in the current operating system and CPU architecture, coding specifications, etc., and perform security and vulnerability repair to enhance software security capabilities; at the same time, the code of the target source code file in the current operating system and CPU architecture is optimized to delete redundant code from the code, repair low-performance code, and make the software upgrade package generated by the code occupy the least CPU resources and memory resources, and have the highest operating efficiency, so as to obtain an optimized source code file. Then, the "AI scenario operation module" transfers the optimized source code file to the "file reinstallation module" via the "AI calculation module" for packaging, and then the "file reinstallation module" uploads the packaged optimized source code file to the "software version management module" of the OTA cloud platform. At the same time, the "file reinstallation module" recompiles the optimized source code file, generates an optimized parameter calibration program and a second optimized functional parameter, and replaces the parameter calibration program and the nominal functional parameters of the first program space 701 in the software upgrade package with the optimized parameter calibration program and the second optimized functional parameter, and obtains a second update upgrade package, which is then transmitted to the "upgrade management module", and then the "upgrade management module" flashes the second update upgrade package to the target ECU.

[0075] Through the above scheme, the nominal functional parameters of the target ECU when it is running in the best state under various working conditions can be determined based on the AI ​​simulation operating environment debugging when the target ECU is upgraded and flashed, without the need for additional testing, which can greatly save the time, manpower and material resources for parameter debugging of the upgraded ECU, and can greatly reduce the cost of parameter debugging of the upgraded target ECU. In addition, while optimizing and adjusting the nominal functional parameters of the target ECU, the target source code files associated with the parameter calibration program and nominal functional parameters of the target ECU in the software source code corresponding to the software upgrade package of the target ECU can be AI calculated and optimized, which can ensure the quality and stability of the software code for upgrading and flashing the ECU.

[0076] In some embodiments, flashing the second update package to the target ECU includes:

[0077] Updating the first updated AI simulation operating environment based on the second optimization function parameter to obtain a second updated AI simulation operating environment;

[0078] Sending a third control instruction to the target ECU to control the target ECU to operate in the second updated AI simulation operation scenario to obtain a third operation state parameter;

[0079] Comparing the second optimization function parameter with the third operation state parameter to obtain a third parameter comparison result;

[0080] If the comparison result of the third parameter is less than or equal to the preset deviation threshold, the second update package is flashed to the target ECU.

[0081] As an example, see Figure 6 After obtaining the second update and upgrade package, the "AI scenario operation module" updates the environmental parameters of the first updated AI simulation operation environment through the second optimization function parameters to obtain the second updated AI simulation operation environment. The "AI scenario operation module" sends a third control instruction to the target ECU through the "acquisition control module" to control the target ECU to execute the third control instruction through the "acquisition control module", so that the target ECU operates under various operating conditions in the second updated AI simulation operation scenario and obtains the third operating state parameter; the "acquisition control module" transmits the third operating state parameter fed back by the target ECU to the "AI scenario operation module". After receiving the third operating state parameter, the "AI scenario operation module" calculates the deviation value between the second optimization function parameter and the third operating state parameter, that is, obtains the third parameter comparison result. If it is determined that the third parameter comparison result is less than or equal to the preset deviation threshold, the above-mentioned second update and upgrade package is flashed to the target ECU via the "AI calculation module", "file reinstallation module" and "upgrade management module".

[0082] If the third parameter comparison result is greater than the preset deviation threshold, the parameter adjustment optimization process in the above implementation is repeatedly executed until the parameter comparison result (parameter deviation value) between the operating state parameters and the nominal functional parameters of the target ECU is less than the preset deviation threshold.

[0083] Through the above implementation mode, the second optimized functional parameters in the second update upgrade package obtained after optimizing and adjusting the nominal functional parameters of the target ECU and its software source code are debugged and tested again to ensure that the second optimized functional parameters of the second update upgrade package can satisfy the target ECU to operate in the best state under various working conditions, thereby further ensuring the quality and stability of the software source code of the target ECU. At the same time, when the target ECU is upgraded and flashed, the target ECU is marked in the best working condition through AI simulation operation and AI calculation, and no additional testing is required, which can greatly save the time cost, manpower and material cost of parameter debugging and calibration on the actual vehicle after the ECU is upgraded.

[0084] In other embodiments, after determining whether it is necessary to perform AI computing optimization adjustment on the software source code corresponding to the software upgrade package, the process further includes:

[0085] If it is necessary to perform AI calculation optimization adjustment on the software source code corresponding to the software upgrade package, obtain the software source code corresponding to the software upgrade package;

[0086] Use the shared source code resource library to perform AI calculations on the software source code, and optimize and adjust the software source code to obtain optimized software source code;

[0087] Compile the optimization software source code to generate an optimization upgrade program;

[0088] The software upgrade package is updated according to the optimization upgrade program to obtain a third update upgrade package;

[0089] Flash the third update package to the target ECU.

[0090] As an example, see Figure 6If the "AI scenario operation module" confirms that the software source code corresponding to the software upgrade package needs to be optimized and adjusted by AI calculation, the software source code corresponding to the software upgrade package of the target ECU can be downloaded from the "software upgrade management module" of the OTA cloud platform through the "download management module". After that, the "AI scenario operation module" can use AI's powerful global shared resource library (i.e. shared source code resource library) to inspect the code security and vulnerabilities of the software source code in the current operating system, CPU architecture, coding specifications, etc., and perform security and vulnerability repairs to enhance the software security capabilities; at the same time, the software source code in the current operating system and CPU architecture is optimized to delete redundant code and repair low-performance code, so that the software upgrade package generated by the code occupies the least CPU resources and memory resources, and has the highest operating efficiency, and obtains the optimized source code file. Then, the "AI scenario operation module" transfers the optimized source code file to the "file reinstallation module" via the "AI calculation module" for packaging, and then the "file reinstallation module" uploads the packaged optimized source code file to the "software version management module" of the OTA cloud platform. At the same time, the "file reinstallation module" recompiles the optimized source code file to generate an optimized upgrade program. The optimization and upgrading program includes a parameter calibration program and an optimization program related to nominal function parameters of the first program space 701 , and an optimization program related to application function programs of the second program space 702 .

[0091] See also Figure 7 , the first program space 701 includes a first marking area, and the second program space 702 includes a second marking area. The first marking area may be the starting 16 bytes of the data in the first program space 701. For example, the data structure of the first program space 701 is: first marking area + nominal function parameter + parameter calibration program. The second marking area may be the starting 16 bytes of the data in the second program space. For example, the data structure of the second program space 702 is: second marking area + application function program.

[0092] In some embodiments, the software upgrade package is updated according to the optimization upgrade program to obtain an updated software upgrade package, which specifically includes: deleting the nominal functional parameters and parameter calibration program in the first program space of the software upgrade package, and the application function program in the second program space; writing the optimization upgrade program into the first program space and the second program space of the software upgrade package to obtain a third updated upgrade package.

[0093] In some embodiments, an optimized upgrade program is written into the first program space and the second program space of a software upgrade package to obtain a first updated software upgrade package, which specifically includes: determining a first part of the upgrade program to be written into the first program space, and a second part of the upgrade program to be written into the second program space; wherein the optimized upgrade program includes a first part of the upgrade program and a second part of the upgrade program; the first part of the upgrade program is written into the first program space, and a first update mark is recorded in the first marking area; the second part of the upgrade program is written into the second program space, and a second update mark is recorded in the second marking area.

[0094] For ease of understanding, continuing with the above example, the "file reinstallation module" may first delete the application function program in the second program space 702 of the software upgrade package, as well as the nominal function parameters and parameter calibration program in the first program space 701; then, query and confirm the first part of the upgrade program written into the first program space 701 (i.e., the optimization program related to the parameter calibration program and the nominal function parameters in the first program space 701), and the second part of the upgrade program written into the second program space 702 (i.e., the optimization program related to the application function program in the second program space 702); next, the "file reinstallation module" writes the first part of the upgrade program into the "nominal function parameters + parameter calibration program" area of ​​the first program space 701, and records the first update mark in the first mark area (or can be called "AI calculation mark area"). The first update mark is used to indicate that the "nominal function parameters + parameter calibration program" of the software upgrade package of the target ECU has been optimized, as well as the specific content of the optimization adjustment and the update timestamp, so that users (such as developers) can consult and iterate on this part of the program. The "file reinstallation module" writes the second part of the upgrade program into the "application function program" area in the second program space 702, and records the second update mark in the second mark area (or "AI calculation mark area"). The second update mark is used to indicate that the application function program of the software upgrade package of the target ECU has been optimized and adjusted, as well as the content of the optimization adjustment and the update timestamp, so that users (such as developers) can consult and iterate on this part of the program.

[0095] All the above optional technical solutions can be arbitrarily combined to form optional embodiments of the present application, which will not be described one by one here.

[0096] In summary, the technical solution provided by the embodiment of the present application is that when the target ECU is upgraded and flashed, the software upgrade package and the software source code are first downloaded to the UMC for AI scene operation and calculation, and the current operating state parameters fed back by the target ECU are compared with the preset calibration function parameters. Through AI calculation, it reaches the optimal parameter state, and the optimal marking parameters (i.e. the optimized function parameters) are written into the "calibration and parameter program" position of the software upgrade package (i.e. the position of the first program space 701); at the same time, the software source code is operated and calculated by AI scene, optimized and reorganized, and the coding vulnerability is detected and repaired, and the matching code reaches the optimal performance operation state of the current CPU (ARM or x86 or other) architecture. In this way, the software upgrade package is downloaded to the OTA upgrade master control to run the target ECU in the AI ​​scene close to the "real world" (i.e., run in the AI ​​simulation operation environment to perform parameter debugging), and the "calibration parameters" requirements of the target ECU are achieved through AI calculation, so that the upgraded target ECU directly reaches the optimal state, and no further debugging and adaptation are required, thereby greatly saving calibration time and manpower. In addition, by downloading the software source code to the OTA upgrade main control for AI scenario calculations, code vulnerabilities, security checks and repairs, and AI writing with standardized code encoding and optimized execution efficiency, the code encoding quality can be greatly improved, and the "robustness" and portability of the software code can be improved.

[0097] The following is an embodiment of the device of the present application, which can be used to execute the embodiment of the method of the present application. For details not disclosed in the embodiment of the device of the present application, please refer to the embodiment of the method of the present application.

[0098] Fig. 9 Schematic diagram of an ECU upgrade flashing device provided in an embodiment of the present application. Fig. 9 As shown, the ECU upgrade flash writing device may specifically include:

[0099] The acquisition unit 901 is configured to acquire the software upgrade package and nominal functional parameters corresponding to the target ECU when the target ECU is upgraded and flashed;

[0100] The first control unit 902 is configured to issue a first control instruction to the target ECU to control the target ECU to perform simulation parameter debugging in the AI ​​simulation operation environment to obtain a first operation state parameter; wherein the AI ​​simulation operation environment is associated with the nominal functional parameter;

[0101] The first comparison unit 903 is configured to compare the nominal function parameter with the first operating state parameter to obtain a first parameter comparison result;

[0102] The judgment unit 904 is configured to end the simulation parameter debugging of the target ECU if the first parameter comparison result is less than or equal to the preset deviation threshold, and judge whether it is necessary to perform AI calculation optimization adjustment on the software source code corresponding to the software upgrade package;

[0103] The first flashing unit 905 is configured to flash the software upgrade package to the target ECU if there is no need to perform AI calculation optimization adjustment on the software source code corresponding to the software upgrade package.

[0104] In some embodiments, the above-mentioned ECU upgrade flash writing device may further include:

[0105] an adjustment unit, configured to optimize and adjust the nominal functional parameter to obtain a first optimized functional parameter if the first parameter comparison result is greater than a preset deviation threshold;

[0106] A first updating unit is configured to update the AI ​​simulation operating environment based on the first optimization function parameter to obtain a first updated AI simulation operating environment;

[0107] The second control unit is configured to send a second control instruction to the target ECU to control the target ECU to operate under the first updated AI simulation operating environment to obtain a second operating state parameter;

[0108] A second comparison unit is configured to compare the first optimization function parameter with the second operation state parameter to obtain a second parameter comparison result;

[0109] The second updating unit is configured to update the nominal function parameters in the software upgrade package to the first optimized function parameters to obtain a first update upgrade package if the second parameter comparison result is less than or equal to a preset deviation threshold and there is no need to perform AI calculation optimization adjustment on the software source code corresponding to the software upgrade package;

[0110] The second flashing unit is configured to flash the first update package to the target ECU.

[0111] In some embodiments, the software upgrade package includes a first program space, and the first program space is used to store parameter calibration programs and nominal functional parameters corresponding to the target ECU.

[0112] The above-mentioned ECU upgrade flash writing device may further include:

[0113] The first acquisition unit is configured to acquire the software source code corresponding to the software upgrade package if the second parameter comparison result is less than or equal to a preset deviation threshold and the software source code corresponding to the software upgrade package needs to be optimized and adjusted by AI calculation;

[0114] An extraction unit is configured to extract a target source code file associated with a parameter calibration program and a nominal functional parameter in the software source code;

[0115] The first computing unit is configured to perform AI computing on a target source code file using a shared source code resource library, and optimize and adjust the target source code file to obtain an optimized source code file;

[0116] A generating unit is configured to generate an optimization parameter calibration program and a second optimization function parameter based on the optimization source code file;

[0117] A replacement unit is configured to replace the parameter calibration program and the nominal functional parameters of the first program space in the software upgrade package with the optimized parameter calibration program and the second optimized functional parameters to obtain a second update upgrade package;

[0118] The third flashing unit is configured to flash the second update package to the target ECU.

[0119] In some embodiments, the third flashing unit may be specifically configured as follows:

[0120] Updating the first updated AI simulation operating environment based on the second optimization function parameter to obtain a second updated AI simulation operating environment;

[0121] Sending a third control instruction to the target ECU to control the target ECU to operate in the second updated AI simulation operation scenario to obtain a third operation state parameter;

[0122] Comparing the second optimization function parameter with the third operation state parameter to obtain a third parameter comparison result;

[0123] If the comparison result of the third parameter is less than or equal to the preset deviation threshold, the second update package is flashed to the target ECU.

[0124] In some embodiments, the above-mentioned ECU upgrade flash writing device may further include:

[0125] A second acquisition unit is configured to acquire the software source code corresponding to the software upgrade package if it is necessary to perform AI calculation optimization adjustment on the software source code corresponding to the software upgrade package;

[0126] The second computing unit is configured to perform AI computing on the software source code using the shared source code resource library, and optimize and adjust the software source code to obtain optimized software source code;

[0127] A compiling unit, configured to compile the optimization software source code to generate an optimization upgrade program;

[0128] A third updating unit is configured to update the software upgrade package according to the optimization upgrade program to obtain a third update upgrade package;

[0129] The fourth flashing unit is configured to flash the third update package to the target ECU.

[0130] In some embodiments, the software upgrade package includes a first program space and a second program space, the first program space is used to store parameter calibration programs and nominal functional parameters corresponding to the target ECU, and the second program space is used to store application function programs corresponding to the target ECU.

[0131] The third updating unit mentioned above may be specifically configured as follows:

[0132] Deleting the nominal function parameters and parameter calibration program in the first program space of the software upgrade package, and the application function program in the second program space;

[0133] The optimized upgrade program is written into the first program space and the second program space of the software upgrade package to obtain a third update upgrade package.

[0134] In some embodiments, the first program space includes a first labeling area, and the second program space includes a second labeling area.

[0135] Writing the optimized upgrade program into the first program space and the second program space of the software upgrade package to obtain a first updated software upgrade package, including:

[0136] Determine a first part of the upgrade program written into the first program space, and a second part of the upgrade program written into the second program space; wherein the optimized upgrade program includes the first part of the upgrade program and the second part of the upgrade program;

[0137] Writing the first part of the upgrade program into the first program space and recording the first update mark in the first mark area;

[0138] The second part of the upgrade program is written into the second program space, and a second update mark is recorded in the second mark area.

[0139] It should be understood that the size of the serial numbers of the steps in the above embodiments does not 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 embodiments of the present application.

[0140] Fig.10 Schematic diagram of an electronic device 10 provided in an embodiment of the present application. Fig.10 As shown, the electronic device 10 of this embodiment includes: a processor 1001, a memory 1002, and a computer program 1003 stored in the memory 1002 and executable on the processor 1001. When the processor 1001 executes the computer program 1003, the steps in the above-mentioned method embodiments are implemented. Alternatively, when the processor 1001 executes the computer program 1003, the functions of the modules / units in the above-mentioned device embodiments are implemented.

[0141] The electronic device 10 may be a desktop computer, a notebook, a PDA, a cloud server, or other electronic device. The electronic device 10 may include, but is not limited to, a processor 1001 and a memory 1002. Those skilled in the art will appreciate that Fig.10 The electronic device 10 is merely an example and does not limit the electronic device 10 . The electronic device 10 may include more or fewer components than shown in the figure, or different components.

[0142] The processor 1001 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.

[0143] The memory 1002 may be an internal storage unit of the electronic device 10, for example, a hard disk or memory of the electronic device 10. The memory 1002 may also be an external storage device of the electronic device 10, for example, a plug-in hard disk, a smart media card (SMC), a secure digital (SD) card, a flash card (FlashCard), etc. equipped on the electronic device 10. The memory 1002 may also include both an internal storage unit of the electronic device 10 and an external storage device. The memory 1002 is used to store computer programs and other programs and data required by the electronic device.

[0144] 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 assigned to 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 embodiments can be integrated into one processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit. The above-mentioned integrated unit can be implemented in the form of hardware or in the form of software functional units.

[0145] 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 readable storage medium (e.g., a computer-readable storage medium). Based on this understanding, the present application 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. The computer program may include computer program code, which may be in source code form, object code form, executable file or some intermediate form. Computer-readable storage media may include: any entity or device capable of carrying computer program code, recording medium, U disk, mobile hard disk, disk, optical disk, computer memory, read-only memory (ROM), random access memory (RAM), electric carrier signal, telecommunication signal and software distribution medium, etc.

[0146] The above embodiments are only used to illustrate the technical solutions of the present application, rather than to limit them. Although the present application has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. These modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present application, and should all be included in the protection scope of the present application.

Claims

1. An ECU upgrade flashing method, characterized in that: include: When upgrading and flashing the target ECU, obtain the software upgrade package and nominal functional parameters corresponding to the target ECU; issuing a first control instruction to the target ECU to control the target ECU to perform simulation parameter debugging in an AI simulation operation environment to obtain a first operation state parameter; wherein the AI ​​simulation operation environment is associated with the nominal functional parameter; Comparing the nominal functional parameter with the first operating state parameter to obtain a first parameter comparison result; If the first parameter comparison result is less than or equal to the preset deviation threshold, the simulation parameter debugging of the target ECU is terminated, and it is determined whether it is necessary to perform AI calculation optimization adjustment on the software source code corresponding to the software upgrade package; If it is not necessary to perform AI calculation optimization adjustment on the software source code corresponding to the software upgrade package, the software upgrade package is flashed to the target ECU.

2. The method according to claim 1, characterized in that: After comparing the nominal function parameter with the first operating state parameter to obtain a first parameter comparison result, the method further includes: If the first parameter comparison result is greater than a preset deviation threshold, optimizing and adjusting the nominal functional parameters to obtain first optimized functional parameters; Updating the AI ​​simulation operating environment based on the first optimization function parameter to obtain a first updated AI simulation operating environment; issuing a second control instruction to the target ECU to control the target ECU to operate under the first updated AI simulation operating environment to obtain a second operating state parameter; Comparing the first optimization function parameter with the second operating state parameter to obtain a second parameter comparison result; If the second parameter comparison result is less than or equal to the preset deviation threshold, and there is no need to perform AI calculation optimization adjustment on the software source code corresponding to the software upgrade package, then the nominal function parameters in the software upgrade package are updated to the first optimized function parameters to obtain a first updated upgrade package; Flashing the first update package to the target ECU.

3. The method according to claim 2, characterized in that The software upgrade package includes a first program space, wherein the first program space is used to store a parameter calibration program and nominal function parameters corresponding to the target ECU; After comparing the first optimization function parameter with the second operating state parameter to obtain a second parameter comparison result, the method further includes: If the second parameter comparison result is less than or equal to the preset deviation threshold, and it is necessary to perform AI calculation optimization adjustment on the software source code corresponding to the software upgrade package, then obtain the software source code corresponding to the software upgrade package; Extracting a target source code file associated with the parameter calibration procedure and the nominal functional parameters from the software source code; Using a shared source code resource library to perform AI calculation on the target source code file, and optimizing and adjusting the target source code file to obtain an optimized source code file; Based on the optimization source code file, generating an optimization parameter calibration program and a second optimization function parameter; Replacing the parameter calibration program and the nominal functional parameters of the first program space in the software upgrade package with the optimized parameter calibration program and the second optimized functional parameters to obtain a second update upgrade package; Flash the second update package to the target ECU.

4. The method according to claim 3, characterized in that Flashing the second update package to the target ECU includes: Updating the first updated AI simulation operating environment based on the second optimization function parameter to obtain a second updated AI simulation operating environment; issuing a third control instruction to the target ECU to control the target ECU to operate in the second updated AI simulation operation scenario to obtain a third operation state parameter; Comparing the second optimization function parameter with the third operating state parameter to obtain a third parameter comparison result; If the third parameter comparison result is less than or equal to the preset deviation threshold, the second update package is flashed to the target ECU.

5. The method according to claim 1, characterized in that After determining whether it is necessary to perform AI calculation optimization adjustment on the software source code corresponding to the software upgrade package, the method further includes: If it is necessary to perform AI calculation optimization adjustment on the software source code corresponding to the software upgrade package, obtain the software source code corresponding to the software upgrade package; Using a shared source code resource library to perform AI calculations on the software source code, and optimizing and adjusting the software source code to obtain optimized software source code; Compiling the optimization software source code to generate an optimization upgrade program; Updating the software upgrade package according to the optimization upgrade program to obtain a third update upgrade package; Flash the third update package to the target ECU.

6. The method according to claim 5, characterized in that The software upgrade package includes a first program space and a second program space, the first program space is used to store the parameter calibration program and nominal function parameters corresponding to the target ECU, and the second program space is used to store the application function program corresponding to the target ECU; The software upgrade package is updated according to the optimization upgrade program to obtain a third update upgrade package, including: Deleting the nominal function parameters and parameter calibration program in the first program space of the software upgrade package, and the application function program in the second program space; The optimized upgrade program is written into the first program space and the second program space of the software upgrade package to obtain a third update upgrade package.

7. The method according to claim 6, characterized in that The first program space includes a first labeling area, and the second program space includes a second labeling area; Writing the optimized upgrade program into the first program space and the second program space of the software upgrade package to obtain a first updated software upgrade package includes: Determine a first part of the upgrade program written into the first program space, and a second part of the upgrade program written into the second program space; wherein the optimized upgrade program includes the first part of the upgrade program and the second part of the upgrade program; Writing the first part of the upgrade program into the first program space, and recording a first update mark in the first mark area; The second part of the upgrade program is written into the second program space, and a second update mark is recorded in the second mark area.

8. An ECU upgrade flashing device, characterized in that: include: An acquisition unit is configured to acquire a software upgrade package and nominal functional parameters corresponding to the target ECU when the target ECU is upgraded and flashed; A control unit is configured to issue a first control instruction to the target ECU to control the target ECU to perform simulation parameter debugging in an AI simulation operation environment to obtain a first operation state parameter; wherein the AI ​​simulation operation environment is associated with the nominal functional parameter; a comparing unit, configured to compare the nominal functional parameter with the first operating state parameter to obtain a first parameter comparison result; A judgment unit is configured to terminate the simulation parameter debugging of the target ECU if the first parameter comparison result is less than or equal to a preset deviation threshold, and judge whether it is necessary to perform AI calculation optimization adjustment on the software source code corresponding to the software upgrade package; The flashing unit is configured to flash the software upgrade package to the target ECU if there is no need to perform AI calculation optimization adjustment on the software source code corresponding to the software upgrade package.

9. An 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 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

Patent Citations

  • Verification method and system for over-the-air upgrade of vehicle master control system

    CN114817900A

  • Whole vehicle level fault diagnosis system, vehicle and method

    CN116449791A

  • OTA upgrade flashing method and device for vehicle ECU, VBOX and new energy automobile

    CN117950707A

  • Simulation prediction method and simulation prediction equipment for quantitatively analyzing fogging risk of vehicle lamp and computer readable storage medium

    CN118228489A

  • OTA upgrade fault debugging tracking method and device, whole vehicle gateway and new energy vehicle

    CN118301568A

Cited By

  • OTA upgrading method of vehicle ECU and storage medium

    CN120762709A