Method and device for predicting service life of battery and electronic equipment

By measuring and calculating the discharge characteristics of the battery in the working mode of the IoT module, the problem of module battery life prediction is solved, accurate life evaluation and capacity determination are achieved, and equipment reliability and management efficiency are improved.

CN119165353APending Publication Date: 2024-12-20CHINA TOWER CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411188839.2
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-08-27
Publication Date
2024-12-20

AI Technical Summary

Technical Problem

The prior art lacks effective and precise prediction of the working life of IoT module batteries, resulting in the inability to determine the appropriate battery capacity, affecting the difficulty of equipment design and maintenance.

Method used

By measuring the discharge current information, working cycle and demand power of the battery in the target working mode, the discharge amount from the battery discharge to the minimum voltage, and calculate the working life of the battery in the target working mode based on the working cycle and demand power.

Benefits of technology

Accurate estimates of battery life are achieved, helping to optimize battery management, improve equipment reliability, shorten prediction cycles, and improve prediction efficiency.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119165353A_ABST
    Figure CN119165353A_ABST
Patent Text Reader

Abstract

The invention discloses a battery life prediction method and apparatus, and an electronic device. The method comprises the steps of measuring discharge current information of a battery supplying power to a target device in a target working mode, a working period of the battery in the target working mode, and a required electric quantity of the target device in the working period; based on the discharge current information, determining the discharge capacity when the battery is discharged to the minimum voltage; and determining the working life of the battery in the target working mode based on the working period, the required electric quantity and the discharge quantity.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of power application technology, and in particular to a method, device and electronic device for predicting battery life. Background Art

[0002] With the continuous development of science and technology, various IoT modules continue to emerge, such as temperature and humidity monitoring, water, electricity and gas meter reading modules, etc. Although a few modules are powered by wires, most modules still rely on batteries due to their low reporting frequency and low power consumption. They mainly use low-power and convenient lithium-thionyl chloride batteries. The working life of the battery is a key indicator that directly affects the design, deployment and maintenance difficulty of the module equipment. In order to reduce the frequency of battery replacement, the working life of the battery is usually designed to vary from several years.

[0003] However, there is currently a lack of effective and accurate methods for predicting the service life of batteries in modules, which makes it impossible to determine the appropriate battery capacity to meet the usage requirements of the module equipment, and it is impossible to predict the service life of batteries in existing module equipment. Summary of the invention

[0004] The purpose of the embodiments of the present application is to provide a battery life prediction method, device and electronic device to solve the current problem that the working life of the module battery cannot be effectively and accurately predicted, and thus the battery capacity cannot be determined.

[0005] In order to achieve the above objectives, the present application embodiment adopts the following technical solutions:

[0006] In a first aspect, an embodiment of the present application provides a battery life prediction method, comprising:

[0007] Measuring discharge current information of a battery powering a target device in a target working mode, a working cycle of the battery in the target working mode, and power demand of the target device in the working cycle;

[0008] Based on the discharge current information, determining a discharge amount when the battery is discharged to a minimum voltage;

[0009] The working life of the battery in the target working mode is determined based on the working cycle, the required power and the discharged power.

[0010] In a second aspect, an embodiment of the present application provides a battery life prediction device, comprising:

[0011] A measuring unit, used to measure discharge current information of a battery powering a target device in a target working mode, a working cycle of the battery in the target working mode, and power demand of the target device in the working cycle;

[0012] A first determining unit, configured to determine a discharge amount when the battery is discharged to a minimum voltage based on the discharge current information;

[0013] The second determining unit is used to determine the working life of the battery in the target working mode based on the working cycle, the required power and the discharged power.

[0014] In a third aspect, an embodiment of the present application provides an electronic device, comprising: a processor; and a memory for storing instructions executable by the processor; wherein the processor is configured to execute the instructions to implement the method described in the first aspect.

[0015] In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium. When instructions in the storage medium are executed by a processor of an electronic device, the electronic device can execute the method described in the first aspect.

[0016] At least one of the above-mentioned technical solutions adopted in the embodiments of the present application can achieve the following beneficial effects: by measuring the discharge current information of the battery powering the target device in the target working mode, the working cycle of the battery in the target working mode and the required power of the target device during the working cycle, based on the discharge current information, the discharge amount of the battery when it is discharged to the minimum voltage is determined, and then based on the working cycle and the required power, as well as the discharge amount of the battery when it is discharged to the minimum voltage, the working life of the battery in the target working mode is determined, the actual service life of the battery in a specific working mode can be accurately estimated, and then the appropriate battery capacity can be determined to meet the use requirements of the module device, and the life of the battery in the existing module device can be predicted, thereby helping to optimize battery management and improve equipment reliability. At the same time, the working life of the battery in the target working mode is determined by combining measurement and calculation. Compared with the pure measurement method, the working life of the battery can be predicted faster and more effectively, the prediction cycle can be shortened, and the prediction efficiency can be improved. BRIEF DESCRIPTION OF THE DRAWINGS

[0017] The drawings described herein are used to provide a further understanding of the present application and constitute a part of the present application. The illustrative embodiments of the present application and their descriptions are used to explain the present application and do not constitute an improper limitation on the present application. In the drawings:

[0018] Figure 1 A flowchart of a battery life prediction method provided for one embodiment of the present application;

[0019] Figure 2 One of the state cycle flow diagrams provided for an embodiment of the present application;

[0020] Figure 3A curve diagram showing the change of discharge current over time provided in one embodiment of the present application;

[0021] Figure 4 A schematic diagram of the structure of a power supply system provided for one embodiment of the present application;

[0022] Figure 5 A second state cycle flow diagram provided for an embodiment of the present application;

[0023] Figure 6 A third state cycle flow diagram provided for an embodiment of the present application;

[0024] Figure 7 A flowchart of another battery life prediction method provided for one embodiment of the present application;

[0025] Figure 8 A schematic diagram of the structure of a battery life prediction device provided for one embodiment of the present application;

[0026] Fig. 9 A schematic diagram of the structure of an electronic device provided for one embodiment of the present application. DETAILED DESCRIPTION

[0027] In order to make the purpose, technical solution and advantages of the present application clearer, the technical solution of the present application will be clearly and completely described below in combination with the specific embodiments of the present application and the corresponding drawings. Obviously, the described embodiments are only 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 making creative work are within the scope of protection of the present application.

[0028] The terms "first", "second", etc. in this specification and claims are used to distinguish similar objects, and are not used to describe a particular order or precedence. It should be understood that the terms used in this way can be interchanged where appropriate so that the embodiments of the present application are implemented in a sequence other than those illustrated or described herein. In addition, "and / or" in this specification and claims means at least one of the connected objects, and the character " / " generally means that the objects associated with each other are in an "or" relationship.

[0029] The technical solutions provided by various embodiments of the present application are described in detail below in conjunction with the accompanying drawings.

[0030] With the continuous development of science and technology, various IoT modules continue to emerge, such as temperature and humidity monitoring, water, electricity and gas meter reading modules, etc. Although a few modules are powered by wires, most modules still rely on batteries due to their low reporting frequency and low power consumption. They mainly use low-power and convenient lithium-thionyl chloride batteries. The working life of the battery is a key indicator that directly affects the design, deployment and maintenance difficulty of the module equipment. In order to reduce the frequency of battery replacement, the working life of the battery is usually designed to vary from several years.

[0031] However, there is currently a lack of effective and accurate methods for predicting the service life of batteries in modules, which makes it impossible to determine the appropriate battery capacity to meet the usage requirements of the module equipment, and it is impossible to predict the service life of batteries in existing module equipment.

[0032] In view of this, an embodiment of the present application provides a battery life prediction method, which measures the discharge current information of a battery powering a target device in a target working mode, the working cycle of the battery in the target working mode, and the power demand of the target device during the working cycle, and determines the discharge amount of the battery when it is discharged to the minimum voltage based on the discharge current information, and then determines the working life of the battery in the target working mode based on the working cycle and the power demand, as well as the discharge amount of the battery when it is discharged to the minimum voltage. The method can accurately estimate the actual service life of the battery in a specific working mode, and then determine the appropriate battery capacity to meet the use requirements of the module device, and can predict the life of the battery in the existing module device, thereby helping to optimize battery management and improve equipment reliability. At the same time, the working life of the battery in the target working mode is determined by combining measurement and calculation. Compared with the pure measurement method, the working life of the battery can be predicted faster and more effectively, shortening the prediction cycle and improving the prediction efficiency.

