CN114327560A - Energy consumption estimation method and device for OTA (over the air) upgrade of vehicle and electronic equipment - Google Patents

Energy consumption estimation method and device for OTA (over the air) upgrade of vehicle and electronic equipment Download PDF

Info

Publication number
CN114327560A
CN114327560A CN202111660357.9A CN202111660357A CN114327560A CN 114327560 A CN114327560 A CN 114327560A CN 202111660357 A CN202111660357 A CN 202111660357A CN 114327560 A CN114327560 A CN 114327560A
Authority
CN
China
Prior art keywords
upgrade
upgrading
ecu
ota
ecus
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202111660357.9A
Other languages
Chinese (zh)
Inventor
冯松
邓治超
蒋峰
王倩倩
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Jingwei Hirain Tech Co Ltd
Original Assignee
Beijing Jingwei Hirain Tech Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Jingwei Hirain Tech Co Ltd filed Critical Beijing Jingwei Hirain Tech Co Ltd
Priority to CN202111660357.9A priority Critical patent/CN114327560A/en
Publication of CN114327560A publication Critical patent/CN114327560A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Stored Programmes (AREA)

Abstract

The application discloses a method, a device and electronic equipment for estimating energy consumption of OTA (over the air) upgrading of a vehicle, wherein the method and the device are used for analyzing an OTA upgrading packet after the vehicle receives the OTA upgrading packet, and determining the number of a plurality of ECUs to be upgraded and the data volume of the upgrading packet corresponding to each ECU; calculating the estimated time required by each ECU for upgrading according to the data volume of each upgrading packet and the upgrading time of the unit data volume; and calculating total upgrading power consumption according to the upgrading mode, the required power and the estimated time required by upgrading of each ECU. Through the scheme, the estimated power consumption required by OTA (over the air) upgrading of the vehicle can be obtained, on the basis, whether the SOC of the current low-voltage storage battery meets the upgrading requirement can be judged according to other constraint conditions, and necessary measures are taken according to the judgment result, so that OTA upgrading failure can be avoided.

Description

