A method for automatically upgrading vehicle ECU software configuration code
By automatically collecting and upgrading the automotive ECU software configuration code on the cloud service platform, and using the compatibility relationship matrix to calculate the optimal configuration code, the problems of low efficiency and poor timeliness in the existing technology are solved, and vehicle software and configuration are realized The synchronous OTA upgrade of the code improves the upgrade efficiency and management efficiency.
Patent Information
- Application Number
- CN202210179391.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-02-25
- Publication Date
- 2024-11-15
- Estimated Expiration
- 2042-02-25
AI Technical Summary
The update of the existing automotive ECU software configuration codes has problems such as low efficiency, complex operation, poor timeliness and chaotic management. Especially after the software OTA is upgraded, the configuration code needs to be manually updated, resulting in limited function iteration.
By collecting vehicle information and configuration code data on the cloud service platform, combining vehicle model configuration and software version information for automatic upgrade, use the compatibility relationship matrix to calculate the optimal configuration code, and automatically realize the automatic configuration code of the vehicle ECU software configuration code through remote monitoring and push upgrade.
Improve the efficiency and timeliness of configuration code updates, simplify the management process, ensure the synchronous OTA upgrade of vehicle software and configuration code, meet the needs of vehicle function iteration after launch, and provide a more efficient, timely and safe upgrade channel. .
Smart Images

