Vehicle control method, electronic equipment, vehicle, server, medium and product

By acquiring and storing update data in the network state and updating the electronic control unit, the problem of long time and poor user experience during the vehicle upgrade process is solved, and the robust function update and user needs are achieved, improving the driving experience.

CN120491994APending Publication Date: 2025-08-15BYD CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202510502389.8
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-04-21
Publication Date
2025-08-15

AI Technical Summary

Technical Problem

In the prior art, the upgrade process of the vehicle electronic control unit is limited by the networking state, resulting in a long upgrade time and poor user experience, and a risk of abnormal failure, which cannot meet the user's real-time function update needs.

Method used

When the vehicle is in the networked state, update data is obtained and stored to the preset storage space, and the stored update data is used to update the electronic control unit, including decompression and write processing, ensuring that the upgrade is completed when the vehicle is driving or when the user interacts, and avoiding the user stopping and waiting.

Benefits of technology

It realizes a steady update of the vehicle electronic control unit, shortens the upgrade time, improves the user's driving experience, and ensures the matching of on-board functions with user needs.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120491994A_ABST
    Figure CN120491994A_ABST
Patent Text Reader

Abstract

The invention discloses a vehicle control method, electronic equipment, a vehicle, a server, a computer readable storage medium and a computer program product. The method comprises the following steps: when a vehicle is in a networking state, updating an electronic control unit of the vehicle according to acquired first update data. Thus, the vehicle in the networking state can update the electronic control unit of the vehicle according to the acquired first update data, so that later maintenance and function update of the vehicle-mounted function responsible by the electronic control unit are realized, real-time update of the vehicle-mounted function is realized to a certain extent, matching of the vehicle-mounted function and user requirements is guaranteed, and the user experience is improved. Therefore, the vehicle driving experience of the user is guaranteed, the situation that the user needs to park in the updating process of the electronic control unit to wait for the completion of the updating process of the electronic control unit is improved, and the vehicle driving experience of the user is further improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of vehicle technology, and in particular to a vehicle control method, electronic equipment, vehicle, server, computer-readable storage medium, and computer program product. Background Art

[0002] As vehicles become increasingly electronic and intelligent, they can be equipped with multiple electronic control units (ECUs) to implement various in-vehicle functions. However, as user demands evolve, the existing in-vehicle functions may no longer meet current user needs, impacting the user's driving experience to some extent. Summary of the Invention

[0003] The present application provides a vehicle control method, electronic equipment, vehicle, server, computer-readable storage medium, and computer program product.

[0004] The present application provides a vehicle control method, which is applied to a vehicle. The method includes:

[0005] When the vehicle is in a networked state, an electronic control unit of the vehicle is updated according to the acquired first update data.

[0006] Thus, in the embodiments of the present application, a vehicle in a networked state can update its electronic control unit based on the acquired first update data, thereby enabling subsequent maintenance and functional updates of the vehicle functions for which the electronic control unit is responsible, and to a certain extent, achieving real-time updates of the vehicle functions. This can, to a certain extent, ensure that the vehicle functions match user needs, thereby ensuring the user's vehicle driving experience. Furthermore, the vehicle can complete the update of the electronic control unit while in a networked state, thereby, to a certain extent, alleviating the situation in which the user needs to stop the vehicle during the electronic control unit update process to wait for the completion of the electronic control unit update process, further improving the user's vehicle driving experience.

[0007] In certain embodiments of the present application, updating the electronic control unit of the vehicle according to the acquired first update data while the vehicle is in a networked state includes:

[0008] When the vehicle is in a networked state, storing the acquired first update data in a preset storage space;

[0009] The electronic control unit is updated according to the stored first update data, so that the application program of the electronic control unit is updated from the second version to the first version corresponding to the first update data.

[0010] Thus, in an embodiment of the present application, when the vehicle is in an online state, the acquired first update data can be stored in a preset storage space, and the electronic control unit can be updated according to the stored first update data, so that the application of the electronic control unit is updated from the second version to the first version corresponding to the first update data, so that before the vehicle updates the electronic control unit, the first update data can be acquired and stored in the preset storage space, and then when the electronic control unit is updated, since the first update data has been stored in the preset storage space, the update process of the electronic control unit may not include the step of acquiring or downloading the first update data from the outside world, thereby enabling the update process of the electronic control unit to be completed in a shorter time.

[0011] In certain embodiments of the present application, the preset storage space includes at least two sub-storage spaces, one of the sub-storage spaces storing second update data corresponding to the second version, and storing the acquired first update data in the preset storage space when the vehicle is in a networked state, including:

[0012] When the vehicle is in a networked state, the first update data is stored in a target sub-storage space, wherein the target sub-storage space does not store the second update data.

[0013] Thus, in the embodiment of the present application, the first update data can be stored in the target sub-storage space when the vehicle is in a networked state, thereby ensuring the stable progress of the vehicle update.

[0014] In certain embodiments of the present application, the method further comprises:

[0015] In the case that the first update data is not acquired, the sub-storage space storing the second update data is determined as a backup sub-storage space, and the sub-storage space not storing the second update data is determined as the target sub-storage space.

[0016] In this way, in an embodiment of the present application, when the first update data is not obtained, the sub-storage space storing the second update data can be determined as the backup sub-storage space, and the sub-storage space not storing the second update data can be determined as the target sub-storage space, so that the vehicle can update the application version of the electronic control unit through the data stored in the target sub-storage space, and can roll back the application version of the electronic control unit through the data stored in the backup sub-storage space.

[0017] In certain embodiments of the present application, the method further comprises:

[0018] In the case that the updating cannot be completed according to the first updating data, the electronic control unit is updated according to the first updating data in the target sub-storage space.

[0019] In this way, in an embodiment of the present application, if the update cannot be completed according to the first update data, the electronic control unit can be updated according to the first update data in the target sub-storage space to update the application version of the electronic control unit again, thereby ensuring the robust update of the electronic control unit.

[0020] In certain embodiments of the present application, the method further comprises:

[0021] When the number of update failures is less than a preset number threshold, updating the electronic control unit according to the first update data in the target sub-storage space, wherein the number of update failures is used to indicate the number of times that the update cannot be completed according to the first update data; and / or

[0022] When the number of update failures is greater than or equal to the preset threshold, the electronic control unit is updated according to the second update data in the backup sub-storage space, so that the application of the electronic control unit is updated to the second version.

[0023] Thus, in an embodiment of the present application, the electronic control unit can be updated according to the first update data in the target sub-storage space when the number of update failures is less than a preset number threshold, and / or, when the number of update failures is greater than or equal to a preset number threshold, the electronic control unit can be updated according to the second update data in the backup sub-storage space, so that the application of the electronic control unit is updated to the second version, thereby ensuring the robust update and robust operation of the electronic control unit.

[0024] In certain embodiments of the present application, the method further comprises:

[0025] When the update is completed according to the first update data, the target sub-storage space is determined as the new backup sub-storage space, and the sub-storage space that does not store the first update data is determined as the new target sub-storage space.

[0026] In this way, in an embodiment of the present application, when the update is completed according to the first update data, the target sub-storage space can be determined as the new backup sub-storage space, and the sub-storage space that does not store the first update data can be determined as the new target sub-storage space, thereby ensuring the robustness of the next update of the electronic control unit.

[0027] In certain embodiments of the present application, updating the electronic control unit of the vehicle according to the acquired first update data while the vehicle is in a networked state includes:

[0028] When the vehicle is in a networked state, the first update data is decompressed to update the electronic control unit.

[0029] In this way, in an embodiment of the present application, the first update data can be decompressed when the vehicle is in a networked state to update the electronic control unit, so that the update of the electronic control unit can be achieved based on the first update data obtained through compression, which can improve the update efficiency of the electronic control unit to a certain extent.

[0030] In certain embodiments of the present application, when the vehicle is in a networked state, decompressing the first update data to update the electronic control unit includes:

[0031] When the vehicle is in a networked state, decompressing the first update data;

[0032] According to the result of the decompression process, a flashing process is performed on the running area of the electronic control unit to complete the update of the electronic control unit, wherein the running area is used to store application programs that can be run by the electronic control unit.

[0033] In this way, in the embodiment of the present application, when the vehicle is in a networked state, the first update data can be decompressed, and the operating area of the electronic control unit can be flashed according to the result of the decompression process to complete the update of the electronic control unit, thereby realizing the update of the electronic control unit.

[0034] In certain embodiments of the present application, the method further comprises:

[0035] In a case where the type of the acquired current data is a compressed data type, the current data is determined as the first update data.

[0036] In this way, in an embodiment of the present application, the current data can be determined as the first update data when the type of the current data obtained is a compressed data type, so that subsequent operations can be performed based on the first update data, such as decompressing the first update data, thereby ensuring the robust update of the electronic control unit.

[0037] In certain embodiments of the present application, the method further comprises:

[0038] When the vehicle is in a networked state and the vehicle network state is in a target state, the first update data is acquired.

[0039] In this way, in the embodiment of the present application, when the vehicle is in a networked state and the vehicle network state is in a target state, the first update data is obtained to update the electronic control unit, thereby ensuring the stable operation of the vehicle to a certain extent.

[0040] In certain embodiments of the present application, when a current load rate of the vehicle network bus is less than a preset load rate threshold, the vehicle network state is in the target state.

[0041] In this way, in the embodiment of the present application, the first update data can be obtained when the current load rate of the vehicle network bus is less than the preset load rate threshold, thereby ensuring the robust acquisition of the first update data.

[0042] In certain embodiments of the present application, updating the electronic control unit of the vehicle according to the acquired first update data while the vehicle is in a networked state includes:

[0043] When the vehicle is in a networked state, the electronic control unit is updated according to the first update data and current state information of the vehicle.

[0044] In this way, in the embodiment of the present application, the electronic control unit can be updated according to the first update data and the current status information of the vehicle, so that the update of the electronic control unit can take into account the current status information of the vehicle, thereby ensuring the reliable update of the electronic control unit.

[0045] In certain embodiments of the present application, the current status information includes at least one of the current remaining power, the current vehicle speed, the current driving gear, and the current engine speed.