Energy consumption estimation method and device for OTA (over the air) upgrade of vehicle and electronic equipment
Technical Field
The application relates to the technical field of vehicle software, in particular to a method and a device for estimating energy consumption of OTA (over the air) upgrading of a vehicle and electronic equipment.
Background
OTA (Over-the-Air Technology) is a Technology for implementing remote software upgrade or installation to a corresponding device through a mobile communication manner. The OTA technology can realize the functions of continuously enriching vehicle functions, repairing existing software problems/information security loopholes and updating vehicle basic data after vehicles are off-line from a workshop, and more whole vehicle manufacturers are on the whole vehicle, especially electric vehicles.
The difference between implementing the OTA to the vehicle and implementing the OTA to the mobile phone/computer is that the vehicle is closely related to personal safety, so that the consideration of safety in the OTA process of the whole vehicle is more important, the time, the place and the vehicle state suitable for the OTA upgrade of the vehicle need to be accurately judged, the vehicle upgrade may fail at an improper upgrade time, and the vehicle can not be used due to brick change under severe conditions. The OTA of cell phones/computers generally does not need to take these issues into account.
When the OTA of the whole vehicle is upgraded, the residual electric quantity of the storage battery can support the vehicle to complete the OTA upgrading process in the OTA upgrading process of the whole vehicle. The current common processing strategy is to set the SOC threshold of the battery upgraded by the OTA, and before the OTA upgrade, only judge whether the SOC of the vehicle low-voltage battery is above the threshold.
With the development of intelligent driving, more and more ECUs are needed for OTA upgrading of the whole vehicle. The expected energy consumption of OTA upgrading comprises the size of an upgrading packet, the type of vehicle-mounted communication, the software quality of the upgrading packet and the like, so that the power supply safety in the OTA upgrading process cannot be completely guaranteed only by setting the SOC threshold, and the OTA upgrading failure is easily caused.
Disclosure of Invention
In view of the above, the present application provides an energy consumption estimation method and apparatus for OTA upgrade of a vehicle, and an electronic device, which are used to estimate energy consumption during the OTA upgrade of the vehicle, so as to avoid OTA upgrade failure.
In order to achieve the above object, the following solutions are proposed:
an energy consumption estimation method for OTA (over the air) upgrade of a vehicle is applied to electronic equipment of the vehicle, and comprises the following steps:
after receiving an OTA upgrade package, an OTA controller of the vehicle analyzes the OTA upgrade package, determines the number of a plurality of ECUs to be upgraded and the data volume of the upgrade package corresponding to each ECU, and determines the upgrade sequence of the plurality of ECUs in one OTA upgrade and the upgrade mode of the ECUs, wherein the upgrade mode comprises non-parallel upgrade and parallel upgrade;
calculating the estimated time required by each ECU for upgrading according to the data volume of each upgrading packet and the upgrading time of unit data volume;
and calculating total upgrade power consumption according to the upgrade mode, the required power and the pre-estimated time required by the upgrade of each ECU, wherein the required power comprises the static power of the ECU playing a role in data routing in an upgrade link, the maximum operating power of the ECU to be upgraded and the rated operating power of an OTA controller, and the total upgrade power consumption is the sum of the total non-parallel ECU power consumption and the total parallel ECU power consumption.
In one embodiment, if one OTA upgrade comprises a plurality of ECUs upgraded in a non-parallel way, calculating the total power consumption of the non-parallel upgrade required by all the ECUs upgraded in the non-parallel way in the upgrade process; the method comprises the following calculation steps:
calculating the power P _ single _ i of single upgrade of the current ECU to be upgraded on the whole upgrade link; p _ single _ i ═ P _ max _ i (updateecu) + P _ static _ i (updatelink) + P _ OTAManager;
wherein, P _ max _ i (updateECU) represents the maximum operation power of the ECU to be upgraded, and P _ static _ i (updateLink) represents the sum of the static power of the ECU to be upgraded to all the parent node ECUs on the OTA Manager link; p _ OTAManager represents the rated operating power of the OTA controller;
calculating the expected power consumption W _ single _ i of the current ECU to be upgraded in a single upgrade, wherein the calculation formula is as follows: w _ single _ i ═ P _ single _ i × T _ i; wherein, T _ i is the estimated time of the ECU to be upgraded currently, and T _ i is the product of the data volume of the upgrade package and the upgrade time of unit data volume;
calculating the expected total power consumption W _ non _ parallelW _ all of the ECU to be upgraded in a single upgrade, wherein the calculation formula is as follows:
Figure BDA0003447373420000031
wherein n represents the number of the non-parallel upgrading ECUs.
In one embodiment, if a plurality of ECUs for parallel upgrading are included in one OTA upgrading, the total parallel upgrading power consumption required by all ECUs for parallel upgrading in the upgrading process is calculated; the method comprises the following steps:
calculating the energy consumption requirement W _ multi _ j of each group of parallel upgrading ECUs, wherein the calculation formula is as follows: w _ multi _ j ═ W _ public link _ j + W _ eclulink _ j;
wherein j represents the number of groups upgraded in parallel; w _ publicLink _ j represents the energy consumption requirement of a public link ECU between parallel upgrading ECUs; w _ ECULink _ j represents the sum of ECU energy consumption requirements in non-public links in each group of parallel upgrade ECUs;
further, the calculation formula of W _ publicLink _ j is:
W_publicLink_j=(P_publicLink_j+P_OTAManager)*T_publicLink_j;
wherein, P _ public Link _ j represents the sum of static power of all common node ECUs between the parallel upgraded ECUs and the OTA controller; p _ OTAManager is the rated power of the OTA controller, T _ public Link _ j is the working time of the parallel upgrading public link ECU, and the working time is the longest time consumed by upgrading in the group of parallel upgrading ECUs;
further, the calculation formula of W _ eclulink _ j is:
W_ECULink_j=Σ(P_max_i+P_static_linkECUs_i)*T_i
wherein, P _ max _ i represents the maximum running 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 between the ECU to be upgraded and the public link in the parallel upgrade; t _ i represents the corresponding estimated time required by upgrading of each ECU to be upgraded;
calculating the total power consumption W _ Parallel of all Parallel upgrading ECUs, wherein the calculation formula is
Figure BDA0003447373420000032
Figure BDA0003447373420000033
m represents the number of groups upgraded in parallel in the one-time OTA upgrading process.
In an embodiment, before the step of calculating the estimated time required for upgrading each ECU according to the data amount of each upgrade package, the method further includes the steps of:
judging the types of all the ECUs to be upgraded, if all the types of the ECUs are the type I ECUs, estimating the total upgrading power consumption required in the upgrading process of the type I ECUs, and if some or all the ECUs are the type II ECUs, executing the step of calculating the estimated time required by upgrading of each ECU according to the data volume of each upgrading packet.
In one embodiment, the method further comprises the steps of: calculating the total power consumption of all the ECUs to be upgraded according to the total power consumption of the non-Parallel ECUs and the total power consumption of the Parallel ECUs, wherein W _ all is W _ non _ Parallel + W _ Parallel;
calculating the safe residual electric quantity of the low-voltage storage battery of the vehicle according to the total upgrade power consumption W _ all and the preset repeated upgrade frequency N, wherein the calculation formula is as follows: SOCFirst stage=(N*W_all)/C/U+SOCFinal (a Chinese character of 'gan')C is the rated capacity of the low-voltage storage battery, U is the rated voltage of the low-voltage storage battery, SOCFinal (a Chinese character of 'gan')And N is a preset repeated upgrading frequency, namely the SOC lower limit value of the low-voltage storage battery after the OTA upgrading is completed.
In one embodiment, the OTA controller is based on SOCFirst stageAnd acquiring an actual SOC value obtained by the low-voltage storage battery to judge whether the current state of the low-voltage storage battery can meet the requirement of safe OTA upgrading of the ECU of the whole vehicle.
The application also provides an energy consumption estimation device for OTA upgrade of a vehicle, which is applied to an electronic device of the vehicle, and is characterized in that the energy consumption estimation device comprises:
the analysis processing module is used for analyzing the OTA upgrade package after the OTA controller of the vehicle receives the OTA upgrade package, determining the number of a plurality of Electronic Control Units (ECU) to be upgraded and the data volume of the upgrade package corresponding to each Electronic Control Unit (ECU), and determining the upgrade sequence of the plurality of Electronic Control Units (ECU) in one OTA upgrade and the upgrade mode of the ECU, wherein the upgrade mode comprises non-parallel upgrade and parallel upgrade;
the time calculation module is used for calculating the estimated time required by upgrading each ECU according to the data volume of each upgrading packet and the unit data volume upgrading time;
and the power consumption calculation module is used for calculating total upgrade power consumption according to the upgrade mode, the required power and the pre-estimated time required by upgrade of each ECU, wherein the required power comprises the static power of the ECU playing a role in data routing in an upgrade link, the maximum operating power of the ECU to be upgraded and the rated operating power of the OTA controller, and the total upgrade power consumption is the sum of the total non-parallel ECU power consumption and the total parallel ECU power consumption.
In one embodiment, the power consumption calculation module includes:
the mode acquisition unit is used for acquiring the upgrading modes of the plurality of ECUs;
and the calculation execution unit calculates the total power consumption according to the acquired upgrading mode.
The application also provides an electronic device, which is applied to a vehicle and is provided with the energy consumption estimation device.
The present application further provides an electronic device applied to a vehicle, comprising at least one processor and a memory connected to the processor, wherein:
the memory is for storing a computer program or instructions;
the processor is configured to execute the computer program or instructions to cause the electronic device to implement the above-described energy consumption estimation method for OTA upgrade of a vehicle.
According to the technical scheme, the method and the device for estimating the energy consumption of the OTA upgrading of the vehicle and the electronic equipment are characterized in that after the vehicle receives the OTA upgrading packet, the OTA upgrading packet is analyzed, and the number of a plurality of ECUs to be upgraded and the data volume of the upgrading packet corresponding to each ECU are determined; calculating the estimated time required by each ECU for upgrading according to the data volume of each upgrading packet and the upgrading time of unit data volume; and calculating total upgrade power consumption according to the upgrade mode of each ECU and the estimated time required by all the upgrades. By the scheme, the actual power consumption required by OTA upgrading of the vehicle can be obtained, whether the SOC of the current low-voltage storage battery meets the upgrading requirement or not can be judged according to other constraint conditions, and necessary measures are taken according to the judgment result, so that OTA upgrading failure can be avoided.
Drawings
In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments of the present application, and for those skilled in the art, other drawings can be obtained according to the drawings without creative efforts.
FIG. 1 is a network topology of a vehicle of the present application;
FIG. 2 is a flowchart of a method for estimating energy consumption for OTA upgrade of a vehicle according to an embodiment of the present application;
FIG. 3 is a flow chart of another energy consumption estimation method for OTA upgrade of a vehicle according to an embodiment of the present application;
FIG. 4 is a flow chart of another method for estimating energy consumption for OTA upgrade of a vehicle according to an embodiment of the present application;
FIG. 5 is a schematic diagram of the capacity of a low-voltage battery according to an embodiment of the present application;
FIG. 6 is a block diagram of an energy consumption estimation apparatus for OTA upgrade of a vehicle according to an embodiment of the present application;
FIG. 7 is a block diagram of another OTA vehicle upgrade energy consumption estimation device according to an embodiment of the present application;
FIG. 8 is a block diagram of an alternative embodiment of an apparatus for OTA upgrade energy consumption estimation for a vehicle;
fig. 9 is a block diagram of an electronic device according to an embodiment of the present application.
Detailed Description
The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only a part of the embodiments of the present application, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
When OTA remote upgrade is carried out on a vehicle, the vehicle firstly establishes connection with a remote server through a cellular network, and transmits an ECU firmware upgrade package to be updated to a Telematics Unit, usually T-BOX, of the vehicle. The Telematics Unit transmits the upgrade package to an OTA controller (OTA Manager), and the OTA Manager undertakes the work of distributing the upgrade package to the corresponding ECU and performing flashing. The network topology shown in fig. 1 is taken as an example in the present application as an illustration of the inventive idea, and does not represent that the invention is limited to this topology only. In addition, the ECU in the present application includes, but is not limited to, the ECU in the present application, and also includes other electronic devices to be upgraded. Based on the topology structure, the following technical scheme is provided so as to estimate the upgrading energy consumption.
Example one
Fig. 2 is a flowchart of an energy consumption estimation method for OTA upgrade of a vehicle according to an embodiment of the present disclosure.
The energy consumption estimation method provided by the present embodiment is applied to an electronic device of a vehicle, which is one of a plurality of ECUs provided on the vehicle or a dedicated processor or controller. In actual implementation, which ECU is adopted as the electronic device of the present application is determined according to circumstances, and for the electric vehicle, an ECU corresponding to the VCU, the BCM, or the OTA Manager itself may be selected as the electronic device; for a fuel vehicle, EMS may be used as the electronic device.
As shown in fig. 2, the energy consumption estimation method for OTA upgrade of a vehicle in this embodiment includes the following steps:
and S101, analyzing the OTA upgrade package.
After receiving the OTA upgrade package transmitted by the Telematics Unit, the electronic device analyzes the OTA upgrade package, and determines the number of ECUs to be upgraded and the Data size Data _ size _1, Data _ size _2, …, Data _ size _ i, …, and Data _ size _ n of the upgrade package corresponding to each ECU.
The specific device for parsing the OTA upgrade package in this embodiment is an OTA Manager, which may be understood as a dedicated ECU, or may be understood as a hardware module or a software module of the electronic device in this embodiment.
And S102, calculating the estimated time required by each ECU for upgrading according to the data volume of each upgrading packet and the upgrading time of unit data volume.
Namely, on the basis of determining the data volume of the upgrade package of each ECU to be upgraded, the time T _1, T _2, …, T _ i, …, T _ n required by the corresponding ECU to be upgraded based on the upgrade package is calculated according to the data volume. The calculation formula is as follows:
T_i=Data_size_i*t_i
where t _ i is the upgrade time required for a unit of data.
And S103, calculating total upgrading power consumption according to the upgrading mode of the ECU.
The total upgrade power consumption refers to the total power consumption required by all the ECUs to be upgraded, and the ECU upgrade modes include a parallel upgrade mode and a non-parallel upgrade mode. And under the condition of determining the upgrading mode, calculating the upgrading energy consumption of all the ECUs based on different upgrading modes so as to obtain the total energy consumption.
In specific implementation, the upgrading mode of the ECU in this embodiment includes a non-parallel upgrading mode and a parallel upgrading mode. Therefore, the calculation of the total upgraded power consumption is realized by the following scheme.
First, the upgrade modes of a plurality of ECUs are detected. And determining whether the upgrading modes of the plurality of ECUs, namely the ECUs to be upgraded, belong to a non-parallel upgrading mode or a parallel upgrading mode.
Then, the total power consumption is calculated according to the upgrade mode and the time taken for upgrading each ECU to be upgraded.
1. Aiming at all ECUs in a non-parallel upgrading mode, the calculation of the total power consumption is realized through the following steps:
1) and in one-time OTA upgrading, a plurality of non-parallel upgrading ECUs are included. Calculating the total power consumption required by all non-parallel upgrading ECUs in the upgrading process, firstly calculating the link power consumption P _ single _ i (from the ECU to be upgraded to the OTA Manager) on the whole upgrading link in the upgrading process of each ECU, wherein the calculation formula is as follows:
P_single_i=P_max_i(updateECU)+P_static_i(updateLink)+P_OTAManager
wherein, P _ max _ i (updateECU) represents the maximum operation power of the ECU to be upgraded, and P _ static _ i (updateLink) represents the sum of the static power of the ECU to be upgraded to all the parent node ECUs on the OTA Manager link; p _ OTAManager represents the rated operating power of the OTA Manager controller.
Referring to fig. 1, taking the upgraded ECU5 and ECU8 as an example, the ECU5 upgrades the link power consumption as follows:
p _ single _5 ═ P _ max _5+ (P _ static _2+ P _ static _1) + P _ OTAManager ECU5 upgrade the parent nodes on the link to ECU1 and ECU2, P _ static _2 is the static power of parent node ECU2 of ECU5 to be upgraded, P _ static _1 is the static power of parent node ECU1 of parent node ECU 2; here P _ OTAManager denotes the OTA Manager's rated power.
The ECU8 upgrade link power consumption is:
p _ single _8 ═ P _ max _8+ (P _ static _6+ P _ static _1) + P _ OTAManager; the parent nodes on the ECU8 upgrade link are the ECU1 and the 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 ECU 2; here P _ OTAManager denotes the OTA Manager's rated power.
2) Calculating the expected power consumption W _ single _ i of single upgrade of the ECU to be upgraded, wherein the calculation formula is as follows:
W_single_i=P_single_i*T_i
3) calculating the expected power consumption W _ non _ Parallel of the single upgrade of all the ECUs to be upgraded, wherein the calculation formula is as follows:
Figure BDA0003447373420000081
wherein Σ represents a summation symbol; and n represents the number of the non-parallel upgrading ECUs.
Continuing with FIG. 1, taking the example of upgrading ECU5 and ECU8, total power consumption:
W_non_Parallel=W_single_5+W_single_8=P_link_5*T_5+
P_link_8*T_8。
2. and one OTA upgrading process comprises a plurality of groups of parallel upgrading ECUs. Calculating the total power consumption required by all parallel upgrading ECUs in the upgrading process, firstly calculating the energy consumption requirements W _ multi _ j of all ECUs under parallel upgrading, and realizing the calculation of the total power consumption through the following steps:
1) calculating the total power consumption W _ multi _ j of the ECU which is upgraded in parallel in different network segments in the upgrading process, wherein the calculation formula is as follows:
W_multi_j=W_publicLink_j+W_ECULink_j
wherein, W _ publicLink _ j represents the energy consumption requirement of the public link ECU between the parallel upgrade ECUs, and the calculation formula of W _ publicLink _ j is as follows:
W_publicLink_j=(P_publicLink_j+P_OTAManager)*T_publicLink_j;
wherein, P _ public Link _ j represents the sum of static power of all common node ECUs between the parallel upgraded ECUs and the OTA controller; p _ OTAManager is the rated power of the OTA controller, T _ public Link _ j is the working time of the parallel upgrading public link ECU, and the working time is the longest time consumed by upgrading in the group of parallel upgrading ECUs; taking the parallel upgrade of the ECU4 and the ECU9 as an example, the maximum operating powers of the ECU4 and the ECU9 to be upgraded are respectively as follows: p _ max _4 and P _ max _ 9; the upgrading time is T _4 and T _9 respectively; the parallel upgrade link common ECUs are an ECU1 and an OTA Manager, and the running powers are P _ static _1 and P _ OTAManager respectively. Therefore, the sum of the common link ECU powers P _ public link is P _ static _1+ P _ OTAManager; the time T _ publicLink of the common link ECU operation becomes max (T _4, T _9), and max () represents the maximum value of T _4 and T _ 9.
W _ ECULink _ j represents the sum of ECU power consumption requirements of the ECU to be upgraded in each group of parallel upgrading ECUs and the ECU power consumption requirement between the ECU and the public link. The formula for W _ ECULink _ j is:
W_ECU_j=Σ(P_max_i(updateECU)+P_static_linkECUs)*T_i
wherein, P _ max _ i (updateECU) represents the maximum running power of the ECU to be upgraded; p _ static _ linkECUs represent the sum of the power of the ECU to be upgraded to the ECU between the public links; t _ i represents the estimated upgrading time of the ECU to be upgraded; Σ denotes a summation sign, i.e. summing the energy consumption of multiple ECUs upgraded in parallel.
Taking parallel upgrade of the ECU4 and the ECU9 as an example, the maximum operating power of the ECU to be upgraded is respectively: p _ max _4 and P _ max _ 9; p _ static _ linkECUs are P _ static _2 and P _ static _7 respectively; and the estimated upgrading time of the ECU to be upgraded is T _4 and T _9 respectively. Therefore, the total energy consumption of the non-common link part of the parallel upgrade is W _ available ═ P _ max _4+ P _ static _2) × T _4+ (P _ max _9+ P _ static _7) × T _ 9.
The total power consumption W _ Parallel of all Parallel upgrading ECUs can be obtained, and the calculation formula is as follows:
Figure BDA0003447373420000091
m represents the number of groups upgraded in parallel in the one-time OTA upgrading process.
The total power consumption W _ all of the ECUs to be upgraded can be obtained through the calculation,
W_all=W_non_Parallel+W_Parallel。
in addition, in specific implementation, if all the upgrading modes of the ECUs which need to be upgraded include a non-parallel upgrading mode and a parallel upgrading mode, the total power consumption of the ECU corresponding to each upgrading mode needs to be calculated through the two calculation schemes, and the total power consumption required by upgrading all the ECUs is the sum of the two total power consumptions.
According to the technical scheme, the energy consumption estimation method for OTA upgrading of the vehicle is applied to electronic equipment of the vehicle, and specifically comprises the steps of analyzing an OTA upgrading packet after the vehicle receives the OTA upgrading packet, and determining the number of a plurality of ECUs to be upgraded and the data volume of the upgrading packet corresponding to each ECU; calculating the estimated time required by upgrading of each ECU according to the data volume of each upgrading packet and the upgrading time of unit data volume; and calculating total upgrade power consumption according to the upgrade mode of each ECU and the estimated time required by all the upgrades. By the scheme, the actual power consumption required by OTA upgrading of the vehicle can be obtained, whether the SOC of the current low-voltage storage battery meets the upgrading requirement or not can be judged according to other constraint conditions, and necessary measures are taken according to the judgment result, so that OTA upgrading failure can be avoided.
Example two
Fig. 3 is a flowchart of another energy consumption estimation method for OTA upgrade of a vehicle according to an embodiment of the present application.
As shown in fig. 3, the energy consumption estimation method for OTA upgrade of a vehicle in this embodiment includes the following steps:
s201, analyzing the OTA upgrade package.
After receiving the OTA upgrade package transmitted by the Telematics Unit, the electronic device analyzes the OTA upgrade package, and determines the number of ECUs to be upgraded and the Data size Data _ size _1, Data _ size _2, …, Data _ size _ i, …, and Data _ size _ n of the upgrade package corresponding to each ECU.
In the embodiment, the specific device OTA Manager for analyzing the OTA upgrade package can be understood as a special ECU, and can be understood as a main controller in the OTA upgrade process.
S202, judging whether the type of the ECU to be upgraded is II type.
Namely, the ECU to be upgraded is judged, and whether the type of the ECU is type I or type II is judged. The type I ECU is an ECU which does not influence the electricity compensation of the low-voltage storage battery in the upgrading process, and the type II ECU is an ECU which directly influences the low-voltage storage battery and cannot compensate the electricity in the upgrading process.
If all the ECUs to be upgraded are I-type ECUs, the situation that the upgrading fails due to the fact that the electric quantity of the storage battery is too low can not occur because the electric quantity of the low-voltage storage battery cannot be influenced, and at the moment, the upgrading energy consumption does not need to be further estimated, and therefore the subsequent energy consumption estimation process can be directly finished.
If the ECU to be upgraded includes the class II ECU, the subsequent step, that is, the subsequent step S203, is executed.
S203, calculating the estimated time required by each ECU for upgrading according to the data volume of each upgrading packet and the upgrading time of unit data volume;
namely, on the basis of determining the data volume of the upgrade package of each ECU to be upgraded, the time T _1, T _2, …, T _ i, …, T _ n required by the corresponding ECU to be upgraded based on the upgrade package is calculated according to the data volume. The calculation formula is as follows:
T_i=Data_size_i*t_i
where t _ i is the upgrade time required for a unit of data.
And S204, calculating the total upgrade power consumption according to the upgrade mode of the ECU.
The total upgrade power consumption refers to the total power consumption required by all the ECUs to be upgraded, and the ECU upgrade modes include a parallel upgrade mode and a non-parallel upgrade mode. And under the condition of determining the upgrading mode, calculating the upgrading energy consumption of all the ECUs based on different upgrading modes so as to obtain the total energy consumption. It is worth noting that the total upgrade power consumption includes the power consumption required by the OTA Manager to parse the upgrade package.
In specific implementation, the upgrading mode of the ECU in this embodiment includes a non-parallel upgrading mode and a parallel upgrading mode. Therefore, the calculation of the total upgraded power consumption is realized by the following scheme.
First, the upgrade modes of a plurality of ECUs are detected. And determining whether the upgrading modes of the plurality of ECUs, namely the ECUs to be upgraded, belong to a non-parallel upgrading mode or a parallel upgrading mode.
Then, the total power consumption is calculated according to the upgrade mode and the time taken for upgrading each ECU to be upgraded. The calculation of the total power consumption is the same as the previous embodiment, and is not described herein again.
According to the technical scheme, the energy consumption estimation method for OTA upgrading of the vehicle is applied to electronic equipment of the vehicle, and specifically comprises the steps of analyzing an OTA upgrading packet after the vehicle receives the OTA upgrading packet, and determining the number of a plurality of ECUs to be upgraded and the data volume of the upgrading packet corresponding to each ECU; judging whether the upgrading type of the ECU to be upgraded is II type; calculating the estimated time required by each ECU for upgrading according to the data volume of each upgrading packet and the upgrading time of the unit data volume; and calculating total upgrade power consumption according to the upgrade mode of each ECU and the estimated time required by all the upgrades. By the scheme, the actual power consumption required by OTA upgrading of the vehicle can be obtained, whether the SOC of the current low-voltage storage battery meets the upgrading requirement or not can be judged according to other constraint conditions, and necessary measures are taken according to the judgment result, so that OTA upgrading failure can be avoided. And the ECU type required to be upgraded is judged before OTA upgrading, so that the computational power (power consumption) consumption of electronic equipment of the vehicle is avoided under the condition that the ECUs required to be upgraded are I-type ECUs.
In addition, in a specific implementation manner of this embodiment, the method further includes the following steps, as specifically shown in fig. 4:
and S205, calculating the safe residual capacity of the low-voltage storage battery of the vehicle according to the total upgraded power consumption.
Calculating the total power consumption of all the ECUs to be upgraded according to the total power consumption of the non-Parallel ECUs and the total power consumption of the Parallel ECUs, wherein W _ all is W _ non _ Parallel + W _ Parallel;
calculating the safe residual electric quantity of the low-voltage storage battery of the vehicle according to the total upgrade power consumption W _ all and the preset repeated upgrade frequency N, wherein the calculation formula is as follows: SOCFirst stage=(N*W_all)/C/U+SOCFinal (a Chinese character of 'gan')C is the rated capacity of the low-voltage storage battery, U is the rated voltage of the low-voltage storage battery, SOCFinal (a Chinese character of 'gan')And after OTA upgrading is completed, the SOC value of the low-voltage storage battery is obtained, and N is the preset repeated upgrading times.
For example, the following steps are carried out: in the OTA upgrading process of the vehicle, if the first upgrading fails, the upgrading can be repeatedly tried for many times, and if the upgrading still fails for many times, the ECU can be rolled back to the software version before the OTA upgrading. Here, 3-time repeated upgrade is taken as an example, and does not represent a limitation of the scope of the patent. Energy consumption assessment before OTA upgrade considers the most severe scenarios, namely: and (4) failing to upgrade normally for 1 time and failing to upgrade repeatedly for 3 times, and rolling back the ECU to the original version. Therefore, the power consumption is calculated according to 5 times of normal upgrade power consumption (1 normal upgrade failure +3 repeated upgrade failures +1 rollback), and the times can be set according to the first normal upgrade failure, the repeated upgrade failure times and the rollback times.
The formula of the electric energy of the storage battery is as follows:
(SOCfirst stage-SOCFinal (a Chinese character of 'gan'))*C*U=5*W_all
Therein, SOCFirst stageRepresents the SOC value (State of Charge), i.e., the State of charge, of the battery at the start of an OTA upgrade, which reflects the remaining capacity of the battery, and is numerically defined as the ratio of the remaining capacity to the battery capacity, and the SOCFirst stageNamely, the value to be evaluated is used for evaluating whether the electric quantity of the current storage battery can meet the requirement of ECU safety upgrading; SOCFinal (a Chinese character of 'gan')After OTA upgrading is completed, the SOC value of the storage battery is obtained, C is the rated capacity of the storage battery, and U is the rated voltage of the storage battery;
calculating the SOC of the storage battery meeting the safe upgrading of the ECU, wherein the calculation formula is as follows: SOCFirst stage=(5*W_all)/C/U+SOCFinal (a Chinese character of 'gan'). Abnormal conditions are as follows: when the calculated SOC is obtainedFirst stage>Recording the abnormity at 100%, feeding back to a background to prompt that the upgrade package is too large, and recommending unpacking and upgrading in batches;
the OTA upgrading energy consumption evaluation main controller obtains SOC according to comparison and calculationFirst stageAnd collecting the actual SOC value (SOC) of the low-voltage storage batteryAt present) Judging whether the current state of the storage battery can meet the requirement of safe OTA (over the air) upgrading of the ECU of the whole vehicle or not, wherein the requirement is shown in figure 5;
when the vehicle judges that the current storage battery state meets the OTA upgrading energy consumption requirement, namely the SOC is currently more than or equal to the initial SOC, feeding back an energy consumption evaluation result to an OTA Manager, and determining whether to carry out OTA upgrading by the OTA Manager according to the actual condition;
if the current storage battery state is judged not to meet the OTA upgrading energy consumption requirement, namely the SOC is less than the SOC currentlyFirst stageThe OTA upgrading energy consumption evaluation main controller ECU2 requests the whole vehicle to be powered on at high voltage, the low-voltage storage battery is subjected to intelligent power supply, after the intelligent power supply is completed, the ECU2 carries out OTA upgrading energy consumption evaluation again, if the energy consumption evaluation passes, an evaluation result is fed back to the OTA Manager, and the OTA Manager determines whether to carry out OTA upgrading according to actual conditions.
EXAMPLE III
Fig. 6 is a block diagram of an energy consumption estimation device for OTA upgrade of a vehicle according to an embodiment of the present application.
The energy consumption estimation apparatus provided by the present embodiment is applied to an electronic device of a vehicle, which is one of a plurality of ECUs provided on the vehicle or a dedicated processor or controller. In actual implementation, which ECU is adopted as the electronic device of the present application is determined according to circumstances, and for the electric vehicle, an ECU corresponding to the VCU, the BCM, or the OTA Manager itself may be selected as the electronic device; for a fuel vehicle, EMS may be used as the electronic device.
As shown in fig. 6, the energy consumption estimation apparatus for OTA upgrade of a vehicle in the present embodiment includes a parsing processing module 10, a time calculation module 20, and a power consumption calculation module 30.
And the analysis processing module is used for analyzing the OTA upgrade package.
After receiving the OTA upgrade package transmitted by the Telematics Unit, the electronic device analyzes the OTA upgrade package, and determines the number of ECUs to be upgraded and the Data size Data _ size _1, Data _ size _2, …, Data _ size _ i, …, and Data _ size _ n of the upgrade package corresponding to each ECU.
In this embodiment, the specific device OTA Manager that analyzes the OTA upgrade package may be understood as a dedicated ECU, or may be understood as a hardware module or a software module of the electronic device in this embodiment.
And the time calculation module is used for calculating the estimated time required by each ECU for upgrading according to the data volume of each upgrading packet and the upgrading time of the unit data volume.
Namely, on the basis of determining the data volume of the upgrade package of each ECU to be upgraded, the time T _1, T _2, …, T _ i, …, T _ n required by the corresponding ECU to be upgraded based on the upgrade package is calculated according to the data volume. The calculation formula is as follows:
T_i=Data_size_i*t_i
where t _ i is the upgrade time required for a unit of data.
And the power consumption calculation module is used for calculating the total upgrade power consumption according to the upgrade mode of the ECU.
The total upgrade power consumption refers to the total power consumption required by all the ECUs to be upgraded, and the ECU upgrade modes include a parallel upgrade mode and a non-parallel upgrade mode. And under the condition of determining the upgrading mode, calculating the upgrading energy consumption of all the ECUs based on different upgrading modes so as to obtain the total energy consumption. It is worth noting that the total upgrade power consumption includes the power consumption required by the OTA Manager to parse the upgrade package.
In specific implementation, the upgrading mode of the ECU in this embodiment includes a non-parallel upgrading mode and a parallel upgrading mode. Therefore, the power consumption calculation module in this embodiment includes a mode acquisition unit and a calculation execution unit.
The mode acquisition unit is used for detecting the upgrading modes of the plurality of ECUs. And determining whether the upgrading modes of the plurality of ECUs, namely the ECUs to be upgraded, belong to a non-parallel upgrading mode or a parallel upgrading mode.
And the calculation execution unit is used for calculating the total power consumption according to the upgrading mode and the upgrading time of each ECU to be upgraded.
1. Aiming at all ECUs in a non-parallel upgrading mode, the calculation execution unit realizes the calculation of the total power consumption through the following steps:
1) and in one-time OTA upgrading, a plurality of non-parallel upgrading ECUs are included. Calculating the total power consumption required by all non-parallel upgrading ECUs in the upgrading process, firstly calculating the link power consumption P _ single _ i (from the ECU to be upgraded to the OTA Manager) on the whole upgrading link in the upgrading process of each ECU, wherein the calculation formula is as follows:
P_single_i=P_max_i(updateECU)+P_static_i(updateLink)+P_OTAManager;
wherein, P _ max _ i (updateECU) represents the maximum operation power of the ECU to be upgraded, and P _ static _ i (updateLink) represents the sum of the static power of the ECU to be upgraded to all the parent node ECUs on the OTA Manager link; p _ OTAManager represents the nominal operating power of the OTA controller.
Referring again to fig. 1, taking the upgrade ECU5 and ECU8 as an example, the ECU5 upgrades the link power consumption as follows: p _ single _5 ═ P _ max _5+ (P _ static _2+ P _ static _1) + P _ OTAManager, and the meaning of each parameter is the same as described in the method for estimating the energy consumption for the vehicle OTA upgrade.
The ECU8 upgrade link power consumption is:
P_8=P_max_8+(P_static_6+P_static_1)+P_OTAManager;
the meaning of each parameter is the same as that described in the energy consumption estimation method for OTA upgrade of the vehicle.
2) Calculating the expected power consumption W _ single _ i of single upgrade of the ECU to be upgraded, wherein the calculation formula is as follows:
W_single_i=P_single_i*T_i
3) calculating the expected power consumption W _ non _ Parallel of the single upgrade of all the ECUs to be upgraded, wherein the calculation formula is as follows:
Figure BDA0003447373420000151
wherein Σ represents a summation symbol; and n represents the number of the non-parallel upgrading ECUs.
And obtaining the link power consumption and the expected power consumption through the calculation, and calculating the total power consumption of all the ECUs to be upgraded through summation.
Referring again to fig. 1, taking upgrade ECU5 and ECU8 as an example, the total power consumption:
W_non_Parallel=W_single_5+W_single_8=P_single_5*T_5+P_single_8*T_8。
2. aiming at all ECUs under parallel upgrading, the calculation of the total power consumption is realized through the following steps:
1) calculating the total power consumption W _ multi _ j of the ECU which is upgraded in parallel in different network segments in the upgrading process, wherein the calculation formula is as follows:
W_multi_j=W_publicLink_j+W_ECULink_j
w _ publicLink represents the energy consumption requirement of the common link ECU among the parallel upgrade ECUs, and 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.
The calculation formula of W _ public Link _ j is as follows:
W_publicLink_j=(P_publicLink_j+P_OTAManager)*T_publicLink_j
the method comprises the steps that P _ public Link _ j represents the sum of static power of common node ECUs between ECUs to be upgraded in parallel and OTA managers, P _ OTAManager is rated power of OTA controllers, T _ public Link _ j represents working time of a common link of the ECUs to be upgraded in parallel, and the value is the longest time spent in upgrading of all the ECUs in parallel upgrading.
Referring to fig. 1 again, taking parallel upgrade of the ECU4 and the ECU9 as an example, the maximum operating powers of the ECU4 and the ECU9 to be upgraded are respectively: p _ max _4 and P _ max _ 9; the upgrading time is T _4 and T _9 respectively; the parallel upgrade link common ECUs are an ECU1 and an OTA Manager, and the running powers are P _ static _1 and P _ OTAManager respectively. Therefore, the sum of the common link ECU powers P _ public link is P _ static _1+ P _ OTAManager; the time T _ publicLink of the common link ECU operation becomes max (T _4, T _9), and max () represents the maximum value of T _4 and T _ 9.
W _ ECULink _ j represents the sum of ECU power consumption requirements of the ECU to be upgraded in each group of parallel upgrading ECUs and the ECU power consumption requirement between the ECU and the public link. The calculation formula of W _ ECU _ j is as follows:
W_ECU_j=Σ(P_max_i(updateECU)+P_static_linkECUs)*T_i
wherein, P _ max _ i (updateECU) represents the maximum running power of the ECU to be upgraded; p _ static _ linkECUs represent the sum of the static power of the ECUs between the ECU to be upgraded and the public link; t _ i represents the estimated upgrading time of the ECU to be upgraded; Σ denotes a summation sign, i.e. summing the energy consumption of multiple ECUs upgraded in parallel.
Taking parallel upgrade of the ECU4 and the ECU9 as an example, the maximum operating power of the ECU to be upgraded is respectively: p _ max _4 and P _ max _ 9; p _ static _ linkECUs are P _ static _2 and P _ static _7 respectively; and the estimated upgrading time of the ECU to be upgraded is T _4 and T _9 respectively. Therefore, the total energy consumption of the non-common link part of the parallel upgrade is W _ available ═ P _ max _4+ P _ static _2) × T _4+ (P _ max _9+ P _ static _7) × T _ 9.
The energy consumption requirement W _ Parallel of all Parallel upgrading ECUs can be obtained, and the calculation formula is as follows:
Figure BDA0003447373420000161
m represents the number of groups upgraded in parallel in the one-time OTA upgrading process.
The total power consumption W _ all of the ECUs to be upgraded can be obtained through the calculation,
W_all=W_non_Parallel+W_Parallel。
in addition, in specific implementation, if all the upgrading modes of the ECUs which need to be upgraded include a non-parallel upgrading mode and a parallel upgrading mode, the total power consumption of the ECU corresponding to each upgrading mode needs to be calculated through the two calculation schemes, and the total power consumption required by upgrading all the ECUs is the sum of the two total power consumptions.
According to the technical scheme, the energy consumption estimation method for OTA upgrading of the vehicle is applied to electronic equipment of the vehicle, and specifically comprises the steps of analyzing an OTA upgrading packet after the vehicle receives the OTA upgrading packet, and determining the number of a plurality of ECUs to be upgraded and the data volume of the upgrading packet corresponding to each ECU; calculating the estimated time required by each ECU for upgrading according to the data volume of each upgrading packet and the upgrading time of the unit data volume; and calculating total upgrading power consumption according to the upgrading mode of each ECU and all the estimated time required for upgrading, wherein the total upgrading power consumption also comprises the power consumption required for receiving and analyzing the OTA upgrading packet. By the scheme, the actual power consumption required by OTA upgrading of the vehicle can be obtained, whether the SOC of the current low-voltage storage battery meets the upgrading requirement or not can be judged according to other constraint conditions, and necessary measures are taken according to the judgment result, so that OTA upgrading failure can be avoided.
In addition, in a specific implementation manner of the embodiment of the present application, an upgrade type determination unit 40 is further included, as shown in fig. 7.
The upgrading type judging unit is used for judging whether the type of the ECU to be upgraded is II type.
Namely, the type of the ECU to be upgraded is judged, and whether the type of the ECU is type I or type II is judged. The type I ECU does not influence the electricity supplement of the low-voltage storage battery in the upgrading process, and the type II ECU influences the electricity supplement of the low-voltage storage battery in the upgrading process.
If all the ECUs to be upgraded are I-type ECUs, the capacity of the low-voltage storage battery cannot be influenced, so that the situation of failed upgrade cannot occur, the upgrade energy consumption does not need to be further estimated, and the subsequent process can be directly finished, so that the consumption of calculation power of the ECUs is reduced.
If the ECU to be upgraded comprises the class II ECU, the control time calculation module calculates the estimated time required by the upgrade of all the ECUs according to the data volume of each upgrade package.
In addition, in another specific implementation manner of this embodiment, a safe remaining power calculating module 50 is further included, as specifically shown in fig. 8.
The safe residual electric quantity calculating module is used for calculating the safe residual electric quantity of a low-voltage storage battery of the vehicle according to the total power consumption upgrading technology. Calculating the total power consumption of all the ECUs to be upgraded based on the calculated total power consumption of the non-Parallel ECUs and the calculated total power consumption of the Parallel ECUs, wherein W _ all is W _ non _ Parallel + W _ Parallel;
calculating the safe residual electric quantity of the low-voltage storage battery of the vehicle according to the total upgrade power consumption W _ all and the preset repeated upgrade frequency N, wherein the calculation formula is as follows: SOCFirst stage=(N*W_all)/C/U+SOCFinal (a Chinese character of 'gan')C is the rated capacity of the low-voltage storage battery, U is the rated voltage of the low-voltage storage battery, SOCFinal (a Chinese character of 'gan')And after OTA upgrading is completed, the SOC value of the low-voltage storage battery is obtained, and N is the preset repeated upgrading times.
For example, the following steps are carried out: in the OTA upgrading process of the vehicle, if the first upgrading fails, the upgrading can be repeatedly tried for many times, and if the upgrading still fails for many times, the ECU can be rolled back to the software version before the OTA upgrading. Here, 3-time repeated upgrade is taken as an example, and does not represent a limitation of the scope of the patent. Energy consumption assessment before OTA upgrade considers the most severe scenarios, namely: and (4) failing to upgrade normally for 1 time and failing to upgrade repeatedly for 3 times, and rolling back the ECU to the original version. Therefore, the power consumption is calculated according to 5 times of normal upgrade power consumption (1 normal upgrade failure +3 repeated upgrade failures +1 rollback), and the times can be set according to the first normal upgrade failure, the repeated upgrade failure times and the rollback times.
The formula of the electric energy of the storage battery is as follows:
(SOCfirst stage-SOCFinal (a Chinese character of 'gan'))*C*U=5*W_all
Therein, SOCFirst stageRepresents the SOC value (State of Charge), i.e., the State of charge, of the battery at the start of an OTA upgrade, which reflects the remaining capacity of the battery, and is numerically defined as the ratio of the remaining capacity to the battery capacity, and the SOCFirst stageNamely, the value to be evaluated is used for evaluating whether the electric quantity of the current storage battery can meet the requirement of ECU safety upgrading; SOCFinal (a Chinese character of 'gan')After OTA upgrade is completedThe SOC value of the storage battery (which can be set by referring to an intelligent power supply SOC trigger value) is C, the rated capacity of the storage battery is C, and the rated voltage of the storage battery is U;
calculating the SOC of the storage battery meeting the safe upgrading of the ECU, wherein the calculation formula is as follows: SOCFirst stage=(5*W_all)/C/U+SOCFinal (a Chinese character of 'gan'). Abnormal conditions are as follows: when the calculated SOC is obtainedFirst stage>Recording the abnormity at 100%, feeding back to a background to prompt that the upgrade package is too large, and recommending unpacking and upgrading in batches;
the OTA upgrading energy consumption evaluation main controller calculates the actual SOC value (SOC) obtained by the primary SOC value and the secondary battery according to the comparisonAt present) Judging whether the current state of the storage battery can meet the requirement of safe OTA (over the air) upgrading of the ECU of the whole vehicle or not, wherein the requirement is shown in figure 5;
when the vehicle judges that the current storage battery state meets the OTA upgrading energy consumption requirement, namely the SOCAt present≥SOCFirst stageFeeding back an energy consumption evaluation result to the OTA Manager, and determining whether to perform OTA upgrading by the OTA Manager according to the actual condition;
if the current storage battery state is judged not to meet the OTA upgrading energy consumption requirement, namely the SOCAt present<SOCFirst stageThe OTA upgrading energy consumption evaluation main controller ECU2 requests the whole vehicle to be powered on at high voltage, the low-voltage storage battery is subjected to intelligent power supply, after the intelligent power supply is completed, the ECU2 carries out OTA upgrading energy consumption evaluation again, if the energy consumption evaluation passes, an evaluation result is fed back to the OTA Manager, and the OTA Manager determines whether to carry out OTA upgrading according to actual conditions.
Example four
The present embodiment provides an electronic apparatus of a vehicle that can be understood as one of a plurality of ECUs provided on the vehicle or a dedicated processor or controller. In actual implementation, which ECU is adopted as the electronic device of the present application is determined according to circumstances, and for the electric vehicle, an ECU corresponding to the VCU, the BCM, or the OTA Manager itself may be selected as the electronic device; for a fuel vehicle, EMS may be used as the electronic device.
The electronic equipment is used for analyzing the OTA upgrade package after the vehicle receives the OTA upgrade package, and determining the number of a plurality of ECUs to be upgraded and the data volume of the upgrade package corresponding to each ECU; calculating the estimated time required by each ECU for upgrading according to the data volume of each upgrading packet and the upgrading time of the unit data volume; and calculating total upgrading power consumption according to the upgrading mode of each ECU and all the estimated time required for upgrading, wherein the total upgrading power consumption also comprises the power consumption required for receiving and analyzing the OTA upgrading packet. By the scheme, the actual power consumption required by OTA upgrading of the vehicle can be obtained, whether the SOC of the current low-voltage storage battery meets the upgrading requirement or not can be judged according to other constraint conditions, and necessary measures are taken according to the judgment result, so that OTA upgrading failure can be avoided.
EXAMPLE five
Fig. 9 is a block diagram of an electronic device according to an embodiment of the present application.
As shown in fig. 9, the electronic apparatus provided in the present embodiment is applied to a vehicle, and the electronic apparatus may be understood as one of a plurality of ECUs provided on the vehicle or a dedicated processor or controller. In actual implementation, which ECU is adopted as the electronic device of the present application is determined according to circumstances, and for the electric vehicle, an ECU corresponding to the VCU, the BCM, or the OTA Manager itself may be selected as the electronic device; for a fuel vehicle, EMS may be used as the electronic device.
The electronic device comprises at least one processor 101 and a memory 102, both connected by a data bus 103, the memory being configured to store computer programs or instructions, the processor being configured to execute the corresponding computer programs or instructions to cause the electronic device to implement the energy consumption estimation method for OTA upgrade of a vehicle in embodiment one or in embodiment two.
The method specifically comprises the steps of analyzing an OTA upgrade package, and determining the number of a plurality of ECUs to be upgraded and the data volume of the upgrade package corresponding to each ECU; calculating the estimated time required by each ECU for upgrading according to the data volume of each upgrading packet and the upgrading time of the unit data volume; and calculating total upgrading power consumption according to the upgrading mode of each ECU and all the estimated time required for upgrading, wherein the total upgrading power consumption also comprises the power consumption required for receiving and analyzing the OTA upgrading packet. By the scheme, the actual power consumption required by OTA upgrading of the vehicle can be obtained, whether the SOC of the current low-voltage storage battery meets the upgrading requirement or not can be judged according to other constraint conditions, and necessary measures are taken according to the judgment result, so that OTA upgrading failure can be avoided.
The embodiments in the present specification are described in a progressive manner, each embodiment focuses on differences from other embodiments, and the same and similar parts among the embodiments are referred to each other.
As will be appreciated by one skilled in the art, embodiments of the present invention may be provided as a method, apparatus, or computer program product. Accordingly, embodiments of the present invention may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, embodiments of the present invention may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
Embodiments of the present invention are 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 flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing terminal to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing terminal, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing terminal to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing terminal to cause a series of operational steps to be performed on the computer or other programmable terminal to produce a computer implemented process such that the instructions which execute on the computer or other programmable terminal provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
While preferred embodiments of the present invention have been described, additional variations and modifications of these embodiments may occur to those skilled in the art once they learn of the basic inventive concepts. Therefore, it is intended that the appended claims be interpreted as including preferred embodiments and all such alterations and modifications as fall within the scope of the embodiments of the invention.
Finally, it should also be noted that, herein, relational terms such as first and second, and the like may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or terminal that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or terminal. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or terminal that comprises the element.
The technical solutions provided by the present invention are described in detail above, and the principle and the implementation of the present invention are explained in this document by applying specific examples, and the descriptions of the above examples are only used to help understanding the method and the core idea of the present invention; meanwhile, for a person skilled in the art, according to the idea of the present invention, there may be variations in the specific embodiments and the application scope, and in summary, the content of the present specification should not be construed as a limitation to the present invention.

