Vehicle upgrading management method and device, vehicle and storage medium

By determining the connection status of the electronic control unit during the vehicle's car computer software OTA process and adjusting the upgrade strategy and list, the problem of the upgrade strategy not matching the ECU is solved, and the accuracy and security of the upgrade are improved.

CN119883311AInactive Publication Date: 2025-04-25CHENGDU GREAT WALL MOTOR R&D CO LTD
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
CN202411862036.0
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-12-17
Publication Date
2025-04-25
Estimated Expiration
Not applicable · inactive patent

AI Technical Summary

Technical Problem

During the vehicle's car software OTA process, the upgrade strategy does not match the ECU to be upgraded in the vehicle, or the ECU is removed or malfunctioned, resulting in the ECU upgrade failure, which may damage the ECU, causing economic losses and safety hazards.

Method used

By determining the connection state of the electronic control unit, the target hardware identification corresponding to the target hardware with abnormal connection state is removed in the first upgrade strategy, and a second upgrade list and a second upgrade strategy are generated, thereby ensuring that the upgrade data packet can be transmitted to the electronic control unit.

Benefits of technology

It improves the accuracy of the upgrade of the electronic control unit and the safety of vehicle components, avoiding damage and safety hazards caused by the failure of the ECU upgrade.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119883311A_ABST
    Figure CN119883311A_ABST
Patent Text Reader

Abstract

The invention provides a vehicle upgrading management method and device, a vehicle and a storage medium, the method is applied to the field of vehicles, and the method comprises the steps that a first upgrading strategy for at least one electronic control unit in the vehicle is acquired, a first upgrading list is generated based on the first upgrading strategy, the first upgrading list comprises at least one upgrading item, and the first upgrading item comprises at least one electronic control unit; the upgrading item comprises a hardware identifier of the electronic control unit and a group identifier of the upgrading item to which the hardware identifier belongs, determining a connection state of each electronic control element based on each hardware identifier, obtaining a target hardware identifier of which the connection state is an abnormal state, and adjusting the upgrading item in the first upgrading list based on the target hardware identifier, and obtaining a second upgrading list, adjusting each group identifier in the first upgrading strategy based on the second upgrading list to generate a second upgrading strategy, and upgrading each electronic control unit based on the second upgrading strategy. According to the method, the accuracy of upgrading the electronic control unit and the safety of vehicle elements are improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of vehicles, and more specifically, to a vehicle upgrade management method, device, vehicle and storage medium in the field of vehicles. Background Art

[0002] Nowadays, with the popularity of motor vehicles in daily life, more and more people choose to drive motor vehicles to travel. In order to continuously enrich the vehicle functions of motor vehicles, the degree of electronicization of vehicles is getting higher and higher, resulting in the increase in the complexity of vehicle software. How to perform OTA (Over-The-Air technology) such as fault repair or function update for the increasingly complex vehicle software has become an urgent problem to be solved.

[0003] In the related technology, when performing OTA on the vehicle's on-board software, the method adopted is to send the OTA upgrade task to the vehicle, and the vehicle executes the ECU (electronic Control Unit) upgrade according to the upgrade strategy in the OTA task. However, when executing the ECU upgrade, there is a situation where the upgrade strategy in the OTA does not match the ECU to be upgraded in the vehicle, or the ECU in the vehicle is removed or malfunctions, resulting in the failure of the ECU upgrade, which may further damage the ECU, causing economic losses to the vehicle and even high safety risks. Summary of the invention

[0004] The present application provides a vehicle upgrade management method, device, vehicle and storage medium. The method can determine the connection status of an electronic control unit and remove the upgrade items corresponding to the target hardware identifier with abnormal connection status in a first upgrade strategy, so that the upgrade data packet used for upgrade processing can be transmitted to the electronic control unit, thereby improving the accuracy of the electronic control unit upgrade and the safety of vehicle components.

[0005] In a first aspect, a vehicle upgrade management method is provided, the method comprising:

[0006] Acquire a first upgrade strategy for at least one electronic control unit in the vehicle, and generate a first upgrade list based on the first upgrade strategy, wherein the first upgrade list includes at least one upgrade item, and the at least one upgrade item includes a hardware identifier of each of the electronic control units and a group identifier corresponding to the upgrade item to which the hardware identifier belongs;

[0007] Determining the connection status of each of the electronic control components based on each of the hardware identifiers;

[0008] Acquire the target hardware identifier of the abnormal connection state from each of the hardware identifiers, and adjust the at least one upgrade item in the first upgrade list based on the target hardware identifier to obtain a second upgrade list;

[0009] adjusting the group identifier of each of the hardware identifiers in the first upgrade strategy based on the second upgrade list to generate a second upgrade strategy;

[0010] An upgrade process is performed on each of the electronic control units based on the second upgrade strategy.

[0011] Through the above technical scheme, it is possible to adjust the first upgrade list corresponding to the first upgrade strategy according to the connection status of the electronic control unit in the first upgrade strategy to obtain the second upgrade list, adjust the first upgrade strategy according to the second upgrade list to obtain the second upgrade strategy, and upgrade the electronic control unit based on the second upgrade strategy, so as to determine the connection status of the electronic control unit and remove the upgrade items corresponding to the target hardware identifier with abnormal connection status in the first upgrade strategy, so that the upgrade data packet used for upgrade processing can be transmitted to the electronic control unit, thereby improving the accuracy of the upgrade of the electronic control unit and the safety of vehicle components.

[0012] In conjunction with the first aspect, in some possible implementations, obtaining a first upgrade strategy for at least one electronic control unit in the vehicle, and generating a first upgrade list based on the first upgrade strategy includes:

[0013] Acquire a first upgrade strategy for at least one electronic control unit in a vehicle, and at least one upgrade item in the first upgrade strategy;

[0014] A first upgrade serial number of each of the hardware identifiers is determined based on the group identifier of each of the upgrade items, and a first upgrade list corresponding to the first upgrade strategy is generated based on each of the hardware identifiers and each of the first upgrade serial numbers.

[0015] Through the above technical solution, data can be extracted from the upgrade items in the first upgrade strategy to generate a first upgrade list corresponding to the first upgrade strategy, thereby facilitating adjustment of the upgrade items corresponding to the hardware identifiers according to the first upgrade list.

[0016] In combination with the first aspect and the above implementation manner, in some possible implementation manners, determining the connection status of each of the electronic control elements based on each of the hardware identifiers includes:

[0017] Generate a connection status request for each of the hardware identifiers, and determine a request sequence number for each of the connection status requests;

[0018] Based on the request sequence number of each connection status request, query the status of each electronic control unit in turn according to each connection status request, and obtain the connection status instruction returned for each connection status request;

[0019] The connection status instructions are analyzed to determine the connection status of the electronic control unit corresponding to each hardware identifier.

[0020] Through the above technical scheme, it is possible to generate a connection status request for the hardware identifier, determine the connection status corresponding to the hardware identifier according to the connection status request, and determine whether the electronic control unit corresponding to the hardware identifier can successfully receive relevant data for upgrading the electronic control unit, thereby improving the accuracy of upgrading the electronic control unit.

[0021] In combination with the first aspect and the above implementation manner, in some possible implementation manners, obtaining the target hardware identification whose connection status is an abnormal state from each of the hardware identifications, and adjusting the at least one upgrade item in the first upgrade list based on the target hardware identification to obtain the second upgrade list includes:

[0022] Obtaining, from each of the hardware identifiers, a target hardware identifier in which the connection state is an abnormal state;

[0023] The target upgrade item corresponding to the target hardware identifier is deleted from the first upgrade list, and the first group identifiers of the remaining upgrade items in the first upgrade list are adjusted according to the order of the group identifiers to obtain a second upgrade list, wherein the remaining upgrade items are the upgrade items in the first upgrade list except the target upgrade item.

