[go: up one dir, main page]

CN119248303B - ECU upgrade flashing method, device, electronic device and readable storage medium - Google Patents

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

Info

Publication number
CN119248303B
CN119248303B CN202411125102.6A CN202411125102A CN119248303B CN 119248303 B CN119248303 B CN 119248303B CN 202411125102 A CN202411125102 A CN 202411125102A CN 119248303 B CN119248303 B CN 119248303B
Authority
CN
China
Prior art keywords
parameter
software
program
target ecu
source code
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202411125102.6A
Other languages
Chinese (zh)
Other versions
CN119248303A (en
Inventor
韩波
陈建伟
邓凌天
范例
段书桥
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Chongqing Selis Phoenix Intelligent Innovation Technology Co ltd
Original Assignee
Chongqing Selis Phoenix Intelligent Innovation Technology Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Chongqing Selis Phoenix Intelligent Innovation Technology Co ltd filed Critical Chongqing Selis Phoenix Intelligent Innovation Technology Co ltd
Priority to CN202411125102.6A priority Critical patent/CN119248303B/en
Publication of CN119248303A publication Critical patent/CN119248303A/en
Application granted granted Critical
Publication of CN119248303B publication Critical patent/CN119248303B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/65Updates
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Prevention of errors by analysis, debugging or testing of software
    • G06F11/362Debugging of software
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/70Software maintenance or management
    • G06F8/71Version control; Configuration management
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02TCLIMATE CHANGE MITIGATION TECHNOLOGIES RELATED TO TRANSPORTATION
    • Y02T10/00Road transport of goods or passengers
    • Y02T10/10Internal combustion engine [ICE] based vehicles
    • Y02T10/40Engine management systems

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Computer Security & Cryptography (AREA)
  • Computer Hardware Design (AREA)
  • Quality & Reliability (AREA)
  • Stored Programmes (AREA)

Abstract

The application relates to the field of new energy vehicles, and provides an ECU upgrading and refreshing method, an ECU upgrading and refreshing device, electronic equipment and a readable storage medium. The method comprises the steps of obtaining a software upgrading package and a nominal function parameter corresponding to a target ECU when upgrading and writing the target ECU, controlling the target ECU to carry out simulation parameter debugging in an AI simulation operation environment to obtain a first operation state parameter, ending simulation parameter debugging of the target ECU if 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, and writing the software upgrading package to the target ECU if AI calculation optimization adjustment is not needed to be carried out on software source codes corresponding to the software upgrading package. The application can ensure the quality and stability of the software source code of the ECU, greatly save the time, manpower and material resources for parameter debugging of the updated ECU, and greatly reduce the cost for parameter debugging of the updated target ECU.

Description

ECU upgrading and refreshing method and device, electronic equipment and readable storage medium
Technical Field
The application relates to the field of new energy vehicles, in particular to an ECU upgrading and refreshing method, an ECU upgrading and refreshing device, electronic equipment and a readable storage medium.
Background
The ECU component is updated and written through OTA (Over the Air Technology, space downloading technology), which is a way for rapidly repairing, iterating and improving the functions of the ECU component.
As the functions of intelligent networking automobiles are more and more abundant, the number of ECU (Electronic Control Unit ) parts of the whole automobile system of the automobiles is more and more, and the functions of the ECU parts are more and more complex and rich, so that the software code quantity of the ECU parts is more and more large, and the complexity of software is higher and higher. Because the software code quantity of the ECU is large and the complexity is high, the control difficulty of the quality of the software code of the ECU is also increased, and therefore, the quality and the stability of the software code are difficult to ensure.
At present, research on how to guarantee the quality and stability of the upgrade and update software codes of the ECU component is still in a blank stage. In addition, in the prior art, after the updating and writing of the ECU component is completed, in order to enable the updated ECU component to run in an optimal state under various working conditions, multiple parameter debugging is usually required to be carried out on a real vehicle, and the parameter debugging process is very time-consuming, and consumes a large amount of manpower and material resources and is high in cost.
Disclosure of Invention
In view of this, the embodiments of the present application provide a method, an apparatus, an electronic device, and a readable storage medium for updating and writing an ECU, so as to ensure quality and stability of an updated and written software code of an ECU, and meanwhile, not to debug parameters on an actual vehicle for an updated ECU after the ECU is updated and written, so that time, manpower, and material resources for parameter debugging for the updated ECU can be greatly saved, and thus parameter debugging cost is greatly reduced.
In a first aspect of the embodiment of the present application, there is provided an ECU upgrade writing method, including:
when updating and refreshing the target ECU, acquiring a software updating packet and nominal function parameters corresponding to the target ECU;
Issuing a first control instruction to a target ECU to control the target ECU to debug simulation parameters in an AI simulation running environment to obtain a first running state parameter, wherein the AI simulation running environment has an association relation with a nominal function parameter;
comparing the nominal function parameter with the first running state parameter to obtain a first parameter comparison result;
If the first parameter comparison result is smaller than or equal to the preset deviation threshold value, ending the simulation parameter debugging of the target ECU, and judging whether the software source code corresponding to the software upgrading package is required to be subjected to AI calculation optimization adjustment;
and if the software source code corresponding to the software upgrading packet does not need to be subjected to AI calculation optimization adjustment, the software upgrading packet is written into the target ECU.
In a second aspect of the embodiment of the present application, there is provided an ECU upgrade writing device, including:
the system comprises an acquisition unit, a control unit and a control unit, wherein the acquisition unit is configured to acquire a software upgrade package and nominal function parameters corresponding to a target ECU when the target ECU is subjected to upgrade and brush writing;
The control unit is configured to issue a first control instruction to the target ECU so as to control the target ECU to debug the simulation parameters under the AI simulation running environment to obtain a first running state parameter, wherein the AI simulation running environment has an association relation with the nominal function parameter;
The comparison unit is configured to compare the nominal function parameter with the first running state parameter to obtain a first parameter comparison result;
the judging unit is configured to finish the simulation parameter debugging of the target ECU if the first parameter comparison result is smaller than or equal to a preset deviation threshold value, and judge whether the software source code corresponding to the software upgrading packet is required to be subjected to AI calculation optimization adjustment;
And the updating unit is configured to update the software upgrading package to the target ECU if AI calculation optimization adjustment is not required to be carried out on the software source code corresponding to the software upgrading package.
In a third aspect of the embodiments of the present application, there is provided an electronic device comprising a memory, a processor and a computer program stored in the memory and executable on the processor, the processor implementing the steps of the above method when executing the computer program.
In a fourth aspect of the embodiments of the present application, there is provided a readable storage medium storing a computer program which, when executed by a processor, implements the steps of the above method.
Compared with the prior art, the method has the advantages that when updating and refreshing is carried out on the target ECU, simulation parameter debugging is carried out on the target ECU in an AI simulation operation environment through control of the target ECU, a first operation state parameter is obtained, if a first parameter comparison result between a nominal function parameter and the first operation state parameter is smaller than or equal to a preset deviation threshold value, simulation parameter debugging on the target ECU is finished, and meanwhile, if it is determined that AI calculation optimization adjustment is not needed on software source codes corresponding to a software updating package, the software updating package is refreshed on the target ECU. Therefore, the quality and stability of the updated and rewritten software codes of the ECU can be guaranteed, meanwhile, the nominal function parameters of the target ECU when the target ECU operates in the optimal state under various working conditions can be determined by performing simulation parameter test on the target ECU when the target ECU is updated and rewritten, so that the updated target ECU can directly reach the optimal working state without additional test, namely, additional parameter debugging work on a real vehicle is not needed, the time, manpower and material resources for parameter debugging on the updated ECU can be greatly saved, and the cost for parameter debugging on the updated target ECU can be greatly reduced.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings used in the embodiments or the description of the prior art will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments of the present application, and other drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
Fig. 1 is a schematic view of an application scenario according to an embodiment of the present application;
Fig. 2 is a schematic diagram of a data communication transmission mode in the ECU upgrade and refresh method provided by the embodiment of the application;
FIG. 3 is a schematic diagram of a message conversion mode in the method for updating and refreshing an ECU according to the embodiment of the application;
Fig. 4 is a schematic structural diagram of an ECU upgrade and refresh system according to an embodiment of the present application;
fig. 5 is a schematic flow chart of an ECU upgrade and refresh method according to an embodiment of the present application;
FIG. 6 is a schematic diagram of another configuration of an ECU upgrade writing system according to an embodiment of the present application;
Fig. 7 is a schematic diagram of a data structure of a software upgrade package in the ECU upgrade writing method according to the embodiment of the present application;
FIG. 8 is a schematic diagram of a data structure of a software source code in the method for updating and refreshing an ECU according to an embodiment of the present application;
FIG. 9 is a schematic diagram of an ECU upgrade writing device according to an embodiment of the present application;
fig. 10 is a schematic structural diagram of an electronic device according to an embodiment of the present application.
Detailed Description
In the following description, for purposes of explanation and not limitation, specific details are set forth such as the particular system architecture, techniques, etc., in order to provide a thorough understanding of the embodiments of the present application. It will be apparent, however, to one skilled in the art that the present application may be practiced in other embodiments that depart from these specific details. In other instances, detailed descriptions of well-known systems, devices, circuits, and methods are omitted so as not to obscure the description of the present application with unnecessary detail.
An ECU upgrade writing method and apparatus according to embodiments of the present application will be described in detail with reference to the accompanying drawings.
Fig. 1 is a schematic view of an application scenario according to an embodiment of the present application. The application scenario may include an OTA cloud platform 101, an intelligent cabin controller (Cockpit Domain Controller, abbreviated as "CDC") 102, and a Vehicle Gateway (VGW) 103. The OTA cloud platform 101 can be in communication connection with an intelligent cabin controller (CDC) 102 through a 4G/5G network, and the intelligent cabin controller 102 can be in communication connection with a Vehicle Gateway (VGW) 103 through an Ethernet (ETH). One or more ECU components may be hooked up under the vehicle gateway 103. The whole vehicle gateway 103 is connected with each ECU part which CAN be connected with the lower part thereof in a hanging way through a CAN (Controller Area Network ) bus or an Ethernet (ETH). The intelligent cabin controller 102 carries an OTA upgrade master (which may be referred to simply as "UMC"). The overall car gateway 103 carries an OTA upgrade agent (which may be referred to simply as "UA"). Each ECU component carries an OTA upgrade slave (which may be referred to simply as "US").
The target ECU that is updated and written may be any one or more ECUs that are hooked under the whole vehicle gateway 103, or may be the whole vehicle gateway 103 or the CDC 102.
It should be noted that, specific types, numbers and combinations of the OTA cloud platform 101, the intelligent cabin controller 102 and the integrated Vehicle Gateway (VGW) 103 may be adjusted according to actual requirements of an application scenario, which is not limited in the embodiment of the present application.
Fig. 2 is a schematic diagram of a data communication transmission mode in the method for updating and refreshing an ECU according to the embodiment of the present application. Fig. 3 is a schematic diagram of a message conversion mode in the method for updating and brushing the ECU according to the embodiment of the present application. Referring to fig. 2 and 3, when the OTA Upgrade Master Control (UMC) performs upgrade and refresh on the target ECU, if the target ECU is an ECU component supporting ethernet (for example, the target ECU is ECU1-2 and ECU1-n shown in fig. 1), the OTA upgrade master control may establish a TCP (Transmission Control Protocol ) communication connection with the target ECU by performing link (i.e., two-layer) transmission through the whole vehicle gateway 103, and then perform data communication transmission with the target ECU (ECU 1-2 and ECU 1-n) by using DOIP (Diagnostic communication over Internet Protocol) protocol, and perform upgrade and refresh on the target ECU (ECU 1-2 and ECU 1-n). If the target ECU is an ECU component that does not support ethernet (for example, the target ECU is ECU2-1 and ECU2-n shown in fig. 1), the OTA Upgrade Master Control (UMC) may first establish a TCP communication connection with the whole vehicle gateway 103, then transmit an upgrade message to the whole vehicle gateway 103, where the whole vehicle gateway 103 parses the received upgrade message to obtain address information of the target ECU (ECU 2-1 and ECU 2-n), and then forwards the upgrade message to the target ECU (ECU 2-1 and ECU 2-n) through an ETH message format to a UDS message (as shown in fig. 3), and performs upgrade brushing on the target ECU (ECU 2-1 and ECU 2-n).
Fig. 4 is a schematic structural diagram of an ECU upgrade and refresh system according to an embodiment of the present application. Referring to fig. 4, the ECU upgrade and refresh system includes an OTA cloud platform 101, an intelligent cabin controller (Cockpit Domain Controller, abbreviated as "CDC") 102, a Vehicle Gateway (VGW) 103, and an ECU member suspended under the vehicle gateway 103. The OTA cloud platform 101 communicates with the intelligent cockpit controller 102 via HTTPS (Hyper Text Transfer Protocol over Secure Socket Layer, hypertext transfer security protocol) protocol. Fig. 4 shows the connection relationship between the OTA cloud platform 101, CDC 102 (carrying UMC), VGW 103, and target ECU, and the function module interfaces related to their external modules, 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 is loaded with an OTA Upgrade Master Control (UMC), and an internal module of the UMC comprises 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, an acquisition control module and a file reloading module.
Fig. 5 is a schematic flow chart of an ECU upgrade and refresh method according to an embodiment of the present application. The ECU upgrade flashing method of fig. 5 may be performed by the OTA Upgrade Master (UMC) of fig. 1. As shown in fig. 5, the ECU upgrade writing method may include the steps of:
Step S501, when updating and refreshing the target ECU, acquiring a software updating packet and nominal function parameters corresponding to the target ECU.
The software upgrade package generally refers to a software upgrade data package developed for repairing, iterating, or enhancing the function of the target ECU.
Nominal function parameter, which may also be referred to as a calibration function parameter, an ideal nominal parameter, a calibration parameter, or a nominal parameter, refers to an ideal device parameter (or referred to as a theoretical device parameter) that is used to flag or identify the relevant function of the target ECU. For example, the target ECU is a range extender, and the nominal function parameters used to flag or identify its associated function include desired torque, desired power, etc.
Step S502, a first control instruction is issued to the target ECU to control the target ECU to debug the simulation parameters under the AI simulation running environment to obtain a first running state parameter, wherein the AI simulation running environment has an association relation with the nominal function parameter.
The AI simulation operation environment can be understood as a virtual operation scene (or referred to as a simulation operation environment) which is infinitely close to an operation target ECU under a "real world" (or referred to as a real environment, a real vehicle application environment) constructed according to the latest AI technology (artificial intelligence technology).
The AI-simulated operating environment has an association with the nominal function parameter, and it can be understood that the environment configuration parameter of the AI-simulated operating environment is related to the nominal function parameter of the target ECU. The environment configuration parameters may be set according to nominal function parameters of the target ECU operating under various conditions. For example, assuming that the target ECU is a range extender, the nominal functional parameters of the range extender include an ideal starting torque and an ideal starting power, and the environmental parameters of the AI-simulated operating environment may be set according to the ideal starting torque and the ideal starting power.
The first operation state parameter refers to an actual device parameter when the target ECU operates in the AI-simulated operation environment. For example, assuming that the nominal function parameters of the target ECU include the desired torque and the desired power, the first operating state parameters include the actual torque and the actual power of the target ECU when operating in the AI-simulated operating environment.
Step S503, comparing the nominal function parameter with the first operation state parameter to obtain a first parameter comparison result.
Specifically, calculating a deviation value of the nominal function parameter and the first running state parameter to obtain a first parameter comparison result. As an example, assuming that the nominal function parameter includes an ideal torque and the first operation state parameter includes an actual torque, a deviation value between the ideal torque and the actual torque is calculated, so as to obtain a first parameter comparison result.
And step S504, if the first parameter comparison result is smaller than or equal to the preset deviation threshold value, ending the simulation parameter debugging of the target ECU, and judging whether the software source code corresponding to the software upgrading packet is required to be subjected to AI calculation optimization adjustment.
The preset deviation threshold value may be flexibly set according to practical situations, for example, may be set to 5%, 6%, etc., which is not particularly limited in the present application.
Whether AI calculation optimization adjustment is performed on the software source code corresponding to the software upgrading package can be pre-configured when parameter debugging is performed on the software upgrading package. For example, the software source code configuration method can be used for setting the parameter debugging of the software upgrading package and the AI calculation optimization adjustment of the software source code corresponding to the software upgrading package synchronously, or can be used for setting the parameter debugging of the software upgrading package and the AI calculation optimization adjustment of the software source code corresponding to the software upgrading package synchronously, and specifically can be selected and configured according to the actual requirements of users, or can be automatically configured according to the whole vehicle system.
In step S505, if the AI calculation optimization adjustment is not required for the software source code corresponding to the software upgrade package, the software upgrade package is updated to the target ECU.
According to the technical scheme provided by the embodiment of the application, when updating and writing are performed on the target ECU, the target ECU is controlled to perform simulation parameter debugging in an AI simulation operation environment to obtain a first operation state parameter, if 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, the simulation parameter debugging of the target ECU is finished, and meanwhile, if the software source code corresponding to the software updating package is determined not to be subjected to AI calculation optimization adjustment, the software updating package is written to the target ECU. Therefore, the quality and stability of the updated and rewritten software codes of the ECU can be guaranteed, meanwhile, the nominal function parameters of the target ECU when the target ECU operates in the optimal state under various working conditions can be determined by performing simulation parameter test on the target ECU, no additional test is needed, namely, no additional parameter debugging work is needed on a real vehicle, so that the time, manpower and material resources for parameter debugging on the updated ECU can be greatly saved, and the cost for parameter debugging on the updated target ECU can be greatly reduced.
Fig. 6 is a schematic structural diagram of another ECU upgrade writing system according to an embodiment of the present application. Referring to fig. 6, when an OTA Upgrade Master Control (UMC) of a CDC of a vehicle end (e.g., a new energy vehicle) performs upgrade and refresh on a target ECU, a software upgrade package corresponding to the target ECU may be downloaded from a "software upgrade management module" of the OTA cloud platform 101 through a "download management module" thereof, and the software upgrade package is temporarily stored in a memory of the UMC, and then the "download management module" transmits the software upgrade package to an "AI scene operation module". The AI scene operation module starts an AI operation environment program, and performs communication interaction with an external network through a 4G/5G network so as to obtain an AI simulation operation environment with an association relation with nominal function parameters of the target ECU. The AI calculation module obtains nominal function parameters of the target ECU through the calibration parameter module, and then transmits the nominal function parameters to the AI scene operation module. The 'AI scene operation module' sends a first control instruction to the target ECU through the 'acquisition control module', so as to control the target ECU to operate in an AI simulated operation environment (namely, control the target ECU to perform functional operation under each working condition and perform simulated parameter debugging) through the 'acquisition control module', and obtain a first operation state parameter, and the 'acquisition control module' transmits the first operation state parameter fed back by the target ECU to the 'AI scene operation module'. And after receiving the first operation state parameter, the AI scene operation module compares the first operation state parameter with the nominal function parameter to obtain a first parameter comparison result. If the first parameter comparison result is smaller than or equal to a preset deviation threshold (for example, 5%), the simulation parameter debugging of the target ECU is ended, whether the software source code corresponding to the software upgrading packet is required to be subjected to AI calculation optimization adjustment is judged, and if the AI scene operation module determines that the software source code corresponding to the software upgrading packet is not required to be subjected to AI calculation optimization adjustment, the software upgrading packet is written into the target ECU through the acquisition control module.
In some embodiments, comparing the nominal function parameter and the first operation state parameter to obtain a first parameter comparison result further includes:
If the first parameter comparison result is larger than the preset deviation threshold, optimizing and adjusting the nominal function parameter to obtain a first optimized function parameter;
updating the AI simulation running environment based on the first optimization function parameter to obtain a first updated AI simulation running environment;
Issuing a second control instruction to the target ECU to control the target ECU to operate in the first updated AI simulated operating environment so as to obtain a second operating state parameter;
comparing the first optimized function parameter with the second running state parameter to obtain a second parameter comparison result;
If the second parameter comparison result is smaller than or equal to the preset deviation threshold value, and AI calculation optimization adjustment is not needed to be carried out on the software source code corresponding to the software upgrading packet, updating the nominal function parameters in the software upgrading packet into first optimization function parameters to obtain a first updated upgrading packet;
the first update upgrade package is written to the target ECU.
As an example, referring to fig. 6, if the "AI scene operation module" determines that the first parameter comparison result is greater than the preset deviation threshold (e.g., 5%), then a parameter adjustment instruction is issued to the "AI calculation module". The AI calculation module receives and executes the parameter adjustment instruction, and optimizes and adjusts the nominal function parameters of the target ECU according to a preset parameter adjustment strategy to obtain first optimized function parameters. The preset parameter adjustment strategy may be to perform optimization adjustment on the nominal function parameter according to a preset ascending gradient or a preset descending gradient. For example, assuming that the nominal functional parameter includes an ideal torque, the first operating state parameter is an actual torque, and a deviation value of the actual torque from the ideal torque is greater than a preset deviation threshold (e.g., 5%), that is, the actual torque is greater than the ideal torque, and the actual torque needs to be gradually reduced at this time, the actual torque may be gradually reduced according to a preset descent gradient, so that the actual torque approaches or reaches the ideal torque. Next, the "AI computation module" transmits the first optimization function parameter to the "AI scene operation module". After receiving the first optimization function parameter, the 'AI scene operation module' updates the environmental parameter of the AI simulation operation environment based on the first optimization function parameter to obtain a first updated AI simulation operation environment. And then, the 'AI scene operation module' sends a second control instruction to the target ECU through the 'acquisition control module', so that the target ECU is controlled to operate in the first updated AI simulation operation environment through the 'acquisition control module' (namely, the target ECU is controlled to perform functional operation under each working condition and perform simulation parameter debugging), and a second operation state parameter is obtained. The acquisition control module transmits the second operation state parameter fed back by the target ECU to the AI scene operation module. The AI scene operation module receives the second operation state parameters and compares the first optimization function parameters with the second operation state parameters to obtain second parameter comparison results. If the second parameter comparison result is smaller than or equal to a preset deviation threshold (for example, 5%), and it is confirmed that AI calculation optimization adjustment is not needed for the software source code corresponding to the software upgrading package, the second running state parameter is transmitted to a file reloading module through the AI calculation module, after the second running state parameter is received by the file reloading module, the nominal function parameter in the software upgrading package is updated to a first optimized function parameter, a first updated upgrading package is obtained, and then the first updated upgrading package is transmitted to a target ECU, so that upgrading and writing of the target ECU are completed.
It can be appreciated that, if the second parameter comparison result is greater than the preset deviation threshold, the parameter adjustment optimization process in the above embodiment is repeatedly performed in a circulating manner until the parameter comparison result (parameter deviation value) between the operating state parameter and the nominal function parameter of the target ECU is smaller than the preset deviation threshold.
In some embodiments, the software upgrade package includes a first program space, where the first program space is used to store a parameter calibration program and nominal function parameters corresponding to the target ECU;
Comparing the first optimized function parameter with the second running state parameter to obtain a second parameter comparison result, and then further comprising:
If the second parameter comparison result is smaller than or equal to the preset deviation threshold value and AI calculation optimization adjustment is needed to be carried out on the software source code corresponding to the software upgrading package, the software source code corresponding to the software upgrading package is obtained;
extracting a target source code file associated with a parameter calibration program and nominal function parameters from the software source code;
Performing AI calculation on the target source code file by using the shared source code resource library, and performing optimization adjustment on the target source code file to obtain an optimized source code file;
Generating an optimization parameter calibration program and a second optimization function parameter based on the optimization source code file;
replacing a parameter calibration program and a nominal function parameter of a first program space in the software upgrading package with an optimized parameter calibration program and a second optimized function parameter to obtain a second updating upgrading package;
The second update upgrade package is written to the target ECU.
Fig. 7 is a schematic diagram of a data structure of a software upgrade package in the method for updating and refreshing an ECU according to the embodiment of the present application. Referring to fig. 7, a software upgrade package provided in an embodiment of the present application includes a first program space 701 (or referred to as a calibration and parameter program space), a second program space 702 (or referred to as an application program space), and a third program space 703 (or referred to as a bootstrap program space). The first program space 701 may be used to store a parameter calibration program and nominal function parameters of the target ECU. The parameter calibration program refers to a related program for executing equipment parameters of the calibration target ECU. The second program space 702 may be used to store application function programs of the target ECU. The application function program (or called application program) is a computer program for completing one or more specific works, and can be run in a user mode, can interact with a user, has a visual user interface, is one of main classifications of electronic device software, refers to software written for a certain application purpose of a user, is usually divided into two parts, namely a graphic user interface and an engine, is different from the concept of the application software, the application software refers to the purpose classification of use, and can be a single program or a collection of other slave elements, the application program refers to a single executable file or a single program, and the application program are not carefully distinguished in daily life, and is generally one component of the software. A third program space 703, which may be used to store a boot program. The bootstrap program is a practical program. After the computer is started, the system inputs a short program by itself, and the booting process is completed by the system. Booting is a means by which computers often begin inputting. After the computer is started, a small amount of instructions and data are input by the device, and then other programs are input by the device, and the process is called booting.
Fig. 8 is a schematic diagram of a data structure of a software source code in the method for updating and refreshing an ECU according to the embodiment of the present application. Referring to fig. 8, the software source code may include a source code AI flag area, an AI modification position flag area, and a source code file area, where the source code AI flag area may be used to flag whether AI calculation and optimization adjustment are performed on the software source code corresponding to the software upgrade package of the target ECU. For example, the number "1" may indicate that the AI computation and optimization adjustment is performed on the software source code, and the number "0" may indicate that the AI computation and optimization adjustment is not performed on the software source code. The AI-modified location tag area can be used to tag where in the software source code the code was modified, e.g., from line n to line m. Therefore, a user (such as a developer) can conveniently check the specific position and the modification content of the software code modified by the AI, and further confirm whether the software source code subjected to AI modification adjustment has quality problems and the like 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 programs in the first program space 701 of the software upgrade package, the application function programs in the second program space 702, and the boot programs of the third program space 703.
As an example, referring to fig. 6,7 and 8, if the "AI scenario running module" determines that the second parameter comparison result is less than or equal to the preset deviation threshold (e.g., 5%), and determines that the AI computation optimization adjustment is required for the software source code corresponding to the software upgrade package (e.g., the whole vehicle system sets the AI computation optimization adjustment for the software source code synchronization corresponding to the software upgrade package in advance when the nominal function parameter of the target ECU is optimized for adjustment), then the software source code corresponding to the software upgrade package of the target ECU may be downloaded from the "software upgrade management module" of the OTA cloud platform 101 through the "download management module" and stored temporarily in the memory of the UMC. Next, a target source code file related to the parameter calibration program nominal function parameter in the first program space 701 is extracted from the source code file area of the software source code as shown in fig. 8. The AI scene operation module can utilize AI powerful global shared resource library (or shared source code resource library) to make code security and vulnerability inspection and security and vulnerability restoration on the target source code file in the current operation system and CPU architecture, code repairing to enhance software security capability, and at the same time, optimize the code of the target source code file in the current operation system and CPU architecture to delete redundant code and repair low-performance code, so that the software upgrading packet generated by the code occupies minimum CPU resource and memory resource, and the operation efficiency is highest, so as to obtain optimized source code file. Then, the 'AI scene operation module' transmits the optimized source code file to the 'file reloading module' through the 'AI calculation module' for packing, and the 'file reloading module' uploads the packed optimized source code file to the 'software version management module' of the OTA cloud platform. Meanwhile, the file reloading module recompiles the optimized source code file to generate an optimized parameter calibration program and a second optimized function parameter, replaces the parameter calibration program and the nominal function parameter of the first program space 701 in the software upgrading package with the optimized parameter calibration program and the second optimized function parameter to obtain a second upgrading package, transmits the second upgrading package to the upgrading management module, and then the upgrading management module rewrites the second upgrading package to the target ECU.
Through the scheme, the nominal function parameters of the target ECU when operating in the optimal state under various working conditions can be determined based on AI simulation operating environment debugging when the target ECU is updated and rewritten, additional tests are not needed, the time, manpower and material resources for parameter debugging of the updated ECU can be greatly saved, and the cost for parameter debugging of the updated target ECU can be greatly reduced. And the target source code file associated with the parameter calibration program and the nominal function parameter of the target ECU in the software source code corresponding to the software upgrading package of the target ECU can be subjected to AI calculation and optimization adjustment while the nominal function parameter of the target ECU is optimized and adjusted, so that the quality and stability of the upgrading and refreshing software code of the ECU can be ensured.
In some embodiments, the writing of the second update upgrade package to the target ECU includes:
Updating the first updated AI simulation running environment based on the second optimization function parameters to obtain a second updated AI simulation running environment;
issuing a third control instruction to the target ECU to control the target ECU to operate in the second updated AI simulated operation scene, so as to obtain a third operation state parameter;
Comparing the second optimized function parameter with the third running state parameter to obtain a third parameter comparison result;
And if the third parameter comparison result is smaller than or equal to the preset deviation threshold value, the second updating upgrade package is written into the target ECU.
As an example, referring to fig. 6, after obtaining the second update upgrade package, the "AI scene operation module" updates the environmental parameters of the first updated AI simulation operation environment with the second optimization function parameters to obtain a second updated AI simulation operation environment. The 'AI scene operation module' sends a third control instruction to the target ECU through the 'acquisition control module', so that the 'acquisition control module' controls the target ECU to execute the third control instruction, the target ECU operates all working conditions under the second updated AI simulated operation scene to obtain a third operation state parameter, and the 'acquisition control module' transmits the third operation state parameter fed back by the target ECU to the 'AI scene operation module'. And after the AI scene operation module receives the third operation state parameter, calculating a deviation value between the second optimization function parameter and the third operation state parameter to obtain a third parameter comparison result. And if the third parameter comparison result is smaller than or equal to the preset deviation threshold value, the second updating upgrade package is written into the target ECU through the AI calculation module, the file reloading module and the upgrade management module.
And if the third parameter comparison result is greater than the preset deviation threshold, the parameter adjustment optimization process in the embodiment is repeatedly executed circularly until the parameter comparison result (parameter deviation value) between the running state parameter and the nominal function parameter of the target ECU is smaller than the preset deviation threshold.
According to the embodiment, the second optimized function parameters in the second updating and upgrading package obtained after the nominal function parameters and the software source codes of the target ECU are optimized and adjusted are subjected to debugging test again, so that the second optimized function parameters of the second updating and upgrading package can meet the requirement that the target ECU operates in an optimal state under various working conditions, the quality and stability of the software source codes of the target ECU are further guaranteed, meanwhile, the target ECU is marked in the optimal working condition state through AI simulation operation and AI calculation when the target ECU is updated and written, additional test is not needed, and the time cost, labor cost and material cost for parameter debugging and calibration on a real vehicle after the ECU is updated can be greatly saved.
In other embodiments, after determining whether the AI computation optimization adjustment is needed for the software source code corresponding to the software upgrade package, the method further includes:
If the software source code corresponding to the software upgrading package is required to be subjected to AI calculation optimization adjustment, acquiring the software source code corresponding to the software upgrading package;
AI calculation is carried out on the software source codes by utilizing the shared source code resource library, and optimization adjustment is carried out on the software source codes to obtain optimized software source codes;
Compiling the optimized software source code to generate an optimized upgrading program;
Updating the software upgrade package according to the optimized upgrade program to obtain a third updated upgrade package;
the third update upgrade package is written to the target ECU.
As an example, referring to fig. 6, if the "AI scenario running module" confirms that AI computation optimization adjustment is required for the software source code corresponding to the software upgrade package, the software source code corresponding to the software upgrade package of the target ECU may be downloaded from the "software upgrade management module" of the OTA cloud platform through the "download management module". The AI scene operation module can utilize AI powerful global shared resource library to make code security and vulnerability inspection and security and vulnerability restoration on the software source code in the current operation system and CPU architecture, code specification and the like, and at the same time, optimize the codes of the software source code in the current operation system and CPU architecture to delete redundant codes and repair low-performance codes, so that the software upgrading packet generated by the codes occupies minimum CPU resources and memory resources, and the operation efficiency is highest, thus obtaining an optimized source code file. Then, the 'AI scene operation module' transmits the optimized source code file to the 'file reloading module' through the 'AI calculation module' for packing, and the 'file reloading module' uploads the packed optimized source code file to the 'software version management module' of the OTA cloud platform. Meanwhile, the file reloading module is used for recompiling the optimized source code file to generate an optimized upgrading program. The optimization upgrade program includes a parameter calibration program and a nominal function parameter related optimization program for the first program space 701, and an application function program related optimization program for the second program space 702.
Referring to fig. 7, a first program space 701 includes a first mark region, and a second program space 702 includes a second mark region. Wherein the first flag area may be the first 16 bytes of data of the first program space 701. For example, the data structure of the first program space 701 is the first flag field+the nominal function parameter+the parameter calibration program. The second tag region may be the first 16 bytes of data in the second program space. For example, the data structure of the second program space 702 is the second markup region + application function program.
In some embodiments, updating the software upgrade package according to the optimized upgrade program to obtain an updated software upgrade package, specifically comprising deleting nominal function parameters and parameter calibration programs in a first program space of the software upgrade package and application function programs in a second program space, writing the optimized upgrade program into the first program space and the second program space of the software upgrade package to obtain a third updated upgrade package.
In some embodiments, writing an optimized upgrade program into a first program space and a second program space of a software upgrade package to obtain a first updated software upgrade package, specifically comprising determining a first part upgrade program written into the first program space and a second part upgrade program written into the second program space, wherein the optimized upgrade program comprises the first part upgrade program and the second part upgrade program, writing the first part upgrade program into the first program space and recording a first update mark in a first mark area, and writing the second part upgrade program into the second program space and recording a second update mark in a second mark area.
To facilitate understanding, continuing with the above example, a "file reload module" may delete the application function program in the second program space 702 of the software upgrade package and the nominal function parameters and parameter calibration programs in the first program space 701 first, then query and confirm the first partial upgrade program written in the first program space 701 (i.e., the optimization program associated with the parameter calibration programs and nominal function parameters in the first program space 701) and the second partial upgrade program written in the second program space 702 (i.e., the optimization program associated with the application function program in the second program space 702), and then "file reload module" writes the first partial upgrade program to the "nominal function parameter+parameter calibration program" area of the first program space 701 and records the first update flag in the first flag area (or may be referred to as "AI calculation flag area"). The first update mark is used for indicating that the 'nominal function parameter+parameter calibration program' of the software upgrade package of the target ECU is optimally adjusted, and the specific content and the update time stamp of the optimization adjustment are convenient for users (such as developers) to review and iteratively develop the program. The "file reload module" writes the second partial upgrade program to the "application function program" area in the second program space 702 and records the second update flag in the second flag area (or may be referred to as "AI computation flag area"). The second update flag is used for indicating that the application function program of the software upgrade package of the target ECU is optimally adjusted, and the content and the update time stamp of the optimization adjustment are optimized, so that a user (such as a developer) can conveniently review and iteratively develop the program. .
Any combination of the above optional solutions may be adopted to form an optional embodiment of the present application, which is not described herein.
In summary, in the technical scheme provided by the embodiment of the application, when the target ECU is updated and written, the software update package and the software source code are firstly downloaded to the UMC to perform AI scene operation and calculation, the current operation state parameters fed back by the target ECU and the preset calibration function parameters are compared, the optimal parameter state is achieved through AI calculation, the optimal marking parameters (namely, the optimized function parameters) are written into the calibration and parameter program position (namely, the position of the first program space 701) of the software update package, meanwhile, the software source code is subjected to AI scene operation and calculation, code optimization and recombination, code vulnerability detection and restoration, and the matching code achieves the optimal performance operation state of the current CPU (ARM or x86 or other) architecture. In this way, the software upgrading package is downloaded to the OTA upgrading master control to perform AI scene to approach to the real world operation target ECU (namely, to perform parameter debugging in the AI simulation operation environment), and the requirement of the target ECU on the calibration parameters is met through AI calculation, so that the upgraded target ECU directly reaches the optimal state without debugging and adaptation, and the calibration time and labor are greatly saved. In addition, the software source code is downloaded to the OTA upgrading master control to perform AI scene operation, code loopholes, security inspection and repair are performed, the code coding is normalized, and AI writing with optimized execution efficiency is performed, so that the code coding quality is greatly improved, and the robustness and portability of the software code are improved.
The following are examples of the apparatus of the present application that may be used to perform the method embodiments of the present application. For details not disclosed in the embodiments of the apparatus of the present application, please refer to the embodiments of the method of the present application.
Fig. 9 is a schematic diagram of an ECU upgrade and refresh device according to an embodiment of the present application. As shown in fig. 9, the ECU upgrade writing device may specifically include:
The acquiring unit 901 is configured to acquire a software upgrade package and nominal function parameters corresponding to the target ECU when the target ECU is updated and rewritten;
The first control unit 902 is configured to issue a first control instruction to the target ECU to control the target ECU to debug the simulation parameters in the AI-simulated operating environment to obtain a first operating state parameter, where the AI-simulated operating environment has an association relationship with the nominal function parameter;
The first comparing unit 903 is configured to compare the nominal function parameter and the first operation state parameter to obtain a first parameter comparison result;
The judging unit 904 is configured to finish debugging the simulation parameters of the target ECU if the first parameter comparison result is smaller than or equal to the preset deviation threshold value, and judge whether the software source code corresponding to the software upgrade package needs to be subjected to AI calculation optimization adjustment;
the first writing unit 905 is configured to write the software upgrade package to the target ECU if the AI calculation optimization adjustment is not required for the software source code corresponding to the software upgrade package.
In some embodiments, the ECU upgrade and refresh device described above may further include:
the adjusting unit is configured to perform optimization adjustment on the nominal function parameters to obtain first optimized function parameters if the first parameter comparison result is larger than a preset deviation threshold;
the first updating unit is configured to update the AI simulation running environment based on the first optimization function parameters to obtain a first updated AI simulation running environment;
The second control unit is configured to issue a second control instruction to the target ECU so as to control the target ECU to operate in the first updated AI simulated operation environment and obtain a second operation state parameter;
The second comparison unit is configured to compare the first optimized function parameter with the second running state parameter to obtain a second parameter comparison result;
The second updating unit is configured to update the nominal function parameters in the software upgrading package into first optimized function parameters to obtain a first updated upgrading package if the second parameter comparison result is smaller than or equal to a preset deviation threshold value and AI calculation optimization adjustment is not needed for the software source code corresponding to the software upgrading package;
And a second swiping unit configured to swipe the first update upgrade package to the target ECU.
In some embodiments, the software upgrade package includes a first program space for storing a parameter calibration program and nominal function parameters corresponding to the target ECU.
The ECU upgrade and writing device may further include:
The first acquisition unit is configured to acquire the software source code corresponding to the software upgrading packet if the second parameter comparison result is smaller than or equal to a preset deviation threshold value and AI calculation optimization adjustment is required to be carried out on the software source code corresponding to the software upgrading packet;
The extraction unit is configured to extract a target source code file associated with the parameter calibration program and the nominal function parameter in the software source code;
the first computing unit is configured to perform AI computation on the target source code file by utilizing the shared source code resource library, and perform optimization adjustment on the target source code file to obtain an optimized source code file;
The generating unit is configured to generate an optimized parameter calibration program and a second optimized function parameter based on the optimized source code file;
The replacing unit is configured to replace the parameter calibration program and the nominal function parameter of the first program space in the software upgrading package with the optimized parameter calibration program and the second optimized function parameter to obtain a second updating upgrading package;
And a third swiping unit configured to swipe the second update upgrade package to the target ECU.
In some embodiments, the third writing unit may be specifically configured to:
Updating the first updated AI simulation running environment based on the second optimization function parameters to obtain a second updated AI simulation running environment;
issuing a third control instruction to the target ECU to control the target ECU to operate in the second updated AI simulated operation scene, so as to obtain a third operation state parameter;
Comparing the second optimized function parameter with the third running state parameter to obtain a third parameter comparison result;
And if the third parameter comparison result is smaller than or equal to the preset deviation threshold value, the second updating upgrade package is written into the target ECU.
In some embodiments, the ECU upgrade and refresh device described above may further include:
the second acquisition unit is configured to acquire the software source code corresponding to the software upgrading package if AI calculation optimization adjustment is required to be carried out on the software source code corresponding to the software upgrading package;
the second computing unit is configured to perform AI computation on the software source codes by utilizing the shared source code resource library, and perform optimization adjustment on the software source codes to obtain optimized software source codes;
the compiling unit is configured to compile the optimized software source code to generate an optimized upgrading program;
the third updating unit is configured to update the software upgrading package according to the optimized upgrading program to obtain a third updated upgrading package;
and a fourth flushing unit configured to flush the third update upgrade package to the target ECU.
In some embodiments, the software upgrade package includes a first program space for storing a parameter calibration program and nominal function parameters corresponding to the target ECU, and a second program space for storing an application function program corresponding to the target ECU.
The third updating unit may be specifically configured to:
Deleting nominal function parameters and parameter calibration programs in a first program space of the software upgrade package, and deleting application function programs in a second program space;
writing the optimized upgrade program into the first program space and the second program space of the software upgrade package to obtain a third upgrade package.
In some embodiments, the first program space includes a first marker region and the second program space includes a second marker region.
Writing the optimized upgrade program into a first program space and a second program space of the software upgrade package to obtain a first updated software upgrade package, including:
Determining a first part of upgrading program written in a first program space and a second part of upgrading program written in a second program space, wherein the optimizing upgrading program comprises the first part of upgrading program and the second part of upgrading program;
Writing a first part of upgrading program into a first program space, and recording a first updating mark in a first mark area;
writing a second part of the upgrade program into a second program space, and recording a second upgrade mark in a second mark area.
It should be understood that the sequence number of each step in the foregoing embodiment does not mean that the execution sequence of each process should be determined by the function and the internal logic, and should not limit the implementation process of the embodiment of the present application.
Fig. 10 is a schematic diagram of an electronic device 10 according to an embodiment of the present application. As shown in fig. 10, 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. The steps of the various method embodiments described above are implemented by the processor 1001 when executing the computer program 1003. Or the processor 1001 when executing the computer program 1003 implements the functions of the modules/units in the above-described device embodiments.
The electronic device 10 may be a desktop computer, a notebook computer, a palm computer, a cloud server, or the like. The electronic device 10 may include, but is not limited to, a processor 1001 and a memory 1002. It will be appreciated by those skilled in the art that fig. 10 is merely an example of the electronic device 10 and is not limiting of the electronic device 10 and may include more or fewer components than shown, or different components.
The Processor 1001 may be a central processing unit (Central Processing Unit, CPU), but may also be other general purpose processors, digital signal processors (DIGITAL SIGNAL processors, DSPs), application SPECIFIC INTEGRATED Circuits (ASICs), field-Programmable gate arrays (Field-Programmable GATE ARRAY, FPGA) or other Programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc.
The memory 1002 may be an internal storage unit of the electronic device 10, for example, a hard disk or a memory of the electronic device 10. The memory 1002 may also be an external storage device of the electronic device 10, such as a plug-in hard disk, a smart memory card (SMART MEDIA CARD, SMC), a Secure Digital (SD) card, a flash memory card (FLASH CARD) or the like, which are provided on the electronic device 10. Memory 1002 may also include both internal and external storage units of electronic device 10. The memory 1002 is used to store computer programs and other programs and data required by the electronic device.
It will be apparent to those skilled in the art that, for convenience and brevity of description, only the above-described division of the functional units and modules is illustrated, and in practical application, the above-described functional distribution may be performed by different functional units and modules according to needs, i.e. the internal structure of the apparatus is divided into different functional units or modules to perform all or part of the above-described functions. The functional units and modules in the embodiment may be integrated in one processing unit, or each unit may exist alone physically, or two or more units may be integrated in one unit, where the integrated units may be implemented in a form of hardware or a form of a software functional unit.
The integrated modules/units, if implemented in the form of software functional units and sold or used as stand-alone products, may be stored in a readable storage medium (e.g., a computer readable storage medium). Based on such understanding, the present application may implement all or part of the flow of the method of the above embodiment, or may be implemented by a computer program to instruct related hardware, and the computer program may be stored in a computer readable storage medium, where the computer program, when executed by a processor, may implement the steps of each of the method embodiments described above. The computer program may comprise computer program code, which may be in source code form, object code form, executable file or in some intermediate form, etc. The computer readable storage medium may include any entity or device capable of carrying computer program code, recording medium, USB flash disk, removable hard disk, magnetic disk, optical disk, computer Memory, read-Only Memory (ROM), random access Memory (Random Access Memory, RAM), electrical carrier signals, telecommunications signals, and software distribution media, among others.
The foregoing embodiments are merely for illustrating the technical solution of the present application, but not for limiting the same, and although the present application has been described in detail with reference to the foregoing embodiments, it should be understood by those skilled in the art that the technical solution described in the foregoing embodiments may be modified or substituted for some of the technical features thereof, and that these modifications or substitutions should not depart from the spirit and scope of the technical solution of the embodiments of the present application and should be included in the protection scope of the present application.

Claims (9)

1. An ECU upgrade writing method, comprising:
when updating and refreshing a target ECU, acquiring a software updating packet corresponding to the target ECU, wherein the software updating packet comprises a first program space for storing a parameter calibration program and nominal function parameters corresponding to the target ECU;
issuing a first control instruction to the target ECU to control the target ECU to debug simulation parameters in an AI simulation running environment to obtain a first running state parameter, wherein the AI simulation running environment has an association relation with the nominal function parameter;
comparing the nominal function parameter with the first running state parameter to obtain a first parameter comparison result;
If the first parameter comparison result is smaller than or equal to a preset deviation threshold value, ending the simulation parameter debugging of the target ECU, and judging whether the software source code corresponding to the software upgrading package is required to be subjected to AI calculation optimization adjustment;
if the software source code corresponding to the software upgrading package does not need to be subjected to AI calculation optimization adjustment, the software upgrading package is rewritten to the target ECU;
If the first parameter comparison result is larger than a preset deviation threshold, performing cyclic execution, namely performing optimization adjustment on the nominal function parameter to obtain a first optimized function parameter, issuing a second control instruction to the target ECU to control the target ECU to perform simulation parameter debugging in an AI simulation operation environment related to the first optimized function parameter to obtain a second operation state parameter, and performing comparison on the first optimized function parameter and the second operation state parameter to obtain a second parameter comparison result until the second parameter comparison result is smaller than or equal to the preset deviation threshold;
If the software source code corresponding to the software upgrading package is required to be subjected to AI calculation optimization adjustment, acquiring the software source code corresponding to the software upgrading package;
Extracting a target source code file associated with the parameter calibration program and nominal function parameters from the software source code;
Performing AI calculation on the target source code file by using a shared source code resource library, and performing optimization adjustment on the target source code file to obtain an optimized source code file;
generating an optimization parameter calibration program and a second optimization function parameter based on the optimization source code file;
replacing a parameter calibration program and nominal function parameters of a first program space in the software upgrading package with the optimized parameter calibration program and second optimized function parameters to obtain a second upgrading package;
and brushing the second updating upgrade package to the target ECU.
2. The method of claim 1, wherein after comparing the first optimized function parameter and the second running state parameter to obtain a second parameter comparison result that is less than or equal to a preset deviation threshold, and determining whether AI calculation optimization adjustment is required for the software source code corresponding to the software upgrade package, further comprises:
If AI calculation optimization adjustment is not needed to be carried out on the software source code corresponding to the software upgrading package, updating the nominal function parameters in the software upgrading package into the first optimized function parameters to obtain a first updated upgrading package;
And brushing the first update upgrade package to the target ECU.
3. The method of claim 1, wherein the flushing the second update upgrade package to the target ECU comprises:
Issuing a third control instruction to the target ECU to control the target ECU to operate in the AI simulation operation scene associated with the second optimization function parameter, so as to obtain a third operation state parameter;
comparing the second optimized function parameter with the third running state parameter to obtain a third parameter comparison result;
and if the third parameter comparison result is smaller than or equal to a preset deviation threshold value, the second updating upgrade package is written into the target ECU.
4. The method of claim 1, wherein if the first parameter comparison result is less than or equal to a preset deviation threshold, ending the debugging of the simulation parameters of the target ECU, and determining whether AI calculation optimization adjustment is required for the software source code corresponding to the software upgrade package, further comprising:
If the software source code corresponding to the software upgrading package is required to be subjected to AI calculation optimization adjustment, acquiring the software source code corresponding to the software upgrading package;
Performing AI calculation on the software source codes by using a shared source code resource library, and performing optimization adjustment on the software source codes to obtain optimized software source codes;
compiling the optimized software source code to generate an optimized upgrading program;
Updating the software upgrading package according to the optimized upgrading program to obtain a third updating upgrading package;
and brushing the third update upgrade package to the target ECU.
5. The method of claim 4, wherein the software upgrade package further comprises a second program space storing an application function program corresponding to the target ECU;
Updating the software upgrade package according to the optimized upgrade program to obtain a third update upgrade package, including:
Deleting nominal function parameters and parameter calibration programs in a first program space of the software upgrading package and application function programs in a second program space;
Writing the optimized upgrade program into the first program space and the second program space of the software upgrade package to obtain a third upgrade package.
6. The method of claim 5, wherein the first program space comprises a first marker region and the second program space comprises a second marker region;
writing the optimized upgrade program into a first program space and a second program space of the software upgrade package to obtain a first updated software upgrade package, including:
Determining a first partial upgrade program written in the first program space and a second partial upgrade program written in the second program space, wherein the optimized upgrade program comprises the first partial upgrade program and the second partial upgrade program;
Writing the first part of upgrading program into the first program space, and recording a first updating mark in the first mark area;
Writing the second part of upgrading program into the second program space, and recording a second updating mark in the second mark area.
7. An ECU upgrade writing device, comprising:
the system comprises an acquisition unit, a control unit and a control unit, wherein the acquisition unit is configured to acquire a software upgrading packet corresponding to a target ECU when the target ECU is subjected to upgrading and refreshing, and the software upgrading packet comprises a first program space for storing a parameter calibration program corresponding to the target ECU and nominal function parameters;
The control unit is configured to issue a first control instruction to the target ECU so as to control the target ECU to debug the simulation parameters under the AI simulation running environment to obtain a first running state parameter, wherein the AI simulation running environment has an association relation with the nominal function parameter;
The comparison unit is configured to compare the nominal function parameter with the first running state parameter to obtain a first parameter comparison result;
The judging unit is configured to finish the simulation parameter debugging of the target ECU if the first parameter comparison result is smaller than or equal to a preset deviation threshold value, and judge whether the software source code corresponding to the software upgrading packet is required to be subjected to AI calculation optimization adjustment;
the updating unit is configured to update the software upgrading package to the target ECU if AI calculation optimization adjustment is not needed for the software source code corresponding to the software upgrading package;
The adjusting unit is configured to circularly execute the optimization adjustment of the nominal function parameters to obtain first optimized function parameters if the first parameter comparison result is larger than a preset deviation threshold value, sequentially trigger the control unit, the comparison unit and the judging unit to respectively execute a second control instruction issued to the target ECU so as to control the target ECU to perform simulation parameter adjustment under the AI simulation running environment related to the first optimized function parameters to obtain second running state parameters, and compare the first optimized function parameters with the second running state parameters to obtain second parameter comparison result until the second parameter comparison result is smaller than or equal to the preset deviation threshold value;
the acquisition unit is further configured to acquire the software source code corresponding to the software upgrading package if AI calculation optimization adjustment is required to be performed on the software source code corresponding to the software upgrading package;
The extraction unit is configured to extract a target source code file associated with the parameter calibration program and the nominal function parameter in the software source code;
The computing unit is configured to utilize the shared source code resource library to perform AI computation on the target source code file, and perform optimization adjustment on the target source code file to obtain an optimized source code file;
The generating unit is configured to generate an optimized parameter calibration program and a second optimized function parameter based on the optimized source code file;
The replacing unit is configured to replace the parameter calibration program and the nominal function parameter of the first program space in the software upgrading package with the optimized parameter calibration program and the second optimized function parameter to obtain a second updating upgrading package;
The swiping unit is further configured to swipe a second update upgrade 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, characterized in that the processor implements the steps of the method according to any of claims 1 to 6 when the computer program is executed.
9. A readable storage medium storing a computer program, characterized in that the computer program when executed by a processor implements the steps of the method according to any one of claims 1 to 6.
CN202411125102.6A 2024-08-16 2024-08-16 ECU upgrade flashing method, device, electronic device and readable storage medium Active CN119248303B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202411125102.6A CN119248303B (en) 2024-08-16 2024-08-16 ECU upgrade flashing method, device, electronic device and readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202411125102.6A CN119248303B (en) 2024-08-16 2024-08-16 ECU upgrade flashing method, device, electronic device and readable storage medium

Publications (2)

Publication Number Publication Date
CN119248303A CN119248303A (en) 2025-01-03
CN119248303B true CN119248303B (en) 2025-09-30

Family

ID=94031077

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202411125102.6A Active CN119248303B (en) 2024-08-16 2024-08-16 ECU upgrade flashing method, device, electronic device and readable storage medium

Country Status (1)

Country Link
CN (1) CN119248303B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN120762709B (en) * 2025-09-05 2025-11-04 重庆赛力斯凤凰智创科技有限公司 OTA upgrading method of vehicle ECU and storage medium

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114817900A (en) * 2022-06-24 2022-07-29 北京阿帕科蓝科技有限公司 Verification method and system for over-the-air download upgrade of vehicle master control system
CN116449791A (en) * 2022-01-06 2023-07-18 宇通客车股份有限公司 Whole vehicle-level fault diagnosis system, vehicle and method

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113885917A (en) * 2021-10-18 2022-01-04 中国第一汽车股份有限公司 Program flashing method, device, controller and storage medium for controller
CN117950707A (en) * 2024-02-02 2024-04-30 重庆赛力斯凤凰智创科技有限公司 OTA upgrading and refreshing method and device of vehicle ECU, VBOX and new energy automobile
CN118228489A (en) * 2024-04-03 2024-06-21 上汽大众汽车有限公司 A simulation prediction method for quantitatively analyzing the risk of fogging of vehicle lamps, a simulation prediction device and a computer-readable storage medium
CN118301568B (en) * 2024-04-15 2025-05-16 重庆赛力斯凤凰智创科技有限公司 OTA upgrading fault debugging tracking method and device, whole vehicle gateway and new energy vehicle

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116449791A (en) * 2022-01-06 2023-07-18 宇通客车股份有限公司 Whole vehicle-level fault diagnosis system, vehicle and method
CN114817900A (en) * 2022-06-24 2022-07-29 北京阿帕科蓝科技有限公司 Verification method and system for over-the-air download upgrade of vehicle master control system

Also Published As

Publication number Publication date
CN119248303A (en) 2025-01-03

Similar Documents

Publication Publication Date Title
CN111679965B (en) Automated testing method, device, computer equipment and storage medium
CN110780897B (en) Code changing method and device
CN103152327B (en) A kind of method, client and system configuring compression/de-compression plug-in unit
US8799889B2 (en) Application downloading
CN117034821B (en) Regression verification method and medium for chip design front-end simulation verification
US10248409B1 (en) Limiting the effects of source code patches on corresponding native-code patches
CN111459506B (en) Deep learning platform cluster deployment method and device, medium and electronic equipment
CN119248303B (en) ECU upgrade flashing method, device, electronic device and readable storage medium
CN112527281A (en) Operator upgrading method and device based on artificial intelligence, electronic equipment and medium
CN104881311A (en) Method and apparatus for judging version compatibility
US12073197B2 (en) Systems and methods for generating service access points for RTE services in code or other RTE service information for use with the code
US20170083298A1 (en) Resilient format for distribution of ahead-of-time compiled code components
JP2021192318A (en) Compiling method, compiling device, electronic device, storage medium and program
CN112445607B (en) Method and device for executing method function by application program
CN111831539B (en) A test method and related products
CN114168150B (en) Application compilation method, device, electronic device and storage medium
CN114911509B (en) A patch package configuration method, device and storage medium
CN106445601A (en) Device and method for plugin upgrading
CN112015436A (en) Short message platform deployment method and device, computing device, and computer storage medium
CN115145622A (en) Non-intelligent ECU contrast separate flash method and system
CN115794239A (en) Network card firmware refreshing method, device, equipment and medium
CN115409194B (en) Quantum program generation system and quantum computer operating system
CN112631594A (en) Hardware system development method, equipment and computer readable storage medium
CN116991355B (en) Method, system and device for supporting LED driving chip by modifying and iterating script
US20250315288A1 (en) Dynamic Testing with Digital Engineering Virtual Interface Synchronization using Machine Learning

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant