A method and device for estimating energy consumption of vehicle OTA upgrade and electronic equipment
By analyzing the OTA upgrade package, calculating the upgrade time and power consumption of the ECU, and estimating the total power consumption of the vehicle OTA upgrade, the problem of upgrade failure caused by inaccurate SOC threshold judgment in the existing technology is solved, ensuring the safety and success rate of vehicle OTA upgrades.
Patent Information
- Application Number
- CN202111660357.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-12-30
- Publication Date
- 2026-08-25
- Estimated Expiration
- 2041-12-30
AI Technical Summary
Existing technologies rely solely on setting a SOC threshold to determine the remaining battery power during vehicle OTA upgrades, which cannot fully guarantee power supply safety during the OTA upgrade process and can easily lead to upgrade failure.
By parsing the OTA upgrade package, the number of ECUs to be upgraded and the amount of data in the upgrade package are determined. The upgrade time and power consumption of each ECU are calculated, the total power consumption of the whole vehicle OTA upgrade is estimated, and the SOC of the low-voltage battery is used to determine whether the upgrade requirements are met, and necessary measures are taken to avoid failure.
It enables accurate estimation of energy consumption during the vehicle OTA upgrade process, avoiding upgrade failures due to insufficient power and ensuring safe vehicle upgrades.
Smart Images

Figure CN114327560B_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of vehicle software technology, and more specifically, to a method, apparatus, and electronic device for estimating energy consumption during vehicle OTA upgrades. Background Technology
[0002] OTA (Over-the-Air Technology) is a technology that enables remote software upgrades or installations on devices via mobile communication. OTA technology allows vehicles to continuously enhance functionality, fix software issues / security vulnerabilities, and update basic vehicle data even after they have left the production line. More and more automakers are adopting OTA in their vehicles, especially electric vehicles.
[0003] The difference between OTA (Over-The-Air) updates for cars and those for mobile phones / computers lies in the fact that cars are directly related to personal safety. Therefore, safety considerations are more emphasized during the whole-vehicle OTA process. It is necessary to accurately determine the appropriate time, location, and vehicle status for the OTA upgrade. An inappropriate upgrade timing may lead to upgrade failure, and in severe cases, the vehicle may become unusable. On the other hand, OTA updates for mobile phones / computers generally do not require consideration of these issues.
[0004] When a vehicle undergoes an over-the-air (OTA) upgrade, it is necessary to ensure that the remaining battery charge is sufficient to support the completion of the OTA upgrade process. Currently, the common strategy is to set a State of Charge (SOC) threshold for the battery before the OTA upgrade, and only check whether the SOC of the vehicle's low-voltage battery is above this threshold before the upgrade.
[0005] With the development of intelligent driving, the number of ECUs in a vehicle that require OTA upgrades is increasing. Factors affecting the expected energy consumption of OTA upgrades include the size of the upgrade package, the type of vehicle communication, and the quality of the upgrade package software. Therefore, simply setting a SOC threshold cannot fully guarantee the power supply safety during the OTA upgrade process, and can easily lead to OTA upgrade failure. Summary of the Invention
[0006] In view of this, this application provides a method, apparatus and electronic device for estimating the energy consumption of vehicle OTA upgrades, used to estimate the energy consumption of the upgrade process when performing OTA upgrades on a vehicle, so as to avoid OTA upgrade failure.
[0007] To achieve the above objectives, the following solution is proposed:
[0008] A method for estimating energy consumption during vehicle over-the-air (OTA) upgrades, applied to the electronic devices of a vehicle, the method comprising the following steps:
[0009] When the vehicle's OTA controller receives the OTA upgrade package, it parses the OTA upgrade package to determine the number of multiple ECUs to be upgraded and the data volume of the upgrade package corresponding to each ECU, and determines the upgrade order of the multiple ECUs and the upgrade method of the ECUs in one OTA upgrade. The upgrade method includes non-parallel upgrade and parallel upgrade.
[0010] Calculate the estimated time required to upgrade each ECU based on the data volume of each upgrade package and the upgrade time per unit data volume.
[0011] The total power consumption for the upgrade is calculated based on the upgrade method, required power, and estimated upgrade time for each ECU. The required power includes the static power of the ECU that acts as a data router in the upgrade link, the maximum operating power of the ECU to be upgraded, and the rated operating power of the OTA controller. The total power consumption for the upgrade is the sum of the total power consumption of the non-parallel ECUs and the total power consumption of the parallel ECUs.
[0012] In one embodiment, if an OTA upgrade includes multiple non-parallel upgrade ECUs, the total non-parallel upgrade power consumption required by all non-parallel upgrade ECUs during the upgrade process is calculated, including the following calculation steps:
[0013] Calculate the power P_single_i of a single upgrade for the ECU to be upgraded in the entire upgrade link; P_single_i = P_max_i(updateECU) + P_static_i(updateLink) + P_OTAManager;
[0014] Where P_max_i(updateECU) represents the maximum operating power of the ECU to be upgraded, P_static_i(updateLink) represents the sum of the static power of all parent node ECUs on the link from the ECU to the OTA Manager, and P_OTAManager represents the rated operating power of the OTA controller.
[0015] Calculate the expected power consumption W_single_i for a single upgrade of the ECU to be upgraded. The calculation formula is: W_single_i=P_single_i*T_i; where T_i is the estimated time of the ECU to be upgraded, and T_i is the product of the data volume of the upgrade package and the upgrade time per unit data volume.
[0016] Calculate the expected total power consumption W_non_ParallelW_all for a single upgrade of all ECUs to be upgraded, using the following formula:
[0017]
[0018] Where n represents the number of non-parallel ECU upgrades.
[0019] In one embodiment, if an OTA upgrade includes multiple ECUs undergoing parallel upgrades, the total power consumption required for the parallel upgrade of all ECUs during the upgrade process is calculated, including the following steps:
[0020] Calculate the energy consumption requirement W_multi_j for each group of parallel ECU upgrades using the following formula: W_multi_j = W_publicLink_j + W_ECULink_j;
[0021] Where j represents the number of parallel upgrade groups; W_publicLink_j represents the energy consumption requirement of the ECUs in the common link between the parallel upgrade ECUs; W_ECULink_j represents the sum of the energy consumption requirements of the ECUs in the non-common link in each group of parallel upgrade ECUs;
[0022] Furthermore, the formula for calculating W_publicLink_j is as follows:
[0023] W_publicLink_j=(P_publicLink_j+P_OTAManager)*T_publicLink_j;
[0024] Where P_publicLink_j represents the sum of the static power of all common node ECUs between the parallel upgrade ECU and the OTA controller; P_OTAManager is the rated power of the OTA controller; and T_publicLink_j is the working time of the parallel upgrade common link ECU, which is the longest upgrade time among the group of parallel upgrade ECUs.
[0025] Furthermore, the formula for calculating W_ECULink_j is as follows:
[0026] W_ECULink_j=Σ(P_max_i+P_static_linkECUs_i)*T_i
[0027] Where P_max_i represents the maximum operating power of the ECU to be upgraded in the parallel upgrade; P_static_linkECUs_i represents the sum of the static power of the ECUs to be upgraded and the ECUs in the common link in the parallel upgrade; T_i represents the estimated time required for the upgrade of each ECU to be upgraded.
[0028] Calculate the total power consumption W_Parallel for all parallel ECU upgrades using the following formula: m represents the number of parallel upgrade groups during a single OTA upgrade process.
[0029] In one embodiment, before the step of calculating the estimated time required to upgrade each ECU based on the data volume of each upgrade package, the method further includes the step of:
[0030] The type of all the ECUs to be upgraded is determined. If all the ECUs are of type I ECU, then it is not necessary to estimate the total power consumption required for upgrading the type I ECU. If some or all of the ECUs are type II ECU, then the step of calculating the estimated time required to upgrade each ECU based on the data volume of each upgrade package is performed.
[0031] In one embodiment, the method further includes the step of: calculating the total power consumption of all ECUs to be upgraded based on the total power consumption of the non-parallel ECUs and the total power consumption of the parallel ECUs, where W_all = W_non_Parallel + W_Parallel;
[0032] The safe remaining charge of the vehicle's low-voltage battery is calculated based on the total upgrade power consumption W_all and the preset number of repeated upgrades N. The calculation formula is: SOC 初 = (N*W_all) / C / U+SOC 终 C is the rated capacity of the low-voltage battery, U is the rated voltage of the low-voltage battery, and SOC is the rated capacity. 终 N represents the lower limit of the low-voltage battery SOC after the OTA upgrade is completed, and N is the preset number of repeated upgrades.
[0033] In one embodiment, the OTA controller is based on the SOC 初 In addition, the actual SOC value obtained from the low-voltage battery is used to determine whether the current state of the low-voltage battery can meet the requirements of the vehicle ECU for safe OTA upgrades.
[0034] This application also provides an energy consumption estimation device for vehicle OTA upgrades, applied to the electronic equipment of a vehicle, characterized in that the energy consumption estimation device includes:
[0035] The parsing and processing module parses the OTA upgrade package after the vehicle's OTA controller receives it, determines the number of multiple electronic control units (ECUs) to be upgraded and the data volume of the upgrade package corresponding to each ECU, and determines the upgrade order and upgrade method of the multiple ECUs in one OTA upgrade, including non-parallel upgrade and parallel upgrade.
[0036] The time calculation module calculates the estimated time required to upgrade each ECU based on the data volume of each upgrade package and the upgrade time per unit data volume.
[0037] The power consumption calculation module calculates the total power consumption of the upgrade based on the upgrade method, required power, and estimated upgrade time for each ECU. The required power includes the static power of the ECU that plays a data routing role in the upgrade link, the maximum operating power of the ECU to be upgraded, and the rated operating power of the OTA controller. The total power consumption of the upgrade is the sum of the total power consumption of the non-parallel ECUs and the total power consumption of the parallel ECUs.
[0038] In one embodiment, the power consumption calculation module includes:
[0039] The method acquisition unit is used to acquire the upgrade method of the plurality of ECUs;
[0040] The computational execution unit calculates the total power consumption based on the obtained upgrade method.
[0041] This application also provides an electronic device for use in a vehicle, which is equipped with the energy consumption estimation device described above.
[0042] This application also provides an electronic device for use in a vehicle, characterized in that it includes at least one processor and a memory connected to the processor, wherein:
[0043] The memory is used to store computer programs or instructions;
[0044] The processor is used to execute the computer program or instructions to enable the electronic device to implement the energy consumption estimation method for vehicle OTA upgrades described above.
[0045] As can be seen from the above technical solution, this application discloses a method, device, and electronic device for estimating energy consumption during vehicle OTA upgrades. Specifically, after the vehicle receives an OTA upgrade package, the method and device parse the package to determine the number of ECUs to be upgraded and the data volume of the upgrade package corresponding to each ECU. Based on the data volume of each upgrade package and the upgrade time per unit data volume, the estimated time required for each ECU to be upgraded is calculated. Finally, the total power consumption for the upgrade is calculated based on the upgrade method for each ECU and the estimated time required for all upgrades. This solution yields the actual power consumption required for the vehicle to perform an OTA upgrade. Based on this, other constraints can be used to determine whether the current SOC of the low-voltage battery meets the upgrade requirements, and necessary measures can be taken based on the determination result to avoid OTA upgrade failures. Attached Figure Description
[0046] To more clearly illustrate the technical solutions in the embodiments of this application or the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of this application. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0047] Figure 1 This is a network topology diagram of the vehicle in this application;
[0048] Figure 2 A flowchart illustrating an energy consumption estimation method for vehicle OTA upgrades according to an embodiment of this application;
[0049] Figure 3 A flowchart illustrating another energy consumption estimation method for vehicle OTA upgrades according to an embodiment of this application;
[0050] Figure 4 A flowchart illustrating another energy consumption estimation method for vehicle OTA upgrades according to an embodiment of this application;
[0051] Figure 5 This is a schematic diagram of the capacity of a low-voltage storage battery according to an embodiment of this application;
[0052] Figure 6 This is a block diagram of an energy consumption estimation device for vehicle OTA upgrades according to an embodiment of this application;
[0053] Figure 7 This is a block diagram of another energy consumption estimation device for vehicle OTA upgrades according to an embodiment of this application;
[0054] Figure 8 A block diagram of another energy consumption estimation device for vehicle OTA upgrade according to an embodiment of this application;
[0055] Figure 9 This is a block diagram of an electronic device according to an embodiment of this application. Detailed Implementation
[0056] The technical solutions of the embodiments of this application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of this application, and not all embodiments. Based on the embodiments of this application, all other embodiments obtained by those of ordinary skill in the art without creative effort are within the scope of protection of this application.
[0057] When a vehicle undergoes an OTA (Over-The-Air) remote upgrade, the vehicle first establishes a connection with a remote server via a cellular network, transmitting the ECU firmware upgrade package to be updated to the vehicle's Telematics Unit, typically a T-BOX. The Telematics Unit then transmits the upgrade package to the OTA Manager, which distributes the upgrade package to the corresponding ECUs and performs the flashing process. This application is based on... Figure 1 The network topology shown is an example, intended to illustrate the inventive concept, and does not imply that the invention is limited to this topology. Furthermore, the ECU in this application includes, but is not limited to, the ECU of this application, as well as other electronic devices to be upgraded. Based on the above topology, this application proposes the following technical solution to estimate the upgrade energy consumption.
[0058] Example 1
[0059] Figure 2 This is a flowchart illustrating an energy consumption estimation method for vehicle OTA upgrades according to an embodiment of this application.
[0060] The energy consumption estimation method provided in this embodiment is applied to the electronic equipment of a vehicle, which is one of the multiple ECUs installed on the vehicle or a dedicated processor or controller. In actual implementation, which ECU is used as the electronic equipment depends on the situation. For electric vehicles, the ECU corresponding to the VCU, BCM, or OTA Manager can be selected as the electronic equipment; for gasoline vehicles, the EMS can be used.
[0061] like Figure 2 As shown, the energy consumption estimation method for vehicle OTA upgrades in this embodiment includes the following steps:
[0062] S101. Parse the OTA upgrade package.
[0063] That is, after the electronic device receives the OTA upgrade package transmitted by the Telematics Unit, it parses the OTA upgrade package to determine the number of ECUs to be upgraded and the data size of the upgrade package corresponding to each ECU, Data_size_1, Data_size_2, ..., Data_size_i, ..., Data_size_n.
[0064] In this embodiment, the specific device that parses the OTA upgrade package is the OTA Manager. The OTA Manager can be understood as a dedicated ECU, or as a hardware module or software module of the electronic device in this embodiment.
[0065] S102. Calculate the estimated time required to upgrade each ECU based on the data volume of each upgrade package and the upgrade time per unit data volume.
[0066] That is, based on the data volume of the upgrade package for each ECU to be upgraded, the time T_1, T_2, ..., T_i, ..., T_n required for the corresponding ECU to be upgraded based on the upgrade package is calculated according to the data volume. The calculation formula is as follows:
[0067] T_i = Data_size_i * t_i
[0068] Where t_i is the upgrade time required per unit of data.
[0069] S103. Calculate the total power consumption for the upgrade based on the ECU upgrade method.
[0070] The total upgrade power consumption here refers to the total power consumption required for all ECUs to be upgraded. ECU upgrade methods include parallel upgrades and non-parallel upgrades. Given a specific upgrade method, the upgrade energy consumption of all ECUs is calculated based on different upgrade methods to obtain this total power consumption.
[0071] In practical implementation, the ECU upgrade method in this embodiment includes both non-parallel upgrade and parallel upgrade methods. Therefore, the total upgrade power consumption is calculated through the following scheme.
[0072] First, examine the upgrade methods for multiple ECUs. Determine whether the upgrade methods for the multiple ECUs (i.e., the ECUs to be upgraded) are non-parallel or parallel.
[0073] Then, the total power consumption is calculated based on the upgrade method and the upgrade time for each ECU to be upgraded.
[0074] 1. For all ECUs under the non-parallel upgrade method, the total power consumption is calculated through the following steps:
[0075] 1) A single OTA upgrade involves multiple non-parallel upgrade ECUs. To calculate the total power consumption required by all non-parallel upgrade ECUs during the upgrade process, it is first necessary to calculate the power consumption P_single_i of the entire upgrade path (from the ECU to be upgraded to the OTAManager) for each ECU during the upgrade process. The calculation formula is as follows:
[0076] P_single_i=P_max_i(updateECU)+P_static_i(updateLink)+P_OTAManager
[0077] Wherein, P_max_i(updateECU) represents the maximum operating power of the ECU to be upgraded, P_static_i(updateLink) represents the sum of the static power of all parent node ECUs on the link from the ECU to be upgraded to the OTA Manager, and P_OTAManager represents the rated operating power of the OTA Manager controller.
[0078] refer to Figure 1 As shown, taking the upgrade of ECU5 and ECU8 as an example, the power consumption of the ECU5 upgrade link is:
[0079] P_single_5 = P_max_5 + (P_static_2 + P_static_1) + P_OTAManager. The parent nodes on the ECU5 upgrade link are ECU1 and ECU2. P_static_2 is the static power of ECU2, the parent node of ECU5 to be upgraded. P_static_1 is the static power of ECU1, the parent node of ECU2. Here, P_OTAManager represents the rated power of the OTA Manager.
[0080] The power consumption of the ECU8 upgrade link is:
[0081] P_single_8 = P_max_8 + (P_static_6 + P_static_1) + P_OTAManager; The parent nodes on the ECU8 upgrade link are ECU1 and ECU6, P_static_6 is the static power of the parent node ECU2 of the ECU8 to be upgraded, and P_static_1 is the static power of the parent node ECU1 of the parent node ECU2; here P_OTAManager represents the rated power of the OTA Manager.
[0082] 2) Calculate the expected power consumption W_single_i for a single upgrade of the ECU to be upgraded. The calculation formula is as follows:
[0083] W_single_i=P_single_i*T_i
[0084] 3) Calculate the expected power consumption W_non_Parallel for each upgrade of all ECUs to be upgraded. The calculation formula is as follows:
[0085]
[0086] Where Σ represents the summation symbol; n represents the number of non-parallel ECU upgrades.
[0087] Continue to refer to Figure 1 Taking the upgrade of ECU5 and ECU8 as an example, the total power consumption is:
[0088] W_non_Parallel=W_single_5+W_single_8=P_link_5*T_5+
[0089] P_link_8*T_8.
[0090] 2. A single OTA upgrade involves multiple ECUs being upgraded in parallel. To calculate the total power consumption required by all ECUs during the upgrade process, it is first necessary to calculate the power consumption requirement W_multi_j of all ECUs under the parallel upgrade. The total power consumption is calculated through the following steps:
[0091] 1) Calculate the total power consumption W_multi_j of ECUs undergoing parallel upgrades in different network segments during the upgrade process. The calculation formula is as follows:
[0092] W_multi_j=W_publicLink_j+W_ECULink_j
[0093] Where W_publicLink_j represents the energy consumption requirement of the common link ECU between parallel upgrade ECUs, and the formula for calculating W_publicLink_j is:
[0094] W_publicLink_j=(P_publicLink_j+P_OTAManager)*T_publicLink_j;
[0095] Where P_publicLink_j represents the sum of the static power of all common node ECUs between the parallel-upgraded ECU and the OTA controller; P_OTAManager is the rated power of the OTA controller; and T_publicLink_j is the working time of the common link ECUs in the parallel upgrade, which is the longest upgrade time among the ECUs in this group. Taking the parallel upgrade of ECU4 and ECU9 as an example, the maximum operating power of ECU4 and ECU9 to be upgraded are P_max_4 and P_max_9, respectively; the upgrade times are T_4 and T_9, respectively; the common ECUs in the parallel upgrade link are ECU1 and OTA Manager, with operating powers of P_static_1 and P_OTAManager, respectively. Therefore, the sum of the power of the common link ECUs is P_publicLink = P_static_1 + P_OTAManager; the working time of the common link ECUs is T_publicLink = max(T_4, T_9), where max() represents finding the maximum value between T_4 and T_9.
[0096] W_ECULink_j represents the sum of the power consumption requirements of the ECUs to be upgraded and the ECUs connected to the common link in each group of parallel upgrade ECUs. The formula for calculating W_ECULink_j is:
[0097] W_ECU_j=Σ(P_max_i(updateECU)+P_static_linkECUs)*T_i
[0098] Wherein, P_max_i(updateECU) represents the maximum operating power of the ECU to be upgraded; P_static_linkECUs represents the sum of the power of the ECUs to be upgraded and the ECUs in the common link; T_i represents the estimated upgrade time of the ECU to be upgraded; Σ represents the summation symbol, that is, the summation of the energy consumption requirements of multiple ECUs to be upgraded in parallel.
[0099] Taking the parallel upgrade of ECU4 and ECU9 as an example, the maximum operating power of the ECUs to be upgraded are P_max_4 and P_max_9, respectively; the P_static_linkECUs are P_static_2 and P_static_7, respectively; and the estimated upgrade times of the ECUs to be upgraded are T_4 and T_9, respectively. Therefore, the total energy consumption requirement for the parallel upgrade of the non-common link part is W_ECULink = (P_max_4 + P_static_2) * T_4 + (P_max_9 + P_static_7) * T_9.
[0100] The total power consumption W_Parallel of all parallel upgraded ECUs can be calculated using the following formula:
[0101]
[0102] m represents the number of parallel upgrade groups during a single OTA upgrade process.
[0103] The total power consumption W_all of all ECUs to be upgraded can be obtained from the above calculations.
[0104] W_all=W_non_Parallel+W_Parallel.
[0105] In addition, in specific implementation, if the upgrade methods for all ECUs that need to be upgraded include both non-parallel upgrade methods and parallel upgrade methods, the total power consumption of the corresponding ECU under each upgrade method needs to be calculated using the two calculation schemes mentioned above. The total power consumption required for upgrading all ECUs is the sum of the two total power consumption methods mentioned above.
[0106] As can be seen from the above technical solution, this embodiment provides a method for estimating the energy consumption of vehicle OTA upgrades. This method is applied to the vehicle's electronic equipment. Specifically, after the vehicle receives an OTA upgrade package, it parses the package to determine the number of ECUs to be upgraded and the data volume of the upgrade package corresponding to each ECU. Based on the data volume of each upgrade package and the upgrade time per unit data volume, it calculates the estimated time required to upgrade each ECU. Based on the upgrade method of each ECU and the estimated time required for all upgrades, it calculates the total power consumption of the upgrade. Through this method, the actual power consumption required for the vehicle to perform an OTA upgrade can be obtained. Based on this, other constraints can be used to determine whether the current SOC of the low-voltage battery meets the upgrade requirements, and necessary measures can be taken based on the determination result, thereby avoiding OTA upgrade failures.
[0107] Example 2
[0108] Figure 3 This is a flowchart illustrating another energy consumption estimation method for vehicle OTA upgrades according to an embodiment of this application.
[0109] like Figure 3 As shown, the energy consumption estimation method for vehicle OTA upgrades in this embodiment includes the following steps:
[0110] S201. Parse the OTA upgrade package.
[0111] That is, after the electronic device receives the OTA upgrade package transmitted by the Telematics Unit, it parses the OTA upgrade package to determine the number of ECUs to be upgraded and the data size of the upgrade package corresponding to each ECU, Data_size_1, Data_size_2, ..., Data_size_i, ..., Data_size_n.
[0112] In this embodiment, the specific device that parses the OTA upgrade package is the OTA Manager. The OTA Manager can be understood as a dedicated ECU, and can be understood as the main controller in the OTA upgrade process.
[0113] S202. Determine whether the ECU to be upgraded is of type II.
[0114] This involves assessing the ECU to be upgraded, determining whether it is a Class I or Class II ECU. A Class I ECU is one that does not affect the low-voltage battery charging process during the upgrade, while a Class II ECU is one that directly affects the low-voltage battery's ability to charge during the upgrade.
[0115] If all the ECUs to be upgraded are Class I ECUs, then since it will not affect the charging of the low-voltage battery, there will be no situation where the upgrade fails due to the battery being too low. In this case, there is no need to further estimate the upgrade energy consumption, so the subsequent energy consumption estimation process can be ended directly.
[0116] If the ECU to be upgraded includes a Class II ECU, then proceed with the next step, namely step S203.
[0117] S203. Calculate the estimated time required to upgrade each ECU based on the data volume of each upgrade package and the upgrade time per unit data volume.
[0118] That is, based on the data volume of the upgrade package for each ECU to be upgraded, the time T_1, T_2, ..., T_i, ..., T_n required for the corresponding ECU to be upgraded based on the upgrade package is calculated according to the data volume. The calculation formula is as follows:
[0119] T_i = Data_size_i * t_i
[0120] Where t_i is the upgrade time required per unit of data.
[0121] S204. Calculate the total power consumption of the upgrade based on the ECU upgrade method.
[0122] The total upgrade power consumption here refers to the total power consumption required for all ECUs to be upgraded. ECU upgrade methods include parallel upgrades and non-parallel upgrades. Given a specific upgrade method, the upgrade energy consumption of all ECUs is calculated based on different upgrade methods to obtain this total power consumption. It is worth noting that this total upgrade power consumption includes the power consumption required for the OTA Manager to parse the upgrade package.
[0123] In practical implementation, the ECU upgrade method in this embodiment includes both non-parallel upgrade and parallel upgrade methods. Therefore, the total upgrade power consumption is calculated through the following scheme.
[0124] First, examine the upgrade methods for multiple ECUs. Determine whether the upgrade methods for the multiple ECUs (i.e., the ECUs to be upgraded) are non-parallel or parallel.
[0125] Then, the total power consumption is calculated based on the upgrade method and the upgrade time for each ECU to be upgraded. The calculation of the total power consumption is the same as in the previous embodiment, so it will not be repeated here.
[0126] As can be seen from the above technical solution, this embodiment provides a method for estimating the energy consumption of vehicle OTA upgrades. This method is applied to the vehicle's electronic equipment. Specifically, after the vehicle receives an OTA upgrade package, it parses the OTA upgrade package to determine the number of ECUs to be upgraded and the data volume of the upgrade package corresponding to each ECU; it determines whether the upgrade type of the ECU to be upgraded is Class II; it calculates the estimated time required for each ECU to be upgraded based on the data volume of each upgrade package and the upgrade time per unit data volume; and it calculates the total power consumption of the upgrade based on the upgrade method of each ECU and the estimated time required for all upgrades. Through the above scheme, the actual power consumption required for the vehicle to perform an OTA upgrade can be obtained. Based on this, other constraints can be used to determine whether the current SOC of the low-voltage battery meets the upgrade requirements, and necessary measures can be taken based on the judgment results, thereby avoiding OTA upgrade failure. Furthermore, this application avoids the consumption of computing power (power consumption) of the vehicle's electronic equipment when all the ECUs to be upgraded are Class I ECUs by judging the type of the ECU to be upgraded before the OTA upgrade.
[0127] In addition, in one specific embodiment of this example, the following steps are also included, as follows: Figure 4 As shown:
[0128] S205. Calculate the safe remaining power of the vehicle's low-voltage battery based on the total power consumption of the upgrade.
[0129] Based on the total power consumption of the non-parallel ECU and the total power consumption of the parallel ECU, the total power consumption of all ECUs to be upgraded can be calculated as W_all = W_non_Parallel + W_Parallel;
[0130] The safe remaining charge of the vehicle's low-voltage battery is calculated based on the total upgrade power consumption W_all and the preset number of repeated upgrades N. The calculation formula is: SOC 初 = (N*W_all) / C / U+SOC 终 C is the rated capacity of the low-voltage battery, U is the rated voltage of the low-voltage battery, and SOC is the rated capacity. 终 The SOC value of the low-voltage battery after the OTA upgrade is completed, and N is the preset number of repeat upgrades.
[0131] For example, during an OTA (Over-The-Air) upgrade process, if the first upgrade fails, it will be repeatedly attempted. If multiple upgrades still fail, the ECU will be rolled back to the software version before the OTA upgrade. This example uses three repeated upgrades, but this does not imply patent limitations. The energy consumption assessment before the OTA upgrade considers the most stringent scenario: one normal upgrade failure, three repeated upgrade failures, and the ECU being rolled back to the original version. Therefore, the energy consumption is calculated as five times that of a normal upgrade (one normal upgrade failure + three repeated upgrade failures + one rollback). This multiplier can be set based on the number of times the first normal upgrade failed, the number of repeated upgrade failures, and the number of rollbacks.
[0132] The formula for the electrical energy of a storage battery is:
[0133] (SOC 初 -SOC 终 )*C*U=5*W_all
[0134] Among them, SOC 初 This indicates the battery's SOC value at the start of an OTA upgrade. SOC (State of Charge) reflects the battery's remaining capacity and is numerically defined as the ratio of remaining capacity to the battery's total capacity. 初 That is, the value to be determined, used to assess whether the current battery capacity can meet the safety upgrade requirements of the ECU; SOC 终 This refers to the battery's SOC value after the OTA upgrade is complete, where C is the battery's rated capacity and U is the battery's rated voltage.
[0135] The formula for calculating the battery's State of Charge (SOC) to meet the ECU safety upgrade requirements is: SOC 初 = (5*W_all) / C / U+SOC 终 Abnormal situation: When the calculated SOC 初 If the success rate is >100%, an error is recorded and reported to the backend, indicating that the upgrade package is too large and suggesting that the upgrade be performed in batches after unpacking.
[0136] OTA upgrade energy consumption assessment of the main controller based on the calculated SOC 初 and the actual SOC value (SOC) obtained from the low-voltage battery. 当前 To determine whether the current state of the battery meets the requirements for safe OTA upgrades of the vehicle's ECU, such as... Figure 5 As shown;
[0137] When the vehicle determines that the current battery status meets the energy consumption requirements for OTA upgrade, i.e., the current SOC is greater than or equal to the initial SOC, it sends the energy consumption assessment result to the OTAManager. The OTAManager then determines whether to perform an OTA upgrade based on the actual situation.
[0138] If it is determined that the current battery status does not meet the power consumption requirements for OTA upgrade, i.e., current SOC < SOC 初 The OTA upgrade energy consumption assessment main controller ECU2 requests the vehicle's high voltage to be powered on and performs intelligent charging of the low voltage battery. After the intelligent charging is completed, ECU2 performs the OTA upgrade energy consumption assessment again. If the energy consumption assessment passes, it reports the assessment result to the OTA Manager. The OTA Manager determines whether to perform the OTA upgrade based on the actual situation.
[0139] Example 3
[0140] Figure 6 This is a block diagram of a vehicle OTA upgrade energy consumption estimation device according to an embodiment of this application.
[0141] The energy consumption estimation device provided in this embodiment is applied to the electronic equipment of a vehicle. This electronic equipment is one of the multiple ECUs installed on the vehicle or a dedicated processor or controller. In actual implementation, which ECU is used as the electronic equipment depends on the situation. For electric vehicles, the ECU corresponding to the VCU, BCM, or OTA Manager can be selected as the electronic equipment; for fuel vehicles, the EMS can be used as the electronic equipment.
[0142] like Figure 6 As shown, the energy consumption estimation device for vehicle OTA upgrade in this embodiment includes a parsing processing module 10, a time calculation module 20, and a power consumption calculation module 30.
[0143] The parsing and processing module is used to parse OTA upgrade packages.
[0144] That is, after the electronic device receives the OTA upgrade package transmitted by the Telematics Unit, it parses the OTA upgrade package to determine the number of ECUs to be upgraded and the data size of the upgrade package corresponding to each ECU, Data_size_1, Data_size_2, ..., Data_size_i, ..., Data_size_n.
[0145] In this embodiment, the specific device that parses the OTA upgrade package is the OTA Manager. The OTA Manager can be understood as a dedicated ECU, or as a hardware module or software module of the electronic device in this embodiment.
[0146] The time calculation module is used to calculate the estimated time required to upgrade each ECU based on the data volume of each upgrade package and the upgrade time per unit data volume.
[0147] That is, based on the data volume of the upgrade package for each ECU to be upgraded, the time T_1, T_2, ..., T_i, ..., T_n required for the corresponding ECU to be upgraded based on the upgrade package is calculated according to the data volume. The calculation formula is as follows:
[0148] T_i = Data_size_i * t_i
[0149] Where t_i is the upgrade time required per unit of data.
[0150] The power consumption calculation module is used to calculate the total power consumption of the upgrade based on the upgrade method of the ECU.
[0151] The total upgrade power consumption here refers to the total power consumption required for all ECUs to be upgraded. ECU upgrade methods include parallel upgrades and non-parallel upgrades. Given a specific upgrade method, the upgrade energy consumption of all ECUs is calculated based on different upgrade methods to obtain this total power consumption. It is worth noting that this total upgrade power consumption includes the power consumption required for the OTA Manager to parse the upgrade package.
[0152] In practical implementation, the ECU upgrade method in this embodiment includes both non-parallel upgrade and parallel upgrade methods. Therefore, the power consumption calculation module in this embodiment includes a method acquisition unit and a calculation execution unit.
[0153] The method acquisition unit is used to detect the upgrade methods of multiple ECUs. It determines whether the upgrade method of the multiple ECUs, i.e., the ECUs to be upgraded, belongs to a non-parallel upgrade method or a parallel upgrade method.
[0154] The computational execution unit is used to calculate the total power consumption based on the upgrade method and the upgrade time for each ECU to be upgraded.
[0155] 1. For all ECUs under the non-parallel upgrade method, this computation execution unit calculates the total power consumption through the following steps:
[0156] 1) A single OTA upgrade involves multiple non-parallel upgrade ECUs. To calculate the total power consumption required by all non-parallel upgrade ECUs during the upgrade process, it is first necessary to calculate the power consumption P_single_i of the entire upgrade path (from the ECU to be upgraded to the OTAManager) for each ECU during the upgrade process. The calculation formula is as follows:
[0157] P_single_i=P_max_i(updateECU)+P_static_i(updateLink)+P_OTAManager;
[0158] Wherein, P_max_i(updateECU) represents the maximum operating power of the ECU to be upgraded, P_static_i(updateLink) represents the sum of the static power of all parent node ECUs on the link from the ECU to be upgraded to the OTA Manager, and P_OTAManager represents the rated operating power of the OTA controller.
[0159] Please refer to this again. Figure 1 Taking the upgrade of ECU5 and ECU8 as an example, the power consumption of the ECU5 upgrade link is: P_single_5=P_max_5+(P_static_2+P_static_1)+P_OTAManager. The meaning of each parameter is the same as that described in the energy consumption estimation method for vehicle OTA upgrade.
[0160] The power consumption of the ECU8 upgrade link is:
[0161] P_8=P_max_8+(P_static_6+P_static_1)+P_OTAManager;
[0162] The meanings of each parameter are the same as those described in the energy consumption estimation method for vehicle OTA upgrades.
[0163] 2) Calculate the expected power consumption W_single_i for a single upgrade of the ECU to be upgraded. The calculation formula is as follows:
[0164] W_single_i=P_single_i*T_i
[0165] 3) Calculate the expected power consumption W_non_Parallel for each upgrade of all ECUs to be upgraded. The calculation formula is as follows:
[0166]
[0167] Where Σ represents the summation symbol; n represents the number of non-parallel ECU upgrades.
[0168] The link power consumption and expected power consumption are obtained through the above calculations, and then the total power consumption of all ECUs to be upgraded is calculated by summing.
[0169] Please refer to this again. Figure 1 Taking the upgrade of ECU5 and ECU8 as an example, the total power consumption is:
[0170] W_non_Parallel=W_single_5+W_single_8=P_single_5*T_5+P_single_8*T_8.
[0171] 2. For all ECUs under parallel upgrades, the total power consumption is calculated through the following steps:
[0172] 1) Calculate the total power consumption W_multi_j of ECUs undergoing parallel upgrades in different network segments during the upgrade process. The calculation formula is as follows:
[0173] W_multi_j=W_publicLink_j+W_ECULink_j
[0174] Wherein, W_publicLink represents the energy consumption requirement of the common link ECU between parallel upgrade ECUs, and W_ECULink_j represents the sum of the energy consumption requirements of the ECUs in the non-common links of each group of parallel upgrade ECUs.
[0175] The formula for calculating W_publicLink_j is:
[0176] W_publicLink_j=(P_publicLink_j+P_OTAManager)*T_publicLink_j
[0177] Wherein, P_publicLink_j represents the sum of the static power of the common node ECUs between the parallel-upgraded ECUs and the OTA Manager, P_OTAManager is the rated power of the OTA controller, and T_publicLink_j represents the working time of the common link of the parallel-upgraded ECUs. This value is the longest upgrade time among all ECUs in the parallel upgrade.
[0178] Please refer to the following: Figure 1 Taking the parallel upgrade of ECU4 and ECU9 as an example, the maximum operating power of ECU4 and ECU9 to be upgraded are P_max_4 and P_max_9, respectively; the upgrade time is T_4 and T_9, respectively; the common ECUs for the parallel upgrade link are ECU1 and OTAManager, with operating powers of P_static_1 and P_OTAManager, respectively. Therefore, the sum of the power of the common link ECUs is P_publicLink = P_static_1 + P_OTAManager; the working time of the common link ECUs is T_publicLink = max(T_4, T_9), where max() represents finding the maximum value between T_4 and T_9.
[0179] W_ECULink_j represents the sum of the power consumption requirements of the ECUs to be upgraded and the ECUs connected to the common link in each group of parallel upgrade ECUs. The formula for calculating W_ECU_j is:
[0180] W_ECU_j=Σ(P_max_i(updateECU)+P_static_linkECUs)*T_i
[0181] Wherein, P_max_i(updateECU) represents the maximum operating power of the ECU to be upgraded; P_static_linkECUs represents the sum of the static power of the ECUs to be upgraded and the ECUs in the common link; T_i represents the estimated upgrade time of the ECU to be upgraded; Σ represents the summation symbol, that is, the summation of the energy consumption requirements of multiple ECUs to be upgraded in parallel.
[0182] Taking the parallel upgrade of ECU4 and ECU9 as an example, the maximum operating power of the ECUs to be upgraded are P_max_4 and P_max_9, respectively; the P_static_linkECUs are P_static_2 and P_static_7, respectively; and the estimated upgrade times of the ECUs to be upgraded are T_4 and T_9, respectively. Therefore, the total energy consumption requirement for the parallel upgrade of the non-common link part is W_ECULink = (P_max_4 + P_static_2) * T_4 + (P_max_9 + P_static_7) * T_9.
[0183] The energy consumption requirement W_Parallel for all parallel ECU upgrades can be calculated using the following formula:
[0184]
[0185] m represents the number of parallel upgrade groups during a single OTA upgrade process.
[0186] The total power consumption W_all of all ECUs to be upgraded can be obtained from the above calculations.
[0187] W_all=W_non_Parallel+W_Parallel.
[0188] In addition, in specific implementation, if the upgrade methods for all ECUs that need to be upgraded include both non-parallel upgrade methods and parallel upgrade methods, the total power consumption of the corresponding ECU under each upgrade method needs to be calculated using the two calculation schemes mentioned above. The total power consumption required for upgrading all ECUs is the sum of the two total power consumption methods mentioned above.
[0189] As can be seen from the above technical solution, this embodiment provides a method for estimating the energy consumption of vehicle OTA upgrades. This method is applied to the vehicle's electronic equipment. Specifically, after the vehicle receives an OTA upgrade package, it parses the package to determine the number of ECUs to be upgraded and the data volume of the upgrade package corresponding to each ECU. Based on the data volume of each upgrade package and the upgrade time per unit data volume, it calculates the estimated time required for each ECU to be upgraded. Based on the upgrade method for each ECU and the estimated time required for all upgrades, it calculates the total upgrade power consumption, which also includes the power consumption required to receive and parse the OTA upgrade package. Through this method, the actual power consumption required for the vehicle to perform an OTA upgrade can be obtained. Based on this, other constraints can be used to determine whether the current SOC of the low-voltage battery meets the upgrade requirements, and necessary measures can be taken based on the determination result, thereby avoiding OTA upgrade failures.
[0190] In addition, in one specific embodiment of this application, an upgrade type determination unit 40 is also included, such as... Figure 7 As shown.
[0191] This upgrade type determination unit is used to determine whether the ECU to be upgraded is of type II.
[0192] This involves determining the type of ECU to be upgraded, specifically whether it is a Class I or Class II ECU. A Class I ECU refers to one that does not affect the charging of the low-voltage battery during the upgrade process, while a Class II ECU refers to one that will affect the charging of the low-voltage battery during the upgrade process.
[0193] If all the ECUs to be upgraded are Class I ECUs, the upgrade will not fail because it will not affect the capacity of the low-voltage battery. In this case, there is no need to further estimate the upgrade energy consumption, so the subsequent process can be terminated directly to reduce the consumption of ECU computing power.
[0194] If the ECUs to be upgraded include Class II ECUs, the control time calculation module calculates the estimated time required to upgrade all ECUs based on the data volume of each upgrade package.
[0195] In another specific embodiment of this example, a safe remaining power calculation module 50 is also included, specifically as follows: Figure 8 As shown.
[0196] This safe remaining power calculation module is used to determine the safe remaining power of the low-voltage battery in the vehicle undergoing the total power consumption upgrade. Based on the aforementioned calculations of the total power consumption of the non-parallel ECU and the total power consumption of the parallel ECU, the total power consumption of all ECUs to be upgraded can be calculated: W_all = W_non_Parallel + W_Parallel.
[0197] The safe remaining charge of the vehicle's low-voltage battery is calculated based on the total upgrade power consumption W_all and the preset number of repeated upgrades N. The calculation formula is: SOC 初 = (N*W_all) / C / U+SOC 终 C is the rated capacity of the low-voltage battery, U is the rated voltage of the low-voltage battery, and SOC is the rated capacity. 终 The SOC value of the low-voltage battery after the OTA upgrade is completed, and N is the preset number of repeat upgrades.
[0198] For example, during an OTA (Over-The-Air) upgrade process, if the first upgrade fails, it will be repeatedly attempted. If multiple upgrades still fail, the ECU will be rolled back to the software version before the OTA upgrade. This example uses three repeated upgrades, but this does not imply patent limitations. The energy consumption assessment before the OTA upgrade considers the most stringent scenario: one normal upgrade failure, three repeated upgrade failures, and the ECU being rolled back to the original version. Therefore, the energy consumption is calculated as five times that of a normal upgrade (one normal upgrade failure + three repeated upgrade failures + one rollback). This multiplier can be set based on the number of times the first normal upgrade failed, the number of repeated upgrade failures, and the number of rollbacks.
[0199] The formula for the electrical energy of a storage battery is:
[0200] (SOC 初 -SOC 终 )*C*U=5*W_all
[0201] Among them, SOC 初 This indicates the battery's SOC value at the start of an OTA upgrade. SOC (State of Charge) reflects the battery's remaining capacity and is numerically defined as the ratio of remaining capacity to the battery's total capacity. 初 That is, the value to be determined, used to assess whether the current battery capacity can meet the ECU safety upgrade requirements; SOC 终 After the OTA upgrade is completed, the battery SOC value (refer to the intelligent charging SOC trigger value setting) is shown. C is the rated capacity of the battery, and U is the rated voltage of the battery.
[0202] The formula for calculating the battery's State of Charge (SOC) to meet the ECU safety upgrade requirements is: SOC 初 = (5*W_all) / C / U+SOC 终 Abnormal situation: When the calculated SOC 初 If the success rate is >100%, an error is recorded and reported to the backend, indicating that the upgrade package is too large and suggesting that the upgrade be performed in batches after unpacking.
[0203] OTA upgrade energy consumption assessment: The main controller compares and calculates the initial SOC value with the actual SOC value collected from the battery. 当前 To determine whether the current state of the battery meets the requirements for safe OTA upgrades of the vehicle's ECU, such as... Figure 5 As shown;
[0204] When the vehicle determines that the current battery status meets the energy consumption requirements for OTA upgrades, i.e., SOC (State of Charge) 当前 ≥SOC 初 The system reports the energy consumption assessment results to the OTAManager, which then determines whether to perform an OTA upgrade based on the actual situation.
[0205] If it is determined that the current battery status does not meet the power consumption requirements for OTA upgrades, i.e., SOC 当前 <SOC 初 The OTA upgrade energy consumption assessment main controller ECU2 requests the vehicle's high voltage to be powered on and performs intelligent charging of the low voltage battery. After the intelligent charging is completed, ECU2 performs the OTA upgrade energy consumption assessment again. If the energy consumption assessment passes, it reports the assessment result to the OTA Manager. The OTA Manager determines whether to perform the OTA upgrade based on the actual situation.
[0206] Example 4
[0207] This embodiment provides an electronic device for a vehicle, which can be understood as one of multiple ECUs installed in the vehicle or a dedicated processor or controller. In actual implementation, which ECU is used as the electronic device depends on the situation. For electric vehicles, the ECU corresponding to the VCU, BCM, or OTA Manager can be selected as the electronic device; for gasoline vehicles, the EMS can be used.
[0208] This electronic device is used to parse OTA upgrade packages received by the vehicle, determining the number of ECUs to be upgraded and the data volume of the upgrade package corresponding to each ECU. Based on the data volume of each upgrade package and the upgrade time per unit data volume, it calculates the estimated time required to upgrade each ECU. Based on the upgrade method for each ECU and the estimated time required for all upgrades, it calculates the total upgrade power consumption, which also includes the power consumption required to receive and parse the OTA upgrade package. This scheme yields the actual power consumption required for the vehicle to perform an OTA upgrade. Based on this, other constraints can be used to determine whether the current SOC of the low-voltage battery meets the upgrade requirements, and necessary measures can be taken based on the determination result to avoid OTA upgrade failures.
[0209] Example 5
[0210] Figure 9 This is a block diagram of an electronic device according to an embodiment of this application.
[0211] like Figure 9 As shown, the electronic device provided in this embodiment is applied to a vehicle. This electronic device can be understood as one of the multiple ECUs installed in the vehicle, or a dedicated processor or controller. In actual implementation, which ECU is used as the electronic device depends on the situation. For electric vehicles, the ECU corresponding to the VCU, BCM, or OTA Manager can be selected as the electronic device; for gasoline vehicles, the EMS can be used as the electronic device.
[0212] The electronic device includes at least one processor 101 and a memory 102, which are connected by a data bus 103. The memory is used to store computer programs or instructions, and the processor is used to execute the corresponding computer programs or instructions so that the electronic device can implement the energy consumption estimation method for vehicle OTA upgrades in Embodiment 1 or Embodiment 2.
[0213] This method specifically involves parsing the OTA upgrade package to determine the number of ECUs to be upgraded and the data volume of the upgrade package corresponding to each ECU. Based on the data volume of each upgrade package and the upgrade time per unit data volume, the estimated time required for each ECU to be upgraded is calculated. Finally, the total upgrade power consumption is calculated based on the upgrade method for each ECU and the estimated time required for all upgrades. The total upgrade power consumption also includes the power consumption required to receive and parse the OTA upgrade package. This approach yields the actual power consumption required for a vehicle to perform an OTA upgrade. Based on this, other constraints can be used to determine whether the current SOC of the low-voltage battery meets the upgrade requirements, and necessary measures can be taken based on the determination results to avoid OTA upgrade failures.
[0214] The various embodiments in this specification are described in a progressive manner, with each embodiment focusing on the differences from other embodiments. The same or similar parts between the various embodiments can be referred to each other.
[0215] Those skilled in the art will understand that embodiments of the present invention can be provided as methods, apparatus, or computer program products. Therefore, embodiments of the present invention can take the form of entirely hardware embodiments, entirely software embodiments, or embodiments combining software and hardware aspects. Furthermore, embodiments of the present invention can take the form of computer program products implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.
[0216] This invention is described with reference to flowchart illustrations and / or block diagrams of methods, terminal devices (systems), and computer program products according to embodiments of the invention. It will be understood that each block of the flowchart illustrations and / or block diagrams, and combinations of blocks in the flowchart illustrations and / or block diagrams, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, special-purpose computer, embedded processor, or other programmable data processing terminal device to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing terminal device, generate instructions for implementing the flowchart illustrations and / or block diagrams. Figure 1 One or more processes and / or boxes Figure 1 A device that provides the functions specified in one or more boxes.
[0217] These computer program instructions may also be stored in a computer-readable storage medium that can direct a computer or other programmable data processing terminal device to operate in a particular manner, such that the instructions stored in the computer-readable storage medium produce an article of manufacture including instruction means, which are implemented in a process Figure 1 One or more processes and / or boxes Figure 1 The function specified in one or more boxes.
[0218] These computer program instructions can also be loaded onto a computer or other programmable data processing terminal equipment, causing a series of operational steps to be performed on the computer or other programmable terminal equipment to produce a computer-implemented process, thereby providing instructions that execute on the computer or other programmable terminal equipment for implementing the process. Figure 1 One or more processes and / or boxes Figure 1 The steps of the function specified in one or more boxes.
[0219] Although preferred embodiments of the present invention have been described, those skilled in the art, upon learning the basic inventive concept, can make other changes and modifications to these embodiments. Therefore, the appended claims are intended to be interpreted as including the preferred embodiments as well as all changes and modifications falling within the scope of the embodiments of the present invention.
[0220] Finally, it should be noted that in this document, relational terms such as "first" and "second" are used only to distinguish one entity or operation from another, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Furthermore, the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or terminal device that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a process, method, article, or terminal device. Without further limitations, an element defined by the phrase "comprising one..." does not exclude the presence of other identical elements in the process, method, article, or terminal device that includes said element.
[0221] The technical solution provided by the present invention has been described in detail above. Specific examples have been used to illustrate the principle and implementation of the present invention. The description of the above embodiments is only for the purpose of helping to understand the method and core idea of the present invention. At the same time, for those skilled in the art, there will be changes in the specific implementation and application scope based on the idea of the present invention. Therefore, the content of this specification should not be construed as a limitation of the present invention.
Claims
1. A method for estimating energy consumption during vehicle OTA upgrades, applied to vehicle electronic devices, characterized in that, The energy consumption estimation method includes the following steps: When the vehicle's OTA controller receives the OTA upgrade package, it parses the OTA upgrade package to determine the number of multiple ECUs to be upgraded and the data volume of the upgrade package corresponding to each ECU, and determines the upgrade order of the multiple ECUs and the upgrade method of the ECUs in one OTA upgrade. The upgrade method includes non-parallel upgrade and parallel upgrade. Calculate the estimated time required to upgrade each ECU based on the data volume of each upgrade package and the upgrade time per unit data volume. The total power consumption for the upgrade is calculated based on the upgrade method, required power, and estimated upgrade time for each ECU. The required power includes the static power of the ECU that acts as a data router in the upgrade link, the maximum operating power of the ECU to be upgraded, and the rated operating power of the OTA controller. The total power consumption for the upgrade is the sum of the total power consumption of the non-parallel ECUs and the total power consumption of the parallel ECUs. If an OTA upgrade involves multiple ECUs that are not upgraded in parallel, calculate the total power consumption required for all ECUs during the upgrade process. This includes the following calculation steps: Calculate the power P_single_i of a single upgrade for the ECU to be upgraded in the entire upgrade link; P_single_i = P_max_i(updateECU) + P_static_i(updateLink) + P_OTAManager; Where P_max_i(updateECU) represents the maximum operating power of the ECU to be upgraded, P_static_i(updateLink) represents the sum of the static power of all parent node ECUs on the link from the ECU to the OTA Manager, and P_OTAManager is the rated power of the OTA controller; The expected power consumption W_single_i for a single upgrade of the ECU to be upgraded is calculated using the following formula: Where T_i represents the estimated upgrade time of the ECU to be upgraded, and T_i is the product of the data volume of the upgrade package and the upgrade time per unit data volume; Calculate the expected total power consumption W_non_ParallelW_all for a single upgrade of all ECUs to be upgraded, using the following formula: Where n represents the number of ECUs that are upgraded in a non-parallel manner; If a single OTA upgrade involves multiple ECUs being upgraded in parallel, calculate the total power consumption required for all ECUs to be upgraded in parallel during the upgrade process; this includes the following steps: Calculate the energy consumption requirement W_multi_j for each group of parallel ECU upgrades using the following formula: W_multi_j = W_publicLink_j + W_ECULink_j; Where j represents the number of parallel upgrade groups; W_publicLink_j represents the energy consumption requirement of the ECUs in the common link between the parallel upgrade ECUs; W_ECULink_j represents the sum of the energy consumption requirements of the ECUs in the non-common link in each group of parallel upgrade ECUs; Furthermore, the formula for calculating W_publicLink_j is as follows: Wherein, P_publicLink_j represents the sum of the static power of all common node ECUs between the parallel upgrade ECU and the OTA controller; P_OTAManager is the rated power of the OTA controller; T_publicLink_j is the working time of the parallel upgrade common link ECU, and the working time is the longest upgrade time among the j-th group of parallel upgrade ECUs; Furthermore, the formula for calculating W_ECULink_j is as follows: Where P_max_i represents the maximum operating power of the ECU to be upgraded in the parallel upgrade; P_static_linkECUs_i represents the sum of the static power of the ECUs to be upgraded and the ECUs in the common link in the parallel upgrade; and T_i represents the estimated upgrade time of the ECU to be upgraded. Calculate the total power consumption W_Parallel for all parallel ECU upgrades using the formula W_Parallel= =W_multi_1 + W_multi_2 +…+ W_multi_j +…+ W_multi_m, where m represents the number of parallel upgrade groups during an OTA upgrade.
2. The energy consumption estimation method as described in claim 1, characterized in that, Before the step of calculating the estimated time required to upgrade each ECU based on the data volume of each upgrade package, the method further includes the following step: The type of all ECUs to be upgraded is determined. If all ECUs are of type I, then it is not necessary to estimate the total power consumption required for upgrading type I ECUs. If some or all of the ECUs are type II ECUs, then the step of calculating the estimated time required to upgrade each ECU based on the data volume of each upgrade package is executed. Herein, type I ECUs are ECUs that do not affect the low-voltage battery charging during the upgrade process, and type II ECUs are ECUs that directly affect the low-voltage battery and prevent it from being charged during the upgrade process.
3. The energy consumption estimation method as described in any one of claims 1 to 2, characterized in that, The steps also include: Based on the total power consumption of the non-parallel ECUs and the total power consumption of the parallel ECUs, calculate the total power consumption of all ECUs to be upgraded, W_all = W_non_Parallel + W_Parallel; The safe remaining charge (SOC) of the vehicle's low-voltage battery is calculated based on the total upgrade power consumption W_all and the preset number of repeated upgrades. 初 The calculation formula is: C is the rated capacity of the low-voltage battery, U is the rated voltage of the low-voltage battery, and SOC is the rated capacity. 终 This represents the lower limit of the low-voltage battery's SOC after the OTA upgrade is complete, and N is the preset number of repeat upgrades.
4. The energy consumption estimation method as described in claim 3, characterized in that, The OTA controller is based on SOC 初 In addition, the actual SOC value obtained from the low-voltage battery is used to determine whether the current state of the low-voltage battery can meet the requirements of the vehicle ECU for safe OTA upgrades.
5. A power consumption estimation device for vehicle OTA upgrades, applied to vehicle electronic equipment, characterized in that, The energy consumption estimation device includes: The parsing and processing module parses the OTA upgrade package after the vehicle's OTA controller receives it, determines the number of multiple electronic control units (ECUs) to be upgraded and the data volume of the upgrade package corresponding to each ECU, and determines the upgrade order and upgrade method of the multiple ECUs in one OTA upgrade, including non-parallel upgrade and parallel upgrade. The time calculation module calculates the estimated time required to upgrade each ECU based on the data volume of each upgrade package and the upgrade time per unit data volume. The power consumption calculation module calculates the total power consumption of the upgrade based on the upgrade method, required power and estimated time required for each ECU. The required power includes the static power of the ECU that plays a data routing role in the upgrade link, the maximum operating power of the ECU and the rated operating power of the OTA controller. The total power consumption of the upgrade is the sum of the total power consumption of the non-parallel ECU and the total power consumption of the parallel ECU. If an OTA upgrade includes multiple ECUs that are not upgraded in parallel, the power consumption calculation module calculates the total power consumption required for all non-parallel upgrades of the ECUs during the upgrade process; including the following: Calculate the power P_single_i of a single upgrade for the ECU to be upgraded in the entire upgrade link; P_single_i = P_max_i(updateECU) + P_static_i(updateLink) + P_OTAManager; Where P_max_i(updateECU) represents the maximum operating power of the ECU to be upgraded, P_static_i(updateLink) represents the sum of the static power of all parent node ECUs on the link from the ECU to the OTA Manager, and P_OTAManager is the rated power of the OTA controller; The expected power consumption W_single_i for a single upgrade of the ECU to be upgraded is calculated using the following formula: Where T_i represents the estimated upgrade time of the ECU to be upgraded, and T_i is the product of the data volume of the upgrade package and the upgrade time per unit data volume; Calculate the expected total power consumption W_non_ParallelW_all for a single upgrade of all ECUs to be upgraded, using the following formula: Where n represents the number of ECUs that are upgraded in a non-parallel manner; If a single OTA upgrade includes multiple ECUs being upgraded in parallel, the power consumption calculation module calculates the total power consumption required for the parallel upgrade of all ECUs during the upgrade process; including the following: Calculate the energy consumption requirement W_multi_j for each group of parallel ECU upgrades using the following formula: W_multi_j = W_publicLink_j + W_ECULink_j; Where j represents the number of parallel upgrade groups; W_publicLink_j represents the energy consumption requirement of the ECUs in the common link between the parallel upgrade ECUs; W_ECULink_j represents the sum of the energy consumption requirements of the ECUs in the non-common link in each group of parallel upgrade ECUs; Furthermore, the formula for calculating W_publicLink_j is as follows: Wherein, P_publicLink_j represents the sum of the static power of all common node ECUs between the parallel upgrade ECU and the OTA controller; P_OTAManager is the rated power of the OTA controller; T_publicLink_j is the working time of the parallel upgrade common link ECU, and the working time is the longest upgrade time among the j-th group of parallel upgrade ECUs; Furthermore, the formula for calculating W_ECULink_j is as follows: Where P_max_i represents the maximum operating power of the ECU to be upgraded in the parallel upgrade; P_static_linkECUs_i represents the sum of the static power of the ECUs to be upgraded and the ECUs in the common link in the parallel upgrade; and T_i represents the estimated upgrade time of the ECU to be upgraded. Calculate the total power consumption W_Parallel for all parallel ECU upgrades using the formula W_Parallel= =W_multi_1 + W_multi_2 +…+ W_multi_j +…+ W_multi_m, where m represents the number of parallel upgrade groups during an OTA upgrade.
6. The energy consumption estimation device as described in claim 5, characterized in that, The power consumption calculation module includes: The upgrade method acquisition unit is used to acquire the upgrade methods of multiple ECUs; The computational execution unit calculates the total power consumption based on the obtained upgrade method.
7. An electronic device used in a vehicle, characterized in that, The device is equipped with an energy consumption estimation device as described in any one of claims 5 to 6.
8. An electronic device used in a vehicle, characterized in that, It includes at least one processor and a memory connected to the processor, wherein: The memory is used to store computer programs or instructions; The processor is used to execute the computer program or instructions to enable the electronic device to implement the energy consumption estimation method for vehicle OTA upgrades as described in any one of claims 1 to 4.
Citation Information
Patent Citations
Vehicle upgrading method and device
CN112463190A