CN118362908A - Battery power calculation method, device, electronic equipment and storage medium - Google Patents

Battery power calculation method, device, electronic equipment and storage medium Download PDF

Info

Publication number
CN118362908A
CN118362908A CN202410793420.3A CN202410793420A CN118362908A CN 118362908 A CN118362908 A CN 118362908A CN 202410793420 A CN202410793420 A CN 202410793420A CN 118362908 A CN118362908 A CN 118362908A
Authority
CN
China
Prior art keywords
battery
sampling
current
electric quantity
open
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202410793420.3A
Other languages
Chinese (zh)
Inventor
虞少平
田富涛
周超
邓长波
孔明
商永艺
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Zhejiang Geoforcechip Technology Co Ltd
Original Assignee
Zhejiang Geoforcechip Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Zhejiang Geoforcechip Technology Co Ltd filed Critical Zhejiang Geoforcechip Technology Co Ltd
Priority to CN202410793420.3A priority Critical patent/CN118362908A/en
Publication of CN118362908A publication Critical patent/CN118362908A/en
Pending legal-status Critical Current

Links

Landscapes

  • Secondary Cells (AREA)

Abstract

The application provides a battery electric quantity calculation method, a device, electronic equipment and a storage medium, and relates to the technical field of battery management, wherein the battery electric quantity calculation method comprises the steps of collecting sampling currents and sampling voltages corresponding to batteries at different moments under the condition that electric equipment where the batteries are positioned is in a low-power consumption mode; according to a preset number of historical sampling currents adjacent to the sampling current at the current moment, compensating the sampling current at the current moment, and calculating the integral electric quantity of the battery at the current moment according to the compensated sampling current at the current moment; calculating the voltage change rate of the battery in a preset sampling time period according to the sampling voltage, and determining an open-circuit voltage value corresponding to the current moment according to the sampling voltage change rate; and calculating the electric quantity of the battery at the current moment according to the integrated electric quantity of the battery at the current moment and the open-circuit voltage value. The application can improve the electric quantity calculation precision of the battery.

Description

Battery power calculation method, device, electronic equipment and storage medium
Technical Field
The present application relates to the field of battery management technologies, and in particular, to a method and apparatus for calculating battery power, an electronic device, and a storage medium.
Background
The management of the electric quantity of the battery comprises the steps of predicting the electric quantity of the battery, normally, sampling the current of the battery at intervals, and further performing electric quantity prediction through the sampled current, namely, the sampling frequency of the current is unchanged, but when the battery is in a low-power consumption mode, the sampling frequency of the current is reduced, the problem of leakage current exists when the integral calculation of the electric quantity prediction is performed, the error of the electric quantity prediction result is larger, and the problem of low estimation precision of the State of Charge (SOC) of the battery exists.
It should be noted that the foregoing statements are merely to provide background information related to the present disclosure and may not necessarily constitute prior art.
Disclosure of Invention
In view of the above, the present application aims to provide a method, a device, an electronic device and a storage medium for calculating battery power, which can solve the problem of low accuracy of estimating the battery power state in the prior art.
Based on the above object, in a first aspect, the present application provides a battery power calculation method, including: under the condition that electric equipment where a battery is positioned is in a low power consumption mode, sampling current and sampling voltage corresponding to the battery at different moments are collected; according to a preset number of historical sampling currents adjacent to the sampling current at the current moment, compensating the sampling current at the current moment, and calculating the integral electric quantity of the battery at the current moment according to the compensated sampling current at the current moment; calculating the voltage change rate of the battery in a preset sampling time period according to the sampling voltage, and determining an open-circuit voltage value corresponding to the current moment according to the sampling voltage change rate; and calculating the electric quantity of the battery at the current moment according to the integrated electric quantity of the battery at the current moment and the open-circuit voltage value.
Optionally, compensating the sampling current at the current time according to a preset number of historical sampling currents adjacent to the sampling current at the current time includes: calculating the sum of the sampling currents at the current moment and the preset number of historical sampling currents; and taking the average value of the sum value as the sampling current at the current moment after compensation.
Optionally, the method further comprises: acquiring the real-time current of the battery, and determining that the electric equipment where the battery is positioned is switched from the low-power consumption mode to a normal mode according to the fact that the real-time current is larger than or equal to a preset value; compensating the integral electric quantity of the battery at the current moment according to the difference value of the sampling current of the battery at the first moment and the sampling current of the battery at the second moment; the sampling current at the first moment is the sampling current acquired last time in the low power consumption mode, and the sampling current at the second moment is the sampling current acquired first time after the electric equipment is switched from the low power consumption mode to the normal mode.
Optionally, the preset sampling period includes at least one sampling period, and calculating a voltage change rate of the battery in the preset sampling period according to the sampling voltage includes: predicting the voltage value of the voltage which is not acquired in each sampling period by adopting a linear interpolation method to obtain the voltage value of each time in the preset sampling time; calculating a first sum value and a second sum value in the sampling time according to the voltage value of each moment in the preset sampling time, wherein the first sum value is the voltage sum of each moment in the first half period of the preset sampling time, and the second sum value is the voltage sum of each moment in the second half period of the preset sampling time; and obtaining the voltage change rate of the battery in the preset sampling time according to the difference value between the second sum value and the first sum value and the sampling period number of the preset sampling time.
Optionally, determining the open-circuit voltage value corresponding to the current moment according to the sampling voltage change rate includes: under the condition that the change rate of the sampling voltage is smaller than or equal to a preset value, taking the sampling voltage acquired at the current moment as the open-circuit voltage value; and under the condition that the sampling voltage change rate is larger than the preset value, taking the historical effective open-circuit voltage value as the open-circuit voltage value corresponding to the current moment.
Optionally, calculating the electric quantity of the battery at the current moment according to the integrated electric quantity of the battery at the current moment and the open-circuit voltage value includes: obtaining an initial absolute charge amount according to the open-circuit voltage value corresponding to the current moment and a preset battery model, wherein the preset battery model comprises a corresponding relation between the open-circuit voltage value and the initial absolute charge amount; calculating a first current absolute electric quantity of the battery according to the initial absolute electric quantity and the integral electric quantity of the battery; and obtaining the electric quantity of the battery at the current moment according to the first current absolute electric quantity of the battery.
Optionally, the method further comprises: calculating a first output impedance corresponding to the battery under the condition of the first current absolute electric quantity and the battery temperature; obtaining an open-circuit voltage corresponding to the first output impedance as a first open-circuit voltage according to the corresponding relation between the output impedance of the battery and the open-circuit voltage; calculating a second current absolute electric quantity of the battery according to the first open-circuit voltage and the battery temperature; performing weighted calculation on the first current absolute electric quantity and the second current absolute electric quantity to obtain a target absolute electric quantity; and calculating the electric quantity of the battery at the current moment according to the target absolute electric quantity.
Optionally, the calculating the electric quantity of the battery at the current moment according to the target absolute electric quantity includes: calculating a second output impedance corresponding to the battery under the condition of the second current absolute electric quantity and the battery temperature; obtaining an open-circuit voltage corresponding to the second output impedance as a second open-circuit voltage according to the corresponding relation between the output impedance of the battery and the open-circuit voltage; updating the initial absolute charge amount of the battery according to the second open-circuit voltage and the battery temperature; and calculating the electric quantity of the battery at the current moment according to the target absolute electric quantity and the updated initial absolute electric quantity.
In a second aspect, the present application proposes a battery charge calculation device, the device comprising: the sampling module is used for collecting sampling current and sampling voltage corresponding to the battery at different moments under the condition that the electric equipment where the battery is located is in a low-power consumption mode; the compensation module is used for compensating the sampling current at the current moment according to a preset number of historical sampling currents adjacent to the sampling current at the current moment, and calculating the integral electric quantity of the battery at the current moment according to the compensated sampling current at the current moment; the open-circuit voltage determining module is used for calculating the voltage change rate of the battery in a preset sampling time period according to the sampling voltage and determining an open-circuit voltage value corresponding to the current moment according to the sampling voltage change rate; and the electric quantity calculation module is used for calculating the electric quantity of the battery at the current moment according to the integrated electric quantity of the battery at the current moment and the open-circuit voltage value.
In a third aspect, there is also provided an electronic device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, the processor running the computer program to implement the method of the first aspect.
In a fourth aspect, there is also provided a computer readable storage medium having stored thereon a computer program for execution by a processor to perform the method of any of the first aspects.
In general, the present application has at least the following benefits:
The application can compensate and integrate the sampling current at the current moment to supplement the electric quantity of the leakage through a preset number of historical sampling currents adjacent to the sampling current at the current moment, calculate the open-circuit voltage value according to the sampling voltage, and calculate the electric quantity of the battery at the current moment according to the integrated electric quantity and the open-circuit voltage value of the battery.
The foregoing description is only an overview of the present application, and is intended to be implemented in accordance with the teachings of the present application in order that the same may be more clearly understood and to make the same and other objects, features and advantages of the present application more readily apparent.
Drawings
In the drawings, the same reference numerals refer to the same or similar parts or elements throughout the several views unless otherwise specified. The figures are not necessarily drawn to scale. It is appreciated that these drawings depict only some embodiments according to the disclosure and are not therefore to be considered limiting of its scope. Also, like reference numerals are used to designate like parts throughout the accompanying drawings.
FIG. 1 is a schematic flow chart of a battery charge calculation method of the present application;
FIG. 2 shows a comparison of integral compensation according to an embodiment of the present application;
FIG. 3 illustrates a battery charge calculation flow chart of an embodiment of the present application in a specific example;
fig. 4 is a schematic diagram showing the structure of a battery charge calculation device according to an embodiment of the present application;
fig. 5 is a schematic structural diagram of an electronic device according to an embodiment of the present application;
fig. 6 is a schematic diagram of a storage medium according to an embodiment of the present application.
Detailed Description
Embodiments of the technical scheme of the present application will be described in detail below with reference to the accompanying drawings. The following examples are only for more clearly illustrating the technical aspects of the present application, and thus are merely examples, and are not intended to limit the scope of the present application.
Unless defined otherwise, all technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this application belongs; the terminology used herein is for the purpose of describing particular embodiments only and is not intended to be limiting of the application; the terms "comprising" and "having" and any variations thereof in the description of the application and the claims and the description of the drawings above are intended to cover a non-exclusive inclusion.
In the description of embodiments of the present application, the technical terms "first," "second," and the like are used merely to distinguish between different objects and are not to be construed as indicating or implying a relative importance or implicitly indicating the number of technical features indicated, a particular order or a primary or secondary relationship. In the description of the embodiments of the present application, the meaning of "plurality" is two or more unless explicitly defined otherwise.
Reference herein to "an embodiment" means that a particular feature, structure, or characteristic described in connection with the embodiment may be included in at least one embodiment of the application. The appearances of such phrases in various places in the specification are not necessarily all referring to the same embodiment, nor are separate or alternative embodiments mutually exclusive of other embodiments. Those of skill in the art will explicitly and implicitly appreciate that the embodiments described herein may be combined with other embodiments.
In the description of the embodiments of the present application, the term "and/or" is merely an association relationship describing an association object, and indicates that three relationships may exist, for example, a and/or B may indicate: a exists alone, A and B exist together, and B exists alone. In addition, the character "/" herein generally indicates that the front and rear associated objects are an "or" relationship.
In the description of the embodiments of the present application, the term "plurality" means two or more (including two), and similarly, "plural sets" means two or more (including two), and "plural sheets" means two or more (including two).
In the description of the embodiments of the present application, the orientation or positional relationship indicated by the technical terms "center", "longitudinal", "transverse", "length", "width", "thickness", "upper", "lower", "front", "rear", "left", "right", "vertical", "horizontal", "top", "bottom", "inner", "outer", "clockwise", "counterclockwise", "axial", "radial", "circumferential", etc. are based on the orientation or positional relationship shown in the drawings, and are merely for convenience of description and simplification of the description, and do not indicate or imply that the apparatus or element referred to must have a specific orientation, be configured and operated in a specific orientation, and therefore should not be construed as limiting the embodiments of the present application.
In the description of the embodiments of the present application, unless explicitly specified and limited otherwise, the terms "mounted," "connected," "secured" and the like should be construed broadly and may be, for example, fixedly connected, detachably connected, or integrally formed; or may be mechanically or electrically connected; can be directly connected or indirectly connected through an intermediate medium, and can be communicated with the inside of two elements or the interaction relationship of the two elements. The specific meaning of the above terms in the embodiments of the present application will be understood by those of ordinary skill in the art according to specific circumstances.
It should be noted that, without conflict, the embodiments of the present application and features of the embodiments may be combined with each other. The application will be described in detail below with reference to the drawings in connection with embodiments.
In the working process of the lithium battery, various characteristic parameters of the lithium battery need to be monitored and estimated so as to ensure that the lithium battery works in a safe and reliable state. For example, it is necessary to estimate the state of charge SOC (State of Charge) of the battery, also called the available remaining capacity, i.e. the battery charge to be calculated by the present application, which is equal to the ratio of the available battery capacity RM to the full charge battery capacity FCC, i.e. soc=rm/FCC x 100.
When the SOC of the battery is predicted, the current of the battery is sampled at intervals under normal conditions, and then the electric quantity prediction is performed by sampling the current, that is, the sampling frequency of the current is unchanged, but when the battery is in a low power consumption mode, the sampling frequency of the current is reduced, the problem of leakage current exists when the integral calculation of the electric quantity prediction is performed, the problems of small battery voltage and high electric quantity occur, and the error of the electric quantity prediction result is larger. And when the battery is in the low power consumption mode, the sampling frequency of the voltage is also reduced, so that it is difficult to judge whether the voltage of the battery can be used as an open circuit voltage, the open circuit voltage is also influenced by the difficulty in obtaining, and the error of the electric quantity prediction result is also larger, so that the calculation accuracy of the SOC in the low power consumption mode is not high due to the problems.
In order to improve the calculation accuracy of the SOC, the embodiment of the application compensates and integrates the sampling current at the current moment through the preset number of historical sampling currents adjacent to the sampling current at the current moment, supplements the electric quantity of the electric leakage, calculates the open-circuit voltage value according to the sampling voltage, and calculates the electric quantity of the battery at the current moment according to the integrated electric quantity of the battery and the open-circuit voltage value.
Embodiments of the present application are described in detail below.
Referring to fig. 1, fig. 1 is a flowchart of a method for calculating battery power according to an embodiment of the application, as shown in fig. 1, the method includes the following steps.
S101, under the condition that electric equipment where the battery is located is in a low power consumption mode, sampling current and sampling voltage corresponding to the battery at different moments are collected.
In one example, the powered device may include a mobile terminal such as a cell phone, a wearable device, a tablet computer, a notebook computer, or the like. The low power mode may be when the electronic device is in a state where battery current, such as standby, sleep, low battery, is less than a low power threshold. For example, a current value may be set as a low power consumption threshold according to a historical operating state of the electric device, where the electric device is characterized as being in a normal operating mode when the current of the battery is greater than or equal to the low power consumption threshold, and the electric device is characterized as being in a low power consumption mode when the current of the battery is less than the low power consumption threshold.
Wherein different times refer to different sampling times, and the sampling period is illustratively 20s, the current sampling time may include an initial time when in the low power consumption mode, the initial time is recorded as 0s, the next sampling time is 20s, the next sampling time is 40s, and so on.
In the embodiment, under the condition that the electric equipment is in a low power consumption mode, the sampling current and the sampling voltage corresponding to the battery at different moments are collected, and then the electric quantity of the battery can be calculated through the sampling current and the sampling voltage.
S102, compensating the sampling current at the current moment according to a preset number of historical sampling currents adjacent to the sampling current at the current moment, and calculating the integral electric quantity of the battery at the current moment according to the compensated sampling current at the current moment.
In this embodiment, the historical sampling current refers to a current acquired at a sampling time before the sampling current at the present time. The preset number of historical sampling currents adjacent to the sampling current at the current time refers to a continuous preset number of currents acquired before the sampling current at the current time, so that the preset number of historical sampling currents and the sampling current at the current time can be used as a sampling current set, the sampling current at the current time is calculated through the sampling current set, the sampling current at the current time can be calculated through at least two adjacent sampling currents, and compared with the sampling current at the current time which is acquired directly, the sampling error of the sampling current at the current time can be reduced. Because the integral electric quantity of the battery at the current moment is calculated according to the sampling current at the current moment, the calculation error of the integral electric quantity of the battery at the current moment can be reduced, and the calculation precision of the integral electric quantity of the battery at the current moment is improved.
Wherein, according to the adjacent a preset number of historical sampling currents of sampling current of current moment, carry out the compensation to the sampling current of current moment, include: calculating the sampling current at the current moment and the sum value of a preset number of historical sampling currents; and taking the average value of the sum values as the sampling current at the current moment after compensation.
The preset number may be set manually according to the precision requirement, and illustratively, the preset number is 2, when the electric equipment enters the low power consumption mode, the initial sampling current is sleep current1, the sampling currents of every other sampling period are sleep current2, sleep current3 and sleep current4 … … respectively, and if the sampling current at the current time is sleep current4, the preset number of historical sampling currents are sleep current2 and sleep current3 respectively, that is, the sampling currents at the compensated current time are average values after the sleep current2, sleep current3 and sleep current4 are added.
In one example, the integrated power of the battery may be obtained by performing an integrated power conversion on the sampled current, for example, the integrated power Qpass =sleep current of the battery is X/3600mAh, where sleep current represents the sampled current, X is a sampling period, and 3600 is a conversion unit of the current into the power.
Next, a calculation process of the integrated electric power of the battery of the present embodiment will be described.
The sampling period is 20s, when the electric equipment enters the low power consumption mode from the normal mode, the sampling period is recorded as a first Current point, the initial sampling Current of the first Current point is sleep Current1, one sampling period after entering the low power consumption mode is recorded as a second Current point, the Current of the second Current point is recorded as sleep Current 2, and then the integral Current value sleep currentA after entering the low power consumption mode is represented by the following formula:
sleep currentA =( sleep current 1 + sleep current 2)/2
correspondingly, the integral electric quantity QpassA = sleep currentA ×20/3600mAh
When a sampling period is passed again and the sampling period is recorded as a third current point, the current collected by the third current point is recorded as sleep current3, and the calculation formula of the integral current value sleep currentB corresponding to the third current point is as follows:
sleep currentB = (sleep current 1 + sleep current 2+sleep current 3)/3
Correspondingly, the integral electric quantity QpassB = sleep currentB ×20/3600mAh
Similarly, the fourth current point is noted as sleep current4, as described above, in this embodiment, the current sampled at the current time is compensated according to a preset number of historical sampled currents adjacent to the current sampled current at the current time, that is, the current at the current time is compensated by a continuous fixed number of sampled currents, the fixed number of sampled currents can be regarded as a sliding window, that is, the current sampled at the current time is compensated according to the fixed number of sampled currents in the sliding window, and the current sampled at the current time is compensated by 3 continuous sampled currents, so when the fourth current point is compensated, the initial sampled current sleep current1 is removed, and the currents at the fourth current point are compensated by sleep current2, sleep current3 and sleep current4, and the integral current value sleep currentC corresponding to the fourth current point is calculated as follows:
sleep currentC = ( sleep current 2+sleep current 3+sleep current 4 )/3
Correspondingly, the integral electric quantity QpassC = sleep currentC ×20/3600mAh
As described above, in the embodiment of the application, the sampling current at the current moment is compensated by a fixed number of sampling currents in one sliding window, and the integrated electric quantity is calculated by the compensated current value.
In one scenario, the powered device may be switched from a normal mode to a low power mode, or from a low power mode to a normal mode, and if the low power mode is switched from the low power mode to the normal mode without a sampling period after a certain sampling period of the low power mode, then the current between the last sampling of the battery and the normal mode in the low power mode is also compensated.
Therefore, in the embodiment of the present application, the battery power calculation method further includes: acquiring the real-time current of the battery, and determining that the electric equipment in which the battery is positioned is switched from a low-power consumption mode to a normal mode according to the fact that the real-time current is larger than or equal to a preset value; compensating the integral electric quantity of the battery at the current moment according to the difference value of the sampling current of the battery at the first moment and the sampling current of the battery at the second moment; the sampling current at the first moment is the sampling current acquired last time in the low-power mode, and the sampling current at the second moment is the sampling current acquired first time after the electric equipment is switched from the low-power mode to the normal mode.
The preset value may be the low power consumption threshold, when the current of the battery is greater than or equal to the low power consumption threshold, the electronic device is represented to be in a normal running mode, and when the current of the battery is less than the low power consumption threshold, the electronic device is represented to be in a low power consumption mode.
The sampling current at the first time t1 may be represented by sleep current t1, the sampling current at the second time t2 may be represented by sleep current t2, and the integrated power between t1 and t2 may be represented as:
Qpass=sleep current*(t2-t1)/3600mAh
According to the embodiment, when the electric equipment is switched from the low-power-consumption mode to the normal mode, the current between the time of last current collection in the low-power-consumption mode and the time of switching from the low-power-consumption mode to the normal mode is calculated, so that the electric quantity calculation accuracy can be further improved, and the problem of leakage current integration is solved.
Fig. 2 shows a comparison chart of integral compensation provided by an embodiment of the present application. In fig. 2, the abscissa represents time, the ordinate represents integrated electric quantity, L1 represents integrated electric quantity calculated by replacing all current values at the moment when no current is collected in the middle of a sampling period with the same current value, L2 represents integrated electric quantity obtained by compensating with a preset number of sampling currents in a sliding window in this embodiment, L3 represents integrated electric quantity obtained by real data, and L4 represents integrated electric quantity of an electric quantity meter under the condition of no compensation measures. As can be clearly seen from fig. 2, the error between the method of the present embodiment and the actual integrated electric quantity is the smallest, so that the calculation accuracy of the integrated electric quantity can be greatly improved.
S103, calculating the voltage change rate of the battery in a preset sampling time period according to the sampling voltage, and determining an open-circuit voltage value corresponding to the current moment according to the sampling voltage change rate.
In one example, the voltage change rate may be obtained by a ratio of a change amount of voltage in a preset time window to time, and the voltage change amount is obtained by, for example, according to a ratio of a change amount of a sampled voltage in a preset sampling period to a preset time, and then the value of an open circuit voltage (rest or predicted voltage in no-load state) corresponding to the current moment is determined according to the voltage change rate.
The determining the open-circuit voltage value corresponding to the current time according to the sampling voltage change rate may be to use the sampling voltage at the current time as the open-circuit voltage value when the sampling voltage change amount meets a preset condition.
In one scenario, if the sampling period is 20S in the low power mode, and a preset time window includes 200 sampling voltages, the accumulated electric quantity is equivalent to 4000S for standing the battery, if the electric quantity in 4000S is averaged, the calculated voltage change rate is dv/dt, which is a highly realistic condition, if the voltage which is not collected in each period is the same as the voltage which is collected, and the voltage change rate dv/dt is small. That is, when the preset sampling period is too long, the sampling interval will be increased, and due to the influence of the sampling interval, if two voltage values sampled at intervals are directly used, the requirements on voltage sampling precision and anti-interference are too high, and the phenomenon of battery voltage rebound after discharging or charging is finished exists.
Based on this, in calculating the voltage variation, the method for continuously compensating and filling the unknown rebound battery voltage by using a plurality of sampling voltages according to the present embodiment, specifically, the preset sampling period includes at least one sampling period, and calculating the voltage variation rate of the battery in the preset sampling period according to the sampling voltages includes: predicting the voltage value of the voltage which is not acquired in each sampling period by adopting a linear interpolation method to obtain the voltage value of each time in the preset sampling time; according to the voltage value of each moment in the preset sampling time, calculating a first sum value and a second sum value in the sampling time, wherein the first sum value is the voltage sum of each moment in the first half period of the preset sampling time, and the second sum value is the voltage sum of each moment in the second half period of the preset sampling time; and obtaining the voltage change rate of the battery in the preset sampling time according to the difference value between the second sum value and the first sum value and the sampling period number of the preset sampling time.
In this embodiment, the preset sampling period includes at least one sampling period, and at least two sampling voltage values may be obtained, so that the voltage at the time when the voltage is not collected in the sampling period may be compensated according to the at least two sampling voltage values.
The voltage value of each time in the preset sampling time is obtained by predicting the voltage value of each time in each sampling period without collecting the voltage by adopting a linear interpolation method, the intermediate value of two known sampling voltages can be obtained by the known sampling voltage, and then three voltage values in one sampling period are obtained, and then the voltage value of each time in the preset sampling time is obtained according to the three voltage values.
Illustratively, X represents the time interval of the sampling period, X represents the intermediate value of two known sampling voltages, and then three voltage values within one sampling period are V (T-X/2), V (T), and V (t+x/2), respectively, where V (T-X/2) refers to the voltage value acquired at the sampling time before the time T, V (t+t/2) refers to the voltage value acquired at the sampling time after the time T, and V (T) is the intermediate value of V (T-X/2) and V (t+x/2), and then the value of V (T) can be obtained by adding V (T-X/2) and V (t+x/2) and averaging. According to the method, the voltage values of V (t-X/2), V (t) and V (t+X/2) can be obtained, and similarly, the intermediate value of V (t-X/2) and V (t) can be obtained according to the voltage values of V (t-X/2) and V (t), and the intermediate value of V (t) and V (t+X/2) can be obtained according to the voltage values of V (t) and V (t+X/2), and the like, so that the voltage value at any moment in the sampling period can be obtained. The voltage value of each time in the preset sampling time is obtained by predicting the voltage value of the time in which the voltage is not acquired in each sampling period.
Assuming that the preset sampling period includes ten sampling periods, i=1, 2, 3, 4,5, 6, 7, 8, 9, 10, the Sum of voltages at each moment in the first half of the preset sampling period can be represented by Σ (i=1, 5) Sum (i), i.e. the first Sum value is Σ (i=1, 5) Sum (i). Similarly, the Sum of voltages at each time in the second half of the preset sampling time may be represented by Σ (i=6, 10) Sum (i), that is, the second Sum value is Σ (i=6, 10) Sum (i).
Obtaining the voltage change rate of the battery in the preset sampling time according to the difference value between the second sum value and the first sum value and the sampling period number of the preset sampling time, namely:
dv/dt=(∑(i=6,10)Sum(i)-∑(i=1,5)Sum(i))/10
As can be seen from the foregoing, in this embodiment, the voltage value at the non-sampling time is predicted by two known samples, and since the two known sampled voltages are obtained by real sampling, the accuracy of the voltage value predicted according to the two sampled voltages is also high, and after the voltage value at each time in the preset sampling time is obtained, the voltage change rate is calculated by the difference between the sum value of the first half and the second half of one sampling period, so that on one hand, the time span is reduced, and on the other hand, since the voltage value at each time is calculated, the calculation accuracy of the voltage change rate can be greatly improved.
In addition, in this embodiment, the sum of the voltage values in one sampling period may be represented by the sum of the voltage value at each time and the rebound voltage, for example, when x=20s,
Sum value Sum 1= (V (t-10) +v (t+10))/2 x 20+ Δvsam1 during the first sampling period
Sum 2= (V (t+10) +v (t+30))/2 x 20+ Δvsam2 during the second sampling period
In the above formula, Δvscum 1 and Δvscum 2 are respectively curve portions during the rebound voltage (temperature influence, charge-discharge influence) in the corresponding sampling period, and the trend is substantially the same in a short time (e.g. 200 s), that is, Δvscum 1=Δvscum 2.
Then, as can be seen from the formula dv/dt= (Σ (i=6, 10) Sum (i) - Σ (i=1, 5) Sum (i))/10, when the Σ (i=6, 10) Sum (i) is differenced from the Σ (i=1, 5) Sum (i), the rebound voltages Δvscu6 to Δvscum 10 and Δvscum 1 to Δvscum 5 are offset from each other when the differences are made, that is, the above calculation method of the embodiment of the present application can offset the rebound voltages, and can avoid the phenomenon that the battery voltage rebounds after the battery is discharged or charged.
In the embodiment of the application, determining the open-circuit voltage value corresponding to the current moment according to the sampling voltage change rate comprises the following steps: under the condition that the change rate of the sampling voltage is smaller than or equal to a preset value, taking the sampling voltage acquired at the current moment as an open-circuit voltage value; and under the condition that the sampling voltage change rate is larger than a preset value, taking the historical effective open-circuit voltage value as the open-circuit voltage value corresponding to the current moment.
In this embodiment, the preset value may be set according to the type of the battery, for example, when the battery is a lithium iron phosphate battery, the preset value may be 4uV/s, and when the battery is a lithium cobalt oxide battery, the preset value may be 1uV/s, which is not limited in detail again.
Assuming that the preset value is 4uV/s, taking the sampling voltage acquired at the current moment as an open-circuit voltage value under the condition that the sampling voltage change rate is smaller than or equal to 4 uV/s; and under the condition that the sampling voltage change rate is greater than 4uV/s, indicating that the current battery condition can not meet the condition of acquiring the open-circuit voltage value, taking the historical effective open-circuit voltage value as the open-circuit voltage value corresponding to the current moment. The historical effective open circuit voltage value may be an open circuit voltage value calculated at a previous time that may be used to calculate the charge of the battery.
In one example, the sampled voltage acquired at the current time may also be used as the open-circuit voltage value when the two continuous sampled voltage variations are less than or equal to the preset value.
And S104, calculating the electric quantity of the battery at the current moment according to the integrated electric quantity of the battery at the current moment and the open-circuit voltage value.
In this embodiment, the open circuit voltage value may be recorded as OCV, and the charge level of the battery refers to a state of charge (SOC) SOC of the battery including 0% -100%. As can be seen from the above, soc=rm/FCC, and the available battery capacity RM needs to be estimated by simulation based on the initial absolute charge amount soc_int and the current absolute charge amount soc_new of the battery.
Specifically, calculating the electric quantity of the battery at the current moment according to the integrated electric quantity of the battery at the current moment and the open-circuit voltage value comprises the following steps: obtaining an initial absolute charge amount according to an open-circuit voltage value corresponding to the current moment and a preset battery model; calculating a first current absolute electric quantity of the battery according to the initial absolute electric quantity and the integral electric quantity of the battery; and obtaining the electric quantity of the battery at the current moment according to the first current absolute electric quantity of the battery.
The preset battery model includes a corresponding relation between an open-circuit voltage value and an initial absolute charge amount, and the preset battery model may include a mapping relation between the absolute charge amount of the battery to be measured and the open-circuit voltage at different temperatures. It may comprise one or more sub-models, each of which may represent one or more mappings, which may be stored and presented in particular in the form of tables or in the form of graphs and curves. For example, the open circuit voltage and absolute power mapping relationship OCV/Vbat-SOCAb can be included, wherein the OCV-SOCAb mapping relationship can be in a chart form, and the corresponding absolute power value SOCAb can be found through the open circuit voltage OCV, and the OCV can also be found through the absolute power value SOCAb.
Therefore, after obtaining the open-circuit voltage value corresponding to the current moment, the battery model can be searched by the current OCV to obtain the initial absolute charge amount SOCAb _int.
In one example, the current absolute charge of the battery is calculated as:
SOCAb_new=SOCAb_int+Qpass/Qchem*100+Qcompensate/Qchem*100%
The SOCAb _new is the current absolute electric quantity, that is, the absolute electric quantity in the current discharging state, SOCAb _int is the initial absolute electric quantity, that is, the initial absolute electric quantity obtained by obtaining the open-circuit voltage obtained under the last standing condition through battery model data, qpass is SOCAb _int, the electric quantity charged and discharged when SOCAb _new is the current absolute electric quantity after starting charging and discharging is reached, qchem is the chemical capacity, and Qcompensate is the compensation capacity, that is, the capacity which is not recorded in the low power consumption mode.
As can be seen from this, if Qcompensate error is larger, the result of SOCAb _new is greatly affected, and thus the RM error is larger, resulting in low voltage and high power problems, and finally, the soc=rm/fcc×100 error is larger, which affects the calculation accuracy of the battery capacity, but in step S102 of this embodiment, the sampling current at the current time is already compensated, and the integrated power of the battery at the current time is calculated according to the compensated sampling current at the current time, that is, the compensation capacity Qcompensate is already calculated in step S102, so the calculation error of SOCAb _new can be reduced.
As can be seen from the above-mentioned calculation formula of the current absolute electric quantity SOCAb _new of the battery, when the initial absolute electric quantity SOCAb _int is obtained according to the open-circuit voltage value and Qpass is calculated in step S102 according to this embodiment, the first current absolute electric quantity is obtained and recorded as SOCAb _new1, and then the available battery capacity RM can be obtained by performing simulation according to the first current absolute electric quantity SOCAb _new1 and the initial absolute electric quantity SOCAb _int, and then the electric quantity SOC of the battery at the current moment can be calculated according to soc=rm/FCC.
In one example, in order to further improve the accuracy of calculating the battery power at the current time in the foregoing embodiment, the method for calculating the battery power according to this embodiment further includes: calculating a first output impedance corresponding to the battery under the condition of a first current absolute electric quantity and a battery temperature; obtaining an open-circuit voltage corresponding to the first output impedance as a first open-circuit voltage according to the corresponding relation between the output impedance of the battery and the open-circuit voltage; calculating a second current absolute electric quantity of the battery according to the first open-circuit voltage and the battery temperature; weighting calculation is carried out on the first current absolute electric quantity and the second current absolute electric quantity, and a target absolute electric quantity is obtained; and calculating the electric quantity of the battery at the current moment according to the target absolute electric quantity.
It can be understood that the absolute electric quantity of the battery has a certain preset relation with the open circuit voltage and the current temperature, and can be represented by an SOCAb (T) =f (OCV, T) model, where T represents the temperature, OCV represents the open circuit voltage, SOCAb (T) represents the absolute electric quantity of the battery at the temperature T, that is, soc_new=socab (T), and the temperature is T, and when the absolute electric quantity is the first current absolute electric quantity SOCAb _new1, the first output impedance Rout1 (SOCAb _new1, T) corresponding to the battery can be obtained through table lookup.
And the open circuit voltage and the output impedance of the battery have a corresponding relationship:
OCV=Vbat + sleep current * Rout(SOCAb(T),T)
Wherein Vbat is the cell voltage, sleep current is the current collected in the low power consumption mode, rout (SOCAb (T)), T is the battery output impedance corresponding to the current electric quantity, and can be obtained through table lookup.
From this, it can be seen that the open circuit voltage OCV1 corresponding to the first output impedance can be expressed as:
OCV1=Vbat + sleep current * Rout1(SOCAb_new1,T)
After OCV1 is obtained, the SOCAb (T) =f (OCV, T) model is reused to obtain a second current absolute electric quantity SOCAb _new2, SOCAb _new 2=f (OCV 1, T) corresponding to f (OCV 1, T).
And carrying out weighted calculation on the first current absolute electric quantity SOCAb _new1 and the second current absolute electric quantity SOCAb _new2 to obtain target absolute electric quantity, wherein SOC_new=a is SOCnew1+b is SOCnew2, and a and b are preset weights respectively, so that the electric quantity of the battery at the current moment can be calculated according to the target absolute electric quantity.
As can be seen from the above embodiments, in calculating the SOC of the battery, the soc_new and the soc_int need to be calculated, so that after the target absolute electric quantity is obtained, the present embodiment further updates the initial absolute electric quantity soc_int to obtain a more accurate SOC.
Specifically, according to the target absolute electric quantity, the calculating the electric quantity of the battery at the current moment includes: calculating a second output impedance corresponding to the battery under the condition of a second current absolute electric quantity and the battery temperature; obtaining an open-circuit voltage corresponding to the second output impedance as a second open-circuit voltage according to the corresponding relation between the output impedance of the battery and the open-circuit voltage; updating the initial absolute charge amount of the battery according to the second open-circuit voltage and the battery temperature; and calculating the electric quantity of the battery at the current moment according to the target absolute electric quantity and the updated initial absolute electric quantity.
The corresponding second output impedance Rout2 (SOCAb _new2, T) in the case of the temperature T and the current absolute power being the second current absolute power SOCAb _new2 can be obtained by table look-up.
The second open circuit voltage OCV2 is derived from Rout2 (SOCAb _new2, T):
OCV2=Vbat + sleep current * Rout2(SOCAb_new2,T)
Further, a preset battery model can be searched according to the OCV2, and an initial absolute charge amount soc_int corresponding to the OCV2 is obtained and used as an updated initial absolute charge amount. Further, the available battery capacity RM may be obtained by simulation according to the target absolute electric quantity soc_new=a× SOCnew +b× SOCnew2 and the updated initial absolute electric quantity SOCAb _int, and further, the electric quantity SOC of the battery at the current moment may be obtained by calculation according to soc=rm/FCC. That is, the above embodiment calculates the more accurate battery charge SOC by acquiring the more accurate target absolute charge soc_new and the initial absolute charge amount SOCAb _int.
The battery power calculation method according to the embodiment of the present application will be described by way of an example.
Fig. 3 shows a flowchart of battery power calculation according to an embodiment of the present application in a specific example, and referring to fig. 3, it is detected whether the electric device in which the battery is located is in a low power consumption mode. The method includes the steps that when the current of a battery is larger than or equal to a preset low-power consumption threshold, the electric equipment is represented to be in a normal operation mode, and when the current of the battery is smaller than the low-power consumption threshold, the electric equipment is represented to be in the low-power consumption mode. Under the condition that the electric equipment is in a normal operation mode, parameters such as initial absolute electric quantity, current absolute electric quantity and the like are directly calculated according to the current acquired sampling voltage and sampling current, and SOC is calculated.
And under the condition that the electric equipment is in a low power consumption mode, compensating the sampling current, specifically, compensating the sampling current at the current moment according to a preset number of historical sampling currents adjacent to the sampling current at the current moment.
And calculating the integral electric quantity of the battery at the current moment according to the compensated sampling current at the current moment.
And compensating the sampling voltage, predicting the voltage value of the moment when the voltage is not acquired in each sampling period by adopting a linear interpolation method, obtaining the voltage value of each moment in the preset sampling time, realizing the compensation of the sampling voltage, and calculating the voltage change rate of the battery in the preset sampling time period.
Judging whether the condition of acquiring the open-circuit voltage is reached or not according to the voltage change rate of the battery in a preset sampling time period, and taking the sampling voltage acquired at the current moment as the open-circuit voltage value if the sampling voltage change rate is smaller than or equal to a preset value, namely updating the initial absolute charge quantity and the current absolute capacity according to the open-circuit voltage value. If the sampling voltage change rate is greater than the preset value, the condition of obtaining the open-circuit voltage is not satisfied, the historical effective open-circuit voltage value is taken as the open-circuit voltage value corresponding to the current moment, namely the initial absolute charge quantity is not updated, the current absolute capacity is calculated through the integrated electric quantity of the battery and the historical initial absolute charge quantity, and the electric quantity SOC of the battery is calculated according to the current absolute capacity.
According to the embodiment, the compensation of the sampling current can be realized, the electric quantity of electric leakage is supplemented, the problem that the integrated electric quantity has the electric leakage is solved, the calculation precision of the integrated electric quantity is improved, the compensation of the sampling voltage can be realized, the calculation error of the voltage change rate can be reduced, so that an accurate open-circuit voltage value can be obtained, and the open-circuit voltage value can be compensated, so that a more accurate open-circuit voltage value can be obtained, and the electric quantity of a battery can be obtained.
Based on the same concept as the above battery power calculation method, this embodiment also provides a battery power calculation device, and fig. 4 shows a schematic structural diagram of the battery power calculation device provided by the embodiment of the present application, and as shown in fig. 4, an embodiment of the present application provides a battery power calculation device 400 including:
The sampling module 401 is configured to collect sampling currents and sampling voltages corresponding to a battery at different times when the electric equipment where the battery is located is in a low-power consumption mode;
the compensation module 402 is configured to compensate the current sampling current according to a preset number of historical sampling currents adjacent to the current sampling current, and calculate an integrated electric quantity of the battery at the current time according to the compensated current sampling current;
An open circuit voltage determining module 403, configured to calculate a voltage change rate of the battery in a preset sampling period according to the sampling voltage, and determine an open circuit voltage value corresponding to a current time according to the sampling voltage change rate;
And the electric quantity calculation module 404 is configured to calculate the electric quantity of the battery at the current moment according to the integrated electric quantity of the battery at the current moment and the open circuit voltage value.
In one example, the compensation module 402 is configured to calculate a sum of the current sampling current and the preset number of historical sampling currents; and taking the average value of the sum value as the sampling current at the current moment after compensation.
In one example, the compensation module 402 is further configured to obtain a real-time current of the battery, and determine that the electric equipment where the battery is located is switched from the low-power mode to the normal mode according to the real-time current being greater than or equal to a preset value; compensating the integral electric quantity of the battery at the current moment according to the difference value of the sampling current of the battery at the first moment and the sampling current of the battery at the second moment; the sampling current at the first moment is the sampling current acquired last time in the low power consumption mode, and the sampling current at the second moment is the sampling current acquired first time after the electric equipment is switched from the low power consumption mode to the normal mode.
In one example, the preset sampling period includes at least one sampling period, and the open-circuit voltage determining module 403 is configured to predict, by using a linear interpolation method, a voltage value at a time point when the voltage is not collected in each sampling period, so as to obtain a voltage value at each time point in the preset sampling period; calculating a first sum value and a second sum value in the sampling time according to the voltage value of each moment in the preset sampling time, wherein the first sum value is the voltage sum of each moment in the first half period of the preset sampling time, and the second sum value is the voltage sum of each moment in the second half period of the preset sampling time; and obtaining the voltage change rate of the battery in the preset sampling time according to the difference value between the second sum value and the first sum value and the sampling period number of the preset sampling time.
In one example, the open circuit voltage determining module 403 is configured to, when the rate of change of the sampled voltage is less than or equal to a preset value, take the sampled voltage acquired at the current time as the open circuit voltage value; and under the condition that the sampling voltage change rate is larger than the preset value, taking the historical effective open-circuit voltage value as the open-circuit voltage value corresponding to the current moment.
In one example, the power calculation module 404 is configured to obtain an initial absolute charge amount according to the open-circuit voltage value corresponding to the current time and a preset battery model, where the preset battery model includes a correspondence between the open-circuit voltage value and the initial absolute charge amount; calculating a first current absolute electric quantity of the battery according to the initial absolute electric quantity and the integral electric quantity of the battery; and obtaining the electric quantity of the battery at the current moment according to the first current absolute electric quantity of the battery.
In one example, the power calculation module 404 is configured to calculate a first output impedance corresponding to the battery under the first current absolute power and the battery temperature; obtaining an open-circuit voltage corresponding to the first output impedance as a first open-circuit voltage according to the corresponding relation between the output impedance of the battery and the open-circuit voltage; calculating a second current absolute electric quantity of the battery according to the first open-circuit voltage and the battery temperature; performing weighted calculation on the first current absolute electric quantity and the second current absolute electric quantity to obtain a target absolute electric quantity; and calculating the electric quantity of the battery at the current moment according to the target absolute electric quantity.
In one example, the power calculation module 404 is configured to calculate a second output impedance corresponding to the battery under the second current absolute power and the battery temperature; obtaining an open-circuit voltage corresponding to the second output impedance as a second open-circuit voltage according to the corresponding relation between the output impedance of the battery and the open-circuit voltage; updating the initial absolute charge amount of the battery according to the second open-circuit voltage and the battery temperature; and calculating the electric quantity of the battery at the current moment according to the target absolute electric quantity and the updated initial absolute electric quantity.
The battery power calculating device provided in this embodiment is based on the same concept of the battery power calculating method, so at least the above-mentioned beneficial effects can be achieved, and any of the above-mentioned embodiments can be applied to the battery power calculating device provided in this embodiment, and will not be described herein.
The foregoing description of various embodiments is intended to highlight differences between the various embodiments, which may be the same or similar to each other by reference, and is not repeated herein for the sake of brevity.
The embodiment of the application also provides an electronic device corresponding to the battery power calculation method provided by the embodiment of the application, so as to execute the battery power calculation method. Referring to fig. 5, fig. 5 is a schematic diagram of an electronic device according to some embodiments of the present application. As shown in fig. 5, the electronic device 20 includes: a processor 200, a memory 201, a bus 202 and a communication interface 203, the processor 200, the communication interface 203 and the memory 201 being connected by the bus 202; the memory 201 stores a computer program executable on the processor 200, and the processor 200 executes the method according to any of the foregoing embodiments of the present application when the computer program is executed.
The memory 201 may include a high-speed random access memory (RAM: random Access Memory), and may further include a non-volatile memory (non-volatile memory), such as at least one disk memory. The communication connection between the system network element and at least one other network element is implemented via at least one communication interface 203 (which may be wired or wireless), the internet, a wide area network, a local network, a metropolitan area network, etc. may be used.
Bus 202 may be an ISA bus, a PCI bus, an EISA bus, or the like. The buses may be classified as address buses, data buses, control buses, etc. The memory 201 is configured to store a program, and the processor 200 executes the program after receiving an execution instruction, and the battery power calculation method disclosed in any of the foregoing embodiments of the present application may be applied to the processor 200 or implemented by the processor 200.
The processor 200 may be an integrated circuit chip with signal processing capabilities. In implementation, the steps of the above method may be performed by integrated logic circuits of hardware in the processor 200 or by instructions in the form of software. The processor 200 may be a general-purpose processor, including a central processing unit (Central Processing Unit, abbreviated as CPU), a network processor (Network Processor, abbreviated as NP), etc.; but may also be a Digital Signal Processor (DSP), application Specific Integrated Circuit (ASIC), an off-the-shelf programmable gate array (FPGA) or other programmable logic device, discrete gate or transistor logic device, discrete hardware components. The disclosed methods, steps, and logic blocks in the embodiments of the present application may be implemented or performed. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like. The steps of the method disclosed in connection with the embodiments of the present application may be embodied directly in the execution of a hardware decoding processor, or in the execution of a combination of hardware and software modules in a decoding processor. The software modules may be located in a random access memory, flash memory, read only memory, programmable read only memory, or electrically erasable programmable memory, registers, etc. as well known in the art. The storage medium is located in the memory 201, and the processor 200 reads the information in the memory 201, and in combination with its hardware, performs the steps of the above method.
The electronic equipment provided by the embodiment of the application and the battery electric quantity calculation method provided by the embodiment of the application have the same beneficial effects as the method adopted, operated or realized by the electronic equipment for the same application conception.
The present application further provides a computer readable storage medium corresponding to the battery level calculation method provided in the foregoing embodiment, please refer to fig. 6, which illustrates a computer readable storage medium 30, the computer readable storage medium 30 may be an optical disc, and the optical disc may have a program product stored thereon, and the program product may be an operating system, application software, a game, tool software, etc., where the program product includes a computer program, and the computer program usually exists in a source code or a binary form after compiling, and when the computer program is executed by a processor, the computer program performs the battery level calculation method provided in any embodiment.
It should be noted that examples of the computer readable storage medium may also include, but are not limited to, a phase change memory (PRAM), a Static Random Access Memory (SRAM), a Dynamic Random Access Memory (DRAM), other types of Random Access Memory (RAM), a Read Only Memory (ROM), an Electrically Erasable Programmable Read Only Memory (EEPROM), a flash memory, or other optical or magnetic storage medium, which will not be described in detail herein.
The computer readable storage medium provided by the above embodiment of the present application has the same beneficial effects as the method adopted, operated or implemented by the application program stored in the computer readable storage medium, for the same application conception as the method for calculating the battery power provided by the embodiment of the present application.
It should be noted that:
The above embodiments are only for illustrating the technical solution of the present application, and not for limiting the same; although the application has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical scheme described in the foregoing embodiments can be modified or some or all of the technical features thereof can be replaced by equivalents; such modifications and substitutions do not depart from the spirit of the application, and are intended to be included within the scope of the appended claims and description. In particular, the technical features mentioned in the respective embodiments may be combined in any manner as long as there is no structural conflict. The present application is not limited to the specific embodiments disclosed herein, but encompasses all technical solutions falling within the scope of the claims.