[0046] In this way, in the embodiment of the present application, at least one piece of information including the vehicle's current remaining power, current vehicle speed, current driving gear, and current engine speed can be used in the update process of the electronic control unit, thereby ensuring the robust update of the electronic control unit.

[0047] In certain embodiments of the present application, updating the electronic control unit according to the first update data and the current state information of the vehicle while the vehicle is in an online state includes:

[0048] When at least one of the following conditions is met: the current remaining power is greater than a preset power threshold, the current vehicle speed is less than a preset vehicle speed threshold, the current driving gear is the target gear, and the current engine speed is less than or equal to a preset speed threshold, and the vehicle is in a networked state, the electronic control unit is updated according to the first update data.

[0049] In this way, in the embodiment of the present application, when at least one of the following conditions is met: the current remaining power is greater than the preset power threshold, the current vehicle speed is less than the preset vehicle speed threshold, the current driving gear is the target gear, and the current engine speed is less than or equal to the preset speed threshold, and the vehicle is in a networked state, the electronic control unit can be updated according to the first update data, thereby further ensuring the robust update of the electronic control unit.

[0050] In certain embodiments of the present application, updating the electronic control unit of the vehicle according to the acquired first update data while the vehicle is in a networked state includes:

[0051] When the vehicle is in an online state and the first update data is obtained, controlling the electronic control unit to switch from a first preset operating state to a second preset operating state;

[0052] When the electronic control unit is in the second preset operating condition, the electronic control unit is updated according to the first update data.

[0053] In this way, in the embodiment of the present application, when the vehicle is in an online state and the first update data is obtained, the electronic control unit can be controlled to switch from the first preset operating condition to the second preset operating condition, and when the electronic control unit is in the second preset operating condition, the electronic control unit can be updated according to the first update data, thereby ensuring the robust update of the electronic control unit.

[0054] In certain embodiments of the present application, when the electronic control unit is in the first preset operating condition, the electronic control unit is capable of sending and receiving communication messages and performing fault diagnosis, and when the electronic control unit is in the second preset operating condition, the electronic control unit is unable to send and receive communication messages and / or perform fault diagnosis.

[0055] In this way, in an embodiment of the present application, the electronic control unit is able to send and receive communication messages and perform fault diagnosis when it is in a first preset operating condition, and is unable to send and receive communication messages and / or perform fault diagnosis when it is in a second preset operating condition.

[0056] In certain embodiments of the present application, the method further comprises:

[0057] When the updating of the electronic control unit is completed according to the first updating data, the electronic control unit is controlled to switch from the second preset operating condition to the first preset operating condition.

[0058] In this way, in an embodiment of the present application, when the update of the electronic control unit is completed according to the first update data, the electronic control unit can be controlled to switch from the second preset operating condition to the first preset operating condition, so that the electronic control unit can be restored to the operating condition before the update after the update is completed.

[0059] In certain embodiments of the present application, when the electronic control unit is updated according to the first update data, controlling the electronic control unit to switch from the second preset operating condition to the first preset operating condition includes:

[0060] When the updating is completed according to the first updating data, performing verification processing on the first updating data;

[0061] When the verification process passes, the electronic control unit is controlled to switch from the second preset operating condition to the first preset operating condition.

[0062] In this way, in the embodiment of the present application, the first update data can be verified when the update is completed according to the first update data, and the electronic control unit can be controlled to switch from the second preset operating condition to the first preset operating condition when the verification process passes, thereby avoiding the possibility of abnormal situations after the updated electronic control unit switches to the first preset operating condition due to errors in the first update data, and ensuring the stable operation of the electronic control unit to a certain extent.

[0063] In certain embodiments of the present application, the verification process includes at least one of data integrity verification processing, digital signature decryption processing, and software and hardware consistency check processing.

[0064] Thus, in the embodiment of the present application, at least one of data integrity verification processing, digital signature decryption processing, and software and hardware consistency check processing can be performed on the first update data, thereby ensuring the effectiveness of the verification processing.

[0065] An embodiment of the present application provides a vehicle control method, which is applied to a server, wherein the server is communicatively connected to the vehicle, and the method includes:

[0066] When the vehicle is in an online state, first update data is sent to the vehicle, wherein when the vehicle is in an online state, an electronic control unit of the vehicle is updated according to the first update data.

[0067] Thus, in the embodiments of the present application, first update data can be sent to a vehicle in a networked state, so that the vehicle can update the vehicle's electronic control unit according to the acquired first update data, thereby achieving later maintenance and functional updates of the vehicle functions responsible for the electronic control unit, and to a certain extent, achieving real-time updates of the vehicle functions. This can, to a certain extent, ensure that the vehicle functions match user needs and thus ensure the user's vehicle driving experience. In addition, the vehicle can complete the update of the electronic control unit in a networked state, thereby, to a certain extent, alleviating the situation where the user needs to stop the vehicle during the electronic control unit update process to wait for the completion of the electronic control unit update process, and the user's vehicle driving experience can be further improved.

[0068] In certain embodiments of the present application, when the vehicle is in a networked state, sending the first update data to the vehicle includes:

[0069] Get application version information of electronic control units in multiple vehicles;

[0070] The first update data is sent to a target vehicle, wherein the target vehicle is a vehicle among the multiple vehicles, in which application version information of the electronic control unit is different from application version information corresponding to the first update data.

[0071] In this way, in the embodiment of the present application, the application version information of the electronic control units in multiple vehicles can be obtained, and the first update data can be sent to the target vehicle, thereby ensuring the effective sending of the first update data.

[0072] In some embodiments of the present application, the first update data is determined according to an updated application program of the electronic control unit.

[0073] Thus, in the embodiment of the present application, the application program of the electronic control unit can be updated to determine the first update data, thereby achieving the determination of the first update data.

[0074] In certain embodiments of the present application, the updated application program of the electronic control unit corresponds to a plurality of program storage areas, and the method further includes:

[0075] Filling unused address segments in the program storage area with data;

[0076] When the data filling is completed, compression processing is performed on each of the program storage areas to determine the first update data.

[0077] Thus, in the embodiment of the present application, data can be filled in the unused address segments in the program storage area, and after the data filling is completed, compression processing can be performed on each program storage area to determine the first update data, thereby achieving the determination of the first update data.

[0078] In certain embodiments of the present application, the method further comprises:

[0079] A configuration file corresponding to the first update data is stored.

[0080] Thus, in the embodiment of the present application, a configuration file corresponding to the first upgrade data may be stored.

[0081] An embodiment of the present application provides an electronic device, including a memory and a processor, wherein the memory stores a computer program, and when the computer program is executed by the processor, the vehicle control method applied to the vehicle is implemented.

[0082] An embodiment of the present application provides an electronic device, including a memory and a processor, wherein the memory stores a computer program, and when the computer program is executed by the processor, the vehicle control method applied to the server is implemented.

[0083] An embodiment of the present application provides a vehicle, which includes the above-mentioned electronic device.

[0084] An embodiment of the present application provides a server, and the vehicle includes the above-mentioned electronic device.

[0085] An embodiment of the present application provides a computer-readable storage medium, which stores a computer program. When the computer program is executed by one or more processors, the above-mentioned vehicle control method is implemented.

[0086] An embodiment of the present application provides a computer program product, including a computer program / instruction, which implements the above-mentioned vehicle control method when executed by a processor.

[0087] The electronic device, vehicle, server, computer-readable storage medium, and computer program product provided by the embodiments of the present application enable a networked vehicle to update its electronic control unit (ECU) based on the acquired first update data, thereby enabling subsequent maintenance and functional updates of the vehicle functions for which the ECU is responsible, and to a certain extent, enabling real-time updates of the vehicle functions. This can, to a certain extent, ensure that the vehicle functions match user needs, thereby ensuring the user's vehicle driving experience. Furthermore, the vehicle can complete the update of the ECU while networked, thereby, to a certain extent, alleviating the situation in which the user needs to park during the ECU update process to wait for the ECU update process to complete, further improving the user's vehicle driving experience.

[0088] Additional aspects and advantages of the embodiments of the present application will be given in part in the description below, and in part will become obvious from the description below, or will be learned through practice of the embodiments of the present application. BRIEF DESCRIPTION OF THE DRAWINGS

[0089] The above and / or additional aspects and advantages of the present application will become apparent and easily understood from the description of the embodiments in conjunction with the following drawings, in which:

[0090] Figure 1 A schematic flow chart of a vehicle control method in certain embodiments of the present application;

[0091] Figure 2 A schematic flow chart of a vehicle control method in certain embodiments of the present application;

[0092] Figure 3 This is a schematic diagram of an application scenario in some embodiments of the present application;

[0093] Figure 4 A schematic flow chart of a vehicle control method in certain embodiments of the present application;

[0094] Figure 5 A schematic flow chart of a vehicle control method in certain embodiments of the present application;

[0095] Figure 6 A schematic flow chart of a vehicle control method in certain embodiments of the present application;

[0096] Figure 7 A schematic flow chart of a vehicle control method in certain embodiments of the present application;

[0097] Figure 8 A schematic flow chart of a vehicle control method in certain embodiments of the present application;

[0098] Figure 9 A schematic flow chart of a vehicle control method in certain embodiments of the present application;

[0099] Figure 10 A schematic flow chart of a vehicle control method in certain embodiments of the present application;

[0100] Figure 11 A schematic flow chart of a vehicle control method in certain embodiments of the present application;

[0101] Figure 12 A schematic flow chart of a vehicle control method in certain embodiments of the present application;

[0102] Figure 13 A schematic flow chart of a vehicle control method in certain embodiments of the present application;

[0103] Figure 14 A schematic flow chart of a vehicle control method in certain embodiments of the present application;

[0104] Figure 15 A schematic flow chart of a vehicle control method in certain embodiments of the present application;

[0105] Figure 16 A schematic flow chart of a vehicle control method in certain embodiments of the present application;

[0106] Figure 17 This is a flow chart of a vehicle control method in certain embodiments of the present application. DETAILED DESCRIPTION

