Vehicle software upgrading method and device, computer equipment, readable storage medium and program product
By obtaining and adjusting the actual power of the vehicle battery, combining the battery status coefficient and the battery accuracy coefficient, the target power of the vehicle software upgrade is determined, and the problem of inaccurate power judgment during vehicle software upgrade in the existing technology is solved, and the vehicle software upgrade is realized The stability and battery health guarantees both.
Patent Information
- Application Number
- CN202411451434.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-10-17
- Publication Date
- 2025-02-18
AI Technical Summary
The existing vehicle power judging strategy fails to consider the impact of other factors on the vehicle battery power when judging the vehicle software upgrade, resulting in the problem that the vehicle software upgrade cannot be completed or the battery loses power after the vehicle software upgrade is completed.
By obtaining the actual power, battery status coefficient and battery accuracy coefficient of the vehicle battery, adjusting the power, and determining the target power required for vehicle software upgrade, and determining whether to upgrade the vehicle software based on the comparison results.
It effectively avoids the problem of vehicle software upgrade failure or battery power loss after vehicle software upgrade is completed, ensuring the stability of vehicle software upgrade and the healthy state of the battery.
Smart Images

Figure CN119473342A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of vehicle technology, and in particular to a vehicle software upgrade, device, computer equipment, computer-readable storage medium and computer program product. Background Art
[0002] Vehicle software upgrades, such as over the air (OTA) upgrades, refer to the process of downloading new software, firmware, or system updates to the vehicle's electronic control unit over a wireless network and installing and upgrading them. Paying attention to the vehicle's battery level during vehicle software upgrades can ensure the stability of the upgrade process, protect the battery and vehicle systems, improve the user experience, and ensure safety. Therefore, before performing a configuration upgrade, you need to check the vehicle's battery level and ensure that it is sufficient.
[0003] The existing vehicle power judgment strategy is: receive the vehicle battery power sent by the battery sensor, calculate the power required for the vehicle software upgrade, set the minimum battery power of the vehicle after the vehicle software upgrade, and calculate the minimum battery power of the vehicle before the vehicle software upgrade based on the power required for the vehicle software upgrade and the minimum battery power of the vehicle after the vehicle software upgrade. When the vehicle software upgrade is required, if the power value sent by the battery sensor is greater than the minimum battery power of the vehicle before the OTA upgrade, the vehicle software upgrade is performed, otherwise the vehicle software upgrade is not performed.
[0004] However, this approach does not take into account the impact of other factors on the vehicle battery power. If the vehicle battery power is also affected by other factors, the actual amount of power available for vehicle software upgrades may not be equal to the vehicle battery power sent by the battery sensor. Therefore, the existing vehicle power judgment strategy for determining whether to perform a vehicle software upgrade may result in the inability to complete the vehicle software upgrade or battery power depletion after the vehicle software upgrade is completed. Summary of the invention
[0005] Based on this, it is necessary to provide a vehicle software upgrade, device, computer equipment, computer-readable storage medium and computer program product that can prevent the vehicle software upgrade from being unable to be completed or the battery from running out of power after the vehicle software upgrade is completed, in response to the above-mentioned technical problems.
[0006] In a first aspect, the present application provides a method for upgrading vehicle software, the method comprising:
[0007] After receiving the vehicle software upgrade instruction sent by the terminal, obtaining the actual power of the vehicle battery, the battery status coefficient and the power accuracy coefficient, wherein the battery status coefficient is determined based on the status data of the vehicle battery, and the power accuracy coefficient is related to the accuracy of the actual power obtained;
[0008] Adjusting the actual power based on the battery state coefficient and the power accuracy coefficient;
[0009] Determining a target power level of the vehicle battery required for the vehicle software upgrade, and comparing the target power level with an adjusted actual power level;
[0010] Based on the comparison result, determine whether to upgrade the vehicle software.
[0011] In one embodiment, the status data includes battery temperature and health signal data;
[0012] Obtaining a battery state coefficient of the vehicle battery, including:
[0013] acquiring the battery temperature, and determining a temperature coefficient based on the battery temperature;
[0014] Acquire the health signal data, calibrate the health signal data to obtain a first calibration result, and determine a health coefficient based on the first calibration result;
[0015] The temperature coefficient and the health coefficient are used as the battery state coefficient.
[0016] In one embodiment, obtaining the battery temperature includes:
[0017] Receiving cell temperature signals of a plurality of cells of the vehicle battery;
[0018] Determining a cell temperature of each cell based on the cell temperature signal;
[0019] Calibrate the signal data of the battery cell temperature signal of each battery cell to obtain a second calibration result;
[0020] The battery temperature is determined based on the battery cell temperature of each battery cell and the second calibration result corresponding to each battery cell.
[0021] In one embodiment, obtaining the power accuracy coefficient of the vehicle battery includes:
[0022] Acquiring power signal data of the vehicle battery and accuracy signal data of power state accuracy;
[0023] Calibrate the electrical quantity signal data to obtain a third calibration result;
[0024] The electrical quantity accuracy coefficient is determined based on at least one of the third calibration result and the accuracy signal data.
[0025] In one embodiment, before determining the power accuracy coefficient based on at least one of the third calibration result and the accuracy signal data, the method further includes:
[0026] When the third check result is a check failure, the vehicle software is stopped from being upgraded.
[0027] When the third calibration result is successful, the step of determining the power accuracy coefficient based on the third calibration result and at least one of the accuracy signal data is performed.
[0028] In one embodiment, determining the target power of the vehicle battery required for the vehicle software upgrade includes:
[0029] Based on the battery type of the vehicle battery and the vehicle type of the vehicle to which the vehicle battery belongs, setting the remaining power ratio of the vehicle battery after the vehicle software upgrade is completed;
[0030] Based on the remaining power ratio, the target power is determined.
[0031] In a second aspect, the present application further provides a vehicle software upgrade device, the device comprising:
[0032] an acquisition module, configured to acquire, after receiving the vehicle software upgrade instruction sent by the terminal, the actual power of the vehicle battery, a battery status coefficient, and a power accuracy coefficient, wherein the battery status coefficient is determined based on the status data of the vehicle battery, and the power accuracy coefficient is related to the accuracy of the actual power acquired;
[0033] An adjustment module, configured to adjust the actual power based on the battery state coefficient and the power accuracy coefficient;
[0034] A comparison module, used to determine a target power level of the vehicle battery required for vehicle software upgrade, and compare the target power level with an adjusted actual power level;
[0035] The determination module is used to determine whether to upgrade the vehicle software based on the comparison result.
[0036] In a third aspect, the present application further provides a computer device, including a memory and a processor, wherein the memory stores a computer program, and the processor implements the steps of the method of each embodiment when executing the computer program.
[0037] In a fourth aspect, the present application further provides a computer-readable storage medium having a computer program stored thereon, wherein the computer program implements the steps of the method of each embodiment when executed by a processor.
[0038] In a fifth aspect, the present application also provides a computer program product, including a computer program, which implements the steps of the methods of each embodiment when executed by a processor.
[0039] The above-mentioned vehicle software upgrade method, device, computer equipment, computer-readable storage medium and computer program product obtain the actual power of the vehicle battery, the battery status coefficient and the power accuracy coefficient after receiving the vehicle software upgrade instruction sent by the terminal. The battery status coefficient is determined based on the status data of the vehicle battery, and the power accuracy coefficient is related to the accuracy of the actual power obtained. The actual power is adjusted based on the battery status coefficient and the power accuracy coefficient. Compared with the existing scheme, the influence of the battery status coefficient and the power accuracy coefficient on the actual power of the vehicle battery is taken into account, so as to determine the target power of the vehicle battery required for the vehicle software upgrade, and then compare the target power and the adjusted actual power. Based on the comparison result, it is determined whether to upgrade the vehicle software, thereby avoiding problems such as the inability to complete the vehicle software or the battery running low after the vehicle software upgrade is completed. BRIEF DESCRIPTION OF THE DRAWINGS
[0040] In order to more clearly illustrate the technical solutions in the embodiments of the present application or related technologies, the drawings required for use in the embodiments of the present application or related technical descriptions will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other related drawings can be obtained based on these drawings without paying creative work.
[0041] Figure 1 A schematic diagram of a process flow of a vehicle software upgrade method in one embodiment;
[0042] Figure 2 is a linear relationship diagram between battery temperature and temperature coefficient in one embodiment;
[0043] Figure 3 is a linear relationship diagram between battery temperature and temperature coefficient in one embodiment;
[0044] Figure 4 A schematic flow chart of a vehicle software upgrade method in another embodiment;
[0045] Figure 5 A schematic diagram of the structure of a vehicle software upgrade device in one embodiment;
[0046] Figure 6 FIG. 4 is a diagram showing the internal structure of a computer device in one embodiment. DETAILED DESCRIPTION
[0047] In order to make the purpose, technical solution and advantages of the present application more clearly understood, the present application is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.
[0048] In one embodiment, Figure 1 As shown, a vehicle software upgrade method is provided. This embodiment is illustrated by applying the method to a vehicle controller. In this embodiment, the method includes the following steps:
[0049] Step 102: after receiving the vehicle software upgrade instruction sent by the terminal, obtain the actual power of the vehicle battery, the battery status coefficient and the power accuracy coefficient, the battery status coefficient is determined based on the status data of the vehicle battery, and the power accuracy coefficient is related to the accuracy of the actual power obtained;
[0050] The terminal generates an upgrade instruction for the vehicle software based on the user's operation on the vehicle computer interface. The upgrade instruction for the vehicle software may be an OTA upgrade instruction. The vehicle software refers to the software upgraded via OTA.
[0051] The actual power of the vehicle battery refers to the power measured by the vehicle battery at the current moment. The battery state coefficient is used to characterize the battery state of the vehicle, and is specifically determined based on the state data of the vehicle battery. The state data of the vehicle battery specifically includes the battery temperature and the battery health signal data;
[0052] The power accuracy coefficient is used to characterize the accuracy of the actual power of the vehicle battery obtained. The larger the power accuracy coefficient is, the higher the accuracy of the actual power of the vehicle battery obtained is, and the more reliable the actual power of the vehicle battery obtained is. Conversely, the smaller the power accuracy coefficient is, the lower the accuracy of the actual power of the vehicle battery obtained is.
[0053] Step 104: adjusting the actual power based on the battery status coefficient and the power accuracy coefficient;
[0054] The actual power may be adjusted based on at least one of a battery state coefficient or a power accuracy coefficient, wherein adjusting the actual power includes increasing or decreasing the actual power.
[0055] Step 106: determine the target power of the vehicle battery required for the vehicle software upgrade, and compare the target power and the adjusted actual power;
[0056] The target power is determined based on the power consumed by the vehicle software upgrade and the preset power of the battery after the vehicle software upgrade. The preset power of the battery after the vehicle software upgrade refers to the remaining power of the battery after the vehicle software upgrade, which is a preset number.
[0057] Step 108: Based on the comparison result, determine whether to upgrade the vehicle software.
[0058] The target power level is compared with the adjusted actual power level. If the actual power level is greater than or equal to the target power level, the vehicle software is upgraded. If the actual power level is less than the target power level, the vehicle software is not upgraded.
[0059] After receiving the vehicle software upgrade instruction sent by the terminal, the present application obtains the actual power of the vehicle battery, the battery status coefficient and the power accuracy coefficient. The battery status coefficient is determined based on the status data of the vehicle battery, and the power accuracy coefficient is related to the accuracy of the actual power obtained. The actual power is adjusted based on the battery status coefficient and the power accuracy coefficient. Compared with the existing scheme, the influence of the battery status coefficient and the power accuracy coefficient on the actual power of the vehicle battery is taken into account, so as to determine the target power of the vehicle battery required for the vehicle software upgrade, and then compare the target power and the adjusted actual power. Based on the comparison result, it is determined whether to upgrade the vehicle software, thereby avoiding problems such as the inability to complete the vehicle software or the battery running low after the vehicle software upgrade is completed.
[0060] In one embodiment, the status data includes battery temperature and health signal data;
[0061] Get the battery status coefficient of the vehicle battery, including:
[0062] Obtaining the battery temperature, and determining the temperature coefficient based on the battery temperature;
[0063] Acquire health signal data, calibrate the health signal data to obtain a first calibration result, and determine a health coefficient based on the first calibration result;
[0064] The temperature coefficient and health coefficient are used as battery status coefficients.
[0065] The checking of the health signal data includes: checking at least one of an invalid value, an initial value, a timeout fail signal, a checksum fail, a live counter fail signal, and a remaining battery life of the health signal data.
[0066] Vehicle batteries are divided into lead-acid batteries and lithium batteries. For vehicles equipped with different types of batteries, the health factor is determined based on the first calibration result, specifically including: for lead-acid batteries, if any of the above calibration results is an error signal, SOC 健康度系数=1, if the above calibration results are all correct signals, SOC 健康度系数 =1-(1-SOH_LAM / C20)*0.6; state of health-life assessment method (SOH_LAM), C20 represents a quantitative value of the health state or performance level of the battery in a brand new state. The expression SOH_LAM / C20 calculates the reduction ratio of SOH_LAM relative to C20. If SOH_LAM is equal to C20, the value in the brackets is 0, indicating that the battery is in a brand new state with no performance loss. If SOH_LAM is less than C20, the value in the brackets is a positive number, indicating that the battery performance has declined.
[0067] For lithium batteries, if any of the above calibration results is an error signal, SOC 健康度系数 =100, if the above calibration results are all correct signals, SOC 健康度系数 This is the value output by the battery management system (BMS) itself;
[0068] In this embodiment, the actual power is corrected based on the health coefficient. Compared with the existing scheme, the impact of the health coefficient on the actual power is taken into account, thereby avoiding the occurrence of problems such as the inability to complete the OTA upgrade or the battery running out of power after the OTA upgrade is completed due to poor battery health.
[0069] In this embodiment, there is a linear relationship between the battery temperature and the temperature coefficient. The battery of the vehicle is divided into lead-acid battery and lithium battery. For different types of batteries, the specific situation of the linear relationship is different;
[0070] The temperature coefficient and the health coefficient are used together as the battery state coefficient, so that the actual power is adjusted based on the temperature coefficient and the health coefficient.
[0071] In the above embodiment, for different types of batteries, the specific situation of the linear relationship is as follows:
[0072] For lead-acid batteries, SOC 温度系数 The linear relationship with battery temperature is shown below Figure 2 (Based on the test of the physical discharge characteristics of lead-acid batteries), the middle value between any two values in the figure is determined based on this linear relationship.
[0073] For lithium batteries, in one of the embodiments, obtaining the battery temperature includes: receiving cell temperature signals of multiple battery cells of a vehicle battery; determining the cell temperature of each battery cell based on the cell temperature signals; calibrating signal data of the cell temperature signal of each battery cell to obtain a second calibration result; determining the battery temperature based on the cell temperature of each battery cell and the second calibration results corresponding to each battery cell.
[0074] In this embodiment, for a 12V lithium battery, SOC 温度系数 The linear relationship with battery temperature is shown below Figure 3 As shown (based on the test of the physical discharge characteristics of 12v lithium battery), the middle value of any two values in the figure is determined based on this linear relationship.
[0075] A 12V lithium battery generally contains multiple cells, and temperature sensors are installed on all or part of the cells, so that the cell temperature signals of the receiving part of the cells can be detected, and each cell temperature signal carries the cell temperature of each cell;
[0076] The signal data of the cell temperature signal of each cell is checked, including checking at least one of the invalid value, initial value, timeout failure signal, checksum failure, and active counter failure signal of the signal data. If the check result of each item is successful, the check result of the cell temperature signal of the cell is successful, and the cell temperature carried in the cell temperature signal of the cell is valid. If the check result of any item is a check failure, the check result of the cell temperature signal of the cell is a check failure, and the cell temperature carried in the cell temperature signal of the cell is invalid. The battery temperature is equal to the sum of all valid cell temperatures divided by the number of cells that have been tested for cell temperature.
[0077] Here we take 4 cells as an example, 3 of which have temperature sensors, and each cell has 1 temperature sensor. Output the cell temperature signals detected by the 3 temperature sensors, and the judgment signals of whether the 3 cell temperature signals are correct include invalid values, initial values, timeout failure signals, checksum failure, and active counter failure signals. If all the signals in the 3 temperature judgment signals are correct signals, then T 锂电池 = (T1+T2+T3) divided by 3; if the judgment signal of T3 temperature among the three temperature judgment signals is wrong, then T 锂电池 = (T1 + T2) divided by 3, T1 and T2 are the temperatures where both judgment signals are correct; if 2 of the 3 temperature judgment signals are wrong, then T 锂电池 =T1, T is the temperature at which the judgment signal is correct.
[0078] In this embodiment, a specific method of calculating the temperature coefficient of different batteries is described, which can measure the battery temperature and accurately determine the temperature coefficient.
[0079] In this embodiment, compared with the existing solutions, the influence of battery temperature on the actual power is taken into consideration, thereby avoiding the occurrence of problems such as the inability to complete OTA or battery power failure after the OTA upgrade is completed when the temperature value is too low.
[0080] In one embodiment, obtaining the power accuracy coefficient of a vehicle battery includes: obtaining power signal data of the vehicle battery and accuracy signal data of power status accuracy; calibrating the power signal data to obtain a third calibration result; and determining the power accuracy coefficient based on the third calibration result and at least one of the accuracy signal data.
[0081] Among them, the power signal data is checked, including: checking at least one of the invalid value, initial value, timeout failure signal, checksum failure, and active counter failure signal of the power signal data, obtaining a third check result, and determining the power coefficient based on the third check result.
[0082] A state accuracy coefficient can be obtained based on the power state accuracy signal, and at least one of the power coefficient and the state accuracy coefficient is used as the power accuracy coefficient. Specifically, when the vehicle battery is a lead-acid battery, the power coefficient and the state accuracy coefficient are used as the power accuracy coefficient; when the vehicle battery is a lithium battery, the power coefficient is used as the power accuracy coefficient.
[0083] Based on the accuracy signal data, the state accuracy coefficient can be obtained, specifically including: SOCState represents the power state accuracy, when SOCState=2, SOC 状态精度系数 =0; when SOCState=1, SOC 状态精度系数 =-10; when SOCState=0, SOC 状态精度系数 =-100, in this case, OTA upgrade is prohibited.
[0084] In one embodiment, before determining the power accuracy coefficient based on at least one of the third calibration result and the accuracy signal data, the method further includes: if the third calibration result is a calibration failure, stopping the vehicle software upgrade. If the third calibration result is a calibration success, performing the step of determining the power accuracy coefficient based on at least one of the third calibration result and the accuracy signal data.
[0085] As described above, at least one of the invalid value, initial value, timeout failure signal, checksum failure, and active counter failure signal of the power signal data is checked to obtain a third check result. If the check result of any of the above items is a check failure, then the SOC电量系数 = 0, stop upgrading the vehicle software. If the calibration results of each item are successful, SOC 电量系数 =1, the step of determining the power accuracy coefficient based on the third calibration result and at least one of the accuracy signal data is executed.
[0086] In this embodiment, the power signal data represents whether the actual power level acquired is accurate. If the power signal data calibration fails, the present application directly stops upgrading the vehicle software, thereby avoiding upgrading the vehicle software based on erroneous power signal data, thereby avoiding the situation where the OTA upgrade cannot be completed or the battery runs out of power after the OTA upgrade is completed.
[0087] In the embodiment of the present application, the above-mentioned target power is determined based on the power consumed by the vehicle software upgrade and the preset power of the battery after the vehicle software upgrade. The preset power of the battery after the vehicle software upgrade is related to the vehicle type and the battery type. Specifically:
[0088] In one of the embodiments of the present application, a target power level of a vehicle battery required for a vehicle software upgrade is determined, including: setting a remaining power ratio of the vehicle battery after the vehicle software upgrade is completed based on the battery type of the vehicle battery and the vehicle type of the vehicle to which the vehicle battery belongs; and determining the target power level based on the remaining power ratio.
[0089] For each vehicle (lithium battery vehicle or lead-acid battery vehicle), the current during the vehicle software upgrade needs to be tested in order to more accurately set the current value of the vehicle software. Generally, the current during the vehicle software upgrade is between 15A and 30A. The time for the vehicle software upgrade is divided into 10min, 20min, 30min, 40min, etc. When the vehicle software is upgraded, the vehicle software upgrade time needs to be limited to avoid excessive battery consumption due to the long vehicle software upgrade time. Generally, the limited time is set within 40min.
[0090] Based on the vehicle software upgrade time and the current value of the vehicle software, the power consumed by the vehicle software upgrade is obtained.
[0091] The remaining power ratio refers to the ratio of the remaining power of the battery to the total power of the battery. Different battery types and the type of vehicle to which the vehicle battery belongs correspond to different remaining power ratios.
[0092] Battery types include lithium batteries and lead-acid batteries; vehicle types include models without starters and models with starters.
[0093] Based on the remaining power ratio and the total battery power, the remaining power of the vehicle battery after the vehicle software upgrade is completed can be obtained, and the remaining power and the sum of the power consumed by the vehicle software upgrade are calculated to obtain the target power.
[0094] This application describes the average current value during OTA upgrades for different vehicle models and several interval segments of the OTA upgrade cycle, so as to convert the power values required for different OTA upgrade cycles and calculate the target power of the vehicle battery required for vehicle software upgrades.
[0095] In one embodiment, for a lead-acid battery vehicle, the actual power is adjusted based on the battery state coefficient and the power accuracy coefficient, specifically including: adjusting the actual power based on the temperature coefficient, health coefficient, power coefficient and state accuracy coefficient. Specifically: the actual power after adjustment = (actual power before adjustment + SOC 状态精度系数 +SOC 温度系数 )*SOC 健康度系数 .
[0096] In one embodiment, for lithium battery vehicles, the actual power is adjusted based on the battery state coefficient and the power accuracy coefficient, specifically including: adjusting the actual power based on the temperature coefficient and the health coefficient and power coefficient. Specifically: the actual power after adjustment = (actual power before adjustment + SOC 温度系数 )*SOC 健康度系数 / 100.
[0097] The above “*” means multiplication, and “ / ” means division.
[0098] In this embodiment, a specific adjustment method for the actual power is described, which is conducive to more accurately determining the power of the vehicle battery that can be used for the software upgrade process.
[0099] Different types of vehicle batteries (lead-acid or lithium batteries) have different strategies for determining whether to upgrade the vehicle software (strategy refers to the specific method of adjusting the actual power based on the battery status coefficient and the power accuracy coefficient for lead-acid battery vehicles or lithium battery vehicles, as well as the selected remaining power ratio, and the correspondence between the battery temperature and the temperature coefficient) . When different vehicles use different types of batteries, the strategy needs to be changed. In an embodiment of the present application, the strategies corresponding to each battery type are written into the same controller, and the controller is set in the vehicle, so that based on different battery types, the corresponding type of strategy can be selected through the configuration code, which greatly improves the platformization and modularization of software applications.
[0100] This controller is connected to the cloud via controller area network (CAN) communication. The strategy determined when the vehicle software is upgraded can be set through the cloud for all vehicles or vehicles with certain configurations, which greatly improves convenience.
[0101] For example, the judgment strategies for OTA upgrades of different vehicle models equipped with 12v lead-acid batteries or 12v lithium batteries can all be integrated into one controller. When a certain battery is configured, the corresponding judgment strategy can be selected through the configuration code.
[0102] Specifically, refer to Figure 4 , respectively, from the perspective of lead-acid battery vehicles and lithium battery vehicles, the corresponding strategies of lead-acid battery vehicles and lithium battery vehicles stored in the controller are explained, wherein the battery sensor is used to transmit the actual power of the lead-acid battery or lithium battery to the OTA upgrade strategy controller, the OTA upgrade strategy controller is used to set the upgrade strategy, and the OTA controller is used to control the OTA upgrade:
[0103] For lead-acid battery vehicles, the strategy for determining whether to upgrade the vehicle software is as follows:
[0104] 1. The actual power of the received 12V lead-acid battery needs to be corrected from several dimensions, including whether the battery power signal is correct, the power state accuracy signal, the battery temperature, and the battery health coefficient (battery active material loss). The correction logic software can be deployed inside the controller such as the gateway or vehicle controller;
[0105] 2. The minimum power value after OTA upgrade is limited for different models, which are divided into: models with starter, the minimum power value is set at 40-50%; models without starter, the minimum power value is set at 30-40%.
[0106] 3. According to the method described in the above embodiment, determine the amount of electricity consumed when the vehicle is performing a software upgrade.
[0107] 4. Calculate the power threshold required before OTA upgrade when the OTA upgrade time is 10min, 20min, 30min, and 40min. The target power of the vehicle battery required for vehicle software upgrade = remaining power + power consumed by vehicle software upgrade.
[0108] 5. Determine whether the battery power signal is correct, including the judgment of Invalid Value, Initial Value, TimeoutFail, ChecksumFail, LiveCounterFail and other signals. If there is an error, SOC 电量修正 =0, prohibit OTA upgrade;
[0109] 6. Calculate the state accuracy coefficient.
[0110] 7. Reference Figure 2 , determine the battery temperature and calculate the temperature coefficient;
[0111] 8. Determine the health coefficient. Determine the battery health (battery active material loss) SOH_LAM, including the judgment of Invalid / Initial Value, TimeoutFail, ChecksumFail, LiveCounterFail, SOH_LAM_State and other signals. If any of these signals is wrong, SOC 健康度系数 =1, if all signals are correct, SOC 健康度系数 =1-(1-SOH_LAM / C20)*0.6;
[0112] 9. According to the above correction strategy, the actual power after adjustment = (actual power before adjustment + SOC 状态精度系数 +SOC 温度系数 )*SOC 健康度系数 If the actual power after adjustment is ≥ the target power of the vehicle battery, the OTA determines that the upgrade is possible, otherwise it cannot be upgraded.
[0113] For lithium battery vehicles, the strategy for determining whether to upgrade the vehicle software is as follows:
[0114] 1. Correct the actual power received from the dimensions of whether the battery power signal is correct, battery temperature, and battery health coefficient. The above signals are sent by the BMS (battery management system) of the 12v lithium battery. The correction logic software can be deployed inside the controller such as the gateway or vehicle controller;
[0115] 2. The minimum power value after OTA upgrade is limited for models without starter (no 12v lithium battery is needed to power the starter to start the engine). Since the power of the 12v lithium battery lock pack is generally 20%, the minimum power value after OTA upgrade is generally set to between 20-30%, and 25% is recommended.
[0116] 3. According to the method described in the above embodiment, determine the amount of electricity consumed when the vehicle is performing a software upgrade.
[0117] 4. Calculate the power threshold required before OTA upgrade when the OTA upgrade time is 10min, 20min, 30min, and 40min. The target power of the vehicle battery required for vehicle software upgrade = remaining power + power consumed by vehicle software upgrade.
[0118] 5. Determine whether the battery power signal is correct, including the judgment of Invalid / Initial Value, TimeoutFail, ChecksumFail, LiveCounterFail and other signals. If there is an error, SOC 电量修正 =0, prohibit OTA upgrade;
[0119] 6. Reference Figure 3 , determine the battery temperature and calculate the temperature coefficient;
[0120] 7. Determine the health coefficient. This includes whether the battery health signal is correct. The battery health signal includes Invalid / Initial Value, TimeoutFail, ChecksumFail, LiveCounterFail, etc. If any of the signals is wrong, the health coefficient is 100. If all signals are correct, the health coefficient is the value output by the BMS itself.
[0121] 8. According to the above correction strategy, the actual power after adjustment = (actual power before adjustment + SOC 温度系数 )*SOC 健康度系数 / 100, if the actual power after adjustment ≥ the target power, OTA determines that it can be upgraded, otherwise it cannot be upgraded.
[0122] It should be understood that, although the steps in the flowcharts involved in the above embodiments are displayed in sequence according to the indication of the arrows, these steps are not necessarily executed in sequence according to the order indicated by the arrows. Unless there is a clear explanation in this article, the execution of these steps is not strictly limited in order, and these steps can be executed in other orders. Moreover, at least a part of the steps in the flowcharts involved in the above embodiments may include multiple steps or multiple stages, and these steps or stages are not necessarily executed at the same time, but can be executed at different times, and the execution order of these steps or stages is not necessarily carried out in sequence, but can be executed in turn or alternately with other steps or at least a part of the steps or stages in other steps.
[0123] Based on the same inventive concept, the embodiment of the present application also provides a vehicle software upgrade device for implementing the vehicle software upgrade method involved above. The implementation scheme for solving the problem provided by the device is similar to the implementation scheme recorded in the above method, so the specific limitations of one or more vehicle software upgrade device embodiments provided below can refer to the limitations of the vehicle software upgrade method above, and will not be repeated here.
[0124] In an exemplary embodiment, Figure 5As shown, a vehicle software upgrade device 500 is provided, comprising:
[0125] The acquisition module 501 is used to acquire the actual power of the vehicle battery, the battery status coefficient and the power accuracy coefficient after receiving the vehicle software upgrade instruction sent by the terminal, wherein the battery status coefficient is determined based on the status data of the vehicle battery, and the power accuracy coefficient is related to the accuracy of the actual power acquired;
[0126] An adjustment module 502, configured to adjust the actual power based on the battery state coefficient and the power accuracy coefficient;
[0127] A comparison module 503 is used to determine a target power level of the vehicle battery required for vehicle software upgrade, and compare the target power level with the adjusted actual power level;
[0128] The determination module 504 is used to determine whether to upgrade the vehicle software based on the comparison result.
[0129] In one embodiment, the status data includes battery temperature and health signal data;
[0130] When acquiring the battery state coefficient of the vehicle battery, the acquisition module 501 is specifically used to:
[0131] acquiring the battery temperature, and determining a temperature coefficient based on the battery temperature;
[0132] Acquire the health signal data, calibrate the health signal data to obtain a first calibration result, and determine a health coefficient based on the first calibration result;
[0133] The temperature coefficient and the health coefficient are used as the battery state coefficient.
[0134] In one embodiment, when acquiring the battery temperature, the acquisition module 501 is specifically used to:
[0135] Receiving cell temperature signals of a plurality of cells of the vehicle battery;
[0136] Determining a cell temperature of each cell based on the cell temperature signal;
[0137] Calibrate the signal data of the battery cell temperature signal of each battery cell to obtain a second calibration result;
[0138] The battery temperature is determined based on the battery cell temperature of each battery cell and the second calibration result corresponding to each battery cell.
[0139] In one embodiment, when acquiring the power accuracy coefficient of the vehicle battery, the acquisition module 501 is specifically used to:
[0140] Acquiring power signal data of the vehicle battery and accuracy signal data of power state accuracy;
[0141] Calibrate the electrical quantity signal data to obtain a third calibration result;
[0142] The electrical quantity accuracy coefficient is determined based on at least one of the third calibration result and the accuracy signal data.
[0143] In one embodiment, the device includes an upgrade module, before the acquisition module 501 determines the power accuracy coefficient based on at least one of the third calibration result and the accuracy signal data; the upgrade module is used to stop upgrading the vehicle software if the third calibration result is a calibration failure. If the third calibration result is a calibration success, the step of determining the power accuracy coefficient based on at least one of the third calibration result and the accuracy signal data is performed.
[0144] In one embodiment, the determination module 503 is specifically used to: set the remaining power ratio of the vehicle battery after the vehicle software upgrade is completed based on the battery type of the vehicle battery and the vehicle type of the vehicle to which the vehicle battery belongs; and determine the target power based on the remaining power ratio.
[0145] Each module in the above vehicle software upgrade device can be implemented in whole or in part by software, hardware, or a combination thereof. Each module can be embedded in or independent of a processor in a computer device in the form of hardware, or can be stored in a memory in a computer device in the form of software, so that the processor can call and execute operations corresponding to each module.
[0146] In an exemplary embodiment, a computer device is provided. The computer device may be a server, and its internal structure diagram may be as shown in FIG. Figure 6As shown. The computer device includes a processor, a memory, an input / output interface (Input / Output, referred to as I / O) and a communication interface. The processor, the memory and the input / output interface are connected through a system bus, and the communication interface is connected to the system bus through the input / output interface. The processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, a computer program and a database. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The database of the computer device is used to store vehicle software upgrade data. The input / output interface of the computer device is used to exchange information between the processor and an external device. The communication interface of the computer device is used to communicate with an external terminal through a network connection. When the computer program is executed by the processor, a vehicle software upgrade method is implemented.
[0147] Those skilled in the art will understand that Figure 6 The structure shown in the figure is only a block diagram of a part of the structure related to the solution of the present application, and does not constitute a limitation on the computer device to which the solution of the present application is applied. The specific computer device may include more or fewer components than those shown in the figure, or combine certain components, or have a different arrangement of components.
[0148] In an exemplary embodiment, a computer device is provided, including a memory and a processor, wherein a computer program is stored in the memory, and the processor implements the steps in the above-mentioned method embodiments when executing the computer program.
[0149] In one embodiment, a computer-readable storage medium is provided, on which a computer program is stored. When the computer program is executed by a processor, the steps in the above-mentioned method embodiments are implemented.
[0150] In one embodiment, a computer program product is provided, including a computer program, which implements the steps in the above method embodiments when executed by a processor.
[0151] A person of ordinary skill in the art can understand that all or part of the processes in the above-mentioned embodiment method can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to the memory, database or other medium used in the embodiments provided in the present application can include at least one of non-volatile memory and volatile memory. Non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory, optical memory, high-density embedded non-volatile memory, resistive random access memory (ReRAM), magnetic random access memory (MRAM), ferroelectric random access memory (FRAM), phase change memory (PCM), graphene memory, etc. Volatile memory can include random access memory (RAM) or external cache memory, etc. As an illustration and not limitation, RAM can be in various forms, such as static random access memory (SRAM) or dynamic random access memory (DRAM). The database involved in each embodiment provided in this application may include at least one of a relational database and a non-relational database. Non-relational databases may include distributed databases based on blockchains, etc., but are not limited to this. The processor involved in each embodiment provided in this application may be a general-purpose processor, a central processing unit, a graphics processor, a digital signal processor, a programmable logic device, a data processing logic device based on quantum computing, an artificial intelligence (AI) processor, etc., but are not limited to this.
[0152] The technical features of the above embodiments may be combined arbitrarily. To make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this application.
[0153] The above-described embodiments only express several implementation methods of the present application, and the descriptions thereof are relatively specific and detailed, but they cannot be understood as limiting the scope of the present application. It should be pointed out that, for a person of ordinary skill in the art, several variations and improvements can be made without departing from the concept of the present application, and these all belong to the protection scope of the present application. Therefore, the protection scope of the present application shall be subject to the attached claims.
Claims
1. A vehicle software upgrade method, characterized in that: The method comprises: After receiving the vehicle software upgrade instruction sent by the terminal, obtaining the actual power of the vehicle battery, the battery status coefficient and the power accuracy coefficient, wherein the battery status coefficient is determined based on the status data of the vehicle battery, and the power accuracy coefficient is related to the accuracy of the actual power obtained; Adjusting the actual power based on the battery state coefficient and the power accuracy coefficient; Determining a target power level of the vehicle battery required for the vehicle software upgrade, and comparing the target power level with an adjusted actual power level; Based on the comparison result, determine whether to upgrade the vehicle software.
2. The method according to claim 1, characterized in that The state data includes battery temperature and health signal data; Obtaining a battery state coefficient of the vehicle battery, including: acquiring the battery temperature, and determining a temperature coefficient based on the battery temperature; Acquire the health signal data, calibrate the health signal data to obtain a first calibration result, and determine a health coefficient based on the first calibration result; The temperature coefficient and the health coefficient are used as the battery state coefficient.
3. The method according to claim 2, characterized in that The obtaining of the battery temperature includes: Receiving cell temperature signals of a plurality of cells of the vehicle battery; Determining a cell temperature of each cell based on the cell temperature signal; Calibrate the signal data of the battery cell temperature signal of each battery cell to obtain a second calibration result; The battery temperature is determined based on the battery cell temperature of each battery cell and the second calibration result corresponding to each battery cell.
4. The method according to claim 1, characterized in that Obtaining the power accuracy coefficient of the vehicle battery, including: Acquiring power signal data of the vehicle battery and accuracy signal data of power state accuracy; Calibrate the electrical quantity signal data to obtain a third calibration result; The electrical quantity accuracy coefficient is determined based on at least one of the third calibration result and the accuracy signal data.
5. The method according to claim 4, characterized in that Before determining the power accuracy coefficient based on at least one of the third calibration result and the accuracy signal data, the method further includes: If the third calibration result is a calibration failure, stop upgrading the vehicle software; if the third calibration result is a calibration success, execute the step of determining the power accuracy coefficient based on the third calibration result and at least one of the accuracy signal data.
6. The method according to any one of claims 1 to 5, characterized in that The determining of the target power of the vehicle battery required for the vehicle software upgrade includes: Based on the battery type of the vehicle battery and the vehicle type of the vehicle to which the vehicle battery belongs, setting the remaining power ratio of the vehicle battery after the vehicle software upgrade is completed; Based on the remaining power ratio, the target power is determined.
7. A vehicle software upgrade device, characterized in that: The device comprises: an acquisition module, configured to acquire, after receiving the vehicle software upgrade instruction sent by the terminal, the actual power of the vehicle battery, a battery status coefficient, and a power accuracy coefficient, wherein the battery status coefficient is determined based on the status data of the vehicle battery, and the power accuracy coefficient is related to the accuracy of the actual power acquired; An adjustment module, configured to adjust the actual power based on the battery state coefficient and the power accuracy coefficient; A comparison module, used to determine a target power level of the vehicle battery required for vehicle software upgrade, and compare the target power level with an adjusted actual power level; The determination module is used to determine whether to upgrade the vehicle software based on the comparison result.
8. A computer device comprising a memory and a processor, wherein the memory stores a computer program, wherein: When the processor executes the computer program, the steps of the method according to any one of claims 1 to 6 are implemented.
9. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 6 are implemented.
10. A computer program product, comprising a computer program, characterized in that When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 6 are implemented.
Citation Information
Patent Citations
Vehicle electric quantity management device and method
CN113682251A
Vehicle OTA upgrading energy consumption estimation method and device and electronic equipment
CN114327560A
OTA upgrade control method
CN115865663A
Storage battery remaining capacity prediction method and device, electronic equipment and storage medium
CN116718933A
Vehicle and method of controlling the same
US20220308856A1
Cited By
Heavy truck battery replacement control method and system
CN121209950A