[0033] Specifically, see Figure 1 , is a flow chart of a battery life prediction method provided by an embodiment of the present application. Figure 1 As shown, an embodiment of the present application provides a battery life prediction method, which may include the following steps:

[0034] S102, measuring discharge current information of a battery supplying power to a target device in a target working mode, a working cycle of the battery in the target working mode, and power requirement of the target device in the working cycle.

[0035] Among them, the target device is a device or system that needs to be powered by a battery to work properly, such as: module devices, mobile devices, wearable devices, household appliances, consumer electronic products, medical equipment, security equipment, transportation equipment, outdoor equipment, etc. Module devices are modules or components with specific functions, usually used to be integrated into other devices or systems, such as but not limited to: temperature and humidity monitoring modules, water, electricity and gas meter reading modules, etc. Mobile devices include but are not limited to mobile phones, tablets, laptops, etc. Wearable devices include but are not limited to smart watches, fitness trackers, etc. Household appliances include but are not limited to remote controls, cordless vacuum cleaners, etc. Consumer electronic products include but are not limited to wireless headphones, cameras, etc. Medical devices include but are not limited to blood glucose meters, hearing aids, etc. Security equipment includes but is not limited to wireless alarm systems, wireless cameras, etc. Transportation tools include but are not limited to electric vehicles, electric scooters, etc.

[0036] The battery refers to a power supply device that provides power to the target device, such as common batteries: lithium-ion batteries, nickel-metal hydride batteries, etc. In some embodiments, when the target device is a module device, the battery that powers the target device is mainly a lithium-thionyl chloride battery.

[0037] Among them, the target working mode refers to the working state or operation mode of the target device under specific conditions, such as normal working mode, heavy load working mode, etc. In some embodiments, the target device has multiple working modes, and the specific working mode can be determined according to the detection index and the reporting frequency. For example, the temperature and humidity monitoring module has 4 working modes, as shown in Table 1, mode 1 corresponds to detecting temperature or humidity and reporting once per hour, mode 2 corresponds to detecting temperature or humidity and reporting twice per hour, mode 3 corresponds to detecting temperature and humidity and reporting once per hour, and mode 4 corresponds to detecting temperature and humidity and reporting twice per hour.

[0038] Table 1

[0039]

[0040] The discharge current information refers to information related to the current output by the battery in the target operating mode of the target device, including but not limited to information such as the current unit, specific current value or current magnitude, etc. In some embodiments, the target operating mode has multiple operating states, and the discharge current information also includes information related to the current output by the battery in various operating states of the target device.

[0041] The working cycle refers to the time required for the battery to complete a specified action in the target working mode of the target device. In some embodiments, the target working mode has multiple working states, and the multiple working states are cycled, and each cycle corresponds to a working cycle. For example: the target device has M working modes, and the mth (m=1,2...M) working mode has N working states. When the target device cycles in the N working states of the target working mode, the time required for each cycle corresponds to a working cycle, such as Figure 2 As shown, it is one of the state cycle flow diagrams provided by an embodiment of the present application.

[0042] The power requirement refers to the power required by the target device during operation, which is proportional to the working time. The above S102 measures the power requirement of the target device during a working cycle, which actually measures the power required by the target device to run a working cycle.

[0043] When the target working mode includes multiple working states, the discharge current of the battery in each working state is different. The curve of the discharge current of the battery in the target working mode changing with time can be obtained by measuring with an instrument, for example: Figure 3 As shown, a curve diagram of a discharge current varying with time provided by an embodiment of the present application is shown. Figure 3 It can be seen that the target device is in standby state most of the time, that is, from t8 to t9. Figure 3 The corresponding relationship between the time and the discharge current is shown in Table 2.

[0044] Table 2

[0045]

[0046]

[0047] Figure 3 In the figure, the period from t2 to t4, the period from t4 to t6, the period from t6 to t8, and the period from t8 to t9 correspond to a working state respectively. The target device completes a working cycle every time T = t9-t2, and the cycle repeats. Assuming that the curve of the discharge current changing with time is I(t), then the power required by the target device in one working cycle is C T for:

[0048] In reality, the discharge current fluctuates greatly, and it is impossible to find the function I(t) of the specific current with respect to time t. Therefore, it is necessary to define an operational method to test the power consumption of the device in a certain mode within a cycle.

[0049] Specifically, as an optional implementation, firstly, a curve graph of the discharge current of the battery under the target working mode and in each working state over time is obtained by measuring with an instrument, and at least two working cycles are measured. According to the curve graph, the peak and valley currents of the target device in a complete cycle are measured. According to the peak and valley currents, the current value of the state transition point between two adjacent working states of the target device in one working cycle is calculated. According to the current value of the state transition point, the state transition point between adjacent working states is determined. According to the state transition point, the start and end time of the target device in each working state is determined. For example: combined with Figure 3 The curve diagram of the discharge current changing with time shows the process of determining the start and end time of the target device in each working state. Figure 3 As shown, the standby current of the target device is I1 (a known value in actual applications). When the standby current increases by more than 10%, it is considered to enter the non-standby state. When the current drops from the non-standby state to 110% of the standby state current, it is considered to enter the standby state. The start and end time, start and end current, and peak or valley current of each working state of the target device in the target working mode m are shown in Table 3.

[0050] Table 3

[0051]

[0052]

[0053] In Table 3, currents I3, I5, and I7 are instrument measurement values, and currents I2, I4, and I6 at the state transition points are calculated values. The specific calculation process is as follows: I2 = (1 + a) × I1, where a = 10%, indicating that when the current relative to the standby current increases by more than 10%, it is recorded as the start time of state 1. The value of a can be adjusted according to actual conditions. Among them, the currents I4 and I6 at the state transition points are taken as the simple arithmetic average of the peak and valley currents. If the current value curve is two consecutive peaks (such as Figure 3 The curve in the figure is smoothly connected from I5 to I7, which is the case of two consecutive peaks). The simple arithmetic mean of the two peaks can be taken. In this way, the start and end time of the target device in each working state can be determined.

[0054] According to the start and end time of the target device in each working state, the time interval corresponding to each working state is determined. According to the time interval corresponding to each working state, the discharge current information of the battery in the target working mode, the working cycle of the battery in the target working mode and the power required by the target device in one working cycle are measured.

[0055] Specifically, as an optional implementation, in the case where the target operating mode includes multiple operating states, measuring the discharge current information of the battery powering the target device in the target operating mode in the above S102 may include the following steps:

[0056] S120: For each working state, collect multiple instantaneous discharge currents of the battery in the working state.

[0057] S122, determining a first average discharge current of the battery in a working state based on the sum of squares of multiple instantaneous discharge currents.

[0058] S124, obtaining discharge current information based on a first average discharge current of the battery in each working state.