[0024] Through the above technical scheme, it is possible to delete the target upgrade items corresponding to the target hardware identifier with an abnormal connection status in the first upgrade list according to the connection status of the hardware identifier, and adjust the remaining upgrade items in the first upgrade list to obtain an adjusted second upgrade list, thereby retaining the upgrade items with a normal connection status, thereby ensuring the accuracy of the upgrade of the electronic control unit.

[0025] In combination with the first aspect and the above implementation manner, in some possible implementation manners, deleting the target upgrade item corresponding to the target hardware identifier in the first upgrade list, and adjusting the first group identifiers of the remaining upgrade items in the first upgrade list according to the order of the group identifiers to obtain a second upgrade list includes:

[0026] Obtaining a second upgrade sequence number corresponding to a first hardware identifier that is located before the target hardware identifier and adjacent to the target hardware identifier in the first upgrade list, and a third upgrade sequence number corresponding to a second hardware identifier that is located after the target hardware identifier and adjacent to the target hardware identifier;

[0027] Based on the numerical relationship between the fourth upgrade serial number of the target hardware identifier and the second upgrade serial number and the third upgrade serial number, the third upgrade serial number and the fifth upgrade serial numbers corresponding to each third hardware identifier located after the third upgrade serial number are adjusted to obtain a second upgrade list.

[0028] In combination with the first aspect and the above implementation manner, in some possible implementation manners, the numerical relationship between the fourth upgrade serial number of the target hardware identifier and the second upgrade serial number and the third upgrade serial number, adjusting the third upgrade serial number and the fifth upgrade serial numbers corresponding to each third hardware identifier located after the third upgrade serial number to obtain a second upgrade list includes:

[0029] If the fourth upgrade serial number of the target hardware identifier is different from both the second upgrade serial number and the third upgrade serial number, after deleting the fourth upgrade serial number, the third upgrade serial number and each fifth upgrade serial number after the third upgrade serial number are adjusted according to a preset step length;

[0030] If the third upgrade serial number is the same as any one of the second upgrade serial numbers, after deleting the fourth upgrade serial number, the third upgrade serial number and each of the fifth upgrade serial numbers after the third upgrade serial number are kept unchanged.

[0031] In combination with the first aspect and the above implementation manner, in some possible implementation manners, adjusting the group identifier of each hardware identifier in the first upgrade strategy based on the second upgrade list to generate a second upgrade strategy includes:

[0032] Determine a target hardware identifier included in the first upgrade strategy but not included in the second upgrade list, and delete a target upgrade item corresponding to the target hardware identifier in the first upgrade strategy;

[0033] Based on the sixth upgrade sequence number in the second upgrade list, the group identifier of each of the hardware identifiers in the first upgrade policy is adjusted to generate a second upgrade policy.

[0034] Through the above technical solution, the upgrade items in the first upgrade strategy are adjusted according to the generated second upgrade list to obtain the second upgrade strategy for upgrading the electronic control unit.

[0035] In combination with the first aspect and the above implementation manner, in some possible implementation manners, the upgrading process for each electronic control unit based on the second upgrade strategy includes:

[0036] Based on the numerical values ​​of the group identifiers of the upgrade items in the second upgrade strategy, the upgrade processing is performed on the electronic control units in the second upgrade strategy in sequence.

[0037] Through the above technical solution, according to the numerical value of the group identifier of each upgrade item in the second upgrade strategy, the electronic control unit corresponding to the upgrade item is upgraded, thereby realizing the upgrade of the electronic control unit.

[0038] In combination with the first aspect and the above implementations, in some possible implementations, before obtaining the second upgrade list, the method further includes:

[0039] If the acquired connection states are all normal states, then based on the numerical values ​​of the group identifiers of the upgrade items in the first upgrade strategy, the upgrade process is performed on the electronic control units in the first upgrade strategy in sequence.

[0040] Through the above technical solution, when the connection status is normal, the unadjusted first upgrade strategy is used to upgrade each electronic control unit.

[0041] In a second aspect, a vehicle upgrade management device is provided, the device comprising:

[0042] a strategy acquisition unit, configured to acquire a first upgrade strategy for at least one electronic control unit in the vehicle, and generate a first upgrade list based on the first upgrade strategy, wherein the first upgrade list includes at least one upgrade item, and the at least one upgrade item includes a hardware identifier of each of the electronic control units and a group identifier corresponding to the upgrade item to which the hardware identifier belongs;

[0043] A state acquisition unit, used to determine the connection state of each of the electronic control elements based on each of the hardware identifiers;

[0044] a list adjustment unit, configured to obtain, from each of the hardware identifiers, a target hardware identifier whose connection state is an abnormal state, and adjust the at least one upgrade item in the first upgrade list based on the target hardware identifier to obtain a second upgrade list;

[0045] a policy adjustment unit, configured to adjust the group identifier of each of the hardware identifiers in the first upgrade policy based on the second upgrade list to generate a second upgrade policy;

[0046] An upgrading unit is used to upgrade each of the electronic control units based on the second upgrading strategy.

[0047] In a third aspect, a vehicle is provided, comprising a memory for storing executable program code;

[0048] A processor is used to call and run the executable program code from the memory, so that the vehicle executes the method in the first aspect or any possible implementation of the first aspect.

[0049] In a fourth aspect, a computer program product is provided, comprising: a computer program code, which, when executed on a computer, enables the computer to execute the method in the first aspect or any possible implementation of the first aspect.

[0050] In a fifth aspect, a computer-readable storage medium is provided, which stores a computer program code. When the computer program code runs on a computer, the computer executes the method in the above-mentioned first aspect or any possible implementation manner of the first aspect. BRIEF DESCRIPTION OF THE DRAWINGS

[0051] Figure 1 It is a system architecture diagram of a vehicle upgrade management method provided by an embodiment of the present application;

[0052] Figure 2 It is a flow chart of a vehicle upgrade management method provided in an embodiment of the present application;

[0053] Figure 3 It is a flow chart of a vehicle upgrade management method provided in an embodiment of the present application;

[0054] Figure 4 is an example schematic diagram of generating a first upgrade list provided in an embodiment of the present application;

[0055] Figure 5 is an example schematic diagram of adjusting the first upgrade list provided in an embodiment of the present application;

[0056] Figure 6 is an example schematic diagram of adjusting the first upgrade list provided in an embodiment of the present application;

[0057] Figure 7 It is a structural schematic diagram of a vehicle upgrade management device provided in an embodiment of the present application;

[0058] Figure 8 It is a structural schematic diagram of a vehicle provided in an embodiment of the present application. DETAILED DESCRIPTION

[0059] The technical solution in the present application will be described clearly and in detail below in conjunction with the accompanying drawings. In the description of the embodiments of the present application, unless otherwise specified, " / " means or, for example, A / B can mean A or B: "and / or" in the text is only a description of the association relationship of associated objects, indicating that there can be three relationships, for example, A and / or B can mean: A exists alone, A and B exist at the same time, and B exists alone. In addition, in the description of the embodiments of the present application, "multiple" means two or more than two.

[0060] In the following, the terms "first" and "second" are used for descriptive purposes only and are not to be understood as suggesting or implying relative importance or implicitly indicating the number of technical features indicated. Thus, a feature defined as "first" or "second" may explicitly or implicitly include one or more of the features.

[0061] Figure 1 : is a system architecture diagram of a vehicle upgrade management method provided by an embodiment of the present application. Figure 1 As shown, the vehicle upgrade management method provided in the embodiment of the present application can be applied to the vehicle to realize the process of charging the power battery. The system architecture provided in the embodiment of this specification mainly includes a vehicle 10 and a server 20, and the vehicle 10 includes a policy manager 11 and an electronic control unit 12. Among them, the vehicle 10 can be a motor vehicle, such as a hybrid vehicle or an electric vehicle; the policy manager 11 can be a control unit in the vehicle for managing and adjusting the upgrade policy; the electronic control unit 12 can be a control unit in the vehicle for performing various tasks to ensure the operation of the vehicle; the server 20 can be a server for generating upgrade policies, such as a large server, a small server or a personal computer.

