Wireless firmware updating and upgrading method and device and electronic equipment

By splitting the upgrade conditions into necessary and non-essential conditions, and determining that the vehicle can be upgraded when the non-essential ECU is abnormal, the problem of low accuracy of vehicle FOTA upgrade determination is solved, achieving more accurate upgrade judgment and solving ECU abnormalities. ability.

CN118708201APending Publication Date: 2024-09-27PATEO CONNECT (NANJING) CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410704821.7
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-05-31
Publication Date
2024-09-27

AI Technical Summary

Technical Problem

The vehicle FOTA upgrade determination method in the existing technology has low accuracy and cannot effectively distinguish between abnormal vehicle status and actual failure to meet the upgrade conditions, resulting in incorrect determination of the upgrade task.

Method used

Split the upgrade conditions into necessary conditions and non-essential conditions, and determine whether the vehicle meets each condition by obtaining ECU status data. When the ECU corresponding to the non-essential conditions is in an abnormal state, determine that the vehicle is in an upgradeable state, and use the FOTA upgrade task to solve the problem. ECU abnormality problem.

Benefits of technology

It improves the accuracy of vehicle upgrade judgment, avoids erroneous judgments caused by ECU abnormalities, and ensures that the vehicle can be upgraded by FOTA under necessary conditions.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118708201A
    Figure CN118708201A
Patent Text Reader

Abstract

The invention discloses a wireless firmware updating and upgrading method and device and electronic equipment, and belongs to the field of data processing. The FOTA upgrading method comprises the steps that under the condition that the FOTA service equipment determines that an FOTA upgrading task of a vehicle exists, upgrading conditions corresponding to the FOTA upgrading task and unit identification of an ECU corresponding to the upgrading conditions are obtained, and the upgrading conditions comprise necessary conditions and non-necessary conditions; sending a first detection task request of the FOTA upgrade task to the vehicle; receiving a first detection task response sent by the vehicle machine of the vehicle; when it is determined that the vehicle meets the necessary condition and it is determined that the vehicle does not meet the non-necessary condition, obtaining a target ECU state of a target ECU corresponding to the non-necessary condition; and when the state of the target ECU is an abnormal state and the target ECU is the upgrading object of the FOTA upgrading task, determining that the vehicle is in an upgradable state. The method can improve the judgment accuracy of vehicle upgrading.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application belongs to the field of data processing, and specifically relates to a wireless firmware update and upgrade method, device and electronic equipment. Background Art

[0002] The vehicle includes multiple Electronic Control Units (ECUs). The normal use of the vehicle is guaranteed by the mutual cooperation between the ECUs. With the development of automobile technology, it is necessary to perform wireless firmware updates (Firmware Over-The-Air, FOTA) on the vehicle to improve the vehicle's operating performance.

[0003] Before the FOTA upgrade, the FOTA service device needs to collect the current vehicle status of the vehicle through the ECU, so as to determine that the vehicle is in an upgradeable state and transmit the upgrade file to the vehicle when it detects that the current vehicle status of the vehicle meets the upgrade conditions. After receiving the upgrade file, the vehicle installs the upgrade file to complete the FOTA upgrade. Correspondingly, if the FOTA service device detects that the current vehicle status of the vehicle does not meet the upgrade conditions, it determines that the vehicle is in a state that cannot be upgraded and ends the FOTA upgrade. The current method of determining whether a vehicle can be upgraded has low accuracy. Summary of the invention

[0004] The FOTA upgrade method, device and electronic device provided in the embodiments of the present application can, to a certain extent, solve the problem of low accuracy of the current method for determining FOTA upgrades of vehicles.

[0005] In a first aspect, a FOTA upgrade method is provided, which is applied to a FOTA service device, and the method includes:

[0006] In the case where it is determined that there is a FOTA upgrade task for the vehicle, obtaining an upgrade condition corresponding to the FOTA upgrade task, searching for a unit identifier of an ECU corresponding to the upgrade condition, the ECU being used to provide target vehicle status data of the vehicle, the upgrade condition including necessary conditions and non-necessary conditions;

[0007] Generate and send a first detection task request for the FOTA upgrade task to the vehicle, the first detection task request is used to request target vehicle status data, and the first detection task request includes the unit identifier;

[0008] Receiving a first detection task response sent by a vehicle computer of the vehicle, the first detection task response including an ECU state of the ECU and target vehicle state data acquired by the vehicle computer through the ECU;

[0009] When it is determined according to the target vehicle state data that the vehicle satisfies the necessary condition, and when it is determined according to the target vehicle state data that the vehicle does not satisfy the non-essential condition, acquiring a target ECU state of the target ECU corresponding to the non-essential condition from the ECU state;

[0010] When the target ECU is in an abnormal state and the target ECU is an upgrade target of the FOTA upgrade task, it is determined that the vehicle is in an upgradeable state.

[0011] In a second aspect, a FOTA upgrade method is provided, which is applied to a vehicle computer of a vehicle, wherein the vehicle computer is connected to an ECU of the vehicle, and the ECU is used to provide vehicle status data of the vehicle; the method comprises:

[0012] Receive a first detection task request for a FOTA upgrade task sent by a FOTA service device, where the first detection task request includes a unit identifier of an electronic control unit ECU, where the ECU indicated by the unit identifier corresponds to an upgrade condition of the FOTA upgrade task, where the upgrade condition includes a necessary condition and a non-necessary condition;

[0013] Acquiring the ECU state of the ECU indicated by the unit identifier, and acquiring the target vehicle state data through the ECU indicated by the unit identifier;

[0014] Generate and send a first detection task response to the FOTA service device, so that the FOTA service device, when determining that the vehicle satisfies the necessary condition according to the target vehicle status data and determining that the vehicle does not satisfy the non-essential condition according to the target vehicle status data, obtains the target ECU state of the target ECU corresponding to the non-essential condition from the EUC state, and when the target ECU state is an abnormal state and the target ECU is an upgrade object of the FOTA upgrade task, determines that the vehicle is in an upgradeable state,

[0015] The vehicle status data provided by the target ECU is used to determine whether the vehicle satisfies the non-essential condition; the first detection task response includes the ECU status and the target vehicle status data.

[0016] In a third aspect, a FOTA upgrade device is provided, which is applied to a FOTA service device, and the device includes:

[0017] an acquisition module, configured to, when determining that there is a FOTA upgrade task for the vehicle, acquire an upgrade condition corresponding to the FOTA upgrade task, and search for a unit identifier of an ECU corresponding to the upgrade condition, the ECU being configured to provide vehicle status data of the vehicle, the upgrade condition including necessary conditions and non-necessary conditions;

[0018] A sending module, used for generating and sending a first detection task request for the FOTA upgrade task to the vehicle, wherein the first detection task request is used to request the vehicle status data, and the first detection task request includes the unit identifier;

[0019] A receiving module, configured to receive a first detection task response sent by a vehicle computer of the vehicle, wherein the first detection task response includes an ECU state of the ECU indicated by the unit identifier and target vehicle state data acquired by the vehicle computer through the ECU;

[0020] The acquisition module is further configured to acquire a target ECU state of a target ECU corresponding to the non-essential condition from the ECU state when it is determined according to the target vehicle state data that the vehicle satisfies the necessary condition and when it is determined according to the target vehicle state data that the vehicle does not satisfy the non-essential condition, wherein the vehicle state data provided by the target ECU is used to determine whether the vehicle satisfies the non-essential condition;

[0021] The determination module is used to determine that the vehicle is in an upgradeable state when the target ECU is in an abnormal state and the target ECU is an upgrade object of the FOTA upgrade task.

[0022] In a fourth aspect, a FOTA upgrade device is provided, which is applied to a vehicle computer of a vehicle, wherein the vehicle computer is connected to an ECU of the vehicle, and the ECU is used to provide vehicle status data of the vehicle; the device comprises:

[0023] A receiving module, configured to receive a first detection task request for a FOTA upgrade task sent by a FOTA service device, wherein the first detection task request includes a unit identifier of an electronic control unit ECU, wherein the ECU indicated by the unit identifier corresponds to an upgrade condition of the FOTA upgrade task, and the upgrade condition includes a necessary condition and a non-necessary condition;

[0024] An acquisition module, used to acquire the ECU state of the ECU indicated by the unit identifier, and acquire the target vehicle state data through the ECU indicated by the unit identifier;

[0025] a sending module, configured to generate and send a first detection task response to the FOTA service device, so that the FOTA service device, when determining that the vehicle satisfies the necessary condition according to the target vehicle status data and determining that the vehicle does not satisfy the non-essential condition according to the target vehicle status data, obtains the target ECU state of the target ECU corresponding to the non-essential condition from the EUC state, and when the target ECU state is an abnormal state and the target ECU is an upgrade object of the FOTA upgrade task, determines that the vehicle is in an upgradeable state,

[0026] The vehicle status data provided by the target ECU is used to determine whether the vehicle satisfies the non-essential condition; the first detection task response includes the ECU status and the target vehicle status data.

[0027] In a fifth aspect, an electronic device is provided, comprising: a processor and a memory; the memory is used to store computer programs; the processor is used to implement any method steps as described in the first aspect when executing the program stored in the memory; or, implement any method steps as described in the second aspect.

[0028] In a sixth aspect, a readable storage medium is provided, on which a program or instruction is stored. When the program or instruction is executed by a processor, the method steps described in any one of the first aspects are implemented; or, the method steps described in any one of the second aspects are implemented.

[0029] In a seventh aspect, a computer program product is provided, comprising a computer program, wherein when the computer program / instructions are executed by a processor, the computer program / instructions implement any of the method steps described in the first aspect; or, the computer program / instructions implement any of the method steps described in the second aspect.

