Electronic device battery health detection method, device and electronic device
By cutting off the power supply when the battery power reaches the preset power, measuring the actual discharge rate and comparing it with the reference threshold, the problem of low accuracy of battery health detection in the prior art is solved, and a higher accuracy of battery health detection is achieved.
Patent Information
- Application Number
- CN202111231018.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-10-21
- Publication Date
- 2025-03-25
- Estimated Expiration
- 2041-10-21
AI Technical Summary
In the prior art, the accuracy of battery health detection is not high, and the complex power consumption scenarios of electronic devices cannot be effectively considered, resulting in the calculated K value being low.
When the battery power reaches the preset power, adjust the power supply state of the electronic device to the charger power supply state, cut off the power supply of the battery to the device, obtain the actual discharge rate of the battery in the first time, and determine the reference threshold, compare the actual discharge rate with the reference threshold to judge the healthy state of the battery.
It improves the accuracy of battery health testing, can more accurately judge whether the battery is healthy, reduces misjudgment, and improves battery life and charging safety.
Smart Images

Figure CN113759268B_ABST
Abstract
Description
Technical Field
[0001] The present application belongs to the field of battery health management, and specifically relates to a battery health detection method, device and electronic device for an electronic device. Background Art
[0002] Lithium-ion batteries are increasingly used in mobile devices such as mobile phones, laptops, tablets, digital cameras, etc. due to their high energy density and low environmental pollution.
[0003] However, lithium-ion batteries present different degrees of potential health risks during daily use without being discovered by users. For example, external force or internal foreign matter pierces the separator between the positive and negative electrodes, causing a battery short circuit; long-term overcharging or abnormally high current charging causes lithium ion dendrites to precipitate from the negative electrode, and the dendrites easily pierce the separator between the positive and negative electrodes of the battery, causing a micro short circuit in the battery; damaged battery appearance causes water vapor to penetrate the interior to cause electrochemical reactions, destroying the interface between the positive and negative electrode materials of the battery; for example, the battery works in high temperature and high pressure scenarios for a long time, resulting in an increase in the chemical impedance of the battery. All of the above may cause the battery's voltage drop (K value) per unit time to increase, affecting the battery life and even causing charging safety issues.
[0004] In this regard, although there are existing battery health detection methods that detect the battery health status by calculating the battery's K value, most of them passively calculate the battery's K value by keeping the battery in a fully charged or discharged state for a long time, and do not consider the complex power consumption scenarios of the electronic devices where the battery is located. The calculated K value is not accurate, resulting in low accuracy of the battery health status detection results. Summary of the invention
[0005] The purpose of the embodiments of the present application is to provide a battery health detection method, device and electronic device for an electronic device, which can solve the problem of low accuracy of existing battery health detection.
[0006] In order to solve the above technical problems, this application is implemented as follows:
[0007] In a first aspect, an embodiment of the present application provides a battery health detection method for an electronic device, wherein the electronic device is in a charging state, and the method includes:
[0008] When the power level of the battery reaches a preset power level, adjusting the power supply state of the electronic device to a charger power supply state, wherein in the charger power supply state, the battery is suspended from supplying power to the electronic device;
[0009] Acquire an actual discharge rate of the battery within a first period of time, and determine a reference threshold value corresponding to the discharge rate of the battery;
[0010] According to the comparison result between the actual discharge rate and the reference threshold, a detection result indicating whether the battery is healthy is obtained.
[0011] In a second aspect, an embodiment of the present application provides a battery health detection device for an electronic device, the device comprising:
[0012] A control module, configured to adjust the power supply state of the electronic device to a charger power supply state when the power level of the battery reaches a preset power level, wherein in the charger power supply state, the battery is temporarily suspended from supplying power to the electronic device;
[0013] a data processing module, configured to obtain an actual discharge rate of the battery within a first period of time, and determine a reference threshold value corresponding to the discharge rate of the battery;
[0014] The health detection module is used to obtain a detection result indicating whether the battery is healthy based on a comparison result between the actual discharge rate and the reference threshold.
[0015] In a third aspect, an embodiment of the present application provides an electronic device, which includes a processor, a memory, and a program or instruction stored in the memory and executable on the processor, wherein the program or instruction, when executed by the processor, implements the steps of the method described in the first aspect.
[0016] In a fourth aspect, an embodiment of the present application provides a readable storage medium, on which a program or instruction is stored, and when the program or instruction is executed by a processor, the steps of the method described in the first aspect are implemented.
[0017] In an embodiment of the present application, when the battery power reaches a preset power level, the power supply state of the electronic device is controlled to be a charger power supply state, the path for the battery to supply power to the mobile phone is cut off, and the charger is adjusted to directly supply power to the mobile phone to avoid the mobile phone consuming the battery power, thereby improving the detection accuracy; and obtaining the actual discharge rate of the battery within the first time, and determining a reference threshold value corresponding to the discharge rate of the battery; and obtaining a detection result indicating whether the battery is healthy based on the comparison result between the actual discharge rate and the reference threshold value. BRIEF DESCRIPTION OF THE DRAWINGS
[0018] Figure 1 is a flowchart of the steps of a battery health detection method for an electronic device provided in this embodiment;
[0019] Figure 2 This is an example of a reference model comparison table provided in this embodiment;
[0020] Figure 3 is another flow chart of steps for calculating the actual discharge rate of a battery provided by this embodiment;
[0021] Figure 4 is another data relationship diagram for calculating the actual power of a battery provided by this embodiment;
[0022] Figure 5 is a module diagram of another battery health detection device for an electronic device provided in this embodiment;
[0023] Figure 6 is a schematic diagram of the structure of another electronic device provided by this embodiment;
[0024] Figure 7 It is a schematic diagram of the hardware structure of another electronic device provided in this embodiment. DETAILED DESCRIPTION
[0025] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.
[0026] The terms "first", "second", etc. in the specification and claims of the present application are used to distinguish similar objects, and are not used to describe a specific order or sequence. It should be understood that the data used in this way can be interchangeable under appropriate circumstances, so that the embodiments of the present application can be implemented in an order other than those illustrated or described here. In addition, the "and / or" in the specification and claims represents at least one of the connected objects, and the character " / " generally represents that the objects associated with each other are in an "or" relationship.
[0027] The following, in conjunction with the accompanying drawings, describes in detail the battery health detection method, device and electronic device of the electronic device provided in the embodiments of the present application through specific embodiments and their application scenarios.
[0028] <Example 1>
[0029] refer to Figure 1 , Figure 1 A battery health detection method for an electronic device provided in this embodiment is shown. The method can be applied to an electronic device, which may be a terminal device such as a mobile phone, a tablet, or a computer. The application scenario of this embodiment is that the electronic device is in a charging state, that is, the battery is in a charging state, so as to detect the charging and discharging performance of the battery according to the operating data of the battery during the charging and discharging process.
[0030] The battery health detection method of the electronic device of this embodiment includes the following steps S110 to S130:
[0031] S110: When the power level of the battery reaches a preset power level, adjust the power supply state of the electronic device to a charger power supply state.
[0032] The application scenario of this embodiment is that the electronic device is in a charging state, that is, the battery is in a continuously charging state. The preset power of this embodiment can be 80% of the full power when the battery is fully charged to ensure that the electronic device is in a sufficient power state. The preset power of this embodiment can also be 60% of the full power when the battery is fully charged to obtain the charging and discharging information of the battery under different power levels, so that the battery health detection results are more comprehensive and convincing.
[0033] In this embodiment, when the battery power reaches the preset power level, the power supply state of the electronic device is adjusted to the charger power supply state, the electronic device is powered directly by the voltage received by the charger, and the battery is stopped from charging. At the same time, the battery is not used to power the electronic device, but only to maintain the normal operation of the battery itself. It can be that when the battery power reaches 80% of the full power, the battery is stopped from charging, so that the battery is maintained at the current power level, and the voltage received by the charging port of the electronic device is used to maintain the system operation of the electronic device. In this case, the collected data such as the battery's own voltage and current can reflect the battery's own health data and will not be affected by the electronic device, so that the battery health detection results can be more accurate.
[0034] It is understandable that in this embodiment, the battery is controlled to be in a state of neither charging nor discharging, so as to avoid the battery being in a long-term charging state, which affects the battery life. In one scenario, the battery is in a long-term charging state mostly at night when the user is sleeping, and when the user is in a sleeping state, most programs in the electronic device are in a dormant state, and the power consumption of the electronic device is more stable. At this time, a health check of the battery can obtain a more accurate test result.
[0035] Therefore, in this embodiment, before adjusting the power supply state of the electronic device to the charger power supply state, it also includes generating a control instruction for the battery according to the user's sleep information. That is, before step S110, it also includes:
[0036] S1000: Acquire sleep information of the user, and generate a charge limit instruction when the sleep information indicates that the user is in a sleep state.
[0037] In one example, the user's sleep information may be the user's heart rate, breathing rate, body temperature, limb movements, and other physical signs that can be collected by a wearable device. The sleep information may be collected by a wearable device worn by the user, such as a smart watch, which can monitor the user's sleep data. For example, the smart watch collects that the user's heart rate during sleep is 65 beats / min; the user's breathing rate is 13 times / min; the user's wrist height during sleep is 9 cm, etc.
[0038] In one example, the user's sleep information includes the user being in a sleeping state and the user being in a non-sleeping state, wherein the non-sleeping state includes the user being in an awake state or a semi-awake state. It can be understood that when the user is in a sleeping state, there is no need to use the electronic device, and when the user is in a non-sleeping state, it can be considered that the user is about to use the electronic device. Therefore, when the sleep information indicates that the user is in a sleeping state, and the battery power has reached a preset power level at this time, a charge limit instruction can be generated to suspend the battery charging voltage input, adjust the power supply state of the electronic device to the charger power supply state, suspend the charging device from charging the battery, and protect the battery.
[0039] In one example, it can be determined that the user is in a sleeping state when the user's heart rate value is less than a first threshold value and the user's movement amplitude is less than a preset amplitude. In a feasible example, the first threshold value can be the heart rate value of a general user in a sleeping state collected through big data, for example, the first threshold value is 70 times / min. In a feasible example, the preset amplitude can be the maximum amplitude of the arm raised by a general user in a sleeping state collected through big data, and under this amplitude, the user can still be in a sleeping state. For example, the preset amplitude is 10cm.
[0040] In one example, when the user's heart rate value is greater than or equal to the first threshold value, and the user's motion amplitude is greater than or equal to the preset amplitude, the duration of the user's heart rate value greater than or equal to the first threshold value within the preset period, and the frequency of the user's motion amplitude greater than or equal to the preset amplitude within the preset period can be obtained to determine the user's sleep state. When the duration is greater than the first time, and the frequency of occurrence is greater than the preset value, it is determined that the user is in a non-sleep state. In an example, taking the first threshold value of 70 times / min, the first time is 5 minutes, the preset amplitude is 10cm, and the preset value is 5 times / min as an example, if the user's heart rate value H=75 times / min, and H continues to be 75 times / min for more than 5 minutes; and the user's motion amplitude G=12cm, that is, the user's motion amplitude is greater than 10cm, and the frequency of G=12cm within the preset period is greater than 5 times / min, it indicates that the user is in a non-sleep state. Otherwise, it is determined that the user is in a sleep state.
[0041] S1001. When the battery power reaches a preset power level, execute a charge limit instruction.
[0042] It can be understood that since the user's sleep state is a variable, that is, the user may change from a sleep state to a non-sleep state at any time, then the charge limit instruction of this embodiment can be generated when the battery power has not reached the preset power. However, if the battery power reaches the preset power and the user is still in a sleep state, the charge limit instruction can be executed to suspend the charging device from charging the battery to protect the battery.
[0043] S120: Acquire an actual discharge rate of the battery within a first period of time, and determine a reference threshold corresponding to the discharge rate of the battery.
[0044] In this embodiment, the first time may be a time set by the system of the electronic device, or a time set by the user through software. In one example, considering that the battery has a small self-discharge under normal circumstances and there is a voltage fluctuation within a certain range, if the first time of measuring the self-discharge of the battery is too short, there will be a certain error. Therefore, the first time in this embodiment is preferably greater than 5 minutes.
[0045] In this embodiment, the actual discharge rate of the battery within the first time can be obtained by the ratio of the voltage difference ΔV of the battery within the first time to the first time Δt1, for example, the discharge rate K=ΔV / Δt1.
[0046] In this embodiment, determining a reference threshold corresponding to the discharge rate of the battery may include the following steps S1201 and S1202:
[0047] S1201. Obtain a set reference model.
[0048] In this embodiment, the reference model may be a mapping function or a comparison table, etc., which is not limited here.
[0049] Taking the reference model as a comparison table as an example, we can establish a battery K value model under different cycle numbers, take a certain number of batteries with different cycle numbers, test the K values under different power ranges, and use the maximum value of multiple sampling values in each battery power range to obtain the maximum value of the K value in each battery power range. According to the maximum value of the K value, the reference threshold of the battery discharge rate in each power range is determined.
[0050] Take the battery with less than 100 cycles as an example, refer to Figure 2 , Figure 2This is a comparison table of the reference model of this embodiment for batteries with a cycle number of less than 100 times. In the range of battery power of 70% to 80%, five samples with battery numbers 1, 2, 3, 4, and 5 are set, and the time interval △t of the voltage difference is unified. The voltage differences corresponding to the five samples are △V1, △V2, △V3, △V4, and △V5. Then take the maximum value of △V1, △V2, △V3, △V4, and △V5 as the maximum Max value of the battery K value, that is, K Max =△Vmax1 / △t, therefore, when the number of battery cycles is within 100 times and the battery power range is 70% to 80%, the reference threshold value of the K value of the corresponding battery is K less than △Vmax1 / △t.
[0051] It should be noted that, during the modeling process, the battery power range and time interval △t can be optimized according to the actual battery chemical system.
[0052] In this embodiment, since the aging state of the battery, that is, the number of battery cycles, affects the discharge rate of the battery, the reference model of this embodiment can reflect the corresponding relationship between the number of battery cycles and the reference threshold of the discharge rate. Figure 2 As shown, the reference threshold value of the discharge rate of a battery with a battery cycle number within 100 times is K less than △Vmax1 / △t. In a feasible example, when the battery cycle number is between 100 and 300 times or between 300 and 500 times, the reference threshold value of the discharge rate of a battery may be K less than △Vmaxn / △t.
[0053] The model of this embodiment only needs to model the K value of the battery under different aging conditions. The modeling database is simple and easy to retrieve for comparison and analysis.
[0054] S1202: Acquire the actual battery cycle number of the battery, and obtain a reference threshold value corresponding to the discharge rate of the battery according to the actual battery cycle number and a set reference model.
[0055] In this embodiment, the battery cycle number x recorded by the processor of the electronic device can be read, and a pre-established K value comparison table can be retrieved at the same time, based on the battery cycle number x and the reference threshold value of the K value corresponding to the corresponding battery when the battery cycle number is x.
[0056] S130. Obtain a detection result indicating whether the battery is healthy based on a comparison result between the actual discharge rate and the reference threshold.
[0057] In this embodiment, obtaining a test result indicating whether the battery is healthy includes the following steps S1301 and S1302:
[0058] S1301. When the actual discharge rate is within a reference threshold, obtain a first detection result indicating battery health.
[0059] In an example, assuming that the actual discharge rate is 0.07 mV / h and the reference threshold is K<0.08 mV / h, then it can be determined that the actual discharge rate is within the reference threshold, and a first detection result indicating battery health is obtained.
[0060] S1302: When the actual discharge rate exceeds a reference threshold, obtain a second detection result indicating that the battery is unhealthy.
[0061] In one example, assuming that the actual discharge rate is 0.09 mV / h and the reference threshold is K<0.08 mV / h, then it can be determined that the actual discharge rate is within the reference threshold, and a first detection result indicating that the battery is unhealthy is obtained.
[0062] In this embodiment, an unhealthy battery may include that the battery is in a short circuit or micro-short circuit state, or the material of the battery is damaged.
[0063] Among them, in this embodiment, when the second test result indicating that the battery is unhealthy is obtained, a warning message can be generated to remind the user to go to the nearest service outlet for repair confirmation to improve the safety of battery use.
[0064] After obtaining the above results, if it is detected that the user is not in a sleeping state at this time, a resume charging instruction can be generated to continue charging the electronic device until the full charge is restored. When the battery is fully charged, if the electronic device is still connected to the charger, a limited charging instruction can continue to be generated to suspend the full charging of the electronic device to ensure the user's battery life experience.
[0065] In addition, the user's sleep information collected in this embodiment is only stored in the local application of the terminal device, and does not involve uploading, so there is no security risk.
[0066] In this embodiment, a wearable device can monitor the user's sleep behavior and obtain data from the wearable device, analyze and process the data, cut off the path for the battery to power the mobile phone without affecting the user's sleep state, adjust the charger to directly power the mobile phone, and put the battery in a self-consumption state to avoid the mobile phone consuming battery power. At the same time, the battery discharge rate K value is calculated, and the battery health status is determined by comparing the K value with the reference threshold, thereby further improving the detection accuracy.
[0067] <Example 2>
[0068] In one example, considering that the battery has a small self-discharge under normal circumstances and there is a voltage fluctuation within a certain range, if the first time of measuring the battery self-discharge is too short, the measured battery voltage difference △V may offset the fluctuating voltage, resulting in calculation errors and affecting the battery health status judgment. For example, 4 minutes after the battery power reaches the preset power, the user is in a non-sleep state, then the result measured by the above embodiment may be inaccurate at this time, then the battery health detection method for the user in the non-sleep state of this embodiment includes: generating a diversion instruction when the sleep information indicates that the user has changed from a sleep state to a non-sleep state.
[0069] In this embodiment, the shunt instruction is used to divide the charging voltage received by the electronic device into a first voltage and a second voltage, the first voltage is used to power the electronic device, and the power supply of the electronic device can provide power for the system operation of the electronic device, or power a running application, and the second voltage is used to charge the battery. This method can prevent the user from using the electronic device in a non-sleep state, which makes the battery discharge process complicated, thereby affecting the battery health detection.
[0070] That is, when the sleep information indicates that the user changes from a sleep state to a non-sleep state, in the above embodiment 1, the actual discharge rate of the battery within the first time is obtained, referring to Figure 3 , also includes:
[0071] S210: Obtain the duration of the electronic device being in a charger powered state.
[0072] In this embodiment, the duration of the electronic device being in the charger power supply state is, that is, the time difference between the moment when the battery power reaches the preset power and the moment when the user is in a non-sleep state. For example, at 3 a.m., the battery power reaches the preset power, and at 3:04 a.m., the user is in a non-sleep state. At this time, the electronic device generates a split current instruction, using the first voltage to power the electronic device and using the second voltage to charge the battery.
[0073] S220: When the duration is less than the second preset time, obtain charging information of the battery from a preset power level to a full power level.
[0074] In this embodiment, when the duration is less than the second preset time, that is, the time when the battery is neither charged nor discharged is too short, the measured battery voltage difference △V may offset the fluctuating voltage, resulting in calculation errors. Therefore, the actual discharge rate of the battery is calculated by obtaining the charging information of the battery from the preset power to the full power.
[0075] The charging information includes the first time, the amount of power provided by the second voltage to the battery during the first time, and the voltage change of the battery itself during the first time. It should be noted that the first time at this time is the time required for the battery to be fully charged from a preset power level. Calculating the discharge rate of the battery by changing the voltage within a large cycle can improve the accuracy of battery health status detection.
[0076] S230: Obtain an actual discharge rate of the battery within the first time according to the charging information.
[0077] According to S220, the first time is the time required for the battery to be fully charged from a preset power level. Assume that the start time of the first time is t2 and the end time is t3. The battery power is 80% at the start time and 100% at the end time. The actual power Q provided to the battery by the second voltage during the time from t2 to t3 is calculated by integration.
[0078] For example, refer to Figure 4 , use the real-time current a and time t to draw a dotted graph, with the horizontal axis being time t and the vertical axis being current a, to obtain the real-time current a=f(t). The shaded area enclosed by the drawn at curve and the horizontal axis is the actual amount of electricity Q provided to the battery by the second voltage, and the integral calculation is performed:
[0079]
[0080] Since the impedance R of the battery is relatively stable, the charge Q is equal to U / R*t, that is, the second voltage U=(F(t3)-F(t2))*R / (t3-t2).
[0081] It can be understood that the second voltage provided to the battery is the actual voltage given to the battery, and through the reference model described in Example 1, a reference voltage value of the battery in the range of a preset power level (for example, 80%) to a full power level can be obtained. Assuming that the reference voltage value is △V30, the difference between the actual voltage and the reference voltage value is the voltage consumed by the self-discharge of the battery, that is, the actual discharge rate of the battery K = (U-△V30) / (t3-t2).
[0082] When the sleep information indicates that the user has changed from a sleeping state to a non-sleeping state, after calculating the actual discharge rate of the battery, the actual discharge rate of the battery in the first time is compared with the corresponding reference threshold in the reference model to obtain a detection result indicating whether the battery is healthy, which is step S130 of the first embodiment.
[0083] This embodiment can avoid the problem of deviation in battery health detection results when the user's sleep state lasts for a short period of time. During the charging process, the charging current of the charger is shunted to ensure that the battery is fully charged without affecting the user experience. At the same time, the battery self-discharge value can be accurately obtained through integral calculation to judge the battery health status.
[0084] It should be noted that the battery health detection method for an electronic device provided in the embodiment of the present application can be executed by a battery health detection device for an electronic device, or by a control module in the battery health detection device for the electronic device for executing the battery health detection method for loading the electronic device. In the embodiment of the present application, the battery health detection method for an electronic device provided in the embodiment of the present application is explained by taking the battery health detection device for an electronic device executing the battery health detection method for loading the electronic device as an example.
[0085] refer to Figure 5 , a battery health detection device for an electronic device is provided, the device comprising:
[0086] The control module 501 is used for adjusting the power supply state of the electronic device to a charger power supply state when the power of the battery reaches a preset power supply state, wherein in the charger power supply state, the battery is suspended from supplying power to the electronic device;
[0087] A data processing module 502 is used to obtain an actual discharge rate of the battery within a first period of time and determine a reference threshold value corresponding to the discharge rate of the battery;
[0088] The health detection module 503 is used to obtain a detection result indicating whether the battery is healthy according to a comparison result between the actual discharge rate and the reference threshold.
[0089] In one example, the data processing module is further used to:
[0090] Acquire a set reference model; wherein the reference model reflects the corresponding relationship between the number of battery cycles of the battery and the reference threshold of the discharge rate;
[0091] The actual battery cycle number of the battery is obtained, and a reference threshold corresponding to the discharge rate of the battery is obtained according to the actual battery cycle number and a set reference model.
[0092] In one example, the health detection module is used to:
[0093] When the actual discharge rate is within the reference threshold, obtaining a first detection result indicating the health of the battery;
[0094] When the actual discharge rate exceeds the reference threshold, a second detection result indicating that the battery is unhealthy is obtained.
[0095] In one example, the control module is further configured to:
[0096] When the sleep information indicates that the user has changed from a sleep state to a non-sleep state, a shunt instruction is generated, wherein the shunt instruction is used to divide the charging voltage received by the electronic device into a first voltage and a second voltage, wherein the first voltage is used to power the electronic device and the second voltage is used to charge the battery.
[0097] In one example, the data processing module is further used to: when the sleep information indicates that the user changes from a sleeping state to a non-sleeping state, obtain the actual discharge rate of the battery within the first time, including:
[0098] Obtain the duration of the battery being in a self-consumption state; when the duration is less than a second preset time, obtain the charging information of the battery during the process from a preset power level to a full charge; based on the charging information, obtain the actual discharge rate of the battery within the first time; wherein the charging information includes a first time, the power provided to the battery by the second voltage within the first time, and the voltage change of the battery itself within the first time, and the first time is the time required for the battery to be charged from a preset power level to a full charge.
[0099] The battery health detection device of the electronic device in the embodiment of the present application can be a device, or a component, integrated circuit, or chip in a terminal. The device can be a mobile electronic device or a non-mobile electronic device. Exemplarily, the mobile electronic device can be a mobile phone, a tablet computer, a laptop computer, a PDA, an in-vehicle electronic device, a wearable device, an ultra-mobile personal computer (ultra-mobile personal computer, UMPC), a netbook or a personal digital assistant (personal digital assistant, PDA), etc., and the non-mobile electronic device can be a server, a network attached storage (Network Attached Storage, NAS), a personal computer (personal computer, PC), a television (television, TV), a teller machine or a self-service machine, etc., which is not specifically limited in the embodiment of the present application.
[0100] The battery health detection device of the electronic device in the embodiment of the present application may be a device having an operating system. The operating system may be an Android operating system, an iOS operating system, or other possible operating systems, which are not specifically limited in the embodiment of the present application.
[0101] The battery health detection device of the electronic device provided in the embodiment of the present application can realize Figure 1 The various processes implemented by the battery health detection device of the electronic device in the method embodiment will not be described again here to avoid repetition.
[0102] Optionally, an embodiment of the present application also provides an electronic device, including a processor 110, a memory 109, and a program or instruction stored in the memory 109 and executable on the processor 110. When the program or instruction is executed by the processor 110, each process of the battery health detection method embodiment of the above-mentioned electronic device is implemented, and the same technical effect can be achieved. To avoid repetition, it will not be repeated here.
[0103] It should be noted that the electronic devices in the embodiments of the present application include the mobile electronic devices and non-mobile electronic devices mentioned above.
[0104] Figure 7 A schematic diagram of the hardware structure of an electronic device to implement an embodiment of the present application.
[0105] The electronic device 1000 includes but is not limited to: a radio frequency unit 1001, a network module 1002, an audio output unit 1003, an input unit 1004, a sensor 1005, a display unit 1006, a user input unit 1007, an interface unit 1008, a memory 1009, and a processor 1010 and other components.
[0106] Those skilled in the art will appreciate that the electronic device 1000 may also include a power source (such as a battery) for supplying power to each component, and the power source may be logically connected to the processor 1010 through a power management system, thereby implementing functions such as managing charging, discharging, and power consumption management through the power management system. Figure 7 The electronic device structure shown in the figure does not constitute a limitation on the electronic device. The electronic device may include more or fewer components than shown in the figure, or combine certain components, or arrange the components differently, which will not be described in detail here.
[0107] The processor 1010 is configured to adjust the power supply state of the electronic device to a charger power supply state when the power of the battery reaches a preset power supply, wherein in the charger power supply state, the battery is temporarily powered to the electronic device;
[0108] Acquire an actual discharge rate of the battery within a first period of time, and determine a reference threshold value corresponding to the discharge rate of the battery;
[0109] According to the comparison result between the actual discharge rate and the reference threshold, a detection result indicating whether the battery is healthy is obtained.
[0110] The processor 1010 is further configured to, before controlling the battery to be in a self-consumption state, the method further comprising:
[0111] Acquiring sleep information of the user, and generating a charge limit instruction when the sleep information indicates that the user is in a sleep state;
[0112] When the power level of the battery reaches a preset power level, the charge limit instruction is executed, and the charge limit instruction is used to suspend the charging voltage input of the battery and control the battery to be in a self-consumption state.
[0113] The processor 1010 is further configured to obtain a set reference model; wherein the reference model reflects a corresponding relationship between the number of battery cycles of the battery and a reference threshold of a discharge rate;
[0114] The actual battery cycle number of the battery is obtained, and a reference threshold corresponding to the discharge rate of the battery is obtained according to the actual battery cycle number and a set reference model.
[0115] The processor 1010 is further configured to obtain a first detection result indicating the health of the battery when the actual discharge rate is within the reference threshold;
[0116] When the actual discharge rate exceeds the reference threshold, a second detection result indicating that the battery is unhealthy is obtained.
[0117] Processor 1010 is also used to generate a diversion instruction when the sleep information indicates that the user has changed from a sleep state to a non-sleep state. The diversion instruction is used to divide the charging voltage received by the electronic device into a first voltage and a second voltage, the first voltage being used to power the electronic device, and the second voltage being used to charge the battery.
[0118] The processor 1010 is further configured to obtain a duration of the battery being in a self-power consumption state;
[0119] When the duration is less than a second preset time, obtaining charging information of the battery from a preset power level to a full power level;
[0120] Acquire, according to the charging information, an actual discharge rate of the battery within a first period of time;
[0121] The charging information includes a first time, a power level provided by the second voltage to the battery within the first time, and a voltage change of the battery itself within the first time, wherein the first time is the time required for the battery to be fully charged from a preset power level.
[0122] It should be understood that in the embodiment of the present application, the input unit 1004 may include a graphics processor (Graphics Processing Unit, GPU) 10041 and a microphone 10042, and the graphics processor 10041 processes the image data of the static picture or video obtained by the image capture device (such as a camera) in the video capture mode or the image capture mode. The display unit 1006 may include a display panel 10061, and the display panel 10061 may be configured in the form of a liquid crystal display, an organic light emitting diode, etc. The user input unit 1007 includes a touch panel 10071 and other input devices 10072. The touch panel 10071 is also called a touch screen. The touch panel 10071 may include two parts: a touch detection device and a touch controller. Other input devices 10072 may include, but are not limited to, a physical keyboard, a function key (such as a volume control button, a switch button, etc.), a trackball, a mouse, and a joystick, which will not be repeated here. The memory 1009 can be used to store software programs and various data, including but not limited to applications and operating systems. The processor 1010 may integrate an application processor and a modem processor, wherein the application processor mainly processes an operating system, a user interface, and application programs, and the modem processor mainly processes wireless communications. It is understandable that the modem processor may not be integrated into the processor 1010.
[0123] An embodiment of the present application also provides a readable storage medium, on which a program or instruction is stored. When the program or instruction is executed by a processor, the various processes of the above-mentioned method embodiment are implemented and the same technical effect can be achieved. To avoid repetition, it will not be repeated here.
[0124] The processor is the processor in the electronic device described in the above embodiment. The readable storage medium includes a computer readable storage medium, such as a computer read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk.
[0125] It should be noted that, in this article, the terms "comprise", "include" or any other variant thereof are intended to cover non-exclusive inclusion, so that the process, method, article or device including a series of elements includes not only those elements, but also includes other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the sentence "comprise one..." do not exclude the presence of other identical elements in the process, method, article or device including the element. In addition, it should be pointed out that the scope of the methods and devices in the embodiments of the present application is not limited to performing functions in the order shown or discussed, and may also include performing functions in a substantially simultaneous manner or in reverse order according to the functions involved, for example, the described method may be performed in an order different from that described, and various steps may also be added, omitted, or combined. In addition, the features described with reference to certain examples may be combined in other examples.
[0126] Through the description of the above implementation methods, those skilled in the art can clearly understand that the above-mentioned embodiment methods can be implemented by means of software plus a necessary general hardware platform, and of course by hardware, but in many cases the former is a better implementation method. Based on such an understanding, the technical solution of the present application, or the part that contributes to the prior art, can be embodied in the form of a software product, which is stored in a storage medium (such as ROM / RAM, a magnetic disk, or an optical disk), and includes a number of instructions for a terminal (which can be a mobile phone, a computer, a server, an air conditioner, or a network device, etc.) to execute the methods described in each embodiment of the present application.
[0127] The embodiments of the present application are described above in conjunction with the accompanying drawings, but the present application is not limited to the above-mentioned specific implementation methods. The above-mentioned specific implementation methods are merely illustrative and not restrictive. Under the guidance of the present application, ordinary technicians in this field can also make many forms without departing from the purpose of the present application and the scope of protection of the claims, all of which are within the protection of the present application.
Claims
1. A battery health detection method for an electronic device, characterized in that: The electronic device is in a charging state, and the method includes: When the power level of the battery reaches a preset power level, adjusting the power supply state of the electronic device to a charger power supply state, and stopping charging the battery, wherein in the charger power supply state, the battery is temporarily suspended from supplying power to the electronic device; Acquiring an actual discharge rate of the battery within a limited charge time, and determining a reference threshold value corresponding to the discharge rate of the battery; According to the comparison result between the actual discharge rate and the reference threshold, a detection result indicating whether the battery is healthy is obtained, Before adjusting the power supply state of the electronic device to the charger power supply state, the method further includes: Acquiring sleep information of the user, and generating a charge limit instruction when the sleep information indicates that the user is in a sleep state; When the power level of the battery reaches a preset power level, executing the charge limit instruction, the charge limit instruction is used to suspend the charging voltage input of the battery and adjust the power supply state of the electronic device to the charger power supply state; Wherein, when the sleep information indicates that the user changes from a sleep state to a non-sleep state, a shunt instruction is generated, wherein the shunt instruction is used to divide the charging voltage received by the electronic device into a first voltage and a second voltage, wherein the first voltage is used to power the electronic device, and the second voltage is used to charge the battery, and the actual discharge rate of the battery within the first time is obtained, including: Acquire the duration of the electronic device being powered by a charger in a sleep state; When the duration is less than a second preset time, obtaining charging information of the battery from a preset power level to a full power level; Obtaining a second voltage value according to the amount of electricity provided by the second voltage to the battery during the first time and the battery impedance; Determine a reference voltage value of the battery within a range from a preset power level to a fully charged power level according to a set reference model; obtaining an actual discharge rate of the battery within the first time according to a ratio of a difference between the second voltage and the reference voltage value and the first time, and comparing the actual discharge rate of the battery within the first time with a corresponding reference threshold in the reference model to obtain a detection result indicating whether the battery is healthy; The charging information includes a first time and a power level provided by the second voltage to the battery within the first time, and the first time is the time required for the battery to be fully charged from a preset power level.
2. The method according to claim 1, characterized in that The determining a reference threshold corresponding to the discharge rate of the battery comprises: Acquire a set reference model; wherein the reference model reflects the corresponding relationship between the number of battery cycles of the battery and the reference threshold of the discharge rate; The actual battery cycle number of the battery is obtained, and a reference threshold corresponding to the discharge rate of the battery is obtained according to the actual battery cycle number and a set reference model.
3. The method according to claim 1, characterized in that The obtaining, according to the comparison result between the actual discharge rate and the reference value, a detection result indicating whether the battery is healthy, comprises: When the actual discharge rate is within the reference threshold, obtaining a first detection result indicating the health of the battery; When the actual discharge rate exceeds the reference threshold, a second detection result indicating that the battery is unhealthy is obtained.
4. A battery health detection device for an electronic device, characterized in that: The device comprises: A control module, configured to adjust the power supply state of the electronic device to a charger power supply state and stop charging the battery when the power of the battery reaches a preset power supply, wherein in the charger power supply state, the power supply of the battery to the electronic device is suspended; A data processing module, used to obtain an actual discharge rate of the battery within a limited charge time, and determine a reference threshold value corresponding to the discharge rate of the battery; a health detection module, configured to obtain a detection result indicating whether the battery is healthy according to a comparison result between the actual discharge rate and the reference threshold, Wherein, before adjusting the power supply state of the electronic device to the charger power supply state, the control module is further used to: Acquiring sleep information of the user, and generating a charge limit instruction when the sleep information indicates that the user is in a sleep state; When the power level of the battery reaches a preset power level, executing the charge limit instruction, the charge limit instruction is used to suspend the charging voltage input of the battery and adjust the power supply state of the electronic device to the charger power supply state; The control module is further used to: when the sleep information indicates that the user changes from a sleep state to a non-sleep state, generate a shunt instruction, the shunt instruction is used to divide the charging voltage received by the electronic device into a first voltage and a second voltage, the first voltage is used to power the electronic device, and the second voltage is used to charge the battery, and obtain the actual discharge rate of the battery in the first time, including: Acquire the duration of the electronic device being powered by a charger in a sleep state; When the duration is less than a second preset time, obtaining charging information of the battery from a preset power level to a full power level; Obtaining a second voltage value according to the amount of electricity provided by the second voltage to the battery during the first time and the battery impedance; Determine a reference voltage value of the battery within a range from a preset power level to a fully charged power level according to a set reference model; obtaining an actual discharge rate of the battery within the first time according to a ratio of a difference between the second voltage and the reference voltage value and the first time, and comparing the actual discharge rate of the battery within the first time with a corresponding reference threshold in the reference model to obtain a detection result indicating whether the battery is healthy; The charging information includes a first time and a power level provided by the second voltage to the battery within the first time, and the first time is the time required for the battery to be fully charged from a preset power level.
5. An electronic device, characterized in that: comprising the device of claim 4, or The method comprises a processor, a memory, and a program or instruction stored in the memory and executable on the processor, wherein the program or instruction, when executed by the processor, implements the steps of the method according to any one of claims 1 to 3.
6. A readable storage medium, characterized in that: The readable storage medium stores a program or instruction, and when the program or instruction is executed by a processor, the steps of the method according to any one of claims 1 to 3 are implemented.
Citation Information
Patent Citations
Method and system for discharging rechargeable battery of mobile terminal
CN106356580A
On-board battery failure early warning system and method based on Internet of Vehicles
CN106680720A
Method for monitoring safety of adapter, terminal device and battery thereof and monitoring system
CN110062978A
Method and apparatus for determining abnormal state of battery
US20180183252A1