Battery capacity updating method and device, electronic device and storage medium
By detecting the state of charge and actual capacity of the lithium-ion battery, the open circuit voltage method and the Coulomb integration method are used to update the battery capacity, which solves the problem of inaccurate power display caused by changes in battery capacity and improves the reliability of battery use.
Patent Information
- Application Number
- CN201910866407.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2019-09-12
- Publication Date
- 2024-09-17
- Estimated Expiration
- 2040-03-19
AI Technical Summary
During the use of lithium-ion batteries, changes in battery capacity lead to inaccurate power display, affecting user experience, and existing technology cannot effectively solve the problem of battery capacity update.
By detecting the battery's state of charge and actual capacity, the open circuit voltage method and the Coulomb integration method are used to determine the state of charge, and the actual battery capacity is updated to ensure the timeliness and accuracy of the battery capacity.
It realizes timely updating of battery capacity, avoids the problem of inaccurate power display, and improves the reliability of battery use and user experience.
Smart Images

Figure CN112485677B
Abstract
Description
Technical Field
[0001] The present application relates to the field of battery technology, and in particular to a battery capacity updating method and device, an electronic device, and a storage medium. Background Art
[0002] At present, lithium-ion batteries have the advantages of high energy density, high power density, many cycles and long storage time. They have broad application prospects in large and medium-sized electric equipment such as electric vehicles and energy storage facilities. Therefore, lithium-ion batteries have become the key to solving global problems such as energy crisis and environmental pollution.
[0003] During the use of lithium-ion batteries, the battery capacity of lithium-ion batteries will change over time. If the battery capacity of lithium-ion batteries is not updated in time, the battery power display will be inaccurate or even jump, thus affecting the user's use. Summary of the invention
[0004] In view of this, it is necessary to provide a battery capacity updating method and device, an electronic device and a storage medium, which can update the battery capacity in time.
[0005] An embodiment of the present application provides a battery capacity updating method, the battery capacity updating method comprising:
[0006] detecting a state of charge of a first battery and an actual capacity of the first battery;
[0007] determining a first state of charge according to the first battery state of charge;
[0008] determining a second state of charge according to the state of charge of the first battery and an actual capacity of the first battery;
[0009] The actual capacity of the second battery is updated according to the first state of charge and the second state of charge.
[0010] According to some embodiments of the present application, the battery capacity updating method further includes:
[0011] A second battery state of charge is determined according to the first state of charge and the second state of charge.
[0012] According to some embodiments of the present application, when the second state of charge is determined for the first time, the first battery state of charge is an initial state of charge, and the actual capacity of the first battery is a preset capacity.
[0013] According to some embodiments of the present application, the battery capacity updating method further includes:
[0014] Determine the open circuit voltage;
[0015] The initial state of charge is determined according to the open circuit voltage.
[0016] According to some embodiments of the present application, determining the open circuit voltage includes:
[0017] The open circuit voltage is determined according to an open circuit voltage method as the current battery voltage.
[0018] According to some embodiments of the present application, determining the initial state of charge according to the open circuit voltage includes:
[0019] The initial state of charge is determined by querying a first relationship model table according to the open circuit voltage.
[0020] According to some embodiments of the present application, determining the first state of charge according to the first battery state of charge includes:
[0021] The first state of charge is determined according to the first battery state of charge by an open circuit voltage method.
[0022] According to some embodiments of the present application, determining the first state of charge according to the first battery state of charge by using an open circuit voltage method includes:
[0023] determining a battery impedance based on a first battery state of charge;
[0024] The first state of charge is determined according to the battery impedance by the open circuit voltage method.
[0025] According to some embodiments of the present application, determining the battery impedance according to the first battery state of charge includes:
[0026] The battery impedance is determined by querying a second relationship model table according to the first battery state of charge and the current battery temperature.
[0027] According to some embodiments of the present application, determining the first state of charge according to the battery impedance by using the open circuit voltage method includes:
[0028] The first state of charge is determined according to the battery impedance, the current battery voltage and the current battery current by the open circuit voltage method.
[0029] According to some embodiments of the present application, determining the second state of charge according to the first battery state of charge and the actual capacity of the first battery includes:
[0030] The second state of charge is determined according to the state of charge of the first battery and the actual capacity of the first battery by using the Coulomb integration method.
[0031] According to some embodiments of the present application, determining the second state of charge according to the state of charge of the first battery and the actual capacity of the first battery by using the Coulomb integration method includes:
[0032] The second state of charge is determined by the Coulomb integration method according to the state of charge of the first battery, the current battery current, the difference between the current time and the time when the battery current was last obtained, and the actual capacity of the first battery.
[0033] According to some embodiments of the present application, the Coulomb integration method is:
[0034] SOC2=SOC0+I bat ×Δt / Q abs ;
[0035] Among them, SOC2 is the second state of charge, SOC0 is the first battery state of charge, I bat is the current battery current, Δt is the difference between the current time and the last time the battery current was obtained, Q abs is the actual capacity of the first battery.
[0036] According to some embodiments of the present application, before updating the actual capacity of the second battery according to the first state of charge and the second state of charge, the battery capacity updating method further includes:
[0037] Make sure the battery meets the preset conditions.
[0038] According to some embodiments of the present application, the preset conditions include, but are not limited to:
[0039] The current battery temperature is within the preset range; and / or
[0040] The product of the difference between the current time and the last time the battery current was obtained and the current battery current obtained within the dead time is less than or equal to a preset threshold; and / or
[0041] The open circuit voltage is in the stable region of the first relationship model table; and / or
[0042] The difference between the second battery state of charge and the initial state of charge or the battery state of charge when the second battery actual capacity was last updated is greater than a preset value.
[0043] According to some embodiments of the present application, updating the actual capacity of the second battery according to the first state of charge and the second state of charge includes:
[0044] When the first state of charge is greater than the second state of charge, according to the formula P re1 _Q abs =(1+(SOC1-SOC2))×Q abs -Q com Update the actual capacity of the second battery; where P re1 _Q absis the actual capacity of the third battery, SOC1 is the first state of charge, SOC2 is the second state of charge, Q abs is the actual capacity of the first battery, Q com is the compensation value.
[0045] According to some embodiments of the present application, the battery capacity updating method further includes:
[0046] When the first state of charge is less than the second state of charge, according to the formula P re1 _Q abs =(1+(SOC2-SOC1))×Q abs +Q com Update the actual capacity of the second battery; where P re1 _Q abs is the actual capacity of the third battery, SOC2 is the second state of charge, SOC1 is the first state of charge, Q abs is the actual capacity of the first battery, Q com is the compensation value.
[0047] According to some embodiments of the present application, when the first state of charge and the second state of charge are within a preset range, the compensation value is zero.
[0048] According to some embodiments of the present application, the preset interval is [0.0, 1.0].
[0049] According to some embodiments of the present application, the battery capacity updating method further includes:
[0050] The second battery actual capacity is updated to the third battery actual capacity.
[0051] According to some embodiments of the present application, the battery capacity updating method further includes:
[0052] When the difference between the actual capacity of the third battery and the actual capacity of the first battery is greater than a first threshold, according to formula P re2 _Q abs =Q abs +Q t2 Update the actual capacity of the second battery; where P re2 _Q abs is the actual capacity of the second battery, Q abs is the actual capacity of the first battery, Q t2 is the first threshold.
[0053] According to some embodiments of the present application, the battery capacity updating method further includes:
[0054] When the difference between the actual capacity of the third battery and the actual capacity of the first battery is less than the negative value of the first threshold, according to the formula P re2 _Q abs =Q abs -Q t2 Update the actual capacity of the second battery; where P re2 _Q abs is the actual capacity of the second battery, Q abs is the actual capacity of the first battery, Q t2 is the first threshold.
[0055] According to some embodiments of the present application, the battery capacity updating method further includes:
[0056] When the difference between the third battery actual capacity and the first battery actual capacity is greater than the negative value of the first threshold value and less than the first threshold value, the second battery actual capacity is updated to the third battery actual capacity.
[0057] According to some embodiments of the present application, the first threshold is f1*Q design , where f1∈[0.03, 0.1], Q design The preset capacity.
[0058] According to some embodiments of the present application, the battery capacity updating method further includes:
[0059] When the actual capacity of the third battery is greater than the second threshold, according to the formula P re2 _Q abs =Q t3 Update the actual capacity of the second battery; wherein, P re2 _Q abs is the actual capacity of the second battery, Q t3 is the second threshold.
[0060] According to some embodiments of the present application, the second threshold is f2*Q design , where f2∈[1.1,1.5], Q design The preset capacity.
[0061] According to some embodiments of the present application, the battery capacity updating method further includes:
[0062] When the battery is in a charging state or a discharging state, the first state of charge is not updated;
[0063] When the battery is in a stationary state, the first state of charge is updated according to a first battery state of charge.
[0064] According to some embodiments of the present application, the battery capacity updating method further includes:
[0065] The battery state is detected, where the battery state is one of a charging state, a discharging state and a static state.
[0066] According to some embodiments of the present application, the battery capacity updating method further includes:
[0067] When the battery is in a charging state or a discharging state, updating the second state of charge according to the first battery state of charge and the actual capacity of the first battery;
[0068] When the battery is in a stationary state, the second state of charge is not updated.
[0069] An embodiment of the present application provides a battery capacity updating device, the battery capacity updating device comprising:
[0070] A detection module, used for detecting the state of charge of the first battery and the actual capacity of the first battery;
[0071] A first state of charge determination module, configured to determine a first state of charge according to a first battery state of charge;
[0072] A second state of charge determination module, used to determine a second state of charge according to the state of charge of the first battery and the actual capacity of the first battery;
[0073] An updating module is used to update the actual capacity of the second battery according to the first state of charge and the second state of charge.
[0074] According to some embodiments of the present application, if the second state of charge is determined for the first time, the first battery state of charge is an initial state of charge, and the actual capacity of the first battery is a preset capacity.
[0075] According to some embodiments of the present application, the second state of charge determination module is further configured to:
[0076] Determine the open circuit voltage;
[0077] The initial state of charge is determined according to the open circuit voltage.
[0078] According to some embodiments of the present application, determining the open circuit voltage includes:
[0079] The open circuit voltage is determined according to an open circuit voltage method as the current battery voltage.
[0080] According to some embodiments of the present application, determining the initial state of charge according to the open circuit voltage includes:
[0081] The initial state of charge is determined by querying a first relationship model table according to the open circuit voltage.
[0082] According to some embodiments of the present application, the first state of charge determination module is used to determine the first state of charge according to the first battery state of charge by using an open circuit voltage method.
[0083] According to some embodiments of the present application, the first state of charge determination module is used to:
[0084] determining a battery impedance based on a first battery state of charge;
[0085] The first state of charge is determined according to the battery impedance by the open circuit voltage method.
[0086] According to some embodiments of the present application, determining the battery impedance according to the first battery state of charge includes:
[0087] The battery impedance is determined by querying a second relationship model table according to the first battery state of charge and the current battery temperature.
[0088] According to some embodiments of the present application, the second state of charge determination module is used to determine the second state of charge according to the first battery state of charge and the actual capacity of the first battery by using a Coulomb integration method.
[0089] An embodiment of the present application provides an electronic device, the electronic device comprising:
[0090] Battery;
[0091] Processor; and
[0092] A memory, wherein a plurality of program modules are stored in the memory, and the plurality of program modules are loaded by the processor and execute any one of the battery capacity updating methods described above to update the battery capacity.
[0093] A storage medium stores at least one computer instruction, wherein the instruction is loaded by a processor to execute any one of the battery capacity updating methods described above.
[0094] The battery capacity updating method and device, electronic device, and storage medium provided in the embodiments of the present application detect the state of charge of the first battery and the actual capacity of the first battery; determine the first state of charge according to the state of charge of the first battery; determine the second state of charge according to the state of charge of the first battery and the actual capacity of the first battery; and update the actual capacity of the second battery according to the first state of charge and the second state of charge. In this way, the battery capacity updating method and device, electronic device, and storage medium provided in the embodiments of the present application can update the battery capacity in a timely manner. BRIEF DESCRIPTION OF THE DRAWINGS
[0095] Figure 1 FIG. 1 is a schematic diagram of the structure of an electronic device according to an embodiment of the present application.
[0096] Figure 2 Flow chart of a battery capacity updating method according to an embodiment of the present application.
[0097] Figure 3 A graph showing a state of charge and an open circuit voltage according to an embodiment of the present application.
[0098] Figure 4 The present invention is a flow chart of iteratively calculating the state of charge of the battery by using the first state of charge calculated by the open circuit voltage method and the second state of charge calculated by the coulomb integration method according to an embodiment of the present application.
[0099] Figure 5 This is a flow chart of determining that a battery meets a preset condition according to an embodiment of the present application.
[0100] Figure 6 It is a curve diagram of the current battery voltage collected and the collection time according to an embodiment of the present application.
[0101] Figure 7 This is a flow chart of updating the actual capacity of the second battery according to an embodiment of the present application.
[0102] Figure 8 It is a module diagram of a battery capacity updating device according to an embodiment of the present application.
[0103] Main component symbols
[0104] Electronic device 100
[0105] Battery capacity updating device 10
[0106] Memory 11
[0107] Processor 12
[0108] Battery 13
[0109] Analog to digital converter 14
[0110] Sensor 15
[0111] Detection module 801
[0112] First state of charge determination module 802
[0113] Second state of charge determination module 803
[0114] Update module 804
[0115] The following specific implementation manner will further illustrate the present invention in conjunction with the above-mentioned drawings. DETAILED DESCRIPTION
[0116] The technical solutions in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, rather than all of the embodiments.
[0117] Based on the embodiments in this application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.
[0118] See also Figure 1 The battery capacity updating device 10 runs in an electronic device 100. The electronic device 100 includes, but is not limited to, a memory 11, at least one processor 12, a battery 13, an analog-to-digital converter 14, and a sensor 15, and the above components can be connected via a bus or directly.
[0119] It should be noted that Figure 1 The electronic device 100 is merely an example. In other embodiments, the electronic device 100 may include more or fewer components, or have a different component configuration. The electronic device 100 may be an electric motorcycle, an electric bicycle, an electric car, a mobile phone, a tablet computer, a digital assistant, a personal computer, or any other suitable rechargeable device.
[0120] In one embodiment, the battery 13 is a rechargeable battery for providing electrical energy to the electronic device 100. For example, the battery 13 may be a lead-acid battery, a nickel-cadmium battery, a nickel-metal hydride battery, a lithium-ion battery, a lithium polymer battery, a lithium iron phosphate battery, etc. The battery 13 is logically connected to the processor 12 through a battery management system (BMS), so that functions such as charging and discharging are realized through the battery management system. The battery management system can be connected to the energy storage inverter (PCS) via CAN or RS485. The battery 13 includes a battery cell (not shown).
[0121] In this embodiment, the analog-to-digital converter 14 is used to measure the voltage and current of the battery cell of the battery 13 during charging, discharging, or standing. In this embodiment, the analog-to-digital converter 14 includes a digital filter. The digital filter is used to filter the voltage and current of the battery cell of the battery 13 during charging, discharging, or standing. In one embodiment, the digital filter can be a first-order low-pass filter. The analog-to-digital converter 14 needs to process the collected data, such as filtering. The analog-to-digital converter 14 cannot collect data during the processing interval of the collected data, resulting in a dead time of the analog-to-digital converter 14. The sensor 15 is used to measure the temperature of the battery cell of the battery 13 during charging, discharging, or standing. In one embodiment, the sensor 15 can be a negative temperature system (Negative Temperature Coefficient, NTC) thermistor. It can be understood that the electronic device 100 can also include other devices, such as a pressure sensor, a light sensor, a gyroscope, a hygrometer, an infrared sensor, etc.
[0122] See also Figure 2 , Figure 2 This is a flow chart of a battery capacity update method according to an embodiment of the present application. The first battery state of charge of the present application is the previous battery state of charge, the first battery actual capacity is the previous battery actual capacity, the second battery state of charge is the current battery state of charge, and the second battery actual capacity is the current battery actual capacity. The present application detects the first battery state of charge and the first battery actual capacity, determines the first battery state of charge according to the first battery state of charge, determines the second battery state of charge according to the first battery state of charge and the first battery actual capacity, and updates the second battery actual capacity according to the first battery state of charge and the second battery actual capacity. Thus, the present application updates the current battery actual capacity through the previous battery state of charge and the previous battery actual capacity, and updates the next battery actual capacity using the current battery state of charge and the current battery actual capacity as input.
[0123] The battery capacity updating method may include the following steps:
[0124] Step S21 , detecting a first battery state of charge and a first battery actual capacity.
[0125] In this embodiment, the detecting of the first battery state of charge and the first battery actual capacity may be calculating an initial state of charge and obtaining a preset capacity. In this embodiment, the calculating of the initial state of charge includes:
[0126] a1: Determine the open circuit voltage.
[0127] Determining the open circuit voltage includes determining the open circuit voltage as the current battery voltage according to an open circuit voltage method. In this embodiment, before detecting the state of charge of the first battery and the actual capacity of the first battery, the method further includes: obtaining the current battery voltage, the current battery current and the current battery temperature. Obtaining the current battery voltage, the current battery current and the current battery temperature may be obtaining the current battery voltage and the current battery current through the analog-to-digital converter, and obtaining the current battery temperature through the sensor.
[0128] In this embodiment, the current battery voltage, current battery current and current battery temperature are obtained by obtaining the current battery voltage V at a preset time interval or randomly. bat 、The current battery current I bat and the current battery temperature T bat . Preferably, the preset time interval can be ten seconds or other values, depending on specific needs. The randomness can be obtained according to a first preset time interval within a period of time, and obtained according to a second preset time interval at other times. In this way, the method can automatically adjust the time intervals for obtaining the current battery voltage, the current battery current and the current battery temperature as needed. The method of determining the open circuit voltage as the current battery voltage according to the open circuit voltage method is specifically: when the power is just turned on, the current flowing through the battery is small, and the battery voltage at power-on and the current battery voltage can be approximately equal. At this time, when the open circuit voltage method V alid =VI*R(SOC,T) When calculating the open circuit voltage, the current at power-on can be ignored, that is, the current at power-on is determined to be zero, and the open circuit voltage is determined to be the current battery voltage. alid is the open circuit voltage, V is the battery voltage at power-on, I is the battery current at power-on, R(SOC,T) is the battery impedance at power-on, SOC is the battery state of charge at power-on, and T is the battery temperature at power-on.
[0129] a2: Determine the initial state of charge according to the open circuit voltage.
[0130] Determining the initial state of charge according to the open circuit voltage includes querying a first relationship model table according to the open circuit voltage to determine the initial state of charge. In this embodiment, the first relationship model table is a pre-stored correspondence between the open circuit voltage and the battery state of charge. Determining the initial state of charge according to the open circuit voltage by querying the first relationship model table includes:
[0131] Querying a first relationship model table for a first open circuit voltage that matches the open circuit voltage;
[0132] The battery state of charge corresponding to the determined first open circuit voltage in the first relationship model table is determined to be an initial state of charge.
[0133] In this embodiment, the first relationship model table may be a curve graph, such as Figure 3 In other embodiments, the first relationship model table may be a relationship table, etc.
[0134] In this embodiment, the preset capacity is pre-stored in the battery.
[0135] In this embodiment, the detecting of the first battery state of charge and the first battery actual capacity may also be obtaining a calculated first battery state of charge and a calculated first battery actual capacity.
[0136] Step S22, determining a first state of charge according to the first battery state of charge.
[0137] In this embodiment, the method further includes: detecting a battery state, wherein the battery state includes one of a charging state, a discharging state, and a static state. In this embodiment, when it is detected that the current battery voltage has an increase greater than a preset change value, it is determined that the battery is in a charging state. Preferably, the preset change value may be four microvolts per second, or may be other values, depending on specific needs. When it is detected that the current battery voltage has a decrease greater than the preset change value, it is determined that the battery is in a discharging state. When it is detected that the current battery voltage has a change less than the preset change value, it is determined that the battery is in a static state. In this embodiment, by detecting whether the current battery voltage is collected for the first time or whether the battery voltage obtained last time increases or decreases by more than the preset change value. When it is detected that the current battery voltage is collected for the first time or the increase is greater than the preset change value compared to the battery voltage obtained last time, it is determined that the current battery voltage has an increase greater than the preset change value. When it is detected that the current battery voltage has a decrease greater than the preset change value compared to the previous battery voltage, it is determined that the current battery voltage has a decrease greater than the preset change value. When it is detected that the current battery voltage has a change smaller than the preset change value compared to the previous battery voltage change, it is determined that the current battery voltage change value is smaller than the preset change value.
[0138] In this embodiment, the method further includes: when the battery is in a charging state or a discharging state, not updating the first state of charge; when the battery is in a static state, updating the first state of charge according to the first battery state of charge. That is, in this embodiment, the first state of charge is updated only when the battery is in a static state. In this embodiment, the method may also include: when the battery is in a charging state or a discharging state, not calculating the first state of charge.
[0139] In this embodiment, determining the first state of charge according to the first battery state of charge includes determining the first state of charge according to the first battery state of charge by an open circuit voltage method. In this embodiment, determining the first state of charge according to the first battery state of charge by an open circuit voltage method includes:
[0140] b1: Determine the battery impedance according to the first battery state of charge.
[0141] In this embodiment, determining the battery impedance according to the first battery state of charge includes: querying a second relationship model table according to the first battery state of charge and the current battery temperature to determine the battery impedance. In this embodiment, the second relationship model table is a pre-stored relationship table of battery impedance, battery state of charge, and battery temperature. Querying the second relationship model table according to the first battery state of charge and the current battery temperature to determine the battery impedance includes:
[0142] Determine a battery state of charge and a battery temperature in a second relationship model table that match the first battery state of charge and the current battery temperature;
[0143] A battery impedance corresponding to the determined battery state of charge and battery temperature in a second relationship model table is determined as the battery impedance.
[0144] b2: Determine the first state of charge according to the battery impedance using the open circuit voltage method.
[0145] Determining the first state of charge according to the battery impedance by using the open circuit voltage method includes determining the first state of charge according to the battery impedance, a current battery voltage, and a current battery current by using the open circuit voltage method.
[0146] Determining the first state of charge according to the battery impedance, the current battery voltage and the current battery current by the open circuit voltage method includes:
[0147] c1: determining the open circuit voltage according to the battery impedance, the current battery voltage and the current battery current by the open circuit voltage method.
[0148] In this embodiment, the open circuit voltage method
[0149] V alid_OCV =V bat -I bat *R(SOC,T bat ) Determine the open circuit voltage according to the battery impedance, the current battery voltage and the current battery current. Wherein, V alid_OCV is the open circuit voltage, V bat is the current battery voltage, I bat is the current battery current, R(SOC,Tbat ) is the battery impedance.
[0150] c2: Determine the first state of charge according to the open circuit voltage.
[0151] Determining the first state of charge according to the open circuit voltage includes querying a first relationship model table according to the open circuit voltage to determine the first state of charge. In this embodiment, determining the first state of charge according to the open circuit voltage by querying a first relationship model table includes:
[0152] Querying a first relationship model table for a second open circuit voltage that matches the open circuit voltage;
[0153] A battery state of charge corresponding to the determined second open-circuit voltage in the first relationship model table is determined to be the first state of charge.
[0154] Step S23, determining a second state of charge according to the first battery state of charge and the actual capacity of the first battery.
[0155] In this embodiment, the method further includes: when the battery is in a charging state or a discharging state, updating the second state of charge according to the first battery state of charge and the actual capacity of the first battery; when the battery is in a static state, not updating the second state of charge. That is, in this embodiment, the second state of charge is updated only when the battery is in a charging state or a discharging state. In this embodiment, the method may also include: when the battery is in a static state, not calculating the second state of charge.
[0156] In this embodiment, determining the second state of charge according to the first battery state of charge and the first battery actual capacity includes determining the second state of charge according to the first battery state of charge and the first battery actual capacity by using a Coulomb integration method. Determining the second state of charge according to the first battery state of charge and the first battery actual capacity by using a Coulomb integration method includes:
[0157] The second state of charge is determined by the Coulomb integration method according to the state of charge of the first battery, the current battery current, the difference between the current time and the time when the battery current was last obtained, and the actual capacity of the first battery.
[0158] In this embodiment, the Coulomb integration method is: SOC2 = SOC0 + I bat ×Δt / Q abs ; Wherein, SOC2 is the second state of charge, SOC0 is the first battery state of charge, I bat is the current battery current, Δt is the difference between the current time and the last time the battery current was obtained, Q abs is the actual capacity of the first battery.
[0159] In this embodiment, when the second state of charge is determined for the first time, the first battery state of charge is the initial state of charge, and the first battery actual capacity is the preset capacity. When the second state of charge is not determined for the first time, the first battery state of charge is the calculated first battery state of charge, and the first battery actual capacity is the calculated first battery actual capacity. The calculated first battery state of charge may be the first state of charge calculated by the open circuit voltage method when the battery is in a static state before entering a charging state or a discharging state, or the second state of charge calculated by the coulomb integration method when the battery is in a charging state or a discharging state. The first battery actual capacity may be the first battery actual capacity calculated when the battery is in a charging state, a discharging state, or a static state.
[0160] In this embodiment, the state of charge of the battery is calculated iteratively by using the first state of charge calculated by the open circuit voltage method and the second state of charge calculated by the Coulomb integration method. Figure 4 As shown, when the battery enters a charging state or a discharging state from a rest state or power-on state, the first state of charge calculated by the open circuit voltage method or the initial state of charge calculated by the open circuit voltage method is used as the first battery state of charge to calculate the second state of charge by the coulomb integration method, and the second state of charge is continued to be calculated in the charging state or the discharging state with the second state of charge calculated last time as the first battery state of charge. When the battery enters a rest state from a charging state or a discharging state, the first state of charge is calculated by the open circuit voltage method with the second state of charge calculated by the coulomb integration method before entering the rest state as the first battery state of charge.
[0161] In this embodiment, the method further includes: determining a second battery state of charge according to the first state of charge and the second state of charge. The determining the second battery state of charge according to the first state of charge and the second state of charge includes:
[0162] When the first state of charge is updated, determining the second battery state of charge to be the first state of charge;
[0163] When the second state of charge is updated, the second battery state of charge is determined to be the second state of charge.
[0164] Step S24: updating the actual capacity of the second battery according to the first state of charge and the second state of charge.
[0165] In this embodiment, before updating the actual capacity of the second battery according to the first state of charge and the second state of charge, the method further includes:
[0166] It is determined that the battery meets a preset condition.
[0167] In this embodiment, the preset conditions include, but are not limited to:
[0168] The current battery temperature is within a preset range; and / or the product of the difference between the current time and the time when the battery current was last obtained and the current battery current exceeds a preset threshold; and / or the open circuit voltage is in a stable area of the first relationship model table; and / or the difference between the second battery state of charge and the initial state of charge or the battery state of charge when the actual capacity of the second battery was last updated is greater than a preset value.
[0169] Specifically, the determining that the battery meets the preset condition includes: Figure 5 As shown:
[0170] S51: Determine whether the current battery temperature is within a preset range. If the current battery temperature is within the preset range, execute step S52. If the current battery temperature is not within the preset range, execute step S21.
[0171] Preferably, the preset range can be 10°C to 40°C, or other values, depending on specific needs. In this embodiment, when the battery temperature exceeds the preset range, the accuracy of the open circuit voltage of the battery will deviate. Therefore, limiting the current battery temperature to within the preset range can avoid the accuracy of the open circuit voltage of the battery from deviating.
[0172] S52: Determine whether the product of the difference between the current time and the last time the battery current was obtained and the current battery current obtained during the dead time is less than or equal to a preset threshold. When the product of the difference between the current time and the last time the battery current was obtained and the current battery current obtained during the dead time is greater than the preset threshold, execute step S21. When the product of the difference between the current time and the last time the battery current was obtained and the current battery current obtained during the dead time is less than or equal to or exceeds the preset threshold, execute step S53.
[0173] Preferably, the preset threshold value may be 0.8%*Q design ~1.2%*Q design , or other values, depending on specific needs. design In this embodiment, the product of the difference between the current time and the last time the battery current was obtained and the current battery current obtained within the dead time is limited to be less than or equal to a preset threshold, which can minimize the cumulative error caused by current acquisition.
[0174] S53: Determine whether the open circuit voltage is in the stable region of the first relationship model table. When the open circuit voltage is in the stable region of the first relationship model table, execute step S54. When the open circuit voltage is not in the stable region of the first relationship model table, execute step S21.
[0175] Preferably, the stable region of the first relationship model table is the battery state of charge in the interval [10%-90%], preferably, the stable region of the first relationship model table is the battery state of charge in the interval [20%-80%], or other values, depending on specific needs. In this embodiment, the open circuit voltage is limited to the stable region of the first relationship model table, so that the open circuit voltage changes less at this time, which can improve the calculation accuracy of the battery state of charge.
[0176] S54: Determine whether the difference between the second battery state of charge and the initial state of charge or the battery state of charge when the second battery actual capacity was last updated is greater than a preset value. When the difference between the second battery state of charge and the initial state of charge or the battery state of charge when the second battery actual capacity was last updated is greater than the preset value, execute step S55. When the difference between the second battery state of charge and the initial state of charge or the battery state of charge when the second battery actual capacity was last updated is less than or equal to the preset value, execute step S21.
[0177] In this embodiment, when it is detected that the battery has not updated the actual battery capacity, it is determined whether the difference between the second battery state of charge and the initial state of charge is greater than a preset value, such as Figure 6 As shown, it is determined whether the difference between the battery state of charge at 3745 seconds and the battery state of charge at 209 seconds is greater than a preset value. When it is detected that the battery has updated the actual battery capacity, it is determined whether the difference between the second battery state of charge and the battery state of charge when the second battery actual capacity was last updated is greater than a preset value. Preferably, the preset value is 40%, or it can be other values, depending on specific needs. In this embodiment, the difference between the second battery state of charge and the initial state of charge or the battery state of charge when the second battery actual capacity was last updated is limited to be greater than a preset value, which can avoid inaccurate calculation of the battery actual capacity caused by small changes in the battery state of charge.
[0178] Step S55, determining whether the battery meets a preset condition.
[0179] Obviously, the determination that the battery meets the preset conditions is not limited to the above-mentioned embodiments, and other variations are possible. For example, the order of step S51, step S52, step S53, and step S54 can be adjusted as needed, or any one, two, or three of the steps S51, step S52, step S53, and step S54 can be omitted.
[0180] In this embodiment, if Figure 7 As shown, updating the actual capacity of the second battery according to the first state of charge and the second state of charge includes:
[0181] When the first state of charge is greater than the second state of charge, according to the formula P re1 _Q abs =(1+(SOC1-SOC2))×Q abs -Q com Update the actual capacity of the second battery; where P re1 _Q abs is the actual capacity of the third battery, SOC1 is the first state of charge, SOC2 is the second state of charge, Q abs is the actual capacity of the first battery, Q com is the compensation value.
[0182] In this embodiment, when the first state of charge and the second state of charge are within a preset interval, the compensation value is zero. In this embodiment, the preset interval is [0.0, 1.0]. When the first state of charge and the second state of charge are not within the preset interval, the compensation value is determined according to the first state of charge and the second state of charge.
[0183] In this embodiment, updating the actual capacity of the second battery according to the first state of charge and the second state of charge further includes:
[0184] When the first state of charge is less than the second state of charge, according to the formula P re1 _Q abs =(1+(SOC2-SOC1))×Q abs +Q com Update the actual capacity of the second battery; where P re1 _Q abs is the actual capacity of the third battery, SOC2 is the second state of charge, SOC1 is the first state of charge, Q abs is the actual capacity of the first battery, Q com is the compensation value.
[0185] In this embodiment, the compensation value is limited in order to avoid the calculated first state of charge and second state of charge being outside the preset range due to sampling errors of the analog-to-digital converter or other reasons. Abnormal values exceeding the preset range can be compensated to ensure that the first state of charge and the second state of charge are within the normal range.
[0186] In this embodiment, updating the actual capacity of the second battery according to the first state of charge and the second state of charge may further include:
[0187] When the difference between the actual capacity of the third battery and the actual capacity of the first battery is greater than a first threshold, according to formula P re2 _Q abs =Q abs +Qt2 Update the actual capacity of the second battery; where P re2 _Q abs is the actual capacity of the second battery, Q abs is the actual capacity of the first battery, Q t2 is the first threshold.
[0188] Preferably, the first threshold is f1*Q design , where f1∈[0.03, 0.1], Q design The first threshold value may also be other values, depending on specific needs.
[0189] In this embodiment, updating the actual capacity of the second battery according to the first state of charge and the second state of charge may further include:
[0190] When the difference between the actual capacity of the third battery and the actual capacity of the first battery is less than the negative value of the first threshold, according to the formula P re2 _Q abs =Q abs -Q t2 Update the actual capacity of the second battery; where P re2 _Q abs is the actual capacity of the second battery, Q abs is the actual capacity of the first battery, and Qt2 is the first threshold.
[0191] In this embodiment, updating the actual capacity of the second battery according to the first state of charge and the second state of charge may further include:
[0192] When the difference between the third battery actual capacity and the first battery actual capacity is greater than the negative value of the first threshold value and less than the first threshold value, the second battery actual capacity is updated to the third battery actual capacity.
[0193] Updating the actual capacity of the second battery according to the first state of charge and the second state of charge may further include:
[0194] When the actual capacity of the third battery is greater than the second threshold, according to the formula P re2 _Q abs =Q t3 Update the actual capacity of the second battery; where P re2 _Q abs is the actual capacity of the second battery, Q t3 is the second threshold.
[0195] Preferably, the second threshold is f2*Q design , where f2∈[1.1,1.5], Q designThe second threshold value may also be other values, depending on specific needs.
[0196] In this embodiment, the updating of the second battery actual capacity according to the first state of charge and the second state of charge may also have other variations. For example, after determining the third battery actual capacity, the method further includes:
[0197] The second battery actual capacity is updated to the third battery actual capacity.
[0198] In this embodiment, the updating of the second battery actual capacity according to the first state of charge and the second state of charge may have other variations. For example, after the second battery actual capacity is updated when the third battery actual capacity is greater than the second threshold, the second battery actual capacity is updated when the difference between the third battery actual capacity and the first battery actual capacity is greater than the first threshold. At this time, the when the difference between the third battery actual capacity and the first battery actual capacity is greater than the first threshold is changed to: when the third battery actual capacity is less than or equal to the second threshold, and the difference between the third battery actual capacity and the first battery actual capacity is greater than the first threshold.
[0199] In this embodiment, the first battery actual capacity used when calculating the second state of charge by the Coulomb integration method is the first battery actual capacity calculated by this application. At the same time, the second battery actual capacity will be used as the first battery actual capacity when the next battery actual capacity is calculated by the Coulomb integration method.
[0200] See also Figure 8 In one embodiment, in this embodiment, the battery capacity update device 10 can be divided into one or more modules, and the one or more modules are stored in the memory and executed by at least one processor (one processor in this embodiment) to complete the present application. The one or more modules can be a series of computer program instruction segments that can complete specific functions, and the instruction segments are used to describe the execution process of the battery capacity update device 10 in the electronic device. For example, the battery capacity update device 10 can be divided into Figure 8 The detection module 801, the first state of charge determination module 802, the second state of charge determination module 803, and the updating module 804 are included in the embodiment.
[0201] The detection module 801 is used to detect the state of charge of the first battery and the actual capacity of the first battery.
[0202] The first state of charge determination module 802 is used to determine a first state of charge according to a first battery state of charge.
[0203] The second state of charge determination module 803 is used to determine the second state of charge according to the first battery state of charge and the actual capacity of the first battery.
[0204] The updating module 804 is used for updating the actual capacity of the second battery according to the first state of charge and the second state of charge.
[0205] The battery capacity updating device of this embodiment can update the battery capacity in time. The specific contents can be referred to the embodiment of the battery capacity updating method mentioned above, which will not be described in detail here.
[0206] In this embodiment, the memory may be an internal memory of the electronic device, that is, a memory built into the electronic device. In other embodiments, the memory may also be an external memory of the electronic device, that is, a memory externally connected to the electronic device.
[0207] In some embodiments, the memory is used to store program codes and various data, for example, to store program codes of the battery capacity updating device 10 installed in the electronic device, and to achieve high-speed and automatic access to programs or data during the operation of the electronic device.
[0208] The memory may include random access memory and may also include non-volatile memory, such as a hard disk, a memory, a plug-in hard disk, a smart media card (SMC), a secure digital (SD) card, a flash card (Flash Card), at least one disk storage device, a flash memory device, or other volatile solid-state storage devices.
[0209] In one embodiment, the processor may be a central processing unit (CPU), or other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field-programmable gate arrays (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. A general-purpose processor may be a microprocessor, or the processor may be any other conventional processor, etc.
[0210] If the module in the battery capacity updating device 10 is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the present application implements all or part of the processes in the above-mentioned embodiment method, and can also be completed by instructing the relevant hardware through a computer program. The computer program can be stored in a computer-readable storage medium. When the computer program is executed by the processor, the steps of the above-mentioned various method embodiments can be implemented. Among them, the computer program includes computer program code, and the computer program code can be in source code form, object code form, executable file or some intermediate form. The computer-readable medium may include: any entity or device capable of carrying the computer program code, recording medium, U disk, mobile hard disk, disk, optical disk, computer memory, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), electric carrier signal, telecommunication signal and software distribution medium. It should be noted that the content contained in the computer-readable medium can be appropriately increased or decreased according to the requirements of legislation and patent practice in the jurisdiction. For example, in some jurisdictions, according to legislation and patent practice, computer-readable media do not include electric carrier signals and telecommunication signals.
[0211] It is understandable that the module division described above is a logical function division, and there may be other division methods in actual implementation. In addition, the functional modules in each embodiment of the present application may be integrated in the same processing unit, or each module may exist physically separately, or two or more modules may be integrated in the same unit. The above-mentioned integrated modules may be implemented in the form of hardware or in the form of hardware plus software functional modules.
[0212] It is obvious to those skilled in the art that the present application is not limited to the details of the above exemplary embodiments, and that the present application can be implemented in other specific forms without departing from the spirit or basic features of the present application. Therefore, no matter from which point of view, the above embodiments of the present application should be regarded as exemplary and non-restrictive, and the scope of the present application is defined by the attached claims rather than the above description, and therefore it is intended that all changes falling within the meaning and scope of the equivalent elements of the claims are included in the present application.
Claims
1. A battery capacity updating method, characterized in that: The battery capacity updating method comprises: detecting a state of charge of a first battery and an actual capacity of the first battery; determining a battery impedance according to the first battery state of charge; determining a first state of charge according to the battery impedance by an open circuit voltage method; determining a second state of charge according to the state of charge of the first battery and an actual capacity of the first battery; The actual capacity of the third battery is determined according to the first state of charge and the second state of charge, wherein when the first state of charge is greater than the second state of charge, according to the formula Pre 1_Q ab s =(1+(SOC1-SOC2))×Q abs -Q com Determine the actual capacity of the third battery; when the first state of charge is less than the second state of charge, according to the formula Pre 1_Q ab s =(1+(SOC2-SOC1))×Q abs +Q com Determine the actual capacity of the third battery; wherein Pre1_Q abs is the actual capacity of the third battery, SOC1 is the first state of charge, SOC2 is the second state of charge, Q abs is the actual capacity of the first battery, Q com is the compensation value; The second battery actual capacity is updated according to the first battery actual capacity and the third battery actual capacity.
2. The battery capacity updating method according to claim 1, characterized in that: The battery capacity updating method further includes: A second battery state of charge is determined according to the first state of charge and the second state of charge.
3. The battery capacity updating method according to claim 1, wherein: When the second state of charge is determined for the first time, the first battery state of charge is an initial state of charge, and the actual capacity of the first battery is a preset capacity.
4. The battery capacity updating method according to claim 3, characterized in that: The battery capacity updating method further includes: Determine the open circuit voltage; The initial state of charge is determined according to the open circuit voltage.
5. The battery capacity updating method according to claim 4, characterized in that: Determining the open circuit voltage comprises: The open circuit voltage is determined according to an open circuit voltage method as the current battery voltage.
6. The battery capacity updating method according to claim 4, characterized in that: Determining the initial state of charge according to the open circuit voltage comprises: The initial state of charge is determined by querying a first relationship model table according to the open circuit voltage.
7. The battery capacity updating method according to claim 1, characterized in that: Determining the battery impedance according to the first battery state of charge includes: The battery impedance is determined by querying a second relationship model table according to the first battery state of charge and the current battery temperature.
8. The battery capacity updating method according to claim 1, characterized in that: Determining the first state of charge according to the battery impedance by using an open circuit voltage method includes: The first state of charge is determined according to the battery impedance, the current battery voltage and the current battery current by the open circuit voltage method.
9. The battery capacity updating method according to claim 1, characterized in that: Determining the second state of charge according to the first battery state of charge and the actual capacity of the first battery includes: The second state of charge is determined according to the state of charge of the first battery and the actual capacity of the first battery by using the Coulomb integration method.
10. The battery capacity updating method according to claim 9, characterized in that: Determining the second state of charge according to the state of charge of the first battery and the actual capacity of the first battery by using the Coulomb integration method includes: The second state of charge is determined by the Coulomb integration method according to the state of charge of the first battery, the current battery current, the difference between the current time and the time when the battery current was last obtained, and the actual capacity of the first battery.
11. The battery capacity updating method according to claim 10, characterized in that: The Coulomb integration method is: SOC2=SOC0+I bat ×Δt / Q abs ; Among them, SOC2 is the second state of charge, SOC0 is the first battery state of charge, I bat is the current battery current, Δt is the difference between the current time and the last time the battery current was obtained, Q ab s is the actual capacity of the first battery.
12. The battery capacity updating method according to claim 1, characterized in that: Before updating the second battery actual capacity according to the first battery actual capacity and the third battery actual capacity, the battery capacity updating method further includes: Make sure the battery meets the preset conditions.
13. The battery capacity updating method according to claim 12, characterized in that: The preset conditions include, but are not limited to: The current battery temperature is within the preset range; and / or The product of the difference between the current time and the last time the battery current was obtained and the current battery current obtained within the dead time is less than or equal to a preset threshold; and / or The open circuit voltage is in the stable region of the first relationship model table; and / or The difference between the second battery state of charge and the initial state of charge or the battery state of charge when the second battery actual capacity was last updated is greater than a preset value.
14. The battery capacity updating method according to claim 1, wherein: When the first state of charge and the second state of charge are within a preset range, the compensation value is zero.
15. The battery capacity updating method according to claim 14, characterized in that: The preset interval is [0.0, 1.0].
16. The battery capacity updating method according to claim 1, characterized in that: The updating of the second battery actual capacity according to the first battery actual capacity and the third battery actual capacity comprises: When the difference between the actual capacity of the third battery and the actual capacity of the first battery is greater than a first threshold, according to the formula Pre 2_Q ab s =Q abs +Q t2 Update the actual capacity of the second battery; among them, Pre2_Q abs is the actual capacity of the second battery, Q abs is the actual capacity of the first battery, and Q t2 is the first threshold.
17. The battery capacity updating method according to claim 1, characterized in that: The updating of the second battery actual capacity according to the first battery actual capacity and the third battery actual capacity comprises: When the difference between the actual capacity of the third battery and the actual capacity of the first battery is less than the negative value of the first threshold, according to the formula Pre2_Q ab s =Q abs -Q t2 Update the actual capacity of the second battery; among them, Pre2_Q abs is the actual capacity of the second battery, Q abs is the actual capacity of the first battery, and Qt2 is the first threshold.
18. The battery capacity updating method according to claim 1, characterized in that: The updating of the second battery actual capacity according to the first battery actual capacity and the third battery actual capacity comprises: When the difference between the third battery actual capacity and the first battery actual capacity is greater than a negative value of a first threshold and less than the first threshold, the second battery actual capacity is updated to the third battery actual capacity.
19. The battery capacity updating method according to any one of claims 16 to 18, characterized in that: The first threshold is f1*Q design , where f1∈[0.03, 0.1], Q design The preset capacity.
20. The battery capacity updating method according to claim 1, characterized in that: The updating of the second battery actual capacity according to the first battery actual capacity and the third battery actual capacity comprises: When the actual capacity of the third battery is greater than the second threshold, according to the formula Pre2_Q ab s =Q t3 Update the actual capacity of the second battery; wherein Pre2_Q abs is the actual capacity of the second battery, Q t3 is the second threshold.
21. The battery capacity updating method according to claim 20, characterized in that: The second threshold is f2*Q design , where f2∈[1.1,1.5], Q design The preset capacity.
22. The battery capacity updating method according to claim 1, characterized in that: Before determining the first state of charge according to the battery impedance by using an open circuit voltage method, the battery capacity updating method further includes: When the battery is in a charging state or a discharging state, the first state of charge is not updated; When the battery is in a stationary state, the first state of charge is updated according to the first battery state of charge.
23. The battery capacity updating method according to claim 1, characterized in that: Before determining the second state of charge according to the first battery state of charge and the first battery actual capacity, the battery capacity updating method further includes: When the battery is in a charging state or a discharging state, updating the second state of charge according to the first battery state of charge and the first battery actual capacity; When the battery is in a stationary state, the second state of charge is not updated.
24. A battery capacity updating device, characterized in that: The battery capacity updating device comprises: A detection module, used for detecting the state of charge of the first battery and the actual capacity of the first battery; A first state of charge determination module, configured to determine a battery impedance according to the first battery state of charge, and determine a first state of charge according to the battery impedance by an open circuit voltage method; a second state of charge determination module, configured to determine a second state of charge according to the state of charge of the first battery and the actual capacity of the first battery, and to determine the actual capacity of a third battery according to the first state of charge and the second state of charge, Wherein, when the first state of charge is greater than the second state of charge, according to the formula Pre 1_Q ab s =(1+(SOC1-SOC2))×Q abs -Q com Determine the actual capacity of the third battery; when the first state of charge is less than the second state of charge, according to the formula Pre 1_Q ab s =(1+(SOC2-SOC1))×Q abs +Q com Determine the actual capacity of the third battery; wherein Pre1_Q abs is the actual capacity of the third battery, SOC1 is the first state of charge, SOC2 is the second state of charge, Q abs is the actual capacity of the first battery, Q com is the compensation value; The updating module is used to update the actual capacity of the second battery according to the actual capacity of the first battery and the actual capacity of the third battery.
25. The battery capacity updating device according to claim 24, characterized in that: When the second state of charge is determined for the first time, the first battery state of charge is an initial state of charge, and the actual capacity of the first battery is a preset capacity.
26. The battery capacity updating device according to claim 25, characterized in that: The second state of charge determination module is further configured to: Determine the open circuit voltage; The initial state of charge is determined according to the open circuit voltage.
27. The battery capacity updating device according to claim 26, characterized in that: Determining the open circuit voltage comprises: The open circuit voltage is determined according to an open circuit voltage method as the current battery voltage.
28. The battery capacity updating device according to claim 26, characterized in that: Determining the initial state of charge according to the open circuit voltage comprises: The initial state of charge is determined by querying a first relationship model table according to the open circuit voltage.
29. The battery capacity updating device according to claim 24, characterized in that: Determining the battery impedance according to the first battery state of charge includes: The battery impedance is determined by querying a second relationship model table according to the first battery state of charge and the current battery temperature.
30. The battery capacity updating device according to claim 24, characterized in that: The second state of charge determination module is used to determine the second state of charge according to the state of charge of the first battery and the actual capacity of the first battery by using the Coulomb integration method.
31. An electronic device, characterized in that: The electronic device comprises: Battery; Processor; and A memory, wherein a plurality of program modules are stored in the memory, and the plurality of program modules are loaded by the processor and execute the battery capacity updating method as described in any one of claims 1 to 23 to update the battery capacity.
32. A storage medium having at least one computer instruction stored thereon, characterized in that: The instructions are loaded by the processor to execute the battery capacity updating method as described in any one of claims 1-23.
Citation Information
Cited By
Method for updating capacity of battery, device for updating capacity of battery, electronic device, and storage unit
EP3792646A1
