Battery residual capacity real-time intelligent detection method and device, electronic equipment and medium

By acquiring the minimum and maximum theoretical battery charge in battery charging events and combining them with real-time battery charge, a charge curve is established, solving the problem of inaccurate battery charge detection and achieving accurate real-time display of battery charge, thus optimizing the user experience.

CN114594381BActive Publication Date: 2025-12-05NINGBO SIMSHINE INTELLIGENT TECH CO LTD
View PDF 3 Cites 0 Cited by

Patent Information

Application Number
CN202210228447.9
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-03-04
Publication Date
2025-12-05
Estimated Expiration
2042-03-04

AI Technical Summary

Technical Problem

Existing technologies for battery power detection suffer from inaccurate real-time statistics, with significant discrepancies between the battery percentage and the actual situation, affecting the normal use of electronic devices.

Method used

By obtaining the minimum and maximum theoretical charge levels during each charging event when the battery is underpowered, and combining this with the real-time battery charge level, the effective charge level and charge percentage are calculated. A charge curve is then established using a voltage-to-charge conversion table and linear regression to correct the battery charge level in real time.

Benefits of technology

It enables accurate real-time detection of battery level, reduces false jumps in battery level display, helps users to rationally plan their usage needs, and optimizes the user experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114594381B_ABST
    Figure CN114594381B_ABST
Patent Text Reader

Abstract

The application belongs to the technical field of batteries, solves the technical problem that in the prior art, when the capacity of a battery is directly calculated, real-time power statistics is inaccurate, the percentage of battery power is quite different from the actual situation, and the normal use of electronic equipment is affected, and provides a battery residual power real-time intelligent detection method, device, electronic equipment and medium. The method comprises: obtaining the minimum theoretical power corresponding to insufficient power supply in each charging event of the battery, the maximum theoretical power corresponding to the charging capacity of each minimum theoretical power, and the current power of the battery; according to each minimum theoretical power and each maximum theoretical power, the effective power of the battery after each charging is obtained; and the percentage of the real residual power is obtained. The application prevents the existence of virtual power in the rated power statistics by the effective power of each charging and the real-time residual power, solves the problem of large amplitude jump of the residual power, and improves the user experience effect.
Need to check novelty before this filing date? Find Prior Art

Description

TECHNICAL FIELD

[0001] The present application relates to the technical field of batteries, and in particular to a real-time intelligent battery remaining capacity detection method and device, electronic equipment and a medium. BACKGROUND

[0002] A battery is a device for storing electrical energy and is a basic component for enriching the application environment of electronic equipment. It enables electronic equipment to adapt to various complex use scenarios and plays a crucial role in electronic equipment. Using a battery as an energy source can obtain a stable voltage and a stable current, enabling long-term stable power supply with less external influence. Moreover, the battery has a simple structure, is easy to carry, and is easy to charge and discharge. It is not easily affected by external climate and temperature, has stable and reliable performance, and plays a great role in various aspects of modern social life.

[0003] The battery capacity is a key technical indicator for measuring battery performance. With the influence of various factors during use, such as the use environment (e.g., room temperature, low temperature), and the length of use time (excessive continuous time with large heat dissipation), the actual capacity that the battery can store varies. Moreover, in traditional technology, the battery capacity is usually obtained by directly calculating the capacity of the battery through a hardware circuit. Therefore, real-time capacity statistics are not accurate, the battery capacity percentage differs greatly from the actual situation, and the normal use of electronic equipment is affected. In some environments, the inaccuracy of the battery capacity causes unnecessary trouble for users. For example, CN113866658A discloses a kind of electric quantity information acquisition circuit and equipment, applied to electronic equipment, and the electronic equipment includes: battery pack, battery pack includes first battery, electric quantity information acquisition circuit includes: first electric quantity meter IC, processing module and impedance providing module;Wherein, impedance providing module is located in the first battery charge-discharge branch;First electric quantity meter IC is connected with impedance providing module in parallel;Processing module is connected with impedance providing module and first electric quantity meter IC respectively;First electric quantity meter IC is used to detect the voltage of impedance providing module in the charge-discharge branch, and send the voltage to the processing module;Processing module is used to: calculate the first current according to the voltage and the current impedance of impedance providing module, and control impedance providing module to adjust the impedance of impedance providing module according to the first current.

[0004] In addition, the prior art also uses software to correct the battery power, but such technology is usually set according to the common environment or ideal state before the actual application, and is not updated after leaving the factory, and the use environment of the electronic device is not considered, which leads to inaccurate display of the remaining battery power. For example, CN114035062A discloses a method for quickly evaluating the capacity decay rate of a battery in storage. The application establishes the corresponding relationship between the state of charge SOC and the open circuit voltage OCV of the battery by detecting the open circuit voltage OCV of the battery under different temperatures and different states of charge SOC. When different conditions are tested, the real-time capacity of the battery can be directly obtained by detecting the open circuit voltage of the battery, and the capacity decay rate of the battery can be calculated. SUMMARY

[0005] Therefore, the embodiments of the present application provide a battery remaining power real-time intelligent detection method and device, electronic equipment and medium, to solve the technical problems in the prior art that the real-time power statistics is inaccurate when directly calculating the capacity of the battery, the battery power percentage is greatly different from the actual situation, and the normal use of the electronic device is affected.

[0006] The technical scheme adopted by the present application is:

[0007] The present application provides a battery remaining power real-time intelligent detection method, which comprises:

[0008] S1: obtaining the minimum theoretical power corresponding to the insufficient power in each charging event of the battery and the maximum theoretical power corresponding to each minimum theoretical power that can be accommodated in each charging of the battery, and obtaining the current power of the battery in real time;

