Battery remaining charging time calculation method and device, electronic equipment and storage medium
By acquiring battery temperature and state of charge (SOC) values, and combining them with preset relationships to calculate charging current and temperature rise rate, the SOC values are iteratively updated, thus solving the problem of charging time calculation deviation and achieving a more accurate display of remaining charging time.
Patent Information
- Application Number
- CN202211565327.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-12-07
- Publication Date
- 2026-01-30
- Estimated Expiration
- 2042-12-07
AI Technical Summary
In the existing technology, the method for calculating the remaining charging time during the charging process of electric vehicles has a deviation and cannot accurately reflect the changes in the battery's state of charge, resulting in inaccurate display of the remaining charging time.
By acquiring the current battery temperature and state of charge (SOC) value, and combining them with a preset correspondence, the charging current and temperature rise rate are calculated. The SOC value is then iteratively updated until the target SOC value is reached, and the remaining charging time is determined.
It improves the accuracy and reliability of remaining charging time, helping users to rationally plan their charging time.
Smart Images

Figure CN116359764B_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of battery charging technology, and in particular to a method, apparatus, electronic device, and storage medium for calculating the remaining charging time of a battery. Background Technology
[0002] With the rapid development of electric vehicle technology, electric vehicle charging has become a common sight. Displaying the remaining charging time during the charging process is particularly important for users. Accurately calculating and displaying the remaining charging time provides users with precise information, allowing them to rationally plan and schedule their time.
[0003] In existing technologies, remaining charging time is mostly calculated using the remaining charging capacity and the charging current output by the charging station. Furthermore, considering the impact of charging losses, the calculated remaining charging time is multiplied by a fixed proportional coefficient to arrive at the final displayed remaining charging time. However, during the charging process, the battery's state of charge (SOC) continuously changes. As the SOC increases, the charging current decreases. Therefore, using existing methods to calculate remaining charging time will result in a discrepancy between the displayed remaining charging time and the actual required remaining charging time. Summary of the Invention
[0004] This invention provides a method, apparatus, electronic device, and storage medium for calculating the remaining charging time of a battery, so as to accurately calculate and adjust the remaining charging time of the battery during the charging process, thereby improving the accuracy and reliability of the remaining charging time.
[0005] According to one aspect of the present invention, a method for calculating the remaining charging time of a battery is provided, comprising:
[0006] Obtain the current battery temperature value and the current battery state of charge value; wherein, the current battery temperature value is assigned to the initial value of the calculated battery temperature value, and the current battery state of charge value is assigned to the initial value of the calculated battery state of charge value;
[0007] If the calculated battery state of charge is less than the target battery state of charge, then the calculated charging current and the temperature rise rate are determined based on the calculated battery temperature, the calculated battery state of charge, and a preset correspondence; wherein, the initial values of the calculated battery temperature and the initial values of the calculated battery state of charge are used to determine the calculated charging current and the temperature rise rate for the first time.
[0008] When the temperature rise rate does not meet the set conditions, the calculated value of the battery state of charge is determined by accumulating the calculated value of the charging current and the temperature rise rate, and the theoretical remaining charging time is determined by accumulating the calculated value of the temperature rise rate; the calculated value of the battery state of charge is compared with the target battery state of charge value, and the calculated value of the battery temperature is updated by step according to the temperature rise rate based on the comparison result, and the calculated value of the charging current and the temperature rise rate are re-determined;
[0009] When the calculated battery state of charge is greater than or equal to the target battery state of charge, the remaining battery charging time is determined based on the theoretical remaining charging time.
[0010] Optionally, after determining the calculated charging current and temperature rise rate based on the calculated battery temperature, the calculated battery state of charge, and a preset correspondence if the calculated battery state of charge is less than the target battery state of charge, the further step includes:
[0011] When the temperature rise rate meets the set conditions, the theoretical remaining charging time is determined based on the target battery state of charge value, the calculated battery state of charge value, and the calculated charging current value, and the calculated battery state of charge value is assigned as the target battery state of charge value.
[0012] Optionally, before obtaining the current battery temperature value and the current battery state of charge value, the method further includes:
[0013] Determine whether to update the remaining charging time of the battery based on at least one of the current battery temperature value, the current battery state of charge value, and the target battery state of charge value.
[0014] Optionally, determining whether to update the remaining battery charging time based on at least one of the current battery temperature value, the current battery state of charge value, and the target battery state of charge value includes:
[0015] The current battery temperature value, the current battery state of charge value, and the target battery state of charge value are detected and determined at a preset time period to see if they have changed.
[0016] If at least one of the current battery temperature value, the current battery state of charge value, and the target battery state of charge value changes, a judgment result is generated, and the remaining charging time of the battery is updated based on the judgment result.
[0017] Optionally, updating the calculated battery temperature value according to the temperature rise rate in steps includes:
[0018] When the temperature rise rate is greater than 0, the step size is 1°C;
[0019] When the temperature rise rate is less than 0, the step size is -1℃.
[0020] Optionally, the preset correspondence includes: a first preset relationship table and a second preset relationship table;
[0021] The step of determining the calculated charging current and temperature rise rate based on the calculated battery temperature, the calculated battery state of charge, and a preset correspondence includes:
[0022] The calculated value of the charging current is determined based on the calculated value of the battery temperature, the calculated value of the battery state of charge, and the first preset relationship table;
[0023] The temperature rise rate is determined based on the calculated battery temperature, the calculated charging current, and the second preset relationship table.
[0024] Optionally, determining the remaining charging time of the battery based on the theoretical remaining charging time when the calculated battery state of charge value is greater than or equal to the target battery state of charge value includes:
[0025] The time curve descent coefficient is determined based on the battery remaining charge time from the last update and the theoretical remaining charge time determined by this accumulation.
[0026] The remaining charging time of the battery is determined based on the theoretical remaining charging time and the descent coefficient of the time curve.
[0027] According to another aspect of the present invention, a battery remaining charging time calculation device is provided, comprising:
[0028] An initial value acquisition module is used to acquire the current battery temperature value and the current battery state of charge value; wherein, the current battery temperature value is assigned to the initial value of the calculated battery temperature value, and the current battery state of charge value is assigned to the initial value of the calculated battery state of charge value;
[0029] The parameter update module is used to determine the calculated charging current and temperature rise rate based on the calculated battery temperature, the calculated battery state of charge, and a preset correspondence if the calculated battery state of charge is less than the target battery state of charge. The initial values of the calculated battery temperature and the calculated battery state of charge are used to determine the calculated charging current and the temperature rise rate for the first time.
[0030] The calculation module is used to, when the temperature rise rate does not meet the set conditions, accumulate and determine the calculated value of the battery state of charge based on the calculated value of the charging current and the temperature rise rate, and accumulate and determine the theoretical remaining charging time based on the temperature rise rate; compare the calculated value of the battery state of charge with the target battery state of charge value, and update the calculated value of the battery temperature according to the temperature rise rate in step size based on the comparison result, and redetermine the calculated value of the charging current and the temperature rise rate;
[0031] The result determination module is used to determine the remaining charging time of the battery based on the theoretical remaining charging time when the calculated value of the battery state of charge is greater than or equal to the target battery state of charge value.
[0032] According to another aspect of the present invention, an electronic device is also provided, comprising:
[0033] One or more processors;
[0034] Storage device for storing one or more programs.
[0035] When the one or more programs are executed by the one or more processors, the one or more processors implement the battery remaining charging time calculation method as described in the first aspect.
[0036] According to another aspect of the present invention, a storage medium comprising computer-executable instructions is also provided, which, when executed by a computer processor, are used to perform the battery remaining charging time calculation method as described in the first aspect.
[0037] The battery remaining charging time calculation method provided in this invention obtains the current battery temperature value and the current battery state of charge (SOC) value, which are used as the initial values for the calculated battery temperature and SOC values respectively during the iterative calculation process. If the calculated SOC value is determined to be less than the target SOC value, the calculated charging current value and temperature rise rate are determined based on the calculated battery temperature value, the calculated SOC value, and a preset correspondence. The initial values of the calculated battery temperature value and the calculated SOC value are used to initially determine the calculated charging current value and temperature rise rate. When the temperature rise rate does not meet the set conditions, the calculated SOC value is determined by accumulating the calculated charging current value and the temperature rise rate. The theoretical remaining charging time is determined by accumulating the temperature rise rate, and the relationship between the calculated SOC value and the target SOC value is determined. If the calculated SOC value is still less than the target SOC value, the calculated battery temperature value is updated based on the temperature rise rate, and the calculated charging current value and temperature rise rate are re-determined until the calculated SOC value is greater than or equal to the target SOC value. The battery remaining charging time calculation method provided in this embodiment of the invention can accurately calculate the remaining charging time of the battery, improve the accuracy and reliability of the displayed remaining charging time, and facilitate users to reasonably arrange and plan their time.
[0038] It should be understood that the description in this section is not intended to identify key or essential features of the embodiments of the present invention, nor is it intended to limit the scope of the invention. Other features of the invention will become readily apparent from the following description. Attached Figure Description
[0039] To more clearly illustrate the technical solutions in the embodiments of the present invention, the accompanying drawings used in the description of the embodiments will be briefly introduced below. Obviously, the accompanying drawings described below are only some embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0040] Figure 1 This is a flowchart illustrating a method for calculating the remaining charging time of a battery according to an embodiment of the present invention.
[0041] Figure 2 This is a flowchart illustrating another method for calculating the remaining charging time of a battery according to an embodiment of the present invention.
[0042] Figure 3 This is a flowchart illustrating another method for calculating the remaining charging time of a battery according to an embodiment of the present invention.
[0043] Figure 4 This is a schematic diagram of the specific process of step S310 in another method for calculating the remaining charging time of a battery according to an embodiment of the present invention.
[0044] Figure 5 This is a flowchart illustrating another method for calculating the remaining charging time of a battery according to an embodiment of the present invention.
[0045] Figure 6 This is a flowchart illustrating another method for calculating the remaining charging time of a battery according to an embodiment of the present invention.
[0046] Figure 7 This is a schematic diagram of a battery remaining charging time calculation device according to an embodiment of the present invention;
[0047] Figure 8 This is a schematic diagram of the structure of an electronic device provided according to an embodiment of the present invention. Detailed Implementation
[0048] To enable those skilled in the art to better understand the present invention, the technical solutions of the present invention will be clearly and completely described below with reference to the accompanying drawings of the embodiments. Obviously, the described embodiments are only some embodiments of the present invention, and not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort should fall within the scope of protection of the present invention.
[0049] It should be noted that the terms "first," "second," etc., in the specification, claims, and accompanying drawings of this invention are used to distinguish similar objects and are not necessarily used to describe a specific order or sequence. It should be understood that such data can be interchanged where appropriate so that the embodiments of the invention described herein can be implemented in orders other than those illustrated or described herein. Furthermore, the terms "comprising" and "having," and any variations thereof, are intended to cover a non-exclusive inclusion; for example, a process, method, system, product, or apparatus that comprises a series of steps or units is not necessarily limited to those steps or units explicitly listed, but may include other steps or units not explicitly listed or inherent to such processes, methods, products, or apparatus.
[0050] This invention provides a method for calculating the remaining charging time of a battery. Figure 1 This is a flowchart illustrating a method for calculating the remaining charging time of a battery according to an embodiment of the present invention. This embodiment is applicable to calculating the remaining charging time of an electric vehicle. The method can be executed by a battery remaining charging time calculation device and specifically includes the following steps:
[0051] S110. Obtain the current battery temperature value and the current battery state of charge value; wherein, the current battery temperature value is assigned to the initial value of the calculated battery temperature value, and the current battery state of charge value is assigned to the initial value of the calculated battery state of charge value.
[0052] Specifically, the current battery state of charge (SOC) value is the SOC value displayed on the vehicle's instrument panel, and the current battery temperature value is the temperature of the current battery module, which can be obtained through a temperature sensor installed on the battery module. The calculated battery temperature value is the battery temperature parameter used in calculating the remaining charging time, and the calculated battery SOC value is the battery SOC parameter used in calculating the remaining charging time.
[0053] When obtaining the current battery temperature value, multiple temperature points of the battery module need to be collected and compared. Since the optimal charging temperature range for the battery module is 15–45°C, the charging current is higher when the battery module temperature is within this range, and lower when it is outside this range. Therefore, to ensure a higher charging current, the temperature point that limits the charging current must be used as the current battery temperature value when determining the current battery temperature. For example, if the lowest temperature of the battery module is greater than or equal to 20°C, the highest temperature among the multiple temperature points is determined as the current battery temperature value; if the lowest temperature of the battery module is less than 20°C, the lowest temperature among the multiple temperature points is determined as the current battery temperature value.
[0054] When calculating the remaining charging time of the battery, the current battery temperature value is obtained as the initial value for the battery temperature calculation, and the current battery state of charge value is obtained as the initial value for the battery state of charge calculation, so as to perform subsequent calculations and determine the remaining charging time of the battery.
[0055] S120. If the calculated battery state of charge is less than the target battery state of charge, then the calculated charging current and temperature rise rate are determined based on the calculated battery temperature, the calculated battery state of charge, and the preset correspondence. The initial values of the calculated battery temperature and the calculated battery state of charge are used to determine the calculated charging current and temperature rise rate for the first time.
[0056] Specifically, the target battery state of charge (SOC) value is the actual SOC value required by the user, which can be set by the user and changed by the user throughout the vehicle's charging process.
[0057] During the calculation of remaining charging time, if the calculated battery state of charge (SOC) is less than the target SOC, it indicates that the calculated remaining charging time is insufficient to reach the target SOC. Therefore, the initial values of the calculated battery temperature (assigned from the current battery temperature) and the initial values of the calculated SOC (assigned from the current battery SOC) are used for the first calculation to obtain the calculated SOC. If the calculated SOC is less than the target SOC, the remaining charging time needs to be calculated iteratively multiple times until the calculated SOC is greater than or equal to the target SOC, at which point the iterative calculation stops.
[0058] The calculated charging current value is the charging current value used in the remaining charging time calculation. Based on the initial value of the calculated battery temperature, the charging current value is initially determined by querying the corresponding preset relationship. The initially determined charging current value is compared with the maximum charging current value output by the charging pile, and the relatively smaller charging current is selected as the calculated charging current value. The maximum charging current value output by the charging pile can be obtained through CML messages or AC gun messages. The CML message includes information on the highest output voltage, lowest output voltage, maximum output current, and minimum output current, which are the standard voltage or current values specified by national standards. The voltage or current information included in the AC gun message is the voltage or current output value set by the specific charging pile model or manufacturer.
[0059] After the calculated charging current value is determined, the current temperature rise rate of the battery can be determined according to the corresponding preset relationship. Here, the temperature rise rate represents the rate of change of battery temperature.
[0060] S130. When the temperature rise rate does not meet the set conditions, the calculated value of the battery state of charge is determined by accumulating the calculated value of the charging current and the temperature rise rate, and the theoretical remaining charging time is determined by accumulating the calculated value of the battery state of charge and the target battery state of charge value is compared with the calculated value of the battery state of charge. Based on the comparison result, the calculated value of the battery temperature is updated according to the temperature rise rate in step size, and the calculated value of the charging current and the temperature rise rate are re-determined.
[0061] Specifically, the temperature rise rate is set under the condition that the battery temperature does not change, and the theoretical remaining charging time is the remaining charging time obtained after one calculation.
[0062] When the temperature rise rate does not meet the set conditions, the battery temperature will change during the charging process, and the charging current will also change. Therefore, the calculated battery state of charge (SOC) value is obtained by summing the calculated charging current value and the temperature rise rate. The theoretical remaining charging time is determined based on the current temperature rise rate. The calculated SOC value is then compared with the target SOC value to determine the relationship between the two values.
[0063] If the calculated battery state of charge is still less than the target battery state of charge, then the step size is added to the current battery temperature calculation value based on the temperature rise rate to obtain the battery temperature calculation value for the next iteration. Then, step S120 is executed again to redetermine the calculated charging current value and temperature rise rate, thereby determining the calculated battery state of charge value and the theoretical remaining charging time.
[0064] S140. When the calculated value of the battery state of charge is greater than or equal to the target battery state of charge value, the remaining charging time of the battery is determined based on the theoretical remaining charging time.
[0065] Specifically, when the calculated value of the battery state of charge is greater than or equal to the target battery state of charge value after multiple iterations of calculation, the theoretical remaining charging time obtained from the last calculation is determined as the remaining charging time of the battery and displayed on the vehicle instrument panel so that the user can be aware of it.
[0066] The battery remaining charging time calculation method provided in this embodiment obtains the current battery temperature value and the current battery state of charge (SOC) value, which are used as the initial values for the battery temperature calculation and the battery SOC calculation, respectively, during the iterative calculation process. If it is determined that the battery SOC calculation value is less than the target battery SOC value, the charging current calculation value and the temperature rise rate are determined based on the battery temperature calculation value, the battery SOC calculation value, and a preset correspondence. The initial values of the battery temperature calculation value and the battery SOC calculation value are used to initially determine the charging current calculation value and the temperature rise rate. When the temperature rise rate does not meet the set conditions, the battery SOC calculation value is determined by accumulating the charging current calculation value and the temperature rise rate, and the theoretical remaining charging time is determined by accumulating the temperature rise rate. The relationship between the battery SOC calculation value and the target battery SOC value is also determined. If the battery SOC calculation value is still less than the target battery SOC value, the battery temperature calculation value is updated based on the temperature rise rate, and the charging current calculation value and the temperature rise rate are re-determined until the battery SOC calculation value is greater than or equal to the target battery SOC value. The battery remaining charging time calculation method provided in this embodiment can accurately calculate the remaining charging time, improve the accuracy and reliability of the displayed remaining charging time, and facilitate users to reasonably arrange and plan their time.
[0067] Optionally, Figure 2This is a flowchart illustrating another method for calculating remaining battery charging time provided by an embodiment of the present invention. Based on the above embodiments, as follows... Figure 2 As shown, the method for calculating the remaining charging time of the battery includes:
[0068] S210. Obtain the current battery temperature value and the current battery state of charge value.
[0069] S220. If the calculated battery state of charge is less than the target battery state of charge, then the calculated charging current and temperature rise rate are determined based on the calculated battery temperature, the calculated battery state of charge, and a preset correspondence; wherein, the initial values of the calculated battery temperature and the initial values of the calculated battery state of charge are used to determine the calculated charging current and temperature rise rate for the first time.
[0070] S230. When the temperature rise rate meets the set conditions, determine the theoretical remaining charging time based on the target battery state of charge value, the calculated battery state of charge value, and the calculated charging current value, and assign the calculated battery state of charge value to the target battery state of charge value.
[0071] Specifically, if the temperature rise rate meets the set conditions, indicating that the battery temperature does not change, then the charging current also does not change. Therefore, based on the target battery state of charge (SOC), the calculated SOC, and the calculated charging current, the theoretical remaining charging time can be directly calculated using the following formula, which can be expressed as:
[0072] Theoretical remaining charging time = Battery capacity × (Target battery state of charge - Calculated battery state of charge) / Calculated charging current
[0073] Battery capacity refers to the total capacity of the battery when it is fully charged. Battery capacity parameters can be obtained from the battery nameplate.
[0074] S240. When the temperature rise rate does not meet the set conditions, the calculated value of the battery state of charge is determined by accumulating the calculated value of the charging current and the temperature rise rate, and the theoretical remaining charging time is determined by accumulating the calculated value of the battery state of charge and the target battery state of charge value is compared with the calculated value of the battery state of charge. Based on the comparison result, the calculated value of the battery temperature is updated according to the temperature rise rate in steps, and the calculated value of the charging current and the temperature rise rate are re-determined.
[0075] S250. When the calculated value of the battery state of charge is greater than or equal to the target battery state of charge value, the remaining charging time of the battery is determined based on the theoretical remaining charging time.
[0076] Optionally, Figure 3 This is a flowchart illustrating another method for calculating remaining battery charging time provided by an embodiment of the present invention. Based on the above embodiments, as follows... Figure 3As shown, the method for calculating the remaining charging time of the battery includes:
[0077] S310. Determine whether to update the remaining battery charging time based on at least one of the current battery temperature value, the current battery state of charge value, and the target battery state of charge value.
[0078] Specifically, if the current battery temperature, current battery state of charge (SBC), and target battery SBC remain unchanged after the last update of the remaining battery charging time, the remaining charging time displayed in the last update will still have high accuracy. If at least one of the current battery temperature, current battery SBC, and target battery SBC changes, the accuracy of the displayed remaining battery charging time will be lower, and it will need to be recalculated and updated.
[0079] S320: Obtain the current battery temperature value and the current battery state of charge value.
[0080] S330. If the calculated value of the battery state of charge is less than the target battery state of charge value, then the calculated value of the charging current and the temperature rise rate are determined according to the calculated value of the battery temperature, the calculated value of the battery state of charge and the preset correspondence; wherein, the initial value of the calculated value of the battery temperature and the initial value of the calculated value of the battery state of charge are used to determine the calculated value of the charging current and the temperature rise rate for the first time.
[0081] S340. When the temperature rise rate meets the set conditions, determine the theoretical remaining charging time based on the target battery state of charge value, the calculated battery state of charge value, and the calculated charging current value, and assign the calculated battery state of charge value to the target battery state of charge value.
[0082] S350: When the temperature rise rate does not meet the set conditions, the calculated value of the battery state of charge is determined by accumulating the calculated value of the charging current and the temperature rise rate, and the theoretical remaining charging time is determined by accumulating the calculated value of the battery state of charge and the target battery state of charge value is compared with the calculated value of the battery state of charge. Based on the comparison result, the calculated value of the battery temperature is updated according to the temperature rise rate in step size, and the calculated value of the charging current and the temperature rise rate are re-determined.
[0083] S360. When the calculated value of the battery state of charge is greater than or equal to the target battery state of charge value, the remaining charging time of the battery is determined based on the theoretical remaining charging time.
[0084] Optionally, Figure 4 This is a schematic flowchart of step S310 in another battery remaining charging time calculation method provided in an embodiment of the present invention. Based on the above embodiments, as follows... Figure 4 As shown, step S310 includes:
[0085] S3101. Detect and determine whether the current battery temperature value, the current battery state of charge value, and the target battery state of charge value have changed at a preset time period.
[0086] Specifically, after updating the remaining battery charging time displayed on the vehicle's instrument panel, the current battery temperature, current battery state of charge (SOC), and target battery SOC are detected at preset time intervals, and the detection results are evaluated to determine whether these values have changed. For example, the preset time interval can be 1 second, but this is not a limitation.
[0087] S3102. If at least one of the current battery temperature value, the current battery state of charge value, and the target battery state of charge value changes, a judgment result is generated, and the remaining charging time of the battery is updated according to the judgment result.
[0088] Specifically, during vehicle battery charging, the current battery state of charge gradually increases, and the current battery temperature also changes. When a change in the current battery temperature or current battery state of charge is detected at a preset time period, it is determined that the accuracy of the remaining charging time displayed on the instrument panel is low, a judgment result is generated, and the remaining battery charging time is updated.
[0089] Furthermore, the target battery state of charge (SOC) value can be set by the user according to actual conditions. Therefore, the target SOC value will change during vehicle battery charging. When a change in the target SOC value is detected, a judgment result is generated. Similarly, based on the judgment result, the remaining battery charging time needs to be recalculated, and the updated remaining battery charging time is displayed on the instrument panel.
[0090] Optionally, based on the above embodiments, the calculated battery temperature value is updated according to the temperature rise rate in steps, including:
[0091] When the temperature rise rate is greater than 0, the step size is 1℃;
[0092] When the rate of temperature rise is less than 0, the step size is -1℃.
[0093] Specifically, after the theoretical remaining charging time is calculated in this iteration, if it is determined that the calculated battery state of charge (SOC) is still less than the target SOC, then the next iteration needs to be performed. At this time, the battery temperature calculation parameters for the next iteration need to be updated according to the temperature rise rate used in the current iteration, with a certain step size. For example, if the temperature rise rate used in the current iteration is greater than 0, the battery temperature calculation value for the next iteration is incremented by 1°C; if the temperature rise rate used in the current iteration is less than 0, the battery temperature calculation value for the next iteration is incremented by -1°C, i.e., decreased by 1°C. Table 1 is the temperature rise rate table provided in this embodiment, as shown in Table 1.
[0094] Table 1 Temperature Rise Rate Table
[0095]
[0096] For example, taking the calculated battery temperature of 22℃ and the calculated charging current of 1.2C in this iteration as an example, according to Table 1 above, the temperature rise rate in this iteration is 95s / ℃. Since the temperature rise rate is greater than 0, the calculated battery temperature for the next iteration is 23℃.
[0097] It should be noted that, as shown in Table 1, when the temperature rise rate is 1800, it indicates that the temperature rise rate meets the set conditions and the temperature will not change; when the temperature rise rate is not equal to 1800, it indicates that the temperature rise rate does not meet the set conditions. Here, 1800 is merely an indicator that the temperature rise rate meets the set conditions and has no practical significance. Other numbers can also be set as the temperature rise rate setting conditions, such as 3600.
[0098] Optionally, Figure 5 This is a flowchart illustrating another method for calculating remaining battery charging time provided by an embodiment of the present invention. Based on the above embodiments, the preset correspondence includes: a first preset relationship table and a second preset relationship table; such as... Figure 5 As shown, based on the calculated battery temperature, calculated battery state of charge, and a preset correspondence, the calculated charging current and temperature rise rate are determined, including:
[0099] S1201. Determine the calculated charging current value based on the calculated battery temperature value, the calculated battery state of charge value, and the first preset relationship table.
[0100] Specifically, the first preset relationship table is a two-dimensional table that represents the relationship between the calculated battery temperature, the calculated battery state of charge, and the calculated charging current. Once the calculated battery temperature and the calculated battery state of charge are determined, a corresponding calculated charging current value can be determined through the first preset relationship table.
[0101] S1202. Determine the temperature rise rate based on the calculated battery temperature, the calculated charging current, and the second preset relationship table.
[0102] Specifically, the second preset relationship table is a two-dimensional table representing the relationship between the calculated battery temperature, the calculated charging current, and the temperature rise rate. Once the calculated battery temperature is determined, a corresponding temperature rise rate can be determined based on the calculated charging current determined in step S1201 and the second preset relationship table.
[0103] Optionally, Figure 6 This is a flowchart illustrating another method for calculating remaining battery charging time provided by an embodiment of the present invention. Based on the above embodiments, as follows... Figure 6 As shown, the remaining charging time of the battery is determined based on the theoretical remaining charging time, including:
[0104] S1401. Determine the time curve descent coefficient based on the battery remaining charging time from the last update and the theoretical remaining charging time determined in this accumulation.
[0105] Specifically, the time curve descent coefficient is a coefficient applied to the last updated battery remaining charging time to smooth the display of the theoretical remaining charging time calculated this time. After calculating the theoretical remaining charging time, it is necessary to determine whether this is the first time the remaining charging time has been calculated. If so, it means that the theoretical remaining charging time calculated this time is the remaining charging time at the beginning of the charging process, and this theoretical remaining charging time is used as the displayed battery remaining charging time. The difference between the last displayed battery remaining charging time and the theoretical remaining charging time calculated through this iteration is used to determine the time curve descent coefficient.
[0106] S1402. Determine the remaining charging time of the battery based on the theoretical remaining charging time and the time curve descent coefficient.
[0107] Specifically, when at least one of the current battery temperature value, current battery state of charge value, and target battery state of charge value is detected to change during the charging process, the theoretical remaining charging time calculated in this iteration is used as a benchmark, and the most recently displayed remaining charging time is processed according to the time curve descent coefficient to determine the remaining charging time. This ensures that the most recently displayed remaining charging time changes smoothly to the actual remaining charging time, avoiding jumps in the remaining charging time during the update process and improving the user experience.
[0108] This invention also provides a device for calculating the remaining charging time of a battery. Figure 7 This is a schematic diagram of a battery remaining charging time calculation device provided in an embodiment of the present invention. Figure 7As shown, the battery remaining charging time calculation device 001 includes:
[0109] The initial value acquisition module 100 is used to acquire the current battery temperature value and the current battery state of charge value; wherein, the current battery temperature value is assigned to the initial value of the battery temperature calculation value, and the current battery state of charge value is assigned to the initial value of the battery state of charge calculation value;
[0110] The parameter update module 200 is used to determine the calculated charging current and temperature rise rate based on the calculated battery temperature, the calculated battery state of charge, and a preset correspondence if the calculated battery state of charge is less than the target battery state of charge. The initial values of the calculated battery temperature and the calculated battery state of charge are used to determine the calculated charging current and temperature rise rate for the first time.
[0111] The calculation module 300 is used to determine the calculated value of the battery state of charge based on the calculated value of the charging current and the temperature rise rate when the temperature rise rate does not meet the set conditions, and to determine the theoretical remaining charging time based on the temperature rise rate; to compare the calculated value of the battery state of charge with the target battery state of charge value, and to update the calculated value of the battery temperature according to the temperature rise rate in steps based on the comparison result, and to redetermine the calculated value of the charging current and the temperature rise rate.
[0112] The result determination module 400 is used to determine the remaining charging time of the battery based on the theoretical remaining charging time when the calculated value of the battery state of charge is greater than or equal to the target battery state of charge value.
[0113] The battery remaining charging time calculation device provided in the embodiments of the present invention can execute the battery remaining charging time calculation method provided in any embodiment of the present invention, and has the corresponding functional modules and beneficial effects of executing the method.
[0114] This invention also provides an electronic device. Figure 8 This is a schematic diagram of an electronic device provided for an embodiment of the present invention. The electronic device is intended to represent various forms of digital computers, such as laptop computers, desktop computers, workstations, personal digital assistants, servers, blade servers, mainframe computers, and other suitable computers. The electronic device can also represent various forms of mobile devices, such as personal digital processors, cellular phones, smartphones, and other similar computing devices. The components shown herein, their connections and relationships, and their functions are merely illustrative and are not intended to limit the implementation of the invention described and / or claimed herein.
[0115] like Figure 8As shown, the electronic device 10 includes at least one processor 11 and a memory, such as a read-only memory (ROM) 12 or a random access memory (RAM) 13, communicatively connected to the at least one processor 11. The memory stores computer programs executable by the at least one processor. The processor 11 can perform various appropriate actions and processes based on the computer program stored in the ROM 12 or loaded from storage unit 18 into the RAM 13. The RAM 13 may also store various programs and data required for the operation of the electronic device 10. The processor 11, ROM 12, and RAM 13 are interconnected via a bus 14. An input / output (I / O) interface 15 is also connected to the bus 14.
[0116] Multiple components in electronic device 10 are connected to I / O interface 15, including: input unit 16, such as keyboard, mouse, etc.; output unit 17, such as various types of displays, speakers, etc.; storage unit 18, such as disk, optical disk, etc.; and communication unit 19, such as network card, modem, wireless transceiver, etc. Communication unit 19 allows electronic device 10 to exchange information / data with other devices through computer networks such as the Internet and / or various telecommunications networks.
[0117] Processor 11 can be a variety of general-purpose and / or special-purpose processing components with processing and computing capabilities. Some examples of processor 11 include, but are not limited to, a central processing unit (CPU), a graphics processing unit (GPU), various special-purpose artificial intelligence (AI) computing chips, various processors running machine learning model algorithms, a digital signal processor (DSP), and any suitable processor, controller, microcontroller, etc. Processor 11 performs the various methods and processes described above, such as the method for calculating the remaining battery charging time.
[0118] In some embodiments, the battery remaining charging time calculation method may be implemented as a computer program tangibly contained in a computer-readable storage medium, such as storage unit 18. In some embodiments, part or all of the computer program may be loaded and / or installed on electronic device 10 via ROM 12 and / or communication unit 19. When the computer program is loaded into RAM 13 and executed by processor 11, one or more steps of the battery remaining charging time calculation method described above may be performed. Alternatively, in other embodiments, processor 11 may be configured to perform the battery remaining charging time calculation method by any other suitable means (e.g., by means of firmware).
[0119] Various embodiments of the systems and techniques described above herein can be implemented in digital electronic circuit systems, integrated circuit systems, field-programmable gate arrays (FPGAs), application-specific integrated circuits (ASICs), application-specific standard products (ASSPs), systems-on-a-chip (SoCs), payload-programmable logic devices (CPLDs), computer hardware, firmware, software, and / or combinations thereof. These various embodiments may include: implementations in one or more computer programs that can execute and / or interpret a battery remaining charging time calculation method on a programmable system including at least one programmable processor, which may be a dedicated or general-purpose programmable processor, capable of receiving data and instructions from a storage system, at least one input device, and at least one output device, and transmitting data and instructions to the storage system, the at least one input device, and the at least one output device.
[0120] In the context of this invention, a computer-readable storage medium can be a tangible medium that may contain or store a computer program for use by or in conjunction with an instruction execution system, apparatus, or device. A computer-readable storage medium may include, but is not limited to, electronic, magnetic, optical, electromagnetic, infrared, or semiconductor systems, apparatus, or devices, or any suitable combination thereof. Alternatively, a computer-readable storage medium may be a machine-readable signal medium. More specific examples of machine-readable storage media include electrical connections based on one or more wires, portable computer disks, hard disks, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), optical fibers, portable compact disk read-only memory (CD-ROM), optical storage devices, magnetic storage devices, or any suitable combination thereof.
[0121] To provide interaction with a user, the systems and techniques described herein can be implemented on an electronic device having: a display device for displaying information to the user (e.g., a CRT (cathode ray tube), LCD (liquid crystal display) monitor, or OLED (organic light-emitting diode) monitor); and a keyboard and pointing device (e.g., a mouse or trackball) through which the user provides input to the electronic device. Other types of devices can also be used to provide interaction with the user; for example, feedback provided to the user can be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user can be received in any form (including sound input, voice input, or tactile input).
[0122] The systems and technologies described herein can be implemented in computing systems that include backend components (e.g., as data servers), or computing systems that include middleware components (e.g., application servers), or computing systems that include frontend components (e.g., user computers with graphical user interfaces or web browsers through which users can interact with implementations of the systems and technologies described herein), or any combination of such backend, middleware, or frontend components. The components of the system can be interconnected via digital data communication of any form or medium (e.g., communication networks). Examples of communication networks include local area networks (LANs), wide area networks (WANs), blockchain networks, and the Internet.
[0123] A computing system can include clients and servers. Clients and servers are generally located far apart and typically interact through communication networks. The client-server relationship is created by computer programs running on the respective computers and having a client-server relationship with each other. The server can be a cloud server, also known as a cloud computing server or cloud host, which is a hosting product within the cloud computing service system to address the shortcomings of traditional physical hosts and VPS services, such as high management difficulty and weak business scalability.
[0124] It should be understood that the various forms of processes shown above can be used, with steps reordered, added, or deleted. For example, the steps described in this invention can be executed in parallel, sequentially, or in different orders, as long as the desired result of the technical solution of this invention can be achieved, and this is not limited herein.
[0125] The specific embodiments described above do not constitute a limitation on the scope of protection of this invention. Those skilled in the art should understand that various modifications, combinations, sub-combinations, and substitutions can be made according to design requirements and other factors. Any modifications, equivalent substitutions, and improvements made within the spirit and principles of this invention should be included within the scope of protection of this invention.
Claims
1. A method of calculating a remaining charging time of a battery, characterized by, The method comprises the following steps: obtaining a current battery temperature value and a current battery state of charge value; wherein the current battery temperature value is assigned to an initial value of a battery temperature calculation value, and the current battery state of charge value is assigned to an initial value of a battery state of charge calculation value; if the battery state of charge calculation value is less than a target battery state of charge value, determining a charging current calculation value and a temperature rise rate according to the battery temperature calculation value, the battery state of charge calculation value and a preset corresponding relationship; wherein the initial value of the battery temperature calculation value and the initial value of the battery state of charge calculation value are used to determine the charging current calculation value and the temperature rise rate for the first time; when the temperature rise rate does not meet a set condition, accumulating the battery state of charge calculation value according to the charging current calculation value and the temperature rise rate, and accumulating a theoretical remaining charging time according to the temperature rise rate; comparing the battery state of charge calculation value with the target battery state of charge value, and updating the battery temperature calculation value according to the temperature rise rate by a step according to a comparison result, and redetermining the charging current calculation value and the temperature rise rate; when the battery state of charge calculation value is greater than or equal to the target battery state of charge value, determining a battery remaining charging time according to the theoretical remaining charging time; wherein the determination of the battery remaining charging time according to the theoretical remaining charging time comprises: determining a time curve descending coefficient according to a last updated battery remaining charging time and the theoretical remaining charging time accumulated this time; determining the battery remaining charging time according to the theoretical remaining charging time and the time curve descending coefficient.
2. The battery remaining charge time calculation method according to claim 1, characterized by, after the step of determining the charging current calculation value and the temperature rise rate according to the battery temperature calculation value, the battery state of charge calculation value and the preset corresponding relationship when the battery state of charge calculation value is less than the target battery state of charge value, the method further comprises: when the temperature rise rate meets the set condition, determining the theoretical remaining charging time according to the target battery state of charge value, the battery state of charge calculation value and the charging current calculation value, and assigning the battery state of charge calculation value to the target battery state of charge value.
3. The battery remaining charge time calculation method according to claim 2, characterized by, before the step of obtaining the current battery temperature value and the current battery state of charge value, the method further comprises: determining whether to update the battery remaining charging time according to at least one of the current battery temperature value, the current battery state of charge value and the target battery state of charge value.
4. The battery remaining charge time calculation method according to claim 3, characterized by, the step of determining whether to update the battery remaining charging time according to at least one of the current battery temperature value, the current battery state of charge value and the target battery state of charge value comprises: detecting and determining whether the current battery temperature value, the current battery state of charge value and the target battery state of charge value change in a preset time period; if at least one of the current battery temperature value, the current battery state of charge value and the target battery state of charge value changes, generating a determination result, and updating the battery remaining charging time according to the determination result.
5. The method according to any one of claims 1 to 4, wherein The step length updating the battery temperature calculation value according to the temperature rise rate comprises: When the temperature rise rate is greater than 0, the step length is 1℃; When the temperature rise rate is less than 0, the step length is -1℃.
6. The method according to any one of claims 1 to 4, wherein The preset corresponding relationship comprises: a first preset relationship table and a second preset relationship table. The determining the charging current calculation value and the temperature rise rate according to the battery temperature calculation value, the battery state of charge calculation value and the preset corresponding relationship comprises: Determining the charging current calculation value according to the battery temperature calculation value, the battery state of charge calculation value and the first preset relationship table; Determining the temperature rise rate according to the battery temperature calculation value, the charging current calculation value and the second preset relationship table.
7. A battery remaining charge time calculating device characterized by comprising: Comprise: An initial value acquisition module is configured to acquire a current battery temperature value and a current battery state of charge value; wherein the current battery temperature value is assigned to an initial value of a battery temperature calculation value, and the current battery state of charge value is assigned to an initial value of a battery state of charge calculation value; A parameter updating module is configured to, if the battery state of charge calculation value is less than a target battery state of charge value, determine a charging current calculation value and a temperature rise rate according to the battery temperature calculation value, the battery state of charge calculation value and a preset corresponding relationship; wherein the initial value of the battery temperature calculation value and the initial value of the battery state of charge calculation value are used to determine the charging current calculation value and the temperature rise rate for the first time; A calculation module is configured to, when the temperature rise rate does not meet a set condition, accumulate the battery state of charge calculation value according to the charging current calculation value and the temperature rise rate, and accumulate a theoretical remaining charging time according to the temperature rise rate; compare the battery state of charge calculation value with the target battery state of charge value, and according to a comparison result, update the battery temperature calculation value by a step length according to the temperature rise rate, and redetermine the charging current calculation value and the temperature rise rate; A result determining module is configured to, when the battery state of charge calculation value is greater than or equal to the target battery state of charge value, determine a battery remaining charging time according to the theoretical remaining charging time; The result determining module is further configured to determine a time curve descending coefficient according to a last updated battery remaining charging time and the theoretical remaining charging time accumulated this time; The result determining module is further configured to determine the battery remaining charging time according to the theoretical remaining charging time and the time curve descending coefficient.
8. An electronic device, comprising: The electronic device comprises: One or more processors; A storage device configured to store one or more programs, When the one or more programs are executed by the one or more processors, the one or more processors implement the battery remaining charging time calculation method of any one of claims 1-6.
9. A storage medium containing computer executable instructions for performing the battery remaining charging time calculation method of any one of claims 1-6 when executed by a computer processor.
Citation Information
Patent Citations
Remaining charging time estimation method, device and system, and storage medium
CN111257752A