Estimation method and device of state of charge of battery, electronic equipment and storage medium
By determining the current working status and historical data of the battery in the battery state of charge estimation method, combining differentiated calculation logic and real-time current integration, the problems of real-time performance and large long-term deviation in the existing technology are solved, and real-time and accurate estimation of the battery state of charge is achieved.
Patent Information
- Application Number
- CN202511088313.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-08-05
- Publication Date
- 2025-10-10
- Estimated Expiration
- 2045-08-05
AI Technical Summary
Existing battery state of charge estimation methods have poor real-time performance in dynamic charging and discharging scenarios and large long-term estimation deviations, making it difficult to adapt to the influence of battery aging factors.
By determining the current working state of the battery, combined with the previous discharge depth and health status, differentiated calculation logic is used to calculate the current discharge depth in dynamic charging and discharging scenarios, and connected with real-time current integration data, the initial charge state is corrected to improve estimation accuracy.
It improves the real-time and accuracy of the battery state of charge, adapts to dynamic charging and discharging scenarios, reduces the problem of overestimation of the state of charge due to battery aging, and maintains the continuity of status data.
Smart Images

Figure CN120761902A_ABST
Abstract
Description
Technical Field
[0001] Embodiments of the present invention relate to the field of battery technology, and in particular to a method, device, electronic device, and storage medium for estimating a battery state of charge. Background Art
[0002] In the field of battery technology, the state of charge (SOC) is a core indicator reflecting the remaining battery power, and its estimation accuracy directly affects the energy management efficiency and safety performance of the battery system.
[0003] At present, the main methods for estimating the battery state of charge are the open circuit voltage method and the current integration method (Coulomb counting method), but both methods have obvious limitations: the open circuit voltage method requires the battery to be stationary for a long time to eliminate the polarization effect, which is difficult to adapt to dynamic charging and discharging scenarios and has poor real-time performance; although the current integration method can achieve dynamic estimation, it is easily affected by battery aging factors, resulting in significant long-term estimation deviations.
[0004] Therefore, it is urgent to propose a new method to solve the above problems. Summary of the Invention
[0005] The present invention provides a battery state of charge estimation method, device, electronic device and storage medium, which can determine the battery state of charge in real time and effectively improve the determination accuracy.
[0006] In a first aspect, an embodiment of the present invention provides a method for estimating a battery state of charge, the method comprising:
[0007] Determine the current working status of the battery;
[0008] When the current working state is a charge-discharge alternating state, determining a previous depth of discharge and a previous state of health of the battery;
[0009] Calculating a current depth of discharge of the battery based on the current operating state and the previous depth of discharge;
[0010] calculating a difference between the previous state of health and the current depth of discharge to obtain an initial state of charge of the battery, and determining the previous state of health as the current state of health of the battery;
[0011] The initial state of charge is corrected based on the current state of health to obtain a current state of charge of the battery.
[0012] The technical solution of the embodiment of the present invention first determines the current working state of the battery, providing a judgment basis for the specific estimation method of the subsequent determination of the battery state of charge. Then, when the current working state is a charge-discharge interactive state, the battery's previous discharge depth and previous health state are determined, providing a data basis for the subsequent determination of the battery's current discharge depth and current health state. Then, based on the current working state and the previous discharge depth, the current discharge depth of the battery is calculated, which can adapt to dynamic charging and discharging scenarios: using differentiated calculation logic for different working states (accumulation during discharge, decrement during charging) can reduce the error caused by a single formula calculation (such as ignoring the reverse effect of charging on the discharge depth), making the result more in line with the actual power consumption level, providing a data basis for the subsequent calculation of the initial state of charge, and improving the calculation accuracy of the initial state of charge. In addition, based on the "previous discharge depth" and combined with the real-time current integral data of the current working state, it is possible to achieve a dynamic connection of "historical state + real-time change", avoid calculation faults caused by state switching, and ensure continuous update of the discharge depth value. Afterwards, the difference between the previous health state and the current depth of discharge is calculated to obtain the initial state of charge of the battery, and the previous health state is determined as the current health state of the battery, which reduces the complexity of determining the initial state of charge of the battery and reduces the delay caused by complex algorithms, thereby improving the real-time performance of estimating the current state of charge of the battery; at the same time, determining the previous health state as the current health state can not only avoid the error accumulation caused by high-frequency estimation of the health state, but also maintain the continuity of the status data (especially in the absence of real-time SOH detection conditions), and provide a data basis for the subsequent acquisition of the current state of charge of the battery. Finally, the initial state of charge is corrected based on the current health state to obtain the current state of charge of the battery, avoiding the problem of overestimation of the state of charge caused by capacity decay due to battery aging, and improving the accuracy of the state of charge estimation. Therefore, the technical solution of the present invention solves the problems of poor real-time performance and large long-term estimation deviation in the prior art.
[0013] In a second aspect, an embodiment of the present invention further provides a device for estimating a battery state of charge, the device comprising:
[0014] A first determining module, configured to determine a current working state of the battery;
[0015] a second determining module, configured to determine a previous depth of discharge and a previous state of health of the battery when the current working state is a charge-discharge alternating state;
[0016] a first calculation module, configured to calculate a current depth of discharge of the battery based on the current working state and the previous depth of discharge;
[0017] The second calculation module is configured to calculate a difference between the previous health state and the current discharge depth, to obtain an initial state of charge of the battery, and to determine the previous health state as a current health state of the battery.
[0018] The correction module is configured to correct the initial state of charge based on the current health state, to obtain a current state of charge of the battery.
[0019] In a third aspect, an electronic device is provided, and the electronic device includes:
[0020] at least one processor; and a memory connected with the at least one processor; wherein the memory stores a computer program executable by the at least one processor, and the computer program is executed by the at least one processor, so that the at least one processor is capable of executing the battery state of charge estimation method in any of the first aspect.
[0021] In a fourth aspect, a storage medium containing computer executable instructions is provided, and the computer executable instructions, when executed by a computer processor, implement the battery state of charge estimation method in any of the first aspect.
[0022] It should be noted that the above computer instructions can be stored on a computer readable storage medium in whole or in part. The computer readable storage medium can be packaged together with the processor of the battery state of charge estimation device, or can be packaged separately from the processor of the battery state of charge estimation device, and the present application does not limit this.
[0023] The second aspect, the third aspect and the fourth aspect in the present application can refer to the detailed description of the first aspect; and the beneficial effects of the second aspect, the third aspect and the fourth aspect can refer to the beneficial effect analysis of the first aspect, which will not be repeated here.
[0024] In the present application, the name of the above battery state of charge estimation device does not constitute a limitation on the device or functional module itself, and in actual implementation, these devices or functional modules can appear with other names. As long as the functions of each device or functional module are similar to those of the present application, they belong to the scope of the present application claims and their equivalent technologies.
[0025] These aspects or other aspects of the present application will be more apparent in the following description. BRIEF DESCRIPTION OF DRAWINGS
[0026] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the following briefly introduces the drawings required for use in the description of the embodiments. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.
[0027] Figure 1 A schematic flow chart of a method for estimating a battery state of charge provided by an embodiment of the present invention;
[0028] Figure 2 A schematic flow chart of another method for estimating the state of charge of a battery provided by an embodiment of the present invention;
[0029] Figure 3 A schematic structural diagram of a battery state of charge estimation device provided by an embodiment of the present invention;
[0030] Figure 4 A schematic structural diagram of an electronic device provided by an embodiment of the present invention. DETAILED DESCRIPTION
[0031] The present invention will be further described in detail below with reference to the accompanying drawings and examples. It will be understood that the specific embodiments described herein are intended only to illustrate the present invention and are not intended to limit the present invention. It should also be noted that, for ease of description, the accompanying drawings only illustrate portions relevant to the present invention, not all structures.
[0032] The term "and / or" in this article is merely a description of the association relationship between associated objects, indicating that three relationships may exist. For example, A and / or B can mean: A exists alone, A and B exist at the same time, and B exists alone.
[0033] The terms "first" and "second" and the like in the specification and drawings of this application are used to distinguish different objects, or to distinguish different processing of the same object, rather than to describe a specific order of objects.
[0034] Furthermore, the terms "including," "having," and any variations thereof, as used in the description of this application are intended to cover non-exclusive inclusions. For example, a process, method, system, product, or apparatus comprising a series of steps or units is not limited to the listed steps or units but may optionally include other steps or units not listed, or may optionally include other steps or units inherent to the process, method, product, or apparatus.
[0035] It should be mentioned before discussing exemplary embodiments in more detail that some exemplary embodiments are described as processes or methods depicted as flow charts. Although flow charts describe various operations (or steps) as sequential processes, many operations therein can be implemented in parallel, concurrently or simultaneously. In addition, the order of various operations can be rearranged. When its operation is completed, the process can be terminated, but can also have additional steps not included in the accompanying drawings. The process can correspond to methods, functions, procedures, subroutines, subprograms, etc. In addition, the features in the embodiments of the present invention and the embodiments can be combined with each other without conflict.
[0036] It should be noted that in the embodiments of this application, words such as "exemplary" or "for example" are used to indicate examples, illustrations, or descriptions. Any embodiment or design described as "exemplary" or "for example" in the embodiments of this application should not be interpreted as being more preferred or advantageous over other embodiments or designs. Rather, the use of words such as "exemplary" or "for example" is intended to present the relevant concepts in a concrete manner.
[0037] In the description of the present application, unless otherwise specified, “plurality” means two or more.
[0038] Figure 1 This is a flow chart of a method for estimating the battery state of charge provided by an embodiment of the present invention. This embodiment is applicable to situations where real-time estimation of the battery state of charge is required. The method can be performed by a battery state of charge estimation device, which can be implemented in software and / or hardware. For example, the device can be integrated into an electronic device. Figure 1 The battery state of charge estimation method of this embodiment specifically includes the following steps:
[0039] Step 110: Determine the current working status of the battery.
[0040] Specifically, a battery is a device that converts chemical energy into electrical energy. The current operating state refers to the battery's current operating condition. For example, the current operating state can be empty, full, idle (i.e., open circuit), or alternating charge and discharge.
[0041] In a specific implementation, the current current of the battery can be obtained first to determine whether its amplitude is zero: if it is zero, the current working state is determined to be idle; if it is not zero, further judgment is required based on the current voltage of the battery and the direction of the current current. Specifically, if the current current is flowing out of the battery, the current voltage is determined to be greater than the first preset voltage: if it is greater, the current working state is determined to be a charge-discharge alternating state; if it is not greater, the current working state is determined to be an empty state. If the current current is flowing into the battery, the current voltage is determined to be equal to the second preset voltage and the current current is equal to the preset current amplitude: if both are met, the current working state is determined to be a full state; otherwise, the current working state is determined to be a charge-discharge alternating state.
[0042] Among them, the first preset voltage refers to the minimum operating voltage allowed to be reached by the battery in a discharge scenario (when the current direction is flowing out of the battery), which is predetermined according to actual conditions or needs. A value lower than this value indicates that the battery has been discharged. The second preset voltage refers to the maximum voltage threshold that the battery should reach when fully charged in a charging scenario (i.e., when the current direction is flowing into the battery), which is predetermined according to actual conditions or needs. The first preset voltage is less than the second preset voltage. The preset current amplitude refers to the cut-off current amplitude that the battery should reach when fully charged in a charging scenario (when the current direction is flowing into the battery), which is predetermined according to actual conditions or needs.
[0043] In this embodiment, the above steps provide a basis for determining a specific estimation method for the subsequent battery state of charge.
[0044] Step 120: When the current working state is the charge-discharge interactive state, determine the last discharge depth and the last health state of the battery.
[0045] Specifically, the charge-discharge interaction state refers to the battery being in an energy interaction state (such as energy output or energy input), including the charging state and the discharging state. The depth of discharge (DOD) refers to the proportion of the battery's released power to its total available power, usually expressed as a percentage (%). The state of health (SOH) refers to the ratio of the current actual maximum available capacity to the initial rated capacity (the design capacity at the time of leaving the factory), usually expressed as a percentage (%). The last depth of discharge refers to the discharge depth corresponding to the battery when its state of charge was last estimated. The last state of health refers to the health state corresponding to the battery when its state of charge was last estimated.
[0046] In a specific implementation, after determining that the current working state is the charge-discharge interactive state, the last discharge depth and the last health state of the battery can be obtained from a database storing battery history data.
[0047] In this embodiment, the above steps provide a data basis for subsequently determining the current depth of discharge and current health status of the battery.
[0048] Step 130: Calculate the current depth of discharge of the battery based on the current operating state and the previous depth of discharge.
[0049] Specifically, the current depth of discharge refers to the depth of discharge of the battery at the current moment. The charge-discharge interaction state includes the discharge state and the charge state.
[0050] In specific implementations, the battery current from the last depth of discharge to the current moment is first integrated over time to obtain the cumulative change in charge. The ratio of this cumulative change in charge to the rated capacity is then calculated to obtain the charge change ratio. Subsequently, if the current operating state is discharging, the sum of the last depth of discharge and the charge change ratio is calculated to obtain the current depth of discharge. If the current operating state is charging, the difference between the last depth of discharge and the charge change ratio is calculated to obtain the current depth of discharge.
[0051] In this embodiment, the above steps can adapt to dynamic charging and discharging scenarios: using differentiated calculation logic for different working states (accumulation during discharge, decrement during charging) can reduce the errors caused by single formula calculations (such as ignoring the reverse effect of charging on the depth of discharge), making the results more in line with the actual power consumption level, providing a data basis for the subsequent calculation of the initial state of charge, and improving the accuracy of the calculation of the initial state of charge. In addition, based on the "previous depth of discharge" and combined with the real-time current integral data of the current working state, it is possible to achieve a dynamic connection of "historical state + real-time change", avoid calculation faults caused by state switching, and ensure continuous update of the depth of discharge value.
[0052] Step 140: Calculate the difference between the previous state of health and the current depth of discharge to obtain the initial state of charge of the battery, and determine the previous state of health as the current state of health of the battery.
[0053] Specifically, the initial state of charge (SOC) refers to the battery's initial estimated state of charge at the current moment, calculated based on the previous state of health (SOC) and the current depth of discharge (DOD). The current state of health (SOC) refers to the battery's current state of health.
[0054] In a specific implementation, the initial state of charge of the battery = the previous state of health - the current depth of discharge; the current state of health of the battery = the previous state of health of the battery.
[0055] In this embodiment, the above steps reduce the complexity of determining the initial state of charge of the battery, reduce the delay caused by complex algorithms, and thus improve the real-time performance of estimating the current state of charge of the battery. At the same time, the previous health state is determined as the current health state, which can avoid the error accumulation caused by high-frequency estimation of the health state, maintain the continuity of the status data (especially in the absence of real-time SOH detection conditions), and provide a data basis for subsequently obtaining the current state of charge of the battery.
[0056] Step 150: Correct the initial state of charge based on the current state of health to obtain the current state of charge of the battery.
[0057] Specifically, the current state of charge refers to the state of charge of the battery at the current moment, which is obtained after correcting the initial state of charge based on the current health state, that is, the percentage of the remaining battery power at the current moment.
[0058] In a specific implementation, the battery's current operating parameters, current environmental parameters, current health status, and initial state of charge can be input into a pre-trained estimation model to obtain the battery's current state of charge. The pre-trained estimation model refers to a model trained based on the battery's historical operating parameters (such as historical voltage, historical current, historical battery temperature, etc.), historical environmental parameters (such as ambient temperature, ambient humidity, etc.), historical health status, historical initial state of charge, and the corresponding actual state of charge.
[0059] In this embodiment, through the above steps, the problem of overestimation of the state of charge caused by capacity decay due to battery aging is avoided, and the accuracy of the state of charge estimation is improved.
[0060] The battery state of charge estimation method provided by the embodiment of the present invention first determines the current operating state of the battery, providing a judgment basis for the subsequent determination of the specific estimation method of the battery state of charge. Then, when the current operating state is a charge-discharge interactive state, the battery's previous depth of discharge and previous health state are determined, providing a data basis for the subsequent determination of the battery's current depth of discharge and current health state. Then, based on the current operating state and the previous depth of discharge, the battery's current depth of discharge is calculated, which can adapt to dynamic charging and discharging scenarios: using differentiated calculation logic for different operating states (accumulation during discharge, decrement during charging) can reduce the errors caused by single formula calculations (such as ignoring the reverse effect of charging on the depth of discharge), making the results more consistent with the actual power consumption level, providing a data basis for the subsequent calculation of the initial state of charge, and improving the accuracy of the initial state of charge calculation. In addition, using the "previous depth of discharge" as a benchmark and combining it with the real-time current integration data of the current operating state, it can achieve a dynamic connection between "historical state + real-time change", avoiding calculation gaps caused by state switching and ensuring continuous update of the depth of discharge value. Afterwards, the difference between the previous health state and the current depth of discharge is calculated to obtain the initial state of charge of the battery, and the previous health state is determined as the current health state of the battery, which reduces the complexity of determining the initial state of charge of the battery and reduces the delay caused by complex algorithms, thereby improving the real-time performance of estimating the current state of charge of the battery; at the same time, determining the previous health state as the current health state can not only avoid the error accumulation caused by high-frequency estimation of the health state, but also maintain the continuity of the status data (especially in the absence of real-time SOH detection conditions), and provide a data basis for the subsequent acquisition of the current state of charge of the battery. Finally, the initial state of charge is corrected based on the current health state to obtain the current state of charge of the battery, avoiding the problem of overestimation of the state of charge caused by capacity decay due to battery aging, and improving the accuracy of the state of charge estimation. Therefore, the technical solution of the present invention solves the problems of poor real-time performance and large long-term estimation deviation in the prior art.
[0061] Figure 2 This is a flow chart of another method for estimating the battery state of charge provided by an embodiment of the present invention. This embodiment is a refinement of the above embodiment. In this embodiment, the method may further include:
[0062] Step 210: Determine the current working status of the battery.
[0063] Optionally, the charge-discharge interaction state includes a discharge state and a charge state.
[0064] Optionally, the current working state of the battery includes a charge-discharge interactive state, an empty state, a full state, and an open circuit state.
[0065] Further, step 210 may specifically include: determining whether the amplitude of the current current of the battery is zero; if the amplitude of the current current is zero, determining that the current working state of the battery is an open circuit state; if the amplitude of the current current is not zero, then when the direction of the current current of the battery is flowing out of the battery, determining whether the current voltage of the battery is greater than the first preset voltage; if the current voltage is greater than the first preset voltage, determining that the current working state is a discharge state; if the current voltage is not greater than the first preset voltage, determining that the current working state is an empty state; when the direction of the current current of the battery is flowing into the battery, determining whether the current voltage of the battery is equal to the second preset voltage and whether the amplitude of the current current is equal to the preset current amplitude; if the current voltage is equal to the second preset voltage and the amplitude of the current current is equal to the preset current amplitude, determining that the current working state is a full charge state; otherwise, determining that the current working state is a charging state.
[0066] Specifically, the first preset voltage is less than the second preset voltage. The discharge state refers to the operating state in which the battery outputs energy. The charge state refers to the operating state in which an external power source inputs energy into the battery. The current refers to the amplitude and direction of the current flowing through the battery at the current moment. The open circuit state refers to the state in which no load is connected to the battery terminals and the circuit is disconnected. Outflow direction refers to the direction in which current flows out of the battery's positive electrode and into the battery's negative electrode. The first preset voltage refers to the minimum operating voltage allowed for the battery in a discharge scenario (when the current flows out of the battery), predetermined based on actual conditions or needs. A voltage below this value indicates that the battery is fully discharged. The empty state refers to the state in which the battery is depleted, in which the current flows out of the battery (still attempting to discharge), but the current voltage is not greater than the first preset voltage and can no longer provide effective energy output. Inflow direction refers to the direction in which current flows into the battery's positive electrode and out of the negative electrode. The second preset voltage refers to the maximum voltage threshold that the battery should reach when fully charged in a charging scenario (i.e., when the current flows into the battery), predetermined based on actual conditions or needs. The preset current amplitude refers to the cutoff current amplitude that the battery should reach when fully charged under charging conditions (when the current is flowing into the battery), which is predetermined based on actual conditions or needs. The fully charged state refers to the state when the battery is fully charged.
[0067] In a specific implementation, the current battery current can be obtained through a current sensor (such as a Hall current sensor, a fluxgate current sensor, etc.). Next, the current current amplitude of the battery is determined to be zero. If the current current amplitude is zero, it indicates that no energy is flowing through the battery, and the battery's current operating state can be determined to be an open circuit. If the current current amplitude is not zero, further judgment is made based on the current direction and voltage of the battery: first, the current battery voltage is obtained through a voltage sensor (such as a resistor divider voltage sensor, a Hall voltage sensor, etc.). Afterwards, when the direction of the current current of the battery is flowing out of the battery, determine whether the current voltage of the battery is greater than the first preset voltage; if the current voltage is greater than the first preset voltage, it means that the battery is not lower than the minimum voltage allowed for discharge, and at this time it can be determined that the current working state of the battery is a discharge state; if the current voltage is not greater than the first preset voltage, it means that the battery can no longer provide effective energy output, and at this time it can be determined that the current working state of the battery is an empty state; when the direction of the current current of the battery is flowing into the battery, determine whether the current voltage of the battery is equal to the second preset voltage and whether the amplitude of the current current of the battery is equal to the preset current amplitude; if the current voltage is equal to the second preset voltage and the amplitude of the current current is equal to the preset current amplitude, it means that the battery can no longer receive more energy, and at this time it can be determined that the current working state of the battery is a full state; otherwise, determine that the current working state of the battery is a charging state.
[0068] In this embodiment, through the above steps, all typical operating states of the battery (open circuit, discharge, empty, charge, and full) are completely covered, thereby improving the accuracy of determining the current operating state of the battery; at the same time, the determination process is simplified (only the current amplitude, direction, and voltage / current threshold need to be compared), taking into account both real-time performance and reliability, and providing an accurate basis for the subsequent determination of the current state of charge of the battery under different states.
[0069] Step 211: When the current working state is the charge-discharge interactive state, determine the last discharge depth and the last health state of the battery.
[0070] Furthermore, determining the last depth of discharge and the last state of health of the battery includes: determining whether the number of charge and discharge cycles of the battery is zero; if the number of charge and discharge cycles of the battery is zero, determining that the last depth of discharge of the battery is a preset depth of discharge, and determining that the last state of health is a preset state of health; if the number of charge and discharge cycles of the battery is not zero, selecting the discharge depth with the largest timestamp from the historical discharge depths as the last depth of discharge of the battery, and selecting the health state with the largest timestamp from the historical health states as the last health state.
[0071] Specifically, the number of charge and discharge cycles refers to the cumulative number of complete cycles in which the battery discharges from a fully charged state until the power is discharged and then fully charged again. The preset depth of discharge refers to the initial depth of discharge value of the battery before the first use (the number of charge and discharge cycles is zero) that is preset according to actual conditions or needs. The preset health status refers to the initial health status value of the battery before the first use (the number of charge and discharge cycles is zero) that is preset according to actual conditions or needs, for example: the preset health status is 100%. The historical depth of discharge refers to the set of discharge depth data recorded each time during the past use process (the number of charge and discharge cycles is greater than zero). The set usually contains a timestamp, that is, the specific time when the data was recorded. The historical health status refers to the set of health status data recorded each time during the past use of the battery (the number of charge and discharge cycles is greater than zero). The set usually contains a timestamp.
[0072] In the specific implementation, the number of charge and discharge cycles of the battery is first obtained from the database storing the battery working data, and then it is determined whether the number of cycles is zero: if the number of charge and discharge cycles is zero, it means that the current battery is a new battery. At this time, the preset discharge depth can be directly determined as the previous discharge depth of the battery, and the preset health status can be determined as the previous health status; if the number of charge and discharge cycles of the battery is not zero, it means that the current battery is a used battery. At this time, the historical discharge depth and historical health status can be retrieved from the database storing the battery historical data, and the discharge depth and health status with the largest timestamp (i.e., the most recent record) are selected as the previous discharge depth and previous health status of the battery.
[0073] Furthermore, when the battery's charge and discharge cycle count reaches zero, the battery's previous depth of discharge and previous state of health can be determined by the following method: The previous state of health is first determined as the preset state of health. The battery's open circuit voltage is then obtained. Based on the battery's open circuit voltage, the open circuit voltage is searched in a table that maps open circuit voltage to state of charge to obtain the battery's previous state of charge. The difference between the previous state of health and the previous state of charge is then calculated to determine the battery's previous depth of discharge. The table that maps open circuit voltage to state of charge is determined in advance based on actual conditions or needs.
[0074] In this embodiment, the above steps account for the different scenarios of new and old batteries, simplifying the state determination process. Furthermore, they ensure that throughout the battery's lifecycle, from first use to aging and disposal, a clear reference to the "previous state" is always available, avoiding data gaps and ensuring data continuity. This provides a stable and accurate historical benchmark for subsequent dynamic battery state estimation, helping to improve the accuracy of overall battery state estimation.
[0075] Step 212: Calculate the current depth of discharge of the battery based on the current operating state and the previous depth of discharge.
[0076] Furthermore, step 212 may specifically include: performing a time integration on the battery current from the moment corresponding to the previous discharge depth to the current moment to obtain a cumulative change in charge, calculating the ratio of the cumulative change in charge to the rated capacity to obtain a discharge depth change rate; when the current working state is a discharge state, calculating the product of the discharge depth change rate and the discharge efficiency to obtain a discharge correction depth increment; calculating the sum of the previous discharge depth and the discharge correction depth increment to obtain the current discharge depth; when the current working state is a charge state, calculating the product of the discharge depth change rate and the charging efficiency to obtain a charge correction depth decrement; and calculating the difference between the previous discharge depth and the charge correction depth decrement to obtain the current discharge depth.
[0077] Specifically, the cumulative change in charge refers to the total charge obtained by time-integrating the battery current from the moment corresponding to the last depth of discharge to the current moment, reflecting the change in charge of the battery due to charging and discharging from the "last moment" to the "current moment". The rated capacity refers to the maximum charge that the battery can discharge under design standard conditions (such as specific temperature and discharge rate). The discharge depth change rate refers to the ratio of the cumulative change in charge to the rated capacity, which is used to quantify the proportion of the impact of the charge change on the discharge depth during this period. The discharge efficiency refers to the ratio of the actual available charge to the theoretical discharged charge during the battery discharge process, which is used to correct the energy loss during the discharge process, and its value can be obtained through experiments. The discharge correction depth increment refers to the value of the discharge depth change corrected after considering the discharge efficiency factor. The charging efficiency refers to the ratio of the actual stored charge to the external input charge during the battery charging process, which is used to correct the energy loss during the charging process. The charge correction depth decrement refers to the actual reduction in discharge depth after considering the charging efficiency.
[0078] In a specific implementation, the battery current from the moment corresponding to the last discharge depth (i.e., the time point when the last discharge depth was recorded) to the current moment can be integrated over time to obtain the cumulative change in power. The specific calculation formula is: Where C is the cumulative change in charge, t1 is the time corresponding to the previous depth of discharge, t2 is the current time, and I(t) is the instantaneous current value at time t. The ratio of the cumulative change in charge to the rated capacity is then calculated to obtain the rate of change in depth of discharge. The specific calculation formula is: Where Cr is the rated capacity of the battery and ΔD is the rate of change of the depth of discharge.
[0079] Next, when the current working state is the discharge state, the product of the discharge depth change rate and the discharge efficiency is calculated to obtain the discharge correction depth increment. The specific calculation formula is: DODz = ΔD·ηd ; Where, DODz is the discharge correction depth increment, η d is the battery's discharge efficiency. The current depth of discharge is calculated by adding the previous depth of discharge and the corrected depth of discharge increment. The specific calculation formula is: DOD(t2) = DOD(t1) + DODz; where DOD(t1) is the previous depth of discharge and DOD(t2) is the current depth of discharge.
[0080] When the current working state is the charging state, the product of the discharge depth change rate and the charging efficiency is calculated to obtain the charge correction depth decrement. The specific calculation formula is: DODj = ΔD·η c ; Wherein, DODj is the depth of charge correction decrement, η c is the battery charging efficiency. Then, the difference between the previous depth of discharge and the decrement of the charge correction depth is calculated to obtain the current depth of discharge. The specific calculation formula is as follows: DOD(t2) = DOD(t1) - DODj.
[0081] In this embodiment, the above steps can improve the accuracy of the current discharge depth calculation result.
[0082] Step 213: Calculate the difference between the previous state of health and the current depth of discharge to obtain the initial state of charge of the battery, and determine the previous state of health as the current state of health of the battery.
[0083] In a specific implementation, after step 213 is executed, step 223 is continued to be executed to obtain the current state of charge of the battery.
[0084] Step 214 : When the current working state is an empty state, determine that the initial state of charge of the battery is a preset state of charge, and determine the last depth of discharge of the battery.
[0085] Specifically, the preset state of charge refers to a state of charge corresponding to when the battery is in an empty state, which is set in advance according to actual conditions or needs. For example, the preset state of charge may be 0.
[0086] In a specific implementation, after determining that the current working state is an empty state, the initial state of charge of the battery can be determined to be a preset state of charge, and the last discharge depth of the battery can be obtained from a database storing battery history data.
[0087] In this embodiment, the above steps provide a data basis for subsequently determining the current state of charge of the battery when the current working state is an empty state.
[0088] Step 215 : Calculate the corrected depth of discharge increment based on the rated capacity of the battery and the discharge efficiency of the battery.
[0089] In a specific implementation, the battery current from the moment corresponding to the last discharge depth to the current moment can be integrated over time to obtain the cumulative change in power. The specific calculation formula is: Afterwards, the ratio of the cumulative change in charge to the rated capacity is calculated to obtain the discharge depth change rate. Finally, the product of the discharge depth change rate and the discharge efficiency is calculated to obtain the discharge correction depth increment.
[0090] In this embodiment, through the above steps, the energy loss during discharge is corrected and the calculation accuracy of the discharge depth is improved.
[0091] Step 216: Calculate the sum of the previous discharge depth and the discharge correction depth increment to obtain the current discharge depth.
[0092] In a specific implementation, when the current working state is an empty state, the current discharge depth = the previous discharge depth + the discharge correction depth increment.
[0093] In this embodiment, the above steps provide a data basis for subsequently obtaining the current health status of the battery.
[0094] Step 217: Determine the current depth of discharge as the current state of health of the battery.
[0095] In a specific implementation, after obtaining the current discharge depth, the current discharge depth can be directly determined as the current health state of the battery, that is, the current health state of the battery = the current discharge depth. Next, step 223 is executed to obtain the current state of charge of the battery.
[0096] In this embodiment, when the battery is currently operating in an empty state (i.e., fully discharged), the relationship between the depth of discharge and the state of health (SOH) can be used to accurately determine the state of health: for a new battery (SOH = 100%), the amount of electricity actually discharged in the empty state is equal to the rated capacity, and the current depth of discharge is 100%, which fully matches the SOH; for an aged battery (e.g., SOH = 80%), due to the decrease in actual capacity, the amount of electricity actually discharged in the empty state is only 80% of the rated capacity, and the current depth of discharge is 80%, which is exactly equal to the SOH. Therefore, through the above steps, there is no need to determine the state of health through additional charge and discharge cycle testing as in traditional methods (traditional SOH calculation relies on a complete charge and discharge process). The current state of health can be directly determined using only the depth of discharge, which not only improves the accuracy of determining the current state of health but also reduces the implementation complexity of the process.
[0097] Step 218: When the current working state is the fully charged state, determine the last discharge depth and the last health state of the battery.
[0098] In a specific implementation, when the current working state is the fully charged state, the method for determining the previous discharge depth and the previous health state of the battery is the same as the method in the charge-discharge interactive state, and will not be repeated here.
[0099] In this embodiment, the above steps provide a data basis for subsequent calculation of the current state of charge of the battery.
[0100] Step 219: Calculate the charge-corrected depth of decrement based on the rated capacity of the battery and the charging efficiency of the battery.
[0101] In a specific implementation, the battery current from the moment corresponding to the last discharge depth (i.e., the time point when the last discharge depth was recorded) to the current moment can be integrated over time to obtain the cumulative change in power. The specific calculation formula is: Next, the product of the rate of change in depth of discharge and the charging efficiency is calculated to obtain the charge correction depth decrement.
[0102] In this embodiment, through the above steps, the energy loss during the charging process can be accurately corrected, and the accuracy of the discharge depth calculation in the fully charged state can be improved.
[0103] Step 220: Calculate the difference between the previous depth of discharge and the decrement of the corrected depth of charge to obtain the current depth of discharge.
[0104] In a specific implementation, when the current working state is a fully charged state, the current discharge depth = the previous discharge depth - the decrement of the charge correction depth.
[0105] In this embodiment, the above steps provide a data basis for subsequently obtaining the current health status of the battery.
[0106] Step 221: Calculate the difference between the previous health state and the current depth of discharge to obtain the initial state of charge of the battery.
[0107] In a specific implementation, the initial state of charge of the battery = the previous health state - the current depth of discharge.
[0108] In this embodiment, through the above steps, the calculation process of the initial state of charge is simplified, the real-time performance is improved, and a data basis is provided for subsequently obtaining the current state of charge of the battery.
[0109] Step 222: Determine the initial state of charge as the current state of health of the battery.
[0110] In a specific implementation, when the current working state is a fully charged state, the initial state of charge can be directly determined as the current health state of the battery. Next, step 223 is executed to obtain the current state of charge of the battery.
[0111] In the embodiment, when the current working state of the battery is the full state (i.e., the battery is fully charged), the accurate determination of the health state can be achieved by using the relationship between the state of charge and the health state: for a new battery (SOH = 100%), the initial SOC at this time is 100%, which is completely matched with the SOH; for an aged battery (e.g., SOH = 80%, the initial SOC at this time is 80%, which is exactly equal to the SOH. Therefore, by the above steps, without determining the health state by additional charge and discharge cycle tests as in the traditional method, the current health state can be directly determined by only using the initial state of charge, which not only improves the determination accuracy of the current health state, but also reduces the implementation complexity of the process.
[0112] In an embodiment, to improve the estimation accuracy of the current state of charge of the battery when the current working state is the open circuit state, when the current working state is the open circuit state, the current open circuit voltage of the battery can be obtained first, and the last health state of the battery is determined; then, the initial state of charge is obtained by querying the current open circuit voltage in the pre-labeled open circuit voltage-state of charge corresponding relationship table; the last health state is determined as the current health state of the battery; finally, the initial state of charge is corrected based on the current health state to obtain the current state of charge of the battery.
[0113] In step 223, the initial state of charge is corrected based on the current health state to obtain the current state of charge of the battery.
[0114] In a specific implementation, after obtaining the current health state and the initial state of charge, the current health state and the initial state of charge can be substituted into a pre-determined estimation formula to obtain the current state of charge of the battery. The estimation formula is fitted by the historical health state, the historical initial state of charge and the corresponding real state of charge of the battery.
[0115] In addition, a neural network method can also be used to construct the estimation formula: the historical working parameters, the historical environmental parameters, the historical charge and discharge cycle times, the historical rated capacity, the historical health state, the historical initial state of charge and the corresponding real state of charge of the battery are used as training data to train a deep network model, so as to obtain an estimation formula that can reflect the mapping relationship between the multi-dimensional parameters of the battery and the current state of charge. In actual application, when the current health state and the initial state of charge are obtained, only the corresponding current working parameters, current environmental parameters, current charge and discharge cycle times, current rated capacity and other related parameters need to be collected, and these parameters are input into the trained estimation formula, so as to obtain the current state of charge of the battery.
[0116] Furthermore, step 223 may specifically include: obtaining the current operating parameters and current environmental parameters of the battery; inputting the current operating parameters, current environmental parameters, current health status and initial state of charge into a pre-trained state of charge estimation model to obtain the current state of charge of the battery.
[0117] Specifically, current operating parameters refer to physical quantities directly related to the operating state that are monitored in real time during the battery's current operation. For example, current operating parameters may be the battery's current voltage, current current, current temperature, etc. Current environmental parameters refer to the physical conditions of the external environment in which the battery is located during its current operation. For example, current environmental parameters may be ambient temperature, ambient humidity, air pressure, etc. The state of charge estimation model refers to a model obtained through training based on the battery's historical operating parameters, historical environmental parameters, historical health status, historical initial state of charge, and the corresponding true state of charge.
[0118] In a specific implementation, the current operating parameters of the battery can be obtained through sensors installed on the battery body, and the current environmental parameters can be obtained through sensors deployed in the battery's operating environment. The current operating parameters, current environmental parameters, current health status, and initial state of charge are then input into a pre-trained state of charge estimation model to obtain the battery's current state of charge. It should be noted that if the current operating parameters include the current voltage and current current of the battery, and they have been obtained in the aforementioned step of determining the current operating state, then this step does not need to be repeated to reduce redundant operations.
[0119] In addition, to further improve the accuracy of model estimation, the training data can also include parameters reflecting long-term usage characteristics such as the battery's historical charge and discharge cycle numbers and historical rated capacity. That is, the deep network model can be trained based on the battery's historical operating parameters, historical environmental parameters, historical charge and discharge cycle numbers, historical rated capacity, historical health status, historical initial state of charge, and the corresponding true state of charge to obtain the required state of charge estimation model.
[0120] In addition, after obtaining the current state of charge, the deviation between the current state of charge and the initial state of charge can be calculated (such as deviation = |initial state of charge - current state of charge| / current state of charge). If the deviation exceeds the preset deviation threshold (such as 0.1), it means that the estimated result of the current state of charge is abnormal. At this time, a prompt message can be sent to the staff's terminal, such as: the state of charge estimation is abnormal, it is recommended to check or replace the measuring sensor (such as the current sensor). If the deviation between the recalculated current state of charge and the initial state of charge after replacing the sensor still exceeds the preset deviation threshold, the operating data of this stage will be included in the training set, and the state of charge estimation model will be retrained to optimize the estimation accuracy of the model.
[0121] In this embodiment, through the above steps, multi-dimensional parameters are effectively integrated, thereby improving the accuracy of state of charge estimation.
[0122] It should be noted that the above step 210 first determines the current working state of the battery, based on which three branches are derived, namely steps 211-213 (charge-discharge interaction state branch), steps 214-217 (empty state branch), and steps 218-222 (full state branch). The three branches run independently, and after any branch is fully executed, it enters step 223. Through this branch design, it is possible to adapt to the differentiated estimation logic under different working states of the battery, accurately covering scenes such as charge-discharge interaction, empty power, and full power, thereby making the estimation of the battery state of charge under complex working conditions more targeted and accurate.
[0123] The battery state of charge estimation method provided by the embodiment of the present invention first determines the current working state of the battery, providing a judgment basis for the subsequent determination of the specific estimation method of the battery state of charge. Then, when the current working state is a charge-discharge interactive state, the battery's previous discharge depth and previous health state are determined, providing a data basis for the subsequent determination of the battery's current discharge depth and current health state. Then, based on the current working state and the previous discharge depth, the current discharge depth of the battery is calculated, which can adapt to dynamic charging and discharging scenarios: using differentiated calculation logic for different working states can reduce the error caused by single formula calculation, make the result more in line with the actual power consumption level, provide a data basis for the subsequent calculation of the initial state of charge, and improve the calculation accuracy of the initial state of charge. In addition, based on the "previous discharge depth" and combined with the real-time current integral data of the current working state, it is possible to achieve dynamic connection of "historical state + real-time change", avoid calculation faults caused by state switching, and ensure continuous update of the discharge depth value. The difference between the previous state of health (SOC) and the current depth of discharge (DOD) is then calculated to determine the battery's initial SOC. The previous SOC is then used as the current SOC. This reduces the complexity of determining the initial SOC and the latency associated with complex algorithms, thereby improving the real-time nature of estimating the battery's current SOC. Furthermore, using the previous SOC as the current SOC avoids error accumulation caused by frequent SOC estimations, maintains data continuity, and provides a foundation for subsequently determining the battery's current SOC. If the current operating state is empty, the battery's initial SOC is determined to be a preset SOC, and the previous DOD is determined. This provides a foundation for subsequently determining the battery's current SOC when the current operating state is empty. Based on the battery's rated capacity and discharge efficiency, a corrected DOD increment is calculated to correct for energy loss during discharge and improve DOD calculation accuracy. The sum of the previous DOD and the corrected DOD increment is calculated to determine the current DOD, providing a foundation for subsequently determining the battery's current SOC. Determining the current depth of discharge as the battery's current state of health improves the accuracy of determining the current state of health and reduces the implementation complexity of the process. When the current operating state is a fully charged state, the battery's previous depth of discharge and previous state of health are determined, providing a data basis for subsequent calculations of the battery's current state of charge. Based on the battery's rated capacity and charging efficiency, the charge correction depth decrement is calculated to accurately correct for energy loss during the charging process and improve the accuracy of the discharge depth calculation when fully charged. The difference between the previous depth of discharge and the charge correction depth decrement is calculated to obtain the current depth of discharge, providing a data basis for subsequent determination of the battery's current state of health.The difference between the previous health state and the current discharge depth is calculated to obtain the initial state of charge of the battery, the calculation process of the initial state of charge is simplified, the real-time performance is improved, and a data basis is provided for obtaining the current state of charge of the battery. The initial state of charge is determined as the current health state of the battery, the determination accuracy of the current health state is improved, and the implementation complexity of the process is reduced. Finally, the initial state of charge is corrected based on the current health state to obtain the current state of charge of the battery, the overestimation problem of the state of charge caused by the capacity attenuation of the battery is avoided, and the accuracy of the state of charge estimation is improved. Therefore, the technical scheme solves the problems of poor real-time performance and large long-term estimation deviation in the prior art.
[0124] Figure 3 A structural schematic diagram of a battery state of charge estimation device provided by the embodiment of the application is provided. The device and the battery state of charge estimation method of each embodiment described above belong to the same inventive concept. Details not described in the embodiment of the battery state of charge estimation device can be referred to the embodiment of the battery state of charge estimation method described above.
[0125] As shown in Figure 3 , the device comprises:
[0126] The first determination module 310 is configured to determine the current working state of the battery.
[0127] The second determination module 320 is configured to determine the previous discharge depth and the previous health state of the battery when the current working state is the charge-discharge interaction state.
[0128] The first calculation module 330 is configured to calculate the current discharge depth of the battery based on the current working state and the previous discharge depth.
[0129] The second calculation module 340 is configured to calculate the difference between the previous health state and the current discharge depth to obtain the initial state of charge of the battery, and determine the previous health state as the current health state of the battery.
[0130] The correction module 350 is configured to correct the initial state of charge based on the current health state to obtain the current state of charge of the battery.
[0131] On the basis of the above-mentioned embodiments, the charge-discharge interaction state comprises a discharge state and a charge state, and the first determination module 310 is specifically configured to:
[0132] Determine whether the amplitude of the current current of the battery is zero; if the amplitude of the current current is zero, determine that the current working state of the battery is an open circuit state; if the amplitude of the current current is not zero, then when the direction of the current current of the battery is flowing out of the battery, determine whether the current voltage of the battery is greater than the first preset voltage; if the current voltage is greater than the first preset voltage, determine that the current working state is the discharging state; if the current voltage is not greater than the first preset voltage, determine that the current working state is an empty state; when the direction of the current current of the battery is flowing into the battery, determine whether the current voltage of the battery is equal to the second preset voltage and whether the amplitude of the current current is equal to the preset current amplitude; if the current voltage is equal to the second preset voltage and the amplitude of the current current is equal to the preset current amplitude, determine that the current working state is a full state; otherwise, determine that the current working state is the charging state; the first preset voltage is less than the second preset voltage.
[0133] Based on the above embodiment, the device further includes:
[0134] An empty-charge correction module is configured to, after determining a current operating state of a battery and when the current operating state is the empty-charge state, determine an initial state of charge of the battery as a preset state of charge, and determine a previous depth of discharge of the battery; calculate a corrected depth of discharge increment based on the rated capacity of the battery and the discharge efficiency of the battery; calculate the sum of the previous depth of discharge and the corrected depth of discharge increment to obtain the current depth of discharge; determine the current depth of discharge as the current health state of the battery, trigger execution of a correction of the initial state of charge based on the current health state, and obtain the current state of charge of the battery.
[0135] Based on the above embodiment, the device further includes:
[0136] A full charge correction module is used to determine the previous depth of discharge and the previous state of health of the battery when the current operating state is the full state; calculate a charge correction depth decrement based on the rated capacity and the charging efficiency of the battery; calculate the difference between the previous depth of discharge and the charge correction depth decrement to obtain the current depth of discharge; calculate the difference between the previous state of health and the current depth of discharge to obtain the initial state of charge of the battery, determine the initial state of charge as the current state of health of the battery, and trigger execution of a correction of the initial state of charge based on the current state of health to obtain the current state of charge of the battery.
[0137] Based on the above embodiment, the first calculation module 330 is specifically configured to:
[0138] Performing a time integration on the current of the battery from the moment corresponding to the previous depth of discharge to the current moment to obtain a cumulative change in charge, calculating a ratio of the cumulative change in charge to the rated capacity to obtain a rate of change in depth of discharge; when the current operating state is the discharge state, calculating the product of the rate of change in depth of discharge and the discharge efficiency to obtain a corrected depth of discharge increment; calculating the sum of the previous depth of discharge and the corrected depth of discharge increment to obtain the current depth of discharge; when the current operating state is the charge state, calculating the product of the rate of change in depth of discharge and the charge efficiency to obtain a decrement in the corrected depth of charge; and calculating the difference between the previous depth of discharge and the decrement in the corrected depth of charge to obtain the current depth of discharge.
[0139] Based on the above embodiment, the second determining module 320 is specifically configured to:
[0140] Determine whether the number of charge and discharge cycles of the battery is zero; if the number of charge and discharge cycles of the battery is zero, determine that the previous depth of discharge of the battery is a preset depth of discharge, and determine that the previous health state is a preset health state; if the number of charge and discharge cycles of the battery is not zero, select the discharge depth with the largest timestamp from the historical discharge depths as the previous depth of discharge of the battery, and select the health state with the largest timestamp from the historical health states as the previous health state.
[0141] Based on the above embodiment, the correction module 350 is specifically configured to:
[0142] Obtain current operating parameters and current environmental parameters of the battery; input the current operating parameters, the current environmental parameters, the current health state, and the initial state of charge into a pre-trained state of charge estimation model to obtain the current state of charge of the battery.
[0143] The battery state of charge estimation device provided in the embodiment of the present invention can execute the battery state of charge estimation method provided in any embodiment of the present invention, and has the corresponding functional modules and beneficial effects of the execution method.
[0144] It is worth noting that in the embodiment of the above-mentioned battery state of charge estimation device, the various units and modules included are only divided according to functional logic, but are not limited to the above-mentioned division, as long as the corresponding functions can be achieved; in addition, the specific names of the various functional units are only for the convenience of distinguishing each other, and are not used to limit the scope of protection of the present invention.
[0145] Figure 4 A schematic structural diagram of an electronic device provided by an embodiment of the present invention. Figure 4A block diagram of an exemplary electronic device 4 suitable for implementing embodiments of the present invention is shown. Figure 4 The electronic device 4 shown is only an example and should not bring any limitation to the functions and scope of use of the embodiments of the present invention.
[0146] like Figure 4 As shown, electronic device 4 is in the form of a general-purpose computing electronic device. Components of electronic device 4 may include, but are not limited to, one or more processors or processing units 16, system memory 28, and a bus 18 connecting various system components (including system memory 28 and processing unit 16).
[0147] Bus 18 represents one or more of several types of bus structures, including a memory bus or memory controller, a peripheral bus, an accelerated graphics port, a processor, or a local bus using any of a variety of bus architectures. Examples of these architectures include, but are not limited to, an Industry Standard Architecture (ISA) bus, a Micro Channel Architecture (MAC) bus, an Enhanced ISA bus, a Video Electronics Standards Association (VESA) local bus, and a Peripheral Component Interconnect (PCI) bus.
[0148] The electronic device 4 typically includes a variety of computer system readable media. These media can be any available media that can be accessed by the electronic device 4, including volatile and non-volatile media, removable and non-removable media.
[0149] The system memory 28 may include computer system readable media in the form of volatile memory, such as random access memory (RAM) 30 and / or cache memory 32. The electronic device 4 may further include other removable / non-removable, volatile / non-volatile computer system storage media. By way of example only, the storage system 34 may be configured to read and write non-removable, non-volatile magnetic media ( Figure 4 Not shown, often called a "hard drive"). Although Figure 4 Not shown, a magnetic disk drive for reading and writing to a removable non-volatile magnetic disk (e.g., a "floppy disk"), and an optical disk drive for reading and writing to a removable non-volatile optical disk (e.g., a CD-ROM, DVD-ROM, or other optical media) may be provided. In these cases, each drive may be connected to bus 18 via one or more data media interfaces. System memory 28 may include at least one program product having a set (e.g., at least one) of program modules configured to perform the functions of various embodiments of the present invention.
[0150] A program / utility 40 having a set (at least one) of program modules 42 may be stored, for example, in system memory 28. Such program modules 42 include, but are not limited to, an operating system, one or more application programs, other program modules, and program data, each of which, or some combination thereof, may include an implementation of a network environment. Program modules 42 generally perform the functions and / or methods of the embodiments described herein.
[0151] The electronic device 4 may also communicate with one or more external devices 14 (e.g., a keyboard, a pointing device, a display 24, etc.), one or more devices that enable a user to interact with the electronic device 4, and / or any device that enables the electronic device 4 to communicate with one or more other computing devices (e.g., a network card, a modem, etc.). Such communication may be performed via an input / output (I / O) interface 22. Furthermore, the electronic device 4 may also communicate with one or more networks (e.g., a local area network (LAN), a wide area network (WAN), and / or a public network, such as the Internet) via a network adapter 20. Figure 4 As shown, the network adapter 20 communicates with other modules of the electronic device 4 via the bus 18. Figure 4 Not shown, other hardware and / or software modules may be used in conjunction with the electronic device 4, including but not limited to microcode, device drivers, redundant processing units, external disk drive arrays, RAID systems, tape drives, and data backup storage systems.
[0152] The processing unit 16 executes various functional applications and page displays by running programs stored in the system memory 28, such as implementing the battery state of charge estimation method provided in an embodiment of the present invention, which includes:
[0153] Determine the current working status of the battery;
[0154] When the current working state is a charge-discharge alternating state, determining a previous depth of discharge and a previous state of health of the battery;
[0155] Calculating a current depth of discharge of the battery based on the current operating state and the previous depth of discharge;
[0156] calculating a difference between the previous state of health and the current depth of discharge to obtain an initial state of charge of the battery, and determining the previous state of health as the current state of health of the battery;
[0157] The initial state of charge is corrected based on the current state of health to obtain a current state of charge of the battery.
[0158] Of course, those skilled in the art will appreciate that the processor may also implement the technical solution of the battery state of charge estimation method provided by any embodiment of the present invention.
[0159] An embodiment of the present invention provides a computer-readable storage medium having a computer program stored thereon. When the program is executed by a processor, the method for estimating the battery state of charge provided in an embodiment of the present invention is implemented, for example. The method includes:
[0160] Determine the current working status of the battery;
[0161] When the current working state is a charge-discharge alternating state, determining a previous depth of discharge and a previous state of health of the battery;
[0162] Calculating a current depth of discharge of the battery based on the current operating state and the previous depth of discharge;
[0163] calculating a difference between the previous state of health and the current depth of discharge to obtain an initial state of charge of the battery, and determining the previous state of health as the current state of health of the battery;
[0164] The initial state of charge is corrected based on the current state of health to obtain a current state of charge of the battery.
[0165] The computer storage medium of the embodiment of the present invention can adopt any combination of one or more computer-readable media. The computer-readable medium can be a computer-readable signal medium or a computer-readable storage medium. The computer-readable storage medium can be, for example, but not limited to: an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or component, or any combination of the above. More specific examples (non-exhaustive list) of computer-readable storage media include: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In this document, a computer-readable storage medium can be any tangible medium containing or storing a program that can be used by or in combination with an instruction execution system, device or device.
[0166] A computer-readable signal medium may include a data signal propagated in baseband or as part of a carrier wave, which carries computer-readable program code. Such propagated data signals may take various forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination thereof. A computer-readable signal medium may also be any computer-readable medium other than a computer-readable storage medium that can transmit, propagate, or transport a program for use by or in conjunction with an instruction execution system, apparatus, or device.
[0167] Program code embodied on a computer-readable medium may be transmitted using any appropriate medium, including but not limited to wireless, wireline, optical fiber cable, RF, etc., or any suitable combination of the foregoing.
[0168] Computer program code for performing the operations of the present invention may be written in one or more programming languages, or a combination thereof, including object-oriented programming languages such as Java, Smalltalk, C++, and conventional procedural programming languages such as "C" or similar programming languages. The program code may be executed entirely on the user's computer, partially on the user's computer, as a stand-alone software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In cases involving a remote computer, the remote computer may be connected to the user's computer through any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computer (e.g., through the Internet using an Internet service provider).
[0169] Those skilled in the art will appreciate that the modules or steps of the present invention described above can be implemented using a general-purpose computing device. They can be centralized on a single computing device or distributed across a network of multiple computing devices. Alternatively, they can be implemented using program code executable by a computer device, which can then be stored in a storage device and executed by the computing device. Alternatively, they can be fabricated into separate integrated circuit modules, or multiple modules or steps can be fabricated into a single integrated circuit module. Thus, the present invention is not limited to any specific combination of hardware and software.
[0170] In addition, the acquisition, storage, use, and processing of data in the technical solution of the present invention comply with relevant provisions of laws and regulations.
[0171] Note that the above are only preferred embodiments of the present invention and the technical principles employed. Those skilled in the art will appreciate that the present invention is not limited to the specific embodiments herein, and that various obvious changes, readjustments, and substitutions are possible for those skilled in the art without departing from the scope of protection of the present invention. Therefore, although the present invention has been described in detail through the above embodiments, the present invention is not limited to the above embodiments and may include many other equivalent embodiments without departing from the scope of the present invention. The scope of the present invention is determined by the scope of the appended claims.
Claims
1. A method for estimating a battery state of charge, characterized in that: The method comprises: Determine the current working status of the battery; When the current working state is a charge-discharge alternating state, determining a previous depth of discharge and a previous state of health of the battery; Calculating a current depth of discharge of the battery based on the current operating state and the previous depth of discharge; calculating a difference between the previous state of health and the current depth of discharge to obtain an initial state of charge of the battery, and determining the previous state of health as the current state of health of the battery; The initial state of charge is corrected based on the current state of health to obtain a current state of charge of the battery.
2. The method for estimating the battery state of charge according to claim 1, wherein: The charge-discharge interaction state includes a discharge state and a charge state. Determining the current working state of the battery includes: determining whether the magnitude of the present current of the battery is zero; If the amplitude of the current current is zero, determining that the current working state of the battery is an open circuit state; If the amplitude of the current current is not zero, then when the direction of the current current of the battery is flowing out of the battery, determine whether the current voltage of the battery is greater than the first preset voltage; if the current voltage is greater than the first preset voltage, determine that the current working state is the discharging state; if the current voltage is not greater than the first preset voltage, determine that the current working state is the empty state; when the direction of the current current of the battery is flowing into the battery, determine whether the current voltage of the battery is equal to the second preset voltage and whether the amplitude of the current current is equal to the preset current amplitude; if the current voltage is equal to the second preset voltage and the amplitude of the current current is equal to the preset current amplitude, determine that the current working state is the full state; otherwise, determine that the current working state is the charging state; the first preset voltage is less than the second preset voltage.
3. The method for estimating the battery state of charge according to claim 2, wherein: After determining the current working status of the battery, it also includes: When the current working state is the empty state, determining that the initial state of charge of the battery is a preset state of charge, and determining the last depth of discharge of the battery; calculating a corrected depth of discharge increment based on the rated capacity of the battery and the discharge efficiency of the battery; Calculating the sum of the previous discharge depth and the discharge correction depth increment to obtain the current discharge depth; The current depth of discharge is determined as the current state of health of the battery, and correction of the initial state of charge based on the current state of health is triggered to obtain the current state of charge of the battery.
4. The method for estimating the battery state of charge according to claim 3, wherein: After determining the current working status of the battery, it also includes: When the current operating state is the full state, determining a previous depth of discharge and a previous state of health of the battery; calculating a corrected depth of charge decrement based on the rated capacity and the charging efficiency of the battery; Calculating the difference between the previous depth of discharge and the decrement of the corrected depth of charge to obtain the current depth of discharge; Calculating the difference between the previous state of health and the current depth of discharge to obtain the initial state of charge of the battery, The initial state of charge is determined as the current state of health of the battery, and a correction of the initial state of charge based on the current state of health is triggered to obtain the current state of charge of the battery.
5. The method for estimating the battery state of charge according to claim 4, wherein: Calculating a current depth of discharge of the battery based on the current operating state and the previous depth of discharge includes: Performing a time integration on the current of the battery from the moment corresponding to the previous depth of discharge to the current moment to obtain a cumulative change in power, and calculating a ratio of the cumulative change in power to the rated capacity to obtain a depth of discharge change rate; When the current working state is the discharge state, calculating the product of the discharge depth change rate and the discharge efficiency to obtain the discharge correction depth increment; calculating the sum of the previous discharge depth and the discharge correction depth increment to obtain the current discharge depth; When the current operating state is the charging state, the product of the discharge depth change rate and the charging efficiency is calculated to obtain the charge correction depth decrement; and the difference between the previous discharge depth and the charge correction depth decrement is calculated to obtain the current discharge depth.
6. The method for estimating the battery state of charge according to claim 1, wherein: Determining a last depth of discharge and a last state of health of the battery, including: determining whether the number of charge and discharge cycles of the battery is zero; If the number of charge and discharge cycles of the battery is zero, determining that the last depth of discharge of the battery is a preset depth of discharge, and determining that the last health state is a preset health state; If the number of charge and discharge cycles of the battery is not zero, the discharge depth with the largest timestamp is selected from the historical discharge depths to be determined as the previous discharge depth of the battery, and the health state with the largest timestamp is selected from the historical health states to be determined as the previous health state.
7. The method for estimating the battery state of charge according to claim 1, wherein: Correcting the initial state of charge based on the current state of health to obtain a current state of charge of the battery includes: Obtaining current operating parameters and current environmental parameters of the battery; The current operating parameters, the current environmental parameters, the current health state, and the initial state of charge are input into a pre-trained state of charge estimation model to obtain the current state of charge of the battery.
8. A battery state of charge estimation device, characterized in that: The device comprises: A first determining module, configured to determine a current working state of the battery; a second determining module, configured to determine a previous depth of discharge and a previous state of health of the battery when the current working state is a charge-discharge alternating state; a first calculation module, configured to calculate a current depth of discharge of the battery based on the current working state and the previous depth of discharge; a second calculation module, configured to calculate a difference between the previous state of health and the current depth of discharge to obtain an initial state of charge of the battery, and determine the previous state of health as the current state of health of the battery; A correction module is used to correct the initial state of charge based on the current health state to obtain a current state of charge of the battery.
9. An electronic device, characterized in that: The electronic device comprises: at least one processor; and a memory communicatively coupled to the at least one processor; The memory stores a computer program executable by the at least one processor, and the computer program is executed by the at least one processor so that the at least one processor can execute the battery state of charge estimation method according to any one of claims 1 to 7.
10. A storage medium containing computer-executable instructions, characterized in that: When the computer executable instructions are executed by a computer processor, the computer executable instructions are used to perform the battery state of charge estimation method according to any one of claims 1 to 7.
Citation Information
Patent Citations
Lithium battery state-of-charge and state-of-health joint estimation method based on deep learning
CN116298914A
Battery electric quantity detection method and device, electronic equipment and storage medium
CN117607713A
Charge state calculation method and device, equipment and storage medium
CN119493014A
Battery health state estimation method and related equipment
CN119596185A
Battery health state estimation method and device, electronic equipment and storage medium
CN120065032A
Cited By
Lithium battery health state combined prediction method based on multi-modal time sequence characteristics
CN121208654A