ECU upgrade flashing method, device, electronic device and readable storage medium

By debugging ECU parameters in an AI simulation environment, the quality and stability issues after ECU upgrades are resolved, achieving an efficient ECU upgrade method without the need for actual vehicle debugging and reducing costs.

CN119248303BActive Publication Date: 2025-09-30CHONGQING SELIS PHOENIX INTELLIGENT INNOVATION TECH CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

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

AI Technical Summary

Technical Problem

In the existing technology, the software code quality and stability of ECU components are difficult to guarantee, and the parameter debugging process after upgrading is time-consuming, labor-intensive and costly.

Method used

By performing simulated parameter debugging on the target ECU in an AI simulation operating environment, the operating status parameters are obtained and compared with the nominal functional parameters. If the deviation is within the preset threshold, the debugging is terminated and the software upgrade package is directly flashed to avoid actual vehicle parameter debugging.

Benefits of technology

Ensure that ECU parts reach the optimal state directly after upgrading, save parameter debugging time, manpower and material resources, and improve the quality and stability of software code.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119248303B_ABST
    Figure CN119248303B_ABST
Patent Text Reader

Abstract

The present application relates to the field of new energy vehicles, and provides an ECU upgrade flashing method, device, electronic device and readable storage medium. The method includes: when upgrading and flashing the target ECU, obtaining the software upgrade package and nominal functional parameters corresponding to the target ECU; controlling the target ECU to perform simulation parameter debugging under the AI ​​simulation operation environment to obtain the first operating state parameter; if the first parameter comparison result between the nominal functional parameter and the first operating state parameter is less than or equal to the preset deviation threshold, then the 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 AI-calculated and optimized, then the software upgrade package is flashed to the target ECU. The present application can ensure the quality and stability of the ECU's software source code, and 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.
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 smart connected cars become increasingly versatile, the number of ECUs (Electronic Control Units) in vehicle systems is increasing, and their functionality is becoming increasingly complex and rich. This has led to an increasing volume and complexity of ECU software code. This large volume and complexity of ECU software code makes it increasingly difficult to control the quality of ECU software code, making it difficult to ensure its quality and stability.

[0004] Currently, research on how to ensure the quality and stability of software code used in ECU upgrades and flashing remains largely unresolved. Furthermore, prior art requires multiple parameter tuning tests on actual vehicles to ensure the upgraded ECU operates optimally under various operating conditions. This process is time-consuming, labor-intensive, and expensive. 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 upgrade flashing, 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] issuing a first control instruction to the target ECU to control the target ECU to perform simulation parameter debugging in the AI ​​simulation operating environment to obtain a first operating state parameter; wherein the AI ​​simulation operating 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 AI calculation optimization adjustment is required for 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 configured to acquire a software upgrade package and nominal functional parameters corresponding to the target ECU when upgrading and flashing the target ECU;

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

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

[0016] a judgment unit configured to terminate simulation parameter debugging of the target ECU if the first parameter comparison result is less than or equal to a preset deviation threshold, and to determine whether AI calculation optimization adjustment is required for 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. When the computer program is executed by a processor, the steps of the above method are implemented.

[0020] Compared with the prior art, the present embodiment has at least the following advantages: when upgrading and flashing a target ECU, the target ECU is controlled to perform simulated parameter debugging in an AI simulation operating environment to obtain a first operating state parameter; if the first parameter comparison result between the nominal functional parameter and the first operating state parameter is less than or equal to a preset deviation threshold, the simulated parameter debugging of the target ECU is terminated; and if it is determined that AI calculation optimization adjustment of the software source code corresponding to the software upgrade package is not required, the software upgrade package is flashed to the target ECU. This not only ensures the quality and stability of the upgraded software code of the ECU component, but also determines the nominal functional parameters of the target ECU when operating in an optimal state under various operating conditions by performing simulated parameter testing on the target ECU during the upgrade and flashing process. This allows the upgraded target ECU to directly achieve the optimal operating state without the need for additional testing, i.e., without the need for additional parameter debugging of the upgraded target ECU on a real vehicle. This significantly saves the time, manpower, and material resources required for parameter debugging of the upgraded ECU, and significantly reduces 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 following briefly introduces the drawings required for use in the embodiments or descriptions of the prior art. 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 any creative work.