[0030] In the FOTA upgrade method, device and electronic device provided by the embodiment of the present application, the FOTA service device can send a first detection task request to the vehicle when it is determined that there is a FOTA upgrade task for the vehicle. The first detection task request includes the unit identification of the ECU corresponding to the upgrade condition of the FOTA upgrade task. After receiving the first detection task request, the vehicle can send the ECU state and target vehicle state data of the ECU indicated by the unit identification to the FOTA service device, so that the FOTA service device determines that the vehicle meets the necessary conditions in the upgrade conditions according to the target vehicle state data, and determines that the vehicle does not meet the non-essential conditions in the upgrade conditions according to the target vehicle state data. , The target ECU state of the target ECU corresponding to the non-essential conditions is obtained from the ECU state, and then when the target ECU state is in an abnormal state and the target ECU is the upgrade object of the FOTA upgrade task, it is determined that the vehicle is in an upgradeable state.

[0031] In this technical solution, the upgrade conditions are divided into necessary conditions and non-essential conditions, so that when the vehicle meets the necessary conditions but does not meet the non-essential conditions, the ECU corresponding to the non-essential conditions can be used as the upgrade object of the FOTA upgrade task, and the reason why the vehicle does not meet the non-essential conditions can be determined to be because the ECU corresponding to the non-essential conditions is abnormal, and the FOTA upgrade task can solve the ECU abnormality problem with a certain probability. Therefore, the FOTA service device determines that the vehicle is in an upgradeable state so that the vehicle can be upgraded by FOTA. Compared with the related art, the technical solution of the present application can further determine the upgradeable situation, avoid the problem that the vehicle cannot be determined as upgradeable due to ECU abnormality, but the FOTA upgrade task can solve the abnormal scenario, thereby improving the accuracy of vehicle upgrade determination. BRIEF DESCRIPTION OF THE DRAWINGS

[0032] Figure 1 This is one of the implementation environment diagrams of the FOTA upgrade method provided in the embodiment of the present application;

[0033] Figure 2 This is one of the flow charts of the FOTA upgrade method provided in the embodiment of the present application;

[0034] Figure 3 This is the second flowchart of the FOTA upgrade method provided in the embodiment of the present application;

[0035] Figure 4 This is the third flowchart of the FOTA upgrade method provided in the embodiment of the present application;

[0036] Figure 5 This is the fourth flowchart of the FOTA upgrade method provided in the embodiment of the present application;

[0037] Figure 6 This is the fifth flowchart of the FOTA upgrade method provided in the embodiment of the present application;

[0038] Figure 7 This is one of the block diagrams of the FOTA upgrade device provided in the embodiment of the present application;

[0039] Figure 8 This is the second block diagram of the FOTA upgrade device provided in the embodiment of the present application. DETAILED DESCRIPTION

[0040] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.

[0041] The following, in conjunction with the accompanying drawings, describes in detail the FOTA upgrade method, device and electronic device provided in the embodiments of the present application through specific embodiments and their application scenarios.

[0042] The vehicle includes multiple Electronic Control Units (ECUs). The normal use of the vehicle is guaranteed by the mutual cooperation between the ECUs. With the development of automobile technology, it is necessary to perform wireless firmware updates (Firmware Over-The-Air, FOTA) on the vehicle to improve the vehicle's operating performance.

[0043] Before the FOTA upgrade, the FOTA service device needs to collect the current vehicle status of the vehicle through the ECU, so as to determine that the vehicle is in an upgradeable state and transmit the upgrade file to the vehicle when it detects that the current vehicle status of the vehicle meets the upgrade conditions. After receiving the upgrade file, the vehicle installs the upgrade file to complete the FOTA upgrade. Correspondingly, if the FOTA service device detects that the current vehicle status of the vehicle does not meet the upgrade conditions, it determines that the vehicle is in a state that cannot be upgraded and ends the FOTA upgrade.

[0044] However, the current vehicle status of the vehicle may not meet the upgrade conditions because of abnormal vehicle status collection, rather than the vehicle's own status not meeting the upgrade conditions. Specifically, it may be that the judgment data for the upgrade conditions has not been collected, or the content of the collected judgment data is abnormal. These abnormal situations may be due to abnormal problems with the ECU that provides the data. However, this FOTA upgrade may be the solution to the abnormal problems of the ECU. Therefore, the current method of determining whether a vehicle can be upgraded ignores the aforementioned situation, resulting in low judgment accuracy.

[0045] Please refer to Figure 1 , which shows a schematic diagram of the implementation environment of a FOTA upgrade method provided in an embodiment of the present application. Figure 1 As shown, the implementation environment includes: FOTA service device 101 and vehicle 102. Vehicle 102 includes a vehicle machine and multiple ECUs. Each ECU is used to provide vehicle status data of the vehicle. The vehicle status data provided by each ECU may be at least partially different.

[0046] Among them, the vehicle computer 102 can be connected to each ECU through at least one of the following connection methods. The connection method may include a controller area network bus (Controller Area Network, CAN), a serial peripheral interface (SerialPeripheral interface, SPI) bus, Ethernet, etc. In addition, the vehicle computer 102 and the FOTA service device 101 can be connected through a wired or wireless network. Optionally, the vehicle computer 102 and the FOTA service device 101 can communicate based on the Transmission Control Protocol (Transmission Control Protocol, TCP) or based on the Message Queuing Telemetry Transport (MessageQueuing Telemetry Transport, MQTT). For example, the FOTA service device 101 can be one or more servers, cloud servers or cloud server clusters, etc.

[0047] It should be noted that the number of vehicles in the implementation environment may be at least one, that is, the FOTA service device may communicate with the vehicle computer of at least one vehicle. Figure 1 Take the implementation environment including one vehicle as an example.

[0048] Please refer to Figure 2 , which shows a flow chart of a FOTA upgrade method provided by an embodiment of the present application. The FOTA upgrade method can be applied to Figure 1 It should be noted that, when there are at least two vehicles in the implementation environment, the FOTA service device executes the FOTA upgrade method provided in the embodiment of the present application on each vehicle to determine whether each vehicle is in an upgradeable state when there are at least two FOTA upgrade tasks for the vehicles. Figure 2 As shown, the FOTA upgrade method includes:

[0049] Step 201: When determining that there is a FOTA upgrade task for the vehicle, the FOTA service device obtains an upgrade condition corresponding to the FOTA upgrade task and searches for a unit identifier of the ECU corresponding to the upgrade condition.

[0050] Among them, the FOTA upgrade task may refer to the task of performing FOTA upgrade on the vehicle. The upgrade condition is used to determine whether the current state of the vehicle can perform FOTA upgrade. The ECU corresponding to the upgrade condition is used to provide the judgment data of the corresponding upgrade condition. Among them, the vehicle status data provided by the ECU corresponding to the upgrade condition can be used to determine whether the vehicle meets the upgrade condition.

[0051] As an example, the upgrade condition may be that the engine is in a stopped state. When the vehicle meets the upgrade condition, it is determined that the vehicle is not currently in a driving state / determined that the vehicle is in an unused state, and then it is determined that the FOTA upgrade task is in a safe execution environment and the vehicle is in an upgradeable state. Then, the FOTA service device can transmit the FOTA upgrade task to the vehicle in the upgradeable state, so that the vehicle can perform a FOTA upgrade.

[0052] In another exemplary embodiment, the upgrade condition is that the engine is in a stopped state. The ECU corresponding to the upgrade condition is the ECU of the engine. In another exemplary embodiment, the upgrade condition is that the vehicle is in a powered-on state. The ECU corresponding to the upgrade condition is the ECU of the vehicle power module.

[0053] In the embodiment of the present application, the upgrade conditions include: necessary conditions and non-essential conditions. Similarly, the ECU corresponding to the necessary conditions is used to provide the judgment data of the corresponding necessary conditions. The ECU corresponding to the non-essential conditions is used to provide the judgment data of the corresponding non-essential conditions. It is not difficult to understand that the vehicle status data provided by the ECU corresponding to the necessary conditions can be used to determine whether the vehicle meets the necessary conditions. The vehicle status data provided by the ECU corresponding to the non-essential conditions can be used to determine whether the vehicle meets the non-essential conditions.

[0054] Among them, the necessary condition refers to the condition that the vehicle must meet to perform the FOTA upgrade task. For example, if the vehicle is an electric vehicle, the necessary condition may be that the vehicle is powered on. If the vehicle is a gasoline vehicle, the necessary condition may be that the vehicle's engine is in the started state.

[0055] Non-essential conditions are relative to necessary conditions. Because the FOTA upgrade task may be a task to solve a certain ECU fault in the vehicle. Therefore, there is a situation where the ECU corresponding to the upgrade condition is the upgrade object of the FOTA upgrade task, and the upgrade object may not be able to provide vehicle status data. Therefore, non-essential conditions may be conditions that may not be met when the upgrade object of the FOTA upgrade task is in an abnormal state. Exemplarily, the upgrade object of the FOTA upgrade task includes the controller of the vehicle handbrake. The non-essential condition may be that the controller of the vehicle handbrake is in a state of controlling the handbrake to open. The non-essential condition indicates that if the controller of the vehicle handbrake is in an abnormal state, it can be determined that the vehicle is in an upgradeable state if the vehicle does not meet the non-essential condition. It is not difficult to understand that the FOTA service device can skip the judgment process of the non-essential condition when the controller of the vehicle handbrake is in an abnormal state, and does not check the current state of the controller of the vehicle handbrake.

