Charging power measurement method, device, equipment and storage medium
By obtaining the internal resistance of lithium-ion batteries and constructing a charging capacity model, the problem of voltage change curve errors under different charge and discharge rates was solved, and more accurate charging capacity estimation was achieved.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- 深圳锂安技术有限公司
- Filing Date
- 2023-05-26
- Publication Date
- 2026-05-19
AI Technical Summary
In existing technologies, errors in the voltage variation curves of lithium-ion batteries at different charge/discharge rates lead to inaccurate estimations of charging capacity.
By obtaining the current internal resistance of the battery, the power loss due to internal resistance is calculated using the Joule's law model. A charging power model is then constructed by combining the rated capacity and input current to reduce the error of the voltage change curve and improve the estimation accuracy.
By reducing the error of the voltage change curve at different charge/discharge rates, the accuracy of charging capacity estimation can be improved.
Smart Images

Figure CN116609684B_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of lithium battery parameter adjustment technology, and in particular to a method, apparatus, device and storage medium for measuring charging capacity. Background Technology
[0002] Currently, the development of new energy vehicles and power batteries has entered the after-sales market stage, with various testing methods and evaluation approaches emerging. Among them, methods based on big data and machine learning have developed rapidly and achieved certain results. In most machine learning methods, the main data is the voltage and current data of lithium-ion batteries during charging and discharging, allowing the machine to learn the patterns of voltage and current changes to estimate the current remaining capacity. However, in reality, the charge / discharge rate is often not constant, and different charge / discharge rates directly affect the pattern of voltage change curves, causing errors in the detected voltage change curves and resulting in inaccurate estimates of the charging capacity. Summary of the Invention
[0003] This invention aims to at least solve one of the technical problems existing in the prior art. To this end, this invention proposes a method for measuring charging capacity that can reduce the error of voltage change curves under different charge / discharge rates, thereby improving the accuracy of estimated charging capacity.
[0004] The present invention also proposes a charging power measurement device.
[0005] The present invention also proposes a charging power measurement device.
[0006] The present invention also proposes a computer-readable storage medium.
[0007] In a first aspect, one embodiment of the present invention provides a method for measuring charging capacity, comprising:
[0008] Obtain the current internal resistance of the battery to get the target battery internal resistance;
[0009] Based on the Joule's law model, the power loss is obtained by processing the internal resistance of the target battery to obtain the power loss due to the internal resistance of the battery.
[0010] The energy loss coefficient is obtained by calculating the energy loss based on the internal resistance loss and the preset rated capacity.
[0011] The energy loss coefficient and input current are input into a pre-built charging power model for power calculation to obtain the target charging power.
[0012] The charging capacity measurement method of this invention has at least the following beneficial effects: It obtains the current internal resistance value of the battery to obtain the target battery internal resistance; inputs the target battery internal resistance into a preset Joule's law model; calculates the power loss based on the target battery internal resistance to obtain the power loss due to internal resistance; obtains the battery's set rated capacity; inputs the power loss due to internal resistance and the rated capacity into a preset coefficient calculation model to obtain an energy loss coefficient; obtains the input current of the charger into the battery; inputs the energy loss coefficient and the input current into a pre-built charging capacity model to obtain the target charging capacity. By obtaining the target battery internal resistance at the current moment, calculating the power loss due to internal resistance, calculating the energy loss coefficient based on the power loss due to internal resistance and the preset rated capacity, and calculating the target charging capacity based on the energy loss coefficient and the input current, the error of the voltage change curve can be reduced under different charge / discharge rates, thereby improving the accuracy of the estimated charging capacity.
[0013] According to other embodiments of the present invention, the method for measuring charging capacity, wherein obtaining the current internal resistance of the battery and obtaining the target internal resistance includes:
[0014] Obtain the initial voltage of the battery to obtain the initial battery voltage; obtain the current voltage of the battery to obtain the target battery voltage.
[0015] Obtain the initial current of the battery to obtain the initial battery current, obtain the current of the battery to obtain the target battery current;
[0016] The voltage difference is obtained by performing voltage difference processing based on the initial battery voltage and the target battery voltage;
[0017] The current difference is obtained by performing current difference processing based on the initial battery current and the target battery current;
[0018] The internal resistance of the target battery is obtained by performing internal resistance calculation on the voltage difference and the current difference.
[0019] According to other embodiments of the present invention, the charging capacity measurement method, wherein the loss capacity acquisition processing based on the Joule's law model according to the internal resistance of the target battery to obtain the internal resistance loss capacity of the battery, includes:
[0020] The average current of the battery during the charging and discharging process is obtained to obtain the target average current;
[0021] The charging and discharging time of the battery during the charging and discharging process is obtained to obtain the target charging and discharging time;
[0022] The target battery internal resistance, the target average current, and the target charging time are input into the Joule's law model to obtain the power loss, thus obtaining the power loss due to the internal resistance.
[0023] According to other embodiments of the charging capacity measurement method of the present invention, the step of calculating the energy loss coefficient based on the internal resistance loss capacity and the preset rated capacity includes:
[0024] Obtain the current charging level of the battery to get the battery charging level;
[0025] The actual full charge capacity is obtained by calculating the charging capacity based on the internal resistance loss and the battery charging capacity.
[0026] The actual full charge capacity and the rated capacity are calculated as a percentage to obtain the charging capacity percentage.
[0027] The energy loss coefficient is obtained by calculating the difference between the preset maximum percentage and the charging capacity percentage.
[0028] According to other embodiments of the present invention, before inputting the energy loss coefficient and the input current into a pre-built charging capacity model for power calculation to obtain the target charging capacity, the charging capacity measurement method further includes:
[0029] Constructing the charging power model includes:
[0030] Construct an actual charging capacity layer based on the energy loss coefficient and the input current;
[0031] A relative charging capacity ratio layer is constructed based on the actual charging capacity and the internal resistance loss capacity; wherein, the actual charging capacity is obtained based on the actual charging capacity layer;
[0032] A relative charging capacity layer is constructed based on the input current, the current charging time, and the relative charging capacity ratio; wherein, the current charging time is the time it takes for the battery to charge to the current moment, and the relative charging capacity ratio is obtained based on the relative charging capacity ratio layer;
[0033] The charging capacity model is obtained by constructing a model based on the actual charging capacity layer, the relative charging capacity ratio layer, and the relative charging capacity layer.
[0034] According to other embodiments of the present invention, the method for measuring charging capacity includes inputting the energy loss coefficient and the input current into a pre-built charging capacity model for capacity calculation to obtain the target charging capacity, comprising:
[0035] The energy loss coefficient and the input current are input to the actual charging capacity layer to calculate the actual charging capacity, and the actual charging capacity is obtained.
[0036] The actual charging power and internal resistance loss power are input into the relative charging power ratio layer for ratio calculation to obtain the relative charging power ratio.
[0037] The relative charging capacity ratio, the input current, and the current charging time are input to the relative charging capacity layer for relative charging capacity calculation to obtain the target charging capacity.
[0038] According to other embodiments of the present invention, the method for measuring charging capacity includes inputting the relative charging capacity, the input current, and the current charging time into the relative charging capacity layer for relative charging capacity calculation to obtain the target charging capacity, comprising:
[0039] The initial charging capacity is obtained by calculating the charging capacity using the input current and the current charging time.
[0040] The target charging capacity is obtained by performing relative charging capacity calculation on the initial charging capacity and the relative charging capacity ratio.
[0041] Secondly, one embodiment of the present invention provides a charging capacity measuring device, comprising:
[0042] The battery internal resistance acquisition module is used to acquire the current internal resistance of the battery and obtain the target battery internal resistance.
[0043] The power loss acquisition module is used to acquire power loss based on the internal resistance of the target battery according to the Joule law model, and obtain the power loss due to the internal resistance of the battery.
[0044] The loss coefficient calculation module is used to perform coefficient calculation based on the internal resistance loss power and the preset rated capacity to obtain the energy loss coefficient.
[0045] The charging capacity calculation module is used to input the energy loss coefficient and input current into a pre-built charging capacity model for power calculation processing to obtain the target charging capacity.
[0046] The charging capacity measurement device of this invention has at least the following beneficial effects: the battery internal resistance acquisition module acquires the current internal resistance value of the battery to obtain the target battery internal resistance; the power loss acquisition module inputs the target battery internal resistance into a preset Joule's law model and calculates the power loss based on the target battery internal resistance to obtain the power loss due to the battery's internal resistance; the power loss coefficient calculation module acquires the battery's set rated capacity and inputs the power loss due to the internal resistance and the rated capacity into a preset coefficient calculation model so that the coefficient calculation model calculates the coefficient based on the power loss due to the internal resistance and the rated capacity to obtain the energy loss coefficient; the charging capacity calculation module acquires the input current of the charger into the battery and inputs the energy loss coefficient and the input current into a pre-built charging capacity model so that the charging capacity model calculates the power based on the energy loss coefficient and the input current to obtain the target charging capacity. By obtaining the target battery internal resistance at the current moment, calculating the internal resistance loss based on the target battery internal resistance, calculating the energy loss coefficient based on the internal resistance loss and the preset rated capacity, and calculating the target charging capacity based on the energy loss coefficient and the input current, the error of the voltage change curve can be reduced under different charge and discharge rates, thereby improving the accuracy of the estimated charging capacity.
[0047] Thirdly, one embodiment of the present invention provides a charging capacity measuring device, comprising:
[0048] At least one processor, and,
[0049] A memory communicatively connected to the at least one processor; wherein,
[0050] The memory stores instructions that can be executed by the at least one processor to enable the at least one processor to perform the charging capacity measurement method as described in the first aspect.
[0051] Fourthly, one embodiment of the present invention provides a computer-readable storage medium storing computer-executable instructions for causing a computer to perform the charging power measurement method as described in the first aspect.
[0052] Other features and advantages of this application will be set forth in the following description and will be apparent in part from the description or may be learned by practicing the application. The objectives and other advantages of this application may be realized and obtained by means of the structures particularly pointed out in the description and the accompanying drawings. Attached Figure Description
[0053] Figure 1 This is a schematic flowchart of a specific embodiment of the charging power measurement method in this invention;
[0054] Figure 2 yes Figure 1 A schematic flowchart of a specific embodiment of step S100;
[0055] Figure 3 yes Figure 1 A schematic diagram of a specific embodiment of step S200;
[0056] Figure 4 yes Figure 1 A schematic diagram of a specific embodiment of step S300;
[0057] Figure 5 This is a schematic flowchart of another specific embodiment of the charging power measurement method in this invention;
[0058] Figure 6 yes Figure 1 A schematic flowchart of a specific embodiment of step S400;
[0059] Figure 7 yes Figure 6 A schematic flowchart of a specific embodiment of step S603;
[0060] Figure 8 This is a module block diagram of a specific embodiment of the charging power measurement device in this invention.
[0061] Explanation of reference numerals in the attached figures:
[0062] Battery internal resistance acquisition module 801, power loss acquisition module 802, power loss coefficient calculation module 803, charging power calculation module 804. Detailed Implementation
[0063] The following will describe the concept and technical effects of the present invention clearly and completely with reference to embodiments, so as to fully understand the purpose, features and effects of the present invention. Obviously, the described embodiments are only some embodiments of the present invention, not all embodiments. Other embodiments obtained by those skilled in the art based on the embodiments of the present invention without creative effort are all within the scope of protection of the present invention.
[0064] In the description of this invention, if directional descriptions are involved, such as "up," "down," "front," "back," "left," "right," etc., indicating the orientation or positional relationship based on the orientation or positional relationship shown in the accompanying drawings, it is only for the convenience of describing the invention and simplifying the description, and does not indicate or imply that the device or element referred to must have a specific orientation, or be constructed and operated in a specific orientation, and therefore should not be construed as a limitation of the invention. If a feature is referred to as "set," "fixed," "connected," or "installed" on another feature, it can be directly set, fixed, or connected to the other feature, or it can be indirectly set, fixed, connected, or installed on the other feature.
[0065] In the description of the embodiments of the present invention, the term "several" means one or more, and the term "multiple" means two or more. The terms "greater than," "less than," and "exceeding" should be understood as excluding the stated number, while the terms "above," "below," and "within" should be understood as including the stated number. The terms "first" and "second" should be understood as distinguishing technical features, and not as indicating or implying relative importance, the number of indicated technical features, or the order of the indicated technical features.
[0066] Currently, the development of new energy vehicles and power batteries has entered the after-sales market stage, with various testing methods and evaluation approaches emerging. Among them, methods based on big data and machine learning have developed rapidly and achieved certain results. In most machine learning methods, the main data is the voltage and current data of lithium-ion batteries during charging and discharging, allowing the machine to learn the patterns of voltage and current changes to estimate the current remaining capacity. However, in reality, the charge / discharge rate is often not constant, and different charge / discharge rates directly affect the pattern of voltage change curves, causing errors in the detected voltage change curves and resulting in inaccurate estimates of the charging capacity.
[0067] This invention aims to at least solve one of the technical problems existing in the prior art. To this end, this invention proposes a method for measuring charging capacity that can reduce the error of voltage change curves under different charge / discharge rates, thereby improving the accuracy of estimated charging capacity.
[0068] Please refer to Figure 1 , Figure 1 A flowchart illustrating a charging capacity measurement method according to an embodiment of the present invention is shown. In some embodiments, the charging capacity measurement method may include, but is not limited to, steps S101 to S104.
[0069] Step S101: Obtain the current internal resistance of the battery to obtain the target battery internal resistance;
[0070] Step S102: Based on the Joule's law model, the power loss is obtained by processing the internal resistance of the target battery to obtain the power loss due to the internal resistance of the battery.
[0071] Step S103: Calculate the energy loss coefficient based on the internal resistance loss and the preset rated capacity.
[0072] Step S104: Input the energy loss coefficient and input current into the pre-built charging power model for power calculation to obtain the target charging power.
[0073] Steps S101 to S104 of this embodiment illustrate the following steps: obtaining the current internal resistance value of the battery to obtain the target battery internal resistance; inputting the target battery internal resistance into a preset Joule's law model; calculating the power loss based on the target battery internal resistance to obtain the power loss due to internal resistance; obtaining the battery's set rated capacity; inputting the power loss due to internal resistance and the rated capacity into a preset coefficient calculation model to obtain the energy loss coefficient; obtaining the input current of the charger into the battery; inputting the energy loss coefficient and the input current into a pre-built charging capacity model to obtain the target charging capacity. By obtaining the target battery internal resistance at the current moment, calculating the power loss due to internal resistance based on the target battery internal resistance, calculating the energy loss coefficient based on the power loss due to internal resistance and the preset rated capacity, and calculating the target charging capacity based on the energy loss coefficient and the input current, the error of the voltage change curve can be reduced under different charge / discharge rates, thereby improving the accuracy of the estimated charging capacity.
[0074] Please refer to Figure 2 , Figure 2 A flowchart illustrating the charging capacity measurement method in an embodiment of the present invention is shown. In some embodiments, obtaining the current internal resistance of the battery and obtaining the target battery internal resistance may include, but is not limited to, steps S201 to S205.
[0075] Step S201: Obtain the initial battery voltage, obtain the current battery voltage, and obtain the target battery voltage;
[0076] Step S202: Obtain the initial current of the battery, obtain the initial battery current, obtain the current of the battery, and obtain the target battery current;
[0077] Step S203: Perform voltage difference processing based on the initial battery voltage and the target battery voltage to obtain the voltage difference;
[0078] Step S204: Perform current difference processing based on the initial battery current and the target battery current to obtain the current difference.
[0079] Step S205: Perform internal resistance calculation on the voltage difference and current difference to obtain the target battery internal resistance.
[0080] Steps S201 to S205 as shown in the embodiments of this application involve: obtaining the initial battery voltage when the battery starts charging; obtaining the battery voltage at the current time after charging; obtaining the target battery voltage; obtaining the initial battery current when charging starts; obtaining the initial battery current; obtaining the battery current at the current time after charging; obtaining the target battery current; calculating the difference between the initial battery voltage and the target battery voltage; calculating the difference between the initial battery current and the target battery current; and calculating the internal resistance based on a preset Ohm's law model to calculate the effective internal resistance of the battery and obtain the target battery internal resistance. By obtaining the voltage change value (voltage difference) and the current change value (current difference) after the battery is charged, and then calculating the effective internal resistance of the battery based on Ohm's law using the voltage difference and current difference, the target battery internal resistance can be obtained. This allows for accurate acquisition of the battery's effective internal resistance during the charging process.
[0081] It should be noted that the calculation process for the effective internal resistance of the battery includes: r = (u1 - u2) / (i1 - i2), where r is the effective internal resistance of the battery, i.e., the target battery internal resistance, u is the battery voltage, i is the battery current during charging or discharging, u1 is the voltage collected when the battery is not charging or discharging, u2 is the voltage collected when the battery is charging or discharging to the current moment, i1 is the current collected when the battery is not charging or discharging, and i2 is the current collected when the battery is charging or discharging to the current moment. The battery voltage is obtained through an external voltage sensor, and the battery current is obtained through an external current sensor.
[0082] Please refer to Figure 3 , Figure 3 A flowchart illustrating the charging capacity measurement method in an embodiment of the present invention is shown. In some embodiments, the loss capacity acquisition process based on the internal resistance of the target battery using the Joule's law model may include, but is not limited to, steps S301 to S303.
[0083] Step S301: Obtain the average current of the battery during the charging and discharging process to obtain the target average current;
[0084] Step S302: Obtain the charging and discharging time of the battery during the charging and discharging process to obtain the target charging and discharging time;
[0085] Step S303: Input the target battery internal resistance, target average current and target charging time into the Joule law model to obtain the power loss, and obtain the power loss due to internal resistance.
[0086] Steps S301 to S303, as illustrated in this embodiment, involve acquiring the battery's average current in real time during charging or discharging to obtain a target average current, and acquiring the battery's charging / discharging time up to the current moment to obtain a target charging / discharging time. The target battery internal resistance, target average current, and target charging time are input into a preset Joule's law model. Based on Joule's law, a technique is used to calculate the effective internal resistance loss of the battery using the target battery internal resistance, target average current, and target charging time. By acquiring the target average current and target charging / discharging time in real time during the battery's charging and discharging process, and calculating the battery's internal resistance loss based on Joule's law, the internal resistance loss can be obtained, enabling real-time detection of the battery's internal resistance loss at the current moment.
[0087] It should be noted that the main energy loss during battery charging and discharging comes from internal resistance and conforms to Joule's law. The energy loss due to internal resistance, Q, is calculated using the following formula (1):
[0088] Q = I 2 Rt (1)
[0089] Where Q is the internal resistance of the battery and the amount of electricity lost; I is the average current of the battery during the charging and discharging process, i.e., the target average current; R is the effective internal resistance of the battery, i.e., the target internal resistance; and t is the charging and discharging time of the battery during the charging and discharging process, i.e., the target charging and discharging time.
[0090] In some embodiments, the internal resistance loss power does not need to be calculated by formula (1), but is directly detected by the internal device.
[0091] Please refer to Figure 4 , Figure 4 A flowchart illustrating the charging capacity measurement method in an embodiment of the present invention is shown. In some embodiments, the energy loss coefficient is obtained by performing coefficient calculation based on the internal resistance loss capacity and the preset rated capacity, which may include, but is not limited to, steps S401 to S404.
[0092] Step S401: Obtain the current charging level of the battery and get the battery charging level;
[0093] Step S402: Calculate the charging capacity based on the internal resistance loss and battery charging capacity to obtain the actual full charge capacity.
[0094] Step S403: Calculate the percentage of the actual full charge and the rated capacity to obtain the percentage of the charge.
[0095] Step S404: Calculate the difference between the preset maximum percentage and the charging capacity percentage to obtain the energy loss coefficient.
[0096] In the embodiments of this application, steps S401 to S404 involve obtaining the battery's charge level after constant current full charging, calculating the difference between the battery charge level and the internal resistance loss charge, and calculating the actual charge level during full charging based on the internal resistance loss charge and the battery charge level. The actual full charge level is then proportionally calculated to the rated capacity to determine the percentage of the actual full charge level relative to the rated capacity. Finally, a preset maximum percentage is subtracted from the actual full charge level, and the difference between the maximum percentage and the actual full charge level is used to calculate the energy loss coefficient. By obtaining the current battery charge level, calculating the actual charge level during full charging based on the internal resistance loss charge and the battery charge level, calculating the charge level percentage based on the actual full charge level and the rated capacity, and calculating the energy loss coefficient based on the maximum percentage and the actual full charge level, the energy loss coefficient of the battery can be calculated using the lost charge level and the battery's rated capacity.
[0097] In some embodiments, the rated capacity of the battery is set to A. Under constant current full charge with a current of A, the actual charging capacity is Q1, and the energy loss coefficient is Z. The energy loss coefficient can be obtained using the following formula (2):
[0098] Z = 1 - Q1 / A(2)
[0099] Among them, the actual charging capacity Q1 is the difference between the battery charging capacity and the internal resistance loss capacity.
[0100] Please refer to Figure 5 , Figure 5 A flowchart illustrating the charging capacity measurement method in an embodiment of the present invention is shown. In some embodiments, before inputting the energy loss coefficient and input current into a pre-built charging capacity model for capacity calculation to obtain the target charging capacity, the charging capacity measurement method further includes constructing a charging capacity model, which may include, but is not limited to, steps S501 to S504.
[0101] Step S501: Construct the actual charging capacity layer based on the energy loss coefficient and input current;
[0102] Step S502: Construct a relative charging capacity ratio layer based on the actual charging capacity and the internal resistance loss capacity; wherein, the actual charging capacity is obtained from the actual charging capacity layer.
[0103] Step S503: Construct a relative charging capacity layer based on the input current, current charging time, and relative charging capacity ratio; wherein, the current charging time is the time it takes for the battery to charge to the current moment, and the relative charging capacity ratio is obtained from the relative charging capacity ratio layer;
[0104] Step S504: Construct a model based on the actual charging capacity layer, the relative charging capacity ratio layer, and the relative charging capacity layer to obtain the charging capacity model.
[0105] In the embodiments of this application, steps S501 to S504 involve inputting the energy loss coefficient and the input current during battery charging into the initial framework of the charging capacity model. A layer is constructed based on the energy loss coefficient and the input current to calculate the actual charging capacity of the battery at the current moment, resulting in the actual charging capacity layer. The actual charging capacity is obtained through this layer. A layer is then constructed based on the actual charging capacity and the internal resistance loss capacity to calculate the relative charging capacity ratio, resulting in the relative charging capacity ratio layer. The relative charging capacity ratio is obtained through this layer. The time taken for the battery to charge to the current moment is obtained, resulting in the current charging time. A layer is then constructed based on the input current, the current charging time, and the relative charging capacity ratio to calculate the relative charging capacity, resulting in the relative charging capacity layer. Finally, the constructed actual charging capacity layer, relative charging capacity ratio layer, and relative charging capacity layer are placed in the initial framework to obtain the charging capacity model.
[0106] Please refer to Figure 6 , Figure 6 A flowchart illustrating the charging capacity measurement method in an embodiment of the present invention is shown. In some embodiments, the energy loss coefficient and input current are input to a pre-built charging capacity model for capacity calculation to obtain the target charging capacity, which may include, but is not limited to, steps S601 to S603.
[0107] Step S601: Input the energy loss coefficient and input current to the actual charging capacity layer to calculate the actual charging capacity and obtain the actual charging capacity.
[0108] Step S602: Input the actual charging power and internal resistance loss power into the relative charging power ratio layer for ratio calculation to obtain the relative charging power ratio.
[0109] Step S603: Input the relative charging capacity ratio, input current and current charging time to the relative charging capacity layer for relative charging capacity calculation to obtain the target charging capacity.
[0110] In steps S601 to S603 of this embodiment, the energy loss coefficient and input current are input to the actual charging capacity layer, which calculates the actual charging capacity based on the energy loss coefficient and input current to obtain the actual charging capacity. The actual charging capacity and internal resistance loss are input to the relative charging capacity ratio layer, which calculates the ratio of the battery's relative charging capacity based on the actual charging capacity and internal resistance loss. The relative charging capacity ratio, input current, and current charging time are input to the relative charging capacity layer, which calculates the relative charging capacity based on the relative charging capacity ratio, input current, and current charging time to obtain the target charging capacity.
[0111] It should be noted that because the rated capacity of a battery is fixed, the product of the input current and time is a constant when the battery is fully charged. Therefore, the energy loss of the battery is inversely proportional to the magnitude of the input current. The input current is a parameter of the charging capacity model, typically collected by a current sensor during charging or discharging, and the obtained current data is a set of time-series data.
[0112] For example, assuming the magnitude of the input current at the current moment is x and the energy loss coefficient at the current moment is k, the following formulas (3) and (4) can be derived:
[0113] k÷x=Z÷A(3)
[0114] k = x * Z / A (4)
[0115] Where Z is the energy loss coefficient obtained after the battery is fully charged, and A is the average input current obtained after the battery is fully charged.
[0116] In step S601 of some embodiments, the actual charging capacity F is obtained by the following formula (5):
[0117] F = A*(1-k) = A*(1-x*Z / A)(5)
[0118] In step S602 of some embodiments, the relative charge ratio is obtained by the following formula (6):
[0119] F / Q=A*(1-x*Z / A) / (AA*Z)=(1-x*Z / A) / (1-Z)(6)
[0120] Please refer to Figure 7 , Figure 7A flowchart illustrating the charging capacity measurement method in an embodiment of the present invention is shown. In some embodiments, the relative charging capacity, input current, and current charging time are input to the relative charging capacity layer for relative charging capacity calculation processing to obtain the target charging capacity, which may include, but is not limited to, steps S701 to S702.
[0121] Step S701: Calculate the initial charging capacity by combining the input current and the current charging time.
[0122] Step S702: Perform relative charging calculation on the initial charging capacity and the relative charging capacity ratio to obtain the target charging capacity.
[0123] In the embodiments of this application, steps S701 to S702 involve multiplying the input current and the current charging time to calculate the battery's charge capacity based on the input current and the current charging time, obtaining the initial charge capacity, and multiplying the initial charge capacity and the relative charge capacity ratio to calculate the battery's relative charge capacity based on the initial charge capacity and the relative charge capacity ratio, thus obtaining the target charge capacity.
[0124] It should be noted that when the input current changes continuously, the relative charge of each current range is calculated, and finally the relative charge of the battery, i.e. the target charge, is obtained by using the following formula (7):
[0125] T=x*t / (F / Q)=x*t*(1-Z) / (1-x*Z / A)(7)
[0126] In addition, this application also discloses a charging capacity measuring device, please refer to... Figure 8 , Figure 8 This invention discloses a module block diagram of a charging capacity measuring device according to an embodiment of the present invention. The charging capacity measuring device, which can implement the above-described charging capacity measuring method, includes: a battery internal resistance acquisition module 801, a power loss acquisition module 802, a power loss coefficient calculation module 803, and a charging capacity calculation module 804. The battery internal resistance acquisition module 801, power loss acquisition module 802, power loss coefficient calculation module 803, and charging capacity calculation module 804 are all communicatively connected.
[0127] The battery internal resistance acquisition module 801 acquires the current internal resistance of the battery to obtain the target battery internal resistance. The power loss acquisition module 802, based on Joule's law model, processes the power loss according to the target battery internal resistance to obtain the battery's internal resistance power loss. The power loss coefficient calculation module 803 calculates the energy loss coefficient based on the internal resistance power loss and a preset rated capacity. The charging power calculation module 804 inputs the energy loss coefficient and the input current into a pre-built charging power model for power calculation to obtain the target charging power.
[0128] The battery internal resistance acquisition module 801 acquires the current internal resistance value of the battery to obtain the target battery internal resistance. The power loss acquisition module 802 inputs the target battery internal resistance into a preset Joule's law model and calculates the power loss based on the target battery internal resistance to obtain the power loss due to internal resistance. The power loss coefficient calculation module 803 acquires the battery's set rated capacity and inputs the power loss due to internal resistance and the rated capacity into a preset coefficient calculation model to obtain the energy loss coefficient. The charging power calculation module 804 acquires the input current of the charger into the battery and inputs the energy loss coefficient and the input current into a pre-built charging power model to obtain the target charging power based on the energy loss coefficient and the input current. By obtaining the target battery internal resistance at the current moment, calculating the internal resistance loss based on the target battery internal resistance, calculating the energy loss coefficient based on the internal resistance loss and the preset rated capacity, and calculating the target charging capacity based on the energy loss coefficient and the input current, the error of the voltage change curve can be reduced under different charge and discharge rates, thereby improving the accuracy of the estimated charging capacity.
[0129] The operation process of the charging power measurement device in this embodiment is specifically described above. Figure 1 , Figure 2 , Figure 3 , Figure 4 , Figure 5 , Figure 6 and Figure 7 The steps S101 to S104, S201 to S205, S301 to S303, S401 to S404, S501 to S504, S601 to S603, and S701 and S702 of the charging capacity measurement method are not described in detail here.
[0130] Another embodiment of the present invention discloses a charging capacity measuring device, comprising: at least one processor, and a memory communicatively connected to the at least one processor; wherein the memory stores instructions executable by the at least one processor, the instructions being executed by the at least one processor to enable the at least one processor to perform, for example... Figure 1 Control method steps S101 to S104 Figure 2 Control method steps S201 to S205 Figure 3 Control method steps S301 to S303 Figure 4 Control method steps S401 to S404 Figure 5 Control method steps S501 to S504 Figure 6 The control method steps S601 to S603 and Figure 7 The charging capacity measurement method in steps S701 and S702 of the control method.
[0131] Another embodiment of the present invention discloses a computer-readable storage medium, the storage medium comprising: storing computer-executable instructions for causing a computer to perform... Figure 1 Control method steps S101 to S104 Figure 2 Control method steps S201 to S205 Figure 3 Control method steps S301 to S303 Figure 4 Control method steps S401 to S404 Figure 5 Control method steps S501 to S504 Figure 6 The control method steps S601 to S603 and Figure 7 The charging capacity measurement method in steps S701 and S702 of the control method.
[0132] The device embodiments described above are merely illustrative. The units described as separate components may or may not be physically separate; that is, they may be located in one place or distributed across multiple network units. Some or all of the modules can be selected to achieve the purpose of this embodiment according to actual needs.
[0133] It will be understood by those skilled in the art that all or some of the steps and systems in the methods disclosed above can be implemented as software, firmware, hardware, and suitable combinations thereof. Some or all of the physical components can be implemented as software executed by a processor, such as a central processing unit, digital signal processor, or microprocessor, or as hardware, or as an integrated circuit, such as an application-specific integrated circuit. Such software can be distributed on a computer-readable medium, which can include computer storage media (or non-transitory media) and communication media (or transient media). As is known to those skilled in the art, the term computer storage media includes volatile and non-volatile, removable and non-removable media implemented in any method or technology for storing information (such as computer-readable instructions, data structures, program modules, or other data). Computer storage media includes, but is not limited to, RAM, ROM, EEPROM, flash memory or other memory technologies, CD-ROM, digital versatile disc (DVD) or other optical disc storage, magnetic cartridges, magnetic tape, disk storage or other magnetic storage devices, or any other medium that can be used to store desired information and is accessible to a computer. Furthermore, as is known to those skilled in the art, communication media typically contain computer-readable instructions, data structures, program modules, or other data in modulated data signals such as carrier waves or other transmission mechanisms, and may include any information delivery medium.
[0134] The embodiments of the present invention have been described in detail above with reference to the accompanying drawings. However, the present invention is not limited to the above embodiments, and various changes can be made within the scope of knowledge possessed by those skilled in the art without departing from the spirit of the present invention. Furthermore, the embodiments of the present invention and the features thereof can be combined with each other unless otherwise specified.
Claims
1. A method for measuring charging capacity, characterized in that, include: Obtain the current internal resistance of the battery to get the target battery internal resistance; Based on the Joule's law model, the power loss is obtained by processing the internal resistance of the target battery to obtain the power loss due to the internal resistance of the battery. The energy loss coefficient is obtained by calculating the energy loss based on the internal resistance loss and the preset rated capacity. The energy loss coefficient and input current are input into a pre-built charging power model for power calculation to obtain the target charging power.
2. The charging capacity measurement method according to claim 1, characterized in that, The process of obtaining the current internal resistance of the battery and then obtaining the target internal resistance includes: Obtain the initial voltage of the battery to obtain the initial battery voltage; obtain the current voltage of the battery to obtain the target battery voltage. Obtain the initial current of the battery to obtain the initial battery current, obtain the current of the battery to obtain the target battery current; The voltage difference is obtained by performing voltage difference processing based on the initial battery voltage and the target battery voltage; The current difference is obtained by performing current difference processing based on the initial battery current and the target battery current; The internal resistance of the target battery is obtained by performing internal resistance calculation on the voltage difference and the current difference.
3. The charging capacity measurement method according to claim 1, characterized in that, The Joule's law-based model performs power loss acquisition processing based on the internal resistance of the target battery to obtain the power loss due to the battery's internal resistance, including: The average current of the battery during the charging and discharging process is obtained to obtain the target average current; The charging and discharging time of the battery during the charging and discharging process is obtained to obtain the target charging and discharging time; The target battery internal resistance, the target average current, and the target charge / discharge time are input into the Joule's law model to obtain the power loss, thus obtaining the power loss due to the internal resistance.
4. The charging capacity measurement method according to claim 1, characterized in that, The step of calculating the energy loss coefficient based on the internal resistance loss and the preset rated capacity includes: Obtain the current charging level of the battery to get the battery charging level; The actual full charge capacity is obtained by calculating the charging capacity based on the internal resistance loss and the battery charging capacity. The actual full charge capacity and the rated capacity are calculated as a percentage to obtain the charging capacity percentage. The energy loss coefficient is obtained by calculating the difference between the preset maximum percentage and the charging capacity percentage.
5. The charging capacity measurement method according to claim 1, characterized in that, Before inputting the energy loss coefficient and input current into a pre-built charging capacity model for power calculation to obtain the target charging capacity, the charging capacity measurement method further includes: Constructing the charging power model includes: Construct an actual charging capacity layer based on the energy loss coefficient and the input current; A relative charging capacity ratio layer is constructed based on the actual charging capacity and the internal resistance loss capacity; wherein, the actual charging capacity is obtained based on the actual charging capacity layer; A relative charging capacity layer is constructed based on the input current, the current charging time, and the relative charging capacity ratio; wherein, the current charging time is the time it takes for the battery to charge to the current moment, and the relative charging capacity ratio is obtained based on the relative charging capacity ratio layer; The charging capacity model is obtained by constructing a model based on the actual charging capacity layer, the relative charging capacity ratio layer, and the relative charging capacity layer.
6. The charging capacity measurement method according to claim 5, characterized in that, The step of inputting the energy loss coefficient and input current into a pre-built charging capacity model for power calculation to obtain the target charging capacity includes: The energy loss coefficient and the input current are input to the actual charging capacity layer to calculate the actual charging capacity, and the actual charging capacity is obtained. The actual charging power and internal resistance loss power are input into the relative charging power ratio layer for ratio calculation to obtain the relative charging power ratio. The relative charging capacity ratio, the input current, and the current charging time are input to the relative charging capacity layer for relative charging capacity calculation to obtain the target charging capacity.
7. The charging capacity measurement method according to claim 6, characterized in that, The step of inputting the relative charging capacity, the input current, and the current charging time into the relative charging capacity layer for relative charging capacity calculation to obtain the target charging capacity includes: The initial charging capacity is obtained by calculating the charging capacity using the input current and the current charging time. The target charging capacity is obtained by performing relative charging capacity calculation on the initial charging capacity and the relative charging capacity ratio.
8. A charging capacity measuring device, characterized in that, include: The battery internal resistance acquisition module is used to acquire the current internal resistance of the battery and obtain the target battery internal resistance. The power loss acquisition module is used to acquire power loss based on the internal resistance of the target battery according to the Joule law model, and obtain the power loss due to the internal resistance of the battery. The loss coefficient calculation module is used to perform coefficient calculation based on the internal resistance loss power and the preset rated capacity to obtain the energy loss coefficient. The charging capacity calculation module is used to input the energy loss coefficient and input current into a pre-built charging capacity model for power calculation processing to obtain the target charging capacity.
9. A charging capacity measuring device, characterized in that, include: At least one processor, and, A memory communicatively connected to the at least one processor; wherein, The memory stores instructions that can be executed by the at least one processor to enable the at least one processor to perform the charging capacity measurement method as described in any one of claims 1 to 7.
10. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores computer-executable instructions for causing a computer to perform the charging capacity measurement method as described in any one of claims 1 to 7.