[0059] According to the multiple instantaneous discharge currents of the battery collected in the time interval corresponding to the specific working state, the square sum of the multiple instantaneous discharge currents is calculated to obtain the first average discharge current of the battery in the specific working state, and the discharge current information is obtained according to the relevant information of the first average current of the battery in each working state. For example: during the working state n under the target working mode m, the test instrument samples R current values ​​i1, i2, ..., i R , then based on the RMS of these R current values, the first average discharge current I corresponding to the working state n of the battery under the target working mode m is calculated. mn (unit In the same way, the first average discharge current corresponding to each working state of the battery in the target mode m is determined, and then the discharge current information is obtained.

[0060] As an optional manner, a simple arithmetic average may be performed on the collected instantaneous current to obtain a first average discharge current corresponding to each working state.

[0061] The embodiment of the present application acquires the instantaneous discharge current of the battery under different working conditions and calculates the first average discharge current of the battery under each working condition to obtain the discharge current information under the target working mode, which can accurately reflect the actual discharge characteristics of the battery under each working condition, improve the accuracy of the discharge current information, and further improve the accuracy and effectiveness of predicting the battery service life, while optimizing the comprehensiveness and meticulousness of data processing, providing a more reliable basis for battery performance analysis and management.

[0062] As an optional implementation, the above S120 may include the following steps: determining a sampling time from a time interval corresponding to the working state based on the state type of the working state;

[0063] Based on the preset sampling period and sampling time, multiple instantaneous discharge currents of the battery in the working state are collected.

[0064] Among them, the state type includes standby state and non-standby state. If the state type of the working state is non-standby state, the time interval corresponding to the working state is used as the sampling time; if the state type of the working state is standby state, the sampling time is determined from the time interval corresponding to the working state based on the preset duration. Specifically, starting from any time point in the time interval corresponding to the working state, a continuous time interval that meets the preset duration is selected as the sampling time. For example: the time interval corresponding to the working state is [80,90], unit s (seconds). If the state type of the working state is non-standby state, the sampling time is [80,90]; if the state type of the working state is standby state, assuming that the preset duration is 3s, starting from the 85th second, the continuous time interval that meets the preset duration is [85,88], then the sampling time is [85,88].

[0065] The embodiment of the present application obtains multiple instantaneous discharge currents of the battery in each working state through full collection, which can effectively improve the accuracy of battery performance data. Generally, the time that the target device is in a non-standby state is much shorter than the time in a standby state. For example, a water meter reading IoT module may only report once a day. Since the target device is in a standby state most of the time, and the current during the standby period is relatively stable, if full collection is used in the standby state, the root mean square value of the current in the standby state is calculated based on the multiple instantaneous discharge currents collected, which will increase the amount of calculation. Therefore, a period of standby time can be selected for collection, and the average current of the battery in the standby state can be calculated, so there is no need to fully calculate the root mean square value of the current in the standby state, which can effectively reduce the amount of calculation and speed up the calculation, thereby improving the efficiency of battery life prediction.

[0066] After determining the sampling time, the sampling start time point is determined according to the sampling time, and based on the preset sampling period, the sampling starts from the sampling start time point, and an instantaneous discharge current is collected every period of time. Specifically, an example will be used here for illustration, which should not be understood as a limitation on the method of the embodiment of the present application. For example: the sampling period is 2s, the sampling time is [80,90], the 80th second is the sampling start time point, and the sampling starts from the 80th second. Every 2 seconds, an instantaneous discharge current is collected, and a total of 5 instantaneous discharge currents are collected.

[0067] The embodiment of the present application can effectively improve the accuracy of battery performance data by collecting multiple instantaneous discharge currents of the battery in each working state and collecting data based on the sampling time and the preset sampling period. At the same time, according to the state type of the working state, different methods are used to determine the sampling time. It is not necessary to collect the full amount of each working state. It is only necessary to select a period of time from the time interval corresponding to the working state for collection. Therefore, there is no need to calculate the full amount of the current root mean square value of the standby state, which can effectively reduce the amount of calculation and speed up the calculation, thereby improving the efficiency of battery life prediction.

[0068] As an optional implementation, when the target working mode includes multiple working states, the working cycle of the battery under the target working mode in the above S102 can be measured by determining the duration corresponding to each working state according to the time interval corresponding to each working state, and calculating the working cycle of the battery under the target working mode according to the sum of the durations corresponding to each working state. For example: the target mode m includes N working states, the time interval corresponding to the nth (n=1,2…N) working state is [t8,t9], unit s (seconds), and the duration is t mn =t9-t8, a working cycle T (unit: s) of the target device in the target working mode m is:

[0069] As an optional implementation, when the target working mode includes multiple working states, the power demand of the target device in one working cycle measured in S102 can be determined according to the time interval corresponding to each working state, and the duration corresponding to each working state can be determined. For each working state, the power demand of the target device in the working state is calculated based on the product of the corresponding first average discharge current and the corresponding duration. The power demand of the target device in one working cycle is calculated based on the sum of the power demand of the target device in each working state. For example: the target mode m includes N working states, and the first average discharge current corresponding to the nth (n=1,2…N) working state is I mn (Unit: mA), duration is t mn (Unit: s), the power C required for the target device to cycle a working cycle T (Unit: mAh) is:

[0070] S104, determining the discharge amount when the battery is discharged to a minimum voltage based on the discharge current information.

[0071] The minimum voltage is the minimum voltage for the target device to work properly. In some embodiments, to test the battery capacity, the battery needs to be discharged at a certain current until it reaches a minimum voltage (unit: V) that can support the normal operation of the target device. During this period, the amount of electricity discharged by the battery is the capacity of the battery under the current condition.

[0072] When the battery provides power to the target device, the discharge current of the battery is determined based on the measured discharge current information, and then the battery is controlled to discharge at the determined discharge current, and the amount of electricity discharged during the battery discharge process is measured until the battery voltage drops from the starting voltage to the minimum voltage, and the discharge amount when the battery is discharged to the minimum voltage is obtained. Among them, the starting battery is related to the performance of the battery itself and is provided by the manufacturer. In general, the starting voltage of the battery is higher and greater than the minimum voltage for normal operation of the device.

[0073] As an optional implementation, when the target working mode includes multiple working states, and the discharge current information includes a first average discharge current of the battery in each working state, the above S104 may include the following steps: for each working state, measuring the discharge capacity of the battery when it is discharged to the minimum voltage with the first average discharge current in the working state, as the discharge capacity corresponding to the working state;

[0074] Based on the time interval corresponding to each working state, the discharge amounts corresponding to the multiple working states are weighted summed to obtain the discharge amount when the battery is discharged to the minimum voltage.

[0075] For a specific working state, the battery is controlled to discharge at the first average discharge current corresponding to the specific working state, and the amount of electricity discharged by the battery during the discharge process is measured until the battery voltage drops from the starting voltage to the minimum voltage. At this time, the discharge amount measured is the discharge amount corresponding to the specific working state. For example: Assuming that the first average discharge current of the battery under a specific working state is 0.5mA, the starting voltage of the battery is 5V, and the minimum voltage is 1V, the battery is controlled to discharge at a current of 0.5mA, and the amount of electricity discharged by the battery during the discharge process is measured until the battery voltage drops from 5V to 1V. The measured discharge amount is 10CmAh, thereby determining that the discharge amount corresponding to the specific working state is 10CmAh.

[0076] Determine the discharge amount corresponding to each working state, determine the time proportion corresponding to each working state based on the time interval corresponding to each working state, use the time proportion corresponding to each working state as the weight coefficient, and perform weighted summation on the discharge amounts corresponding to multiple working states to obtain the discharge amount when the battery is discharged to the minimum voltage. For example: the target mode m includes N working states, and the duration corresponding to the nth (n=1,2…N) working state is t mn(Unit: s), the working cycle is T, and the time proportion corresponding to the working state n is P mn for: The time proportion corresponding to each working state is used as a weight coefficient, and the discharge capacity corresponding to each of the multiple working states is weighted and summed to obtain the discharge capacity when the battery is discharged to the minimum voltage.

[0077] The embodiment of the present application can more accurately reflect the discharge performance of the battery in actual use by accurately calculating the total discharge capacity of the battery when it is discharged to the minimum voltage, and by measuring the discharge capacity under different working conditions and taking the weighted sum, thereby providing more reliable battery status evaluation and management and improving the accuracy of battery life prediction.

[0078] Since the target device has N working states under the target working mode m, and the N working states correspond to N first average discharge currents, if the amount of electricity discharged by the battery under different currents is tested according to the time proportion of each current, and the capacity of the battery in this mode is obtained according to the sum of all the electricity (that is, the discharge amount when the battery is discharged to the minimum voltage), then the test will take a long time, and actually the entire life cycle of the battery (several years) is tested, and the test must switch between different currents, which is complicated. In order to shorten the test time and simplify the test steps, the second average discharge current of the battery under the target working mode can be calculated first, and the discharge amount of the battery when it is discharged to the minimum voltage can be measured.

[0079] Specifically, as an optional implementation, when the target operating mode includes multiple operating states, and the discharge current information includes a first average discharge current of the battery in each operating state, the above S104 may include the following steps: determining a second average discharge current of the battery in the target operating mode based on the first average discharge current of the battery in each operating state and a time interval corresponding to each operating state;

[0080] The discharge capacity of the battery when it is discharged to the minimum voltage at the second average discharge current is measured as the discharge capacity of the battery when it is discharged to the minimum voltage.

[0081] In the embodiment of the present application, the time proportion corresponding to each working state can be determined based on the time interval corresponding to each working state, and used as the weight coefficient to perform weighted summation on the first average discharge current of the battery under different working states to obtain the second average discharge current of the battery under the target working mode, and then measure the discharge amount of the battery when it is discharged to the minimum voltage with the second average discharge current, as the discharge amount of the battery when it is discharged to the minimum voltage. For example: the target working mode m includes N working states, and the first average discharge current corresponding to the nth (n=1,2…N) working state is I mn (Unit: mA), time specific gravity is P mn, the second average discharge current I of the battery in the target working mode m avg for: Control the battery with current I avg Discharge until the battery voltage drops to the minimum voltage, and measure the amount of electricity discharged by the battery during this period. The discharge amount when the battery is discharged to the minimum voltage is C m .

[0082] The embodiment of the present application calculates the second average discharge current of the battery in the target working mode through the first average discharge current under each working state, so as to accurately measure the discharge amount of the battery when it is discharged to the minimum voltage based on the second average discharge current, thereby improving the ability to accurately predict the discharge amount of the battery under actual working conditions. It is suitable for devices with a short standby state, can shorten the battery discharge cycle, speed up the measurement speed of the discharge amount, and improve the efficiency of life prediction.

[0083] The standby current of the target device is small. When the standby time is long, even if the battery is controlled to discharge at the second average discharge current, it will take a long time. In order to further shorten the time period of battery service life prediction and improve prediction efficiency, a step-by-step discharge test can be used.

[0084] Specifically, as an optional implementation, when the discharge current information includes a second average discharge current of the battery in the target working mode, the above S104 may include the following steps: amplifying the second average discharge current according to a plurality of preset amplification factors to obtain a plurality of third average discharge currents;

[0085] Determine the initial voltage and the termination voltage corresponding to each third average discharge current based on a preset voltage drop coefficient and a difference between the starting voltage and the minimum voltage of the battery;

[0086] For each third average discharge current, based on the initial voltage and the termination voltage, control the battery to discharge at the third average discharge current, and measure the discharge capacity of the battery as the discharge capacity corresponding to the third average discharge current;

[0087] The discharge capacities corresponding to the plurality of third average discharge currents are weightedly summed to obtain the discharge capacity when the battery is discharged to the minimum voltage.

[0088] The preset amplification factor can be set according to actual needs, and is usually a multiple of 10, such as 1, 10, 100, 1000, etc. The second average discharge current is amplified according to multiple preset amplification factors to obtain multiple third average discharge currents. For example, assuming that the second average discharge current is I avg , after enlargement, it is I avg , 10I avg 、100I avg 、1000Iavg and so on for multiple third average discharge currents.

[0089] Among them, the preset voltage drop coefficient can be set according to actual needs. Based on the preset voltage drop coefficient, and the difference between the starting voltage of the battery and the minimum voltage for normal operation of the target device, determine the initial voltage and termination voltage corresponding to each third average discharge current. The initial voltage is the initial voltage of the battery when it is discharged with the corresponding third average discharge current. The termination voltage is the termination voltage of the battery when it is discharged with the corresponding third average discharge current. The battery is controlled to discharge with the corresponding third average discharge current, the battery voltage drops from the initial voltage to the termination voltage, and the discharge capacity of the battery is measured, that is, the discharge capacity corresponding to the corresponding third average discharge current. Based on the preset weight coefficient, the discharge capacities corresponding to each of the multiple third average discharge currents are weighted and summed to obtain the discharge capacity C when the battery is discharged to the minimum voltage. m For example: Assume that the third average discharge current after amplification is I avg , 10I avg 、100I avg 、1000I avg , control the battery to 1000I avg From the starting voltage V start =3.6V when discharged to step 1 voltage V1 = 2.72V, the discharge amount is C 1000avg , where V1 = V start -c×(V start -V min ), c = 80%;

[0090] Control battery with 100I avg When V1 is discharged to the second step voltage V2 = 2.555V, the discharge amount is C 100avg , where V2 = V1-d×(V start -V min ), d = 15%;

[0091] Control battery with 10I avg When discharging from V2 to the step three voltage V3 = 2.511V, the discharge amount is C 10avg , where V3 = V2-e×(V start -V min ), e = 4%;

[0092] Control battery with I avg Discharge from V3 to the minimum voltage V for the device to work normally min =2.5V, the discharge amount is C avg , where V min =V3-f×(V start -V min), f = 1%; the above calculation process can be summarized as the content of Table 4. As shown in Table 4:

[0093] Table 4

[0094]

[0095] By taking the weighted sum of the discharge capacity corresponding to each step, the discharge capacity C of the battery is obtained. m For: C m =g×C 1000avg +h×C 100avg +k×C 10avg +q×C avg .

[0096] In the above example, c, d, e, and f are the voltage drop coefficients, c+d+e+f=100%, and c>d>e>f. Because in the same time, large current discharge can discharge more electricity; or for the same amount of electricity, large current discharge time is shorter. In some embodiments, the preset voltage drop coefficient is proportional to the preset amplification factor.

[0097] In the above example, g, h, k, and q are preset weight coefficients, which are numbers slightly greater than or equal to 1 and can be obtained through test experience, and g>h>k>q, usually g=1.3, h=1.2, k1.1, and q=1. Because the larger the current, the greater the deviation between the amount of electricity discharged by the battery and the amount of electricity that can be discharged at the average current. In some embodiments, the preset weight coefficient is proportional to the preset amplification factor.

[0098] The embodiment of the present application amplifies the second average discharge current and measures the corresponding discharge capacity, thereby more accurately calculating the actual discharge performance of the battery under different discharge conditions, reflecting the discharge behavior of the battery under different current intensities in more detail, and improving the accuracy and reliability of the discharge capacity calculation. It is suitable for equipment with a long standby state, and can ensure a high accuracy of life prediction while shortening the battery discharge cycle, speeding up the measurement speed of the discharge capacity, and improving the efficiency of life prediction.

[0099] S106, determining the working life of the battery in the target working mode based on the working cycle, the required power and the discharged power.

[0100] The working life refers to the length of time that a battery can provide power to a device. In practical applications, the working life is usually measured in years.

[0101] In the embodiment of the present application, based on the discharge current information, it is determined that the discharge amount of the battery when it is discharged to the minimum voltage is the actual capacity of the battery. Without considering the additional power consumption, the battery power should be fully provided to the target device, and then the actual capacity of the battery should be equal to the power consumed by the target device. Therefore, without considering the additional power consumption, the working time of the battery is calculated according to the working cycle of the target device and the power required by the target device in one working cycle, as well as the specific value of the discharge amount when the battery is discharged to the minimum voltage. For example: the working cycle is T, in years, and the power required by the target device in one working cycle is C T , the discharge capacity when the battery is discharged to the minimum voltage is C m , the available battery life is calculated to be Year.

[0102] The embodiment of the present application measures the discharge current information of a battery powering a target device in a target working mode, the working cycle of the battery in the target working mode, and the power demand of the target device in the working cycle, and determines the discharge amount of the battery when it is discharged to the minimum voltage based on the discharge current information, and then determines the service life of the battery in the target working mode based on the working cycle and the power demand, as well as the discharge amount of the battery when it is discharged to the minimum voltage. The embodiment of the present application can accurately estimate the actual service life of the battery in a specific working mode, and then can determine the appropriate battery capacity to meet the use requirements of the module device, and can predict the life of the battery in the existing module device, thereby helping to optimize battery management and improve equipment reliability. At the same time, the service life of the battery in the target working mode is determined by combining measurement and calculation. Compared with the pure measurement method, the service life of the battery can be predicted faster and more effectively, shortening the prediction cycle and improving the prediction efficiency.

[0103] The target device can work in different working modes, each of which has different working states. The current values ​​and discharge times corresponding to different working states are different, and the time the device is in working state is much shorter than the time in standby state. For example, the water meter reading IoT module may only report once a day. Due to the low power consumption of the device, the battery life can be up to several years. Under ideal conditions, without considering additional power loss, the battery power should be used entirely for the target device. However, in actual applications, the battery self-discharges due to its own reasons, so that part of the battery power is used to provide power to the target device, and the other part is consumed due to self-discharge. If the target device is powered by the full power of the battery, the actual battery life will be less than the calculated life, which will affect the accuracy of the battery life prediction. Therefore, when calculating the battery life, the impact of battery self-discharge on the battery life should be considered.

[0104] Specifically, as an optional implementation, the above S106 may include the following steps:

[0105] S160: Determine a first mapping relationship between the working life of the battery and the total power required by the target device within the working life based on the working cycle and the power required.

[0106] S162: Determine a second mapping relationship between the working life of the battery and the available power of the battery within its working life based on the discharge amount and the self-discharge rate of the battery.

[0107] S164: Determine the service life of the battery in the target operating mode based on the first mapping relationship and the second mapping relationship.

[0108] The self-discharge rate is determined by the battery performance, usually obtained by testing during the battery production process and provided by the manufacturer. It is a percentage less than 100%, and is generally obtained by testing on a yearly basis, also known as the annual self-discharge rate. In the embodiment of the present application, considering the battery's own leakage, the amount of power that the battery can provide to the target device is the amount of power discharged when the battery is discharged to the minimum voltage minus the amount of power consumed by the battery leakage. As an optional implementation, based on the discharge amount and the battery's self-discharge rate, the second mapping relationship between the working life of the battery and the available power of the battery during its working life can be expressed by formula (1): C Q =C m ×(1-b) Q (1), where C Q Indicates the amount of power that the battery can provide to the target device, taking into account the battery's own leakage. m represents the discharge amount of the battery when it is discharged to the minimum voltage, b represents the self-discharge rate of the battery, and Q represents the working life of the battery, which is an unknown number in the embodiments of the present application.

[0109] In the embodiment of the present application, considering the battery leakage, based on the relationship that the total power required by the target device during its working life is equal to the power that the battery can provide to the target device during its working life, an equation is established based on the first mapping relationship and the second mapping relationship, and the working life of the battery is obtained by solving the equation. For example: Assuming the working cycle is (Unit: s), the power demand of the target device during the working cycle is (Unit: mAh), the total power demand of the target device in its working life of Q years is (Unit: mAh), i.e., the first mapping relationship; the amount of power C that the battery can provide to the target device during its working life Q (Unit: mAh) is: C Q =C m ×(1-b) Q, i.e., the second mapping relationship, is based on the relationship that the total power demand of the target device during its working life is equal to the power that the battery can provide to the target device during its working life. Let

[0110] Get the equation about the unknown number Q, and determine the battery's service life by solving the equation.

[0111] In practical applications, the working cycle of the battery in the working mode and the power required by the target device in one working cycle can be measured, and the specific values ​​of the discharge amount of the battery to the minimum voltage and the self-discharge rate of the battery can be determined and substituted into the equation By solving the equation, the working life of the battery can be obtained. The first average discharge current and duration corresponding to each working state can also be obtained by measuring, and the specific values ​​of the discharge amount of the battery when it is discharged to the minimum voltage and the self-discharge rate of the battery can be determined and substituted into the equation.

[0112] By solving the equation, we can also get the battery's service life.

[0113] The embodiments of the present application determine a first mapping relationship between the working life of a battery and the total power demand of a target device within its working life based on the working cycle and the power demand, and determine a second mapping relationship between the working life of a battery and the available power of the battery within its working life based on the discharge amount and the self-discharge rate of the battery. The working life of the battery under a target working mode is determined based on the first mapping relationship and the second mapping relationship, thereby being able to more accurately predict the working life of the battery, improve the accuracy of predicting the battery life, and consider the battery self-discharge rate to improve the reliability of life prediction.

[0114] In practical applications, the maximum current that the battery can provide is less than the maximum current required by the device. The battery current can be increased by adding capacitors. Specifically, by connecting the battery and capacitor in parallel, the power of the device is directly taken from the capacitor and indirectly from the battery. Figure 4 As shown, it is a schematic diagram of the structure of a power supply system provided by an embodiment of the present application. In this power supply system, the battery and the capacitor are connected in parallel through conductors 1 and 2, and are connected to the device through wires 1 and 2. The battery continuously charges the capacitor until it is full. When the device uses electricity, the capacitor releases current, and the voltage of the battery and the capacitor remain consistent. Since the capacitor will leak electricity, part of the battery power will be consumed due to the capacitor leakage, so the impact of capacitor leakage on the battery service life also needs to be considered.

[0115] Specifically, as an optional implementation, when the battery supplies power to the target device through the capacitor, and the battery and the capacitor are connected in parallel, the above S164 may include the following steps: determining a third mapping relationship between the leakage amount of the capacitor and the working life of the battery based on the leakage current of the capacitor;

[0116] Based on the first mapping relationship, the second mapping relationship, and the third mapping relationship, the working life of the battery in the target working mode is determined.

[0117] The embodiment of the present application calculates the amount of power lost by the battery due to capacitor leakage during its service life based on the capacitor leakage current to obtain a third mapping relationship. For example, assuming that the capacitor leakage current is I C (Unit: mA), the amount of power lost by the battery during its service life due to capacitor leakage is 8760×I C ×Q (unit: mAh).

[0118] In the embodiment of the present application, the amount of electricity that the battery can provide to the target device is the amount of electricity that the battery can provide to the target device when it is discharged to the minimum voltage minus the amount of electricity consumed by battery leakage and the amount of electricity consumed by capacitor leakage. As an optional implementation, the amount of electricity that the battery can provide to the target device during its service life can be calculated based on the leakage current of the capacitor and the self-discharge rate of the battery. For example, assuming that the amount of electricity that the battery can provide to the target device when it is discharged to the minimum voltage minus the amount of electricity consumed by battery leakage is C Q (Unit: mAh), the leakage current of the capacitor is I C (Unit: mA), the amount of power that the battery can provide to the target device within its service life of Q years C act For: C act =C Q -8760×I C ×Q.

[0119] In the embodiment of the present application, when the target device is powered by a battery and a capacitor in parallel, not only the leakage of the battery itself but also the leakage of the capacitor should be considered. Based on the relationship that the total power required by the target device during its working life is equal to the power that the battery can provide to the target device during its working life, an equation is established based on the first mapping relationship, the second mapping relationship and the third mapping relationship, and the working life of the battery is obtained by solving the equation. For example, assuming the working cycle is (Unit: s), the power demand of the target device during the working cycle is (Unit: mAh), the total power demand of the target device in its working life of Q years is

[0120] (Unit: mAh), i.e. the first mapping relationship; the current available power of the battery minus the power consumed by the battery leakage C Q (Unit: mAh) is: CQ =C m ×(1-b) Q , which is the second mapping relationship; the amount of electricity lost by the battery during its working life due to capacitor leakage is 8760×I C × Q (unit: mAh), that is, the third mapping relationship; based on the second mapping relationship and the third mapping relationship, the amount of power C that the battery can provide to the target device during its working life is obtained. cat C cat =C Q -8760×I C ×Q=C m ×(1-b) Q -8760×I C ×Q, based on the relationship that the total power demand of the target device during its working life is equal to the power that the battery can provide to the target device during its working life, let

[0121] Get the equation about the unknown number Q, and determine the battery's service life by solving the equation.

[0122] In practical applications, the working cycle of the battery in the working mode and the power required by the target device in one working cycle are measured, and the specific values ​​of the discharge amount of the battery to the minimum voltage, the self-discharge rate of the battery and the leakage current of the capacitor are determined and substituted into the equation By solving the equation, the working life of the battery can be obtained. The first average discharge current and duration corresponding to each working state can also be obtained by measuring, and the specific values ​​of the discharge amount of the battery to the minimum voltage, the self-discharge rate of the battery and the leakage current of the capacitor can be determined and substituted into the equation.

[0123] By solving the equation, we can also get the battery's service life.

[0124] The embodiment of the present application is directed to the situation where a battery and a capacitor are connected in parallel to power a device. Based on the leakage current of the capacitor, a third mapping relationship between the leakage amount of the capacitor and the working life of the battery is determined. Based on the first mapping relationship, the second mapping and the third mapping relationship, the working life of the battery in the target working mode is determined. The influence of the capacitor leakage current on the battery working life is further considered, making the life prediction more comprehensive and reliable, thereby improving the accuracy of predicting the battery life under actual working conditions.

[0125] The battery life prediction method provided in the embodiment of the present application not only takes into account the different working modes of the target device and the different working states under different modes, but also takes into account the impact of battery self-discharge and capacitor leakage on the battery working life. It can improve the accuracy of battery working life prediction, and predict the battery working life by combining testing and calculation, which greatly shortens the period of relying solely on testing to judge the battery working life and improves the prediction efficiency.

[0126] The following is an actual application scenario to illustrate the battery life prediction method provided in the embodiment of the present application, which should not be understood as a limitation on the method of the embodiment of the present application. Application scenario: The target device is a certain IoT module device, whose function is to detect the ambient temperature or humidity, and report the detected values ​​to the background at a certain frequency. According to the number of detection indicators and the reporting frequency, the device has 4 working modes, as shown in Table 1 above. For working mode 1 or 2, three working states are included: detection, reporting, and standby. The device first detects the ambient temperature or humidity, and reports the data after the detection is completed. After the reporting is completed, it enters the standby state until the next cycle starts again, such as Figure 5 As shown, it is a state cycle flow diagram of an embodiment of the present application. For working mode 3 or 4, it includes four working states: detection, merging, reporting, and standby. The device first detects the ambient temperature and humidity, merges the data after the detection is completed, reports after merging, and enters the standby state after the reporting is completed until the next cycle starts again, such as Figure 6 As shown, it is a third state cycle flow diagram provided for an embodiment of the present application.

[0127] For detailed prediction process, please refer to Figure 7 , is a flow chart of another battery life prediction method provided by an embodiment of the present application. Figure 7 As shown, the following steps are included:

[0128] S700: First, a target operating mode of a target device is selected, for example, target operating mode m;

[0129] S702: Use an instrument to test the current curve of the target device in at least two working cycles in the target working mode, such as Figure 3 The graph shown;

[0130] S704: According to the current curve, determine the peak and trough in a working cycle, and record the current values ​​corresponding to the peak and trough, as shown in Table 3. The device completes a cycle every time T = t9-t2, and repeats this cycle. Theoretically, assuming that the curve of current changing with time is I(t), then the power consumption of the device in one cycle is C T for:

[0131]

[0132] In reality, the current fluctuates greatly, and it is impossible to find the specific current function I(t) with respect to time t. Therefore, it is necessary to define an operational method to test the power consumption C of the device in a certain mode within a cycle. T The following is an operational calculation C T Specifically, it will be described in the following content.

[0133] S706: Calculate the current value of the state transition point between two adjacent working states in a working cycle according to the current values ​​corresponding to the peak and the trough, as shown in Table 2 or Table 3. The specific calculation process is as follows:

[0134] I2=(1+a)×I1(2)

[0135] Among them, the standby current of the target device is I1, which is a known value in practical applications, and a=10%, which means that when the current relative to the standby current increases by more than 10%, it is recorded as the start time of state 1. The value of a can be adjusted according to the actual situation;

[0136]

[0137] Among them, the currents I4 and I6 at the state transition points are the simple arithmetic averages of the peak and valley currents;

[0138] S708: According to the current value of the state transition point, the time corresponding to the state transition point is read on the instrument to determine the start and end time of each working state, and according to the start and end time of each working state, the time interval corresponding to each working state is determined, and according to the time interval, the duration corresponding to each working state is calculated, as shown in Table 3;

[0139] S710: Calculate the current root mean square of each working state according to the current sampling value of the instrument in the time interval corresponding to each working state to obtain the first average discharge current corresponding to each working state. During working state n in target working mode m, the test instrument samples R current values i 1. i 2. ... i R , then based on the RMS of these R current values, the first average discharge current I corresponding to the working state n of the battery under the target working mode m is calculated. mn (Unit: mA):

[0140]

[0141] At the same time, calculate the working cycle T and the power demand C of the target device in one working cycle T And the time proportion P corresponding to each working state mn, which is used for subsequent equation building.

[0142] The working cycle T (unit: s) under the target working mode m is:

[0143]

[0144] And the power C required for a working cycle of the device T (Unit: mAh) is:

[0145]

[0146] The time proportion P corresponding to the working state n mn for:

[0147]

[0148] S712: Calculate the second average discharge current of the target device in the target working mode according to the first average discharge current and duration corresponding to each working state. The target working mode m includes N working states, and the first average discharge current corresponding to the nth (n=1, 2…N) working state is I mn (Unit: mA), time specific gravity is P mn , the second average discharge current I of the battery in the target working mode m avg for:

[0149]

[0150] S714: Control the battery to discharge at a second average current I avg Discharge the battery to test the amount of electricity C released when the battery is discharged to the minimum voltage for normal operation of the target device. m ;

[0151] Of course, the battery discharge can also be controlled based on the first average discharge current corresponding to each working state, and the discharge amount under different working states is measured and weighted summed to obtain C m ; You can also use step-by-step discharge to get C m ;

[0152] S716: According to the discharge amount C m , the battery's self-discharge rate b and the capacitor's leakage current I C , establish an equation with the battery life as an unknown parameter. The specific establishment process is as follows: Assuming the battery self-discharge rate is b (usually provided by the battery manufacturer and is a percentage less than 100%), the battery's available power after Q years is C Q (Unit: mAh) is:

[0153] C Q =Cm ×(1-b) Q (10)

[0154] Considering the capacitor leakage, the leakage current I C (usually provided by capacitor manufacturers, unit: mA), then the actual available battery power C act (Unit: mAh) is:

[0155] C act =C Q -8760×I C ×Q(11)

[0156] Here, 8760 represents the number of hours in each year.

[0157] The battery life in this mode is T work (Unit: year) is:

[0158]

[0159] Here, 31536000 represents the number of seconds in each year.

[0160] Let T work =Q, we get the equation with battery life as the unknown parameter:

[0161]

[0162] By transforming (13), we can obtain the equation with battery service life as the unknown parameter:

[0163]

[0164] S716: Obtain the working life Q of the battery by solving the equation.

[0165] Assuming that the target working mode is mode 1, taking temperature detection as an example, and the battery and capacitor are connected in parallel to power the device, the specific values ​​of the relevant data measured and calculated are as follows: the current I11 when the device detects temperature = 20mA, the duration t11 = 1s; the current I12 when the device reports is 124mA, the duration t12 = 1s; the current I11 when the device detects temperature is 20mA, the duration t11 = 1s; the current I12 when the device reports is 124mA, the duration t12 = 1s; the current I11 when the device is in standby mode is 20mA, the duration t11 = 1s 13 =50μA, standby time in one cycle t 13 =3598s, the working cycle T is: T = t 11 +t 12 +t 13 =3600s, the battery discharge current is the average current I avg for: The starting voltage of the battery used is V start =3.6V, the minimum voltage V for normal operation of the target devicemin =2.5V, control battery with I avg The current of the battery is continuously discharged, and the voltage of the test battery is V start Down to V min The amount of electricity released when m =2185mAh. Battery self-discharge rate b = 1%, capacitor leakage current I C =5μA. Substituting the above known quantities into the created equation (13) or (14), the working life of the battery is solved to be Q=2.56 years.

[0166] If the battery directly powers the device, the capacitor leakage current I C The default value is 0, so there is no need to establish separate equations for different scenarios. In practical applications, modeling and packaging can be performed based on equations with battery life as unknown parameters. When using, only the measured data needs to be input into the model, and the battery life can be obtained through output, making battery life prediction more convenient and easy to operate and use.

[0167] The above is a description of a specific embodiment of the specification. Other embodiments are within the scope of the appended claims. In some cases, the actions or steps recorded in the claims can be performed in an order different from that in the embodiments and still achieve the desired results. In addition, the processes depicted in the drawings do not necessarily require the specific order or continuous order shown to achieve the desired results. In some embodiments, multitasking and parallel processing are also possible or may be advantageous.

[0168] With the above Figure 8 Corresponding to the battery life prediction method shown, the present application embodiment also provides a battery life prediction device. Figure 8 , is a structural diagram of a battery life prediction device 800 provided in an embodiment of the present application, the device 800 includes: a measuring unit 810, a first determining unit 820, and a second determining unit 830.

[0169] The measuring unit 810 is used to measure the discharge current information of the battery powering the target device in the target working mode, the working cycle of the battery in the target working mode, and the power required by the target device in the working cycle.

[0170] The first determining unit 820 is configured to determine a discharge amount when the battery is discharged to a minimum voltage based on the discharge current information.

[0171] The second determining unit 830 is used to determine the working life of the battery in the target working mode based on the working cycle, the required power and the discharged power.

[0172] Optionally, when determining the working life of the battery in the target working mode based on the working cycle, the required power, and the discharged power, the second determining unit 830 may perform the following steps: determining a first mapping relationship between the working life of the battery and the total required power of the target device within the working life based on the working cycle and the required power;

[0173] Determine, based on the discharge amount and the self-discharge rate of the battery, a second mapping relationship between the service life of the battery and the available power of the battery within its service life;

[0174] Based on the first mapping relationship and the second mapping relationship, the operating life of the battery in the target operating mode is determined.

[0175] Optionally, in a case where the battery supplies power to the target device through a capacitor and the battery is connected in parallel with the capacitor, when determining the service life of the battery in the target working mode based on the first mapping relationship and the second mapping relationship, the second determining unit 830 may perform the following steps: determining a third mapping relationship between the leakage amount of the capacitor and the service life of the battery based on the leakage current of the capacitor;

[0176] Based on the first mapping relationship, the second mapping relationship, and the third mapping relationship, the operating life of the battery in the target operating mode is determined.

[0177] Optionally, in the case where the target operating mode includes multiple operating states, the measuring unit 810 may perform the following steps when measuring the discharge current information of the battery powering the target device in the target operating mode: for each operating state, collecting multiple instantaneous discharge currents of the battery in the operating state;

[0178] Determining a first average discharge current of the battery in the working state based on the sum of squares of the multiple instantaneous discharge currents;

[0179] The discharge current information is obtained based on a first average discharge current of the battery in each working state.

[0180] Optionally, when the measuring unit 810 collects a plurality of instantaneous discharge currents of the battery in each working state, the measuring unit 810 may include the following steps: determining a sampling time from a time interval corresponding to the working state based on a state type of the working state;

[0181] Based on a preset sampling period and the sampling time, a plurality of instantaneous discharge currents of the battery in the working state are collected.

[0182] Optionally, when determining the discharge capacity of the battery when it is discharged to the minimum voltage based on the discharge current information, the first determining unit 820 may perform the following steps: for each working state, measuring the discharge capacity of the battery when it is discharged to the minimum voltage with a first average discharge current in the working state, as the discharge capacity corresponding to the working state;

[0183] Based on the time interval corresponding to each working state, a weighted sum is performed on the discharge amounts corresponding to the multiple working states to obtain the discharge amount when the battery is discharged to the minimum voltage.

[0184] Optionally, when determining the discharge amount of the battery when it is discharged to the minimum voltage based on the discharge current information, the first determining unit 820 may perform the following steps: determining a second average discharge current of the battery in the target working mode based on a first average discharge current of the battery in each working state and a time interval corresponding to each working state;

[0185] The discharge capacity of the battery when it is discharged to the minimum voltage at the second average discharge current is measured as the discharge capacity of the battery when it is discharged to the minimum voltage.

[0186] Optionally, when determining the discharge amount of the battery when it is discharged to the minimum voltage based on the discharge current information, the first determination unit 820 may perform the following steps: amplifying the second average discharge current according to multiple preset amplification factors to obtain multiple third average discharge currents;

[0187] Determine an initial voltage and a termination voltage corresponding to each third average discharge current based on a preset voltage drop coefficient and a difference between the starting voltage of the battery and the minimum voltage;

[0188] For each third average discharge current, based on the initial voltage and the termination voltage, controlling the battery to discharge with the third average discharge current, and measuring the discharge capacity of the battery as the discharge capacity corresponding to the third average discharge current;

[0189] A weighted sum is performed on the discharge capacities corresponding to the plurality of third average discharge currents to obtain the discharge capacity when the battery is discharged to the minimum voltage.

[0190] Obviously, the battery life prediction device provided in the embodiment of the present application can be used as Figure 1 The execution body of the battery life prediction method shown is, for example Figure 1 In the battery life prediction method shown in FIG. 1 , step S102 may be performed by Figure 8 The measurement unit 810 in the battery life prediction device 800 shown in FIG. 1 is executed, and step S104 can be performed by Figure 8 The first determining unit 820 in the battery life prediction device 800 shown in FIG. 1 is executed, and step S106 can be performed by Figure 8 The second determination unit 830 in the battery life prediction device 800 is shown to execute.

[0191] According to another embodiment of the present application, Figure 8 The various units in the battery life prediction device 800 shown can be individually or all combined into one or several other units to form, or one (some) of the units can be further divided into multiple functionally smaller units to form, which can achieve the same operation without affecting the realization of the technical effects of the embodiments of the present application. The above-mentioned units are divided based on logical functions. In actual applications, the function of one unit can also be implemented by multiple units, or the functions of multiple units can be implemented by one unit. In other embodiments of the present application, the battery life prediction device 800 may also include other units. In actual applications, these functions can also be implemented with the assistance of other units, and can be implemented by the collaboration of multiple units.

[0192] According to another embodiment of the present application, the program can be executed on a general computing device such as a computer including a central processing unit (CPU), a random access memory (RAM), a read-only memory (ROM), and other processing elements and storage elements. Figure 1 A computer program (including program code) for each step involved in the corresponding method shown in FIG. Figure 8 The battery life prediction device shown in the embodiment of the present application is used to implement the battery life prediction method of the embodiment of the present application. The computer program can be recorded on a computer-readable storage medium, for example, and transferred to an electronic device through the computer-readable storage medium and run therein.

[0193] Fig. 9 This is a schematic diagram of the structure of an electronic device according to an embodiment of the present application. Fig. 9 At the hardware level, the electronic device includes a processor, and optionally also includes an internal bus, a network interface, and a memory. The memory may include a memory, such as a high-speed random access memory (RAM), and may also include a non-volatile memory (non-volatile memory), such as at least one disk storage. Of course, the electronic device may also include hardware required for other services.

[0194] The processor, network interface and memory can be interconnected through an internal bus, which can be an ISA (Industry Standard Architecture) bus, a PCI (Peripheral Component Interconnect) bus or an EISA (Extended Industry Standard Architecture) bus. The bus can be divided into an address bus, a data bus, a control bus, etc. For ease of representation, Fig. 9 Only one bidirectional arrow is used in the diagram, but this does not mean that there is only one bus or only one type of bus.

[0195] The memory is used to store the program. Specifically, the program may include a program code, and the program code includes a computer operation instruction. The memory may include a memory and a non-volatile memory, and provides instructions and data to the processor.

[0196] The processor reads the corresponding computer program from the non-volatile memory into the memory and then runs it, forming a data processing device at the logical level. The processor executes the program stored in the memory and is specifically used to perform the following operations:

[0197] Measuring discharge current information of a battery powering a target device in a target working mode, a working cycle of the battery in the target working mode, and power demand of the target device in the working cycle;

[0198] Based on the discharge current information, determining a discharge amount when the battery is discharged to a minimum voltage;

[0199] The working life of the battery in the target working mode is determined based on the working cycle, the required power and the discharged power.

[0200] The above application Figure 8The method performed by the battery life prediction device 800 disclosed in the illustrated embodiment can be applied to a processor or implemented by a processor. The processor may be an integrated circuit chip with signal processing capabilities. In the implementation process, each step of the above method can be completed by an integrated logic circuit of hardware in the processor or an instruction in the form of software. The above processor can be a general-purpose processor, including a central processing unit (CPU), a network processor (NP), etc.; it can also be a digital signal processor (DSP), an application-specific integrated circuit (ASIC), a field-programmable gate array (FPGA) or other programmable logic devices, discrete gates or transistor logic devices, discrete hardware components. The methods, steps and logic block diagrams disclosed in the embodiments of the present application can be implemented or executed. The general-purpose processor can be a microprocessor or the processor can also be any conventional processor, etc. The steps of the method disclosed in the embodiments of the present application can be directly embodied as a hardware decoding processor for execution, or a combination of hardware and software modules in the decoding processor for execution. The software module can be located in a mature storage medium in the field such as random access memory, flash memory, read-only memory, programmable read-only memory or electrically erasable programmable memory, register, etc. The storage medium is located in the memory, and the processor reads the information in the memory and completes the steps of the above method in combination with its hardware.

[0201] The electronic device may also perform Figure 1 Method and implementation of a battery life prediction device in Figure 1 , Figure 8 The functions of the illustrated embodiment will not be described in detail in the embodiments of the present application.

[0202] Of course, in addition to software implementation, the electronic device of the present application does not exclude other implementation methods, such as logic devices or a combination of software and hardware, etc. That is to say, the execution subject of the following processing flow is not limited to each logic unit, but can also be hardware or logic devices.

[0203] The embodiment of the present application also provides a computer-readable storage medium, which stores one or more programs, wherein the one or more programs include instructions, which, when executed by a portable electronic device including a plurality of application programs, enable the portable electronic device to execute Figure 1 The method of the embodiment shown is specifically used to perform the following operations:

[0204] Measuring discharge current information of a battery powering a target device in a target working mode, a working cycle of the battery in the target working mode, and power demand of the target device in the working cycle;

[0205] Based on the discharge current information, determining a discharge amount when the battery is discharged to a minimum voltage;

[0206] The working life of the battery in the target working mode is determined based on the working cycle, the required power and the discharged power.

[0207] In short, the above description is only a preferred embodiment of the present application and is not intended to limit the protection scope of the present application. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application shall be included in the protection scope of the present application.

[0208] The systems, devices, modules or units described in the above embodiments may be implemented by computer chips or entities, or by products with certain functions. A typical implementation device is a computer. Specifically, the computer may be, for example, a personal computer, a laptop computer, a cellular phone, a camera phone, a smart phone, a personal digital assistant, a media player, a navigation device, an email device, a game console, a tablet computer, a wearable device, or a combination of any of these devices.

[0209] Computer readable media include permanent and non-permanent, removable and non-removable media that can be implemented by any method or technology to store information. Information can be computer readable instructions, data structures, program modules or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technology, compact disk read-only memory (CD-ROM), digital versatile disk (DVD) or other optical storage, magnetic cassettes, magnetic tape disk storage or other magnetic storage devices or any other non-transmission media that can be used to store information that can be accessed by a computing device. As defined herein, computer readable media does not include temporary computer readable media (transitory media), such as modulated data signals and carrier waves.

[0210] It should also be noted that the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, commodity or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, commodity or device. In the absence of more restrictions, the elements defined by the sentence "comprises a ..." do not exclude the existence of other identical elements in the process, method, commodity or device including the elements.

[0211] Each embodiment in this specification is described in a progressive manner, and the same or similar parts between the embodiments can be referred to each other, and each embodiment focuses on the differences from other embodiments. In particular, for the system embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiment.

Claims

1. A battery life prediction method, characterized in that: include: Measuring discharge current information of a battery powering a target device in a target working mode, a working cycle of the battery in the target working mode, and power demand of the target device in the working cycle; Based on the discharge current information, determining a discharge amount when the battery is discharged to a minimum voltage; The working life of the battery in the target working mode is determined based on the working cycle, the required power and the discharged power.

2. The method according to claim 1, characterized in that The determining the working life of the battery in the target working mode based on the working cycle, the required power and the discharged power includes: Based on the working cycle and the required power, determining a first mapping relationship between the working life of the battery and the total required power of the target device within the working life; Determine, based on the discharge amount and the self-discharge rate of the battery, a second mapping relationship between the service life of the battery and the available power of the battery within its service life; Based on the first mapping relationship and the second mapping relationship, the operating life of the battery in the target operating mode is determined.

3. The method according to claim 2, characterized in that The battery supplies power to the target device via a capacitor, and the battery is connected in parallel with the capacitor; The determining, based on the first mapping relationship and the second mapping relationship, the working life of the battery in the target working mode includes: Determining, based on the leakage current of the capacitor, a third mapping relationship between the leakage amount of the capacitor and the working life of the battery; Based on the first mapping relationship, the second mapping relationship, and the third mapping relationship, the operating life of the battery in the target operating mode is determined.

4. The method according to claim 1, characterized in that: The target working mode includes multiple working states; The measuring of discharge current information of a battery for powering a target device in a target working mode includes: For each working state, collecting multiple instantaneous discharge currents of the battery in the working state; Determining a first average discharge current of the battery in the working state based on the sum of squares of the multiple instantaneous discharge currents; The discharge current information is obtained based on a first average discharge current of the battery in each working state.

5. The method according to claim 4, characterized in that For each working state, collecting a plurality of instantaneous discharge currents of the battery in the working state includes: Based on the state type of the working state, determining a sampling time from a time interval corresponding to the working state; Based on a preset sampling period and the sampling time, a plurality of instantaneous discharge currents of the battery in the working state are collected.

6. The method according to claim 4, characterized in that The step of determining the discharge amount of the battery when the battery is discharged to a minimum voltage based on the discharge current information includes: For each working state, measuring the discharge capacity of the battery when it is discharged to the minimum voltage at the first average discharge current in the working state as the discharge capacity corresponding to the working state; Based on the time interval corresponding to each working state, a weighted sum is performed on the discharge amounts corresponding to the multiple working states to obtain the discharge amount when the battery is discharged to the minimum voltage.

7. The method according to claim 4, characterized in that The step of determining the discharge amount of the battery when the battery is discharged to a minimum voltage based on the discharge current information includes: Determine a second average discharge current of the battery in the target operating mode based on a first average discharge current of the battery in each operating state and a time interval corresponding to each operating state; The discharge capacity of the battery when it is discharged to the minimum voltage at the second average discharge current is measured as the discharge capacity of the battery when it is discharged to the minimum voltage.

8. The method according to claim 7, characterized in that The step of determining the discharge amount of the battery when the battery is discharged to a minimum voltage based on the discharge current information includes: amplifying the second average discharge current according to a plurality of preset amplification factors to obtain a plurality of third average discharge currents; Determine an initial voltage and a termination voltage corresponding to each third average discharge current based on a preset voltage drop coefficient and a difference between the starting voltage of the battery and the minimum voltage; For each third average discharge current, based on the initial voltage and the termination voltage, controlling the battery to discharge with the third average discharge current, and measuring the discharge capacity of the battery as the discharge capacity corresponding to the third average discharge current; A weighted sum is performed on the discharge capacities corresponding to the plurality of third average discharge currents to obtain the discharge capacity when the battery is discharged to the minimum voltage.

9. A battery life prediction device, characterized in that: include: A measuring unit, used to measure discharge current information of a battery powering a target device in a target working mode, a working cycle of the battery in the target working mode, and power demand of the target device in the working cycle; A first determining unit, configured to determine a discharge amount when the battery is discharged to a minimum voltage based on the discharge current information; The second determining unit is used to determine the working life of the battery in the target working mode based on the working cycle, the required power and the discharged power.

10. An electronic device, characterized in that: include: processor; a memory for storing instructions executable by the processor; The processor is configured to execute the instructions to implement the method according to any one of claims 1 to 8.