[0056] In an optional implementation, the FOTA service device may store the upgrade conditions corresponding to the FOTA upgrade task, the unit identification of the ECU corresponding to the necessary conditions in the upgrade conditions, and the unit identification of the ECU corresponding to the non-necessary conditions. The unit identification of the ECU is used to uniquely identify the ECU.

[0057] When the FOTA service device determines that there is a FOTA upgrade task for the vehicle, it can obtain the upgrade conditions corresponding to the FOTA upgrade task and the unit identification of the ECU corresponding to the upgrade conditions from its own storage data. Of course, the FOTA service device can obtain the upgrade conditions corresponding to the FOTA upgrade task and the unit identification of the ECU corresponding to the upgrade conditions from a third-party device.

[0058] It should be noted that different FOTA upgrade tasks usually have different upgrade strategies and upgrade methods. As an example, the upgrade strategy of a FOTA upgrade task is to upgrade the vehicle when it is powered on; the upgrade strategy of another FOTA upgrade task is to upgrade the vehicle when it is powered off. As another example, the upgrade method of a FOTA upgrade task may be to upgrade using the CAN channel; the upgrade method of another FOTA upgrade task may be to upgrade using the SPI bus; and the upgrade method of another FOTA upgrade task may be to upgrade using Ethernet. Differences in upgrade strategies, upgrade methods, etc. may result in different vehicle environments on which the FOTA upgrade tasks depend. Therefore, the upgrade conditions of different FOTA upgrade tasks are usually different.

[0059] Step 202: The FOTA service device generates and sends a first detection task request for a FOTA upgrade task to the vehicle.

[0060] In an embodiment of the present application, the FOTA service device can generate a first detection task request for the FOTA upgrade task, and send the first detection task request to the vehicle's computer.

[0061] Among them, the first detection task request is used to request the target vehicle status data corresponding to the FOTA upgrade task. The target vehicle status data is the judgment data of the upgrade condition corresponding to the FOTA upgrade task. The first detection task request includes the unit identification of the ECU corresponding to the upgrade condition. The ECU indicated by the unit identification is used to provide the target vehicle status data of the vehicle.

[0062] Step 203: The vehicle computer obtains the ECU state of the ECU indicated by the unit identifier, and obtains the target vehicle state data through the ECU indicated by the unit identifier.

[0063] Optionally, after receiving the first detection task request of the FOTA upgrade task, the vehicle computer can parse the first detection task request and obtain the unit identification included therein. The vehicle computer obtains the ECU state of the ECU indicated by the unit identification, and obtains the target vehicle state data through the ECU indicated by the unit identification.

[0064] Exemplarily, the vehicle computer can generate an ECU data request and send the ECU data request to the ECU indicated by the unit identifier. When the ECU receives the ECU data request, it sends its own EUC status and target vehicle status data to the vehicle computer. Among them, the ECU data request is used to request the ECU status and target vehicle status data of the ECU. For example, the first detection task request includes multiple unit identifiers. The vehicle computer generates an ECU data request corresponding to each ECU indicated by the unit identifier. The ECU data request is used to request the ECU status of the ECU and the target vehicle status data that it needs to provide.

[0065] In an optional implementation, the process of the vehicle machine acquiring the ECU status of the ECU indicated by the unit identification may include the following steps 2031 to 2035.

[0066] In step 2031, the vehicle computer sends a unified diagnostic service version number request to the ECU indicated by the unit identifier in the first detection task request, so that the ECU sends a unified diagnostic service version number response to the vehicle computer.

[0067] Among them, the vehicle computer can determine the status of the ECU based on the UDS version number response returned by the ECU by sending a Unified Diagnostic Services (UDS) version number request to the ECU. The content of the UDS version number response can indicate the status of the ECU. Specifically, the ECU usually returns a negative response if it does not support the execution of the UDS request. And the ECU usually returns a timeout response when the execution of the UDS request times out. Therefore, both a negative response and a timeout response can indicate that the ECU status is abnormal.

[0068] In step 2032, the vehicle computer receives the UDS version number response sent by the ECU.

[0069] In step 2033, the vehicle computer obtains the software status of the software running on the ECU indicated by the unit identifier in the first detection task request.

[0070] Optionally, the vehicle computer can obtain the software status running on the ECU by executing the UDS 31 routine service. After obtaining the UDS version number response and software status of the ECU, the vehicle computer determines the status of the ECU according to the UDS version number response and the software status.

[0071] In step 2034, the vehicle computer determines that the ECU state of the ECU indicated by the unit identifier is an abnormal state when the ECU satisfies at least one of the following conditions: the UDS version number response is a negative response, the UDS version number response is a timeout response, and the software state is an abnormal state.

[0072] For example, the vehicle computer determines that the ECU state of the ECU is in an abnormal state when the UDS version number response of the ECU is a negative response, or the UDS version number response is a timeout response, or the software state is in an abnormal state.

[0073] In step 2035, the vehicle computer determines that the ECU state of the ECU is normal when the UDS version number response is not a negative response, the UDS version number response is not a timeout response, and the software state is normal.

[0074] It should be noted that steps 2031 to 2035 are the implementation process of the vehicle computer obtaining an ECU state. In the case where the first detection task request includes multiple unit identifiers, the vehicle computer can execute steps 2031 to 2035 for each ECU indicated by the unit identifier to obtain the state of the ECU.

[0075] Step 204: The vehicle computer generates and sends a first detection task response to the FOTA service device.

[0076] In the embodiment of the present application, the vehicle computer generates a first detection task response, which includes: the ECU state of the ECU indicated by the unit identifier, and the target vehicle state data of the ECU indicated by the unit identifier. The vehicle computer sends the first detection task response to the FOTA service device.

[0077] In the embodiment of the present application, after receiving the first detection task response sent by the vehicle computer, the FOTA service device obtains the target vehicle status data included in the first detection task response, determines whether the vehicle meets the necessary conditions according to the target vehicle status data, and determines whether the vehicle meets the non-essential conditions according to the target vehicle status data.

[0078] In the case where it is determined according to the target vehicle state data that the vehicle does not satisfy the necessary conditions, the vehicle is determined to be in a non-upgradeable state.

[0079] In a case where it is determined according to the target vehicle state data that the vehicle satisfies a necessary condition, and in a case where it is determined according to the target vehicle state data that the vehicle satisfies a non-necessary condition, it is determined that the vehicle is in an upgradeable state.

[0080] When it is determined according to the target vehicle state data that the vehicle satisfies the necessary condition, and when it is determined according to the target vehicle state data that the vehicle does not satisfy the non-necessary condition, the following step 205 is performed.

[0081] Step 205 , when the FOTA service device determines that the vehicle meets the necessary condition according to the target vehicle status data and determines that the vehicle does not meet the non-essential condition according to the target vehicle status data, the target ECU status of the target ECU corresponding to the non-essential condition is obtained from the ECU status.

[0082] Optionally, the FOTA service device obtains a target unit identifier of a target ECU corresponding to the non-essential condition when determining that the vehicle satisfies the necessary condition according to the target vehicle status data and when determining that the vehicle does not satisfy the non-essential condition according to the target vehicle status data. The target ECU state corresponding to the target unit identifier is obtained from the ECU state included in the first detection task response.

[0083] Step 206 : When the target ECU is in an abnormal state and the target ECU is an upgrade target of the FOTA upgrade task, the FOTA service device determines that the vehicle is in an upgradeable state.

[0084] Optionally, after acquiring the state of the target ECU, the FOTA service device can determine whether the state of the target ECU is in an abnormal state. If so, it is determined whether the target ECU is the upgrade object of the FOTA upgrade task. If so, it is determined that the vehicle is in an upgradeable state. That is, when the state of the target ECU is in an abnormal state and the target ECU is the upgrade object of the FOTA upgrade task, it indicates that the reason why the vehicle does not meet the non-essential conditions is because the ECU corresponding to the non-essential conditions is abnormal, and the FOTA upgrade task can solve the ECU abnormality problem with a certain probability. Therefore, the FOTA service device can determine that the vehicle is in an upgradeable state so that the vehicle can be upgraded by FOTA.

[0085] In an optional implementation, the FOTA service device may determine that the vehicle is in a non-upgradeable state when the target ECU state is in a normal state. In another optional implementation, the FOTA service device may determine that the vehicle is in a non-upgradeable state when the target ECU state is in an abnormal state and the target ECU is not an upgrade object of the FOTA upgrade task.

[0086] Among them, when the FOTA service device determines that it is in an upgradeable state, it can send a FOTA upgrade task to the vehicle so that the vehicle can perform a FOTA upgrade. When it is determined that it is in a non-upgradeable state, the step of sending a FOTA upgrade task to the vehicle may not be performed. Optionally, the FOTA service device may send an alarm message to the vehicle when it is determined that it is in a non-upgradeable state, so that the vehicle can receive and output the alarm message. The alarm message may include the reason why the vehicle cannot be upgraded, so as to alert the vehicle user that his vehicle is currently in a non-upgradeable state.

[0087] For example, the FOTA service device also stores the object identifier of the upgrade object of the FOTA upgrade task. After obtaining the state of the target ECU, the FOTA service device determines whether the state of the target ECU is an abnormal state. If so, the object identifier of the upgrade object of the FOTA upgrade task is obtained, and it is determined whether the object identifier includes the target unit identifier of the target ECU to determine whether the target ECU is the upgrade object of the FOTA upgrade task. If the object identifier of the upgrade object includes the target unit identifier, indicating that the target ECU is the upgrade object of the FOTA upgrade task, the FOTA service device determines that the vehicle is in an upgradeable state. If the object identifier of the upgrade object does not include the target unit identifier, indicating that the target ECU is not the upgrade object of the FOTA upgrade task, the FOTA service device determines that the vehicle is in a non-upgradeable state.