[0107] The embodiments of the present application are described in detail below. Examples of the embodiments are shown in the accompanying drawings, wherein the same or similar reference numerals represent the same or similar elements or elements having the same or similar functions throughout. The embodiments described below with reference to the accompanying drawings are exemplary and are only used to explain the embodiments of the present application, and should not be understood as limiting the embodiments of the present application.

[0108] In related technologies, vehicles can upgrade the software and firmware in the Electronic Control Unit (ECU) through Over The Air (OTA) technology, thereby upgrading vehicle functions. Among them, the Electronic Control Unit is one of the core electronic components of the vehicle, responsible for controlling and managing the various driving states and other functions of the vehicle. OTA technology is a technology for remotely managing and updating automotive software through wireless networks. This technology enables vehicle manufacturers to remotely push new software, functions or security updates to vehicles, thereby realizing online upgrades and maintenance of vehicles.

[0109] For example, in the related art, an upgrade system can perform the following steps: the first step is to compress the executable program in the ECU software upgrade package; the second step is to deploy the ECU software upgrade package to the host computer node used to flash the ECU, and the host computer node parses the ECU software upgrade package to obtain a compressed package of the executable program; the third step is to transmit the compressed package of the executable program to the ECU in blocks and store it in a buffer; the fourth step is for the ECU to decompress the block compressed package in the buffer, and flash the decompressed data to the ECU, and clear the buffer after the flashing is completed; the fifth step is to repeat steps three and four until the flashing of the executable program is completed.

[0110] It is understandable that the system compresses the ECU software before performing OTA upgrades. It is also understandable that during the operation of the system, OTA upgrades are limited by the vehicle's network status. In other words, when the vehicle is connected to the Internet, OTA upgrades cannot be performed, thus reducing the user experience to a certain extent.

[0111] For example, in the related art, an upgrade solution includes: after receiving the upgrade request sent by the server, returning the device information of the target controller to the server; when the vehicle is in a networked state or a non-networked state, the receiving server parses and packages the firmware upgrade package according to the protocol adapted to the target controller and transmits the upgrade package data through the local area network; and writes the upgrade package data to the target controller to update the firmware version of the target controller.

[0112] It is understandable that this solution has three major flaws, namely: (1) OTA transmission data is not compressed, resulting in a longer OTA upgrade time and increasing the risk of OTA abnormal failure. (2) If the data transmitted by the OTA upgrade is parsed while the vehicle is connected to the Internet, it is easy to cause OTA failure and potential unknown risks. (3) The memory needs to be divided into a running area and a backup and restore area in a 1:1 ratio, which takes up a lot of resources and is not conducive to the continuous development of subsequent software.

[0113] For example, in the related technology, another upgrade solution includes: pre-programming flashing, which is the network preparation work before flashing, and its main contents include checking the upgrade preconditions, improving the flashing network speed, prohibiting network messages from other ECUs and turning off the diagnostic fault code setting; the main programming flashing step is used to program one or more logic blocks, and the request message of this step uses physical addressing; the post-programming flashing step is used to restore the vehicle's CAN network and DTC recording function, and the request message of this step uses physical addressing and functional addressing; the OTA upgrade data sharing function library encapsulates multi-functional software interface functions in the function library to complete the OTA flashing of the entire vehicle.

[0114] Understandably, this solution has two major flaws: 1) OTA transmission data is not compressed, resulting in longer OTA upgrade times and increasing the risk of OTA failures. 2) The OTA process is limited by the vehicle's network connection status. When the vehicle is connected to the network, OTA upgrades cannot be performed, which reduces the user experience.

[0115] Based on the above problems you may encounter, please refer to Figure 1 , an embodiment of the present application provides a vehicle control method applied to a vehicle, the method comprising:

[0116] 01: When the vehicle is in a networked state, the electronic control unit of the vehicle is updated according to the acquired first update data.

[0117] Embodiments of the present application also provide an electronic device, comprising a memory and a processor. The vehicle control method of the embodiment of the present application can be implemented by the electronic device of the embodiment of the present application. Specifically, the memory stores a computer program, and the processor is configured to update the electronic control unit of the vehicle based on first update data obtained when the vehicle is connected to the Internet.

[0118] Specifically, in the embodiment of the present application, when the vehicle is in an online state and obtains first update data for updating the Electronic Control Unit (ECU), the vehicle can update the electronic control unit according to the first update data.

[0119] More specifically, when the vehicle is connected to the internet, it can acquire the first update data while driving or in response to user interaction (such as touch control or voice input on the central control display). This allows the user to acquire the first update data without having to stop the vehicle during the electronic control unit update process, thus achieving seamless acquisition of the first update data. Consequently, the vehicle can upgrade the electronic control unit based on the acquired first update data.

[0120] Therefore, compared with the electronic control unit upgrade process in the related art, in which the user needs to stop using the vehicle in order for the vehicle to execute the two steps of "downloading the update data package from a remote server or other device" and "upgrading the electronic control unit using the downloaded update data package", the implementation method of the present application makes it difficult for the user to perceive the execution of the step of "downloading the update data package from a remote server or other device", thereby reducing the time that the user cannot use the vehicle due to the electronic control unit upgrade, and the user's vehicle driving experience is guaranteed.

[0121] Thus, in the embodiments of the present application, a vehicle in a networked state can update its electronic control unit based on the acquired first update data, thereby enabling subsequent maintenance and functional updates of the vehicle functions for which the electronic control unit is responsible, and to a certain extent, achieving real-time updates of the vehicle functions. This can, to a certain extent, ensure that the vehicle functions match user needs, thereby ensuring the user's vehicle driving experience. Furthermore, the vehicle can complete the update of the electronic control unit while in a networked state, thereby, to a certain extent, alleviating the situation in which the user needs to stop the vehicle during the electronic control unit update process to wait for the completion of the electronic control unit update process, further improving the user's vehicle driving experience.

[0122] In one example, when the vehicle is in a powered-on state or an ignition-on state, the vehicle may be considered to be in a networked state.

[0123] In one example, when a vehicle is in a driving state, it can be considered that the vehicle is in a networked state.

[0124] In one example, the first update data refers to a data packet in a compressed file format.

[0125] In one example, the vehicle can communicate with the server, and then the vehicle can receive the first update data sent by the server to obtain the first update data.

[0126] See also Figure 2 In certain embodiments of the present application, step 01 includes:

[0127] 010: When the vehicle is in a networked state, storing the acquired first update data into a preset storage space;

[0128] 011: updating the electronic control unit according to the stored first update data, so that the application program of the electronic control unit is updated from the second version to the first version corresponding to the first update data.

[0129] The processor of the embodiment of the present application is also used to store the acquired first update data in a preset storage space when the vehicle is in a networked state, and to update the electronic control unit based on the stored first update data, so that the application of the electronic control unit is updated from the second version to the first version corresponding to the first update data.

[0130] Specifically, in an embodiment of the present application, the vehicle can store the acquired first update data in a pre-set storage space, and then, the vehicle can update the electronic control unit according to the first update data stored in the storage space, so that the version of the application that can be run by the electronic control unit can be updated from the previous second version to the first version corresponding to the first update data, thereby completing the version update of the application.

[0131] It can be understood that, since the acquired first update data is stored in the preset storage space, and then the electronic control unit is updated using the first update data stored in the preset storage space, in the embodiment of the present application, the update data acquisition link that takes a longer time in the update process of the electronic control unit can be completed in advance. In other words, the first update data is acquired and the first update data is stored in the preset storage space when the vehicle is in the state. Furthermore, when the electronic control unit is subsequently updated, since the first update data has been stored in the preset storage space, the update process of the electronic control unit may not include the link of acquiring or downloading the first update data from the outside world, thereby enabling the update process of the electronic control unit to be completed in a shorter time.

[0132] More specifically, in related technologies, when a vehicle's electronic control unit is upgraded using over-the-air (OTA) technology, the user typically needs to stop using the vehicle, or, after parking the vehicle, trigger the ECU upgrade process. This process includes at least two steps: "downloading an update data package from a remote server or other device" and "upgrading the ECU using the downloaded update data package." It is understood that during this ECU upgrade process, the user cannot control the vehicle, such as being unable to respond to user touch operations or voice input operations on the central control display. It is also understood that the time required for the "download update data package from a remote server or other device" step is typically greater than the time required for the "upgrading the ECU using the downloaded update data package."

[0133] In contrast, in an embodiment of the present application, when the vehicle is in an internet-connected state and thus can communicate with a cloud server, the vehicle can download the first update data from the cloud server while driving or in response to user interaction (such as user touch operation or voice input operation on the central control display screen), and store the first update data in a preset storage space. Thus, the first update data downloading step can be completed while the vehicle is driving, or the step of "downloading the update data package from a remote server or other device" can be completed while the vehicle is driving or in response to user interaction. In other words, the embodiment of the present application eliminates the need for the user to stop using the vehicle for data transmission during the update process of the electronic control unit, thereby achieving seamless acquisition of the first upgrade data.

[0134] Furthermore, since the first update data has been stored in the preset storage space, the user does not need to stop the vehicle to complete the update of the electronic control unit. Or, even if the vehicle needs to be stopped to complete the update of the electronic control unit, since the step of "downloading the update data package from a remote server or other device" has been completed during the driving of the vehicle, the upgrade of the electronic control unit can be completed after the vehicle is stopped and the step of "upgrading the electronic control unit using the downloaded update data package" is completed.

[0135] Therefore, compared with the electronic control unit upgrade process in the related art, the implementation method of the present application makes it difficult for users to perceive the execution of the "download update data package from a remote server or other device" link, and reduces the time that users cannot use the vehicle due to the electronic control unit upgrade, so the user's vehicle driving experience is guaranteed.

[0136] In one example, any electronic control unit in the vehicle is configured with a corresponding electronic control unit storage space, and then the vehicle can store the acquired first update data in the electronic control unit storage space of the corresponding electronic control unit.

[0137] In one example, the preset storage space is a pre-set memory space.

