Vehicle upgrading method and device, equipment and storage medium
By obtaining vehicle data and determining upgrade strategies on the cloud management platform, the problems of wasted computing resources and poor user experience in the existing automotive OTA upgrade process are solved, and a more efficient and safe vehicle upgrade process is achieved.
Patent Information
- Application Number
- CN202311805730.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-12-26
- Publication Date
- 2025-06-27
AI Technical Summary
The existing automotive OTA has a long remote upgrade process and involves many operations. After the upgrade tasks are issued in the cloud, the vehicle will determine the upgrade conditions, resulting in waste of computing resources, low security, low efficiency and poor user experience.
On the cloud management platform, obtain the data information reported by the vehicle, determine multiple electronic control units that need to be upgraded based on the pre-set upgrade conditions, obtain their upgrade operation information, determine multiple upgrade strategies, and select the target upgrade strategy with the shortest upgrade time, and send the upgrade information and strategies to the vehicle end.
By making pre-judgment and policy determination in the cloud, traffic is saved, security and efficiency is improved, computing resources on the vehicle side are saved, and user experience is improved.
Smart Images

Figure CN120223528A_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of autonomous driving technology, and particularly to a vehicle upgrade method, device, equipment, and storage medium. Background Art
[0002] Currently, with the development of the current vehicle networking technology, the functions and complexity of vehicles are getting higher and higher, and there are more and more ECUs (Electronic Control Units) installed on vehicles. The version updates and upgrades of these ECUs run through the entire life cycle of the vehicle. Through OTA (Over-The-Air Technology), the vehicle ECUs can be remotely upgraded, which can continuously improve the terminal functions and services of the vehicle and enable the vehicle owner to have a more convenient and intelligent vehicle use experience.
[0003] In the prior art, for automotive OTA remote upgrade, the host factory deploys tasks on the OTA cloud server side and pushes the upgrade tasks to the automotive OTA main controller. After the automotive OTA main controller receives the task instructions and performs a series of upgrade condition judgments, it pushes the upgrade task instructions to the user and performs ECU upgrade.
[0004] The current automotive OTA upgrade process is relatively long, involves many operations, and after the cloud issues the upgrade tasks, the vehicle end makes judgments on the upgrade conditions. Only after the vehicle end determines that the upgrade conditions are met will it perform the upgrade, resulting in waste of vehicle-end computing resources, low security, low efficiency, and poor user experience. Therefore, there is an urgent need for a method to solve the problems in the prior art. Summary of the Invention
[0005] Based on this, this application provides a vehicle upgrade method, device, equipment, and storage medium to solve the problems existing in the prior art.
[0006] In a first aspect, a vehicle upgrade method is provided, which is applied to a cloud management platform. The method includes:
[0007] Obtain the data information reported by the vehicle, and determine multiple electronic control units that need to be upgraded according to the preset upgrade conditions;
[0008] Obtain the upgrade operation information of each electronic control unit that needs to be upgraded, and determine multiple upgrade strategies according to the upgrade operation information. Among them, the multiple upgrade strategies represent the combination methods of the multiple electronic control units during upgrade;
[0009] Determine the target upgrade strategy with the shortest upgrade duration among the multiple upgrade strategies;
[0010] Send the upgrade information of the multiple electronic control units and the target upgrade strategy to the vehicle end.
[0011] According to an implementable manner in the embodiments of the present application, the obtaining of the upgrade operation information of each electronic control unit to be upgraded, and determining a plurality of upgrade strategies according to the upgrade operation information includes:
[0012] Determining the running logic relationship between each electronic control unit according to the upgrade operation information;
[0013] Determining a plurality of first electronic control units according to the running logic relationship, wherein the first electronic control units can be upgraded in parallel;
[0014] Determining a plurality of upgrade strategies according to the plurality of first electronic control units, wherein the plurality of upgrade strategies represent the combination modes of upgrading the plurality of first electronic control units in parallel.
[0015] According to an implementable manner in the embodiments of the present application, the determining of the target upgrade strategy with the shortest upgrade duration among the plurality of upgrade strategies includes:
[0016] Determining the first duration required for each electronic control unit to be upgraded according to the upgrade operation information;
[0017] Calculating the second duration required for each upgrade strategy among the plurality of upgrade strategies according to the first duration;
[0018] Determining the upgrade strategy with the shortest second duration as the target upgrade strategy.
[0019] According to an implementable manner in the embodiments of the present application, before obtaining the data information reported by the vehicle and determining a plurality of electronic control units to be upgraded according to the preset upgrade conditions, it further includes:
[0020] Determining whether there is an in-upgrade task for the vehicle, and if there is no in-upgrade task for the vehicle, determining the target upgrade task according to the attribute information of the vehicle;
[0021] Obtaining the vehicle identification number of the vehicle, determining whether the vehicle identification number is in the blacklist of the target upgrade task, and if the vehicle identification number is not in the blacklist of the target upgrade task, sending a data acquisition instruction to the vehicle.
[0022] According to an implementable manner in the embodiments of the present application, the obtaining of the data information reported by the vehicle and determining a plurality of electronic control units to be upgraded according to the preset upgrade conditions includes:
[0023] Determining the service software summary information according to the target upgrade task, wherein the service software summary information includes multiple pieces of target data required for executing the target upgrade task;
[0024] Determine the upgrade preprocessing information according to the data information reported by the vehicle;
[0025] Traverse the service software summary information to determine whether the target data exists in the upgrade preprocessing data. If each piece of the target data exists in the upgrade preprocessing data, determine multiple electronic control units to be upgraded according to the preset upgrade conditions.
[0026] According to an implementable manner in the embodiments of the present application, the obtaining the data information reported by the vehicle and determining multiple electronic control units to be upgraded according to the preset upgrade conditions includes:
[0027] Obtain the data information reported by the vehicle, where the data information reported by the vehicle includes the version number information of the vehicle-end electronic control unit;
[0028] If the version number information of the vehicle-end electronic control unit meets the preset upgrade conditions, determine that the vehicle-end electronic control unit is the electronic control unit to be upgraded.
[0029] A vehicle upgrade method is further provided, which is applied to the vehicle end. The method includes:
[0030] Send data information to the cloud management platform;
[0031] Receive the upgrade information of multiple electronic control units and the target upgrade strategy sent by the cloud management platform, where the multiple electronic control units represent the electronic control units to be upgraded at the vehicle end, and the target upgrade strategy represents determining multiple upgrade strategies according to the upgrade operation information of each electronic control unit to be upgraded, and determining the strategy with the shortest upgrade duration among the multiple upgrade strategies;
[0032] Upgrade the corresponding electronic control units at the vehicle end based on the upgrade information of the multiple electronic control units and the target upgrade strategy.
[0033] In a second aspect, a vehicle upgrade device is provided, which is applied to the cloud management platform. The device includes:
[0034] An acquisition module: used to acquire the data information reported by the vehicle and determine multiple electronic control units to be upgraded according to the preset upgrade conditions;
[0035] A determination module: used to acquire the upgrade operation information of each electronic control unit to be upgraded and determine multiple upgrade strategies according to the upgrade operation information, where the multiple upgrade strategies represent the combination methods of the multiple electronic control units during the upgrade;
[0036] A calculation module: used to determine that the upgrade strategy with the shortest upgrade duration among the multiple upgrade strategies is the target upgrade strategy;
[0037] Sending module: configured to send the upgrade information of the multiple electronic control units and the target upgrade policy to the vehicle side.
[0038] In a third aspect, a computer device is provided, including:
[0039] At least one processor; and
[0040] A memory communicatively connected to the at least one processor; wherein,
[0041] The memory stores computer instructions executable by the at least one processor, and the computer instructions are executed by the at least one processor to enable the at least one processor to execute the method involved in the first aspect above.
[0042] In a fourth aspect, a computer-readable storage medium is provided, on which computer instructions are stored, characterized in that the computer instructions are used to cause a computer to execute the method involved in the first aspect above.
[0043] According to the technical content provided by the embodiments of the present application, the present application obtains the data information reported by the vehicle, determines multiple electronic control units that need to be upgraded according to the preset upgrade conditions; obtains the upgrade operation information of each electronic control unit that needs to be upgraded, determines multiple upgrade strategies according to the upgrade operation information, and further determines the target upgrade strategy with the shortest upgrade duration among the multiple upgrade strategies, and sends the upgrade information of the multiple electronic control units and the target upgrade strategy to the vehicle side. On the one hand, the present application determines multiple electronic control units that need to be upgraded according to the preset upgrade conditions in the cloud, and sends the upgrade information of the multiple electronic control units that need to be upgraded to the vehicle side, and makes a preliminary judgment based on the upgrade conditions in the cloud, without sending all upgrade data to the vehicle side, saving traffic and improving security while saving the computing resources of the vehicle side. On the other hand, by determining multiple upgrade strategies in the cloud and sending the target upgrade strategy with the shortest upgrade duration to the vehicle side, the upgrade efficiency can be improved. The present application can save traffic, save the computing resources of the vehicle side, and improve the security and efficiency of vehicle upgrade. Description of the Drawings
[0044] Figure 1 It is a schematic flowchart of a vehicle upgrade method in an embodiment;
[0045] Figure 2 It is a schematic diagram of an application scenario of a vehicle upgrade method in an embodiment;
[0046] Figure 3 It is a schematic flowchart of a vehicle upgrade method in another embodiment;
[0047] Figure 4 It is a structural block diagram of a vehicle upgrade device in an embodiment;
[0048] Figure 5 It is a schematic structural diagram of a computer device in an embodiment. Specific implementation manners
[0049] The following further describes the present application in detail with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.
[0050] Figure 1 It is a flowchart of a vehicle upgrade method provided by an embodiment of the present application. Figure 1 The shown vehicle upgrade method is applied to Figure 2 the cloud management platform in Figure 2 It is a schematic diagram of an application scenario of the vehicle upgrade method provided by the present application. As Figure 2 shown, the cloud management platform and the vehicle terminal are communicatively connected. The vehicle terminal sends data information to the cloud, and the cloud management platform sends upgrade information and upgrade strategies to the vehicle terminal. The vehicle terminal upgrades the electronic control unit of the vehicle terminal based on the upgrade information and upgrade strategies.
[0051] Figure 1 The shown vehicle upgrade method is applied to Figure 2 the cloud management platform in Figure 1 As shown, the method may include the following steps:
[0052] Step 101: Obtain the data information reported by the vehicle, and determine multiple electronic control units to be upgraded according to the preset upgrade conditions.
[0053] Specifically, obtain the data information reported by the vehicle. The data information has been pre - processed through a series of data pre - processing operations. The data information uploaded by the vehicle contains the data information of the vehicle - end ECU (electronic control unit). According to the preset upgrade conditions, determine the ECUs in the vehicle - end ECU that meet the upgrade conditions to obtain multiple ECUs to be upgraded. The data information corresponding to the multiple electronic control units to be upgraded can be used as upgrade preparation data. Traverse the upgrade preparation data, and judge whether there is a differential package for each ECU to be upgraded. According to the judgment result, supplement attributes such as the upgrade package address and upgrade package size to the upgrade preparation data.
[0054] Step 102: Obtain the upgrade operation information of each electronic control unit to be upgraded, and determine multiple upgrade strategies according to the upgrade operation information, where the multiple upgrade strategies represent the combination method of the multiple electronic control units during the upgrade.
[0055] Specifically, obtain the upgrade operation information of each electronic control unit to be upgraded. The upgrade operation information includes the upgrade duration, upgrade sequence, and upgrade logic relationship. Among them, the upgrade logic relationship includes the parallel upgrade relationship and mutual exclusion upgrade relationship between each ECU. According to the parallel upgrade relationship and mutual exclusion upgrade relationship, manage multiple ECUs according to the upgrade mutual exclusion group and parallel group, and place the ECUs that can be upgraded simultaneously into the same parallel group to obtain multiple upgrade strategies. Among them, the multiple upgrade strategies represent the combination methods of the multiple electronic control units during the upgrade.
[0056] For example, the four electronic control units are A, B, C, and D respectively. According to the upgrade operation information of each electronic control unit, it is determined that A and B are mutually exclusive and cannot be parallel. Then the following four upgrade strategies can be generated:
[0057] (1) AC in the same group, BD in the same group;
[0058] (2) ACD in the same group, B in one group;
[0059] (3) AD in the same group, BC in the same group;
[0060] (4) A in one group, BCD in the same group.
[0061] Step 103: Determine the target upgrade strategy with the shortest upgrade duration among the multiple upgrade strategies.
[0062] Specifically, in step 102, multiple combination methods of multiple electronic control units during the upgrade that satisfy the execution logic relationship between multiple ECUs are determined. Place the ECUs that can be upgraded simultaneously into the same parallel group according to the principle of the shortest time, and calculate the total estimated upgrade time after grouping. Based on the principle of the minimum time, determine the target upgrade strategy with the shortest total upgrade duration among the multiple upgrade strategies.
[0063] For example, the four electronic control units are A, B, C, and D respectively, and the upgrade durations are A = 10 minutes, B = 15 minutes, C = 11 minutes, and D = 12 minutes respectively. According to the upgrade operation information of each electronic control unit, it is determined that A and B are mutually exclusive and cannot be parallel. Then the following four upgrade strategies can be generated:
[0064] (1) AC in the same group, BD in the same group;
[0065] (2) ACD in the same group, B in one group;
[0066] (3) AD in the same group, BC in the same group;
[0067] (4) A in one group, BCD in the same group.
[0068] After grouping, calculate the total upgrade time respectively as:
[0069] (1) 11 + 15 = 26 minutes;
[0070] (2) 12 + 15 = 27 minutes;
[0071] (3) 12 + 15 = 27 minutes;
[0072] (4) 10 + 15 = 25 minutes.
[0073] Therefore, the upgrade strategy of Group A and Groups B, C, and D in the same group is the upgrade strategy with the shortest total upgrade duration, and the upgrade strategy of the (4)th group is used as the target upgrade strategy.
[0074] Step 104: Send the upgrade information of the multiple electronic control units and the target upgrade strategy to the vehicle end.
[0075] Specifically, the upgrade information of the multiple electronic control units is the upgrade package corresponding to the upgrade of each ECU that needs to be upgraded. The target upgrade strategy includes the upgrade strategy determined based on the principle of minimum time when performing the upgrades of multiple ECUs and the estimated upgrade time. The calculated information such as the estimated upgrade time and the total size of the upgrade packages is supplemented to the upgrade preparation data, and the assembled data is sent to the vehicle end. For some upgrades, differential packages can be sent to save traffic.
[0076] It can be seen that in the embodiment of the present application, by obtaining the data information reported by the vehicle, according to the preset upgrade conditions, multiple electronic control units that need to be upgraded are determined; the upgrade operation information of each electronic control unit that needs to be upgraded is obtained, and multiple upgrade strategies are determined according to the upgrade operation information. Further, the target upgrade strategy with the shortest upgrade duration among the multiple upgrade strategies is determined, and the upgrade information of the multiple electronic control units and the target upgrade strategy are sent to the vehicle end. On the one hand, in the cloud, according to the preset upgrade conditions, multiple electronic control units that need to be upgraded are determined, and the upgrade information of the multiple electronic control units that need to be upgraded is sent to the vehicle end. By making a preliminary judgment based on the upgrade conditions in the cloud, it is not necessary to send all the upgrade data to the vehicle end, which saves traffic, improves security, and saves the computing resources of the vehicle end. On the other hand, by determining multiple upgrade strategies in the cloud and sending the target upgrade strategy with the shortest upgrade duration to the vehicle end, the upgrade efficiency can be improved. The present application can save traffic, save the computing resources of the vehicle end, and improve the security and efficiency of vehicle upgrades.
[0077] In one embodiment of the present application, obtaining the upgrade operation information of each electronic control unit to be upgraded in step 102 and determining multiple upgrade strategies according to the upgrade operation information includes: determining the running logic relationship between each electronic control unit according to the upgrade operation information; determining multiple first electronic control units according to the running logic relationship, wherein the first electronic control units can be upgraded in parallel; determining multiple upgrade strategies according to the multiple first electronic control units, wherein the multiple upgrade strategies represent the combination modes for upgrading the multiple first electronic control units in parallel.
[0078] Specifically, obtain the upgrade operation information of each electronic control unit to be upgraded. The upgrade operation information includes upgrade duration, upgrade sequence, and upgrade running logic relationship. The upgrade logic relationship includes the parallel upgrade relationship and mutual exclusion upgrade relationship between each ECU. According to the parallel upgrade relationship and mutual exclusion upgrade relationship, manage multiple ECUs according to upgrade mutual exclusion groups and parallel groups, and place the ECUs that can be upgraded simultaneously into the same parallel group to obtain multiple upgrade strategies, where the multiple upgrade strategies represent the combination modes of the multiple electronic control units during upgrade.
[0079] For example, the four electronic control units are A, B, C, and D respectively. According to the upgrade operation information of each electronic control unit, it is determined that A and B are mutually exclusive and cannot be upgraded in parallel. Then the following four upgrade strategies can be generated:
[0080] (1) A and C are in the same group, B and D are in the same group;
[0081] (2) A, C, and D are in the same group, B is in a separate group;
[0082] (3) A and D are in the same group, B and C are in the same group;
[0083] (4) A is in a separate group, B, C, and D are in the same group.
[0084] In one embodiment of the present application, determining the target upgrade strategy with the shortest upgrade duration among the multiple upgrade strategies in step 103 includes: determining the first duration required for each electronic control unit to be upgraded according to the upgrade operation information; calculating the second duration required for each upgrade strategy among the multiple upgrade strategies according to the first duration; determining the upgrade strategy with the shortest second duration as the target upgrade strategy.
[0085] Specifically, in step 102, multiple combination modes of multiple electronic control units during upgrade that satisfy the execution logic relationship between them are determined. Place the ECUs that can be upgraded simultaneously into the same parallel group according to the principle of the shortest time, and calculate the total estimated upgrade time after grouping. Based on the principle of the minimum time, determine the target upgrade strategy with the shortest total upgrade duration among the multiple upgrade strategies.
[0086] For example, the four electronic control units are A, B, C, and D respectively. The first time required for each electronic control unit to be upgraded is A = 10 minutes, B = 15 minutes, C = 11 minutes, and D = 12 minutes. According to the upgrade operation information of each electronic control unit, it is determined that A and B are mutually exclusive and cannot be parallel. Then four upgrade strategies can be generated:
[0087] (1) AC are in the same group, and BD are in the same group;
[0088] (2) ACD are in the same group, and B is in a separate group;
[0089] (3) AD are in the same group, and BC are in the same group;
[0090] (4) A is in a separate group, and BCD are in the same group.
[0091] After grouping, according to the first time, calculate the second time required for each upgrade strategy among the multiple upgrade strategies as follows:
[0092] (1) 11 + 15 = 26 minutes;
[0093] (2) 12 + 15 = 27 minutes;
[0094] (3) 12 + 15 = 27 minutes;
[0095] (4) 10 + 15 = 25 minutes.
[0096] Therefore, the upgrade strategy with A in a separate group and BCD in the same group is the upgrade strategy with the shortest total upgrade time, and the upgrade strategy of the (4)th group is taken as the target upgrade strategy.
[0097] In an embodiment of the present application, before step 101 obtains the data information reported by the vehicle and determines the multiple electronic control units that need to be upgraded according to the preset upgrade conditions, it further includes: determining whether there is an ongoing upgrade task for the vehicle. If there is no ongoing upgrade task for the vehicle, then determine the target upgrade task according to the attribute information of the vehicle; obtain the vehicle identification number of the vehicle, and determine whether the vehicle identification number is in the blacklist of the target upgrade task. If the vehicle identification number is not in the blacklist of the target upgrade task, then send a data acquisition instruction to the vehicle.
[0098] Specifically, according to vehicle attributes such as vehicle identification number, vehicle label, vehicle location, vehicle real-name status, etc., determine the upgrade activities to be issued. Determine whether there is an in-progress upgrade task for the vehicle. If there is no in-progress upgrade task for the vehicle, determine the target upgrade task according to the vehicle's attribute information. Determine whether there is an in-progress task for the vehicle reporting data, including the following process: First, the vehicle checks for the new version, and the cloud consumes kafka information in sequence. Second, determine whether there is an in-progress task for the current vehicle. If there is no in-progress task for the current vehicle, the process ends. If there is an in-progress task for the current vehicle, determine whether the activity corresponding to the task is within the validity period. If the activity is not within the validity period, modify the current background status to activity expired and end the process. If the activity corresponding to the task is within the validity period, further determine whether the upgrade task status is in the pending start state. If the result is yes, resend the current task to the vehicle terminal and end the process. If the result of whether the upgrade task status is in the pending start state is no, push the data that does not meet the upgrade to the vehicle terminal through kafka and end the process. If there is no in-progress task, preprocess the data reported by the vehicle, specifically including: Preprocessing the vehicle data requires unique calibration of the ECU, querying the special ECU list cache, comparing all ECUs reported by the vehicle, and marking the special ECUs, the revised version numbers, and the version numbers of all ECUs.
[0099] Obtain the vehicle identification number of the vehicle, and determine whether the vehicle identification number is in the blacklist of the target upgrade task. If the vehicle identification number is not in the blacklist of the target upgrade task, send a data acquisition instruction to the vehicle. In this step, perform a dependency check on the upgrade activity, which requires checking whether the VIN code of the current vehicle exists in the blacklist of the current service. The vehicle VIN code is the abbreviation of Vehicle Identification Number, also known as the vehicle identification number or vehicle identification code. If the identification code of the vehicle does not exist in the blacklist, the activity task can be executed. If the identification code of the vehicle exists in the blacklist, the activity task is not executed.
[0100] Specifically, the activity dependency check also includes other check methods, such as whether the static label dependency passes, whether the dynamic label dependency passes, and whether the device dependency permission passes. If any one does not pass, the activity task is not executed.
[0101] Among them, the static label dependency check includes checking whether the set of activity vehicles contains the VIN code of the current vehicle.
[0102] Dynamic label dependency verification needs to sequentially determine whether there is a vehicle activation status dependency, whether there is a real-name status dependency, and whether there is a vehicle location dependency. When determining whether there is a vehicle activation status dependency, it is possible to further determine whether the current vehicle activation status is consistent with the activity dependency. When determining whether there is a real-name status dependency, it is possible to further determine whether the real-name status of the VIN is consistent with the activity dependency. When determining whether there is a vehicle location dependency, it is possible to further determine whether the city where the current VIN is located is within the city of the activity dependency.
[0103] Device dependency permission verification needs to determine whether the ECU of the activity dependency exists in the current vehicle, and further needs to determine whether the current ECU is a special ECU. If the current ECU is a special ECU, then it depends on whether the first value of the revision number and the first value of the vehicle ECU revision number are the same. Calculate the numerical value through the version number, and compare the activity ECU and the vehicle ECU version number values according to rules such as greater than or less than. If the current ECU is not a special ECU, then calculate the numerical value through the logistics number, and further compare the activity ECU value and the vehicle ECU version number value according to rules such as greater than or less than. If the activity ECU value and the vehicle ECU version number value are inconsistent, it indicates that the ECU of the activity dependency is inconsistent with the ECU existing in the current vehicle, and the activity is not executed.
[0104] In an embodiment of the present application, obtaining the data information reported by the vehicle in step 101 and determining multiple electronic control units to be upgraded according to pre-set upgrade conditions includes: determining service software summary information according to the target upgrade task, where the service software summary information includes multiple target data required to execute the target upgrade task; determining upgrade preprocessing information according to the data information reported by the vehicle; traversing the service software summary information to determine whether the target data exists in the upgrade preprocessing data. If each piece of the target data exists in the upgrade preprocessing data, then determine multiple electronic control units to be upgraded according to pre-set upgrade conditions.
[0105] Specifically, the service software summary information required for the upgrade activity is determined in the cloud according to the target upgrade task, wherein the service software summary information includes multiple target data required to execute the target upgrade task. The upgrade preprocessing information is determined according to the data information reported by the vehicle, and the service software summary information is traversed to determine whether the target data exists in the upgrade preprocessing data. If each of the target data exists in the upgrade preprocessing data, multiple electronic control units that need to be upgraded are determined according to the preset upgrade conditions. Specifically, the list of ECUs that need to be upgraded in the upgrade service is traversed, and the vehicle is queried according to the combination of "ECU name + hardware part number + software part number + whether it is calibrated" to see whether the vehicle reports the same data, and the data that passes is initialized to the upgrade preprocessing data. The list of ECUs that need to be upgraded in the service is traversed, and duplicate data is removed according to ECU name + whether it is calibrated, and the deduplicated data is initialized to the service software summary information. The service software summary information is traversed to compare whether the data in the summary information exists in the upgrade preprocessing data. If all of them exist, the service can be upgraded, otherwise the verification fails.
[0106] The embodiments of the present application can verify whether the vehicle ECU data information required for the cloud upgrade task has been fully reported by the vehicle side, and confirm whether the data information of each ECU reported by the vehicle matches the data required for the upgrade activity, thereby improving the security and accuracy of the upgrade.
[0107] In one embodiment of the present application, the data information reported by the vehicle is obtained in step 101, and multiple electronic control units that need to be upgraded are determined according to pre-set upgrade conditions, including: obtaining the data information reported by the vehicle, the data information reported by the vehicle includes version number information of the vehicle-side electronic control unit; if the version number information of the vehicle-side electronic control unit meets the preset upgrade conditions, determining that the vehicle-side electronic control unit is an electronic control unit that needs to be upgraded.
[0108] Specifically, the data information reported by the vehicle is obtained, and the data information reported by the vehicle includes the version number information of the vehicle-side electronic control unit. The upgrade task is issued according to the vehicle attributes, such as the frame number, vehicle label, vehicle location, vehicle real-name status and other attributes. If the version number information of the vehicle-side electronic control unit meets the preset upgrade conditions, the vehicle-side electronic control unit is determined to be an electronic control unit that needs to be upgraded, that is, according to the device version number attribute, for example, an ECU greater than a specific version number can issue an upgrade task, and according to the version number reported by the vehicle's current ECU, it is determined whether the upgrade task of the corresponding activity can be issued.
[0109] In an embodiment of the present application, based on pre-set upgrade conditions in the cloud, multiple electronic control units (ECUs) that need to be upgraded are determined, and the upgrade information of the multiple ECUs that need to be upgraded is sent to the vehicle side. By making a preliminary judgment based on the upgrade conditions in the cloud, it is not necessary to send all upgrade data to the vehicle side, which saves traffic, improves security, and saves the computing resources of the vehicle side.
[0110] It can be seen that in an embodiment of the present application, by obtaining the data information reported by the vehicle and based on pre-set upgrade conditions, multiple ECUs that need to be upgraded are determined; the upgrade operation information of each ECU that needs to be upgraded is obtained, and multiple upgrade strategies are determined according to the upgrade operation information. Further, the target upgrade strategy with the shortest upgrade duration among the multiple upgrade strategies is determined, and the upgrade information of the multiple ECUs and the target upgrade strategy are sent to the vehicle side. On the one hand, in the cloud, based on pre-set upgrade conditions, multiple ECUs that need to be upgraded are determined, and the upgrade information of the multiple ECUs that need to be upgraded is sent to the vehicle side. By making a preliminary judgment based on the upgrade conditions in the cloud, it is not necessary to send all upgrade data to the vehicle side, which saves traffic, improves security, and saves the computing resources of the vehicle side. On the other hand, by determining multiple upgrade strategies in the cloud and sending the target upgrade strategy with the shortest upgrade duration to the vehicle side, the upgrade efficiency can be improved. The present application can save traffic, save the computing resources of the vehicle side, and improve the security and efficiency of vehicle upgrades.
[0111] Figure 3 A vehicle upgrade method as shown is applied to Figure 2 the vehicle side in Figure 3 As shown, the method may include the following steps:
[0112] Step 301: Send data information to the cloud management platform.
[0113] Specifically, data information is sent to the cloud management platform. The data information has undergone a series of data preprocessing operations. The data information uploaded by the vehicle contains the data information of the vehicle-side ECU (electronic control unit). Based on pre-set upgrade conditions, the ECUs in the vehicle-side ECU that meet the upgrade conditions are determined to obtain multiple ECUs that need to be upgraded. The data information corresponding to the multiple ECUs that need to be upgraded can be used as upgrade preparation data. By traversing the upgrade preparation data, it is judged whether there is a differential package for each ECU that needs to be upgraded, and attributes such as the upgrade package address and upgrade package size are supplemented to the upgrade preparation data according to the judgment result.
[0114] Step 302: Receive the upgrade information of multiple electronic control units and the target upgrade strategy sent by the cloud management platform, where the multiple electronic control units represent the electronic control units that need to be upgraded on the vehicle side, and the target upgrade strategy represents determining multiple upgrade strategies based on the upgrade operation information of each electronic control unit that needs to be upgraded, and determining the strategy with the shortest upgrade duration among the multiple upgrade strategies.
[0115] Specifically, the cloud determines multiple combination ways for the multiple electronic control units to be upgraded when satisfying the execution logic relationship between multiple ECUs. The ECUs that can be upgraded simultaneously are grouped into the same parallel group according to the principle of the shortest time, and the total estimated upgrade time is calculated after grouping. Based on the principle of the minimum time, the target upgrade strategy with the shortest total upgrade duration among the multiple upgrade strategies is determined. Receive the upgrade information of multiple electronic control units and the target upgrade strategy sent by the cloud management platform.
[0116] Step 303: Upgrade the corresponding electronic control units on the vehicle side based on the upgrade information of the multiple electronic control units and the target upgrade strategy.
[0117] Specifically, based on the upgrade information of the multiple electronic control units that need to be upgraded sent by the cloud, determine the parallel upgrade method among the multiple electronic control units determined by the target upgrade strategy, and perform the upgrade.
[0118] It can be seen that in the embodiment of the present application, by obtaining the data information reported by the vehicle, multiple electronic control units that need to be upgraded are determined according to the preset upgrade conditions; the upgrade operation information of each electronic control unit that needs to be upgraded is obtained, multiple upgrade strategies are determined according to the upgrade operation information, and further, the target upgrade strategy with the shortest upgrade duration among the multiple upgrade strategies is determined, and the upgrade information of the multiple electronic control units and the target upgrade strategy are sent to the vehicle side. On the one hand, in the cloud, according to the preset upgrade conditions, multiple electronic control units that need to be upgraded are determined, and the upgrade information of the multiple electronic control units that need to be upgraded is sent to the vehicle side. By making a preliminary judgment based on the upgrade conditions in the cloud, it is not necessary to send all the upgrade data to the vehicle side, saving traffic and improving security while saving the computing resources of the vehicle side. On the other hand, by determining multiple upgrade strategies in the cloud and sending the target upgrade strategy with the shortest upgrade duration to the vehicle side, the upgrade efficiency can be improved. The present application can save traffic, save the computing resources of the vehicle side, and improve the security and efficiency of vehicle upgrade.
[0119] It should be understood that although Figure 1 and 3The steps in the flowchart are shown in sequence according to the arrows, but these steps are not necessarily executed in the order indicated by the arrows. Unless there is a clear description in this application, there is no strict order limit for the execution of these steps, and these steps can be executed in other orders. Moreover, Figure 1 and 3 at least some of the steps in may include multiple sub-steps or multiple stages. These sub-steps or stages are not necessarily completed at the same time, but can be executed at different times. The execution order of these sub-steps or stages is not necessarily sequential, but can be executed alternately or in turn with at least some of the sub-steps or stages of other steps or other steps.
[0120] Figure 4 FIG. is a schematic structural diagram of a vehicle upgrade device provided by an embodiment of the present application. As Figure 4 shown, a vehicle upgrade device is applied to a cloud management platform. The device may include:
[0121] Obtaining module 401: configured to obtain data information reported by a vehicle, and determine a plurality of electronic control units to be upgraded according to preset upgrade conditions;
[0122] Determination module 402: configured to obtain upgrade operation information of each electronic control unit to be upgraded, and determine a plurality of upgrade strategies according to the upgrade operation information, where the plurality of upgrade strategies represent a combination manner of the plurality of electronic control units during upgrade;
[0123] Calculation module 403: configured to determine the upgrade strategy with the shortest upgrade duration among the plurality of upgrade strategies as the target upgrade strategy;
[0124] Sending module 404: configured to send the upgrade information of the plurality of electronic control units and the target upgrade strategy to the vehicle end.
[0125] In an embodiment of the present application, the determination module 402 is further configured to: determine the running logic relationship between each electronic control unit according to the upgrade operation information; determine a plurality of first electronic control units according to the running logic relationship, where the first electronic control units can be upgraded in parallel; determine a plurality of upgrade strategies according to the plurality of first electronic control units, where the plurality of upgrade strategies represent a combination manner of upgrading the plurality of first electronic control units in parallel.
[0126] In an embodiment of the present application, the calculation module 403 is further configured to: determine a first duration required for each electronic control unit to be upgraded according to the upgrade operation information; calculate a second duration required for each upgrade strategy among the plurality of upgrade strategies according to the first duration; determine the upgrade strategy with the shortest second duration as the target upgrade strategy.
[0127] In one embodiment of the present application, it further includes a verification module, which is used to: determine whether there is an in-progress upgrade task for the vehicle, and if there is no in-progress upgrade task for the vehicle, determine a target upgrade task according to the attribute information of the vehicle; obtain the vehicle identification number of the vehicle, determine whether the vehicle identification number is in the blacklist of the target upgrade task, and if the vehicle identification number is not in the blacklist of the target upgrade task, send a data acquisition instruction to the vehicle.
[0128] In one embodiment of the present application, the acquisition module 401 is further used to: determine service software summary information according to the target upgrade task, where the service software summary information includes multiple pieces of target data required to execute the target upgrade task; determine upgrade preprocessing information according to the data information reported by the vehicle.
[0129] Traverse the service software summary information to determine whether the target data exists in the upgrade preprocessing data. If each piece of the target data exists in the upgrade preprocessing data, determine multiple electronic control units to be upgraded according to the preset upgrade conditions.
[0130] In one embodiment of the present application, the acquisition module 401 is further used to: obtain the data information reported by the vehicle, where the data information reported by the vehicle includes the version number information of the vehicle-side electronic control unit; if the version number information of the vehicle-side electronic control unit meets the preset upgrade conditions, determine the vehicle-side electronic control unit as the electronic control unit to be upgraded.
[0131] According to the specific embodiments provided by the present application, the technical solutions provided by the present application may have the following advantages:
[0132] In the application embodiment, by obtaining the data information reported by the vehicle, multiple electronic control units to be upgraded are determined according to the preset upgrade conditions; the upgrade operation information of each electronic control unit to be upgraded is obtained, and multiple upgrade strategies are determined according to the upgrade operation information. Further, the target upgrade strategy with the shortest upgrade duration among the multiple upgrade strategies is determined, and the upgrade information of the multiple electronic control units and the target upgrade strategy are sent to the vehicle end. On the one hand, in the cloud, according to the preset upgrade conditions, multiple electronic control units to be upgraded are determined, and the upgrade information of the multiple electronic control units to be upgraded is sent to the vehicle end. By making a preliminary judgment based on the upgrade conditions in the cloud, it is not necessary to send all upgrade data to the vehicle end, saving traffic and improving security while saving the computing resources of the vehicle end. On the other hand, by determining multiple upgrade strategies in the cloud and sending the target upgrade strategy with the shortest upgrade duration to the vehicle end, the upgrade efficiency can be improved. The present application can save traffic, save the computing resources of the vehicle end, and improve the security and efficiency of vehicle upgrades.
[0133] Embodiments of the present application can verify whether all the vehicle ECU data information required for the cloud upgrade task has been reported by the vehicle terminal, and confirm whether the data information of each ECU reported by the vehicle matches the data required for the upgrade activity, thereby improving the security and accuracy of the upgrade.
[0134] For the same or similar parts among the above embodiments, reference can be made to each other. Each embodiment focuses on the differences from other embodiments. In particular, for the device embodiments, since they are basically similar to the method embodiments, the description is relatively simple, and reference can be made to the relevant parts of the method embodiments for the relevant content.
[0135] It should be noted that the embodiments of the present application may involve the use of user data. In actual applications, user-specific personal data can be used in the solutions described herein within the scope permitted by applicable laws and regulations, provided that the requirements of applicable laws and regulations in the country of residence are met (such as explicit consent from the user, actual notification to the user, explicit authorization from the user, etc.).
[0136] According to the embodiments of the present application, the present application also provides a computer device and a computer-readable storage medium. The present application also provides a computer device, including at least one processor and a memory communicatively connected to at least one processor; wherein, the memory stores computer instructions executable by at least one processor, and the computer instructions are executed by at least one processor so that at least one processor can execute the vehicle upgrade method described in any of the above embodiments.
[0137] As Figure 5 shown, it is a block diagram of a computer device according to an embodiment of the present application. The computer device is intended to represent various forms of digital computers or mobile devices. Among them, the digital computer may include a desktop computer, a portable computer, a workbench, a personal digital assistant, a server, a mainframe computer, and other suitable computers. The mobile device may include a tablet computer, a smart phone, a wearable device, etc.
[0138] As Figure 5 shown, the computer device 500 includes a computing unit 501, a ROM 502, a RAM 503, a bus 504, and an input / output (I / O) interface 505. The computing unit 501, the ROM 502, and the RAM 503 are connected to each other through the bus 504. The input / output (I / O) interface 505 is also connected to the bus 504.
[0139] The computing unit 501 may perform various processes in the method embodiments of this application according to computer instructions stored in the read-only memory (ROM) 502 or computer instructions loaded from the storage unit 508 into the random access memory (RAM) 503. The computing unit 501 may be various general and / or special processing components with processing and computing capabilities. The computing unit 501 may include, but is not limited to, a central processing unit (CPU), a graphics processing unit (GPU), various dedicated artificial intelligence (AI) computing chips, various computing units running machine learning model algorithms, a digital signal processor (DSP), and any appropriate processor, controller, microcontroller, etc. In some embodiments, the method provided in the embodiments of this application may be implemented as a computer software program tangibly contained in a computer-readable storage medium, such as the storage unit 508.
[0140] The RAM 503 may also store various programs and data required for the operation of the device 500. Part or all of the computer programs may be loaded and / or installed onto the device 500 via the ROM 502 and / or the communication unit 509.
[0141] The input unit 506, output unit 507, storage unit 508, and communication unit 509 in the computer device 500 may be connected to the I / O interface 505. Among them, the input unit 506 may be such as a keyboard, a mouse, a touch screen, a microphone, etc.; the output unit 507 may be such as a display, a speaker, an indicator light, etc. The device 500 can exchange information, data, etc. with other devices through the communication unit 509.
[0142] It should be noted that the device may also include other components necessary for normal operation. It may also only include the components necessary to implement the solution of this application, and does not necessarily include all the components shown in the figure.
[0143] The various embodiments of the systems and technologies described herein may be implemented in digital electronic circuit systems, integrated circuit systems, field-programmable gate arrays (FPGA), application-specific integrated circuits (ASIC), application-specific standard products (ASSP), systems-on-a-chip (SOC), complex programmable logic devices (CPLD), computer hardware, firmware, software, and / or combinations thereof.
[0144] The computer instructions for implementing the method of this application may be written in any combination of one or more programming languages. These computer instructions may be provided to the computing unit 501 such that when the computer instructions are executed by a computing unit 501 such as a processor, the various steps involved in the method embodiments of this application are executed.
[0145] The present application also provides a computer-readable storage medium, on which computer instructions are stored, and the computer instructions are used to cause a computer to execute the vehicle upgrade method described in any one of the above embodiments.
[0146] The computer-readable storage medium provided by the present application may be a tangible medium, which may contain or store computer instructions for executing the various steps involved in the method embodiments of the present application. The computer-readable storage medium may include, but is not limited to, storage media in the forms of electronic, magnetic, optical, electromagnetic, etc.
[0147] The above specific embodiments do not constitute a limitation on the protection scope of the present application. Those skilled in the art should understand that various modifications, combinations, sub-combinations, and substitutions can be made according to design requirements and other factors. Any modifications, equivalent replacements, and improvements made within the spirit and principles of the present application shall be included within the protection scope of the present application.
Claims
1. A vehicle upgrade method, applied to a cloud management platform, characterized in that The method includes: Obtaining the data information reported by the vehicle, and determining multiple electronic control units to be upgraded according to the preset upgrade conditions; Obtaining the upgrade operation information of each electronic control unit to be upgraded, and determining multiple upgrade strategies according to the upgrade operation information, where the multiple upgrade strategies represent the combination mode of the multiple electronic control units during upgrade; Determining a target upgrade strategy with the shortest upgrade duration among the multiple upgrade strategies; Sending the upgrade information of the multiple electronic control units and the target upgrade strategy to the vehicle terminal.
2. The vehicle upgrade method according to claim 1, wherein The obtaining the upgrade operation information of each electronic control unit to be upgraded, and determining multiple upgrade strategies according to the upgrade operation information includes: Determining the running logic relationship between each electronic control unit according to the upgrade operation information; Determining multiple first electronic control units according to the running logic relationship, where the first electronic control units can be upgraded in parallel; Determining multiple upgrade strategies according to the multiple first electronic control units, where the multiple upgrade strategies represent the combination mode of parallel upgrading of the multiple first electronic control units.
3. The vehicle upgrade method according to claim 1, wherein, The determining a target upgrade strategy with the shortest upgrade duration among the multiple upgrade strategies includes: Determining the first duration required for each electronic control unit to be upgraded according to the upgrade operation information; Calculating the second duration required for each upgrade strategy among the multiple upgrade strategies according to the first duration; Determining the upgrade strategy with the shortest second duration as the target upgrade strategy.
4. The vehicle upgrade method according to claim 1, wherein Before the obtaining the data information reported by the vehicle, and determining multiple electronic control units to be upgraded according to the preset upgrade conditions, it further includes: Determining whether there is an in-upgrade task for the vehicle. If there is no in-upgrade task for the vehicle, determining a target upgrade task according to the attribute information of the vehicle; Obtaining the vehicle identification number of the vehicle, determining whether the vehicle identification number is in the blacklist of the target upgrade task. If the vehicle identification number is not in the blacklist of the target upgrade task, sending a data acquisition instruction to the vehicle.
5. The vehicle upgrade method according to claim 4, wherein The obtaining the data information reported by the vehicle, and determining multiple electronic control units to be upgraded according to the preset upgrade conditions includes: Determining service software summary information according to the target upgrade task, where the service software summary information includes multiple target data required for executing the target upgrade task; Determining upgrade preprocessing information according to the data information reported by the vehicle; Traversing the service software summary information to determine whether the target data exists in the upgrade preprocessing data. If each piece of the target data exists in the upgrade preprocessing data, determining multiple electronic control units to be upgraded according to the preset upgrade conditions.
6. The vehicle upgrade method according to claim 1, wherein, The obtaining the data information reported by the vehicle, and determining multiple electronic control units to be upgraded according to the preset upgrade conditions includes: Obtaining the data information reported by the vehicle, where the data information reported by the vehicle includes the version number information of the vehicle terminal electronic control unit; If the version number information of the vehicle-end electronic control unit meets the preset upgrade conditions, it is determined that the vehicle-end electronic control unit is the electronic control unit that needs to be upgraded.
7. A vehicle upgrade method, applied to the vehicle end, characterized in that, The method includes: Sending data information to the cloud management platform; Receiving the upgrade information of multiple electronic control units and the target upgrade strategy sent by the cloud management platform, where the multiple electronic control units represent the electronic control units that need to be upgraded at the vehicle end, and the target upgrade strategy represents determining multiple upgrade strategies based on the upgrade operation information of each electronic control unit that needs to be upgraded, and determining the strategy with the shortest upgrade duration among the multiple upgrade strategies; Upgrading the corresponding electronic control unit at the vehicle end based on the upgrade information of the multiple electronic control units and the target upgrade strategy.
8. A vehicle upgrade device, applied to a cloud management platform, characterized in that, The device includes: An acquisition module: used to acquire the data information reported by the vehicle, and determine multiple electronic control units that need to be upgraded according to the preset upgrade conditions; A determination module: used to acquire the upgrade operation information of each electronic control unit that needs to be upgraded, and determine multiple upgrade strategies according to the upgrade operation information, where the multiple upgrade strategies represent the combination methods of the multiple electronic control units during the upgrade; A calculation module: used to determine the upgrade strategy with the shortest upgrade duration among the multiple upgrade strategies as the target upgrade strategy; A sending module: used to send the upgrade information of the multiple electronic control units and the target upgrade strategy to the vehicle end.
9. A computer device, including: At least one processor; And A memory communicatively connected to the at least one processor; where The memory stores computer instructions executable by the at least one processor, and the computer instructions are executed by the at least one processor so that the at least one processor can execute the method according to any one of claims 1-7.
10. A computer-readable storage medium having computer instructions stored thereon, characterized in that, The computer instructions are used to cause the computer to execute the method according to any one of claims 1 to 7.