[0088] It should be noted that, in some embodiments, after obtaining the state of the target ECU, the FOTA service device may first determine whether the target ECU is the upgrade object of the FOTA upgrade task. Then, if the target ECU is the upgrade object of the FOTA upgrade task, it is determined whether the state of the target ECU is abnormal. Thus, if the state of the target ECU is abnormal, it is determined that the vehicle is in an upgradeable state; if the state of the target ECU is normal, it is determined that the vehicle is in a non-upgradeable state.

[0089] In summary, in the FOTA upgrade method provided in the embodiment of the present application, the FOTA service device can send a first detection task request to the vehicle when it is determined that there is a FOTA upgrade task for the vehicle. The first detection task request includes the unit identifier of the ECU corresponding to the upgrade condition of the FOTA upgrade task. After receiving the first detection task request, the vehicle can send the ECU state and target vehicle state data of the ECU indicated by the unit identifier to the FOTA service device, so that the FOTA service device determines that the vehicle meets the necessary conditions in the upgrade conditions according to the target vehicle state data, and determines that the vehicle does not meet the non-essential conditions in the upgrade conditions according to the target vehicle state data. , Obtain the target ECU state of the target ECU corresponding to the non-essential conditions from the ECU state, and then determine that the target ECU state is in an abnormal state, and the target ECU is the upgrade object of the FOTA upgrade task. In the case, it is determined that the vehicle is in an upgradeable state.

[0090] In this technical solution, the upgrade conditions are divided into necessary conditions and non-essential conditions, so that when the vehicle meets the necessary conditions but does not meet the non-essential conditions, the ECU corresponding to the non-essential conditions can be used as the upgrade object of the FOTA upgrade task, and the reason why the vehicle does not meet the non-essential conditions can be determined to be because the ECU corresponding to the non-essential conditions is abnormal, and the FOTA upgrade task can solve the ECU abnormality problem with a certain probability. Therefore, the FOTA service device determines that the vehicle is in an upgradeable state so that the vehicle can be upgraded by FOTA. Compared with the related art, the technical solution of the present application can further determine the upgradeable situation, avoid the problem that the vehicle cannot be determined as upgradeable due to ECU abnormality, but the FOTA upgrade task can solve the abnormal scenario, thereby improving the accuracy of vehicle upgrade determination.

[0091] Please refer to Figure 3 , which shows a flowchart of another FOTA upgrade method provided by an embodiment of the present application. The FOTA upgrade method can be applied to Figure 1 It should be noted that, when there are at least two vehicles in the implementation environment, the FOTA service device executes the FOTA upgrade method provided in the embodiment of the present application on each vehicle to determine whether each vehicle is in an upgradeable state when there are at least two FOTA upgrade tasks for the vehicles. Figure 3 As shown, the FOTA upgrade method includes:

[0092] Step 301: When determining that there is a FOTA upgrade task for the vehicle, the FOTA service device obtains an upgrade condition corresponding to the FOTA upgrade task and searches for a unit identifier of the ECU corresponding to the upgrade condition.

[0093] The explanation and implementation of this step can refer to the explanation and implementation of step 201 in the aforementioned embodiment, and will not be elaborated in detail in the embodiment of the present application.

[0094] Step 302: The FOTA service device generates and sends a first detection task request for a FOTA upgrade task to the vehicle.

[0095] The explanation and implementation of this step can refer to the explanation and implementation of step 202 in the aforementioned embodiment, and will not be elaborated in detail in the embodiment of the present application.

[0096] Step 303: The vehicle computer obtains the ECU state of the ECU indicated by the unit identifier, and obtains the target vehicle state data through the ECU indicated by the unit identifier.

[0097] The explanation and implementation of this step can refer to the explanation and implementation of step 203 in the aforementioned embodiment, and will not be elaborated in detail in the embodiment of the present application.

[0098] Step 304: The vehicle computer generates and sends a first detection task response to the FOTA service device.

[0099] The explanation and implementation of this step can refer to the explanation and implementation of step 204 in the aforementioned embodiment, and will not be elaborated in detail in the embodiment of the present application.

[0100] It should be noted that, optionally, a non-essential condition may also be a condition that can be indirectly determined whether it is satisfied through an auxiliary condition. That is, a non-essential condition may also correspond to an auxiliary condition. The judgment data of the auxiliary condition is different from the judgment data of the non-essential condition, but the vehicle state represented by the vehicle state data that satisfies the auxiliary condition is the same as the vehicle state represented by the vehicle state data that satisfies the non-essential condition. Exemplarily, the non-essential condition is that the gear position of the vehicle is neutral. The auxiliary condition corresponding to the non-essential condition may include that the handbrake is in the braking state and the vehicle speed is 0. When the vehicle satisfies the auxiliary condition, the vehicle satisfies the non-essential condition.

[0101] Based on this, optionally, after receiving the first detection task response sent by the vehicle computer, the FOTA service device obtains the target vehicle status data included in the first detection task response, determines whether the vehicle meets the necessary conditions according to the target vehicle status data, and determines whether the vehicle meets the non-essential conditions according to the target vehicle status data.

[0102] When it is determined according to the target vehicle state data that the vehicle does not meet the necessary conditions, step 315 is executed.

[0103] When it is determined according to the target vehicle state data that the vehicle satisfies the necessary condition, and when it is determined according to the target vehicle state data that the vehicle satisfies the non-necessary condition, step 316 is executed.

[0104] When it is determined according to the target vehicle state data that the vehicle satisfies the necessary condition, and when it is determined according to the target vehicle state data that the vehicle does not satisfy the non-necessary condition, the following step 305 is performed.

[0105] Step 305 : When the FOTA service device determines that the vehicle meets the necessary condition according to the target vehicle status data and that the vehicle does not meet the non-necessary condition according to the target vehicle status data, the target ECU status of the target ECU corresponding to the non-necessary condition is obtained from the ECU status.

[0106] The explanation and implementation of this step can refer to the explanation and implementation of step 205 in the aforementioned embodiment, and will not be elaborated in detail in the embodiment of the present application.

[0107] It should be noted that, optionally, after acquiring the target ECU state, the FOTA service device may determine whether the target ECU state is an abnormal state.

[0108] When the target ECU is in a normal state, the FOTA service device determines that the vehicle is in a non-upgradeable state.

[0109] When the target ECU is in an abnormal state, the FOTA service device determines whether the target ECU is an upgrade target of the FOTA upgrade task. If the target ECU is an upgrade target of the FOTA upgrade task, step 306 is executed. If the target ECU is not an upgrade target of the FOTA upgrade task, step 307 is executed.

[0110] Step 306 : When the target ECU is in an abnormal state and the target ECU is an upgrade target of the FOTA upgrade task, the FOTA service device determines that the vehicle is in an upgradeable state.

[0111] The explanation and implementation of this step can refer to the explanation and implementation of step 206 in the aforementioned embodiment, which will not be elaborated in the embodiment of the present application.

[0112] Step 307 : When the target ECU is in an abnormal state and the target ECU is not an upgrade target, the FOTA service device obtains auxiliary conditions corresponding to the non-essential conditions.

[0113] Among them, when the target ECU state is abnormal and the target ECU is not the upgrade object, it indicates that the TOTA upgrade task is unlikely to solve the problem of abnormal target ECU state. Therefore, when the target ECU state is abnormal, the FOTA service device cannot obtain the target vehicle state data through the abnormal ECU to determine whether the vehicle meets the non-essential conditions. In this case, the FOTA service device can choose to use auxiliary conditions to assist the FOTA service device in determining whether the vehicle meets the non-essential conditions.

[0114] Optionally, the FOTA service device may store non-essential conditions, auxiliary conditions, and the correspondence between the non-essential conditions and the auxiliary conditions. The FOTA service device determines the auxiliary condition corresponding to the non-essential condition not satisfied by the vehicle according to the correspondence between the non-essential conditions and the auxiliary conditions, and obtains the corresponding auxiliary condition.

[0115] Further optionally, after acquiring the auxiliary condition, the FOTA service device may also determine whether the target vehicle state data includes the first vehicle state data. The first vehicle state data is the judgment data of the auxiliary condition. That is, the first vehicle state data is used to determine whether the vehicle meets the auxiliary condition.

[0116] When the target vehicle state data includes the first vehicle state data, the FOTA service device determines whether the vehicle meets the auxiliary condition according to the first vehicle state data. If the vehicle meets the auxiliary condition, step 308 is executed; if the vehicle does not meet the auxiliary condition, step 309 is executed.

[0117] When the target vehicle status data does not include the first vehicle status data, the FOTA service device may execute steps 310 to 314 .

[0118] In an optional implementation, the FOTA service device can obtain the first ECU corresponding to the auxiliary condition, and the first ECU is used to provide the first vehicle status data. The FOTA service device determines whether the ECU corresponding to the upgrade condition includes the first ECU to determine whether the target vehicle status data includes the first vehicle status data. In the case where the ECU corresponding to the upgrade condition includes the first ECU, it indicates that the target vehicle status data includes the first vehicle status data, and the FOTA service device determines whether the vehicle meets the auxiliary condition based on the first vehicle status data. In the case where the ECU corresponding to the upgrade condition does not include the first ECU, it indicates that the target vehicle status data does not include the first vehicle status data, and the FOTA service device executes steps 310 to 314. It should be noted that, similarly, the FOTA service device can store the ECU corresponding to the auxiliary condition, or the FOTA service device can read the ECU corresponding to the auxiliary condition from a third-party device.