[0138] Thus, in an embodiment of the present application, when the vehicle is in an online state, the acquired first update data can be stored in a preset storage space, and the electronic control unit can be updated according to the stored first update data, so that the application of the electronic control unit is updated from the second version to the first version corresponding to the first update data, so that before the vehicle updates the electronic control unit, the first update data can be acquired and stored in the preset storage space, and then when the electronic control unit is updated, since the first update data has been stored in the preset storage space, the update process of the electronic control unit may not include the step of acquiring or downloading the first update data from the outside world, thereby enabling the update process of the electronic control unit to be completed in a shorter time.

[0139] In some embodiments of the present application, the preset storage space includes at least two sub-storage spaces, wherein one sub-storage space stores second update data corresponding to the second version. Then, step 010 includes:

[0140] When the vehicle is in a networked state, the first update data is stored in the target sub-storage space, wherein the target sub-storage space does not store the second update data.

[0141] The processor of the embodiment of the present application is further configured to store the first update data in the target sub-storage space when the vehicle is in a networked state, wherein the target sub-storage space does not store the second update data.

[0142] Specifically, in an embodiment of the present application, at least one sub-storage space within the vehicle's preset storage space does not store the "'second update data' for enabling the electronic control unit to be equipped with the second version of the application program", and at the same time, at least one sub-storage space stores the "'second update data' for enabling the electronic control unit to be equipped with the second version of the application program".

[0143] Furthermore, considering that the update of the electronic control unit may fail due to errors in the first update data or unexpected abnormalities during the update process, in an embodiment of the present application, the vehicle can store the first update data in the target sub-storage space, that is, the sub-storage space that does not store the "second update data for enabling the electronic control unit to carry the second version of the application."

[0144] Therefore, even if the update of the electronic control unit fails, the vehicle can rewrite or roll back the electronic control unit through the stored second update data so that the electronic control unit is equipped with the second version of the application.

[0145] In addition, it can also be understood that after the vehicle completes the update of the electronic control unit according to the first update data, so that the application of the electronic control unit is updated from the second version to the first version corresponding to the first update data, if the vehicle can obtain the update data of the new version (let this data be the third update data), then the vehicle can store the third update data in the corresponding target sub-storage space, that is, "the first update data for enabling the electronic control unit to carry the first version of the application is not stored."

[0146] Thus, in the embodiment of the present application, the first update data can be stored in the target sub-storage space when the vehicle is in a networked state, thereby ensuring the stable progress of the vehicle update.

[0147] In certain embodiments of the present application, the vehicle control method further includes:

[0148] In the case that the first updated data is not obtained, the sub-storage space storing the second updated data is determined as the backup sub-storage space, and the sub-storage space not storing the second updated data is determined as the target sub-storage space.

[0149] The processor of the embodiment of the present application is further configured to, when the first update data is not acquired, determine the sub-storage space storing the second update data as the backup sub-storage space, and determine the sub-storage space not storing the second update data as the target sub-storage space.

[0150] Specifically, in the embodiments of the present application, the vehicle may be configured with a backup sub-storage space and a target sub-storage space. The target sub-storage space is used to store the most recently acquired update data, such as the first update data described above. The backup sub-storage space is used to store the most recently acquired update data, such as the second update data described above.

[0151] In an example, see Figure 3 , Figure 3 This is a schematic diagram of an application scenario in some embodiments of the present application, that is, Figure 3As shown, in the embodiment of the present application, for any electronic control unit, the memory of the electronic control unit can be divided into four areas, namely the compressed data buffer area (i.e. Figure 3 Compressed Data Cache in the Figure 3 Compress Data Backup in), App running area (ie Figure 3 APP in) and Bootloader area (i.e. Figure 3 Bootloader in ).

[0152] The compressed data cache area is used to store the software compressed data to be used to update the application of the vehicle control unit, which is also the first update data. The compressed data backup area is used to store the software compressed data of the application currently able to run by the vehicle control unit, which is also the second update data. The APP running area is used to store and execute the code and data of the application, and can allocate the corresponding memory area to the application when the application is running. The bootloader area is used to start the boot program, which can be responsible for initializing the hardware device and guiding the vehicle control unit to jump to the application entry address, and has the function of updating the application.

[0153] Based on this, in the embodiment of the present application, the first update data can be stored in the compressed data buffer area (ie Figure 3 The second updated data can be stored in the compressed data backup area (i.e. Figure 3 in the CompressData Backup).

[0154] In this way, in an embodiment of the present application, when the first update data is not obtained, the sub-storage space storing the second update data can be determined as the backup sub-storage space, and the sub-storage space not storing the second update data can be determined as the target sub-storage space, so that the vehicle can update the application version of the electronic control unit through the data stored in the target sub-storage space, and can roll back the application version of the electronic control unit through the data stored in the backup sub-storage space.

[0155] In certain embodiments of the present application, the vehicle control method further includes:

[0156] In the case that the updating cannot be completed according to the first updating data, the electronic control unit is updated according to the first updating data in the target sub-storage space.

[0157] The processor of the embodiment of the present application is further configured to update the electronic control unit according to the first update data in the target sub-storage space when the update cannot be completed according to the first update data.

[0158] Specifically, in an embodiment of the present application, if the vehicle fails to complete the application version update of the electronic control unit according to the first update data, the vehicle can update the electronic control unit according to the first update data in the target sub-storage space, that is, try to update the application version again, thereby ensuring the robust update of the electronic control unit.

[0159] Thus, in the embodiment of the present application, when the update cannot be completed according to the first update data, the electronic control unit can be updated according to the first update data in the target sub-storage space to perform another application version update on the electronic control unit, thereby ensuring a robust update of the electronic control unit.

[0160] In certain embodiments of the present application, the vehicle control method further includes:

[0161] When the number of update failures is greater than or equal to a preset threshold, the electronic control unit is updated according to the second update data in the backup sub-storage space so that the application of the electronic control unit is updated to the second version, wherein the number of update failures is used to indicate the number of times the update cannot be completed according to the first update data.

[0162] In certain embodiments of the present application, when the number of update failures is less than a preset number threshold, the electronic control unit is updated according to the first update data in the target sub-storage space, wherein the number of update failures is used to indicate the number of times that the update cannot be completed according to the first update data; and / or

[0163] When the number of update failures is greater than or equal to a preset number threshold, the electronic control unit is updated according to the second update data in the backup sub-storage space, so that the application program of the electronic control unit is updated to the second version.

[0164] The processor of the embodiment of the present application is also used in certain embodiments of the present application to update the electronic control unit according to the first update data in the target sub-storage space when the number of update failures is less than a preset number threshold, and / or to update the electronic control unit according to the second update data in the backup sub-storage space when the number of update failures is greater than or equal to a preset number threshold, so that the application of the electronic control unit is updated to the second version, wherein the number of update failures is used to indicate the number of times the update cannot be completed according to the first update data.

[0165] Specifically, in order to ensure the robust update of the electronic control unit and to avoid the vehicle's dispatchable resources being used for the update of the electronic control unit for a long time, in an embodiment of the present application, the vehicle can determine whether to attempt the update of the electronic control unit again or abandon it based on the number of failed updates of the electronic control unit.

[0166] For example, assuming that the preset number threshold is 2, then: if the vehicle updates the application version of the electronic control unit for the first time according to the first update data stored in the target sub-storage space, but the update fails, the number of update failures is 1 (less than and not equal to the preset number threshold), then the vehicle can perform another update, that is, update the application version of the electronic control unit for the second time according to the first update data stored in the target sub-storage space; if the second update fails, the number of update failures is 2 (equal to the preset number threshold), then the vehicle can update the application version of the electronic control unit according to the second update data, or, the vehicle can update the application version of the electronic control unit according to the second update data, so that even if the update of the electronic control unit fails, it can run the second version of the application to realize the corresponding vehicle-mounted functions.

[0167] Thus, in an embodiment of the present application, the electronic control unit can be updated according to the first update data in the target sub-storage space when the number of update failures is less than a preset number threshold, and / or, when the number of update failures is greater than or equal to a preset number threshold, the electronic control unit can be updated according to the second update data in the backup sub-storage space, so that the application of the electronic control unit is updated to the second version, thereby ensuring the robust update and robust operation of the electronic control unit.

[0168] In certain embodiments of the present application, the vehicle control method further includes:

[0169] When the update is completed according to the first update data, the target sub-storage space is determined as a new backup sub-storage space, and the sub-storage space that does not store the first update data is determined as a new target sub-storage space.

[0170] The processor of the embodiment of the present application is further configured to, when the update is completed according to the first update data, determine the target sub-storage space as a new backup sub-storage space, and determine the sub-storage space that does not store the first update data as a new target sub-storage space.

[0171] Specifically, to ensure the stable progress of the next update, in the embodiment of the present application, when the vehicle completes the application version update of the electronic control unit, the sub-storage space where the update data used in this update is located is used as a new backup sub-storage space, and the sub-storage space not used in this update is used as a new target sub-storage space. Then, when the vehicle obtains new update data, the update data can be stored in the above-mentioned "new target sub-storage space", and a new round of application version update can be performed according to the update data in the "new target sub-storage space". When the update fails or the number of update failures is greater than or equal to a preset threshold, the application version of the electronic control unit can be updated according to the update data in the above-mentioned "new backup sub-storage space" (i.e., the first update data) to make the application version of the electronic control unit the first version.

[0172] It is understood that when the application version of the electronic control unit is updated, the update data used in the update process can be regarded as the new second update data. It is also understood that after the application version of the electronic control unit is updated, the update data newly obtained by the vehicle is regarded as the new first update data.

[0173] In this way, in an embodiment of the present application, when the update is completed according to the first update data, the target sub-storage space can be determined as the new backup sub-storage space, and the sub-storage space that does not store the first update data can be determined as the new target sub-storage space, thereby ensuring the robustness of the next update of the electronic control unit.

[0174] See also Figure 4 In certain embodiments of the present application, step 01 includes:

[0175] 012: When the vehicle is in a networked state, the first update data is decompressed to update the electronic control unit.

[0176] The processor of the embodiment of the present application is further configured to decompress the first update data when the vehicle is in a networked state, so as to update the electronic control unit.

[0177] Specifically, in order to efficiently obtain the first update data, in an embodiment of the present application, the first update data is compressed data, or in other words, the first update data is compressed data.

[0178] It can be understood that, since the first update data is compressed data, the actual amount of data contained in the first update data is greater than the data amount of the first update data itself.

[0179] It can also be understood that since the vehicle obtains the first update data that has been compressed, the resources required for the vehicle to obtain the first update data (such as network bandwidth resources) are relatively small compared to the case of obtaining uncompressed data, thereby improving the update efficiency of the electronic control unit to a certain extent.

[0180] In one example, the first update data is data in a compressed package format (such as .rar, .iso, etc.).

[0181] In this way, in an embodiment of the present application, the first update data can be decompressed when the vehicle is in a networked state to update the electronic control unit, so that the update of the electronic control unit can be achieved based on the first update data obtained through compression, which can improve the update efficiency of the electronic control unit to a certain extent.

[0182] See also Figure 5 In some embodiments of the present application, step 012 includes:

[0183] 0120: When the vehicle is in a networked state, decompress the first update data;

[0184] 0121: According to the result of the decompression process, the running area of the electronic control unit is flashed to complete the update of the electronic control unit, wherein the running area is used to store application programs that can be run by the electronic control unit.

[0185] The processor of the embodiment of the present application is also used to decompress the first update data when the vehicle is in a networked state, and to flash the operating area of the electronic control unit based on the result of the decompression process to complete the update of the electronic control unit, wherein the operating area is used to store application programs that can be run by the electronic control unit.

[0186] Specifically, in an embodiment of the present application, after completing the decompression processing of the first update data to obtain the decompression processing result of the first update data, the vehicle can flash the operating area of the electronic control unit according to the decompression processing result of the first update data, thereby updating the application version of the electronic control unit.

[0187] To more clearly illustrate the implementation of this application, please refer to Figure 3 , that is, in Figure 3 In one example shown, the vehicle may store the acquired first update data in a compressed data cache (ie, Figure 3 After the Compress DataCache in the compressed data cache is opened, the first updated data in the compressed data cache is decompressed to write the decompression result to the App running area (ie Figure 3APP in the ECU), thereby updating the application version of the electronic control unit.

[0188] In this way, in the embodiment of the present application, when the vehicle is in a networked state, the first update data can be decompressed, and the operating area of the electronic control unit can be flashed according to the result of the decompression process to complete the update of the electronic control unit, thereby realizing the update of the electronic control unit.

[0189] In certain embodiments of the present application, the vehicle control method further includes:

[0190] In a case where the type of the acquired current data is a compressed data type, the current data is determined as the first updated data.

[0191] The processor of the embodiment of the present application is further configured to determine the current data as first updated data when the type of the acquired current data is a compressed data type.

[0192] Specifically, in order to ensure the robust update of the electronic control unit, in the embodiment of the present application, if the vehicle obtains a piece of data during operation, and the type of the data is a compressed data type, the data is determined as data that "can be used to update the electronic control unit", that is, the first update data. Then, the vehicle can execute subsequent steps based on the first update data, such as decompressing the first update data.

[0193] In this way, in an embodiment of the present application, the current data can be determined as the first update data when the type of the current data obtained is a compressed data type, so that subsequent operations can be performed based on the first update data, such as decompressing the first update data, thereby ensuring the robust update of the electronic control unit.

[0194] In certain embodiments of the present application, the vehicle control method further includes:

[0195] When the vehicle is in a networked state and the vehicle network state is in a target state, first update data is acquired.

[0196] The processor of the embodiment of the present application is further configured to obtain first update data when the vehicle is in a networked state and the vehicle network state is in a target state.

[0197] Specifically, in the embodiment of the present application, in order to ensure the stable operation of the vehicle, the vehicle can obtain the first update data to update the electronic control unit when it is in a networked state and the vehicle network state is in a target state.

[0198] In one example, the target state may indicate that the vehicle network status is good, such as the vehicle's bandwidth occupancy rate is less than or equal to a preset threshold (such as 70%).

[0199] In this way, in the embodiment of the present application, the vehicle can obtain the first update data to update the electronic control unit when it is in a networked state and the vehicle network state is in a target state, thereby ensuring the stable operation of the vehicle to a certain extent.

[0200] In certain embodiments of the present application, when the current load rate of the vehicle network bus is less than a preset load rate threshold, the vehicle network state is in the target state.

[0201] Specifically, in the embodiment of the present application, the vehicle can monitor the bus network status in real time when in a networked state, thereby determining the bus network status.

[0202] Furthermore, when the bus load rate of the vehicle is lower than the preset load rate threshold, it is confirmed that the vehicle can stably obtain the first update data, and then the vehicle can obtain the first update data, so as to update the electronic control unit through the first update data after completing the acquisition of the first update data.

[0203] It can be understood that by monitoring the bus network status, the first upgrade data can be cached in the data cache area of the electronic control unit when the bus load rate is lower than the preset load rate threshold. Then, when the vehicle upgrade conditions are met, the electronic control unit can be quickly updated. This not only improves the upgrade efficiency of the entire vehicle OTA, but also reduces the probability of abnormal OTA failure, greatly shortens the user waiting time, effectively improves the user experience, and is not limited by the vehicle networking status, realizing the seamless transmission of the first update data.

[0204] In one example, the preset load rate threshold is 70%.

[0205] In this way, in the embodiment of the present application, the first update data can be obtained when the current load rate of the vehicle network bus is less than the preset load rate threshold, thereby ensuring the robust acquisition of the first update data.

[0206] See also Figure 6 In certain embodiments of the present application, step 01 includes:

[0207] 013: When the vehicle is in a networked state, the electronic control unit is updated according to the first update data and the current state information of the vehicle.

[0208] The processor of the embodiment of the present application is also used to update the electronic control unit according to the first update data and the current status information of the vehicle when the vehicle is in a networked state.

[0209] Specifically, in the embodiment of the present application, when the vehicle is in a networked state, the electronic control unit can be updated according to the acquired first update data and the status information of the vehicle at the current moment.

[0210] It is understandable that the current state information of the vehicle can be used to represent the state of the vehicle at the current moment, such as the driving gear of the vehicle at the current moment, the moving speed of the vehicle at the current moment, etc.

[0211] It can also be understood that in the process of updating the electronic control unit, the application in the electronic control unit may be overwritten or rewritten. During the process of overwriting or rewriting the application, the vehicle functions that the electronic control unit is responsible for may not be used normally. Therefore, in order to ensure user safety, the vehicle can use the current status information to update the electronic control unit. For example, it can be judged based on the current status information whether updating the electronic control unit at the current moment will affect the user's control of the vehicle, thereby judging whether the electronic control unit can be updated at the current moment.

[0212] In this way, in the embodiment of the present application, the electronic control unit can be updated according to the first update data and the current status information of the vehicle, so that the update of the electronic control unit can take into account the current status information of the vehicle, thereby ensuring the reliable update of the electronic control unit.

[0213] In certain embodiments of the present application, the current status information includes at least one of the current remaining power, the current vehicle speed, the current driving gear, and the current engine speed.

[0214] Specifically, in the embodiment of the present application, at least one of the vehicle's current remaining power, current vehicle speed, current driving gear, and current engine speed can be used in the update process of the electronic control unit.

[0215] In one example, the vehicle may update the electronic control unit using the first update data when the current remaining power is greater than 25%.

[0216] In one example, the vehicle may update the electronic control unit using the first update data when the current vehicle speed is less than 0.5 km / h (kilometers per hour).

[0217] In one example, the vehicle may update the electronic control unit using the first update data when the current engine speed is less than 5 RPM (Revolutions Per Minute).

[0218] In one example, the vehicle may update the electronic control unit using the first update data when the current driving gear is the parking gear (or P gear).

[0219] In this way, in the embodiment of the present application, at least one piece of information including the vehicle's current remaining power, current vehicle speed, current driving gear, and current engine speed can be used in the update process of the electronic control unit, thereby ensuring the robust update of the electronic control unit.

[0220] See also Figure 7 In certain embodiments of the present application, step 013 includes:

[0221] 0130: When at least one of the following conditions is met: the current remaining power is greater than the preset power threshold, the current vehicle speed is less than the preset vehicle speed threshold, the current driving gear is the target gear, and the current engine speed is less than or equal to the preset speed threshold, and the vehicle is in a networked state, the electronic control unit is updated according to the first update data.

[0222] Specifically, in an embodiment of the present application, the vehicle can determine that the electronic control unit can be updated at the current moment when at least one of the following conditions is met: the current remaining power is greater than a preset power threshold, the current vehicle speed is less than a preset vehicle speed threshold, the current driving gear is the target gear, and the current engine speed is less than or equal to a preset speed threshold, and the vehicle is in a networked state. Then, the vehicle updates the electronic control unit according to the first update data.

[0223] In one example, the preset power threshold is 25% of the vehicle's maximum power.

[0224] In one example, the preset vehicle speed threshold is 0.5 km / h (kilometers per hour).

[0225] In one example, the preset speed threshold is 5 RPM (Revolutions Per Minute).

[0226] In one example, the target gear is park (or P).

[0227] In this way, in the embodiment of the present application, when at least one of the following conditions is met: the current remaining power is greater than the preset power threshold, the current vehicle speed is less than the preset vehicle speed threshold, the current driving gear is the target gear, and the current engine speed is less than or equal to the preset speed threshold, and the vehicle is in a networked state, the electronic control unit can be updated according to the first update data, thereby further ensuring the robust update of the electronic control unit.

[0228] See also Figure 8 In certain embodiments of the present application, step 01 includes:

[0229] 014: When the vehicle is in an online state and the first update data is obtained, control the electronic control unit to switch from the first preset operating state to the second preset operating state;

[0230] 015: When the electronic control unit is in the second preset operating condition, the electronic control unit is updated according to the first update data.

[0231] The processor of the embodiment of the present application is also used to control the electronic control unit to switch from a first preset operating condition to a second preset operating condition when the vehicle is in an online state and the first update data is obtained, and is used to update the electronic control unit according to the first update data when the electronic control unit is in the second preset operating condition.

[0232] Specifically, in an embodiment of the present application, in order to ensure the robust update of the electronic control unit, the vehicle can control the electronic control unit to switch from a first preset operating condition to a second preset operating condition when it is in an Internet-connected state and obtains first update data for updating the electronic control unit, and update the electronic control unit according to the first update data when the electronic control unit is in the second preset operating condition.

[0233] It is understandable that during the update of the electronic control unit, one or more of the following situations may occur: addition, deletion, modification, etc. of the application program. Therefore, in order to avoid the electronic control unit triggering the corresponding feedback mechanism due to the addition, deletion, modification, etc. of the application program, in an embodiment of the present application, the electronic control unit can be controlled to switch from the first preset operating condition to the second preset operating condition, and when the electronic control unit is in the second preset operating condition, the electronic control unit is updated according to the first update data.

[0234] In one example, when the electronic control unit is in a first preset operating state, the electronic control unit can communicate externally or exchange messages with other electronic control units. Conversely, when the electronic control unit is in a second preset operating state, the electronic control unit cannot communicate externally or exchange messages with other electronic control units.

[0235] In one example, when the ECU is in a first predetermined operating condition, the ECU may perform fault diagnosis on itself to determine a diagnostic trouble code (DTC). Conversely, when the ECU is in a second predetermined operating condition, the ECU may not perform fault diagnosis on itself to determine a diagnostic trouble code.

[0236] In this way, in the embodiment of the present application, when the vehicle is in an online state and the first update data is obtained, the electronic control unit can be controlled to switch from the first preset operating condition to the second preset operating condition, and when the electronic control unit is in the second preset operating condition, the electronic control unit can be updated according to the first update data, thereby ensuring the robust update of the electronic control unit.

[0237] In certain embodiments of the present application, when the electronic control unit is in a first preset operating condition, the electronic control unit is capable of sending and receiving communication messages and performing fault diagnosis, and when the electronic control unit is in a second preset operating condition, the electronic control unit is unable to send and receive communication messages and / or perform fault diagnosis.

[0238] Specifically, in an embodiment of the present application, in order to prevent the electronic control unit from erroneously sending communication messages and / or reporting errors during the update process, the vehicle can control the electronic control unit to switch from the "state of 'being able to send and receive communication messages and diagnose faults'" to the "state of 'not being able to send and receive communication messages and diagnose faults'", that is, to switch from the first preset operating condition to the second preset operating condition.

[0239] In one example, when the electronic control unit is in a first preset operating state, the electronic control unit can communicate externally, or the electronic control unit can send communication messages to other devices to exchange data. Conversely, when the electronic control unit is in a second preset operating state, the electronic control unit cannot communicate externally, or the electronic control unit cannot send communication messages to other devices to exchange data.

[0240] In one example, when the ECU is in a first predetermined operating condition, the ECU may perform a fault diagnosis on itself to determine a fault diagnosis code. Conversely, when the ECU is in a second predetermined operating condition, the ECU may not perform a fault diagnosis on itself to determine a fault diagnosis code.

[0241] In one example, before the electronic control unit is updated according to the first update data, the vehicle may broadcast to each electronic control unit in the vehicle so that each electronic control unit is in a muted state and DTC diagnosis is prohibited, that is, each electronic control unit is in a state where it cannot send and receive communication messages and / or perform fault diagnosis.

[0242] In this way, in an embodiment of the present application, the electronic control unit is able to send and receive communication messages and perform fault diagnosis when it is in a first preset operating condition, and is unable to send and receive communication messages and / or perform fault diagnosis when it is in a second preset operating condition.

[0243] See also Figure 9In certain embodiments of the present application, the vehicle control method further includes:

[0244] 02: When the updating of the electronic control unit is completed according to the first updating data, the electronic control unit is controlled to switch from the second preset operating condition to the first preset operating condition.

[0245] The processor of the embodiment of the present application is further configured to control the electronic control unit to switch from the second preset operating condition to the first preset operating condition when the electronic control unit is updated according to the first update data.

[0246] Specifically, in an embodiment of the present application, the vehicle may control the electronic control unit to switch from the second preset operating condition to the first preset operating condition when the update of the vehicle control unit is completed, or control the electronic control unit to restore to the operating condition before the update.

[0247] In one example, when the electronic control unit is in a first preset operating condition, the electronic control unit can communicate externally or exchange messages with other electronic control units. Conversely, when the electronic control unit is in a second preset operating condition, the electronic control unit cannot communicate externally or exchange messages with other electronic control units. Furthermore, after the vehicle control electronic control unit switches from the second preset operating condition to the first preset operating condition, the electronic control unit can exchange messages with other electronic control units.

[0248] In one example, when the electronic control unit is in a first preset operating condition, the electronic control unit can perform fault diagnosis on itself to determine a diagnostic trouble code (DTC). Conversely, when the electronic control unit is in a second preset operating condition, the electronic control unit cannot perform fault diagnosis on itself to determine a diagnostic trouble code. Furthermore, after the vehicle control electronic control unit switches from the second preset operating condition to the first preset operating condition, the electronic control unit can perform fault diagnosis on itself to determine a diagnostic trouble code.

[0249] In one example, the vehicle can restore the electronic control unit's ability to send and receive communication messages and the DTC diagnostic function through functional addressing.

[0250] In one example, when the vehicle completes updating of the electronic control unit according to the first update data, the hardware of the electronic control unit is reset and restarted through physical addressing, thereby jumping to the application program running of the electronic control unit.

[0251] Thus, in an embodiment of the present application, when the update of the electronic control unit is completed according to the first update data, the electronic control unit can be controlled to switch from the second preset operating condition to the first preset operating condition, so that the electronic control unit can be restored to the operating condition before the update after the update is completed.

[0252] See also Figure 10 In certain embodiments of the present application, step 02 includes:

[0253] 020: When the update is completed according to the first update data, verify the first update data;

[0254] 021: If the verification process passes, control the electronic control unit to switch from the second preset operating condition to the first preset operating condition.

[0255] The processor of the embodiment of the present application is also used to verify the first update data when the update is completed according to the first update data, and to control the electronic control unit to switch from the second preset operating condition to the first preset operating condition when the verification passes.

[0256] Specifically, in the embodiment of the present application, after completing the update of the electronic control unit according to the first update data, the vehicle may verify the first update data to determine whether the updated electronic control unit can operate normally.

[0257] It is understood that if the verification passes, the vehicle can control the electronic control unit to restore to the operating state before the update, that is, switch from the second preset operating state to the first preset operating state. It is also understood that if the verification does not pass, the vehicle can control the electronic control unit to perform a rollback, that is, restore the electronic control unit to a state that was not updated.

[0258] In one example, a vehicle is communicatively connected to a server and can receive first update data sent by the server. Then, after completing the update of the electronic control unit according to the first update data, the vehicle can calculate the hash value of the first update data and send the hash value to the server. Then, the server determines whether the two hash values match based on the received hash value and the hash value of the first update data in the server. If so, a hash verification pass message is sent to the vehicle; otherwise, a hash verification fail message is sent to the vehicle.

[0259] In this way, in the embodiment of the present application, the first update data can be verified when the update is completed according to the first update data, and the electronic control unit can be controlled to switch from the second preset operating condition to the first preset operating condition when the verification process passes, thereby avoiding the possibility of abnormal situations after the updated electronic control unit switches to the first preset operating condition due to errors in the first update data, and ensuring the stable operation of the electronic control unit to a certain extent.

[0260] In certain embodiments of the present application, the verification process includes at least one of data integrity verification processing, digital signature decryption processing, and software and hardware consistency check processing.

[0261] Specifically, in the implementation manner of the present application, the vehicle can perform at least one of integrity verification processing, digital signature decryption processing, and software and hardware consistency check processing on the first update data, thereby determining the update effect of the first update data on the vehicle control unit.

[0262] In one example, the vehicle may check the integrity of the first update data acquisition process by physical addressing, that is, check whether each data block of the first update data is completely acquired.

[0263] In one example, the vehicle may perform data signing on the first update data by means of physical addressing.

[0264] In one example, physical addressing is used to verify whether the software and hardware of the electronic control unit are consistent, thereby ensuring that the software of the electronic control unit runs on the corresponding hardware.

[0265] Thus, in the embodiment of the present application, at least one of data integrity verification processing, digital signature decryption processing, and software and hardware consistency check processing can be performed on the first update data, thereby ensuring the effectiveness of the verification processing.

[0266] See also Figure 11 Corresponding to the above-mentioned vehicle control method applied to a vehicle, an embodiment of the present application further provides a vehicle control method applied to a server, wherein the server is communicatively connected to the vehicle, and the method includes:

[0267] 03: When the vehicle is in an online state, first update data is sent to the vehicle, wherein when the vehicle is in an online state, an electronic control unit of the vehicle is updated according to the first update data.

[0268] The present application also provides an electronic device comprising a memory and a processor. The vehicle control method applied to a server in the present application can be implemented by the electronic device in the present application. Specifically, the memory stores a computer program, and the processor is configured to send first update data to the vehicle when the vehicle is connected to the network. When the vehicle is connected to the network, the electronic control unit of the vehicle is updated according to the first update data.

[0269] Specifically, in an embodiment of the present application, the server can establish a communication connection with the vehicle. Then, when the server determines that the electronic control unit in a certain vehicle can update the application version, it can send corresponding first update data to the vehicle, so that the vehicle can update the electronic control unit in the vehicle after receiving the first update data.

[0270] It is understandable that the update process of the electronic control unit in the vehicle can be found in the previous text, and to avoid repetition, it will not be described here.

[0271] Thus, in the embodiments of the present application, first update data can be sent to a vehicle in a networked state, so that the vehicle can update its electronic control unit according to the acquired first update data, thereby enabling subsequent maintenance and functional updates of the vehicle functions responsible for the electronic control unit, and to a certain extent, achieving real-time updates of the vehicle functions. This can, to a certain extent, ensure that the vehicle functions match user needs and thus ensure the user's vehicle driving experience. Furthermore, the vehicle can complete the update of the electronic control unit in a networked state, thereby, to a certain extent, alleviating the situation where the user needs to stop the vehicle during the electronic control unit update process to wait for the completion of the electronic control unit update process, and the user's vehicle driving experience can be further improved.

[0272] See also Figure 12 In certain embodiments of the present application, step 03 includes:

[0273] 030: Get application version information of electronic control units in multiple vehicles;

[0274] 031: Sending first update data to a target vehicle, wherein the target vehicle is a vehicle among a plurality of vehicles, in which application version information of an electronic control unit is different from application version information corresponding to the first update data.

[0275] The processor of the embodiment of the present application is also used to obtain application version information of electronic control units in multiple vehicles, and send first update data to a target vehicle, wherein the target vehicle is a vehicle among multiple vehicles in which the application version information of the electronic control unit is different from the application version information corresponding to the first update data.

[0276] Specifically, in an embodiment of the present application, the server can establish a communication connection with multiple vehicles, and then, the server can obtain the application version information of the electronic control units in these multiple vehicles in real time. Then, based on the application version information of the electronic control unit in each vehicle, the server can determine the vehicle among these multiple vehicles for which the electronic control unit application version can be updated, that is, the target vehicle.

[0277] It can be understood that, in the embodiment of the present application, the server stores the first update data for updating the electronic control unit application version. Then, if the first update data is used to update the electronic control unit application version to V N Version, and among the multiple vehicles connected to the server, there is a vehicle whose electronic control unit has a current application version of V N-1 If the server determines that the vehicle is a vehicle that can perform an electronic control unit application version update, that is, a target vehicle, and then the server can send the first update data to the vehicle so that the vehicle can update the application version of the electronic control unit in the vehicle from V N-1 Version updated to V N Version.

[0278] In one example, the vehicle may periodically report the application version information of each electronic control unit to the server, and the server may record the application version information of each electronic control unit in each vehicle, thereby ensuring robust determination of the target vehicle.

[0279] In this way, in the embodiment of the present application, the application version information of the electronic control units in multiple vehicles can be obtained, and the first update data can be sent to the target vehicle, thereby ensuring the effective sending of the first update data.

[0280] In some embodiments of the present application, the first update data is determined according to an application program of the updated electronic control unit.

[0281] Specifically, in the embodiment of the present application, the first update data may be generated according to an application program of an updated electronic control unit.

[0282] In one example, after completing the update of an electronic control unit application, the user may create corresponding update data, ie, first update data, through the updated electronic control unit application, and upload the first update data to the server.

[0283] Thus, in the embodiment of the present application, the application program of the updatable electronic control unit determines the first update data, thereby achieving the determination of the first update data.

[0284] See also Figure 13 In certain embodiments of the present application, the updated application program of the electronic control unit corresponds to a plurality of program storage areas, and further, the vehicle control method further includes:

[0285] 04: Fill the unused address segments in the program storage area with data;

[0286] 05: When data filling is completed, compression processing is performed on each program storage area to determine the first update data.

[0287] The processor of the embodiment of the present application is further configured to fill data into unused address segments in the program storage area, and after completing the data filling, perform compression processing on each program storage area to determine first update data.

[0288] Specifically, in the embodiment of the present application, the application program of the updated electronic control unit may be composed of data distributed in multiple program storage areas, and there are unused address segments in these multiple program storage areas.

[0289] Furthermore, in the embodiment of the present application, unused address segments may be filled, such as by filling with 0 or other values representing the blankness of the address segment.

[0290] Furthermore, after filling the unused address segments in each program storage area, each program storage area may be compressed so that the data in each program storage area is merged into one data packet, which is the first update data in the embodiment of the present application.

[0291] In one example, the application of the updated electronic control unit can be distributed in the SB, CB, ASW, DS and other area blocks of PFlash (ParallelFlash), and one or more data blocks in the SB, CB, ASW, DS and other area blocks of PFlash can be compressed to obtain the above-mentioned first update data.

[0292] In an example, each data block with updated data in the SB, CB, ASW, DS and other area blocks of PFlash may be compressed to obtain the first updated data.

[0293] Thus, in the embodiment of the present application, data can be filled in the unused address segments in the program storage area, and after the data filling is completed, compression processing can be performed on each program storage area to determine the first update data, thereby achieving the determination of the first update data.

[0294] In certain embodiments of the present application, the vehicle control method further includes:

[0295] A configuration file corresponding to the first update data is stored.

[0296] The processor in the embodiment of the present application is further configured to store a configuration file corresponding to the first update data.

[0297] Specifically, in an embodiment of the present application, the server may also obtain or receive a configuration file, which may include relevant information of the first update data, such as the application version number, software encoding, continuous frame interval time parameters, baud rate, data field baud rate, request sequence number, frame type, CAN (Controller Area Network) frame format, CAN channel, compression method, etc. corresponding to the first update data.

[0298] In one example, the configuration file is a file in XML (Extensible Markup Language) format.

[0299] Thus, in the embodiment of the present application, a configuration file corresponding to the first upgrade data may be stored.

[0300] To more clearly explain the upgrade process of the electronic control unit in the embodiment of this application, please refer to Figure 3 、 Figure 14 、 Figure 15 、 Figure 16 and Figure 17 , Figure 14 、 Figure 15 、 Figure 16 and Figure 17 are all flowcharts of vehicle control methods in certain embodiments of the present application. Figure 14 In one example shown, the upgrade process for an electronic control unit may include:

[0301] First, for the application of the upgraded electronic control unit, the application is compressed to obtain ECU compressed software (ie, the first update data mentioned above), and then the ECU compressed software is uploaded to the cloud server.

[0302] Next, the cloud server determines the target vehicle among the multiple vehicles for which the ECU application version can be updated based on the pre-acquired ECU application version information from the multiple vehicles. Based on the target vehicle's identification information, the cloud server sends the ECU compressed software to the target vehicle's T-BOX (Telematics Box).

[0303] At the same time, the target vehicle determines, based on its own storage situation, the cache area A and B, which stores the "ECU compression software of the current software version of the electronic control unit" and the cache area not storing the "ECU compression software of the current software version of the electronic control unit", and determines the cache area not storing the "ECU compression software of the current software version of the electronic control unit" as the compressed data cache area, and then stores the ECU compression software sent by the server in the compressed data cache area.

[0304] Then, the electronic control unit can judge the current status information of the target vehicle, and when it is judged that the current status information of the target vehicle meets the expected upgrade conditions and the electronic control unit self-update instruction is obtained, the ECU compression software in the compressed data cache area is decompressed and the decompressed data is written into the APP running area of the electronic control unit.

[0305] Finally, the update is completed in the electronic control unit, and the electronic control unit runs with the new version of software.

[0306] It is worth noting that Figure 14 The ECU compression software in the process shown can fill the original software file, compress multiple areas into one area, configure the ECU compression software as an upgrade package and deploy it in the cloud, thereby realizing the storage of the ECU compression software in the cloud server.

[0307] More specifically, for the compiled and generated upgraded ECU software, unused address segments in the ECU software are filled. It is understandable that the PFlash of the electronic control unit can be divided into multiple area blocks, such as SB, CB, ASW, DS, etc. The embodiment of the present application can compress the multiple area blocks that need to be updated through a compression algorithm to obtain a single area block, and use the data of the area block as ECU compression software that can be deployed to a cloud server.

[0308] Furthermore, in the process of manufacturing ECU compression software, relevant information such as software version number, software encoding, continuous frame interval time parameters, baud rate, data field baud rate, request sequence number, frame type, CAN frame format, CAN channel, compression method, etc. can be made into an XML file, so that the XML file and the ECU compression software can be synchronously deployed to the cloud.

[0309] It is also worth noting that the process of the cloud server sending the ECU compression software may include: first, the cloud server obtains the identification information of the target vehicle, and based on the identification information, transmits the ECU compression software to the data cache area of the electronic control unit in the target vehicle.

[0310] More specifically, the cloud server can obtain an updateable list of target vehicles and vehicle information of the target vehicles, such as VIN (Vehicle Identification Number), software version number, and other related information, through the wireless network. Then, the bus network status is monitored, that is, the bus network status of the target vehicle is obtained, and the ECU compression software is sent to the target vehicle when the bus load rate of the target vehicle is lower than 70%, to ensure that the ECU compression software can be stably transmitted to the target vehicle, thereby reducing the risk of upgrade failure during driving. In addition, it is understandable that if the server determines that the software version number of the electronic control unit in the target vehicle is inconsistent with the software version stored in the cloud server, the ECU compression software can be transmitted to the compressed data cache of the electronic control unit in the target vehicle;

[0311] like Figure 15 As shown, when the electronic control unit determines that the current state of the target vehicle meets the expected upgrade conditions and obtains the electronic control unit self-update instruction triggered by the user through the terminal device (such as a mobile phone, tablet computer, or vehicle central control display), the data in the compressed data cache area is decompressed and the decompressed data is written to the operation area of the electronic control unit. Specifically, if the vehicle conditions such as the remaining power of the vehicle is greater than 25%, the vehicle speed is less than <0.5Km / h, the gear is in P gear, and the engine speed is <=5rpm are met, and the ECU compression software is detected in the data cache area of the electronic control unit, an update request instruction is issued to the user's terminal device. Furthermore, if the user terminal device receives the electronic control unit self-update instruction in response to the update instruction, the data in the compressed data cache area is decompressed and the decompressed data is written to the operation area of the electronic control unit.

[0312] Then, if the decompressed data is successfully written to the operating area of the electronic control unit, that is, the electronic control unit is updated successfully, the compressed data cache area in the two cache areas A and B is set as the compressed data backup area, and the other cache area is set as the new compressed data cache area for the next software update. Conversely, if the update fails, the ECU compressed software stored in the compressed data backup area in the two cache areas A and B is decompressed and refreshed, and the compressed data backup area and compressed data cache area in the two cache areas A and B remain unchanged.

[0313] Specifically, if an abnormal failure occurs when decompressing the data in the compressed data cache area and writing it to the APP running area, and the cumulative failure exceeds three times, the rollback function will be triggered, that is, the data in the compressed data backup area will be decompressed and written to the running area to avoid the situation where the entire vehicle cannot operate normally.

[0314] like Figure 16As shown, after the electronic control unit receives the self-update instruction and before the electronic control unit starts to flash the operating area, the vehicle can judge the operating condition of the entire vehicle and broadcast to all controllers at the same time to disable each electronic control unit and prohibit DTC diagnosis, and then enter the programming mode through security access to start flashing the data stream.

[0315] Furthermore, before starting the flash download, the vehicle controller uses the "dataFormatIdentifier" parameter in request service 34 to determine whether the file being downloaded from the cloud server is compressed. If so, the compression refresh flag is set. The compression refresh flag is then identified in service 36 for data transmission, and the data is cached in the specified buffer. The data decompression state machine uses an LZSS-like decompression algorithm to losslessly restore the data. After decompressing a certain amount of data, the asynchronous flash write state machine is triggered, invoking the fls driver to complete the flash write to the vehicle controller's electronic control unit. This process is repeated until all blocks are flashed, completing the ECU upgrade.

[0316] In addition, if Figure 17 As shown, during the decompression process, the decompression status can be detected in real time and corresponding logical processing can be performed according to the current status. Figure 17 As shown in the figure, when the decompression state (Decompress_state) is IDLE, it indicates that no decompressed data has been received, so no processing is performed and the next step is continued. For example, when the decompression state (Decompress_state) is START, it indicates that decompression has started, and the steps of refreshing the stream and decompression condition check, obtaining the received data to be processed, initializing the sliding window dictionary, forward buffer, decompressed data buffer and other related variables, and setting the decompression state (Decompress_state) to PROCESS are executed in sequence.

[0317] An embodiment of the present application further provides a vehicle, which includes the above-mentioned electronic device.

[0318] An embodiment of the present application further provides a computer-readable storage medium, which stores a computer program. When the computer program is executed by one or more processors, the above-mentioned vehicle control method is implemented.

[0319] The embodiment of the present application also provides a computer program product, including a computer program / instruction, which implements the above-mentioned vehicle control method when executed by a processor.

[0320] In the description of this specification, the descriptions with reference to the terms "particularly", "further", "particularly", "understandably", etc. are intended to mean that the specific features, structures, materials or characteristics described in conjunction with the embodiments or examples are included in at least one embodiment or example of the present application. In this specification, the schematic expressions of the above terms are not intended to refer to the same embodiment or example. Moreover, the specific features, structures, materials or characteristics described may be combined in any one or more embodiments or examples in a suitable manner. In addition, those skilled in the art may combine and combine the different embodiments or examples described in this specification and the features of the different embodiments or examples, unless they are contradictory.

[0321] Any process or method description in a flowchart or otherwise described herein may be understood to represent a module, segment or portion of code comprising one or more executable instructions for implementing the steps of a specific logical function or process, and the scope of the preferred embodiments of the present application includes alternative implementations in which functions may be performed out of the order shown or discussed, including performing functions in a substantially simultaneous manner or in the reverse order depending on the functions involved, which should be understood by those skilled in the art to which the embodiments of the present application belong.

[0322] Although the embodiments of the present application have been shown and described above, it can be understood that the above embodiments are exemplary and cannot be understood as limitations on the present application. Ordinary technicians in this field can change, modify, replace and modify the above embodiments within the scope of the present application.

Claims

1. A vehicle control method, characterized in that: Applied to a vehicle, the method comprises: When the vehicle is in a networked state, an electronic control unit of the vehicle is updated according to the acquired first update data.

2. The method according to claim 1, characterized in that The updating of the electronic control unit of the vehicle according to the acquired first update data when the vehicle is in a networked state includes: When the vehicle is in a networked state, storing the acquired first update data in a preset storage space; The electronic control unit is updated according to the stored first update data, so that the application program of the electronic control unit is updated from the second version to the first version corresponding to the first update data.

3. The method according to claim 2, characterized in that The preset storage space includes at least two sub-storage spaces, one of the sub-storage spaces storing second update data corresponding to the second version, and storing the acquired first update data in the preset storage space when the vehicle is in a networked state, including: When the vehicle is in a networked state, the first update data is stored in a target sub-storage space, wherein the target sub-storage space does not store the second update data.

4. The method according to claim 3, characterized in that The method further comprises: In the case that the first update data is not acquired, the sub-storage space storing the second update data is determined as a backup sub-storage space, and the sub-storage space not storing the second update data is determined as the target sub-storage space.

5. The method according to claim 4, characterized in that The method further comprises: In the case that the updating cannot be completed according to the first updating data, the electronic control unit is updated according to the first updating data in the target sub-storage space.

6. The method according to claim 4, characterized in that The method further comprises: If the number of update failures is less than a preset number threshold, updating the electronic control unit according to the first update data in the target sub-storage space, wherein the number of update failures is used to indicate the number of times the update has not been completed according to the first update data; and / or, When the number of update failures is greater than or equal to the preset threshold, the electronic control unit is updated according to the second update data in the backup sub-storage space, so that the application of the electronic control unit is updated to the second version.

7. The method according to claim 4, characterized in that The method further comprises: When the update is completed according to the first update data, the target sub-storage space is determined as the new backup sub-storage space, and the sub-storage space that does not store the first update data is determined as the new target sub-storage space.

8. The method according to claim 1, characterized in that The updating of the electronic control unit of the vehicle according to the acquired first update data when the vehicle is in a networked state includes: When the vehicle is in a networked state, the first update data is decompressed to update the electronic control unit.

9. The method according to claim 8, characterized in that The step of decompressing the first update data to update the electronic control unit while the vehicle is in a networked state includes: When the vehicle is in a networked state, decompressing the first update data; According to the result of the decompression process, a flashing process is performed on the running area of the electronic control unit to complete the update of the electronic control unit, wherein the running area is used to store application programs that can be run by the electronic control unit.

10. The method according to claim 8, characterized in that The method further comprises: In a case where the type of the acquired current data is a compressed data type, the current data is determined as the first update data.

11. The method according to claim 1, wherein The method further comprises: When the vehicle is in a networked state and the vehicle network state is in a target state, the first update data is acquired.

12. The method according to claim 11, characterized in that When the current load rate of the vehicle network bus is less than a preset load rate threshold, the vehicle network state is in the target state.

13. The method according to claim 1, wherein The updating of the electronic control unit of the vehicle according to the acquired first update data when the vehicle is in a networked state includes: When the vehicle is in a networked state, the electronic control unit is updated according to the first update data and current state information of the vehicle.

14. The method according to claim 13, characterized in that The current status information includes at least one of the current remaining power, the current vehicle speed, the current driving gear, and the current engine speed.

15. The method according to claim 14, characterized in that The updating of the electronic control unit according to the first update data and the current state information of the vehicle when the vehicle is in a networked state includes: When at least one of the following conditions is met: the current remaining power is greater than a preset power threshold, the current vehicle speed is less than a preset vehicle speed threshold, the current driving gear is the target gear, and the current engine speed is less than or equal to a preset speed threshold, and the vehicle is in a networked state, the electronic control unit is updated according to the first update data.

16. The method according to claim 1, characterized in that The updating of the electronic control unit of the vehicle according to the acquired first update data when the vehicle is in a networked state includes: When the vehicle is in an online state and the first update data is obtained, controlling the electronic control unit to switch from a first preset operating state to a second preset operating state; When the electronic control unit is in the second preset operating condition, the electronic control unit is updated according to the first update data.

17. The method according to claim 16, characterized in that When the electronic control unit is in the first preset operating condition, the electronic control unit can send and receive communication messages and perform fault diagnosis. When the electronic control unit is in the second preset operating condition, the electronic control unit cannot send and receive communication messages and / or perform fault diagnosis.

18. The method according to claim 16, characterized in that The method further comprises: When the updating of the electronic control unit is completed according to the first updating data, the electronic control unit is controlled to switch from the second preset operating condition to the first preset operating condition.

19. The method according to claim 18, characterized in that When the update of the electronic control unit is completed according to the first update data, controlling the electronic control unit to switch from the second preset operating condition to the first preset operating condition includes: When the updating is completed according to the first updating data, performing verification processing on the first updating data; When the verification process passes, the electronic control unit is controlled to switch from the second preset operating condition to the first preset operating condition.

20. The method according to claim 19, characterized in that The verification process includes at least one of data integrity verification processing, digital signature decryption processing, and software and hardware consistency check processing.

21. A vehicle control method, characterized in that: The method is applied to a server, the server being communicatively connected to a vehicle, and includes: When the vehicle is in an online state, first update data is sent to the vehicle, wherein when the vehicle is in an online state, an electronic control unit of the vehicle is updated according to the first update data.

22. The method according to claim 21, characterized in that The step of sending first update data to the vehicle when the vehicle is in a networked state includes: Get application version information of electronic control units in multiple vehicles; The first update data is sent to a target vehicle, wherein the target vehicle is a vehicle among the multiple vehicles, in which application version information of the electronic control unit is different from application version information corresponding to the first update data.

23. The method according to claim 21, characterized in that The first update data is determined according to an updated application program of the electronic control unit.

24. The method according to claim 23, wherein The updated application program of the electronic control unit corresponds to a plurality of program storage areas, and the method further includes: Filling unused address segments in the program storage area with data; When the data filling is completed, compression processing is performed on each of the program storage areas to determine the first update data.

25. The method according to claim 21, characterized in that The method further comprises: A configuration file corresponding to the first update data is stored.

26. An electronic device, characterized in that: The method comprises a memory and a processor, wherein a computer program is stored in the memory, and when the computer program is executed by the processor, the method according to any one of claims 1 to 20 is implemented.

27. An electronic device, characterized in that: The method comprises a memory and a processor, wherein a computer program is stored in the memory, and when the computer program is executed by the processor, the method according to any one of claims 21 to 25 is implemented.

28. A vehicle, characterized in that: The vehicle includes the apparatus of claim 26.

29. A server, characterized in that: The vehicle includes the apparatus of claim 27.

30. A computer-readable storage medium, characterized in that The computer-readable storage medium stores a computer program, and when the computer program is executed by one or more processors, the method according to any one of claims 1 to 25 is implemented.

31. A computer program product comprising a computer program / instructions, characterized in that When the computer program / instructions are executed by a processor, the method according to any one of claims 1 to 25 is implemented.