Claims (10)

1. An energy consumption estimation method for OTA (over the air) upgrading of a vehicle is applied to electronic equipment of the vehicle, and is characterized by comprising the following steps:
after receiving an OTA upgrade package, an OTA controller of the vehicle analyzes the OTA upgrade package, determines the number of a plurality of ECUs to be upgraded and the data volume of the upgrade package corresponding to each ECU, and determines the upgrade sequence of the plurality of ECUs in one OTA upgrade and the upgrade mode of the ECUs, wherein the upgrade mode comprises non-parallel upgrade and parallel upgrade;
calculating the estimated time required by each ECU for upgrading according to the data volume of each upgrading packet and the upgrading time of unit data volume;
and calculating total upgrade power consumption according to the upgrade mode, the required power and the pre-estimated time required by the upgrade of each ECU, wherein the required power comprises the static power of the ECU playing a role in data routing in an upgrade link, the maximum operating power of the ECU to be upgraded and the rated operating power of an OTA controller, and the total upgrade power consumption is the sum of the total non-parallel ECU power consumption and the total parallel ECU power consumption.
2. The energy consumption estimation method according to claim 1, wherein if a plurality of non-parallel upgraded ECUs are included in one OTA upgrade, the total power consumption of the non-parallel upgrade required by all the non-parallel upgraded ECUs in the upgrade process is calculated; the method comprises the following calculation steps:
calculating the power P _ single _ i of single upgrade of the current ECU to be upgraded on the whole upgrade link; p _ single _ i ═ P _ max _ i (updateecu) + P _ static _ i (updatelink) + P _ OTAManager;
wherein, P _ max _ i (updateECU) represents the maximum operation power of the ECU to be upgraded, and P _ static _ i (updateLink) represents the sum of the static power of the ECU to be upgraded to all the parent node ECUs on the OTA Manager link; p _ OTAManager represents the rated operating power of the OTA controller;
calculating the expected power consumption W _ single _ i of the current ECU to be upgraded in a single upgrade, wherein the calculation formula is as follows: w _ single _ i ═ P _ single _ i × T _ i; wherein, T _ i is the estimated time of the ECU to be upgraded currently, and T _ i is the product of the data volume of the upgrade package and the upgrade time of unit data volume;
calculating the expected total power consumption W _ non _ parallelW _ all of the ECU to be upgraded in a single upgrade, wherein the calculation formula is as follows:
Figure FDA0003447373410000011
wherein n represents the number of the non-parallel upgrading ECUs.
3. The method for estimating energy consumption according to claim 2, wherein if a plurality of parallel-upgraded ECUs are included in one OTA upgrade, the total parallel-upgraded power consumption required by all parallel-upgraded ECUs in the upgrade process is calculated; the method comprises the following steps:
calculating the energy consumption requirement W _ multi _ j of each group of parallel upgrading ECUs, wherein the calculation formula is as follows: w _ multi _ j ═ W _ public link _ j + W _ eclulink _ j;
wherein j represents the number of groups upgraded in parallel; w _ publicLink _ j represents the energy consumption requirement of a public link ECU between parallel upgrading ECUs; w _ ECULink _ j represents the sum of ECU energy consumption requirements in non-public links in each group of parallel upgrade ECUs;
further, the calculation formula of W _ publicLink _ j is:
W_publicLink_j=(P_publicLink_j+P_OTAManager)*T_publicLink_j;
wherein, P _ public Link _ j represents the sum of static power of all common node ECUs between the parallel upgraded ECUs and the OTA controller; p _ OTAManager is the rated power of the OTA controller, T _ public Link _ j is the working time of the parallel upgrading public link ECU, and the working time is the longest time consumed by upgrading in the group of parallel upgrading ECUs;
further, the calculation formula of W _ eclulink _ j is:
W_ECULink_j=Σ(P_max_i+P_static_linkECUs_i)*T_i
wherein, P _ max _ i represents the maximum running 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 between the ECU to be upgraded and the public link in the parallel upgrade; t _ i represents the corresponding estimated time required by upgrading of each ECU to be upgraded;
calculating the total power consumption W _ Parallel of all Parallel upgrading ECUs, wherein the calculation formula is
Figure FDA0003447373410000021
Figure FDA0003447373410000022
m represents the number of groups upgraded in parallel in the one-time OTA upgrading process.
4. The power consumption estimation method according to claim 1, wherein before the step of calculating the estimated time required for upgrading each of the ECUs based on the data amount of each of the upgrade packages, further comprising the steps of:
judging the types of all the ECUs to be upgraded, if all the types of the ECUs are the type I ECUs, estimating the total upgrading power consumption required in the upgrading process of the type I ECUs, and if some or all the ECUs are the type II ECUs, executing the step of calculating the estimated time required by upgrading of each ECU according to the data volume of each upgrading packet.
5. The energy consumption estimation method according to any one of claims 1 to 4, further comprising the steps of: calculating the total power consumption of all the ECUs to be upgraded according to the total power consumption of the non-Parallel ECUs and the total power consumption of the Parallel ECUs, wherein W _ all is W _ non _ Parallel + W _ Parallel;
calculating the safe residual electric quantity SOC of the low-voltage storage battery of the vehicle according to the total upgrade power consumption W _ all and the preset repeated upgrade timesFirst stageThe calculation formula is as follows: SOCFirst stage=(N*W_all)/C/U+SOCFinal (a Chinese character of 'gan')C is the rated capacity of the low-voltage storage battery, U is the rated voltage of the low-voltage storage battery, SOCFinal (a Chinese character of 'gan')For OTA upgrade completionAnd the lower limit value of the SOC of the rear low-voltage storage battery is N, and the number of times of repeated upgrading is preset.
6. The method of estimating energy consumption according to claim 5,
the OTA controller is based on SOCFirst stageAnd acquiring an actual SOC value obtained by the low-voltage storage battery to judge whether the current state of the low-voltage storage battery can meet the requirement of safe OTA upgrading of the ECU of the whole vehicle.
7. An energy consumption estimation device for OTA upgrade of a vehicle, applied to an electronic device of the vehicle, characterized in that the energy consumption estimation device comprises:
the analysis processing module is used for analyzing the OTA upgrade package after the OTA controller of the vehicle receives the OTA upgrade package, determining the number of a plurality of Electronic Control Units (ECU) to be upgraded and the data volume of the upgrade package corresponding to each Electronic Control Unit (ECU), and determining the upgrade sequence of the plurality of Electronic Control Units (ECU) in one OTA upgrade and the upgrade mode of the ECU, wherein the upgrade mode comprises non-parallel upgrade and parallel upgrade;
the time calculation module is used for calculating the estimated time required by upgrading each ECU according to the data volume of each upgrading packet and the unit data volume upgrading time;
and the power consumption calculation module is used for calculating total upgrade power consumption according to the upgrade mode, the required power and the pre-estimated time required by upgrade of each ECU, wherein the required power comprises the static power of the ECU playing a role in data routing in an upgrade link, the maximum operating power of the ECU and the rated operating power of an OTA controller, and the total upgrade power consumption is the sum of the total non-parallel ECU power consumption and the total parallel ECU power consumption.
8. The energy consumption estimation device of claim 7, wherein the power consumption calculation module comprises:
the mode acquisition unit is used for acquiring the upgrading modes of the plurality of ECUs;
and the calculation execution unit calculates the total power consumption according to the acquired upgrading mode.
9. An electronic device applied to a vehicle, characterized in that the energy consumption estimation device is provided according to any one of claims 7 to 8.
10. An electronic device applied to a vehicle, comprising at least one processor and a memory connected to the processor, wherein:
the memory is for storing a computer program or instructions;
the processor is used for executing the computer program or the instructions to enable the electronic equipment to realize the energy consumption estimation method for OTA upgrade of the vehicle as claimed in any one of claims 1-6.
CN202111660357.9A 2021-12-30 2021-12-30 Energy consumption estimation method and device for OTA (over the air) upgrade of vehicle and electronic equipment Pending CN114327560A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111660357.9A CN114327560A (en) 2021-12-30 2021-12-30 Energy consumption estimation method and device for OTA (over the air) upgrade of vehicle and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111660357.9A CN114327560A (en) 2021-12-30 2021-12-30 Energy consumption estimation method and device for OTA (over the air) upgrade of vehicle and electronic equipment