[0119] In another optional implementation, the FOTA service device can also obtain the first ECU corresponding to the auxiliary condition and determine the first vehicle status data provided by the first ECU. The FOTA service device directly determines whether the target vehicle status data includes the first vehicle status data, so as to determine whether the vehicle meets the auxiliary condition according to the first vehicle status data when the target vehicle status data includes the first vehicle status data. When the target vehicle status data does not include the first vehicle status data, execute steps 310 to 314.

[0120] Step 308: The FOTA service device determines that the vehicle is in an upgradeable state when the target vehicle state data includes the first vehicle state data and it is determined according to the first vehicle state data that the vehicle satisfies the auxiliary condition.

[0121] Wherein, when the target vehicle state data includes the first vehicle state data, and it is determined according to the first vehicle state data that the vehicle satisfies the auxiliary condition, it indicates that the vehicle satisfies the necessary condition and the non-necessary condition. The FOTA service device determines that the vehicle is in an upgradeable state.

[0122] Step 309 : When the target vehicle status data includes the first vehicle status data and it is determined according to the first vehicle status data that the vehicle does not meet the auxiliary condition, the FOTA service device determines that the vehicle is in a non-upgradeable state.

[0123] Wherein, when the target vehicle status data includes the first vehicle status data, and it is determined according to the first vehicle status data that the vehicle does not meet the auxiliary condition, it indicates that the vehicle meets the necessary condition but does not meet the non-essential condition, and the ECU corresponding to the non-essential condition is not an upgrade object of the FOTA upgrade task. The FOTA service device determines that the vehicle is in a non-upgradeable state.

[0124] Step 310: When the target vehicle status data does not include the first vehicle status data, the FOTA service device generates and sends a second detection task request to the vehicle computer.

[0125] In an embodiment of the present application, the FOTA service device can generate a second detection task request and send the second detection task request to the vehicle's computer when the target vehicle status data does not include the first vehicle status data.

[0126] The second detection task request is used to request the first vehicle status data of the vehicle. The first vehicle status data is the judgment data of the auxiliary condition. The second detection task request includes the unit identification of the ECU corresponding to the auxiliary condition. The ECU indicated by the unit identification is used to provide the first vehicle status data of the vehicle.

[0127] Step 311: The vehicle computer obtains first vehicle status data.

[0128] Optionally, after receiving the second detection task request, the vehicle computer may parse the second detection task request to obtain the unit identifier included therein, and the vehicle computer obtains the first vehicle status data through the ECU indicated by the unit identifier.

[0129] Exemplarily, the vehicle computer may generate an ECU data request and send the ECU data request to the ECU indicated by the unit identifier included in the second detection task request. Upon receiving the ECU data request, the ECU sends the first vehicle status data to the vehicle computer.

[0130] Step 312: The vehicle computer generates and sends a second detection task response to the FOTA service device.

[0131] In the embodiment of the present application, the vehicle computer generates a second detection task response, the second detection task response including: the first vehicle state data of the ECU indicated by the unit identifier in the second detection task request. The vehicle computer sends the second detection task response to the FOTA service device.

[0132] Step 313: When the FOTA service device determines that the vehicle meets the auxiliary condition according to the first vehicle status data, the vehicle is in an upgradeable state.

[0133] Optionally, after receiving the second detection task response, the FOTA service device can parse the second detection task response and obtain the first vehicle status data included therein. Determine whether the vehicle meets the auxiliary condition based on the first vehicle status data. If so, it indicates that the vehicle meets the necessary conditions and non-essential conditions. The FOTA service device determines that the vehicle is in an upgradeable state. If not, execute step 314.

[0134] Step 314 : When the FOTA service device determines that the vehicle does not meet the auxiliary condition according to the first vehicle status data, it determines that the vehicle is in a non-upgradeable state.

[0135] Wherein, when it is determined according to the first vehicle status data that the vehicle does not meet the auxiliary condition, it indicates that the vehicle meets the necessary condition but does not meet the non-essential condition, and the ECU corresponding to the non-essential condition is not an upgrade object of the FOTA upgrade task. The FOTA service device determines that the vehicle is in a non-upgradeable state.

[0136] Step 315 : When the FOTA service device determines that the vehicle does not meet the necessary conditions according to the first vehicle status data, it determines that the vehicle is in a non-upgradeable state.

[0137] Step 316: When the FOTA service device determines that the vehicle satisfies necessary conditions according to the target vehicle status data and that the vehicle satisfies non-necessary conditions according to the target vehicle status data, the FOTA service device determines that the vehicle is in an upgradeable state.

[0138] In the embodiment of the present application, the upgrade conditions are divided into necessary conditions and non-essential conditions, so that when the vehicle meets the necessary conditions but does not meet the non-essential conditions, the ECU corresponding to the non-essential conditions can be determined to be in an abnormal state, and the ECU corresponding to the non-essential conditions is the upgrade object of the FOTA upgrade task. The reason why the vehicle does not meet the non-essential conditions is because the ECU corresponding to the non-essential conditions is abnormal, and the FOTA upgrade task can solve the ECU abnormality problem with a certain probability. Therefore, the FOTA service device determines that the vehicle is in an upgradeable state so that the vehicle can be upgraded by FOTA. Compared with the related art, the technical solution of the present application can further determine the upgradeable situation, avoid the problem that the vehicle cannot be determined as upgradeable due to ECU abnormality, but the FOTA upgrade task can solve the abnormal scenario, thereby improving the accuracy of vehicle upgrade determination.

[0139] Furthermore, since the vehicle state represented by the vehicle state data that satisfies the auxiliary condition is the same as the vehicle state represented by the vehicle state data that satisfies the non-essential condition, the non-essential condition and its corresponding auxiliary condition can verify the same vehicle state. In this way, when the ECU corresponding to the non-essential condition is in an abnormal state and the ECU is not an upgrade object, it is possible to indirectly determine whether the vehicle is a non-essential condition by determining whether the vehicle satisfies the auxiliary condition corresponding to the non-essential condition. Thus, based on the determination result of whether the vehicle satisfies the auxiliary condition, it is determined whether the vehicle is in an upgradeable state, further improving the determination accuracy of vehicle upgrades.

[0140] In some embodiments of the present application, there are multiple necessary conditions, multiple non-essential conditions, and multiple auxiliary conditions corresponding to any non-essential condition.

[0141] Based on this, Figure 4 As shown, the FOTA service device can determine that the vehicle is in a non-upgradeable state when it is determined based on the target vehicle status data that the vehicle does not meet any necessary conditions.

[0142] In the case where it is determined according to the target vehicle state data that the vehicle satisfies all necessary conditions, and in the case where it is determined according to the target vehicle state data that the vehicle satisfies all non-essential conditions, it is determined that the vehicle is in an upgradeable state.

[0143] When it is determined based on the target vehicle status data that the vehicle meets all necessary conditions, it is determined based on the target vehicle status data that the vehicle has unsatisfied non-essential conditions, the ECUs corresponding to the unsatisfied non-essential conditions are in an abnormal state, and the ECUs are all upgrade objects of the FOTA upgrade task, it is determined that the vehicle is in an upgradeable state.

[0144] When it is determined according to the target vehicle status data that the vehicle meets all necessary conditions, it is determined according to the target vehicle status data that the vehicle has unsatisfied non-essential conditions, the ECU corresponding to the unsatisfied non-essential conditions is not an upgrade object, and it is determined according to the first vehicle status data that the vehicle meets all auxiliary conditions corresponding to the non-essential conditions, the vehicle is determined to be in an upgradeable state.

[0145] When it is determined according to the target vehicle status data that the vehicle satisfies all necessary conditions, it is determined according to the target vehicle status data that the vehicle has unsatisfied non-essential conditions, the ECU corresponding to the unsatisfied non-essential conditions is not an upgrade object, and it is determined according to the first vehicle status data that the vehicle does not satisfy any auxiliary conditions corresponding to the non-essential conditions, the vehicle is determined to be in a non-upgradeable state.

[0146] In summary, in the FOTA upgrade method provided in the embodiment of the present application, the FOTA service device can send a first detection task request to the vehicle when it is determined that there is a FOTA upgrade task for the vehicle. The first detection task request includes the unit identifier of the ECU corresponding to the upgrade condition of the FOTA upgrade task. After receiving the first detection task request, the vehicle can send the ECU state and target vehicle state data of the ECU indicated by the unit identifier to the FOTA service device, so that the FOTA service device determines that the vehicle meets the necessary conditions in the upgrade conditions according to the target vehicle state data, and determines that the vehicle does not meet the non-essential conditions in the upgrade conditions according to the target vehicle state data. , Obtain the target ECU state of the target ECU corresponding to the non-essential conditions from the ECU state, and then determine that the target ECU state is in an abnormal state, and the target ECU is the upgrade object of the FOTA upgrade task. In the case, it is determined that the vehicle is in an upgradeable state.

[0147] In this technical solution, the upgrade conditions are divided into necessary conditions and non-essential conditions, so that when the vehicle meets the necessary conditions but does not meet the non-essential conditions, the ECU corresponding to the non-essential conditions can be used as the upgrade object of the FOTA upgrade task, and the reason why the vehicle does not meet the non-essential conditions can be determined to be because the ECU corresponding to the non-essential conditions is abnormal, and the FOTA upgrade task can solve the ECU abnormality problem with a certain probability. Therefore, the FOTA service device determines that the vehicle is in an upgradeable state so that the vehicle can be upgraded by FOTA. Compared with the related art, the technical solution of the present application can further determine the upgradeable situation, avoid the problem that the vehicle cannot be determined as upgradeable due to ECU abnormality, but the FOTA upgrade task can solve the abnormal scenario, thereby improving the accuracy of vehicle upgrade determination.

[0148] Please refer to Figure 5 , which shows a flow chart of a FOTA upgrade method provided by an embodiment of the present application. The FOTA upgrade method can be applied to Figure 1 The implementation environment shown is executed by the FOTA service device. It should be noted that when there are at least two vehicles in the implementation environment, the FOTA service device executes the FOTA upgrade method provided in the embodiment of the present application on each vehicle to determine whether each vehicle is in an upgradeable state when there are at least two vehicles' FOTA upgrade tasks. Figure 5 As shown, the FOTA upgrade method includes:

[0149] Step 501: When it is determined that there is a FOTA upgrade task for the vehicle, an upgrade condition corresponding to the FOTA upgrade task is obtained, and a unit identifier of an electronic control unit ECU corresponding to the upgrade condition is searched.

[0150] The ECU is used to provide target vehicle status data of the vehicle; the upgrade conditions include necessary conditions and non-necessary conditions.

[0151] Step 502: Generate and send a first detection task request for a FOTA upgrade task to the vehicle. The first detection task request includes a unit identifier.

[0152] The first detection task request is used to request target vehicle status data.

[0153] Step 503: Receive a first detection task response sent by the vehicle computer. The first detection task response includes the ECU state of the ECU and the target vehicle state data obtained by the vehicle computer through the ECU.

[0154] Step 504: when it is determined according to the target vehicle state data that the vehicle satisfies the necessary condition and when it is determined according to the target vehicle state data that the vehicle does not satisfy the non-necessary condition, a target ECU state of the target ECU corresponding to the non-necessary condition is obtained from the ECU state.

[0155] Step 505: When the target ECU is in an abnormal state and the target ECU is an upgrade target of the FOTA upgrade task, determine that the vehicle is in an upgradeable state.

[0156] Optionally, the FOTA upgrade method further includes:

[0157] When the target ECU is in an abnormal state and the target ECU is not an upgrade target, an auxiliary condition corresponding to the non-essential condition is obtained, the judgment data of the auxiliary condition is different from the judgment data of the non-essential condition, and the vehicle state represented by the vehicle state data satisfying the auxiliary condition is the same as the vehicle state represented by the vehicle state data satisfying the non-essential condition;

[0158] When the target vehicle state data includes first vehicle state data, and when it is determined that the vehicle satisfies the assistance condition according to the first vehicle state data, it is determined that the vehicle is in an upgradeable state.

[0159] Optionally, the FOTA upgrade method further includes:

[0160] In the case where the target vehicle status data does not include the first vehicle status data, generating and sending a second detection task request to the vehicle computer so that the vehicle computer obtains the first vehicle status data, generating and sending a second detection task response to the FOTA service device, the second detection task response includes the first vehicle status data, and the second detection task request is used to request the first vehicle status data;

[0161] receiving a second detection task response;

[0162] When it is determined according to the first vehicle status data that the vehicle satisfies the assistance condition, it is determined that the vehicle is in an upgradeable state.

[0163] Optionally, there are multiple necessary conditions. There are multiple non-essential conditions. There are multiple auxiliary conditions corresponding to any non-essential condition. The FOTA upgrade method also includes:

[0164] Determining that the vehicle is in an upgradeable state when it is determined according to the target vehicle state data that the vehicle satisfies all necessary conditions and when it is determined according to the target vehicle state data that the vehicle satisfies all non-essential conditions;

[0165] When it is determined according to the target vehicle state data that the vehicle does not satisfy any necessary condition, it is determined that the vehicle is in a non-upgradeable state.

[0166] When it is determined according to the first vehicle status data that the vehicle does not satisfy any auxiliary condition, it is determined that the vehicle is in a non-upgradeable state.

[0167] In summary, in the FOTA upgrade method provided in the embodiment of the present application, the FOTA service device can send a first detection task request to the vehicle when it is determined that there is a FOTA upgrade task for the vehicle. The first detection task request includes the unit identifier of the ECU corresponding to the upgrade condition of the FOTA upgrade task. After receiving the first detection task request, the vehicle can send the ECU state and target vehicle state data of the ECU indicated by the unit identifier to the FOTA service device, so that the FOTA service device determines that the vehicle meets the necessary conditions in the upgrade conditions according to the target vehicle state data, and determines that the vehicle does not meet the non-essential conditions in the upgrade conditions according to the target vehicle state data. , Obtain the target ECU state of the target ECU corresponding to the non-essential conditions from the ECU state, and then determine that the target ECU state is in an abnormal state, and the target ECU is the upgrade object of the FOTA upgrade task. In the case, it is determined that the vehicle is in an upgradeable state.

[0168] In this technical solution, the upgrade conditions are divided into necessary conditions and non-essential conditions, so that when the vehicle meets the necessary conditions but does not meet the non-essential conditions, the ECU corresponding to the non-essential conditions can be used as the upgrade object of the FOTA upgrade task, and the reason why the vehicle does not meet the non-essential conditions can be determined to be because the ECU corresponding to the non-essential conditions is abnormal, and the FOTA upgrade task can solve the ECU abnormality problem with a certain probability. Therefore, the FOTA service device determines that the vehicle is in an upgradeable state so that the vehicle can be upgraded by FOTA. Compared with the related art, the technical solution of the present application can further determine the upgradeable situation, avoid the problem that the vehicle cannot be determined as upgradeable due to ECU abnormality, but the FOTA upgrade task can solve the abnormal scenario, thereby improving the accuracy of vehicle upgrade determination.

[0169] Please refer to Figure 6 , which shows a flow chart of a FOTA upgrade method provided by an embodiment of the present application. The FOTA upgrade method can be applied to Figure 1 The implementation environment shown is executed by the vehicle computer. It should be noted that when there are at least two vehicles in the implementation environment, the FOTA service device executes the FOTA upgrade method provided in the embodiment of the present application on each vehicle to determine whether each vehicle is in an upgradeable state when there are at least two vehicles' FOTA upgrade tasks. Figure 6 As shown, the FOTA upgrade method includes:

[0170] Step 601: Receive a first detection task request for a FOTA upgrade task sent by a FOTA service device. The first detection task request includes a unit identifier of an electronic control unit ECU. The ECU indicated by the unit identifier corresponds to an upgrade condition of the FOTA upgrade task. The upgrade condition includes a necessary condition and a non-necessary condition.

[0171] Step 602: Acquire the ECU state of the ECU indicated by the unit identifier, and acquire the target vehicle state data through the ECU indicated by the unit identifier.

[0172] Step 603, generate and send a first detection task response to the FOTA service device, so that when the FOTA service device determines that the vehicle meets the necessary conditions based on the target vehicle status data, and determines that the vehicle does not meet the non-essential conditions based on the target vehicle status data, the target ECU state of the target ECU corresponding to the non-essential conditions is obtained from the EUC state, and when the target ECU state is an abnormal state and the target ECU is the upgrade object of the FOTA upgrade task, it is determined that the vehicle is in an upgradeable state.

[0173] Among them, the vehicle status data provided by the target ECU is used to determine whether the vehicle meets the non-essential conditions; the first detection task response includes the ECU status and the target vehicle status data.

[0174] Optionally, the FOTA upgrade method further includes:

[0175] receiving a second detection task request sent by the FOTA service device when the target vehicle status data does not include the first vehicle status data, the first vehicle status data being used to determine whether the vehicle satisfies an auxiliary condition corresponding to the non-essential condition, the auxiliary condition being data acquired by the FOTA service device when the target ECU is in an abnormal state and the target ECU is not an upgrade target;

[0176] Acquiring first vehicle status data;

[0177] Generate and send a second detection task response including the first vehicle status data to the FOTA service device, so that the FOTA service device determines that the vehicle is in an upgradeable state when the vehicle satisfies the auxiliary condition according to the first vehicle status data,

[0178] The judgment data of the auxiliary condition is different from the judgment data of the non-essential condition, and the vehicle state represented by the vehicle state data satisfying the auxiliary condition is the same as the vehicle state represented by the vehicle state data satisfying the non-essential condition.

[0179] Optionally, the process of obtaining the ECU state of the ECU indicated by the unit identification may include:

[0180] Sending a unified diagnostic service UDS version number request to the ECU indicated by the unit identifier, so that the ECU indicated by the unit identifier sends a UDS version number response to the vehicle computer;

[0181] The UDS version number response sent by the ECU indicated by the receiving unit identification;

[0182] Get the software status of the software running on the ECU indicated by the unit identification;

[0183] When at least one of the following conditions is met: the UDS version number response is a negative response, the UDS version number response is a timeout response, and the software state is an abnormal state, determining that the ECU state of the ECU indicated by the unit identifier is an abnormal state;

[0184] When the UDS version number response is not a negative response, the UDS version number response is not a timeout response, and the software status is a normal state, it is determined that the ECU status of the ECU indicated by the unit identifier is a normal state.

[0185] In summary, in the FOTA upgrade method provided in the embodiment of the present application, the FOTA service device can send a first detection task request to the vehicle when it is determined that there is a FOTA upgrade task for the vehicle. The first detection task request includes the unit identifier of the ECU corresponding to the upgrade condition of the FOTA upgrade task. After receiving the first detection task request, the vehicle can send the ECU state and target vehicle state data of the ECU indicated by the unit identifier to the FOTA service device, so that the FOTA service device determines that the vehicle meets the necessary conditions in the upgrade conditions according to the target vehicle state data, and determines that the vehicle does not meet the non-essential conditions in the upgrade conditions according to the target vehicle state data. , Obtain the target ECU state of the target ECU corresponding to the non-essential conditions from the ECU state, and then determine that the target ECU state is in an abnormal state, and the target ECU is the upgrade object of the FOTA upgrade task. In the case, it is determined that the vehicle is in an upgradeable state.