[0009] S2: obtaining the effective power of the battery after each charging according to each minimum theoretical power and the corresponding maximum theoretical power;

[0010] S3: obtaining the power percentage of the real remaining power compared to the effective power according to the current power of the battery and the effective power.

[0011] Preferably, the S1 comprises:

[0012] S10: obtaining the refresh time for displaying the real remaining power and the sample data amount corresponding to the real remaining power for statistics;

[0013] S11: obtaining the sampling interval time according to the refresh time and the sample data amount;

[0014] S12: voltage sampling of the battery according to the sampling interval time to obtain each voltage sampling value;

[0015] S13: obtaining the current capacity of the battery according to the average value of each voltage sampling value and by using a voltage-capacity conversion table.

[0016] Preferably, the S13 comprises:

[0017] S131: obtaining a mutation threshold of voltage interval mutation corresponding to the voltage sampling value;

[0018] S132: sorting each voltage sampling value according to the voltage value to obtain a voltage sampling value sequence;

[0019] S133: outputting a first voltage interval and a second voltage interval according to the voltage sampling value sequence, wherein the first voltage interval comprises the maximum voltage sampling value and / or the minimum voltage sampling value, and the second voltage interval does not comprise the maximum voltage sampling value and the minimum voltage sampling value;

[0020] S134: comparing the difference between the average values of the sampling voltage of the first voltage interval and the second voltage interval with the mutation threshold, if the average value of the sampling voltage is less than the mutation threshold, outputting the capacity corresponding to the average value of the sampling voltage of the first voltage interval as the current capacity, if the average value of the sampling voltage is greater than or equal to the mutation threshold, outputting the capacity corresponding to the average value of the sampling voltage of the second voltage interval as the current capacity.

[0021] Preferably, the S13 comprises:

[0022] S135: obtaining a sample group number for grouping the sample data;

[0023] S136: distributing each voltage sampling value to each sample group according to the sample group number in the order of sampling;

[0024] S137: accumulating and counting the average value of the voltage sampling value in each sample group by iteration, and outputting the average value of the voltage sampling value corresponding to the largest number of accumulations as the current capacity.

[0025] Preferably, the S1 comprises:

[0026] S14: obtaining a minimum residual capacity corresponding to each time when the battery is charged due to insufficient power supply and a charging time corresponding to each time when the battery starts charging;

[0027] S15: establishing a capacity residual curve by linear regression on each minimum residual capacity;

[0028] S16: obtaining each minimum theoretical capacity according to the capacity residual curve and each charging time.

[0029] Preferably, the S1 comprises:

[0030] S17: obtaining the maximum charging capacity corresponding to each time when the battery is charged to the maximum capacity and the charging time corresponding to each time when the battery starts charging;

[0031] S18: establishing a maximum capacity curve through linear regression on each of the maximum charging capacities;

[0032] S19: obtaining the maximum theoretical capacity that can be accommodated by the battery in each charging according to the maximum capacity curve and each of the charging times.

[0033] Preferably, the S3 comprises:

[0034] S31: obtaining the current capacity, the current effective capacity of the battery and the initial effective capacity of the battery;

[0035] S32: obtaining a first capacity percentage according to the current capacity and the current effective capacity;

[0036] S33: obtaining a second capacity percentage according to the current capacity and the initial effective capacity;

[0037] S34: outputting the first capacity percentage and / or the second capacity percentage as the capacity percentage of the real remaining capacity.

[0038] The application also provides a real-time intelligent detection device for battery remaining capacity, comprising:

[0039] a capacity collection module for obtaining the minimum theoretical capacity corresponding to each time when the battery is insufficiently powered in each charging event and the maximum theoretical capacity that can be accommodated by the battery in each charging corresponding to each of the minimum theoretical capacities, and obtaining the current capacity of the battery in real time;

[0040] a data processing module for obtaining the effective capacity of the battery after each charging according to each of the minimum theoretical capacities and the corresponding maximum theoretical capacities;

[0041] a capacity output module for obtaining the capacity percentage of the real remaining capacity of the current capacity compared with the effective capacity of the battery according to the current capacity and the effective capacity.

[0042] The application also provides an electronic device comprising at least one processor, at least one memory and computer program instructions stored in the memory, which, when executed by the processor, implement the method of any of the above.

[0043] The application further provides a medium having computer program instructions stored thereon, which, when executed by a processor, implement the method according to any one of the preceding aspects.

[0044] In summary, the application has the following advantages:

[0045] The battery residual capacity real-time intelligent detection method, device, electronic equipment and medium provided by the application can obtain the minimum theoretical capacity corresponding to insufficient current battery power supply and the maximum theoretical capacity that can be accommodated by charging at each time of charging, so as to obtain the effective capacity of the current battery, and then output the percentage of the current capacity according to the effective capacity and the current capacity based on the current capacity of the battery collected in real time, for the reference of the user. The application can statistically obtain the effective capacity at each time of charging, and the output current capacity is the current real capacity, so that the problem of large fluctuation of the residual capacity caused by the virtual capacity of the battery decayed at the rated capacity is prevented, the user can estimate the available time of the equipment, the use demand of the user can be reasonably arranged, and the user experience is optimized. BRIEF DESCRIPTION OF DRAWINGS

[0046] In order to more clearly illustrate the technical solutions of the embodiments of the application, the drawings needed to be used in the embodiments of the application will be briefly introduced as follows. For those skilled in the art, other drawings can also be obtained based on these drawings without creative labor, and these drawings are within the protection scope of the application.

[0047] Figure 1 The figure is a flowchart of the battery residual capacity real-time intelligent detection method in the embodiment 1 of the application.

[0048] Figure 2 The figure is a flowchart of the method for obtaining real-time capacity in the embodiment 1 of the application.

[0049] Figure 3 The figure is a flowchart of the method for obtaining the minimum theoretical capacity in the embodiment 1 of the application.

[0050] Figure 4 The figure is a flowchart of the method for obtaining the maximum theoretical capacity in the embodiment 1 of the application.

[0051] Figure 5 The figure is a flowchart of the method for obtaining the real-time capacity percentage in the embodiment 1 of the application.

[0052] Figure 6 The figure is a structural diagram of the battery residual capacity real-time intelligent detection device in the embodiment 2 of the application.

[0053] Figure 7 The figure is a structural diagram of the electronic equipment in the embodiment 3 of the application. DETAILED DESCRIPTION

[0054] In order to make the purposes, technical solutions and advantages of the embodiments of the present application clearer, the technical solutions in the embodiments of the present application will be described clearly and completely below with reference to the drawings in the embodiments of the present application. It should be noted that, in this document, relationship terms such as first and second are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply that there is any such actual relationship or sequence between these entities or operations. In the description of the present application, it should be understood that the orientations or positional relationships indicated by terms such as center, upper, lower, front, back, left, right, vertical, horizontal, top, bottom, inner, outer and the like are based on the orientations or positional relationships shown in the drawings, and are only for the convenience of describing the present application and simplifying the description, and therefore cannot be understood as indicating or implying that the devices or elements referred to must have a particular orientation, be constructed and operated in a particular orientation, and therefore cannot be understood as limiting the present application. Moreover, the terms “include”, “contain” or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements not only includes those elements, but also includes other elements not explicitly listed or inherent to such a process, method, article or device. Without more limitations, the elements defined by the statement “include” do not exclude the presence of additional identical elements in the process, method, article or device including the elements. If there is no conflict, the features of the present application and the embodiments can be combined with each other, and are all within the protection scope of the present application.

[0055] Embodiment 1

[0056] Please refer to Figure 1 , Figure 1 The flowchart of the method for real-time intelligent detection of the remaining battery capacity in Embodiment 1 of the present application is shown. The method is mainly used for intelligent detection of the remaining battery capacity of an electronic device. The electronic device can be a mobile communication terminal, a palm computer, a smart camera (such as a baby care device), a wearable electronic device (such as a smart watch, a smart helmet, smart glasses, etc.), a drone, a sweeping robot, a game competition device, a car using a rechargeable battery as a power source, and various mechanical devices using a battery as a power source. The method comprises:

[0057] S1: obtaining the minimum theoretical capacity corresponding to the insufficient power supply in each charging event of the battery and the maximum theoretical capacity corresponding to each minimum theoretical capacity that can be accommodated in each charging of the battery, and obtaining the current capacity of the battery in real time;

[0058] Specifically, the battery can be charged in a depleted or non-depleted state, and the state after each charging can be full or not full; at each charging, the minimum theoretical power corresponding to the current battery power when the power is insufficient, and the maximum theoretical power that can be charged this time are obtained; and the current remaining power of the battery is collected in real time. It should be noted that the power is obtained by converting the voltage signal through a voltage-power conversion table, and the voltage-power conversion table is a general conversion table.

[0059] S2: obtaining the effective power of the battery after each charging according to each minimum theoretical power and the corresponding maximum theoretical power;

[0060] Specifically, the effective power of the battery at each charging is determined by each minimum theoretical power and the maximum theoretical power corresponding to each minimum theoretical power, wherein the effective power is the power available for driving the electronic device, and the effective power is the difference between the maximum theoretical power and the corresponding minimum theoretical power.

[0061] S3: obtaining the power percentage of the real remaining power compared to the effective power according to the current power of the battery and the effective power.

[0062] Specifically, the percentage of the current power is obtained according to the current power of the battery and the effective power of the battery, and the percentage of the current power and the effective power can accurately reflect the actual situation of the battery that can continue to supply power, which is beneficial to the user to estimate the available duration of the device, reasonably arrange the user's own use demand, and optimize the user experience.

[0063] The method for detecting the real-time power percentage of the battery provided by the application can obtain the power percentage of the real remaining power through the effective power and the current power of the battery, and the power percentage is obtained by combining the current power with the effective power data, which can accurately reflect the actual situation of the battery power, is beneficial to the user to estimate the available duration of the device, reasonably arrange the user's own use demand, and optimize the user experience. The method for detecting the battery power in the prior art does not consider the problem that the battery power gradually decreases with the extension of the use process, which makes the detection inaccurate and cannot reflect the actual battery power level.

[0064] In an embodiment, referring to Figure 2 , the S1 comprises:

[0065] S10: obtaining a refresh time for displaying the real remaining power and sample data quantity for counting the real remaining power;

[0066] S11: obtaining a sampling interval time according to the refresh time and the sample data quantity.

[0067] Specifically, the refresh interval time of the current power of the battery displayed on the display screen is obtained, such as the display screen refreshing the current power every 1s, and the sample data amount required for calculating the current power displayed on the display screen is obtained, such as 10 sample values for calculating the current power displayed on the display screen, and the voltage sampling is performed every 0.1s.

[0068] S12: sampling the voltage of the battery according to the sampling interval time to obtain each voltage sampling value;

[0069] S13: obtaining the current power of the battery according to the average value of each voltage sampling value and the voltage-power conversion table.

[0070] Specifically, the battery is sampled in real time according to the sampling interval time to obtain a plurality of voltage sampling values. Through multiple sampling of the battery, the problem of large deviation of single sampling data can be effectively avoided. Moreover, by taking the average value of the plurality of voltage sampling values, the plurality of voltage sampling values collected multiple times can be effectively utilized, the error problem in the collection process can be greatly alleviated, and a more reliable real-time voltage value can be obtained.

[0071] In an embodiment, the S13 comprises:

[0072] S131: obtaining a mutation threshold of voltage interval mutation corresponding to the voltage sampling value;

[0073] Specifically, the voltage interval is the voltage value corresponding to two different voltage sampling values sampled in the same period, and the voltage threshold of voltage interval mutation is the maximum voltage difference between the voltage intervals formed by different voltage sampling values of all voltage sampling values collected in the same period.

[0074] S132: sorting each voltage sampling value collected according to the voltage value to obtain a voltage sampling value sequence;

[0075] Specifically, all voltage sampling values collected in the same period are sorted according to the voltage value to obtain a voltage sampling value sequence.

[0076] S133: outputting a first voltage interval and a second voltage interval according to the voltage sampling value sequence, wherein the first voltage interval includes the maximum voltage sampling value and / or the minimum voltage sampling value, and the second voltage interval does not include the maximum voltage sampling value and the minimum voltage sampling value.

[0077] Specifically, a voltage interval containing the maximum value and / or the minimum value of the voltage sampling values is recorded as a first voltage interval, and a voltage interval not containing the maximum value and the minimum value of the voltage sampling values is recorded as a second voltage interval, wherein the first voltage interval includes, but is not limited to, a voltage interval formed by the maximum voltage value and the minimum voltage value of the voltage sampling values, a voltage interval formed by the maximum voltage value and the second minimum voltage value, and a voltage interval formed by the second maximum voltage value and the minimum voltage value, and the second voltage interval includes, but is not limited to, a voltage interval formed by the second maximum voltage value and the second minimum voltage value of the voltage sampling values; wherein the second maximum voltage value is the voltage value adjacent to the maximum voltage value in the sequence of voltage sampling values, and the second minimum voltage value is the voltage value adjacent to the minimum voltage value in the sequence of voltage sampling values.

[0078] In S134, the difference between the sampling voltage average values of the first voltage interval and the second voltage interval is compared with the mutation threshold value, and if the sampling voltage average value is less than the mutation threshold value, the electric quantity corresponding to the sampling voltage average value of the first voltage interval is output as the residual electric quantity, and if the sampling voltage average value is greater than or equal to the mutation threshold value, the electric quantity corresponding to the sampling voltage average value of the second voltage interval is output as the residual electric quantity.

[0079] Specifically, according to the sequence of voltage sampling values, the voltage sampling values are divided into a first voltage interval and a second voltage interval, and if the difference between the sampling voltage average values of all voltage sampling values in the first voltage interval and the sampling voltage average values of all voltage sampling values in the second voltage interval is less than the mutation threshold value, the electric quantity corresponding to the sampling voltage average value of the first voltage interval is output as the current electric quantity for display, and if the difference between the sampling voltage average values of all voltage sampling values in the first voltage interval and the sampling voltage average values of all voltage sampling values in the second voltage interval is greater than or equal to the mutation threshold value, the electric quantity corresponding to the sampling voltage average value of the second voltage interval is output as the current electric quantity for display, thereby reducing the adverse effects of abnormal mutation of voltage sampling values and improving the accuracy of detection.

[0080] In an embodiment, the S13 comprises:

[0081] In S135, the number of sample groups into which the sample data quantity is grouped is obtained.

[0082] In S136, each voltage sampling value is assigned to each sample group in the order of sampling according to the number of sample groups.

[0083] Specifically, all collected voltage sampling values are divided into multiple sample groups, and each voltage sampling value is assigned according to the number of samples contained in each sample group, preferably the number of samples in each sample group is the same, and each voltage sampling value is sequentially assigned to each sample group in the order of collection.

[0084] S137: The average value of the voltage sampling value in each sample group is accumulated by iteration, and the minimum theoretical electric quantity corresponding to the maximum accumulated number of the average value of the voltage sampling value is output as the current electric quantity.

[0085] Specifically, the average value of all voltage sampling values in each sample group is calculated respectively, and then the average values are accumulated, and finally the one with the maximum count is output to obtain the current electric quantity. Taking 15 groups of sample groups as an example, the average values of the first group to the fifteenth group are a, a, b, c, e, b, f, b, c, h, h, c, j, c and a, wherein the accumulated count of a is 3 times, the accumulated count of b is 3 times, the accumulated count of c is 4 times, the accumulated count of e is 1 time, the accumulated count of f is 1 time, the accumulated count of h is 2 times, the accumulated count of j is 1 time, and the accumulated count of c is the most. Therefore, the electric quantity corresponding to c is output as the current electric quantity.

[0086] In an embodiment, referring to Figure 3 , the S1 comprises:

[0087] S14: Obtain the minimum residual electric quantity corresponding to each time when the battery is insufficiently charged and the charging time corresponding to each time when the battery starts to charge;

[0088] Specifically, the start time of each time when the battery is charged and the minimum residual electric quantity when the battery cannot normally drive the load to work, when the collected voltage sampling value is the voltage value when the battery cannot normally drive the load to work, the electric quantity corresponding to the voltage sampling value is the current minimum residual electric quantity of the battery, and when the sampled voltage sampling value is the voltage value when the battery can normally drive the load, the electric quantity corresponding to the theoretical voltage value when the battery cannot normally drive the load to work is obtained as the minimum residual electric quantity.

[0089] S15: Establish an electric quantity remaining curve by linear regression for each minimum residual electric quantity;

[0090] S16: Obtain each minimum theoretical electric quantity according to the electric quantity remaining curve and each charging time.

[0091] Specifically, the minimum residual electric quantity collected each time is a scattered point, that is, each minimum residual electric quantity cannot be on the same straight line or on the curve corresponding to a standard curve function, including but not limited to a parabola or a cosine function. Linear fitting or linear regression is performed on these scattered points to obtain an electric quantity remaining curve representing the minimum residual electric quantity, so that the minimum residual electric quantity corresponding to the battery at any time can be obtained. It should be noted that the electric quantity remaining curve is a curve of the remaining electric quantity corresponding to the use time under the normal working state of the battery.

[0092] In one embodiment, to improve the accuracy of the remaining battery power, the remaining power curve can be dynamically and real-time corrected in combination with the change of the battery ambient temperature, such as when the indoor and outdoor temperature difference is large, high temperature, low temperature (usually a difference of more than 5°C can be considered as a large temperature difference, usually a temperature lower than 5°C can be considered as the battery working in a low temperature environment, and a temperature higher than 30°C can be considered as the battery working in a high temperature environment), and the S16 includes:

[0093] S161: Obtain the current ambient temperature of the battery in an abnormal environment;

[0094] S162: According to the abnormal ambient temperature, traverse the temperature database to determine a plurality of target minimum remaining powers corresponding to the current ambient temperature;

[0095] S163: According to the target minimum remaining power, optimize the remaining power curve to obtain a target remaining power curve;

[0096] S164: According to the target remaining power curve and each charging time, obtain each minimum theoretical power corresponding to the current ambient temperature.

[0097] Specifically, when the electronic device runs in a low temperature environment, the battery remaining power is collected at a preset interval, and the power difference between adjacent two collections is greater than that in a normal temperature environment. Therefore, due to the low temperature or high temperature environment, the battery power is used too fast, which can cause the minimum remaining power to be higher than that in a normal temperature environment. Therefore, the remaining power curve established according to all minimum remaining powers in each running environment is relatively high compared with the remaining power in a normal temperature environment, and is relatively low compared with the remaining power in a low temperature or high temperature environment. According to the current ambient temperature of the battery, the temperature database is traversed to find the minimum remaining power corresponding to the historical ambient temperature matching the current ambient temperature, and the remaining power curve is optimized by using the power. The minimum theoretical power calculated according to the optimized remaining power curve is closer to the functional limit that the battery can currently reach, and the target remaining power curve can be used to obtain each minimum theoretical power corresponding to the increase of the use time of the battery (with the increase of the use time, the minimum theoretical power will gradually increase), thereby improving the accuracy of the power detection.

[0098] It should be noted that: when running in normal temperature environment, the same method can also be used to optimize the remaining power curve with the actual minimum remaining power, so that the remaining power displayed to the user is more accurate. Since the minimum remaining power is actually lower than the minimum theoretical power calculated by the power remaining curve when running in normal temperature environment, there is no need to worry about affecting the normal use of the electronic device after reaching the calculated power. At this time, the minimum theoretical power can be compared with the actual minimum remaining power, and the last running time of the electronic device can be designed according to the available remaining power, prompting the user that the electronic device will automatically shut down after reaching this time. Therefore, in order to reduce the amount of data processing, further calculation can also be performed.

[0099] In an embodiment, the same method is used to obtain the real maximum charging power corresponding to the current environment temperature, and the maximum power curve is optimized with the real maximum charging power, thereby improving the detection accuracy of the remaining power.

[0100] In an embodiment, please refer to Figure 4 , the S1 comprises:

[0101] S17: Obtain the maximum charging power of the battery at each time when the charging reaches the maximum power, and the charging time corresponding to the start of each charging of the battery;

[0102] Specifically, the start time of each charging of the battery and the maximum power of the battery when the charging cannot continue, i.e. when the battery charging reaches 100%, wherein the maximum power can be the power corresponding to the voltage value when the battery power state is 100%, or the power corresponding to the theoretical value calculated when the charging ends but the power state does not reach 100%.

[0103] S18: Establish a maximum power curve by linear regression for each of the maximum charging powers;

[0104] S19: Obtain the maximum theoretical power that can be accommodated by each charging of the battery according to the maximum power curve and each of the charging times.

[0105] Specifically, each collected maximum remaining power is a scattered point, i.e. each maximum power cannot be on the same straight line or on the curve corresponding to a standard curve function, including but not limited to a parabola or a sine function. Linear fitting or linear regression is performed on these scattered points to obtain a maximum power curve representing the maximum power, thereby obtaining the maximum power corresponding to the battery at any time. It should be noted that the maximum power curve is a curve corresponding to the use time of the battery in a normal working state.

[0106] In an embodiment, please refer to Figure 5 , the S3 comprises:

[0107] S31: acquiring the current power, the current effective power of the battery and the initial effective power of the battery in real time;

[0108] Specifically, the initial effective power is the difference between the maximum power rated before the battery is shipped and the minimum power required for driving the load, and the current effective power is the difference between the power storage corresponding to the previous charging and the minimum power remaining after the previous driving of the load.

[0109] S32: obtaining a first power percentage according to the current power and the current effective power;

[0110] S33: obtaining a second power percentage according to the current power and the initial effective power;

[0111] S34: outputting the first power percentage and / or the second power percentage as the power percentage of the real remaining power.

[0112] Specifically, the first percentage of the current power relative to the current state of the battery is obtained by using the current power and the current effective power of the battery in real time, and the second percentage of the current power relative to the initial state is obtained by using the current power and the initial effective power of the battery in real time. Through comparison of the first percentage and the second percentage, the attenuation of the battery caused by the increase of the use time can be effectively displayed, so that the user can timely master the use of the battery, avoid the need for frequent charging, and improve the user experience effect.

[0113] The battery remaining power real-time intelligent detection method of the embodiment of the application acquires the minimum theoretical power corresponding to the insufficient power supply and the maximum theoretical power that can be accommodated by charging of the battery in each charging, thereby obtaining the effective power of the current battery, and then outputs the percentage of the current power according to the effective power and the current power based on the current power of the battery collected in real time for the user to refer. The effective power of each charging is counted, the output current power is the current real power, the battery attenuation is prevented, the virtual power is prevented from being counted based on the rated power, the problem of large fluctuation of the remaining power is solved, the user can estimate the available time of the equipment, the use demand of the user can be reasonably arranged, and the user experience is optimized.

[0114] Embodiment 2

[0115] The embodiment of the application further provides a battery remaining power real-time intelligent detection device, please refer to Figure 6 , the device comprises:

[0116] The power collection module is used for acquiring the minimum theoretical power corresponding to the insufficient power supply in each charging event of the battery and the maximum theoretical power that can be accommodated by charging of the battery corresponding to each minimum theoretical power, and acquiring the current power of the battery in real time.

[0117] a data processing module configured to obtain an effective capacity of the battery after each charging according to each minimum theoretical capacity and a corresponding maximum theoretical capacity;

[0118] a capacity output module configured to obtain a capacity percentage of the real remaining capacity of the battery compared with the effective capacity according to the current capacity and the effective capacity.

[0119] The battery remaining capacity real-time intelligent detection device of the embodiment of the present application obtains the minimum theoretical capacity corresponding to the current insufficient battery power and the maximum theoretical capacity that can be accommodated by charging at each charging, thereby obtaining the effective capacity of the current battery, and then outputs the percentage of the current capacity according to the effective capacity and the current capacity by real-time collection of the current capacity of the battery, for the reference of the user. The present application outputs the current real capacity by statistics of the effective capacity at each charging, prevents the existence of virtual capacity by the rated capacity statistics due to the battery attenuation, and prevents the problem of large fluctuation of the remaining capacity, which is beneficial to the user to estimate the available time of the equipment, reasonably arrange the use demand of the user, and optimize the user experience.

[0120] In an embodiment, the capacity collection module comprises:

[0121] a display parameter unit configured to obtain a refresh time for displaying the real remaining capacity and a sample data amount for statistics of the real remaining capacity;

[0122] a sampling interval unit configured to obtain a sampling interval time according to the refresh time and the sample data amount;

[0123] a sampling unit configured to sample the voltage of the battery according to the sampling interval time to obtain each voltage sampling value;

[0124] an average value unit configured to obtain the current capacity of the battery by using a voltage-capacity conversion table according to an average value of each voltage sampling value.

[0125] In an embodiment, the average value unit comprises:

[0126] a threshold unit configured to obtain a mutation threshold of voltage interval mutation corresponding to the voltage sampling value;

[0127] a sorting unit configured to sort each voltage sampling value according to the voltage value to obtain a voltage sampling value sequence;

[0128] an interval division unit configured to output a first voltage interval and a second voltage interval according to the voltage sampling value sequence, wherein the first voltage interval comprises a maximum voltage sampling value and / or a minimum voltage sampling value, and the second voltage interval does not comprise the maximum voltage sampling value and the minimum voltage sampling value;

[0129] The interval selection unit compares the difference between the average values of the sampling voltages of the first voltage interval and the second voltage interval with the mutation threshold value, and if the average value of the sampling voltage is less than the mutation threshold value, outputs the electric quantity corresponding to the average value of the sampling voltage of the first voltage interval as the residual electric quantity, and if the average value of the sampling voltage is greater than or equal to the mutation threshold value, outputs the electric quantity corresponding to the average value of the sampling voltage of the second voltage interval as the current electric quantity.

[0130] In an embodiment, the average value unit comprises:

[0131] The sample parameter unit obtains the number of sample groups into which the sample data quantity is grouped.

[0132] The sample grouping unit distributes the voltage sampling values to the sample groups according to the sampling sequence according to the number of sample groups.

[0133] The residual electric quantity unit accumulatively counts the average values of the voltage sampling values in the sample groups by iteration, and outputs the average value of the voltage sampling value with the largest number of accumulations as the current electric quantity.

[0134] In an embodiment, the electric quantity collection module comprises:

[0135] The time information collection unit obtains the minimum residual electric quantity corresponding to each time when the battery is charged due to insufficient power supply and the charging time corresponding to each time when the battery starts charging.

[0136] The sampling data processing unit establishes an electric quantity remaining curve by linear regression on the minimum residual electric quantities.

[0137] The minimum electric quantity unit obtains the minimum theoretical electric quantity according to the electric quantity remaining curve and the charging time.

[0138] In an embodiment, the electric quantity collection module comprises:

[0139] The charging time unit obtains the maximum charging electric quantity corresponding to each time when the battery is charged to the maximum electric quantity and the charging time corresponding to each time when the battery starts charging.

[0140] The maximum electric quantity processing unit establishes a maximum electric quantity curve by linear regression on the maximum charging electric quantities.

[0141] The maximum electric quantity unit obtains the maximum theoretical electric quantity that can be accommodated by each charging of the battery according to the maximum electric quantity curve and the charging time.

[0142] In an embodiment, the electric quantity output module comprises:

[0143] The power information classified collection unit obtains the current power, the current effective power of the battery and the initial effective power of the battery.

[0144] The first percentage unit obtains a first power percentage according to the current power and the current effective power.

[0145] The second percentage unit obtains a second power percentage according to the current power and the initial effective power.

[0146] The real-time power display unit outputs the first power percentage and / or the second power percentage as the power percentage of the real remaining power.

[0147] The battery remaining power real-time intelligent detection device of the embodiment of the application obtains the minimum theoretical power corresponding to the current insufficient battery power and the maximum theoretical power that can be accommodated by charging at each time of charging, thereby obtaining the effective power of the current battery, and then outputs the percentage of the current power according to the effective power and the current power through the real-time collected current power of the battery, for the reference of the user.

[0148] Embodiment 3

[0149] The application provides an electronic device and a storage medium, please refer to Figure 7 , comprising at least one processor, at least one memory and computer program instructions stored in the memory.

[0150] Specifically, the above processor can include a central processing unit (CPU), or a specific integrated circuit (Application Specific Integrated Circuit, ASIC), or can be configured to implement one or more integrated circuits of the embodiments of the application, and the electronic device at least includes one of the following: a smart camera, a mobile device with a smart camera, a wearable device with a smart camera.

[0151] The memory can include mass storage for data or instructions. By way of example, and not limitation, the memory can include a hard disk drive (HDD), floppy disk drive, flash memory, compact disk (CD) drive, digital versatile disk (DVD) drive, magnetic tape drive, or Universal Serial Bus (USB) drive or a combination of two or more of these. The memory can be removable or non-removable (or fixed), as appropriate. The memory can be internal or external, as appropriate. In certain embodiments, the memory is non-volatile solid-state memory. In certain embodiments, the memory includes read-only memory (ROM). Where appropriate, this ROM can be mask-programmed ROM, programmable ROM (PROM), erasable PROM (EPROM), electrically erasable PROM (EEPROM), electrically alterable ROM (EAROM), or flash memory, or a combination of two or more of these.

[0152] The processor implements the real-time intelligent detection method of the remaining battery capacity in any one of the above embodiments by reading and executing the computer program instructions stored in the memory.

[0153] In one example, the electronic device can further include a communication interface and a bus. The processor, the memory, and the communication interface are connected through the bus and complete communication with each other.

[0154] The communication interface is mainly used to realize the communication between the modules, devices, units, and / or equipment in the embodiments of the application.

[0155] The bus includes hardware, software, or both, which couples the components of the electronic device to each other. By way of example, and not limitation, the bus can include an Accelerated Graphics Port (AGP) or other graphics bus, an Enhanced Industry Standard Architecture (EISA) bus, a Front Side Bus (FSB), a HyperTransport (HT) interconnect, an Industry Standard Architecture (ISA) bus, an InfiniBand (IB) interconnect, a Low Pin Count (LPC) bus, a memory bus, a Micro Channel Architecture (MCA) bus, a Peripheral Component Interconnect (PCI) bus, a PCI-Express (PCI-X) bus, a Serial Advanced Technology Attachment (SATA) bus, a Video Electronics Standards Association Local (VLB) bus, or another suitable bus or interconnect, or a combination of two or more of these. Where appropriate, the bus can include one or more buses. Although the present embodiments describe and show a particular bus, the present application contemplates any suitable bus or interconnect.

[0156] In summary, the embodiments of the present application provide a real-time intelligent detection method and device for the remaining battery capacity, an electronic device, and a medium.

[0157] It is to be understood that the application is not limited to the particular configurations and processes described herein and shown in the figures. For simplicity, detailed descriptions of known methods and apparatuses are omitted so as not to obscure the disclosure. In the above-described embodiments, several specific steps are described and illustrated as examples. However, the method processes of the present application are not limited to the specific steps described and illustrated, but include any and all process steps as well as any and all modifications, permutations, and additions thereof. The order of steps can be changed, and various steps can be omitted, adapted, modified, and / or combined.

[0158] The functional blocks shown in the above-described block diagrams can be implemented as hardware, software, firmware, or a combination thereof. When implemented in hardware, they can be, for example, electronic circuits, application specific integrated circuits (ASICs), appropriate firmware, plug-ins, function cards, and the like. When implemented in software, the elements of the present application are program or code segments that are used to perform the required tasks. The program or code segments can be stored in a machine-readable medium or transmitted through a data signal carried in a carrier wave over a transmission medium or communication link. A "machine-readable medium" includes any medium that can store or transfer information. Examples of machine-readable media include electronic circuits, semiconductor memory devices, ROM, flash memory, erasable ROM (EROM), floppy disks, CD-ROMs, optical disks, hard disks, fiber optic media, radio frequency (RF) links, and the like. The code segments can be downloaded via computer networks such as the Internet, intranets, and the like.

[0159] Finally, it should be noted that the above-described embodiments are merely intended to illustrate the technical solutions of the present application, but not to limit it. Although the present application has been described in detail with reference to the above-described embodiments, those skilled in the art should understand that they can still make modifications to the technical solutions recorded in the above-described embodiments, or make equivalent replacements to some or all of the technical features thereof. Such modifications or replacements do not cause the corresponding technical solutions to deviate from the scope of the technical solutions of the embodiments of the present application.

Claims

1. A real-time intelligent detection method for battery remaining capacity, characterized in that, The method comprises: S1: obtaining the minimum theoretical electric quantity corresponding to insufficient power supply in each charging event of the battery, the maximum theoretical electric quantity corresponding to each minimum theoretical electric quantity, and the current electric quantity of the battery in real time; S2: obtaining the effective electric quantity of the battery after each charging according to each minimum theoretical electric quantity and the corresponding maximum theoretical electric quantity; S3: obtaining the electric quantity percentage of the real residual electric quantity compared with the effective electric quantity according to the current electric quantity and the effective electric quantity of the battery; The S1 comprises: S10: obtaining the refresh time for displaying the real residual electric quantity and the sample data amount corresponding to the real residual electric quantity; S11: obtaining the sampling interval time according to the refresh time and the sample data amount; S12: sampling the voltage of the battery at the sampling interval time to obtain each voltage sampling value; S13: obtaining the current electric quantity of the battery by using the voltage-quantity conversion table according to the average value of each voltage sampling value; The S13 comprises: S131: obtaining the mutation threshold value of voltage interval mutation corresponding to the voltage sampling value; S132: sorting each voltage sampling value collected according to the voltage value to obtain a voltage sampling value sequence; S133: outputting a first voltage interval and a second voltage interval according to the voltage sampling value sequence, wherein the first voltage interval comprises the maximum voltage sampling value and / or the minimum voltage sampling value, and the second voltage interval does not comprise the maximum voltage sampling value and the minimum voltage sampling value; S134: comparing the difference value of the sampling voltage average values of the first voltage interval and the second voltage interval with the mutation threshold value, if the difference value is less than the mutation threshold value, outputting the electric quantity corresponding to the sampling voltage average value of the first voltage interval as the current electric quantity, if the difference value is greater than or equal to the mutation threshold value, outputting the electric quantity corresponding to the sampling voltage average value of the second voltage interval as the current electric quantity; The S13 comprises: S135: obtaining the sample group number for grouping the sample data amount; S136: distributing each voltage sampling value to each sample group according to the sampling sequence according to each sample group number; S137: accumulating and counting the average value of the voltage sampling value in each sample group, and outputting the average value of the voltage sampling value corresponding to the maximum accumulation number as the current electric quantity.

2. The real-time intelligent detection method for battery residual capacity according to claim 1, characterized in that, The S1 comprises: S14: obtaining the minimum residual electric quantity corresponding to each charging of the battery under insufficient power supply and the charging time corresponding to each start charging of the battery; S15: establishing an electric quantity residual curve by linear regression on each minimum residual electric quantity; S16: obtaining each minimum theoretical electric quantity according to the electric quantity residual curve and each charging time. 3.The real-time intelligent detection method for battery residual capacity according to claim 1, characterized in that, The S1 comprises: S17: obtaining the maximum charging electric quantity corresponding to each charging of the battery reaching the maximum electric quantity and the charging time corresponding to each start charging of the battery; S18: establishing a maximum electric quantity curve by linear regression on each maximum charging electric quantity; S19: obtaining the maximum theoretical electric quantity that the battery can accommodate in each charging according to the maximum electric quantity curve and each charging time.

4. The real-time intelligent detection method for the residual capacity of a battery according to any one of claims 1 to 3, characterized in that, The S3 comprises: S31: obtaining the current electric quantity, the current effective electric quantity of the battery, and the initial effective electric quantity of the battery; S32: obtaining a first electric quantity percentage according to the current electric quantity and the current effective electric quantity; S33: obtaining a second electric quantity percentage according to the current electric quantity and the initial effective electric quantity; S34: outputting the first electric quantity percentage and / or the second electric quantity percentage as the electric quantity percentage of the real residual electric quantity.

5. A real-time intelligent detection device for remaining battery power, characterized in that, Comprise: An electric quantity acquisition module, configured to obtain the minimum theoretical electric quantity corresponding to insufficient power supply in each charging event of the battery, the maximum theoretical electric quantity corresponding to each minimum theoretical electric quantity and capable of being accommodated by the battery in each charging, and the current electric quantity of the battery in real time; A data processing module, configured to obtain the effective electric quantity of the battery after each charging according to each minimum theoretical electric quantity and the corresponding maximum theoretical electric quantity; An electric quantity output module, configured to obtain the electric quantity percentage of the real residual electric quantity of the current electric quantity compared with the effective electric quantity according to the current electric quantity and the effective electric quantity of the battery; The electric quantity acquisition module is further configured to obtain a refresh time for displaying the real residual electric quantity and a sample data amount corresponding to the real residual electric quantity, obtain a sampling interval time according to the refresh time and the sample data amount, sample the voltage of the battery at the sampling interval time to obtain each voltage sample value, and obtain the current electric quantity of the battery by using a voltage- electric quantity conversion table according to the average value of each voltage sample value; The obtaining of the current electric quantity of the battery by using the voltage- electric quantity conversion table according to the average value of each voltage sample value comprises: obtaining a mutation threshold value of voltage interval mutation corresponding to the voltage sample value; sorting each voltage sample value according to the voltage value to obtain a voltage sample value sequence; outputting a first voltage interval and a second voltage interval according to the voltage sample value sequence, wherein the first voltage interval comprises the maximum voltage sample value and / or the minimum voltage sample value, and the second voltage interval does not comprise the maximum voltage sample value and the minimum voltage sample value; comparing the difference value of the average value of the sampling voltage of the first voltage interval and the second voltage interval with the mutation threshold value, outputting the electric quantity corresponding to the average value of the sampling voltage of the first voltage interval as the current electric quantity if the difference value is less than the mutation threshold value, and outputting the electric quantity corresponding to the average value of the sampling voltage of the second voltage interval as the current electric quantity if the difference value is greater than or equal to the mutation threshold value; The obtaining of the current electric quantity of the battery by using the voltage- electric quantity conversion table according to the average value of each voltage sample value comprises: obtaining a sample group number for grouping the sample data amount; distributing each voltage sample value to each sample group according to the sample group number in the sampling order. The average value of the voltage sampling values in each of the sample groups is accumulated, and the electric quantity corresponding to the average value of the voltage sampling value with the most accumulations is output as the current electric quantity.

6. An electronic device, comprising: Comprises: at least one processor, at least one memory, and computer program instructions stored in the memory that, when executed by the processor, implement the method of any of claims 1-4.

7. A machine storage medium having stored thereon computer program instructions, wherein the computer program instructions are executable by a machine to cause the machine to perform operations comprising: When the computer program instructions are executed by the processor, the method of any of claims 1-4 is implemented. When the computer program instructions are executed by the processor, the method of any of claims 1-4 is implemented.

Citation Information

Patent Citations

  • Electric quantity information acquisition circuit and equipment

    CN113866658A

  • Method for rapidly evaluating capacity fading rate of battery in storage

    CN114035062A

  • Battery charge state estimation method and system

    CN107942261A