Claims (11)

1. A battery charge calculation method, comprising:
under the condition that electric equipment where a battery is positioned is in a low power consumption mode, sampling current and sampling voltage corresponding to the battery at different moments are collected;
according to a preset number of historical sampling currents adjacent to the sampling current at the current moment, compensating the sampling current at the current moment, and calculating the integral electric quantity of the battery at the current moment according to the compensated sampling current at the current moment;
calculating the voltage change rate of the battery in a preset sampling time period according to the sampling voltage, and determining an open-circuit voltage value corresponding to the current moment according to the sampling voltage change rate;
And calculating the electric quantity of the battery at the current moment according to the integrated electric quantity of the battery at the current moment and the open-circuit voltage value.
2. The battery level calculation method according to claim 1, wherein compensating the sampling current at the present time according to a preset number of historical sampling currents adjacent to the sampling current at the present time, comprises:
Calculating the sum of the sampling currents at the current moment and the preset number of historical sampling currents;
and taking the average value of the sum value as the sampling current at the current moment after compensation.
3. The battery charge calculation method according to claim 1 or 2, characterized in that the method further comprises:
Acquiring the real-time current of the battery, and determining that the electric equipment where the battery is positioned is switched from the low-power consumption mode to a normal mode according to the fact that the real-time current is larger than or equal to a preset value;
Compensating the integral electric quantity of the battery at the current moment according to the difference value of the sampling current of the battery at the first moment and the sampling current of the battery at the second moment;
The sampling current at the first moment is the sampling current acquired last time in the low power consumption mode, and the sampling current at the second moment is the sampling current acquired first time after the electric equipment is switched from the low power consumption mode to the normal mode.
4. The battery charge calculation method according to claim 1, wherein the preset sampling period includes at least one sampling period, and calculating a voltage change rate of the battery in the preset sampling period from the sampling voltage includes:
predicting the voltage value of the voltage which is not acquired in each sampling period by adopting a linear interpolation method to obtain the voltage value of each time in the preset sampling time;
Calculating a first sum value and a second sum value in the sampling time according to the voltage value of each moment in the preset sampling time, wherein the first sum value is the voltage sum of each moment in the first half period of the preset sampling time, and the second sum value is the voltage sum of each moment in the second half period of the preset sampling time;
and obtaining the voltage change rate of the battery in the preset sampling time according to the difference value between the second sum value and the first sum value and the sampling period number of the preset sampling time.
5. The battery charge calculation method according to claim 1 or 4, wherein determining an open circuit voltage value corresponding to a current time according to the sampling voltage change rate includes:
Under the condition that the change rate of the sampling voltage is smaller than or equal to a preset value, taking the sampling voltage acquired at the current moment as the open-circuit voltage value;
And under the condition that the sampling voltage change rate is larger than the preset value, taking the historical effective open-circuit voltage value as the open-circuit voltage value corresponding to the current moment.
6. The battery charge calculation method according to claim 1, wherein calculating the charge of the battery at the present time from the integrated charge of the battery at the present time and the open circuit voltage value includes:
Obtaining an initial absolute charge amount according to the open-circuit voltage value corresponding to the current moment and a preset battery model, wherein the preset battery model comprises a corresponding relation between the open-circuit voltage value and the initial absolute charge amount;
Calculating a first current absolute electric quantity of the battery according to the initial absolute electric quantity and the integral electric quantity of the battery;
and obtaining the electric quantity of the battery at the current moment according to the first current absolute electric quantity of the battery.
7. The battery charge calculation method according to claim 6, characterized in that the method further comprises:
calculating a first output impedance corresponding to the battery under the condition of the first current absolute electric quantity and the battery temperature;
obtaining an open-circuit voltage corresponding to the first output impedance as a first open-circuit voltage according to the corresponding relation between the output impedance of the battery and the open-circuit voltage;
calculating a second current absolute electric quantity of the battery according to the first open-circuit voltage and the battery temperature;
performing weighted calculation on the first current absolute electric quantity and the second current absolute electric quantity to obtain a target absolute electric quantity;
and calculating the electric quantity of the battery at the current moment according to the target absolute electric quantity.
8. The battery charge calculation method according to claim 7, wherein the calculating the charge of the battery at the current time based on the target absolute charge includes:
Calculating a second output impedance corresponding to the battery under the condition of the second current absolute electric quantity and the battery temperature;
Obtaining an open-circuit voltage corresponding to the second output impedance as a second open-circuit voltage according to the corresponding relation between the output impedance of the battery and the open-circuit voltage;
updating the initial absolute charge amount of the battery according to the second open-circuit voltage and the battery temperature;
and calculating the electric quantity of the battery at the current moment according to the target absolute electric quantity and the updated initial absolute electric quantity.
9. A battery charge calculation device, the device comprising:
The sampling module is used for collecting sampling current and sampling voltage corresponding to the battery at different moments under the condition that the electric equipment where the battery is located is in a low-power consumption mode;
The compensation module is used for compensating the sampling current at the current moment according to a preset number of historical sampling currents adjacent to the sampling current at the current moment, and calculating the integral electric quantity of the battery at the current moment according to the compensated sampling current at the current moment;
The open-circuit voltage determining module is used for calculating the voltage change rate of the battery in a preset sampling time period according to the sampling voltage and determining an open-circuit voltage value corresponding to the current moment according to the sampling voltage change rate;
And the electric quantity calculation module is used for calculating the electric quantity of the battery at the current moment according to the integrated electric quantity of the battery at the current moment and the open-circuit voltage value.
10. An electronic device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, the processor running the computer program to implement the method of any one of claims 1-8.
11. A computer readable storage medium having stored thereon a computer program, wherein the program is executed by a processor to implement the method of any of claims 1-8.
CN202410793420.3A 2024-06-19 2024-06-19 Battery power calculation method, device, electronic equipment and storage medium Pending CN118362908A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202410793420.3A CN118362908A (en) 2024-06-19 2024-06-19 Battery power calculation method, device, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202410793420.3A CN118362908A (en) 2024-06-19 2024-06-19 Battery power calculation method, device, electronic equipment and storage medium

Publications (1)

Publication Number Publication Date
CN118362908A true CN118362908A (en) 2024-07-19

Family

ID=91886152

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202410793420.3A Pending CN118362908A (en) 2024-06-19 2024-06-19 Battery power calculation method, device, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN118362908A (en)

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106154176A (en) * 2016-07-01 2016-11-23 宁德时代新能源科技股份有限公司 Battery SOC detection method and device
CN108680867A (en) * 2018-05-21 2018-10-19 合肥工业大学 A kind of all-vanadium flow battery SOC on-line calibration methods based on cubage correction
CN112034366A (en) * 2020-08-25 2020-12-04 惠州市蓝微电子有限公司 SOC dynamic compensation method and electronic system
CN112415410A (en) * 2019-08-23 2021-02-26 比亚迪股份有限公司 Method and apparatus for estimating SOC of battery, storage medium, and vehicle
CN112986842A (en) * 2019-12-17 2021-06-18 比亚迪股份有限公司 Method, device and equipment for estimating state of charge of battery
KR102424671B1 (en) * 2022-02-10 2022-07-25 주식회사 크레스트 Apparatus and method for estimating soc of lithium iron phosphate battery
JP2023102159A (en) * 2022-01-11 2023-07-24 日産自動車株式会社 Battery control method and battery control device
CN116520167A (en) * 2023-04-03 2023-08-01 浙江欣动能源科技有限公司 SOC estimation method and device for self-adjusting zero point, electronic equipment and storage medium
CN117269786A (en) * 2023-08-18 2023-12-22 杭州鹏成新能源科技有限公司 Low-temperature working condition SOC correction method

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106154176A (en) * 2016-07-01 2016-11-23 宁德时代新能源科技股份有限公司 Battery SOC detection method and device
CN108680867A (en) * 2018-05-21 2018-10-19 合肥工业大学 A kind of all-vanadium flow battery SOC on-line calibration methods based on cubage correction
CN112415410A (en) * 2019-08-23 2021-02-26 比亚迪股份有限公司 Method and apparatus for estimating SOC of battery, storage medium, and vehicle
CN112986842A (en) * 2019-12-17 2021-06-18 比亚迪股份有限公司 Method, device and equipment for estimating state of charge of battery
CN112034366A (en) * 2020-08-25 2020-12-04 惠州市蓝微电子有限公司 SOC dynamic compensation method and electronic system
JP2023102159A (en) * 2022-01-11 2023-07-24 日産自動車株式会社 Battery control method and battery control device
KR102424671B1 (en) * 2022-02-10 2022-07-25 주식회사 크레스트 Apparatus and method for estimating soc of lithium iron phosphate battery
CN116520167A (en) * 2023-04-03 2023-08-01 浙江欣动能源科技有限公司 SOC estimation method and device for self-adjusting zero point, electronic equipment and storage medium
CN117269786A (en) * 2023-08-18 2023-12-22 杭州鹏成新能源科技有限公司 Low-temperature working condition SOC correction method

Similar Documents

Publication Publication Date Title
CN111239624B (en) Battery capacity calibration method and device, electronic equipment and storage medium
EP3734309B1 (en) Method and device for determining available capacity of battery, management system, and storage medium
CN109856542B (en) Calibration method of lithium battery SOC-OCV curve cluster, SOC correction method and device
CN111913109B (en) Method and device for predicting peak power of battery
CN111983495A (en) Battery pack health degree determination method and related device
JP2014025738A (en) Residual capacity estimation device
KR20130036712A (en) Battery management system and battery management method
CN111490304A (en) Battery equalization enabling method and device, storage medium and battery pack
Mian Qaisar A proficient Li-ion battery state of charge estimation based on event-driven processing
CN110673037B (en) Battery SOC estimation method and system based on improved simulated annealing algorithm
CN111426960A (en) Energy storage lithium battery charge state monitoring method and device
CN113093027B (en) Battery SOC calibration method, device, system, medium and program product
CN110133515B (en) Method and device for determining remaining energy of battery
Saldana et al. Empirical calendar ageing model for electric vehicles and energy storage systems batteries
CN110988701B (en) Battery available energy determination method, device, management system and storage medium
CN110687460B (en) Soc estimation method
CN117517979B (en) Battery parameter updating method and device, electronic equipment and storage medium
CN115754736A (en) SOC calibration method and device for charging and discharging tail ends of energy storage system
CN117420463B (en) Method and device for updating chemical capacity of battery, electronic equipment and storage medium
CN117648899A (en) Battery modeling method, device, electronic equipment and storage medium
CN114137415A (en) Method and device for detecting calorific value of battery pack, vehicle, and storage medium
CN118011254A (en) SVR-based battery health state prediction method, system and equipment
CN110068409B (en) Lithium battery stress prediction method and device
CN117368767A (en) Lithium battery state of charge estimation method and system based on ampere-hour integration method
CN114487887A (en) Battery health degree measuring method, device, equipment and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination