A battery state of charge detection method and computer device
By calculating the time integral value and correction coefficient of the battery charge and discharge current, combined with the total available capacity, smoothing the battery state of charge detection, the problem of sudden change in the battery detection result is solved, providing an intuitive battery availability reflection, and supporting battery charge and discharge management.
Patent Information
- Application Number
- CN202210893413.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-07-27
- Publication Date
- 2025-08-15
- Estimated Expiration
- 2042-07-27
AI Technical Summary
Existing battery state of charge detection technology can easily lead to sudden changes in the power detection results, affecting the use of power equipment and battery charging and discharging management. Especially when the battery power supply capacity decreases in low-temperature environments, the power detection results are inconsistent with the actual intuitive experience of using.
By obtaining the time integral value of the charge and discharge current of the battery and the correction coefficient, combining the total available capacity, the battery display state of charge is calculated, and when necessary, the display remaining capacity is adjusted to ensure that it is within the total available capacity range, and the charging and discharge correction coefficient is introduced to smoothly display the changes in the charge state.
It realizes smooth display of battery charge state, reduces sudden changes on the time curve, provides an intuitive and reliable battery availability reflection, and supports more effective battery charge and discharge management.
Smart Images

Figure CN115128475B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of battery management, and in particular to a battery state of charge detection method and a computer device. Background Art
[0002] Batteries are needed to store electrical energy in mobile devices, electric vehicles, photovoltaic power generation, and other fields, and there is a need to detect and display the current battery charge level. A basic battery charge level display technology detects the battery's true state of charge and displays it. However, the battery's true state of charge often does not match the battery's power supply capacity. For example, in a low-temperature environment, the battery's discharge capacity is worse than at room temperature. The battery's true state of charge may drop to 30%-50% and then be unable to output the power supply current required by the electrical device. In other words, if the battery's true state of charge is displayed, its value will be 30%-50%, but the electrical device is currently not receiving power. The user intuitively believes that the battery charge level should be 0, resulting in a large deviation between the charge detection result and the actual intuitive user experience, affecting the use of the electrical device and the management of battery charging and discharging. At present, some related technologies correct the actual state of charge after detecting the actual state of charge of the battery, and then display the correction value. Although this solves the problem of inconsistency between the power detection result and the actual intuitive experience of use, it is easy to cause a sudden change in the power detection result. For example, under the above conditions, when the actual state of charge of the battery is 60%, the corresponding correction value is a large positive number, and when the actual state of charge of the battery may drop below 50%, the correction value becomes 0. The time curve of the power detection result has a sudden change, which will also affect the management of battery charging and discharging.
[0003] Explanation of terms:
[0004]
[0005] Summary of the Invention
[0006] In view of the technical problems that the power detection results of current power detection technology are prone to sudden changes, affecting the use of electrical equipment and the management of battery charging and discharging, the purpose of the present invention is to provide a battery charge state detection method and computer device.
[0007] In one aspect, an embodiment of the present invention includes a battery state of charge detection method, which is applied to a battery charging process and includes:
[0008] Get the battery charging current time integral value and the remaining capacity displayed before updating;
[0009] Get the charging correction factor;
[0010] adding the displayed remaining capacity before the update to the product of the charging current time integral value and the charging correction coefficient, and determining the resulting sum as the displayed remaining capacity of the battery after the update;
[0011] Get the total available capacity of the battery;
[0012] The displayed state of charge of the battery is determined according to a quotient of the updated displayed remaining capacity and the total available capacity.
[0013] Furthermore, the battery state of charge detection method further includes:
[0014] When the updated displayed remaining capacity is greater than the total available capacity, the updated displayed remaining capacity is adjusted to a value equal to the total available capacity; otherwise, the updated displayed remaining capacity is kept unchanged.
[0015] Furthermore, obtaining the charging correction coefficient includes:
[0016] Setting the charging correction coefficient to an initial value;
[0017] Set multiple charging follow target values;
[0018] detecting some of the charge following target values in ascending order to determine a first following target value; the first following target value being the first charge following target value that satisfies a determination condition, the determination condition being greater than the displayed state of charge and greater than the available state of charge of the battery;
[0019] Obtaining a quotient of a difference between the first following target value and the displayed state of charge and a difference between the first following target value and the available state of charge to determine the charging correction coefficient;
[0020] Set the maximum value of the correction factor;
[0021] When the charging correction coefficient is greater than the maximum correction coefficient value, or the first follow target value and the available state of charge are both 100%, the charging correction coefficient is adjusted to a value equal to the maximum correction coefficient value; otherwise, the charging correction coefficient remains unchanged.
[0022] In another aspect, an embodiment of the present invention includes a battery state of charge detection method, which is applied to a battery discharge process and includes:
[0023] Obtain the time integral value of the battery's discharge current and the remaining capacity displayed before updating;
[0024] Get the discharge correction factor;
[0025] subtracting the product of the discharge current time integral value and the discharge correction coefficient from the displayed remaining capacity before updating, and determining the resulting difference as the displayed remaining capacity of the battery after updating;
[0026] Get the total available capacity of the battery;
[0027] The displayed state of charge of the battery is determined according to a quotient of the updated displayed remaining capacity and the total available capacity.
[0028] Furthermore, the battery state of charge detection method further includes:
[0029] When the updated displayed remaining capacity is less than the product of the discharge current time integral value and the discharge correction coefficient, the updated displayed remaining capacity is adjusted to zero.
[0030] Furthermore, obtaining the discharge correction coefficient includes:
[0031] Setting the discharge correction coefficient to an initial value;
[0032] Set multiple discharge follow target values;
[0033] detecting some of the discharge following target values in descending order to determine a second following target value; the second following target value being the first charge following target value that satisfies a determination condition, the determination condition being less than the displayed state of charge and less than the available state of charge of the battery;
[0034] Obtaining a quotient of a difference between the displayed state of charge and the second follow target value and a difference between the available state of charge and the second follow target value to determine the discharge correction coefficient;
[0035] Set the maximum value of the correction factor;
[0036] When the discharge correction coefficient is greater than the maximum correction coefficient value, or the second follow target value and the available state of charge are both 0, the discharge correction coefficient is adjusted to a value equal to the maximum correction coefficient value; otherwise, the discharge correction coefficient remains unchanged.
[0037] Furthermore, the battery state of charge detection method further includes:
[0038] Get the rated capacity of the battery;
[0039] Detect the battery's charge and discharge ampere-hours;
[0040] Get the actual remaining capacity before the update;
[0041] When the battery is in the charging process, the actual remaining capacity of the battery after the update is determined based on the actual remaining capacity before the update plus the charge and discharge ampere-hour value;
[0042] When the battery is in the discharge process, the actual remaining capacity of the battery after the update is determined based on the actual remaining capacity before the update minus the charge and discharge ampere-hours;
[0043] The actual state of charge of the battery is determined according to the quotient of the updated actual remaining capacity and the rated capacity.
[0044] Furthermore, the battery state of charge detection method further includes:
[0045] Get the frozen capacity of the battery;
[0046] determining a total available capacity of the battery according to a difference between the rated capacity and the frozen capacity;
[0047] determining the available remaining capacity of the battery according to the difference between the actual remaining capacity and the frozen capacity;
[0048] An available state of charge of the battery is determined according to a quotient of the available remaining capacity and the total available capacity.
[0049] Furthermore, obtaining the frozen capacity of the battery includes:
[0050] Get the battery temperature;
[0051] Determine the freezing ratio coefficient according to the temperature of the battery;
[0052] The frozen capacity of the battery is determined according to a product of the rated capacity and the frozen proportional coefficient.
[0053] On the other hand, an embodiment of the present invention further includes a computer device including a memory and a processor, wherein the memory is used to store at least one program, and the processor is used to load the at least one program to execute the battery state of charge detection method of the embodiment.
[0054] The beneficial effects of the present invention are as follows: the battery state of charge detection method in the embodiment can obtain the displayed state of charge of the battery in the charging and discharging state, wherein the total available capacity of the battery is taken into account when determining the displayed state of charge, and the influence of the unavailable capacity of the battery is eliminated, and the total available capacity of the battery can be mapped into the 0%-100% range of the displayed state of charge. When the total available capacity of the battery drops to zero, the displayed state of charge also returns to zero. Therefore, the displayed state of charge obtained by detection can reflect the availability of the battery and has an intuitive representation effect; on the other hand, a charging correction coefficient (discharge correction coefficient) is introduced when determining the displayed state of charge, so that the displayed state of charge tends to be smooth and linear, reducing the sudden change of the displayed state of charge. When the displayed state of charge is displayed in the form of a time curve, there are fewer sudden changes on the time curve, and a smooth time curve can be obtained, which is beneficial to the use of electrical equipment and the management of battery charging and discharging. BRIEF DESCRIPTION OF THE DRAWINGS
[0055] Figure 1 is a flow chart of a battery state of charge detection method implemented in an embodiment of the battery charging state;
[0056] Figure 2 Flowchart of a battery state of charge detection method implemented in the battery discharge state in an embodiment;
[0057] Figure 3 Detailed flow chart of the battery state of charge detection method in the embodiment;
[0058] Figure 4 A specific flow chart for obtaining the charge correction coefficient and the discharge correction coefficient in the embodiment;
[0059] Figure 5 Schematic diagram of the relationship between the actual state of charge, available state of charge, and displayed state of charge in an embodiment;
[0060] Figure 6 This is a flowchart of the step of obtaining the true state of charge of the battery in an embodiment;
[0061] Figure 7 Schematic diagram showing the available state of charge and the state of charge in the form of a time curve in an embodiment. DETAILED DESCRIPTION
[0062] In this embodiment, for a battery in a charging state, the battery charge state detection method implemented is as follows: Figure 1 As shown, the following steps are included:
[0063] S1A obtains the battery charging current time integral value and the remaining capacity displayed before the update, obtains the charging correction factor, displays the remaining capacity before the update, plus the product of the charging current time integral value and the charging correction factor, and the resulting sum is determined as the remaining capacity of the battery after the update display;
[0064] S2A. Get the total available capacity of the battery;
[0065] S3A. Determine the displayed state of charge of the battery based on the quotient of the updated displayed remaining capacity and the total available capacity.
[0066] In this embodiment, for a battery in a discharging state, the battery state of charge detection method implemented is as follows: Figure 2 As shown, the following steps are included:
[0067] S1B obtains the battery discharge current time integral value and the remaining capacity displayed before the update, obtains the discharge correction factor, and subtracts the product of the discharge current time integral value and the discharge correction factor from the remaining capacity displayed before the update, and the difference is determined as the remaining capacity of the battery after the update display;
[0068] S2B. Get the total available capacity of the battery;
[0069] S3B. Determine the displayed state of charge of the battery based on the quotient of the updated displayed remaining capacity and the total available capacity.
[0070] Steps S2A and S2B are identical, and steps S3A and S3B are identical. Since steps S1A-S3A are performed when the battery is charging, and steps S1B-S3B are performed when the battery is discharging, steps S1A and S1B process different data, but the principles behind step S1A and S1B are the same. By executing steps S1A-S3A and S1B-S3B, both the actual state of charge and the available state of charge of the battery can be smoothed to obtain the displayed state of charge of the battery.
[0071] In this embodiment, the specific process of steps S1A-S3A and steps S1B-S3B is as follows: Figure 3 As shown. Figure 3 , you can use the charging current time integral value Delta_Chg_Ah and the discharging current time integral value Delta_Dch_Ah to determine whether the battery is currently in the charging state or the discharging state. Specifically, if the charging current time integral value Delta_Chg_Ah>0, it indicates that the battery is currently in the charging state, execute Figure 3The process on the left side is related to steps S1A-S3A; if the discharge current time integral value Delta_Dch_Ah>0, it indicates that the battery is currently in the discharge state, execute Figure 3 The process on the right side is related to steps S1B-S3B.
[0072] Reference Figure 3 When the battery is in a charging state, step S1A is executed to obtain the battery's charging current time integral value Delta_Chg_Ah, obtain the charging correction coefficient K_Plus, and determine the battery's displayed remaining capacity DsocRemainCap as the sum of the displayed remaining capacity DsocRemainCap and the product of the charging current time integral value Delta_Chg_Ah and the charging correction coefficient K_Plus, that is, (updated) displayed remaining capacity DsocRemainCap = (pre-updated) displayed remaining capacity DsocRemainCap + (charging current time integral value Delta_Chg_Ah × charging correction coefficient K_Plus).
[0073] Reference Figure 3 When the battery is in a discharging state, step S1B is executed to obtain the discharge current time integral value Delta_Dch_Ah of the battery, obtain the discharge correction coefficient K_Minus, and determine the displayed remaining capacity DsocRemainCap of the battery by taking the difference between the displayed remaining capacity DsocRemainCap and the product of the discharge current time integral value Delta_Dch_Ah and the discharge correction coefficient K_Minus, i.e., (updated) displayed remaining capacity DsocRemainCap = (pre-updated) displayed remaining capacity DsocRemainCap - (discharge current time integral value Delta_Dch_Ah × discharge correction coefficient K_Minus).
[0074] In this embodiment, the charge correction coefficient K_Plus used in step S1A and the discharge correction coefficient K_Minus used in step S1B can be obtained by Figure 4 The process shown is obtained, where Figure 4 The left side is the process of obtaining the discharge correction coefficient K_Minus. Figure 4 The right side shows the process of obtaining the charging correction coefficient K_Plus.
[0075] Reference Figure 4 When obtaining the charging correction coefficient, you can perform the following steps:
[0076] S101A. Set the charging correction factor to the initial value;
[0077] S102A. Set multiple charging follow target values;
[0078] S103A. At least part of the charge target value is detected in ascending order to determine a first follow target value; the first follow target value is the first charge target value that is greater than the display state of charge and the available state of charge;
[0079] S104A obtains the difference between the first follow target value and the displayed state of charge, and the quotient of the difference between the first follow target value and the available state of charge, to determine the charging correction coefficient;
[0080] S105A. Set the maximum value of the correction coefficient;
[0081] S106A. When the charge correction coefficient is greater than the maximum correction coefficient, or the first follow-up target value and the available state of charge are both 100%, the charge correction coefficient is adjusted to a value equal to the maximum correction coefficient; otherwise, the charge correction coefficient remains unchanged.
[0082] The process of steps S101A-S106A is as follows: Figure 4 In step S101A, the charging correction coefficient K_Plus is set to an initial value. Specifically, the initial value can be set to 1, that is, the charging correction coefficient K_Plus is initially set to 1.
[0083] In step S102A, multiple charging follow target values are set. Specifically, values such as 95%, 99%, and 100% can be set as charging follow target values. These charging follow target values can be arranged in order from small to large.
[0084] In step S103A, at least part of the charging follow target values are detected in ascending order to determine a first follow target value. For example, when all charging follow target values are 95%, 99%, and 100%, starting from the smallest charging follow target value, i.e., 95%, the judgment condition of "95%>displayed state of charge DSOC and 95%>available state of charge AvailSOC" is judged. If it is satisfied, it means that "95%" is the first charging follow target value that is greater than both displayed state of charge DSOC and available state of charge AvailSOC, so the first following target value is determined to be 95%; if it is not satisfied, the next charging follow target value of "95%", i.e., "99%", is selected for judgment, that is, the judgment condition of "99%>displayed state of charge DSOC and 99%>available state of charge AvailSOC" is judged. If it is satisfied, it means that "99%" is the first charging follow target value that is greater than both displayed state of charge DSOC and available state of charge AvailSOC, so the first following target value is determined to be 99%, and so on.
[0085] In step S104A, the difference between the first following target value and the displayed state of charge (DSOC) and the quotient of the difference between the first following target value and the available state of charge (AvailSOC) are obtained to determine the charging correction coefficient K_Plus, i.e., the charging correction coefficient K_Plus = (first following target value - displayed state of charge (DSOC)) / (first following target value - available state of charge (AvailSOC).
[0086] In this embodiment, the magnitude of the first follow-up target value affects the charge correction coefficient K_Plus, which in turn affects the displayed state of charge (DSOC). Limiting the magnitude of the first follow-up target value can limit the jump in the displayed state of charge (DSOC). In step S105A, the maximum value of the correction coefficient K_Max is set. Specifically, the maximum value of the correction coefficient K_Max can be set using the formula "maximum correction coefficient K_Max = rated capacity (RateCap) × set rate / current charging current," where "set rate" is a freely set value.
[0087] In step S106A, when the charging correction coefficient K_Plus is greater than the maximum correction coefficient K_Max, that is, K_Plus>K_Max, or when "the first following target value = available state of charge AvailSOC = 100%" is satisfied, the charging correction coefficient K_Plus is adjusted to a value equal to the maximum correction coefficient K_Max, that is, K_Plus=K_Max; otherwise, that is, when neither "K_Plus>K_Max" nor "the first following target value = available state of charge AvailSOC = 100%" is satisfied, the charging correction coefficient K_Plus remains unchanged and is not processed.
[0088] Reference Figure 4 When obtaining the discharge correction coefficient, the following steps can be performed:
[0089] S101B. The discharge correction coefficient is set to the initial value;
[0090] S102B sets multiple discharge follow target values;
[0091] S103B is detected in descending order for at least part of the discharge target value to determine the second target value to follow; the second target value is less than the first target value to follow the discharge state and the available state of charge display;
[0092] S104B obtains the difference between the displayed state of charge and the second target value, and the quotient of the difference between the available state of charge and the second target value, and determines the discharge correction coefficient;
[0093] S105B. Set the maximum value of the correction coefficient;
[0094] S106B. When the discharge correction coefficient is greater than the maximum correction coefficient, or the second follow target value and the available state of charge are both 0, the discharge correction coefficient is adjusted to a value equal to the maximum correction coefficient; otherwise, the discharge correction coefficient remains unchanged.
[0095] The process of steps S101B-S106B is as follows: Figure 4 As shown on the left side, in step S101B, the discharge correction coefficient K_Minus is set to an initial value. Specifically, the initial value can be set to 1, that is, the discharge correction coefficient K_Minus is initially set to 1.
[0096] In step S102B, multiple discharge follow target values are set. Specifically, values such as 15%, 12%, 9%, 6%, 2%, and 0 can be set as the discharge follow target values. These discharge follow target values can be arranged in descending order.
[0097] In step S103B, at least the partial discharge following target values are detected in descending order to determine a second following target value. For example, when all the discharge following target values are 15%, 12%, 9%, 6%, 2%, and 0, starting from the largest discharge following target value, i.e., 15%, it is judged whether the judgment condition of "15% < displayed state of charge DSOC and 15% < available state of charge AvailSOC" is satisfied. If so, it means that "15%" is the first discharge following target value that is smaller than both displayed state of charge DSOC and available state of charge AvailSOC, and thus the second following target value is determined to be 15%. If not, the next discharge following target value after "15%", i.e., "12%", is selected for judgment, that is, it is judged whether the judgment condition of "12% < displayed state of charge DSOC and 12% < available state of charge AvailSOC" is satisfied. If so, it means that "12%" is the first discharge following target value that is smaller than both displayed state of charge DSOC and available state of charge AvailSOC, and thus the second following target value is determined to be 12%, and so on.
[0098] In step S104B, the difference between the displayed state of charge (DSOC) and the second following target value is obtained, and the quotient of the difference between the available state of charge (AvailSOC) and the second following target value is obtained to determine the discharge correction coefficient K_Minus, that is, the discharge correction coefficient K_Minus = (displayed state of charge (DSOC) - second following target value) / (available state of charge (AvailSOC) - second following target value).
[0099] In this embodiment, the magnitude of the second follow target value affects the discharge correction coefficient K_Minus, which in turn affects the displayed state of charge (DSOC). Limiting the magnitude of the second follow target value can limit the jump in the displayed state of charge (DSOC). In step S105B, the maximum correction coefficient value K_Max is set. Specifically, the maximum correction coefficient value K_Max can be set using the formula "maximum correction coefficient K_Max = rated capacity (RateCap) × set rate / current discharge current," where "set rate" is a freely set value.
[0100] In step S106B, when the discharge correction coefficient K_Minus is greater than the maximum correction coefficient K_Max, that is, K_Minus>K_Max, or when "the second following target value = available state of charge AvailSOC = 0" is satisfied, the discharge correction coefficient K_Minus is adjusted to a value equal to the maximum correction coefficient K_Max, that is, K_Minus = K_Max; otherwise, that is, when neither "K_Minus>K_Max" nor "the second following target value = available state of charge AvailSOC = 0" is satisfied, the discharge correction coefficient K_Minus is kept unchanged and is not processed.
[0101] Step S2A is the same as step S2B. The total available capacity AvailCap can be calculated by the formula “total available capacity AvailCap = rated capacity RateCap - frozen capacity FreezCap” as in step S502 .
[0102] Reference Figure 3 When executing step S3A, the quotient of the displayed remaining capacity DsocRemainCap obtained by executing step S1A and the total available capacity AvailCap obtained by executing step S2A is determined as the displayed state of charge DSOC of the battery, that is, displayed state of charge DSOC = displayed remaining capacity DsocRemainCap / total available capacity AvailCap × 100%.
[0103] Reference Figure 3 When executing step S3B, the quotient of the displayed remaining capacity DsocRemainCap obtained by executing step S1B and the total available capacity AvailCap obtained by executing step S2B is determined as the displayed state of charge DSOC of the battery, that is, the displayed state of charge DSOC = displayed remaining capacity DsocRemainCap / total available capacity AvailCap × 100%.
[0104] In this embodiment, refer to Figure 3, when performing steps S4A - S3A, when the displayed remaining capacity DsocRemainCap obtained by performing step S1A is greater than the total available capacity AvailCap, that is, DsocRemainCap > AvailCap, adjust the displayed remaining capacity DsocRemainCap to a value equal to the total available capacity AvailCap, that is, DsocRemainCap = AvailCap. Conversely, keep the displayed remaining capacity DsocRemainCap unchanged and do not process the displayed remaining capacity DsocRemainCap, so that the displayed remaining capacity DsocRemainCap does not exceed the total available capacity AvailCap, and when the displayed remaining capacity DsocRemainCap is displayed, a result that violates the actual situation will not be shown.
[0105] In this embodiment, refer to Figure 3 , when performing steps S1B - S3B, when the displayed remaining capacity DsocRemainCap obtained by performing step S1B is less than the product of the discharge current time integral value Delta_Dch_Ah and the discharge correction coefficient K_Minus, that is, DsocRemainCap < Delta_Dch_Ah × K_Minus (that is Figure 3 in
[0106] In this embodiment, executing steps S1A-S3A can obtain the displayed state of charge of the battery in the charging state, and executing steps S1B-S3B can obtain the displayed state of charge of the battery in the discharging state. The total available capacity of the battery is taken into account when determining the displayed state of charge, and the influence of unavailable capacity such as the frozen capacity of the battery is eliminated. The total available capacity of the battery can be mapped to the range of 0%-100% of the displayed state of charge. When the total available capacity of the battery drops to zero, the displayed state of charge also returns to zero. Therefore, the detected displayed state of charge can reflect the availability of the battery and has an intuitive representation function. On the other hand, a charging correction factor (discharge correction factor) is introduced when determining the displayed state of charge, so that the displayed state of charge tends to be smooth and linear, reducing sudden changes in the displayed state of charge. When the displayed state of charge is displayed in the form of a time curve, there are fewer sudden changes on the time curve, and a smooth time curve can be obtained, which is beneficial to the use of electrical equipment and the management of battery charging and discharging.
[0107] In this embodiment, the real-time state of charge value can be displayed by a digital tube or a liquid crystal display, and the state of charge at multiple moments can be recorded. The time curve corresponding to the state of charge at each moment can be obtained by plotting points, and the time curve can be displayed.
[0108] In this embodiment, based on the execution of steps S1A to S3A, or based on the execution of steps S1B to S3B, the following steps may also be executed:
[0109] S4. Obtain the true state of charge of the battery;
[0110] S5. Get the available state of charge of the battery;
[0111] In this embodiment, when executing step S4A or S4B, that is, the step of obtaining the true state of charge of the battery, the following steps may be specifically performed:
[0112] S401. Get the rated capacity of the battery;
[0113] S402. Detecting the battery charge and discharge ampere-hours;
[0114] S403. Obtain the real remaining capacity before the update, and determine the real remaining capacity of the battery after the update based on the real remaining capacity before the update plus or minus the charge and discharge ampere-hour value; where the value is added during charging and subtracted during discharging.
[0115] S404: Determine the actual state of charge of the battery based on the quotient of the updated actual remaining capacity and the rated capacity.
[0116] In steps S401-S404, the relationship between the real state of charge (real SOC), the available state of charge (available SOC) and the displayed state of charge (displayed SOC) is as follows: Figure 5 As shown, the principles of steps S401-S404 are as follows Figure 6 shown.
[0117] Reference Figure 6 In step S401, the rated capacity RateCap of the battery can be determined by querying the factory parameters of the battery.
[0118] In step S402, when the battery is in a charging state, the time integral value of the battery charging current Delta_Chg_Ah can be detected as the charge and discharge ampere-hours Ah; when the battery is in a discharging state, the time integral value of the battery discharging current Delta_Dch_Ah can be detected as the charge and discharge ampere-hours Ah.
[0119] In step S403, the charge and discharge ampere-hour is the integral of the battery's charge and discharge current over time, which can represent the difference in battery capacity change. Therefore, the battery's real remaining capacity RemainCap can be calculated using the formula (updated) real remaining capacity RemainCap = (before update) real remaining capacity RemainCap ± charge and discharge ampere-hour Ah, where a plus sign is used during charging and a minus sign is used during discharging.
[0120] In step S404 , the real state of charge (RSOC) of the battery is determined according to the quotient of the real remaining capacity (RemainCap) and the rated capacity (RateCap), that is, the real state of charge (RSOC)=real remaining capacity (RemainCap) / rated capacity (RateCap)×100%.
[0121] In this embodiment, when executing step S5A or S5B, that is, the step of obtaining the available state of charge of the battery, the following steps may be specifically performed:
[0122] S501. Get the frozen capacity of the battery;
[0123] S502. Determine the total available capacity of the battery based on the difference between the rated capacity and the frozen capacity;
[0124] S503. Determine the available remaining capacity of the battery based on the difference between the actual remaining capacity and the frozen capacity;
[0125] S504: Determine the available state of charge of the battery according to the quotient of the available remaining capacity and the total available capacity.
[0126] In step S501, the battery's frozen capacity FreezCap is related to factors such as the characteristics of the battery cell and the battery temperature. It can be considered that the frozen capacity FreezCap is mainly related to the battery temperature. A corresponding relationship as shown in Table 1 can be established. The battery cell temperature or surface temperature is detected, and then the corresponding freezing ratio coefficient K_Freez is obtained by querying Table 1. The battery's frozen capacity FreezCap is determined based on the product of the rated capacity RateCap and the freezing ratio coefficient K_Freez, that is, frozen capacity FreezCap = rated capacity RateCap × freezing ratio coefficient K_Freez.
[0127] Table 1
[0128]
[0129] In step S502, according to Figure 5 According to the relationship shown, the difference between the rated capacity RateCap and the frozen capacity FreezCap can be determined as the total available capacity AvailCap of the battery, that is, the total available capacity AvailCap = rated capacity RateCap - frozen capacity FreezCap.
[0130] In step S503, according to Figure 5 According to the relationship shown, the difference between the real remaining capacity RemainCap and the frozen capacity FreezCap can be determined as the available remaining capacity AvailRemainCap of the battery, that is, the available remaining capacity AvailRemainCap = the real remaining capacity RemainCap - the frozen capacity FreezCap.
[0131] In step S504 , the quotient of the available remaining capacity AvailRemainCap and the total available capacity AvailCap is determined as the available state of charge AvailSOC of the battery, ie, available state of charge AvailSOC=available remaining capacity AvailRemainCap / total available capacity AvailCap×100%.
[0132] During a battery charging process, steps S4A-S3A are executed, and the obtained available state of charge AvailSOC and the time curve showing the state of charge DSOC are shown as follows: Figure 7 As shown. Figure 7As the battery charges and discharges, the time curve showing the state of charge DSOC is always slowly approaching the available state of charge AvailSOC. The two time curves begin to overlap at a certain moment. This shows that the displayed state of charge obtained by the battery state of charge detection method in this embodiment has few sudden changes, and the error between the displayed state of charge and the actual battery power reflected by the available state of charge AvailSOC is small, so it can be displayed as the battery power detection result.
[0133] A computer program that executes the battery state of charge detection method in this embodiment can be written and written into a computer device or storage medium. When the computer program is read out and run, the battery state of charge detection method in this embodiment is executed, thereby achieving the same technical effect as the battery state of charge detection method in the embodiment.
[0134] It should be noted that, unless otherwise specified, when a feature is referred to as being "fixed" or "connected" to another feature, it may be directly fixed or connected to the other feature, or it may be indirectly fixed or connected to the other feature. In addition, the descriptions of up, down, left, right, etc. used in this disclosure are only relative to the relative positional relationship of the components of the present disclosure in the accompanying drawings. The singular forms of "a", "said" and "the" used in this disclosure are also intended to include the plural forms, unless the context clearly indicates otherwise. In addition, unless otherwise defined, all technical and scientific terms used in this embodiment have the same meaning as those generally understood by those skilled in the art. The terms used in the description of this embodiment are only for describing specific embodiments and are not intended to limit the present invention. The term "and / or" used in this embodiment includes any combination of one or more related listed items.
[0135] It should be understood that, although the present disclosure may adopt the term first, second, third etc. to describe various elements, these elements should not be limited to these terms.These terms are only used to distinguish the elements of the same type from each other.For example, without departing from the scope of the present disclosure, the first element may also be referred to as the second element, and similarly, the second element may also be referred to as the first element.The use of any and all examples or exemplary language ("for example", "such as" etc.) provided by the present embodiment is only intended to better illustrate embodiments of the present invention, and unless otherwise required, the scope of the present invention will not be limited.
[0136] It should be appreciated that embodiments of the present invention can be implemented or practiced by computer hardware, a combination of hardware and software, or by computer instructions stored in a non-transitory computer-readable memory. The methods can be implemented in a computer program using standard programming techniques, including a non-transitory computer-readable storage medium configured with a computer program, wherein the storage medium so configured causes the computer to operate in a specific and predefined manner, according to the methods and figures described in the specific embodiments. Each program can be implemented in a high-level procedural or object-oriented programming language to communicate with the computer system. However, if desired, the program can be implemented in assembly or machine language. In any case, the language can be a compiled or interpreted language. In addition, the program can be run on a programmed application-specific integrated circuit for this purpose.
[0137] In addition, the operations of the processes described in this embodiment may be performed in any suitable order, unless otherwise indicated in this embodiment or otherwise clearly contradicted by the context. The processes described in this embodiment (or variations and / or combinations thereof) may be performed under the control of one or more computer systems configured with executable instructions, and may be implemented as code (e.g., executable instructions, one or more computer programs, or one or more applications) that is executed collectively on one or more processors, by hardware, or a combination thereof. The computer program includes a plurality of instructions that can be executed by one or more processors.
[0138] Furthermore, the methods can be implemented in any type of computing platform that is operably connected to a suitable computer, including but not limited to a personal computer, a minicomputer, a mainframe, a workstation, a network or distributed computing environment, a separate or integrated computer platform, or in communication with a charged particle tool or other imaging device, etc. Various aspects of the present invention can be implemented as machine-readable code stored on a non-transitory storage medium or device, whether removable or integrated into a computing platform, such as a hard disk, an optical read and / or write storage medium, RAM, ROM, etc., so that it can be read by a programmable computer, and when the storage medium or device is read by the computer, it can be used to configure and operate the computer to perform the processes described herein. In addition, the machine-readable code, or portions thereof, can be transmitted over a wired or wireless network. When such media includes instructions or programs that implement the steps described above in conjunction with a microprocessor or other data processor, the invention described in this embodiment includes these and other different types of non-transitory computer-readable storage media. When programmed according to the methods and techniques of the present invention, the present invention also includes the computer itself.
[0139] The computer program can be applied to input data to perform the functions described in the present embodiment, thereby converting the input data to generate output data that is stored in a non-volatile memory. The output information can also be applied to one or more output devices such as a display. In a preferred embodiment of the present invention, the converted data represents a physical and tangible object, including a specific visual depiction of the physical and tangible object produced on the display.
[0140] The above description is merely a preferred embodiment of the present invention. The present invention is not limited to the aforementioned embodiments. As long as the technical effects of the present invention are achieved by the same means, any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the present invention shall be included within the scope of protection of the present invention. Within the scope of protection of the present invention, various modifications and variations of the technical solutions and / or implementation methods are possible.
Claims
1. A battery state of charge detection method, applied to the battery charging process, characterized in that: The battery state of charge detection method comprises: Get the battery charging current time integral value and the remaining capacity displayed before updating; Get the charging correction factor; The displayed remaining capacity before the update is added to the product of the charging current time integral value and the charging correction coefficient. The sum is determined as the updated remaining capacity of the battery; Get the total available capacity of the battery; determining a displayed state of charge of the battery according to a quotient of the updated displayed remaining capacity and the total available capacity; The obtaining of the charging correction coefficient includes: Setting the charging correction coefficient to an initial value; Set multiple charging follow target values; detecting some of the charge following target values in ascending order to determine a first following target value; the first following target value being the first charge following target value that satisfies a determination condition, the determination condition being greater than the displayed state of charge and greater than the available state of charge of the battery; Obtaining a quotient of a difference between the first following target value and the displayed state of charge and a difference between the first following target value and the available state of charge to determine the charging correction coefficient; By formula Correction coefficient maximum value K_Max = rated capacity RateCap × set rate / current charging current Set the maximum value of the correction coefficient K_Max; the setting ratio is a freely set value; When the charging correction coefficient is greater than the maximum correction coefficient value, or the first follow-up target value and the available state of charge are both 100%, the charging correction coefficient is adjusted to a value equal to the maximum correction coefficient value; otherwise, the charging correction coefficient remains unchanged.
2. The battery state of charge detection method according to claim 1, characterized in that: The battery state of charge detection method further includes: When the updated displayed remaining capacity is greater than the total available capacity, the updated displayed remaining capacity is adjusted to a value equal to the total available capacity; otherwise, the updated displayed remaining capacity is kept unchanged.
3. A battery state of charge detection method, applied to the battery discharge process, characterized in that: The battery state of charge detection method comprises: Obtain the time integral value of the battery's discharge current and the remaining capacity displayed before updating; Get the discharge correction factor; The displayed remaining capacity before updating is subtracted from the product of the discharge current time integral value and the discharge correction coefficient. The difference is determined as the updated remaining capacity of the battery; Get the total available capacity of the battery; determining a displayed state of charge of the battery according to a quotient of the updated displayed remaining capacity and the total available capacity; The obtaining of the discharge correction coefficient includes: Setting the discharge correction coefficient to an initial value; Set multiple discharge follow target values; detecting some of the discharge following target values in descending order to determine a second following target value; the second following target value being the first charge following target value that satisfies a determination condition, the determination condition being less than the displayed state of charge and less than the available state of charge of the battery; Obtaining a quotient of a difference between the displayed state of charge and the second follow target value and a difference between the available state of charge and the second follow target value to determine the discharge correction coefficient; By formula Correction coefficient maximum value K_Max = rated capacity RateCap × set rate / current charging current Set the maximum value of the correction coefficient K_Max; the setting ratio is a freely set value; When the discharge correction coefficient is greater than the maximum correction coefficient value, or the second follow target value and the available state of charge are both 0, the discharge correction coefficient is adjusted to a value equal to the maximum correction coefficient value; otherwise, the discharge correction coefficient remains unchanged.
4. The battery state of charge detection method according to claim 3, characterized in that: The battery state of charge detection method further includes: When the updated displayed remaining capacity is less than the product of the discharge current time integral value and the discharge correction coefficient, the updated displayed remaining capacity is adjusted to zero.
5. The battery state of charge detection method according to any one of claims 1 to 4, characterized in that: The battery state of charge detection method further includes: Get the rated capacity of the battery; Detect the battery's charge and discharge ampere-hours; Get the actual remaining capacity before the update; When the battery is in the charging process, the battery is determined based on the actual remaining capacity before the update plus the charge and discharge ampere-hour value. The actual remaining capacity after update; When the battery is in the discharge process, the battery capacity is determined by subtracting the charge and discharge ampere-hour value from the actual remaining capacity before the update. The actual remaining capacity after update; The actual state of charge of the battery is determined according to the quotient of the updated actual remaining capacity and the rated capacity.
6. The battery state of charge detection method according to claim 5, characterized in that: The battery state of charge detection method further includes: Get the frozen capacity of the battery; determining a total available capacity of the battery according to a difference between the rated capacity and the frozen capacity; determining the available remaining capacity of the battery according to the difference between the actual remaining capacity and the frozen capacity; An available state of charge of the battery is determined according to a quotient of the available remaining capacity and the total available capacity.
7. The battery state of charge detection method according to claim 6, characterized in that: The obtaining of the frozen capacity of the battery includes: Get the battery temperature; Determine the freezing ratio coefficient according to the temperature of the battery; The frozen capacity of the battery is determined according to a product of the rated capacity and the frozen proportional coefficient.
8. A computer device, characterized in that: The method comprises a memory and a processor, wherein the memory is used to store at least one program, and the processor is used to load the at least one program to execute the battery state of charge detection method according to any one of claims 1 to 7.
Citation Information
Patent Citations
Calculation method and calculation device of state of charge (SOC) of power battery
CN106066456A
SOC estimation method and device of power battery and battery management system
CN110673052A