Publications (1)

Publication Number Publication Date
CN114327560A true CN114327560A (en) 2022-04-12

Family

ID=81018337

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111660357.9A Pending CN114327560A (en) 2021-12-30 2021-12-30 Energy consumption estimation method and device for OTA (over the air) upgrade of vehicle and electronic equipment

Country Status (1)

Country Link
CN (1) CN114327560A (en)

Similar Documents

Publication Publication Date Title
US9229704B2 (en) Smart vehicle reflash with battery state of charge (SOC) estimator
CN110749829B (en) Power supply equipment abnormality detection method and device
CN109378879B (en) Charging station power control method and system
CN112677770A (en) OTA upgrading method, storage medium, electronic equipment and vehicle
CN111301219A (en) Electric vehicle battery control method, system, device and readable storage medium
WO2023098124A1 (en) Parking air conditioner and control method and apparatus therefor, and computer readable storage medium
CN113320491A (en) Controller upgrading method and system
CN114327560A (en) Energy consumption estimation method and device for OTA (over the air) upgrade of vehicle and electronic equipment
CN111596248A (en) Current collecting fault judgment method, device and equipment for current divider and storage medium
KR20160006443A (en) Battery System and Method for Operating Internal Resistance
CN113127984A (en) Method, device, equipment and storage medium for equipment maintenance
CN116126368A (en) Whole-vehicle OTA upgrading method and device, electronic equipment and vehicle
CN112783140B (en) System initialization method and device and vehicle
CN113064614B (en) Firmware upgrading method and system for redundant power supply system of server
CN111959346B (en) Early warning method and device for vehicle battery
CN111061255B (en) Control method and device of electric vehicle
CN115499315A (en) OTA (over the air) upgrading task execution method and device and electronic equipment
CN111641001B (en) Correction method, device, storage medium and device of battery system
CN113162796A (en) Equipment updating method, device and equipment updating system
CN116298944A (en) Charging remaining time display control method, device, equipment, vehicle and medium
CN112417767A (en) Attenuation trend determination model construction method and attenuation trend determination method
CN113696781B (en) New energy automobile OTA (over the air) upgrading storage battery capacity detection method and system
CN117565758B (en) Power management method and device for hybrid electric vehicle
CN114475353A (en) Power battery charging time estimation method and device, electronic equipment and storage medium
CN110171305B (en) Charging method, system, device, equipment, storage medium and electric vehicle

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination