Battery power calibration method and device of battery equipment and storage medium
By receiving an activation command in the battery device to trigger a timer, the battery voltage is periodically collected and the SOC curve is updated, thus solving the problem of large SOC estimation error in the battery device and achieving more accurate power calculation.
Patent Information
- Application Number
- CN202510978055.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2025-07-16
- Publication Date
- 2025-11-04
- Estimated Expiration
- 2045-07-16
AI Technical Summary
In existing technologies, the SOC estimation methods for battery devices have significant errors, especially in the low and high charge ranges, where they fail to accurately reflect the actual state of the battery, leading to inaccurate charge calculations.
By receiving an activation command to trigger a timer, the battery voltage is periodically collected. The voltage value is then retrieved using a preset SOC curve table to determine the difference in battery percentage. The SOC curve table is then updated to adapt to battery degradation and improve estimation accuracy.
Real-time monitoring of battery degradation and adjustment of the SOC curve improve the accuracy of SOC estimation for battery devices and reduce errors in power calculation.
Smart Images

Figure CN120595134B_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of battery calibration, and more particularly to a method, apparatus, and storage medium for calibrating the battery capacity of a battery device. Background Technology
[0002] Batteries are widely used in security equipment, consumer electronics, and energy storage devices. The discharge curve of a battery is not linear; it exhibits a parabolic shape. Please refer to [reference needed]. Figure 1 , Figure 1 This is a schematic diagram of the SOC curve of a battery during discharge. Figure 1 The horizontal axis represents the discharge capacity Q (Ah), and the vertical axis represents the battery voltage U (V), with the main voltage concentrated in the range of 3.6V-3.7V.
[0003] Accurate estimation of remaining battery capacity (SOC) is one of the core functions of a battery management system. Traditional SOC estimation methods mainly include the open-circuit voltage method, the ampere-hour integration method, and the Kalman filter method. However, these methods have the following problems in practical applications:
[0004] 1. The open-circuit voltage method derives battery capacity by monitoring battery voltage. Because the relationship between battery capacity and voltage is not linear, this testing method is not accurate. Especially when the battery capacity is below 50%, the capacity calculation becomes highly inaccurate.
[0005] 2. The ampere-hour integration method is easily affected by current measurement errors and initial state of charge (SOC) errors.
[0006] 3. Kalman filtering is a software method, and its computational complexity makes it unsuitable for embedded systems.
[0007] In addition, the discharge characteristics of batteries are usually nonlinear, especially in the low and high charge ranges, and traditional methods are difficult to accurately reflect the actual state of the battery.
[0008] Taking action cameras as an example, if the State of Charge (SOC) estimation error exceeds 20%, the camera will enter a low-battery shutdown process when it displays 20% battery remaining. However, the next time it's turned on, the action camera might still show 20% battery remaining. Furthermore, action cameras consume a lot of power during recording. For instance, a 1350mAh lithium battery can work for about an hour in standby mode before shutting down due to low battery, but only for about half an hour in recording mode. Under heavy camera load, the battery voltage becomes unstable, resulting in a lower detected voltage value and a larger SOC estimation error. Therefore, a new technology is needed to address the current problem of large errors in SOC estimation for battery devices. Summary of the Invention
[0009] The main purpose of the present application is to solve the technical problem of large error in the current SOC estimation of the battery device.
[0010] The first aspect of the present application provides a battery power calibration method of a battery device, comprising the steps of:
[0011] receiving an opening instruction of the battery device, and triggering a preset timer based on the opening instruction;
[0012] collecting the battery voltage according to the preset collection timer to obtain a voltage value;
[0013] reading a previous power percentage of the battery device, and querying and processing the voltage value according to a preset SOC curve table to obtain an instantaneous power percentage;
[0014] determining whether the difference between the instantaneous power percentage and the previous power percentage is greater than a preset jump threshold;
[0015] when the jump threshold is greater, determining whether the running state of the battery device changes;
[0016] when the running state does not change, reading the statistical duration of the timer, and recording and increasing the preset SOC curve update table based on the statistical duration to generate a new SOC curve update table, wherein the SOC curve update table comprises: record number and accumulated duration;
[0017] determining whether the record number corresponding to the new SOC curve update table is equal to a preset correction threshold;
[0018] when the record number is equal to the preset correction threshold, calculating a battery attenuation ratio according to the accumulated duration;
[0019] updating the SOC curve table based on the battery attenuation ratio to obtain a new SOC curve table.
[0020] Optionally, in the first implementation manner of the first aspect of the present application, the running state comprises a working state, and the SOC curve table comprises a working SOC curve table and a standby SOC curve table; the reading of the previous power percentage of the battery device and the querying and processing of the voltage value according to the preset SOC curve table to obtain the instantaneous power percentage comprises:
[0021] reading the previous power percentage of the battery device, and querying a previous voltage value corresponding to the previous power percentage;
[0022] determining whether the voltage value is less than the previous voltage value;
[0023] when less than the previous voltage value, the voltage value is assigned to the previous voltage value;
[0024] determining whether the running state of the battery device is in the working state;
[0025] when not in the working state, according to the previous voltage value, the standby SOC curve table is inquired to obtain the instantaneous power percentage;
[0026] when in the working state, according to the previous voltage value, the working SOC curve table is inquired to obtain the instantaneous power percentage.
[0027] Optionally, in the second implementation manner of the first aspect of the present application, the SOC curve update table comprises: a working SOC curve update table and a standby SOC curve update table; the recording and increasing processing of the preset SOC curve update table based on the statistical duration to generate a new SOC curve update table comprises:
[0028] determining whether the running state of the battery device changes in the statistical duration;
[0029] when no change exists, if the battery device is in the working state, the recording number of the working SOC curve update table is increased by 1 to generate a new recording number, and the statistical duration is added to the accumulated duration of the working SOC curve update table to generate a new accumulated duration;
[0030] if the battery device is not in the working state, the recording number of the standby SOC curve update table is increased by 1 to generate a new recording number, and the statistical duration is added to the accumulated duration of the standby SOC curve update table to generate a new accumulated duration.
[0031] Optionally, in the third implementation manner of the first aspect of the present application, the calculation of the battery attenuation ratio based on the accumulated duration comprises:
[0032] calculating the mean value of the accumulated duration according to the recording number to obtain a mean duration;
[0033] reading a preset factory setting duration;
[0034] dividing the mean duration by the factory setting duration to obtain the battery attenuation ratio.
[0035] Optionally, in the fourth implementation manner of the first aspect of the present application, the updating processing of the SOC curve table based on the battery attenuation ratio to obtain a new SOC curve table comprises:
[0036] Based on the battery attenuation ratio, the battery voltage of the SOC curve table is adjusted proportionally to obtain a new SOC curve table.
[0037] Optionally, in the fifth implementation form of the first aspect of the present application, the judging whether the difference between the instantaneous power percentage and the previous power percentage is greater than the preset jump threshold comprises:
[0038] Judging whether the battery device is in a charging state;
[0039] When in the charging state, judging whether the instantaneous power percentage is equal to the previous power percentage;
[0040] When equal, re-judging whether the battery device is in the charging state;
[0041] When not equal, judging whether the difference between the instantaneous power percentage and the previous power percentage is greater than the preset jump threshold;
[0042] When not in the charging state, judging whether the difference between the instantaneous power percentage and the previous power percentage is greater than the preset jump threshold.
[0043] Optionally, in the sixth implementation form of the first aspect of the present application, the collecting the battery voltage according to the preset collection timer to obtain a voltage value comprises:
[0044] Starting the preset collection timer;
[0045] Judging whether the count of the collection timer overflows;
[0046] When the count of the collection timer overflows, collecting N battery voltages at a periodic interval based on a preset interval length to obtain N sample values, wherein N is a positive integer;
[0047] Performing truncated mean processing on the N sample values to obtain the voltage value.
[0048] Optionally, in the seventh implementation form of the first aspect of the present application, after the SOC curve table is updated based on the battery attenuation ratio to obtain a new SOC curve table, the method further comprises:
[0049] Clearing the new SOC curve update table to obtain a reset SOC curve update table.
[0050] The second aspect of the present application provides a battery power calibration device of a battery device, comprising a memory and at least one processor, the memory stores instructions, and the memory and the at least one processor are interconnected by a circuit; the at least one processor invokes the instructions in the memory to enable the battery power calibration device of the battery device to perform the battery power calibration method of the battery device.
[0051] The third aspect of the present application provides a computer readable storage medium, which stores instructions, when running on a computer, enables the computer to perform the battery power calibration method of the battery device.
[0052] In the embodiment of the present application, the running time of the battery in the set jump interval is counted by using the SOC curve update table, and then the battery attenuation ratio is calculated by using the SOC curve update table, and the original SOC curve is updated by using the battery attenuation ratio, so that the SOC measurement standard of the battery device is continuously adjusted during use, the attenuation ratio of the battery is monitored in real time, the SOC curve of the battery device is adjusted according to the attenuation ratio, and the SOC estimation accuracy of the battery device is improved. BRIEF DESCRIPTION OF DRAWINGS
[0053] Figure 1 The SOC curve diagram for discharging the battery;
[0054] Figure 2 An embodiment of the battery power calibration method of the battery device in the embodiment of the present application;
[0055] Figure 3 The ADC sampling circuit diagram of the battery voltage in the embodiment of the present application;
[0056] Figure 4 An embodiment of the battery power calibration method of the battery device in the embodiment of the present application;
[0057] Figure 5 An embodiment of the battery power calibration device of the battery device in the embodiment of the present application. DETAILED DESCRIPTION
[0058] The embodiment of the present application provides a battery power calibration method, device and storage medium of a battery device.
[0059] Embodiments of the present disclosure will be described below in greater detail with reference to the accompanying drawings. While certain embodiments of the present disclosure are shown in the drawings, it is understood that the present disclosure can be embodied in various forms and should not be construed as being limited to the embodiments set forth herein, but rather, these embodiments are provided so that the present disclosure can be more thoroughly and completely understood. It is understood that the drawings and embodiments of the present disclosure are for exemplary purposes only and are not intended to limit the scope of protection of the present disclosure.
[0060] In the description of embodiments of the present disclosure, the term "comprising" and its conjugations should be understood as open-ended, i.e., "including but not limited to". The term "based on" should be understood as "based at least in part on". The term "one embodiment" or "an embodiment" should be understood as "at least one embodiment". The terms "first", "second" and the like can refer to different or identical objects. Other explicit or implicit definitions can also be included below.
[0061] For ease of understanding, the specific flow of the embodiments of the present disclosure is described below. Please refer to Figure 2 One embodiment of the battery capacity calibration method of the battery device in the embodiments of the present disclosure includes the following steps:
[0062] 101, receiving an opening instruction of the battery device, triggering a preset timer based on the opening instruction;
[0063] In this embodiment, the battery device receives an opening instruction, which is used to turn on the battery device, and triggers a timer to calculate the working time of the battery after turning on. After the battery device is turned on, there are two running states, one is working state and the other is standby state. The voltage consumption rate and voltage proportion of the two states are different. The timer can distinguish the type of time length or not distinguish the type of time length and check whether the running state of the battery device is maintained in the subsequent analysis process. The user can set it according to the demand.
[0064] 102, collecting the battery voltage according to the preset collection timer to obtain the voltage value;
[0065] In this embodiment, the battery voltage is obtained by sampling the hardware ADC circuit. Please refer to Figure 3 , Figure 3The schematic diagram of the ADC sampling circuit of the battery voltage in the embodiment of the application. The voltage of 4.2V is divided by the voltage dividing circuit composed of two resistors R72 and R83 with resistance of 200KΩ, and the divided voltage is sent to the secondary circuit. In the secondary circuit, the voltage is filtered by the capacitor C89 with capacitance of 100nF, so that the output voltage is more stable, and then the voltage is limited to 0-3.3V by the diode protection circuit. When the voltage is greater than 3.3V, the diode is forward-biased, and the voltage is limited to 3.3V. When the voltage is less than 0V, the diode is forward-biased, and the voltage is limited to 0V. During the ADC voltage acquisition process, the acquisition timer is set, for example, to 1 second for acquisition of the battery voltage once, and the voltage value is obtained.
[0066] Further, the following specific embodiments are included in step 102:
[0067] 1021, starting a preset acquisition timer;
[0068] 1022, judging whether the count of the acquisition timer overflows;
[0069] 1023, when the count of the acquisition timer overflows, periodically acquiring N battery voltages based on a preset interval length to obtain N sampling values, wherein N is a positive integer;
[0070] 1024, performing truncated mean processing on the N sampling values to obtain a voltage value.
[0071] In steps 1021-1024, the acquisition timer is started, and the count of the timer is set to a count limit of 1 second. Then it is judged whether the count of the acquisition timer overflows. If the count of the acquisition timer overflows, it means that one second has passed. The interval is set to 10 milliseconds, and 20 battery voltages are acquired every 10 milliseconds to obtain 20 sampling values. The maximum value and the minimum value are removed from the 20 sampling values, and the average value of the remaining 18 sampling values is obtained as the final single sampling result, and the voltage value is obtained. Due to the power supply fluctuation of hardware, external interference (such as electromagnetic interference), and other factors, errors may occur in the ADC conversion process. The present solution overcomes the acquisition error of the hardware battery voltage acquisition.
[0072] 103, reading the previous voltage percentage of the battery device, and querying the voltage value according to a preset SOC curve table to obtain an instantaneous power percentage;
[0073] In the embodiment, the variable name of the previous voltage percentage is created in the battery device in advance. Except for the initial value in the first activation, the previous voltage percentage is the voltage percentage retained in the last acquisition.
[0074] In the battery device, a SOC curve table with a factory setting is built-in, the SOC curve table has mapping data corresponding to the battery voltage and the battery power percentage, and the voltage value corresponding to the power is inquired through the pre-set SOC curve table (if the SOC curve table is updated, the latest SOC curve table is used), so as to obtain the instantaneous power percentage.
[0075] Specifically, please refer to Figure 4 , Figure 4 is a specific embodiment of the 103 steps of the battery power calibration method of the battery device in the embodiment of the application, the running state includes: a working state, and the SOC curve table includes: a working SOC curve table and a standby SOC curve table; in the 103 steps, the following specific embodiments are included:
[0076] 1031, reading the previous power percentage of the battery device, and inquiring the previous voltage value corresponding to the previous power percentage;
[0077] 1032, judging whether the voltage value is less than the previous voltage value;
[0078] 1033, when the voltage value is less than the previous voltage value, the voltage value is assigned to the previous voltage value;
[0079] 1034, judging whether the running state of the battery device is in the working state;
[0080] 1035, when the running state is not in the working state, the previous voltage value is inquired from the standby SOC curve table to obtain the instantaneous power percentage;
[0081] 1036, when the running state is in the working state, the previous voltage value is inquired from the working SOC curve table to obtain the instantaneous power percentage.
[0082] In the steps 1031-1036, the previous power percentage stored in the battery device is read first, and then the previous voltage value corresponding to the previous power percentage is inquired through the SOC curve table.
[0083] Since there may be a small error in each sampling result, the battery power displayed on the display screen may fluctuate left and right probabilistically. It is analyzed whether the voltage value is less than the previous voltage value, when the voltage value is less than the previous voltage value, the voltage value is assigned to the previous voltage value, the jitter in the instantaneous power acquisition is reduced, and the voltage value is used in the process, each time the instantaneous power percentage is inquired, only from large to small, so as to avoid the jitter.
[0084] The working SOC curve table can refer to the content of Table 1 below.
[0085] Table 1, working SOC curve table
[0086]
[0087] The standby SOC curve table can refer to the content of Table 2 below.
[0088] Table 2, standby SOC curve table
[0089]
[0090] determining whether the running state of the battery device is in the working state, if in the working state, calling the working SOC curve, querying the percentage of the electric quantity corresponding to the previous voltage value after assignment, obtaining an instantaneous percentage of electric quantity.
[0091] If not in the working state, it is considered that the battery device is in the standby state at this time, and the standby SOC curve table is called to query the percentage of the electric quantity corresponding to the previous voltage value after assignment, and an instantaneous percentage of electric quantity is obtained.
[0092] 104, determining whether the difference between the instantaneous percentage of electric quantity and the previous percentage of electric quantity is greater than a preset jump threshold value;
[0093] In this embodiment, it is determined whether the difference between the instantaneous percentage of electric quantity and the previous percentage of electric quantity is greater than the jump threshold value 10%, and if it is greater than the jump threshold value 10%, it is considered that the information collection in the setting interval has been completed at this time.
[0094] Further, the following specific implementation is included in the step 104:
[0095] 1041, determining whether the battery device is in the charging state;
[0096] 1042, when in the charging state, determining whether the instantaneous percentage of electric quantity and the previous percentage of electric quantity are equal;
[0097] 1043, when equal, re-determining whether the battery device is in the charging state;
[0098] 1044, when not equal, determining whether the difference between the instantaneous percentage of electric quantity and the previous percentage of electric quantity is greater than a preset jump threshold value;
[0099] 1045, when not in the charging state, determining whether the difference between the instantaneous percentage of electric quantity and the previous percentage of electric quantity is greater than a preset jump threshold value.
[0100] In the steps 1041-1045, if the battery device is in the charging state, first analyze the instantaneous battery percentage and the previous battery percentage. If they are equal, there is no change, and return to step 1041 to determine whether the battery device is in the charging state. If they are not equal, it is considered that there is a difference between the instantaneous battery percentage and the previous battery percentage, and further determine whether the difference between the instantaneous battery percentage and the previous battery percentage is greater than the preset jump threshold. This processing can adjust the percentage during charging, and further set the collected battery capacity to be greater than the previous collected battery capacity in the charging state, and use the newly collected battery capacity to prevent battery jitter in the opposite way to the non-charging state.
[0101] If the battery device is not in the charging state, normally determine whether the difference between the instantaneous battery percentage and the previous battery percentage is greater than the preset jump threshold.
[0102] 105、When greater than the jump threshold, determine whether the running state of the battery device has changed;
[0103] In this embodiment, if the instantaneous battery percentage is less than the previous battery percentage by more than the jump threshold, analyze whether the running state of the battery device has changed within the statistical duration of the instantaneous battery percentage.
[0104] 106、When the running state has not changed, read the statistical duration of the timer, and based on the statistical duration, record and increase the processing of the preset SOC curve update table to generate a new SOC curve update table, wherein the SOC curve update table includes: record number, cumulative duration;
[0105] In this embodiment, if the running state of the battery device has not changed, read the statistical duration of the timer to change the battery capacity percentage jump threshold of the battery device, and write the statistical duration of the jump interval, such as the battery power consumption from 50% to 40% and the voltage from 2940 to 2900, into the SOC curve update table to obtain a new SOC curve update table.
[0106] In the SOC curve update table, there is a record number of the jump from 50% to 40% and a cumulative duration of the cumulative statistical duration.
[0107] Specifically, the SOC curve update table includes: working SOC curve update table, standby SOC curve update table; In step 106, the following specific embodiments are included:
[0108] 1061、Determine whether the running state of the battery device has changed in the statistical duration;
[0109] 1062、when there is no change, if the battery device is in working state, the record number of the working SOC curve update table is increased by 1, a new record number is generated, the statistical time length is added to the accumulated time length of the working SOC curve update table, and a new accumulated time length is generated;
[0110] 1063、if the battery device is not in working state, the record number of the standby SOC curve update table is increased by 1, a new record number is generated, and the statistical time length is added to the accumulated time length of the standby SOC curve update table, and a new accumulated time length is generated.
[0111] In steps 1061-1063, within the range of the statistical time length, whether the running state of the battery device has changed, if there is no change, the working SOC curve update table and the standby SOC curve update table are updated according to whether the battery device is in working state or standby state.
[0112] For example, it can be specified that when the battery power percentage changes by 0-100%, the record number of the working SOC curve update table or the standby SOC curve update table is increased by 1, from 8 to 9. Then, the statistical time length is added to the accumulated time length, a new accumulated time length is generated, and a new working SOC curve update table or standby SOC curve update table is obtained.
[0113] For example, it can be specified that when the battery power percentage changes by 0-100%, the record number of the working SOC curve update table or the standby SOC curve update table is increased by 1, from 8 to 9. Then, the statistical time length is added to the accumulated time length, a new accumulated time length is generated, and a new working SOC curve update table or standby SOC curve update table is obtained.
[0114] 107、determine whether the record number corresponding to the new SOC curve update table is equal to the preset correction threshold value;
[0115] In this embodiment, a single battery power percentage change interval can be specified to determine whether the record number corresponding to the new SOC curve update table is equal to the preset correction threshold value.
[0116] The battery power percentage change interval of 100%-0% can also be specified to determine whether the record number corresponding to each battery power percentage change interval of the new SOC curve update table is equal to the preset correction threshold value, and all intervals satisfy the equal correction threshold value to modify the SOC curve table.
[0117] The above limitations can be set according to requirements. It should be noted that the new SOC curve update table corresponding record number can specify the battery percentage change interval in a single interval, and whether the new SOC curve update table corresponding record number in a single battery percentage change interval is equal to the preset correction threshold is determined respectively. If it is a whole, 10 SOC curve update table corresponding record numbers can be designed, and whether the record number is equal to the correction threshold is analyzed independently, or the SOC curve update table corresponding record number is equal to the correction threshold after the Boolean value is used to determine that the record number is equal to the correction threshold. The design can be similar to the relationship between parallel communication and series communication, and the influence of any conduction and all conduction on the whole.
[0118] 108、When equal to the preset correction threshold, the battery attenuation ratio is calculated according to the accumulated duration;
[0119] In this embodiment, for a specified single battery percentage change interval, the accumulated duration is calculated to obtain the duration mean value, and the duration mean value is divided by the factory duration of the single battery percentage change interval to obtain the battery attenuation ratio.
[0120] For example, when the correction threshold is 3, the battery percentage change interval of 100%~90% is segmented and accumulated to obtain the accumulated duration. Assuming that the factory standby working duration is 100 minutes and the accumulated duration is 270 minutes, the mean value is 90 minutes, and the attenuation ratio is 90 / 100=0.9. The attenuation ratio is used to show the remaining working duration of the battery. The attenuation ratio calculation is completed as the starting point, and the voltage value corresponding to the SOC curve table is updated according to the new working duration every time the device is turned on until all segments are updated, and a new standby curve table can be obtained.
[0121] In another embodiment, the correction threshold is 1, the battery percentage change interval of 100%~0% is divided into 10 segmented battery percentage change intervals, each of which has a statistical duration accumulated duration, the total accumulated duration is 90 minutes, and the factory standby working duration is 100 minutes. The attenuation ratio is 90 / 100=0.9.
[0122] In another embodiment, the correction threshold is 3, the battery percentage change interval of 100%~0% is divided into 10 segmented battery percentage change intervals, each of which has a statistical duration accumulated duration, the total accumulated duration is 90 minutes, and the factory standby working duration is 100 minutes. The attenuation ratio is 90 / 100=0.9.
[0123] Further, the 108 step includes the following specific embodiments:
[0124] 1081、According to the number of records, the average of the cumulative duration is calculated, and the average duration is obtained.
[0125] 1082、Read the preset factory setting duration;
[0126] 1083、The average duration is divided by the factory setting duration to obtain the battery attenuation ratio.
[0127] In steps 1081-1083, 40%-50% of the battery power percentage change interval, there are 15 records, the cumulative duration of 40%-50% of the battery power percentage change interval is 120 minutes, and the average duration is 8 minutes.
[0128] The factory setting duration of 40%-50% of the battery power percentage change interval is 10 minutes, and the attenuation ratio is 8 / 10=0.8.
[0129] 109、Based on the battery attenuation ratio, the SOC curve table is updated to obtain a new SOC curve table.
[0130] In this embodiment, the factory setting duration of 40%-50% of the battery power percentage change interval is 10 minutes, and the attenuation ratio is 8 / 10=0.8. The voltage value of 40%-50% in the SOC curve table is updated by 0.8 to obtain a new SOC curve table.
[0131] In another embodiment, the battery power percentage change interval of 100%-0% has a cumulative duration of 3 statistical durations, and the cumulative duration is 85 minutes, 90 minutes, and 85 minutes in turn. The average is 90 minutes, the factory standby working duration is 100 minutes, and the attenuation ratio is 90 / 100=0.9. The 10 voltage values corresponding to 100%-0% in the SOC curve table are updated by 0.9 to obtain a new SOC curve table.
[0132] Further, the following specific embodiments are included after step 109:
[0133] 1091、The new SOC curve update table is cleared to obtain a reset SOC curve update table.
[0134] In step 1091, after updating the SOC curve table once, the new SOC curve update table is cleared to obtain a reset SOC curve update table, and the duration of each battery percentage change interval is recorded again.
[0135] In the embodiment of the present application, the running time of the battery in the set jump interval is counted by using the SOC curve update table, and then the battery attenuation ratio is calculated by using the SOC curve update table, and the original SOC curve is updated by using the battery attenuation ratio, so that the SOC measurement standard of the battery device is continuously adjusted during use, the attenuation ratio of the battery is monitored in real time, the SOC curve of the battery device is adjusted according to the attenuation ratio, and the SOC estimation accuracy of the battery device is improved.
[0136] Figure 5 Fig. 1 is a structural schematic diagram of a battery power calibration device of a battery device provided by an embodiment of the present application. The battery power calibration device 500 of the battery device can have relatively large differences due to different configurations or performances, and can include one or more processors (central processing units, CPUs) 510 (for example, one or more processors) and a memory 520, one or more storage media 530 (for example, one or more mass storage devices) storing application programs 533 or data 532. The memory 520 and the storage media 530 can be temporary storage or persistent storage. The programs stored in the storage media 530 can include one or more modules (not shown in the figure), and each module can include a series of instruction operations on the battery power calibration device 500 of the battery device. Furthermore, the processor 510 can be configured to communicate with the storage media 530 and execute the series of instruction operations in the storage media 530 on the battery power calibration device 500 of the battery device.
[0137] The battery power calibration device 500 based on the battery device can also include one or more power supplies 540, one or more wired or wireless network interfaces 550, one or more input and output interfaces 560, and / or one or more operating systems 531, such as Windows Server, Mac OS X, Unix, Linux, Free BSD, etc. Those skilled in the art can understand that the battery power calibration device 500 based on the battery device can include more or fewer components than those shown in the figure, or some components can be combined, or different components can be arranged. Figure 5 The structure of the battery power calibration device of the battery device shown in the figure does not constitute a limitation on the battery power calibration device based on the battery device, and can include more or fewer components than those shown in the figure, or some components can be combined, or different components can be arranged.
[0138] The present application also provides a computer readable storage medium, which can be a non-volatile computer readable storage medium or a volatile computer readable storage medium, and the computer readable storage medium stores instructions, and when the instructions run on a computer, the computer executes the steps of the battery power calibration method of the battery device.
[0139] In the context of this disclosure, a machine-readable medium can be a tangible medium that contains or stores a program for use by or in connection with an instruction execution system, apparatus, or device. The machine-readable medium can be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium can include but is not limited to an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any suitable combination of the foregoing. More specific examples of a machine-readable storage medium will include one or more lines of electrical connections, portable computer disks, hard disk drives, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or Flash memory), optical fiber, portable compact disc read-only memory (CD-ROM), optical storage device, magnetic storage device, or any suitable combination of the foregoing.
[0140] Moreover, while operations have been depicted in a particular order, this should not be understood as requiring such order nor that all illustrated operations be performed, to achieve desirable results. In certain circumstances, multitasking and parallel processing can be advantageous. Likewise, while several specific implementation details have been discussed, these should not be construed as limitations on the scope of the disclosure. Certain features that are described in the context of separate embodiments can also be implemented in combination in a single embodiment. Conversely, various features that are described in the context of a single embodiment can also be implemented in multiple embodiments separately or in any suitable sub-combination.
[0141] Although the subject matter has been described in language specific to structural features and / or methodological acts, it is to be understood that the subject matter defined in the appended claims is not necessarily limited to the specific features or acts described above. Rather, the specific features and acts described above are disclosed as example forms of implementing the claims.
Claims
1. A battery charge calibration method of a battery device, characterized by, The method comprises the steps of: receiving an opening instruction of the battery device, triggering a preset timer based on the opening instruction; collecting the battery voltage according to the preset collection timer to obtain a voltage value; reading a previous power percentage of the battery device, and querying the voltage value according to a preset SOC curve table to obtain an instantaneous power percentage; judging whether the difference between the instantaneous power percentage and the previous power percentage is greater than a preset jump threshold value; when the difference is greater than the jump threshold value, judging whether the running state of the battery device changes; when the running state does not change, reading the statistical duration of the timer, and recording and increasing the preset SOC curve update table based on the statistical duration to generate a new SOC curve update table, wherein the SOC curve update table comprises a record number and an accumulated duration; judging whether the record number corresponding to the new SOC curve update table is equal to a preset correction threshold value; when the record number is equal to the preset correction threshold value, calculating a battery attenuation ratio according to the accumulated duration; updating the SOC curve table based on the battery attenuation ratio to obtain a new SOC curve table.
2. The battery level calibration method of a battery device according to claim 1, wherein, The running state comprises a working state, and the SOC curve table comprises a working SOC curve table and a standby SOC curve table; the reading of the previous power percentage of the battery device and the querying of the voltage value according to the preset SOC curve table to obtain the instantaneous power percentage comprises: reading the previous power percentage of the battery device, and querying a previous voltage value corresponding to the previous power percentage; judging whether the voltage value is less than the previous voltage value; when the voltage value is less than the previous voltage value, assigning the voltage value to the previous voltage value; judging whether the running state of the battery device is in the working state; when the running state is not in the working state, traversing and querying the standby SOC curve table according to the previous voltage value to obtain the instantaneous power percentage; when the running state is in the working state, traversing and querying the working SOC curve table according to the previous voltage value to obtain the instantaneous power percentage.
3. The battery level calibration method of a battery device according to claim 2, wherein, The SOC curve update table comprises a working SOC curve update table and a standby SOC curve update table; the recording and increasing of the preset SOC curve update table based on the statistical duration to generate the new SOC curve update table comprises: judging whether the running state of the battery device changes in the statistical duration; when the running state does not change, if the battery device is in the working state, increasing the record number of the working SOC curve update table by 1 to generate a new record number, and adding the statistical duration to the accumulated duration of the working SOC curve update table to generate a new accumulated duration; if the battery device is not in the working state, increasing the record number of the standby SOC curve update table by 1 to generate a new record number, and adding the statistical duration to the accumulated duration of the standby SOC curve update table to generate a new accumulated duration.
4. The battery power calibration method of battery apparatus according to claim 1, wherein, The calculation of the battery attenuation ratio according to the accumulated duration comprises: According to the recording number, the mean value of the accumulated duration is calculated to obtain a mean duration; A preset factory setting duration is read; The mean duration is divided by the factory setting duration to obtain a battery attenuation ratio.
5. The battery power calibration method of battery apparatus according to claim 1, wherein, The SOC curve table is updated based on the battery attenuation ratio to obtain a new SOC curve table, which includes: The battery voltage of the SOC curve table is adjusted in proportion based on the battery attenuation ratio to obtain a new SOC curve table.
6. The battery power calibration method of battery apparatus according to claim 1, wherein, The difference between the instantaneous power percentage and the previous power percentage is determined, which includes: It is determined whether the battery device is in a charging state; When in a charging state, it is determined whether the instantaneous power percentage is equal to the previous power percentage; When equal, it is determined whether the battery device is in a charging state again; When not equal, it is determined whether the difference between the instantaneous power percentage and the previous power percentage is greater than a preset jump threshold; When not in a charging state, it is determined whether the difference between the instantaneous power percentage and the previous power percentage is greater than a preset jump threshold.
7. The battery power calibration method of battery device according to claim 1, wherein, The battery voltage is collected according to a preset collection timer to obtain a voltage value, which includes: A preset collection timer is started; It is determined whether the count of the collection timer is overflowed; When the count of the collection timer is overflowed, N battery voltages are collected at a periodic interval based on a preset interval duration to obtain N sample values, where N is a positive integer; The N sample values are processed by a truncated mean value to obtain a voltage value.
8. The battery power calibration method of battery apparatus according to claim 1, wherein, After the SOC curve table is updated based on the battery attenuation ratio to obtain a new SOC curve table, it further includes: The new SOC curve update table is cleared to obtain a reset SOC curve update table.
9. A battery level calibration device of a battery device, characterized by, The battery power calibration device of the battery device includes a memory and at least one processor, the memory stores instructions, and the memory and the at least one processor are interconnected by a circuit; The at least one processor calls the instructions in the memory to enable the battery power calibration device of the battery device to perform the battery power calibration method of the battery device as claimed in any one of claims 1-8.
10. A computer-readable storage medium having stored thereon a computer program, characterized in that The computer program is executed by a processor to implement the battery power calibration method of the battery device as claimed in any one of claims 1-8.
Citation Information
Patent Citations
Battery performance degradation evaluation method based on statistical method
CN107102270A
Battery fault diagnosis method and system based on energy storage battery cluster SOC
CN119716621A