[0186] In this technical solution, the upgrade conditions are divided into necessary conditions and non-essential conditions, so that when the vehicle meets the necessary conditions but does not meet the non-essential conditions, the ECU corresponding to the non-essential conditions can be used as the upgrade object of the FOTA upgrade task, and the reason why the vehicle does not meet the non-essential conditions can be determined to be because the ECU corresponding to the non-essential conditions is abnormal, and the FOTA upgrade task can solve the ECU abnormality problem with a certain probability. Therefore, the FOTA service device determines that the vehicle is in an upgradeable state so that the vehicle can be upgraded by FOTA. Compared with the related art, the technical solution of the present application can further determine the upgradeable situation, avoid the problem that the vehicle cannot be determined as upgradeable due to ECU abnormality, but the FOTA upgrade task can solve the abnormal scenario, thereby improving the accuracy of vehicle upgrade determination.

[0187] Please refer to Figure 7 , which shows a block diagram of a FOTA upgrade device provided in an embodiment of the present application. The FOTA upgrade device can be set in a FOTA service device. Figure 7 As shown, the FOTA upgrade device 700 includes:

[0188] The acquisition module 701 is used to obtain the upgrade conditions corresponding to the FOTA upgrade task and find the unit identification of the electronic control unit ECU corresponding to the upgrade condition when it is determined that there is a FOTA upgrade task for the vehicle. The ECU is used to provide the target vehicle status data of the vehicle; the upgrade condition includes necessary conditions and non-necessary conditions.

[0189] The sending module 702 is used to generate and send a first detection task request for a FOTA upgrade task to the vehicle. The first detection task request includes a unit identifier. The first detection task request is used to request target vehicle status data.

[0190] The receiving module 703 is used to receive a first detection task response sent by the vehicle computer. The first detection task response includes the ECU state of the ECU and the target vehicle state data obtained by the vehicle computer through the ECU.

[0191] The acquisition module 701 is also used to acquire the target ECU state of the target ECU corresponding to the non-essential condition from the ECU state when it is determined according to the target vehicle state data that the vehicle meets the necessary condition and when it is determined according to the target vehicle state data that the vehicle does not meet the non-essential condition.

[0192] The determination module 704 is used to determine whether the vehicle is in an upgradeable state when the target ECU state is in an abnormal state and the target ECU is an upgrade target of the FOTA upgrade task.

[0193] Optionally, the acquisition module 701 is further used to acquire the auxiliary condition corresponding to the non-essential condition when the target ECU state is abnormal and the target ECU is not an upgrade object. The judgment data of the auxiliary condition is different from the judgment data of the non-essential condition, and the vehicle state represented by the vehicle state data satisfying the auxiliary condition is the same as the vehicle state represented by the vehicle state data satisfying the non-essential condition.

[0194] The determination module 704 is further configured to determine that the vehicle is in an upgradeable state when the target vehicle state data includes first vehicle state data and it is determined according to the first vehicle state data that the vehicle satisfies the auxiliary condition.

[0195] Optionally, the sending module 702 is also used to generate and send a second detection task request to the vehicle computer when the target vehicle status data does not include the first vehicle status data, so that the vehicle computer obtains the first vehicle status data, generates and sends a second detection task response to the FOTA service device. The second detection task response includes the first vehicle status data. The second detection task request is used to request the first vehicle status data.

[0196] The receiving module 703 is further configured to receive a second detection task response.

[0197] The determination module 704 is further configured to determine that the vehicle is in an upgradeable state when it is determined according to the first vehicle state data that the vehicle meets the auxiliary condition.

[0198] Optionally, the number of necessary conditions is multiple. The number of non-essential conditions is multiple. The number of auxiliary conditions corresponding to any non-essential condition is multiple. The determination module 704 is also used to determine that the vehicle is in an upgradeable state when it is determined according to the target vehicle state data that the vehicle meets all the necessary conditions and when it is determined according to the target vehicle state data that the vehicle meets all the non-essential conditions.

[0199] The determination module 704 is further configured to determine that the vehicle is in a non-upgradeable state when it is determined according to the target vehicle state data that the vehicle does not meet any necessary condition.

[0200] The determination module 704 is further configured to determine that the vehicle is in a non-upgradeable state when it is determined according to the first vehicle state data that the vehicle does not meet any auxiliary condition.

[0201] In summary, in the FOTA upgrade device provided in the embodiment of the present application, the FOTA service device can send a first detection task request to the vehicle when it is determined that there is a FOTA upgrade task for the vehicle. The first detection task request includes the unit identifier of the ECU corresponding to the upgrade condition of the FOTA upgrade task. After receiving the first detection task request, the vehicle can send the ECU state and target vehicle state data of the ECU indicated by the unit identifier to the FOTA service device, so that the FOTA service device determines that the vehicle meets the necessary conditions in the upgrade conditions according to the target vehicle state data, and determines that the vehicle does not meet the non-essential conditions in the upgrade conditions according to the target vehicle state data. , The target ECU state of the target ECU corresponding to the non-essential conditions is obtained from the ECU state, and then when the target ECU state is in an abnormal state and the target ECU is the upgrade object of the FOTA upgrade task, it is determined that the vehicle is in an upgradeable state.

[0202] In this technical solution, the upgrade conditions are divided into necessary conditions and non-essential conditions, so that when the vehicle meets the necessary conditions but does not meet the non-essential conditions, the ECU corresponding to the non-essential conditions can be used as the upgrade object of the FOTA upgrade task, and the reason why the vehicle does not meet the non-essential conditions can be determined to be because the ECU corresponding to the non-essential conditions is abnormal, and the FOTA upgrade task can solve the ECU abnormality problem with a certain probability. Therefore, the FOTA service device determines that the vehicle is in an upgradeable state so that the vehicle can be upgraded by FOTA. Compared with the related art, the technical solution of the present application can further determine the upgradeable situation, avoid the problem that the vehicle cannot be determined as upgradeable due to ECU abnormality, but the FOTA upgrade task can solve the abnormal scenario, thereby improving the accuracy of vehicle upgrade determination.

[0203] Please refer to Figure 8 , which shows a block diagram of a FOTA upgrade device provided in an embodiment of the present application. The FOTA upgrade device is arranged in a vehicle computer. Figure 8 As shown, the FOTA upgrade device 800 includes:

[0204] The receiving module 801 is used to receive the first detection task request of the FOTA upgrade task sent by the FOTA service device. The first detection task request includes the unit identification of the electronic control unit ECU. The ECU indicated by the unit identification corresponds to the upgrade condition of the FOTA upgrade task. The upgrade condition includes necessary conditions and non-necessary conditions.

[0205] The acquisition module 802 is used to acquire the ECU state of the ECU indicated by the unit identifier, and acquire the target vehicle state data through the ECU indicated by the unit identifier.

[0206] The sending module 803 is used to generate and send a first detection task response to the FOTA service device, so that the FOTA service device determines that the vehicle meets the necessary conditions according to the target vehicle status data, and determines that the vehicle does not meet the non-essential conditions according to the target vehicle status data, and obtains the target ECU state of the target ECU corresponding to the non-essential conditions from the EUC state, and determines that the vehicle is in an upgradeable state when the target ECU state is an abnormal state and the target ECU is the upgrade object of the FOTA upgrade task. The vehicle status data provided by the target ECU is used to determine whether the vehicle meets the non-essential conditions; the first detection task response includes the ECU state and the target vehicle status data.

[0207] Optionally, the FOTA upgrade method further includes:

[0208] The receiving module 801 is also used to receive a second detection task request sent by the FOTA service device when the target vehicle status data does not include the first vehicle status data. The first vehicle status data is used to determine whether the vehicle meets the auxiliary condition corresponding to the non-essential condition. The auxiliary condition is the data obtained by the FOTA service device when the target ECU state is abnormal and the target ECU is not an upgrade object.

[0209] The acquisition module 802 is also used to acquire the first vehicle status data.

[0210] The sending module 803 is further used to generate and send a second detection task response including the first vehicle status data to the FOTA service device, so that the FOTA service device determines that the vehicle is in an upgradeable state when it determines that the vehicle meets the auxiliary condition according to the first vehicle status data. The judgment data of the auxiliary condition is different from the judgment data of the non-essential condition, and the vehicle state represented by the vehicle state data that meets the auxiliary condition is the same as the vehicle state represented by the vehicle state data that meets the non-essential condition.

[0211] Optionally, the acquisition module 802 is further configured to:

[0212] Sending a unified diagnostic service UDS version number request to the ECU indicated by the unit identifier, so that the ECU indicated by the unit identifier sends a UDS version number response to the vehicle computer;

[0213] The UDS version number response sent by the ECU indicated by the receiving unit identification;

[0214] Get the software status of the software running on the ECU indicated by the unit identification;

[0215] When at least one of the following conditions is met: the UDS version number response is a negative response, the UDS version number response is a timeout response, and the software state is an abnormal state, determining that the ECU state of the ECU indicated by the unit identifier is an abnormal state;

[0216] When the UDS version number response is not a negative response, the UDS version number response is not a timeout response, and the software status is a normal state, it is determined that the ECU status of the ECU indicated by the unit identifier is a normal state.

[0217] In summary, in the FOTA upgrade device provided in the embodiment of the present application, the FOTA service device can send a first detection task request to the vehicle when it is determined that there is a FOTA upgrade task for the vehicle. The first detection task request includes the unit identifier of the ECU corresponding to the upgrade condition of the FOTA upgrade task. After receiving the first detection task request, the vehicle can send the ECU state and target vehicle state data of the ECU indicated by the unit identifier to the FOTA service device, so that the FOTA service device determines that the vehicle meets the necessary conditions in the upgrade conditions according to the target vehicle state data, and determines that the vehicle does not meet the non-essential conditions in the upgrade conditions according to the target vehicle state data. , The target ECU state of the target ECU corresponding to the non-essential conditions is obtained from the ECU state, and then when the target ECU state is in an abnormal state and the target ECU is the upgrade object of the FOTA upgrade task, it is determined that the vehicle is in an upgradeable state.