[0062] In the related technology, when performing OTA on the vehicle's on-board software, the method adopted is to send the OTA upgrade task to the vehicle, and the vehicle executes the ECU (electronic Control Unit) upgrade according to the upgrade strategy in the OTA task. However, when executing the ECU upgrade, there is a situation where the upgrade strategy in the OTA does not match the ECU to be upgraded in the vehicle, or the ECU in the vehicle is removed or malfunctions, resulting in the failure of the ECU upgrade, which may further damage the ECU, causing economic losses to the vehicle and even high safety risks.

[0063] According to the embodiment of the present application, the policy manager 11 in the motor vehicle 10 obtains a first upgrade strategy for at least one electronic control unit in the vehicle from the server 20, generates a first upgrade list based on the first upgrade strategy, the first upgrade list includes at least one upgrade item, and the at least one upgrade item includes a hardware identifier of each electronic control unit and a group identifier corresponding to the upgrade item to which the hardware identifier belongs. The policy manager 11 generates a connection status request and transmits it to the electronic control unit 12 to determine the connection status of each electronic control element 12 based on each hardware identifier, obtains a target hardware identifier with an abnormal connection status in each hardware identifier, adjusts at least one upgrade item in the first upgrade list based on the target hardware identifier, obtains a second upgrade list, adjusts the group identifier of each hardware identifier in the first upgrade strategy based on the second upgrade list, and generates a second upgrade strategy. The policy manager 12 performs upgrade processing on each electronic control unit 12 based on the second upgrade strategy, thereby determining the connection status of the electronic control unit, and removes the upgrade item corresponding to the target hardware identifier with an abnormal connection status in the first upgrade strategy, so that the upgrade data packet for upgrade processing can be transmitted to the electronic control unit, thereby improving the accuracy of upgrading the electronic control unit and the safety of vehicle components.

[0064] based on Figure 1 The system architecture shown below will be combined with Figure 2-Figure 6 , the vehicle upgrade management method provided in the embodiment of the present application is introduced in detail.

[0065] See also Figure 2 , is a flow chart of a vehicle upgrade management method provided in an embodiment of the present application. Figure 2 As shown, the method of the embodiment of the present application may include the following steps S101-S105.

[0066] S101, obtaining a first upgrade strategy for at least one electronic control unit in a vehicle, and generating a first upgrade list based on the first upgrade strategy;

[0067] In one embodiment, a first upgrade strategy for at least one electronic control unit of a vehicle is obtained. The electronic control unit may be a component in the vehicle for executing various control instructions. The first upgrade strategy may be an execution strategy for upgrading the electronic control component. The first upgrade strategy may include a hardware identifier, a software identifier, a group identifier, and upgrade content of at least one electronic control component. The hardware identifier may be an identifier for indicating the electronic control unit. There may be a one-to-one correspondence between the hardware identifier and the electronic control unit. The group identifier may be a group corresponding to an upgrade project to which each electronic control component belongs when being upgraded in the first upgrade strategy. The hardware identifier and the group identifier in the first upgrade strategy are extracted to generate a first upgrade list. The first upgrade list includes at least one upgrade project. The at least one upgrade project includes the hardware identifier of each electronic control unit and the group identifier corresponding to the upgrade project to which the hardware identifier belongs.

[0068] It is understandable that there is a one-to-one correspondence between the hardware identifier and the software identifier. Therefore, in order to improve processing efficiency, a feasible method is to extract only the hardware identifier, determine the software identifier corresponding to the electronic control unit based on the hardware identifier, and then obtain the software code corresponding to the software identifier.

[0069] S102, determining the connection status of each electronic control element based on each hardware identifier;

[0070] In one embodiment, a connection status request corresponding to each electronic control unit is generated based on each hardware identifier, each connection status request is transmitted to the corresponding electronic control unit, a connection status instruction returned by the electronic control unit is received, and the connection status instruction is parsed to determine the connection status corresponding to the circuit control unit. The connection status may be a state that represents the electronic control unit receiving data through the network. If the connection status is a normal state, it can be considered that the electronic control unit can receive the upgrade data packet; if the connection status is an abnormal state, it can be considered that the electronic control unit may not be able to receive the upgrade data packet. The upgrade data packet may be a data packet used to upgrade the electronic control unit. It can be understood that since the upgrade data packet needs to be transmitted to the electronic control unit to upgrade the electronic control unit, it is necessary to ensure that the connection status of the electronic control unit is in a normal state to ensure that the upgrade data packet can be transmitted to the electronic control unit.

[0071] S103, obtaining a target hardware identifier whose connection state is abnormal from each hardware identifier, and adjusting at least one upgrade item in the first upgrade list based on the target hardware identifier to obtain a second upgrade list;

[0072] In one embodiment, a target hardware identifier whose connection status is abnormal is obtained from each hardware identifier in the first upgrade list, a target upgrade item corresponding to the target hardware identifier is deleted from the first upgrade list, and the first group identifier of the remaining upgrade items included in the first upgrade list after deleting the target hardware item is adjusted. The remaining upgrade items may be the upgrade items in the first upgrade list except the target upgrade item, and a second upgrade list is obtained. The second upgrade list may be a list including upgrade items whose connection status is normal.

[0073] Specifically, the method for adjusting the first group identifiers of the remaining upgrade items may be: adjusting the first group identifiers of the remaining upgrade items according to the numerical relationship between the first group identifiers of the remaining upgrade items adjacent to the target upgrade item and the first group identifiers of the target upgrade item.

[0074] S104, adjusting the group identifier of each hardware identifier in the first upgrade strategy based on the second upgrade list to generate a second upgrade strategy;

[0075] In one embodiment, based on the remaining upgrade items in the second upgrade list, target upgrade items included in the second upgrade list but not included in the first upgrade policy are determined, the target hardware identifiers in the first upgrade policy are deleted, and the hardware identifiers in the first upgrade policy are adjusted according to the group identifiers corresponding to the remaining upgrade items in the second upgrade list to generate a second upgrade policy. The second upgrade policy can be an execution policy that includes upgrade items whose connection status is normal.

[0076] S105, performing an upgrade process on each electronic control unit based on a second upgrade strategy;

[0077] In one embodiment, based on the numerical value of the group identifier included in each upgrade project in the second upgrade strategy, each electronic control unit in the second upgrade strategy is upgraded in turn. The upgrade process can be to transmit the upgrade data package corresponding to the upgrade project to the corresponding electronic control unit according to the upgrade content included in the upgrade project, and upgrade the hardware corresponding to the hardware identifier of the electronic control unit and the software program corresponding to the software identifier according to the upgrade data package. The upgrade content can be the content of adjusting the structure of the hardware or the function of the software program.

[0078] Specifically, a feasible method for upgrading each electronic control unit in sequence may be: based on the numerical value of the group identifier, the electronic control units belonging to the same group identifier are upgraded in sequence from small to large. It is understandable that another feasible method may be to upgrade each electronic control unit in sequence from large to small based on the numerical value of the group identifier and the numerical value or alphabetical order of each hardware identifier, which may be set according to actual conditions.

[0079] In an embodiment of the present application, by adjusting the first upgrade list corresponding to the first upgrade strategy according to the connection status of the electronic control unit in the first upgrade strategy to obtain the second upgrade list, adjusting the first upgrade strategy according to the second upgrade list to obtain the second upgrade strategy, and upgrading the electronic control unit based on the second upgrade strategy, thereby determining the connection status of the electronic control unit and removing the upgrade items corresponding to the target hardware identifier with an abnormal connection status in the first upgrade strategy, so that the upgrade data packet used for the upgrade processing can be transmitted to the electronic control unit, thereby improving the accuracy of the upgrade of the electronic control unit and the safety of vehicle components.

[0080] The following will be combined Figure 3 A vehicle upgrade management method provided in an embodiment of the present application is described in detail with reference to a specific example.

[0081] S201, obtaining a first upgrade strategy for at least one electronic control unit in a vehicle, and at least one upgrade item in the first upgrade strategy;

[0082] In one embodiment, a first upgrade strategy for at least one electronic control unit of a vehicle is obtained. The electronic control unit may be a component in the vehicle for executing various control instructions. The first upgrade strategy may be an execution strategy for upgrading the electronic control component. The first upgrade strategy may include a hardware identifier, a software identifier, a group identifier, and upgrade content of at least one electronic control component. The hardware identifier may be an identifier for indicating the electronic control unit. There may be a one-to-one correspondence between the hardware identifier and the electronic control unit. The group identifier may be a group corresponding to an upgrade project to which each electronic control component belongs when being upgraded in the first upgrade strategy. The first upgrade list includes at least one upgrade project. The at least one upgrade project includes the hardware identifier of each electronic control unit and the group identifier corresponding to the upgrade project to which the hardware identifier belongs.

[0083] It is understandable that there is a one-to-one correspondence between the hardware identifier and the software identifier. Therefore, in order to improve processing efficiency, a feasible method is to extract only the hardware identifier, determine the software identifier corresponding to the electronic control unit based on the hardware identifier, and then obtain the software code corresponding to the software identifier.

[0084] S202, determining a first upgrade sequence number of each hardware identifier based on the group identifier of each upgrade project, and generating a first upgrade list corresponding to the first upgrade strategy based on each hardware identifier and each first upgrade sequence number;

[0085] In one embodiment, the hardware identification and group identification in the first upgrade strategy are extracted, the group identification of each upgrade item is determined as the first upgrade serial number of each hardware identification, and the first upgrade list corresponding to the first upgrade strategy is generated based on each hardware identification and the first upgrade serial number corresponding to the hardware identification.

[0086] For example, as shown in Figure 4, extract Figure 4 The hardware identifiers "ECU1", "ECU2" and "ECU3" and the group identifiers "GPR1", "GPR2" and "GPR3" of the first upgrade strategy are converted into corresponding first upgrade numbers to generate a first upgrade list. The first upgrade number "1" in the first upgrade list is converted from "GPR1", the first upgrade number "2" is converted from "GPR2", and the first upgrade number "3" is converted from "GPR3".

[0087] S203, generating a connection status request for each hardware identifier, and determining a request sequence number for each connection status request;

[0088] In one embodiment, a connection status request corresponding to each hardware identifier is generated. The connection status request may be a request for determining the connection status of the electronic control unit corresponding to the hardware identifier. The connection status requests are sorted, and a request sequence number of each connection status request is determined. The request sequence number may be a transmission order representing the connection status request. It can be understood that by sorting the connection status requests, it is convenient to obtain the connection status of the electronic control unit in an orderly and accurate manner according to the connection status request according to the request sequence number of each connection status request, thereby improving the accuracy and efficiency of obtaining the connection status of the electronic control unit according to the connection status request.

[0089] Specifically, the method for determining the request serial number of the connection status request can be: based on each hardware identifier in the first upgrade list, the corresponding request serial number is set in numerical or alphabetical order; it can also be based on the first upgrade serial number corresponding to each hardware identifier. The serial numbers are sorted in numerical order, and the hardware identifiers with the same first upgrade serial number are set with the corresponding request serial number according to the numerical or alphabetical order included in the hardware identifier. The specific setting can be made according to the actual situation.

[0090] For example, the hardware identifiers include "ECU1", "ECU2" and "ECU3", and the corresponding request numbers generated may be "RE1", "RE2" and "RE3".

[0091] S204, based on the request sequence number of each connection status request, query the status of each electronic control unit in turn according to each connection status request, and obtain the connection status instruction returned for each connection status request;

[0092] In one embodiment, based on the request serial number of each connection status request, the connection status request is transmitted to the corresponding electronic control unit in order from small to large according to the numerical value of the request serial number, so as to query the connection status of each electronic control unit and obtain the connection status instruction returned by the electronic control unit in response to the connection status request. The connection status instruction can be an instruction generated and returned by the electronic control unit in response to the connection status request, and is used to characterize the network status of the electronic control unit receiving data.

[0093] Among them, a feasible method is to set up a connection query device in the vehicle, which receives the first upgrade list transmitted by the policy manager and the connection status request corresponding to each electronic control unit in the first upgrade list, transmits each connection status request to the corresponding electronic control unit to query the connection status of the electronic control unit, and receives the connection status instruction returned by the electronic control unit.

[0094] S205, parsing each connection status instruction to determine the connection status of the electronic control unit corresponding to each hardware identifier;

[0095] In one embodiment, the connection queryer parses the acquired connection status instruction, determines the connection status of the electronic control unit corresponding to the hardware identifier indicated in the connection status instruction, updates the connection status of each hardware identifier in the first upgrade list, and transmits the updated first upgrade list to the policy manager. If the connection status is normal, it can be considered that the electronic control unit can receive the upgrade data packet; if the connection status is abnormal, it can be considered that the electronic control unit may not be able to receive the upgrade data packet, and the upgrade data packet can be a data packet used to upgrade the electronic control unit.

[0096] It should be noted that when the connection status of the electronic control unit corresponding to the hardware identifier is not determined, the connection status recorded by the hardware identifier in the first upgrade list can be set to blank or normal, which can be set according to actual conditions.

[0097] It is understandable that since upgrading the electronic control unit requires transmitting the upgrade data package to the electronic control unit, it is necessary to ensure that the connection status of the electronic control unit is in a normal state to ensure that the upgrade data package can be transmitted to the electronic control unit.

[0098] Furthermore, in order to avoid the inability to obtain the connection status instruction returned by the electronic control unit in response to the connection status request due to the inability of the electronic control unit to receive the connection status request, a feasible method may be: if the connection status instruction returned by the electronic control unit is not received within the preset time length, the connection status of the electronic control unit is marked as an abnormal state, and the specific value of the preset time length can be set based on the actual situation, for example, it can be 5 seconds.

[0099] S206, obtaining a target hardware identifier whose connection status is abnormal from each hardware identifier;

[0100] In one embodiment, the connection status of each hardware identifier is read in the first upgrade list, and the hardware identifier with an abnormal connection status is determined as the target hardware identifier.

[0101] Among them, determining the target hardware identification and subsequent steps can be performed by the control strategy controller.

[0102] S207, deleting the target upgrade item corresponding to the target hardware identifier in the first upgrade list, and adjusting the first group identifiers of the remaining upgrade items in the first upgrade list according to the order of the group identifiers to obtain a second upgrade list;

[0103] In one embodiment, among the hardware identifiers included in the first upgrade list, a target hardware identifier whose connection status is abnormal is obtained, a target upgrade item corresponding to the target hardware identifier is deleted in the first upgrade list, and the first group identifiers of the remaining upgrade items in the first upgrade list are adjusted according to the sorting of the group identifiers to obtain a second upgrade list. The remaining upgrade items may be the upgrade items in the first upgrade list except the target upgrade items, and the second upgrade list may be a list including upgrade items whose connection status is normal.

[0104] Specifically, the target upgrade item corresponding to the target hardware identifier is deleted from the first upgrade list, and the first group identifier of the remaining upgrade items in the first upgrade list is adjusted according to the order of the group identifiers, and the method for obtaining the second upgrade list can be: obtaining the second upgrade sequence number corresponding to the first hardware identifier that is located before the target hardware identifier and adjacent to the target hardware identifier in the first upgrade list, and the third upgrade sequence number corresponding to the second hardware identifier that is located after the target hardware identifier and adjacent to the target hardware identifier, and based on the numerical relationship between the fourth upgrade sequence number of the target hardware identifier and the second upgrade sequence number and the third upgrade sequence number, adjusting the third upgrade sequence number and the fifth upgrade sequence number corresponding to each third hardware identifier located after the third upgrade sequence number to obtain the second upgrade list. Among them, the hardware identifier adjacent to the target hardware identifier is in the first upgrade list, and no other hardware identifier is included between the target hardware identifier and the target hardware identifier.

[0105] It should be noted that, if the first upgrade list includes two or more target hardware identifiers, the upgrade sequence number corresponding to the hardware identifier arranged between the two hardware identifiers and not adjacent to the target hardware identifier is determined as the fifth upgrade sequence number.

[0106] Further, based on the numerical relationship between the fourth upgrade sequence number of the target hardware identifier and the second upgrade sequence number and the third upgrade sequence number, the third upgrade sequence number and the fifth upgrade sequence numbers corresponding to each third hardware identifier located after the third upgrade sequence number are adjusted, and the method for obtaining the second upgrade list can be: if the fourth upgrade sequence number of the target hardware identifier is different from the second upgrade sequence number and the third upgrade sequence number, then after deleting the fourth upgrade sequence number, the third upgrade sequence number and the fifth upgrade sequence numbers located after the third upgrade sequence number are adjusted according to a preset step size; if the third upgrade sequence number is the same as any second upgrade sequence number, then after deleting the fourth upgrade sequence number, the third upgrade sequence number and the fifth upgrade sequence numbers located after the third upgrade sequence number are kept unchanged, wherein the preset step size can be a preset value for filling in the sequence number, for example, it can be "-1", etc. For example, the third upgrade sequence number is "3" before adjustment, and after adjusting the third upgrade sequence number based on the preset step size, the third upgrade sequence number is adjusted to "2", which can be set according to actual conditions.

[0107] For example, Figure 5 As shown, Figure 5 The hardware identifiers "ECU1", "ECU2", "ECU3", "ECU4" and "ECU5" are included, and the first upgrade serial numbers corresponding to the hardware identifiers are "1", "2", "2", "3" and "3". Since the connection status of the target hardware identifier "ECU2" is abnormal, the upgrade item corresponding to the hardware identifier is deleted from the first upgrade list, and the remaining upgrade items in the first upgrade list are adjusted to obtain a second upgrade list. Since the third upgrade serial number adjacent to the target hardware identifier is the same, there is no need to adjust the remaining upgrade items; if the second upgrade serial number and the third upgrade serial number adjacent to the target hardware identifier are different, then Figure 6 As shown, Figure 6 The fourth upgrade serial number corresponding to the target hardware identifier "ECU2" is "2", the second upgrade serial number corresponding to the second hardware identifier "ECU1" adjacent to the target hardware identifier is "1", and the third upgrade serial number corresponding to the third hardware identifier "ECU3" is "3". Therefore, after deleting the target upgrade project, the third upgrade serial number corresponding to the third hardware identifier and the fifth upgrade serial numbers arranged after the third hardware identifier in the first upgrade list are adjusted according to the preset step length. Adjust "3" to "2".

[0108] S208, determining a target hardware identifier included in the first upgrade strategy but not included in the second upgrade list, and deleting a target upgrade item corresponding to the target hardware identifier in the first upgrade strategy;

[0109] In one embodiment, after obtaining the second upgrade list, the target hardware identifiers included in the first upgrade policy and the second upgrade list are matched to determine the target hardware identifiers included in the first upgrade policy but not included in the second upgrade list, and the target hardware identifiers and target upgrade items corresponding to the target hardware identifiers are deleted from the first upgrade policy.

[0110] S209, based on the sixth upgrade sequence number in the second upgrade list, adjusting the group identifier of each hardware identifier in the first upgrade strategy to generate a second upgrade strategy;

[0111] In one embodiment, based on the sixth upgrade sequence number corresponding to each hardware identifier in the second upgrade list, the group identifiers of the remaining upgrade items in the first upgrade strategy are adjusted to generate a second upgrade strategy. The second upgrade strategy can be an execution strategy including upgrade items with a normal connection status.

[0112] Specifically, the method for adjusting the group identifier of each hardware identifier of the remaining upgrade items in the first upgrade strategy based on the sixth upgrade number can be: determine the remaining upgrade items corresponding to each sixth upgrade number in the first upgrade strategy, and adjust the group identifier in the remaining upgrade items corresponding to each sixth upgrade number. The adjustment method can be a reference method for converting the group identifier into the first upgrade number, which will not be elaborated here.

[0113] S210, based on the numerical values ​​of the group identifiers of the upgrade items in the second upgrade strategy, upgrading the electronic control units in the second upgrade strategy in sequence;

[0114] In one embodiment, based on the numerical value of the group identifier of each upgrade item in the second upgrade strategy, the electronic control units corresponding to the hardware identifiers in each upgrade item in the second upgrade strategy are upgraded in sequence from small to large. The upgrade processing can be to transmit the upgrade data package corresponding to the upgrade item to the corresponding electronic control unit according to the upgrade content included in the upgrade item, and upgrade the hardware corresponding to the hardware identifier and the software program corresponding to the software identifier of the electronic control unit according to the upgrade data package. The upgrade content can be the content of adjusting the structure of the hardware or the function of the software program, for example, it can be the adjustment of the operation mode of the gearbox, etc.

[0115] Specifically, a feasible method for upgrading each electronic control unit in sequence may be: based on the numerical value of the group identifier, the electronic control units belonging to the same group identifier are upgraded in sequence from small to large. It is understandable that another feasible method may be to upgrade each electronic control unit in sequence from large to small based on the numerical value of the group identifier and the numerical value or alphabetical order of each hardware identifier, which may be set according to actual conditions.

[0116] Further, if after parsing the connection status determined by the connection status instruction, the connection status corresponding to each hardware identifier is a normal status, then based on the numerical value of the group identifier of each upgrade item in the first upgrade strategy, each electronic control unit in the first upgrade strategy is upgraded in turn. The specific method of the upgrade process can refer to the method of upgrading the electronic control unit of each upgrade item based on the second upgrade strategy, which will not be described in detail here. It can be understood that since the connection status of the electronic control unit corresponding to the hardware identifier of each upgrade item in the first upgrade strategy is a normal status, each electronic control unit can receive the upgrade data packet, and the electronic control unit is upgraded according to the upgrade data packet, without adjusting the first upgrade strategy.

[0117] In the embodiment of the present application, by adjusting the first upgrade list corresponding to the first upgrade strategy according to the connection status of the electronic control unit in the first upgrade strategy to obtain the second upgrade list, adjusting the first upgrade strategy according to the second upgrade list to obtain the second upgrade strategy, and upgrading the electronic control unit based on the second upgrade strategy, thereby determining the connection status of the electronic control unit, removing the upgrade items corresponding to the target hardware identifier with abnormal connection status in the first upgrade strategy, so that the upgrade data packet for upgrade processing can be transmitted to the electronic control unit, thereby improving the accuracy of upgrading the electronic control unit and the safety of vehicle components. Further, according to the upgrade sequence number corresponding to the target hardware identifier with abnormal connection status, and the numerical relationship between the upgrade sequence numbers adjacent to the target hardware identifier in the first upgrade list, the first upgrade list is adjusted to obtain a second upgrade list that only includes electronic control units with normal connection status, thereby ensuring smooth and safe upgrade processing of the electronic control unit.

[0118] based on Figure 1 The system architecture will be combined with Figure 7 , the vehicle upgrade management device provided in the embodiment of the present application is introduced in detail. It should be noted that, Figure 7 The vehicle upgrade management device 1 in the present application is used to execute Figure 2-Figure 6 For the convenience of explanation, only the part related to the embodiment of the present application is shown. For the specific technical details not disclosed, please refer to the present application. Figure 2-Figure 6The embodiment shown.

[0119] A strategy acquisition unit 11 is used to acquire a first upgrade strategy for at least one electronic control unit in the vehicle, and generate a first upgrade list based on the first upgrade strategy, wherein the first upgrade list includes at least one upgrade item, and the at least one upgrade item includes a hardware identifier of each electronic control unit and a group identifier corresponding to the upgrade item to which the hardware identifier belongs;

[0120] A state acquisition unit 12, configured to determine a connection state of each of the electronic control elements based on each of the hardware identifiers;

[0121] A list adjustment unit 13, configured to obtain, from each of the hardware identifiers, a target hardware identifier whose connection state is an abnormal state, and adjust the at least one upgrade item in the first upgrade list based on the target hardware identifier to obtain a second upgrade list;

[0122] A policy adjustment unit 14, configured to adjust the group identifier of each of the hardware identifiers in the first upgrade policy based on the second upgrade list to generate a second upgrade policy;

[0123] The upgrading unit 15 is used for upgrading each of the electronic control units based on the second upgrading strategy.

[0124] Optionally, the policy acquisition unit 11 is further configured to:

[0125] Acquire a first upgrade strategy for at least one electronic control unit in a vehicle, and at least one upgrade item in the first upgrade strategy;

[0126] A first upgrade serial number of each of the hardware identifiers is determined based on the group identifier of each of the upgrade items, and a first upgrade list corresponding to the first upgrade strategy is generated based on each of the hardware identifiers and each of the first upgrade serial numbers.

[0127] Optionally, the state acquisition unit 12 is further used for:

[0128] Generate a connection status request for each of the hardware identifiers, and determine a request sequence number for each of the connection status requests;

[0129] Based on the request sequence number of each connection status request, query the status of each electronic control unit in turn according to each connection status request, and obtain the connection status instruction returned for each connection status request;

[0130] The connection status instructions are analyzed to determine the connection status of the electronic control unit corresponding to each hardware identifier.

[0131] Optionally, the list adjustment unit 13 is further configured to:

[0132] Obtaining, from each of the hardware identifiers, a target hardware identifier in which the connection state is an abnormal state;

[0133] The target upgrade item corresponding to the target hardware identifier is deleted from the first upgrade list, and the first group identifiers of the remaining upgrade items in the first upgrade list are adjusted according to the order of the group identifiers to obtain a second upgrade list, wherein the remaining upgrade items are the upgrade items in the first upgrade list except the target upgrade item.

[0134] Optionally, the list adjustment unit 13 is further configured to:

[0135] Obtaining a second upgrade sequence number corresponding to a first hardware identifier that is located before the target hardware identifier and adjacent to the target hardware identifier in the first upgrade list, and a third upgrade sequence number corresponding to a second hardware identifier that is located after the target hardware identifier and adjacent to the target hardware identifier;

[0136] Based on the numerical relationship between the fourth upgrade serial number of the target hardware identifier and the second upgrade serial number and the third upgrade serial number, the third upgrade serial number and the fifth upgrade serial numbers corresponding to each third hardware identifier located after the third upgrade serial number are adjusted to obtain a second upgrade list.

[0137] Optionally, the list adjustment unit 13 is further configured to:

[0138] If the fourth upgrade serial number of the target hardware identifier is different from both the second upgrade serial number and the third upgrade serial number, after deleting the fourth upgrade serial number, the third upgrade serial number and each fifth upgrade serial number after the third upgrade serial number are adjusted according to a preset step length;

[0139] If the third upgrade serial number is the same as any one of the second upgrade serial numbers, after deleting the fourth upgrade serial number, the third upgrade serial number and each of the fifth upgrade serial numbers after the third upgrade serial number are kept unchanged.

[0140] Optionally, the policy adjustment unit 14 is further configured to:

[0141] Determine a target hardware identifier included in the first upgrade strategy but not included in the second upgrade list, and delete a target upgrade item corresponding to the target hardware identifier in the first upgrade strategy;

[0142] Based on the sixth upgrade sequence number in the second upgrade list, the group identifier of each of the hardware identifiers in the first upgrade policy is adjusted to generate a second upgrade policy.

[0143] Optionally, the upgrade unit 15 is further used for:

[0144] Based on the numerical values ​​of the group identifiers of the upgrade items in the second upgrade strategy, the upgrade processing is performed on the electronic control units in the second upgrade strategy in sequence.

[0145] Optionally, the upgrade unit 15 is further used for:

[0146] If the acquired connection states are all normal states, then based on the numerical values ​​of the group identifiers of the upgrade items in the first upgrade strategy, the upgrade process is performed on the electronic control units in the first upgrade strategy in sequence.

[0147] In the embodiment of the present application, by adjusting the first upgrade list corresponding to the first upgrade strategy according to the connection status of the electronic control unit in the first upgrade strategy to obtain the second upgrade list, adjusting the first upgrade strategy according to the second upgrade list to obtain the second upgrade strategy, and upgrading the electronic control unit based on the second upgrade strategy, thereby determining the connection status of the electronic control unit, removing the upgrade items corresponding to the target hardware identifier with abnormal connection status in the first upgrade strategy, so that the upgrade data packet for upgrade processing can be transmitted to the electronic control unit, thereby improving the accuracy of upgrading the electronic control unit and the safety of vehicle components. Further, according to the upgrade sequence number corresponding to the target hardware identifier with abnormal connection status, and the numerical relationship between the upgrade sequence numbers adjacent to the target hardware identifier in the first upgrade list, the first upgrade list is adjusted to obtain a second upgrade list that only includes electronic control units with normal connection status, thereby ensuring smooth and safe upgrade processing of the electronic control unit.

[0148] See also Figure 8 , which is a schematic diagram of the structure of a vehicle provided in the embodiment of the present application. Figure 8 As shown, the vehicle 500 includes a processor 501 and a memory 502. The processor 501 is electrically connected to the memory 502.

[0149] The processor 501 is the control center of the vehicle 500 and may include one or more processing cores. The processor 501 uses various interfaces and lines to connect various parts of the entire vehicle 500, and executes various functions and processes data of the vehicle 500 by running or calling computer programs stored in the memory 502, and calling data stored in the memory 502, so as to control the vehicle 500 as a whole. Optionally, the processor 501 may be implemented in at least one hardware form of digital signal processing (DSP), field programmable gate array (FPGA), and programmable logic array (PLA). The processor 501 may integrate one or a combination of CPU, graphics processing unit (GPU), modem, etc. Among them, the CPU mainly processes the operating system, user pages, and applications; the GPU is responsible for rendering and drawing display content; and the modem is used to process wireless communications. It is understandable that the above-mentioned modem may not be integrated into the processor 501, but may be implemented separately through a communication chip.

[0150] The memory 502 can be used to store software programs and modules, and the processor 501 executes various functional applications and data processing by running the computer programs and modules stored in the memory 502. The memory 502 can mainly include a program storage area and a data storage area, wherein the program storage area can store an operating system, a computer program required for at least one function, etc.; the data storage area can store data created according to the use of the vehicle 500, etc.

[0151] In addition, the memory 502 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one disk storage device, a flash memory device, or other volatile solid-state storage device. Accordingly, the memory 502 may also include a memory controller to provide the processor 501 with access to the memory 502.

[0152] In this embodiment, the processor 501 in the vehicle 500 loads instructions corresponding to the processes of one or more computer programs into the memory 502 according to the following steps, and the processor 501 runs the computer program stored in the memory 502 to implement various functions, as follows:

[0153] Acquire a first upgrade strategy for at least one electronic control unit in the vehicle, and generate a first upgrade list based on the first upgrade strategy, wherein the first upgrade list includes at least one upgrade item, and the at least one upgrade item includes a hardware identifier of each of the electronic control units and a group identifier corresponding to the upgrade item to which the hardware identifier belongs;

[0154] Determining the connection status of each of the electronic control components based on each of the hardware identifiers;

[0155] Acquire the target hardware identifier of the abnormal connection state from each of the hardware identifiers, and adjust the at least one upgrade item in the first upgrade list based on the target hardware identifier to obtain a second upgrade list;

[0156] adjusting the group identifier of each of the hardware identifiers in the first upgrade strategy based on the second upgrade list to generate a second upgrade strategy;

[0157] An upgrade process is performed on each of the electronic control units based on the second upgrade strategy.

[0158] Optionally, when the processor 501 executes the step of acquiring a first upgrade strategy for at least one electronic control unit in the vehicle and generating a first upgrade list based on the first upgrade strategy, the processor 501 specifically executes:

[0159] Acquire a first upgrade strategy for at least one electronic control unit in a vehicle, and at least one upgrade item in the first upgrade strategy;

[0160] A first upgrade serial number of each of the hardware identifiers is determined based on the group identifier of each of the upgrade items, and a first upgrade list corresponding to the first upgrade strategy is generated based on each of the hardware identifiers and each of the first upgrade serial numbers.

[0161] Optionally, when the processor 501 determines the connection status of each of the electronic control components based on each of the hardware identifiers, the processor 501 specifically performs:

[0162] Generate a connection status request for each of the hardware identifiers, and determine a request sequence number for each of the connection status requests;

[0163] Based on the request sequence number of each connection status request, query the status of each electronic control unit in turn according to each connection status request, and obtain the connection status instruction returned for each connection status request;

[0164] The connection status instructions are analyzed to determine the connection status of the electronic control unit corresponding to each hardware identifier.

[0165] Optionally, when the processor 501 obtains the target hardware identifier of the abnormal connection state from each of the hardware identifiers, and adjusts the at least one upgrade item in the first upgrade list based on the target hardware identifier to obtain the second upgrade list, the processor 501 specifically executes:

[0166] Obtaining, from each of the hardware identifiers, a target hardware identifier in which the connection state is an abnormal state;

[0167] The target upgrade item corresponding to the target hardware identifier is deleted from the first upgrade list, and the first group identifiers of the remaining upgrade items in the first upgrade list are adjusted according to the order of the group identifiers to obtain a second upgrade list, wherein the remaining upgrade items are the upgrade items in the first upgrade list except the target upgrade item.

[0168] Optionally, when the processor 501 deletes the target upgrade item corresponding to the target hardware identifier in the first upgrade list and adjusts the first group identifiers of the remaining upgrade items in the first upgrade list according to the order of the group identifiers to obtain the second upgrade list, the processor 501 specifically executes:

[0169] Obtaining a second upgrade sequence number corresponding to a first hardware identifier that is located before the target hardware identifier and adjacent to the target hardware identifier in the first upgrade list, and a third upgrade sequence number corresponding to a second hardware identifier that is located after the target hardware identifier and adjacent to the target hardware identifier;

[0170] Based on the numerical relationship between the fourth upgrade serial number of the target hardware identifier and the second upgrade serial number and the third upgrade serial number, the third upgrade serial number and the fifth upgrade serial numbers corresponding to each third hardware identifier located after the third upgrade serial number are adjusted to obtain a second upgrade list.

[0171] Optionally, when the processor 501 executes the numerical relationship between the fourth upgrade sequence number of the target hardware identifier and the second upgrade sequence number and the third upgrade sequence number, and adjusts the third upgrade sequence number and fifth upgrade sequence numbers corresponding to each third hardware identifier located after the third upgrade sequence number to obtain the second upgrade list, specifically executing:

[0172] If the fourth upgrade serial number of the target hardware identifier is different from both the second upgrade serial number and the third upgrade serial number, after deleting the fourth upgrade serial number, the third upgrade serial number and each fifth upgrade serial number after the third upgrade serial number are adjusted according to a preset step length;

[0173] If the third upgrade serial number is the same as any one of the second upgrade serial numbers, after deleting the fourth upgrade serial number, the third upgrade serial number and each of the fifth upgrade serial numbers after the third upgrade serial number are kept unchanged.

[0174] Optionally, when the processor 501 adjusts the group identifier of each hardware identifier in the first upgrade policy based on the second upgrade list to generate the second upgrade policy, the processor 501 specifically performs:

[0175] Determine a target hardware identifier included in the first upgrade strategy but not included in the second upgrade list, and delete a target upgrade item corresponding to the target hardware identifier in the first upgrade strategy;

[0176] Based on the sixth upgrade sequence number in the second upgrade list, the group identifier of each of the hardware identifiers in the first upgrade policy is adjusted to generate a second upgrade policy.

[0177] Optionally, when the processor 501 performs the upgrade process on each of the electronic control units based on the second upgrade strategy, the processor 501 specifically performs:

[0178] Based on the numerical values ​​of the group identifiers of the upgrade items in the second upgrade strategy, the upgrade processing is performed on the electronic control units in the second upgrade strategy in sequence.

[0179] Optionally, before obtaining the second upgrade list, the processor 501 further executes:

[0180] If the acquired connection states are all normal states, then based on the numerical values ​​of the group identifiers of the upgrade items in the first upgrade strategy, the upgrade process is performed on the electronic control units in the first upgrade strategy in sequence.

[0181] In the embodiment of the present application, by adjusting the first upgrade list corresponding to the first upgrade strategy according to the connection status of the electronic control unit in the first upgrade strategy to obtain the second upgrade list, adjusting the first upgrade strategy according to the second upgrade list to obtain the second upgrade strategy, and upgrading the electronic control unit based on the second upgrade strategy, thereby determining the connection status of the electronic control unit, removing the upgrade items corresponding to the target hardware identifier with abnormal connection status in the first upgrade strategy, so that the upgrade data packet for upgrade processing can be transmitted to the electronic control unit, thereby improving the accuracy of upgrading the electronic control unit and the safety of vehicle components. Further, according to the upgrade sequence number corresponding to the target hardware identifier with abnormal connection status, and the numerical relationship between the upgrade sequence numbers adjacent to the target hardware identifier in the first upgrade list, the first upgrade list is adjusted to obtain a second upgrade list that only includes electronic control units with normal connection status, thereby ensuring smooth and safe upgrade processing of the electronic control unit.

[0182] It should be understood that the device provided in the embodiment of the present application is used to execute the above-mentioned vehicle upgrade management method, and thus can achieve the same effect as the above-mentioned implementation method.

[0183] In the case of an integrated unit, the device may include a processing module and a storage module. When the device is applied to a vehicle, the processing module may be used to control and manage the actions of the vehicle. The storage module may be used to support the vehicle in executing mutual program codes, etc.

[0184] The processing module may be a processor or a controller, which may implement or execute various exemplary logic blocks, modules and circuits disclosed in the present application. The processor may also be a combination that implements computing functions, such as a combination of one or more microprocessors, a combination of digital signal processing (DSP) and a microprocessor, etc. The storage module may be a memory.

[0185] In addition, the device provided in the embodiment of the present application can specifically be a chip, component or module, and the chip may include a connected processor and memory; wherein the memory is used to store instructions, and when the processor calls and executes the instructions, the chip can execute a vehicle upgrade management method provided in the above embodiment.

[0186] An embodiment of the present application also provides a computer-readable storage medium, in which a computer program code is stored. When the computer program code is executed on a computer, the computer executes the above-mentioned related method steps to implement a vehicle upgrade management method provided in the above-mentioned embodiment.

[0187] This embodiment also provides a computer program product. When the computer program product is run on a computer, the computer is caused to execute the above-mentioned related steps to implement a vehicle upgrade management method provided in the above embodiment.

[0188] Among them, the device, computer-readable storage medium, computer program product or chip provided in this embodiment is used to execute the corresponding method provided above. Therefore, the beneficial effects that can be achieved can refer to the beneficial effects in the corresponding method provided above, and will not be repeated here.

[0189] Through the description of the above implementation methods, technical personnel in the relevant field can understand that for the convenience and simplicity of description, only the division of the above-mentioned functional modules is used as an example. In actual applications, the above-mentioned functions can be assigned to different functional modules as needed, that is, the internal structure of the device can be divided into different functional modules to complete all or part of the functions described above.

[0190] In the embodiments provided in the present application, it should be understood that the disclosed devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic, for example, the division of modules or units is only a logical function division, and there may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another device, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.

[0191] The above contents are only specific implementation methods of the present application, but the protection scope of the present application is not limited thereto. Any technician familiar with the technical field can easily think of changes or substitutions within the technical scope disclosed in the present application, which should be included in the protection scope of the present application. Therefore, the protection scope of the present application should be based on the protection scope of the claims.

Claims

1. A vehicle upgrade management method, characterized in that: The method comprises: Acquire a first upgrade strategy for at least one electronic control unit in the vehicle, and generate a first upgrade list based on the first upgrade strategy, wherein the first upgrade list includes at least one upgrade item, and the at least one upgrade item includes a hardware identifier of each of the electronic control units and a group identifier corresponding to the upgrade item to which the hardware identifier belongs; Determining the connection status of each of the electronic control components based on each of the hardware identifiers; Acquire the target hardware identifier of the abnormal connection state from each of the hardware identifiers, and adjust the at least one upgrade item in the first upgrade list based on the target hardware identifier to obtain a second upgrade list; adjusting the group identifier of each of the hardware identifiers in the first upgrade strategy based on the second upgrade list to generate a second upgrade strategy; An upgrade process is performed on each of the electronic control units based on the second upgrade strategy.

2. The method according to claim 1, characterized in that The obtaining of a first upgrade strategy for at least one electronic control unit in the vehicle and generating a first upgrade list based on the first upgrade strategy include: Acquire a first upgrade strategy for at least one electronic control unit in a vehicle, and at least one upgrade item in the first upgrade strategy; A first upgrade serial number of each of the hardware identifiers is determined based on the group identifier of each of the upgrade items, and a first upgrade list corresponding to the first upgrade strategy is generated based on each of the hardware identifiers and each of the first upgrade serial numbers.

3. The method according to claim 1, characterized in that The determining the connection status of each of the electronic control components based on each of the hardware identifiers includes: Generate a connection status request for each of the hardware identifiers, and determine a request sequence number for each of the connection status requests; Based on the request sequence number of each connection status request, query the status of each electronic control unit in turn according to each connection status request, and obtain the connection status instruction returned for each connection status request; The connection status instructions are analyzed to determine the connection status of the electronic control unit corresponding to each hardware identifier.

4. The method according to claim 1, characterized in that The step of acquiring the target hardware identifier of the abnormal connection state from each of the hardware identifiers, and adjusting the at least one upgrade item in the first upgrade list based on the target hardware identifier to obtain the second upgrade list includes: Obtaining, from each of the hardware identifiers, a target hardware identifier in which the connection state is an abnormal state; The target upgrade item corresponding to the target hardware identifier is deleted from the first upgrade list, and the first group identifiers of the remaining upgrade items in the first upgrade list are adjusted according to the order of the group identifiers to obtain a second upgrade list, wherein the remaining upgrade items are the upgrade items in the first upgrade list except the target upgrade item.

5. The method according to claim 4, characterized in that The step of deleting the target upgrade item corresponding to the target hardware identifier in the first upgrade list, and adjusting the first group identifiers of the remaining upgrade items in the first upgrade list according to the order of the group identifiers to obtain a second upgrade list includes: Obtaining a second upgrade sequence number corresponding to a first hardware identifier that is located before the target hardware identifier and adjacent to the target hardware identifier in the first upgrade list, and a third upgrade sequence number corresponding to a second hardware identifier that is located after the target hardware identifier and adjacent to the target hardware identifier; Based on the numerical relationship between the fourth upgrade serial number of the target hardware identifier and the second upgrade serial number and the third upgrade serial number, the third upgrade serial number and the fifth upgrade serial numbers corresponding to each third hardware identifier located after the third upgrade serial number are adjusted to obtain a second upgrade list.

6. The method according to claim 5, characterized in that The third upgrade sequence number and fifth upgrade sequence numbers corresponding to each third hardware identification located after the third upgrade sequence number are adjusted based on the numerical relationship between the fourth upgrade sequence number of the target hardware identification and the second upgrade sequence number and the third upgrade sequence number to obtain a second upgrade list, including: If the fourth upgrade serial number of the target hardware identifier is different from both the second upgrade serial number and the third upgrade serial number, after deleting the fourth upgrade serial number, the third upgrade serial number and each fifth upgrade serial number after the third upgrade serial number are adjusted according to a preset step length; If the third upgrade serial number is the same as any one of the second upgrade serial numbers, after deleting the fourth upgrade serial number, the third upgrade serial number and each of the fifth upgrade serial numbers after the third upgrade serial number are kept unchanged.

7. The method according to claim 1, characterized in that The adjusting the group identifier of each of the hardware identifiers in the first upgrade strategy based on the second upgrade list to generate a second upgrade strategy includes: Determine a target hardware identifier included in the first upgrade strategy but not included in the second upgrade list, and delete a target upgrade item corresponding to the target hardware identifier in the first upgrade strategy; Based on the sixth upgrade sequence number in the second upgrade list, the group identifier of each of the hardware identifiers in the first upgrade policy is adjusted to generate a second upgrade policy.

8. The method according to claim 1, characterized in that The step of performing an upgrade process on each of the electronic control units based on the second upgrade strategy includes: Based on the numerical values ​​of the group identifiers of the upgrade items in the second upgrade strategy, the upgrade processing is performed on the electronic control units in the second upgrade strategy in sequence.

9. The method according to claim 1, characterized in that: Before obtaining the second upgrade list, the method further includes: If the acquired connection states are all normal states, then based on the numerical values ​​of the group identifiers of the upgrade items in the first upgrade strategy, the upgrade process is performed on the electronic control units in the first upgrade strategy in sequence.

10. A vehicle upgrade management device, characterized in that: The device comprises: a strategy acquisition unit, configured to acquire a first upgrade strategy for at least one electronic control unit in the vehicle, and generate a first upgrade list based on the first upgrade strategy, wherein the first upgrade list includes at least one upgrade item, and the at least one upgrade item includes a hardware identifier of each of the electronic control units and a group identifier corresponding to the upgrade item to which the hardware identifier belongs; A state acquisition unit, used to determine the connection state of each of the electronic control elements based on each of the hardware identifiers; a list adjustment unit, configured to obtain, from each of the hardware identifiers, a target hardware identifier whose connection state is an abnormal state, and adjust the at least one upgrade item in the first upgrade list based on the target hardware identifier to obtain a second upgrade list; a policy adjustment unit, configured to adjust the group identifier of each of the hardware identifiers in the first upgrade policy based on the second upgrade list to generate a second upgrade policy; An upgrading unit is used to upgrade each of the electronic control units based on the second upgrading strategy.

11. A vehicle, characterized in that: The vehicle comprises: A memory for storing executable program codes; A processor, configured to call and run the executable program code from the memory so that the vehicle executes the method according to any one of claims 1 to 9.

12. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program code, and when the computer program code is executed, the method according to any one of claims 1 to 9 is implemented.

Citation Information

Patent Citations

  • Vehicle OTA upgrade control method and related equipment

    CN116643775A