[0022] Figure 1 This 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 This is a structural diagram of an ECU upgrade flashing system provided by an embodiment of the present application;

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

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

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

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

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

[0031] Figure 10 This is a structural 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 and techniques are provided for purposes of illustration rather than limitation to facilitate a thorough understanding of the embodiments of the present application. However, it will be apparent to those skilled in the art that the present application may be implemented in other embodiments without these specific details. In other cases, detailed descriptions of well-known systems, devices, circuits, and methods are omitted to avoid obscuring the description of the present application with unnecessary detail.

[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 This 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 controller (Cockpit Domain Controller, abbreviated 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 connected to the vehicle gateway 103. The vehicle gateway 103 is connected to each ECU component that can be connected to it through a CAN (Controller Area Network) bus or Ethernet (ETH). The intelligent cockpit controller 102 carries an OTA upgrade master controller (abbreviated as "UMC"). The vehicle gateway 103 carries an OTA upgrade agent (abbreviated as "UA"). Each ECU component carries an OTA upgrade slave controller (abbreviated as "US").

[0035] The target ECU to be upgraded and flashed can be any one or more ECUs connected to the vehicle gateway 103, or it can 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 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. Figure 3 This is a diagram of a message conversion method in the ECU upgrade flashing method provided by the embodiment of this application. Figure 2 and Figure 3 When the OTA upgrade master controller (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 an 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 in a link (i.e., layer 2) transparent transmission manner, and then use the DOIP (Diagnostic communication over Internet Protocol) protocol to communicate data with the target ECU (ECU1-2 and ECU1-n) to upgrade the target ECU (ECU1-2 and ECU1-n). Figure 1 ECU2-1 and ECU2-n shown in the figure), then the OTA upgrade master control (UMC) can first establish a TCP communication connection with the vehicle gateway 103, and then transmit 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 through the ETH message format (as shown in the figure). 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 structural diagram of an ECU upgrade flashing system provided by an embodiment of the present application. Figure 4The ECU upgrade and flashing system includes an OTA cloud platform 101, a cockpit domain controller (CDC) 102, a vehicle gateway (VGW) 103, and ECU components connected to the vehicle gateway 103. The OTA cloud platform 101 and the CDC 102 communicate via HTTPS (Hyper Text Transfer Protocol over Secure Socket Layer). Figure 4 The figure shows the connection between the OTA cloud platform 101, CDC 102 (carrying the UMC), VGW 103, and the target ECU, 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 the software version management module and the software upgrade management module. The CDC carries the OTA upgrade master control (UMC), and the internal modules of the UMC include the security management module, AI scenario operation module, AI calculation module, calibration parameter module, download management module, upgrade management module, acquisition control module, and file reinstallation module.

[0039] Figure 5 This 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, obtaining 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 device parameters (or theoretical device parameters) used to identify or characterize the relevant functions of the target ECU. For example, if the target ECU is a range extender, the nominal functional parameters used to identify or characterize its relevant functions include ideal torque, ideal power, etc.

[0043] In step S502 , a first control instruction is issued to the target ECU to control the target ECU to perform simulation parameter debugging in an AI simulation operating environment to obtain a first operating state parameter; wherein the AI ​​simulation operating environment is associated with the nominal functional parameter.

[0044] The AI ​​simulation operating environment can be understood as a virtual operating scenario (or simulated operating environment) built based on the latest AI technology (artificial intelligence technology) that is infinitely close to the target ECU running 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 being related to the nominal functional parameters of the target ECU. The environmental configuration parameters can be set based on the nominal functional parameters of the target ECU operating under various operating 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. The environmental parameters of the AI ​​simulation operating environment can be set based on 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 operating in the AI ​​simulation operating environment. For example, 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 operating in the AI ​​simulation operating environment.

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

[0048] Specifically, the deviation between the nominal functional parameter and the first operating state parameter is calculated to obtain a first parameter comparison result. As an example, assuming that the nominal functional parameter includes an ideal torque and the first operating state parameter includes an actual torque, the deviation 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 AI calculation optimization adjustment is required for 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. This application does not impose any specific restrictions on this.

[0051] You can pre-configure whether to perform AI calculation optimization adjustments on the software source code corresponding to the software upgrade package while debugging the software upgrade package's parameters. For example, you can set it to perform AI calculation optimization adjustments on the software source code corresponding to the software upgrade package while debugging the software upgrade package's parameters; you can also set it to not perform AI calculation optimization adjustments on the software source code corresponding to the software upgrade package while debugging the software upgrade package's parameters. 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 a target ECU, controls the target ECU to perform simulated parameter debugging in an AI simulated operating environment to obtain a first operating state parameter; if the first parameter comparison result between the nominal functional parameter and the first operating state parameter is less than or equal to a preset deviation threshold, the simulated parameter debugging of the target ECU is terminated; at the same time, if it is determined that AI calculation optimization adjustment of the software source code corresponding to the software upgrade package is not required, the software upgrade package is flashed to the target ECU. In this way, not only the quality and stability of the upgraded software code of the ECU component are guaranteed, but also, by performing simulated parameter testing on the target ECU during the upgrade and flashing, the nominal functional parameters of the target ECU when operating in the optimal state under various operating conditions can be determined, eliminating the need for additional testing, that is, eliminating the need for additional parameter debugging of the upgraded target ECU on a real vehicle. This can significantly save the time, manpower, and material resources required for parameter debugging of the upgraded ECU, and can greatly reduce the cost of parameter debugging of the upgraded target ECU.

[0054] Figure 6 This is a structural diagram of another ECU upgrade flashing system provided by the embodiment of the present application. Figure 6When upgrading and flashing the target ECU, the OTA upgrade master controller (UMC) of the CDC on the vehicle side (for example, a new energy vehicle) 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 and communicates 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 in the AI ​​simulation operation environment through the "acquisition control module" (that is, control the target ECU to perform functional operations under various working conditions and perform simulation parameter debugging) to obtain the first operating state parameter. The "acquisition control module" transmits the first operating state parameter fed back by the target ECU to the "AI scenario operation module". After receiving the first operating state parameter, the "AI scenario operation module" compares the first operating 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 functional parameter with the first operating state parameter to obtain a 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] 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;

[0059] Comparing the first optimization function parameter with the second operating 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, then the nominal functional parameters in the software upgrade package are updated to the first optimized functional parameters to obtain a first updated 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 a preset deviation threshold (e.g., 5%), it issues a parameter adjustment instruction to the "AI calculation module." The "AI calculation module" receives and executes the parameter adjustment instruction, optimizing and adjusting the nominal functional parameters of the target ECU according to a preset parameter adjustment strategy, thereby obtaining first optimized functional parameters. The preset parameter adjustment strategy may be optimizing and adjusting the nominal functional parameters according to a preset ascending gradient or descending gradient. For example, assuming that the nominal functional parameters include ideal torque, the first operating state parameter is actual torque, and the deviation between the actual torque and the ideal torque is greater than a preset deviation threshold (e.g., 5%), i.e., the actual torque is greater than the ideal torque, and the actual torque needs to be gradually reduced, the actual torque can be gradually reduced according to a preset descending gradient, so that the actual torque approaches or reaches the ideal torque. Next, the "AI calculation module" transmits the first optimized functional parameter to the "AI scenario operation module." After receiving the first optimized functional parameter, the "AI scenario operation module" updates the environmental parameters of the AI ​​simulation operation environment based on the first optimized functional parameter, thereby obtaining a first updated AI simulation operation environment. The AI ​​Scenario Operation Module then issues a second control instruction to the target ECU via the Acquisition Control Module, causing the Acquisition Control Module to control the target ECU's operation under the first updated AI simulation operating environment (i.e., controlling the target ECU to perform functional operations under various operating conditions and perform simulation parameter debugging) to obtain second operating state parameters. The Acquisition Control Module transmits the second operating state parameters fed back by the target ECU to the AI ​​Scenario Operation Module. The AI ​​Scenario Operation Module receives the second operating state parameters and compares the first optimized functional parameters with the second operating state parameters to obtain a second parameter comparison result. If the second parameter comparison result is less than or equal to a preset deviation threshold (e.g., 5%) and it is determined that no AI calculation optimization adjustment is required for the software source code corresponding to the software upgrade package, the AI ​​Calculation Module transmits the second operating state parameters to the File Reinstallation Module. Upon receiving the second operating state parameters, the File Reinstallation Module updates the nominal functional parameters in the software upgrade package to the first optimized functional parameters, obtaining a first update package. This first update package is then transmitted 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 repeatedly executed until the parameter comparison result (parameter deviation value) between the operating status parameters of the target ECU and the nominal functional parameters 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 operating state parameter to obtain a second parameter comparison result, the method further includes:

[0066] If the comparison result of the second parameter is less than or equal to the preset deviation threshold, and AI calculation optimization adjustment is required for the software source code corresponding to the software upgrade package, then 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 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 optimized source code file, generate the optimization parameter calibration program and the second optimization function parameters;

[0070] Replacing the parameter calibration program and nominal functional parameters of the first program space in the software upgrade package with the optimized parameter calibration program and 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 this application. Figure 7The software upgrade package provided in the embodiment of the present application includes a first program space 701 (also known as a calibration and parameter program space), a second program space 702 (also known as an application program space), and a third program space 703 (also known as a boot program space). The first program space 701 can be used to store the parameter calibration program and nominal functional parameters of the target ECU. The parameter calibration program refers to a program used to calibrate 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. An application function program (also known as an application program) is a computer program designed to perform 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 specific user application purpose. Application programs are generally divided into two parts: a graphical user interface and an engine. Application software is different from application software. Application software refers to a purpose-based classification and can be a single program or a collection of other subordinate components. Application software refers to a single executable file or a single program. In daily life, the two are not carefully distinguished, and programs are generally considered to be a component of software. The third program space 703 can be used to store a boot program. A boot program is a utility program. After a computer starts up, the system automatically enters a short program to complete the boot process. Booting is a common method used by computers to initiate input. After a computer starts up, the device inputs a small amount of instructions and data, which then enter 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 this application. Figure 8 The software source code may include a source code AI marking area, an AI modification location marking area, and a source code file area. The source code AI marking area can be used to indicate whether AI calculations and optimization adjustments have been performed on the software source code corresponding to the software upgrade package for the target ECU. For example, the number "1" can indicate that AI calculations and optimization adjustments have been performed on the software source code, while the number "0" can indicate that AI calculations and optimization adjustments have not been performed on the software source code. The AI ​​modification location marking area can be used to indicate the code location in the software source code that has been modified, for example, the code from line n to line m has been modified. This allows users (such as developers) to easily verify the specific location and content of the AI-modified software code, further confirming whether the AI-modified software source code has quality issues, thereby ensuring the quality and stability of the software source code. The source code file area can be used to store source code files related to the nominal functional 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 and adjusted by AI calculation (for example, the vehicle system is pre-set to perform AI calculation optimization adjustment on the software source code corresponding to the software upgrade package when optimizing the nominal functional parameters of the target ECU), 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 functional 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 inspections on the target source code file in the current operating system, CPU architecture, coding standards, etc., and perform security and vulnerability repairs 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 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, thereby obtaining 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 the "file reinstallation module" then 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 second optimized functional parameters, and replaces the parameter calibration program and nominal functional parameters of the first program space 701 in the software upgrade package with the optimized parameter calibration program and second optimized functional parameters to obtain 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 solution, when upgrading and flashing the target ECU, the nominal functional parameters of the target ECU when operating in the optimal state under various working conditions can be determined based on the AI ​​simulation operating environment debugging, without the need for additional testing. This 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 target ECU's parameter calibration program and nominal functional parameters 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] issuing a third control instruction to the target ECU to control the target ECU to operate in the second updated AI simulation operation scenario and obtain a third operation state parameter;

[0079] Comparing the second optimization function parameter and the third operating 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 working 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 embodiment is repeatedly executed until the parameter comparison result (parameter deviation value) between the operating status parameters and the nominal functional parameters of the target ECU is less than the preset deviation threshold.

[0083] Through the above implementation, 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 meet the target ECU's operation 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 upgrade.

[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 following steps are further included:

[0085] If you need to perform AI calculation optimization adjustments 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] Updating the software upgrade package 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 determines that AI computational optimization adjustments are required for the software source code corresponding to the software upgrade package, it can download the corresponding software source code for the target ECU from the OTA cloud platform's Software Upgrade Management Module via the Download Management Module. The AI ​​Scenario Operation Module then leverages AI's powerful global shared resource library (i.e., shared source code library) to perform code security and vulnerability checks on the software source code for the current operating system, CPU architecture, and coding standards, and performs security and vulnerability remediation to enhance software security. Simultaneously, the software source code is optimized for the current operating system and CPU architecture, removing redundant code and fixing low-performance code. This minimizes CPU and memory usage and maximizes operational efficiency, resulting in an optimized source code file. The AI ​​Scenario Operation Module then transfers this optimized source code file via the AI ​​Computing Module to the File Reinstallation Module for packaging. The File Reinstallation Module then uploads the packaged optimized source code file to the OTA cloud platform's Software Version Management Module. The File Reinstallation Module also recompiles the optimized source code file to generate the optimized upgrade program. The optimization and upgrading program includes a parameter calibration program and an optimization program related to nominal function parameters in the first program space 701 , and an optimization program related to application function programs in the second program space 702 .

[0091] See also Figure 7 First program space 701 includes a first tag area, and second program space 702 includes a second tag area. The first tag area may be the first 16 bytes of data in first program space 701. For example, the data structure of first program space 701 is: first tag area + nominal function parameters + parameter calibration program. The second tag area may be the first 16 bytes of data in second program space. For example, the data structure of second program space 702 is: second tag 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, specifically including: 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, the optimized upgrade program is written into the first program space and the second program space of the software upgrade package to obtain a first updated software upgrade package, which specifically includes: determining the first part of the upgrade program written into the first program space, and the 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; the first part of the upgrade program is written into the first program space, and the 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 the 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. It then queries and confirms the first portion of the upgrade program written to the first program space 701 (i.e., the optimization program related to the parameter calibration program and nominal function parameters in the first program space 701), as well as the second portion of the upgrade program written to 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 portion of the upgrade program to the "nominal function parameters + parameter calibration program" area of ​​the first program space 701 and records a first update flag in the first marking area (or "AI calculation marking area"). This first update flag indicates that optimization adjustments have been made to the "nominal function parameters + parameter calibration program" of the software upgrade package for the target ECU, along with the specific content of the optimization adjustments and the update timestamp, to facilitate user (e.g., developer) review and iterative development of this portion of the program. The "File Reinstallation Module" writes the second portion of the upgrade program to the "Application Function Program" area within the second program space 702 and records a second update marker in the second marker area (or "AI Computation Marker Area"). This second update marker indicates that optimizations have been made to the target ECU's software upgrade package's application function program, along with the details of the optimizations and the update timestamp, to facilitate user (e.g., developer) review and iterative development of this portion of the program.

[0095] All of the above optional technical solutions can be combined in any way to form optional embodiments of the present application, and will not be described in detail here.

[0096] In summary, the technical solution provided by the embodiment of the present application is that when upgrading and flashing the target ECU, the software upgrade package and software source code are first downloaded to the UMC for AI scenario operation and calculation. The current operating state parameters fed back by the target ECU are compared with the preset calibration function parameters. Through AI calculation, it is made to reach the optimal parameter state, and the optimal marking parameters (i.e., the optimized function parameters) are written into the "calibration and parameter program" location of the software upgrade package (i.e., the location of the first program space 701); at the same time, the software source code is subjected to AI scenario operation and calculation, the code is optimized and reorganized, coding vulnerabilities are detected and repaired, and the matching code is achieved to achieve 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 main control to run the target ECU in an AI scenario close to the "real world" (i.e., run in an AI simulated operating environment for parameter debugging), and the "calibration parameter" requirements of the target ECU are achieved through AI calculation, so that the upgraded target ECU directly reaches the optimal state without the need for further debugging and adaptation, 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 code coding standards and optimized execution efficiency, the code coding quality can be greatly improved, and the "robustness" and portability of the software code can be improved.

[0097] The following are device embodiments of the present application, which can be used to implement the method embodiments of the present application. For details not disclosed in the device embodiments of the present application, please refer to the method embodiments of the present application.

[0098] Figure 9 This is a schematic diagram of an ECU upgrade flashing device provided in an embodiment of the present application. Figure 9 As shown, the ECU upgrade flashing 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 upgrading and flashing the target ECU;

[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 functional parameter with the first operating state parameter to obtain a first parameter comparison result;

[0102] The judgment unit 904 is configured to terminate 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 determine 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 flashing device may further include:

[0105] an adjusting 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 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 issue a second control instruction to the target ECU to control the target ECU to operate in the first updated AI simulation operating environment to obtain a second operating state parameter;

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

[0109] The second updating unit is configured to update the nominal functional parameters in the software upgrade package to the first optimized functional parameters 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, thereby obtaining a first updated 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 flashing 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 AI calculation optimization adjustment is required for the software source code corresponding to the software upgrade package;

[0114] an extraction unit configured to extract a target source code file associated with the parameter calibration program and the nominal functional parameters from 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 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] issuing a third control instruction to the target ECU to control the target ECU to operate in the second updated AI simulation operation scenario and obtain a third operation state parameter;

[0122] Comparing the second optimization function parameter and the third operating 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 flashing device may further include:

[0125] The second acquisition unit is configured to acquire the software source code corresponding to the software upgrade package if AI computing optimization adjustment is required for 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 compilation unit is 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 optimized upgrade program to obtain a third updated 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] Determining a first portion of the upgrade program to be written into the first program space, and a second portion of the upgrade program to be written into the second program space; wherein the optimized upgrade program includes the first portion of the upgrade program and the second portion 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 this application.