Figure CN114416143B_ABST
Abstract
Description
Technical Field
[0001] The invention relates to an improvement on ECU software configuration code upgrade, and specifically to a method for automatically upgrading ECU software configuration code based on vehicle configuration and software version, and belongs to the field of automotive electronics and electrical appliances. Background Art
[0002] With the development of science and technology and people's higher and higher requirements for cars, the research and development and application of new technologies are endless. The control systems of cars are becoming more and more complex. The control units have increased from 28 in 2000 to 78 at present, and the number of software has also increased exponentially. Moreover, the OTA technology in the current automotive industry is developing rapidly, and software OTA upgrades and function iterations are becoming more and more frequent. However, for functions that need to be controlled by software configuration codes, software upgrades and configuration code updates are independent processes. As a result, after the functional software is iterated on the market, the software configuration code must be updated through the diagnostic instrument before the new functions can be reflected. Figure 1 Flowchart for updating configuration code for an existing diagnostic tool.
[0003] The Chinese invention patent with application number 201910821307.0 and name “A method and device for automatically generating ECU configuration codes” introduces a method for automatically generating ECU configuration codes, but there is no method for upgrading configuration codes and updating configuration codes in the market, and the above-mentioned problems cannot be solved.
[0004] In addition, currently, the automotive ECU software configuration code is mainly written or updated in two forms: 1) written by the production line electrical inspection equipment; 2) written by the 4S shop diagnostic instrument. Both of these ECU configuration code update methods must rely on external equipment and use the firmware parameters to write the ECU configuration code, which has problems such as low update efficiency, easy operation errors, delayed configuration code update in the diagnostic instrument, and high diagnostic instrument parameter maintenance costs.
[0005] Therefore, it is necessary to provide a method for automatically upgrading vehicle ECU software configuration codes to solve the problems of complex software configuration code update operation after OTA upgrade, poor timeliness of diagnostic instrument parameter update, and chaotic terminal configuration code management. Summary of the invention
[0006] In view of the above-mentioned deficiencies in the prior art, the purpose of the present invention is to provide a method for automatically upgrading vehicle ECU software configuration codes. The present invention combines the software information and configuration code information maintained in the background, and remotely monitors the vehicle information through cloud services to realize vehicle status information acquisition and configuration code data distribution, thereby realizing automatic upgrading of vehicle ECU software configuration codes, solving problems such as delayed update time of diagnostic instrument configuration codes and chaotic configuration code management, and can also meet the needs of synchronous OTA upgrade of vehicle ECU software and configuration codes after listing.
[0007] The technical solution of the present invention is achieved in this way:
[0008] A method for automatically upgrading the vehicle ECU software configuration code is performed according to the following steps:
[0009] 1) Collect the vehicle model configuration information and ECU software and hardware version information of each vehicle in advance and upload them to the upgrade cloud service platform;
[0010] 2) When new versions of software and configuration codes are released, upload them to the upgrade cloud service platform through the software data management system;
[0011] 3) When the vehicle is started, the upgrade cloud service platform actively monitors the vehicle information to determine whether it meets the remote upgrade conditions. If so, the upgrade cloud service platform obtains the vehicle VIN and the current ECU software and hardware part number, version number and configuration code information;
[0012] 4) After data collection is completed, the upgrade cloud service platform calculates the optimal ECU configuration code based on the obtained vehicle ECU software and hardware part numbers and version numbers, combined with the compatibility relationship matrix, and sends it to the vehicle through the upgrade cloud service platform; at the same time, the software and hardware version information, configuration code version and upgrade time before and after the upgrade are recorded.
[0013] 5) The vehicle side automatically upgrades the configuration code according to the received ECU optimal configuration code.
[0014] Preferably, in step 1), the basic vehicle configuration information and ECU software and hardware version information are collected through a production management system when a vehicle rolls off the vehicle production line.
[0015] Preferably, in step 3), the vehicle information includes fuel information and network health status.
[0016] In step 4), the compatibility relationship matrix refers to the compatibility relationship table between vehicle configuration information, software and hardware part numbers / version numbers, and configuration codes.
[0017] Specifically, in step 4), when calculating the optimal configuration code of the ECU, first query whether each ECU has an updateable configuration code, and exhaustively enumerate all valid combinations of software versions and configuration codes under non-dependency conditions; then adopt the principle of backward compatibility to exclude non-latest combinations, thereby calculating and outputting the optimal configuration code of the ECU.
[0018] The automatic upgrade of the vehicle ECU software configuration code is carried out in stages according to the geographical location. In step 3), the vehicle information includes the location information; only vehicles whose location information is within the preset geographical location range meet the upgrade conditions.
[0019] The present invention combines the software information and configuration code information maintained in the background, and remotely monitors the vehicle information by upgrading the cloud service platform to realize the acquisition of vehicle status information and the issuance of configuration code data, thereby realizing automatic upgrading of vehicle ECU software configuration codes, thereby solving the problems of delayed update time of diagnostic instrument configuration codes and chaotic configuration code management, and can also meet the needs of synchronous OTA upgrading of vehicle ECU software and configuration codes after listing.
[0020] The present invention has the advantages of advanced technology, innovative management model and strong practicality. Compared with the original diagnostic instrument configuration code update method, this remote automatic update method provides a more efficient, timely and safer configuration code upgrade channel, improves software upgrade efficiency, ensures that the product meets customized needs, and supports the development of automotive software OTA. BRIEF DESCRIPTION OF THE DRAWINGS
[0021] Figure 1 -Flowchart for updating configuration code of existing diagnostic instrument.
[0022] Figure 2 -The system architecture diagram of the cloud service platform upgraded by the present invention.
[0023] Figure 3 -Schematic diagram of the compatibility relationship matrix of the present invention.
[0024] Figure 4 - Flowchart of automatic upgrade of vehicle ECU configuration code of the present invention. DETAILED DESCRIPTION
[0025] The specific embodiments of the present invention are described in detail below with reference to the accompanying drawings.
[0026] See also Figure 2 , Figure 2 This is a block diagram of the cloud service platform system architecture for the present invention. Figure 2 It can be seen that the upgrade cloud service platform system architecture of the present invention includes a real-time vehicle status monitoring unit, a vehicle hardware and software information collection unit, an active calculation unit, and an active push unit. At the same time, the original production management system is used to collect basic information when the vehicle leaves the factory, and the original software data management system is used to maintain the software BOM, software and configuration code, and the compatibility relationship matrix between the two. The vehicle ECU software configuration code automatic upgrade method of the present invention is based on the upgrade cloud service platform, and is specifically carried out in the following steps. You can also refer to Figure 2 and Figure 4 .
[0027] 1) Collect the vehicle configuration information and ECU software and hardware version information of each vehicle in advance and upload them to the upgrade cloud service platform; specifically, the information of each vehicle is collected in advance by using the offline electrical inspection equipment of the production management system when the vehicle is off the production line of the whole vehicle production line to collect the basic configuration information of the vehicle and the software and hardware version information of the ECU;
[0028] 2) When the product R&D department releases a new version of software and configuration code, the R&D personnel maintain the new version of the configuration code in the software data management system and publish it to the upgrade cloud service platform;
[0029] 3) When the vehicle is started, the real-time vehicle status monitoring service of the upgrade cloud service platform will actively monitor the vehicle information to determine whether it meets the remote upgrade conditions. If it does, the upgrade cloud service platform will actively start the vehicle software and hardware information collection unit to obtain the vehicle VIN and the current ECU software and hardware part number, version number and configuration code information;
[0030] 4) After data collection is completed, the active computing unit of the upgrade cloud service platform calculates the optimal configuration code of the ECU based on the obtained vehicle ECU software and hardware part number and version number, combined with the compatibility relationship matrix, and sends it to the vehicle side through the active push unit of the upgrade cloud service platform to notify the vehicle side to upgrade, and at the same time record the software and hardware version information, configuration code version and upgrade time before and after the upgrade.
[0031] 5) The vehicle side automatically upgrades the configuration code according to the received ECU optimal configuration code.
[0032] Preferably, in step 3), the vehicle information includes fuel information and network health status. The fuel information is to ensure that the vehicle will not shut down due to lack of fuel during the upgrade process; only when the network is in good condition can the upgrade be carried out smoothly and avoid abnormal interruption due to network reasons, so it is necessary to collect the network health status.
[0033] In step 4), the compatibility relationship matrix refers to the compatibility relationship table between vehicle configuration information, software and hardware part numbers / version numbers, and configuration codes.
[0034] Specifically, in step 4), when calculating the optimal configuration code of the ECU, first query whether each ECU has an updateable configuration code, and exhaustively enumerate all valid combinations of software versions and configuration codes under non-dependency conditions; then adopt the principle of backward compatibility to exclude non-latest combinations, thereby calculating and outputting the optimal configuration code of the ECU.
[0035] The automatic upgrade of the vehicle ECU software configuration code of the present invention is carried out in stages according to the geographical location. In step 3), the vehicle information includes the location information; only vehicles whose location information is within the preset geographical location range meet the upgrade conditions. For example, the vehicles in Chongqing area can be upgraded first. If the vehicles in Chongqing area run normally after the upgrade, other areas can be upgraded after a period of time, so as to avoid the potential risks caused by upgrading all areas at the same time.
[0036] The present invention establishes a compatibility relationship matrix between software and hardware versions and configuration codes, and constructs an algorithm for actively calculating the optimal configuration code, which needs to meet the following assumptions: It is assumed that all configuration codes meet the upward compatibility feature, that is, they are upwardly compatible with all software versions until a specific matching relationship is reached.
[0037] Define the basic data attributes and software configuration code data attributes as shown in the following table, and establish the compatibility relationship matrix between software and hardware versions and configuration codes. Figure 3 .
[0038]
[0039]
[0040]
[0041] The present invention combines the compatibility relationship matrix between software and hardware versions and configuration codes to construct an optimal configuration code calculation method:
[0042] 1. Query the vehicle model configuration Cartype_Code in the MES data through the vehicle frame number VIN uploaded by the actual vehicle;
[0043] 2. Based on the vehicle configuration information Cartype_Code in step 1, and the hardware part number Ecu_Hardware_Number, hardware version Ecu_Hardware_Version, software part number Ecu_Software_Number, software version Ecu_Software_Version, and configuration code data version Ecuconfigurationdata_Version of the ECU uploaded by the actual vehicle as parameters, query the software configuration code database for valid configuration codes that meet the specific version matching relationship. If there is a non-empty result, the calculation result is returned directly, otherwise it proceeds to the next step of calculation;
[0044] 3. According to the vehicle configuration information Cartype_Code in step 1, and the hardware part number Ecu_Hardware_Number, hardware version Ecu_Hardware_Version, software part number Ecu_Software_Number, software version Ecu_Software_Version, and configuration code data version Ecuconfigurationdata_Version of the ECU uploaded by the actual vehicle as parameters, query the software configuration code database (compatible relationship table) for all valid configuration code data whose hardware part number, hardware version, and software part number completely match, and whose software version (in the database) is less than or equal to the actual vehicle software version and greater than or equal to the most recent specific matching version. Finally, take the latest data result of the software version and configuration code data version and return it, otherwise return null and end the calculation process.
[0045] The method for automatically upgrading the vehicle ECU software configuration code of the present invention is to collect basic vehicle configuration information and ECU software and hardware version information on the vehicle production line, read the software and hardware identification code and version of the vehicle controller through the cloud real-time monitoring service, perform the legitimacy check of the vehicle parameters based on the read information, and decide whether to remotely update the configuration code according to the check result; query whether each ECU has an updateable configuration code according to the compatibility relationship between the vehicle configuration information, software and hardware part number / version number, and configuration code, and exhaustively list all valid combinations between software versions and configuration codes under non-dependency conditions; adopt the principle of backward compatibility to exclude non-latest combinations, calculate and output the optimal configuration code, and send it to the vehicle end, which is automatically updated and upgraded by the vehicle end. The present invention solves the problems of delayed update time of the diagnostic instrument configuration code and chaotic configuration code management, and can also meet the needs of synchronous OTA upgrade of vehicle ECU software and configuration code after listing.
[0046] Finally, it should be noted that the above examples of the present invention are merely examples for illustrating the present invention, and are not intended to limit the embodiments of the present invention. Although the applicant has described the present invention in detail with reference to the preferred embodiments, for those of ordinary skill in the art, other different forms of changes and modifications can be made based on the above description. It is impossible to list all the embodiments here. Any obvious changes or modifications derived from the technical solution of the present invention are still within the scope of protection of the present invention.
Claims
1. A method for automatically upgrading vehicle ECU software configuration code, characterized in that: Follow the steps below, 1) Collect the vehicle model configuration information and ECU software and hardware version information of each vehicle in advance and upload them to the upgrade cloud service platform; 2) When new versions of software and configuration codes are released, upload them to the upgrade cloud service platform through the software data management system; 3) When the vehicle is started, the upgrade cloud service platform actively monitors the vehicle information to determine whether it meets the remote upgrade conditions. If so, the upgrade cloud service platform obtains the vehicle VIN and the current ECU software and hardware part number, version number and configuration code information; 4) After data collection is completed, the upgrade cloud service platform calculates the optimal ECU configuration code based on the obtained vehicle ECU software and hardware part numbers and version numbers, combined with the compatibility relationship matrix, and sends it to the vehicle through the upgrade cloud service platform; 5) The vehicle end automatically upgrades the configuration code according to the received ECU optimal configuration code; In step 4), the compatibility relationship matrix refers to the compatibility relationship table between vehicle configuration information, software and hardware part numbers / version numbers, and configuration codes; In step 4), when calculating the optimal configuration code of the ECU, first query whether each ECU has an updateable configuration code, and exhaustively enumerate all valid combinations of software versions and configuration codes under non-dependency conditions; then adopt the principle of backward compatibility to exclude non-latest combinations, thereby calculating and outputting the optimal configuration code of the ECU.
2. A vehicle ECU software configuration code automatic upgrade method according to claim 1, characterized in that: In step 1), the vehicle model configuration information and ECU software and hardware version information are collected through the production management system when the vehicle rolls off the vehicle production line.
3. The method for automatically upgrading the vehicle ECU software configuration code according to claim 1, characterized in that: In step 3), the vehicle information includes fuel information and network health status.
4. The method for automatically updating the vehicle ECU software configuration code according to claim 1, characterized in that: The automatic upgrade of the vehicle ECU software configuration code is carried out in stages according to the geographical location. In step 3), the vehicle information includes the location information; only vehicles whose location information is within the preset geographical location range are eligible for the upgrade.
5. The method for automatically updating the vehicle ECU software configuration code according to claim 1, characterized in that: In step 4), the ECU optimal configuration code is sent to the vehicle through the upgrade cloud service platform, and the software and hardware version information, configuration code version and upgrade time before and after the upgrade are recorded.