[0218] In this technical solution, the upgrade conditions are divided into necessary conditions and non-essential conditions, so that when the vehicle meets the necessary conditions but does not meet the non-essential conditions, the ECU corresponding to the non-essential conditions can be used as the upgrade object of the FOTA upgrade task, and the reason why the vehicle does not meet the non-essential conditions can be determined to be because the ECU corresponding to the non-essential conditions is abnormal, and the FOTA upgrade task can solve the ECU abnormality problem with a certain probability. Therefore, the FOTA service device determines that the vehicle is in an upgradeable state so that the vehicle can be upgraded by FOTA. Compared with the related art, the technical solution of the present application can further determine the upgradeable situation, avoid the problem that the vehicle cannot be determined as upgradeable due to ECU abnormality, but the FOTA upgrade task can solve the abnormal scenario, thereby improving the accuracy of vehicle upgrade determination.

[0219] The present application also provides an electronic device, which may include a processor and a memory. The memory is used to store computer programs. The processor is used to implement the steps performed by the TOTA service device in the present application method embodiment when executing the program stored in the memory; or implement the steps performed by the vehicle computer in the present application method embodiment.

[0220] An embodiment of the present application also provides a readable storage medium, on which a program or instruction is stored. When the program or instruction is executed by a processor, the various processes of the above-mentioned FOTA upgrade method embodiment are implemented, and the same technical effect can be achieved. To avoid repetition, it will not be repeated here.

[0221] The processor is the processor in the electronic device in the above embodiment. The readable storage medium includes a computer readable storage medium, such as a computer read-only memory ROM, a random access memory RAM, a magnetic disk or an optical disk.

[0222] An embodiment of the present application also provides a computer program product, including a computer program. When the computer program / instructions are executed by a processor, the steps executed by the TOTA service device in the embodiment of the method of the present application are implemented; or, the steps executed by the vehicle computer in the embodiment of the method of the present application are implemented.

[0223] The embodiments of the present application are described above in conjunction with the accompanying drawings, but the present application is not limited to the above-mentioned specific implementation methods. The above-mentioned specific implementation methods are merely illustrative and not restrictive. Under the guidance of the present application, ordinary technicians in this field can also make many forms without departing from the purpose of the present application and the scope of protection of the claims, all of which are within the protection of the present application.

Claims

1. A wireless firmware update FOTA upgrade method, characterized in that: Applied to FOTA service equipment, the method includes: In the case where it is determined that there is a FOTA upgrade task for the vehicle, an upgrade condition corresponding to the FOTA upgrade task is obtained, and a unit identifier of an electronic control unit ECU corresponding to the upgrade condition is searched, the ECU is used to provide target vehicle status data of the vehicle, and the upgrade condition includes necessary conditions and non-essential conditions; Generate and send a first detection task request for the FOTA upgrade task to the vehicle, the first detection task request is used to request target vehicle status data, and the first detection task request includes the unit identifier; Receiving a first detection task response sent by a vehicle computer of the vehicle, the first detection task response including an ECU state of the ECU and target vehicle state data acquired by the vehicle computer through the ECU; When it is determined according to the target vehicle state data that the vehicle satisfies the necessary condition, and when it is determined according to the target vehicle state data that the vehicle does not satisfy the non-essential condition, acquiring a target ECU state of the target ECU corresponding to the non-essential condition from the ECU state; When the target ECU is in an abnormal state and the target ECU is an upgrade target of the FOTA upgrade task, it is determined that the vehicle is in an upgradeable state.

2. The method according to claim 1, characterized in that: The method further comprises: When the target ECU is in an abnormal state and the target ECU is not the upgrade object, obtaining an auxiliary condition corresponding to the non-essential condition, the judgment data of the auxiliary condition is different from the judgment data of the non-essential condition, and the vehicle state represented by the vehicle state data satisfying the auxiliary condition is the same as the vehicle state represented by the vehicle state data satisfying the non-essential condition; When the target vehicle state data includes first vehicle state data, and when it is determined that the vehicle satisfies the auxiliary condition according to the first vehicle state data, it is determined that the vehicle is in an upgradeable state.

3. The method according to claim 2, characterized in that The method further comprises: In a case where the target vehicle status data does not include the first vehicle status data, generating and sending a second detection task request to the vehicle computer, so that the vehicle computer obtains the first vehicle status data, generating and sending a second detection task response to the FOTA service device, the second detection task response includes the first vehicle status data, and the second detection task request is used to request the first vehicle status data; receiving the second detection task response; When it is determined according to the first vehicle state data that the vehicle satisfies the auxiliary condition, it is determined that the vehicle is in an upgradeable state.

4. The method according to claim 2 or 3, characterized in that: The number of the necessary conditions is multiple, the number of the non-essential conditions is multiple, and the number of auxiliary conditions corresponding to any of the non-essential conditions is multiple; the method further includes: In the case where it is determined according to the target vehicle state data that the vehicle satisfies all of the necessary conditions, and it is determined according to the target vehicle state data that the vehicle satisfies all of the non-essential conditions, determining that the vehicle is in an upgradeable state; In a case where it is determined according to the target vehicle state data that the vehicle does not meet any of the necessary conditions, determining that the vehicle is in a non-upgradeable state; When it is determined according to the first vehicle status data that the vehicle does not satisfy any of the auxiliary conditions, it is determined that the vehicle is in a non-upgradeable state.

5. The method according to claim 4, characterized in that The method further comprises: When it is determined according to the target vehicle status data that the vehicle satisfies the necessary condition, and it is determined according to the target vehicle status data that the vehicle does not satisfy the non-essential condition, and the target ECU state is normal, it is determined that the vehicle is in a non-upgradeable state.

6. A wireless firmware update FOTA upgrade method, characterized in that: A vehicle computer applied to a vehicle, the vehicle computer is connected to an electronic control unit ECU of the vehicle, and the ECU is used to provide vehicle status data of the vehicle; the method comprises: Receive a first detection task request for a FOTA upgrade task sent by a FOTA service device, where the first detection task request includes a unit identifier of an electronic control unit ECU, where the ECU indicated by the unit identifier corresponds to an upgrade condition of the FOTA upgrade task, where the upgrade condition includes a necessary condition and a non-necessary condition; Acquiring the ECU state of the ECU indicated by the unit identifier, and acquiring the target vehicle state data through the ECU indicated by the unit identifier; Generate and send a first detection task response to the FOTA service device, so that the FOTA service device, when determining that the vehicle satisfies the necessary condition according to the target vehicle status data and determining that the vehicle does not satisfy the non-essential condition according to the target vehicle status data, obtains the target ECU state of the target ECU corresponding to the non-essential condition from the EUC state, and when the target ECU state is an abnormal state and the target ECU is an upgrade object of the FOTA upgrade task, determines that the vehicle is in an upgradeable state, The vehicle status data provided by the target ECU is used to determine whether the vehicle satisfies the non-essential condition; the first detection task response includes the ECU status and the target vehicle status data.

7. The method according to claim 6, characterized in that The method further comprises: Receiving a second detection task request sent by the FOTA service device when the target vehicle status data does not include first vehicle status data, the first vehicle status data being used to determine whether the vehicle satisfies an auxiliary condition corresponding to the non-essential condition, the auxiliary condition being data acquired by the FOTA service device when the target ECU state is in an abnormal state and the target ECU is not the upgrade object; Acquiring the first vehicle status data; generating and sending a second detection task response including first vehicle status data to the FOTA service device, so that the FOTA service device determines that the vehicle is in an upgradeable state when determining that the vehicle satisfies the auxiliary condition according to the first vehicle status data, The judgment data of the auxiliary condition is different from the judgment data of the non-essential condition, and the vehicle state represented by the vehicle state data satisfying the auxiliary condition is the same as the vehicle state represented by the vehicle state data satisfying the non-essential condition.

8. The method according to claim 6 or 7, characterized in that: The obtaining the ECU state of the ECU indicated by the unit identifier includes: Sending a unified diagnostic service UDS version number request to the ECU indicated by the unit identifier, so that the ECU indicated by the unit identifier sends a UDS version number response to the vehicle computer; Receiving a UDS version number response sent by the ECU indicated by the unit identification; Obtaining a software status of software running on the ECU indicated by the unit identifier; Determining that the ECU state of the ECU indicated by the unit identifier is an abnormal state when at least one of the following conditions is met: the UDS version number response is a negative response, the UDS version number response is a timeout response, and the software state is an abnormal state; When the UDS version number response is not a negative response, and the UDS version number response is not a timeout response, and the software status is a normal state, it is determined that the ECU status of the ECU indicated by the unit identifier is a normal state.

9. The method according to claim 6 or 7, characterized in that: The ECU indicated by the unit identifier acquires the target vehicle status data, including: Generate an ECU data request, wherein the ECU data request is used to request the target vehicle status data; Sending the ECU data request to the ECU indicated by the unit identifier, so that the ECU indicated by the unit identifier sends the target vehicle status data to the vehicle computer; The target vehicle status data sent by the ECU indicated by the unit identification is received.

10. An electronic device, characterized in that: The electronic device comprises: a processor and a memory; The memory is used to store computer programs; The processor, when used to execute the program stored in the memory, implements the method described in any one of claims 1 to 5, or implements the method described in any one of claims 6 to 9.