[0140] Figure 10 Schematic diagram of the electronic device 10 provided in the embodiment of the present application. Figure 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 by the processor 1001. When the processor 1001 executes the computer program 1003, the steps of the above-described method embodiments are implemented. Alternatively, when the processor 1001 executes the computer program 1003, the functions of the modules / units in the above-described 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 Figure 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] Memory 1002 can be an internal storage unit of electronic device 10, such as a hard disk or memory of electronic device 10. Memory 1002 can also be an external storage device of electronic device 10, such as a plug-in hard disk, a Smart Media Card (SMC), a Secure Digital (SD) card, a Flash Card, etc. equipped on electronic device 10. Memory 1002 can also include both an internal storage unit of electronic device 10 and an external storage device. Memory 1002 is used to store computer programs and other programs and data required by the electronic device.

[0144] Those skilled in the art will clearly understand that for the sake of convenience and brevity of description, only the division of the above-mentioned functional units and modules is used as an example for illustration. In actual applications, the above-mentioned functions can be distributed and completed by different functional units and modules as needed, that is, the internal structure of the device can be divided into different functional units or modules to complete all or part of the functions described above. 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 units 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 (such as 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, etc. Computer-readable storage media may include: any entity or device capable of carrying computer program code, recording medium, U disk, mobile hard disk, magnetic 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 various embodiments of the present application, and should all be included in the scope of protection of the present application.

Claims

1. An ECU upgrade flashing method, characterized in that: include: When upgrading and flashing the target ECU, obtaining a software upgrade package corresponding to the target ECU, the software upgrade package including a first program space storing a parameter calibration program 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 operating environment to obtain a first operating state parameter; wherein the AI ​​simulation operating 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 a preset deviation threshold, the simulation parameter debugging of the target ECU is terminated, and it is determined whether AI calculation optimization adjustment is required for 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, flashing the software upgrade package to the target ECU; If the first parameter comparison result is greater than a preset deviation threshold, the following steps are executed in a loop: optimizing and adjusting the nominal functional parameters to obtain first optimized functional parameters; issuing a second control instruction to the target ECU to control the target ECU to perform simulation parameter debugging in an AI simulation operating environment associated with the first optimized functional parameters to obtain second operating state parameters; comparing the first optimized functional parameters with the second operating state parameters to obtain a second parameter comparison result, until the second parameter comparison result is less than or equal to the preset deviation threshold; and determining whether AI calculation optimization adjustment is required for 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, obtain the software source code corresponding to the software upgrade package; Extracting a target source code file associated with the parameter calibration program and the nominal functional parameters from the software source code; Performing AI calculation on the target source code file using a shared source code resource library, 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 nominal functional parameters of the first program space in the software upgrade package with the optimized parameter calibration program and second optimized functional parameters to obtain a second update upgrade package; Flash the second update package to the target ECU.

2. The method according to claim 1, characterized in that After a second parameter comparison result obtained by comparing the first optimization function parameter with the second operating state parameter is less than or equal to a preset deviation threshold, and it is determined whether AI calculation optimization adjustment is required for the software source code corresponding to the software upgrade package, the method further includes: If it is not necessary to perform AI calculation optimization adjustment on the software source code corresponding to the software upgrade package, then updating the nominal functional parameters in the software upgrade package to the first optimized functional parameters to obtain a first updated upgrade package; Flash the first update package to the target ECU.

3. The method according to claim 1, characterized in that Flashing the second update package to the target ECU includes: issuing a third control instruction to the target ECU to control the target ECU to operate in the AI ​​simulation operation scenario associated with the second optimization function parameter, and obtaining 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 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.

4. The method according to claim 1, wherein If the first parameter comparison result is less than or equal to a preset deviation threshold, then the simulation parameter debugging of the target ECU is terminated, and 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.

5. The method according to claim 4, characterized in that The software upgrade package further includes a second program space for storing an 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.

6. The method according to claim 5, characterized in that The first program space includes a first marking area, and the second program space includes a second marking 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: Determining a first portion of the upgrade program to be written into the first program space, and a second portion of the upgrade program to be written into the second program space; wherein the optimized upgrade program includes the first portion of the upgrade program and the second portion 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.

7. An ECU upgrade flashing device, characterized in that: include: an acquisition unit configured to acquire a software upgrade package corresponding to the target ECU when upgrading and flashing the target ECU, the software upgrade package including a first program space storing a parameter calibration program and nominal functional parameters corresponding to the target ECU; a control unit 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 operating environment to obtain a first operating state parameter; wherein the AI ​​simulation operating 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 configured to terminate simulation parameter debugging of the target ECU if the first parameter comparison result is less than or equal to a preset deviation threshold, and to judge whether AI calculation optimization adjustment is required for the software source code corresponding to the software upgrade package; a flashing unit configured to flash the software upgrade package to the target ECU if AI calculation optimization adjustment of the software source code corresponding to the software upgrade package is not required; The adjustment unit is configured to, if the first parameter comparison result is greater than a preset deviation threshold, cyclically execute the following steps: optimizing and adjusting the nominal functional parameters to obtain first optimized functional parameters, and sequentially triggering the control unit, the comparison unit, and the judgment unit to respectively execute and issue a second control instruction to the target ECU to control the target ECU to perform simulated parameter debugging in an AI simulated operating environment associated with the first optimized functional parameters to obtain second operating state parameters, and compare the first optimized functional parameters with the second operating state parameters to obtain a second parameter comparison result, until the second parameter comparison result is less than or equal to the preset deviation threshold; and determine whether it is necessary to perform AI calculation optimization adjustment on the software source code corresponding to the software upgrade package; The acquisition unit is further configured to: if it is necessary to perform AI calculation optimization adjustment on the software source code corresponding to the software upgrade package, acquire the software source code corresponding to the software upgrade package; an extraction unit configured to extract a target source code file associated with the parameter calibration program and the nominal functional parameters from the software source code; The 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; 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; a replacement unit 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; The flashing unit is further configured to flash the second update package to the target ECU.

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

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