Residual discharge duration determination method and device, electronic equipment and storage medium

Based on the calculation voltage change rate of the average current and instantaneous voltage of mobile phone batteries, it is difficult to accurately estimate the problem of battery residual discharge duration in existing technology, and achieve more efficient and accurate battery duration prediction.

CN119335399APending Publication Date: 2025-01-21BEIJING XIAOMI MOBILE SOFTWARE CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202310886209.1
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-07-18
Publication Date
2025-01-21

AI Technical Summary

Technical Problem

In the case of low power, users are worried that the mobile phone is not available for enough time, and the prior art is difficult to accurately estimate the remaining discharge time of the battery.

Method used

By determining the voltage change rate according to the average current and instantaneous voltage of the battery discharge, the remaining discharge duration of the battery is calculated. This method includes determining the voltage change rate in multiple time windows, and determines the target voltage change rate according to the voltage change rate of continuous distribution time window.

Benefits of technology

It achieves accurate estimation of the remaining battery discharge time, improves user experience, simplifies the calculation process and improves work efficiency and accuracy.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119335399A_ABST
    Figure CN119335399A_ABST
Patent Text Reader

Abstract

The invention relates to a residual discharge duration determination method, and the method comprises the steps: determining a voltage change rate according to the average current and instantaneous voltage of battery discharge; determining the residual discharge duration of the battery according to the voltage change rate; according to the method, the residual electric quantity of the battery is determined directly according to the average current and the instantaneous voltage and based on the linear condition of the average current in the extremely small time range, the residual discharge duration of the battery is not determined according to pre-simulation or an experimental value, the residual discharge duration of the battery is accurately estimated, and the user experience is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present disclosure relates to the field of battery technology, and in particular to a method and device for determining a remaining discharge time, an electronic device, and a storage medium. Background Art

[0002] With the rapid development of smart phones, people are increasingly dependent on mobile phones. In order to improve user experience, major mobile phone manufacturers have made improvements in battery capacity and charging speed, increasing the battery capacity of mobile phones to 4800 mAh, 5000 mAh, etc., and the charging wattage to 67W, 120W or 200W, etc. Although these improvements can improve user experience, users are still worried that the mobile phone will not be usable for long enough when the battery is low. To address this problem, in the prior art, mobile phone manufacturers extend the use time of mobile phones by reducing the shutdown voltage on the one hand, and report the current usable time of the battery through the upper-layer software of the mobile phone on the other hand. Summary of the invention

[0003] The present disclosure provides a method and device for determining a remaining discharge time, an electronic device, and a storage medium.

[0004] According to a first aspect of an embodiment of the present disclosure, a method for determining a remaining discharge time is provided, the method comprising:

[0005] Determine the voltage change rate based on the average current and instantaneous voltage of the battery discharge;

[0006] The remaining discharge time of the battery is determined according to the voltage change rate.

[0007] Based on the above scheme, the voltage change rate is determined according to the average current and instantaneous voltage of the battery discharge, including:

[0008] Determine multiple groups of average currents and instantaneous voltages of battery discharge in the Nth time window; wherein N is a positive integer greater than or equal to M; and M is a positive integer greater than or equal to 2;

[0009] Determine the Nth voltage change rate according to the average current and instantaneous voltage in the Nth time window;

[0010] Determining the remaining discharge time of the battery according to the voltage change rate includes:

[0011] Determine the target voltage change rate according to the voltage change rates of M time windows continuously distributed in the time domain;

[0012] The remaining discharge time of the battery is determined according to the target voltage change rate.

[0013] Based on the above solution, determining the Nth voltage change rate according to the average current and instantaneous voltage in the Nth time window includes:

[0014] When the plurality of groups of average currents and instantaneous voltages satisfy a first preset condition, the Nth voltage change rate is determined according to the average current and the instantaneous voltage in the Nth time window.

[0015] Based on the above solution, the first preset condition includes:

[0016] Among the X groups of instantaneous voltages, the Xth instantaneous voltage is smaller than the first instantaneous voltage;

[0017] Wherein, X is the number of the instantaneous voltage and the average current, and X is a positive integer greater than or equal to 2.

[0018] Based on the above solution, determining the target voltage change rate according to the voltage change rates of M time windows continuously distributed in the time domain includes:

[0019] According to the voltage change rates of the M time windows continuously distributed in the time domain, a maximum value among the voltage change rates of the M time windows is used as the target voltage change rate.

[0020] Based on the above solution, determining the remaining discharge time of the battery according to the target voltage change rate includes:

[0021] Acquire a current discharge current, a current instantaneous voltage and a first threshold value of the battery;

[0022] The remaining discharge time of the battery is determined according to the target voltage change rate, the current discharge current, the current instantaneous voltage and the first threshold.

[0023] Based on the above solution, the method further includes:

[0024] When the plurality of groups of average currents and the instantaneous voltages do not satisfy a first preset condition, determining the N-1th voltage change rate as the target voltage change rate;

[0025] Obtaining the current discharge current, current instantaneous voltage and first threshold value of the battery;

[0026] The remaining discharge time of the battery is determined according to the target voltage change rate, the current discharge current, the current instantaneous voltage and the first threshold.

[0027] Based on the above solution, the method further includes:

[0028] When the remaining discharge time of the battery is greater than a second threshold, displaying the remaining discharge time of the battery;

[0029] and,

[0030] When the remaining discharge time of the battery is less than or equal to the second threshold, a shutdown countdown is sent to the terminal.

[0031] Based on the above solution, the method further includes:

[0032] determining whether the discharge condition of the battery meets a second preset condition;

[0033] The step of determining multiple groups of average currents and instantaneous voltages of battery discharge within the Nth time window includes:

[0034] When the discharge condition of the battery meets the second preset condition, multiple groups of average currents and instantaneous voltages of the battery discharge in the Nth time window are determined.

[0035] Based on the above solution, the second preset condition includes:

[0036] The battery power is less than a third threshold and the battery is not in a charging state.

[0037] Based on the above solution, before determining multiple groups of average currents and instantaneous voltages of battery discharge in the Nth time window, the method further includes:

[0038] Determine an identification value of a data identification; wherein the identification value has a first value, wherein the first value represents that multiple groups of average currents and instantaneous voltages of battery discharge in the N-1th time window are invalid;

[0039] The step of determining multiple groups of average currents and instantaneous voltages of battery discharge within the Nth time window includes:

[0040] When the identification value is a first value, X groups of average currents and instantaneous voltages of the battery discharge in the Nth time window are determined according to X first preset time lengths.

[0041] Based on the above solution, the method of determining multiple groups of average currents and instantaneous voltages of battery discharge in the Nth time window further includes:

[0042] When the identification value is the second value, the Xth average current and instantaneous voltage of the battery discharge in the Nth time window are determined according to the first preset time length; the second value represents that multiple groups of average currents and instantaneous voltages of the battery discharge in the N-1th time window are valid;

[0043] The last X-1 average currents and instantaneous currents in the N-1th time window are determined as the first X-1 average currents and instantaneous voltages of the battery discharge in the Nth time window.

[0044] According to a second aspect of an embodiment of the present disclosure, a device for determining a remaining discharge time is provided, the device comprising:

[0045] A first determination module, used to determine a voltage change rate according to an average current and an instantaneous voltage of a battery discharge;

[0046] The second determination module is used to determine the remaining discharge time of the battery according to the voltage change rate.

[0047] According to a third aspect of an embodiment of the present disclosure, there is provided an electronic device, including:

[0048] a memory for storing processor-executable instructions;

[0049] A processor connected to the memory;

[0050] Wherein, the processor is configured to execute the above remaining discharge time determination method.

[0051] According to a fourth aspect of an embodiment of the present disclosure, a non-temporary computer-readable storage medium is provided. When instructions in the storage medium are executed by a processor of a computer, the computer is enabled to execute the above remaining discharge time determination method.

[0052] The technical solution provided by the embodiments of the present disclosure may have the following beneficial effects:

[0053] It can be seen from the above embodiments that the technical solution provided by the present invention directly determines the remaining power of the battery based on the average current and the instantaneous voltage, and based on the linearity of the average current within a very small time range, rather than determining the remaining discharge time of the battery based on pre-simulation or experimental values. It accurately estimates the remaining discharge time of the battery and improves user experience.

[0054] It is to be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the invention. BRIEF DESCRIPTION OF THE DRAWINGS

[0055] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present disclosure and, together with the description, serve to explain the principles of the present disclosure.

[0056] Figure 1 is an example diagram of an application scenario according to an exemplary embodiment;

[0057] Figure 2 is another example diagram of an application scenario according to an exemplary embodiment;

[0058] Figure 3 is a flow chart of a method for determining a remaining discharge time according to an exemplary embodiment;

[0059] Figure 4 is a flow chart of another method for determining the remaining discharge time according to an exemplary embodiment;

[0060] Figure 5 is a flow chart of a method for determining remaining discharge time in the prior art according to an exemplary embodiment;

[0061] Figure 6 is a flow chart of a method for determining a remaining discharge time according to an exemplary embodiment;

[0062] Figure 7 is a schematic diagram of another flow chart of determining the remaining discharge time according to an exemplary embodiment;

[0063] Figure 8 is a schematic diagram of voltage variation determined according to the prior art shown in accordance with an exemplary embodiment;

[0064] Fig. 9 is a schematic diagram of voltage change determined according to an embodiment of the present invention shown in accordance with an exemplary embodiment;

[0065] Fig.10 is a schematic diagram of a dynamic estimation result of the remaining discharge time according to an exemplary embodiment;

[0066] Fig.11 is a structural block diagram of a device for determining a remaining discharge time according to an exemplary embodiment;

[0067] Fig.12 The figure is a structural block diagram of a device for determining a remaining discharge time according to an exemplary embodiment. DETAILED DESCRIPTION

[0068] Exemplary embodiments will be described in detail herein, examples of which are shown in the accompanying drawings. When the following description refers to the drawings, the same numbers in different drawings represent the same or similar elements unless otherwise indicated. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present disclosure. Instead, they are merely examples of devices consistent with some aspects of the present disclosure as detailed in the appended claims.

[0069] The terms used in the embodiments of the present invention are only for the purpose of describing specific embodiments, and are not intended to limit the embodiments of the present invention. The singular forms of "a", "said" and "the" used in the embodiments of the present invention and the appended claims are also intended to include plural forms, unless the context clearly indicates other meanings. It should also be understood that the term "and / or" used herein refers to and includes any or all possible combinations of one or more associated listed items.

[0070] It should be understood that although the terms first, second, third, etc. may be used to describe various information in embodiments of the present invention, these information should not be limited to these terms. These terms are only used to distinguish the same type of information from each other. For example, without departing from the scope of embodiments of the present invention, the first information may also be referred to as the second information, and similarly, the second information may also be referred to as the first information. Depending on the context, the word "if" as used herein may be interpreted as "at the time of" or "when" or "in response to determining".

[0071] In some embodiments, in the method of reducing the shutdown voltage to extend the use time of the mobile phone, two shutdown strategies are generally adopted. One is to trigger the shutdown operation when it is detected that the remaining battery power is not greater than a preset value, for example, the remaining battery power is less than 1% of the total battery power, and the voltage reaches the shutdown threshold.

[0072] In this way, in order to prevent the battery from being over-discharged, the shutdown threshold is usually set higher than the battery safety value; this may cause the phone to shut down prematurely before the battery voltage reaches the safety threshold, and the battery life will not be long-lasting. In addition, during use, the phone may experience an instantaneous overvoltage, which may cause the device to misjudge and trigger the shutdown process.

[0073] The other is to start overload protection and trigger the shutdown process when it is detected that the remaining battery power is not greater than the preset value, for example, when the remaining battery power is less than 1% of the total battery power, and when it is detected that the battery discharge current is higher than the battery safety threshold. This prevents the instantaneous current from being too large, causing the instantaneous voltage to be lower than the safety voltage value and damaging the battery device, but this solution will make the battery durability poor. Figure 5 Flowchart of the above shutdown strategy.

[0074] In some cases, the remaining battery life of electronic devices such as mobile phones is displayed by the electronic device software, which needs to first obtain the battery current and voltage parameters from the battery's underlying power firmware and upload them to the electronic device software to calculate the remaining battery life of the mobile phone.

[0075] This method usually estimates the available power duration based on the linear relationship between current and voltage, measures the average current and power consumption of the mobile phone in standby mode, and then determines the available power duration based on the average current and power consumption. However, in actual application, the current and voltage in standby mode are not linear, and the current in standby mode changes dynamically, which will lead to large errors in the determined available power. At the same time, this method requires uploading the data obtained from the underlying firmware to the software, and the data transmission process is complicated and inefficient. In addition, under the condition of large temperature difference and instantaneous high load, the data uploaded by the underlying firmware has large errors.

[0076] The embodiments of the present disclosure are applied to the above-mentioned scenario to determine the remaining discharge time. Battery-related data is obtained through the power firmware, and the remaining discharge time of the battery is directly calculated. There is no need to upload the data obtained in the underlying firmware to the upper-level software, which simplifies the calculation process and improves work efficiency and accuracy.

[0077] In the embodiment of the present disclosure, the remaining power of the battery is determined directly based on the average current and the instantaneous voltage, and based on the linearity of the average current within a very small time range, rather than determining the remaining discharge time of the battery based on a pre-simulated or experimental value, so as to accurately estimate the remaining discharge time of the battery and improve the user experience; Figure 1 and Figure 2 This is an example diagram of an application scenario on a mobile phone terminal in the disclosed embodiment.

[0078] like Figure 3 As shown, an embodiment of the present disclosure provides a method for determining a remaining discharge time, the method comprising:

[0079] 100: Determine the voltage change rate based on the average current and instantaneous voltage of the battery discharge;

[0080] 200: Determine the remaining discharge time of the battery according to the voltage change rate.

[0081] In the disclosed embodiments, the remaining battery power is determined directly based on the average current and instantaneous voltage, and based on the linearity of the average current within a very small time range, rather than determining the remaining discharge time of the battery based on pre-simulated or experimental values. This accurately estimates the remaining discharge time of the battery and improves user experience.

[0082] In some embodiments, the above step 100 includes:

[0083] 101: Determine multiple groups of average currents and instantaneous voltages of battery discharge in an Nth time window; wherein N is a positive integer greater than or equal to M; and M is a positive integer greater than or equal to 2;

[0084] 102: Determine an Nth voltage change rate according to the average current and the instantaneous voltage in the Nth time window;

[0085] The above step 200 includes:

[0086] 201: determining a target voltage change rate according to voltage change rates of M time windows continuously distributed in the time domain;

[0087] 202: Determine the remaining discharge time of the battery according to the target voltage change rate.

[0088] In some embodiments, the remaining discharge time determination method is performed by a battery module. In the above step 101, the time window indicates a time period on the time axis. The length of the time window can be dynamically adjusted. For example, the length of the time window can be 40 seconds, 60 seconds, or 32 seconds. Preferably, in this embodiment, the time window is 40 seconds.

[0089] The average current and instantaneous voltage are stored by the underlying firmware of the battery; the battery module directly reads the average current and instantaneous voltage from the underlying firmware through the Inter-Integrated circuit (I2C) protocol. In this way, the average current and instantaneous voltage of the battery within the time window are obtained directly from the underlying firmware, without uploading the data to the terminal device, thereby simplifying the calculation process and improving work efficiency.

[0090] In step 102, the Nth voltage change rate indicates the change of the instantaneous voltage of the battery in the Nth time window per unit time.

[0091] In one embodiment, in the above step 201, N is a positive integer greater than or equal to M, and M is a positive integer greater than or equal to 2.

[0092] Exemplarily, when N is 2, M is also 2; when the second voltage change rate is determined, the remaining discharge time of the battery is determined according to two voltage change rates continuously distributed in the time domain, that is, according to the first voltage change rate and the second voltage change rate;

[0093] For example, when N is 4, M can be 2, 3, 4, etc.

[0094] When N is 4 and M is 2, after the fourth voltage change rate is determined, the remaining discharge time of the battery is determined according to two voltage change rates that are continuously distributed in the time domain. Here, the two voltage change rates that are continuously distributed in the time domain are the third voltage change rate and the fourth voltage change rate.

[0095] When N is 4 and M is 3, after the fourth voltage change rate is determined, the remaining discharge time of the battery is determined according to the three voltage change rates continuously distributed in the time domain. Here, the three voltage change rates continuously distributed in the time domain are the second voltage change rate, the third voltage change rate, and the fourth voltage change rate.

[0096] In the disclosed embodiment, the Nth voltage change rate is determined directly based on multiple groups of average currents and instantaneous voltages of the battery discharge in the Nth time window; wherein N is a positive integer greater than or equal to M; and M is a positive integer greater than or equal to 2; and the Nth voltage change rate is determined based on the average current and instantaneous voltage in the Nth time window. In this way, by periodically determining the voltage change rate within the time window, the voltage change per unit time during the battery discharge process is determined in real time; after determining the target voltage change rate based on the voltage change rates of M time windows continuously distributed in the time domain, the remaining discharge time of the battery is determined, and the remaining discharge time of the battery is determined based on multiple voltage change rates, thereby improving the accuracy of the determined remaining discharge time and improving the user experience.

[0097] In some embodiments, before step 101, the method further includes:

[0098] 100: Determine an identification value of a data identification; wherein the identification value has a first value, wherein the first value represents that multiple groups of average currents and instantaneous voltages of battery discharge in an N-1th time window are invalid;

[0099] like Figure 4 As shown, the above step 101 includes:

[0100] 1011: When the identification value is a first value, determine X groups of average currents and instantaneous voltages of battery discharge in the Nth time window according to X first preset time lengths.

[0101] 1012: When the identification value is the second value, determine the X-th average current and instantaneous voltage of the battery discharge in the N-th time window according to the first preset time length; the second value represents that multiple groups of average currents and instantaneous voltages of the battery discharge in the N-1-th time window are valid; and determine the last X-1 average currents and instantaneous currents in the N-1-th time window as the first X-1 average currents and instantaneous voltages of the battery discharge in the N-1-th time window.

[0102] In some embodiments, in step 100, the identification value of the data identification may be represented by a Boolean value, or may be a custom value composed of letters, and / or numbers, and / or identifiers, etc.;

[0103] Exemplarily, in this embodiment, the identification value of the data identifier is a Boolean value; the first value is False, indicating that the multiple groups of average currents and instantaneous voltages of the battery discharge in the N-1th time window are invalid; the second value is True, indicating that the multiple groups of average currents and instantaneous voltages of the battery discharge in the N-1th time window are valid.

[0104] In the above step 1011, X is a positive integer greater than or equal to 2; the first preset time length is less than or equal to

[0105] Exemplarily, if the duration of the time window is 40 seconds, X may be 4, the first preset duration is represented by t1, and t1 may be 10 seconds or 8 seconds;

[0106] Specifically, when the time window is 40s, X is 4, and the first preset time is 10s, when the identification value is the first value, the average current and instantaneous voltage of the battery discharge in the Nth time window are determined every 10 seconds; the four groups of average currents are represented by I 1 ,I 2 ,I 3 and I 4 The four groups of instantaneous voltages are represented by V bat1 、V bat2 、V bat3 and V bat4 express.

[0107] In the above step 1012, the identification value is the second value, at which time the four groups of average currents and instantaneous voltages of the battery discharge in the N-1th time window are valid; the average current in the N-1th time window is represented by I 1 '、I 2 '、I 3 'and I 4 ' represents; the instantaneous voltage in the N-1th time window is represented by V bat1 '、V bat2 '、V bat3 ' and V bat4 'Indicates; the fourth average current in the Nth time window is represented by I 5 Indicates that the fourth instantaneous voltage is V bat5 express;

[0108] The last three average currents and instantaneous voltages in the N-1th time window are determined as the first three average current sources and instantaneous voltages in the Nth time window; the four average currents in the Nth time window are I 2 '、I 3 '、I 4 'and I 5 ; The instantaneous voltages in the Nth time window are V bat2 '、V bat3 '、V bat4 ' and V bat5 .

[0109] In some embodiments, step 102 includes: when the multiple groups of average currents and instantaneous voltages meet a first preset condition, determining an Nth voltage change rate according to the average current and the instantaneous voltage in an Nth time window.

[0110] In some embodiments, the first preset condition includes: among the X groups of instantaneous voltages, the Xth instantaneous voltage is less than the first instantaneous voltage; wherein X is the number of the instantaneous voltages and the average currents, and X is a positive integer greater than or equal to 2.

[0111] Specifically, the Nth voltage change rate is represented by K1. If the Xth instantaneous voltage of the Nth time window satisfies that the Xth instantaneous voltage is less than the first instantaneous voltage, it means that the Xth instantaneous voltage and average current of the Nth time window are valid, and the multiple groups of average currents and the instantaneous voltage do not meet the first preset condition.

[0112] At this time, the identification value of the data identification is set to the second value, and the Nth voltage change rate is determined according to the average current and the instantaneous voltage in the Nth time window.

[0113] Exemplarily, after the above step 1011, when the average current and instantaneous voltage of the X group meet the first preset condition, that is, the fourth instantaneous voltage V bat4 Less than the first instantaneous voltage V bat1 , then the Nth voltage change rate

[0114] Exemplarily, after the above step 1012, when the average current and instantaneous voltage of the X group meet the first preset condition, that is, the fourth instantaneous voltage V bat5 Less than the first instantaneous voltage V bat2 '; The Nth voltage change rate

[0115] In some embodiments, the step 201 includes: according to the voltage change rates of the M time windows continuously distributed in the time domain, taking the maximum value of the voltage change rates of the M time windows as the target voltage change rate.

[0116] Specifically, the target voltage change rate is represented by K, and the target change rate K is the time window of the last M continuously distributed ones of the N target change rates, that is, the N target change rates are represented by K=K N-1 ,K 3 ,......,K N Indicated by, the voltage change rate of the M time windows continuously distributed in the time domain is Said

[0117] For example, when N is 2 and M is 2, the voltage change rates of the M time windows are represented by K 1 and K 2 Indicates; K 1 and K 2 The maximum value among them is taken as the target voltage change rate K, K = max(K 1 ,K 2 ).

[0118] For example, when N is 4 and M is 3, the voltage change rates of the M time windows are represented by K 2 , K 3 and K 4 Indicates; K 2 , K 3 and K 4 The maximum value among them is taken as the target voltage change rate K, K = max(K 2 ,K 3 ,K 4 ).

[0119] In some embodiments, the above step 202 includes: obtaining the current discharge current, the current instantaneous voltage and the first threshold of the battery; and determining the remaining discharge time of the battery according to the target voltage change rate, the current discharge current, the current instantaneous voltage and the first threshold.

[0120] In some embodiments, determining the remaining discharge time of the battery according to the target voltage change rate, the current discharge current, the current instantaneous voltage and the first threshold comprises:

[0121] The remaining discharge time of the battery

[0122] Specifically, the first threshold is the lowest voltage value that allows the battery to be in a discharging state; the current discharge current is represented by I, the current instantaneous voltage is represented by V1, the first threshold is represented by V2, and the remaining discharge time of the battery is represented by T.

[0123] In some embodiments, the method also includes: when the multiple groups of average currents and the instantaneous voltages do not meet a first preset condition, determining the N-1th voltage change rate as the target voltage change rate; obtaining the current discharge current, the current instantaneous voltage and the first threshold of the battery; and determining the remaining discharge time of the battery based on the target voltage change rate, the current discharge current, the current instantaneous voltage and the first threshold.

[0124] Exemplarily, if the X groups of instantaneous voltages in the Nth time window satisfy that the Xth instantaneous voltage is not less than the 1st instantaneous voltage, it means that the X groups of instantaneous voltages and average currents in the Nth time window are invalid, and the multiple groups of average currents and the instantaneous voltages do not meet the first preset condition. At this time, the identification value of the data identification is set to the first value, and the N-1th voltage change rate is determined as the target voltage change rate, that is, K=K N-1 .

[0125] In some embodiments, the method further comprises:

[0126] When the remaining discharge time of the battery is greater than a second threshold, displaying the remaining discharge time of the battery;

[0127] and,

[0128] When the remaining discharge time of the battery is less than or equal to the second threshold, a shutdown countdown is sent to the terminal.

[0129] In this embodiment, the second threshold value may be a user-defined time value or a default value; illustratively, the second threshold value may be 20 seconds, 60 seconds, or two minutes, etc., without specific limitation here.

[0130] Exemplarily, when it is determined that the remaining discharge time of the battery is greater than the second threshold, the remaining discharge time of the battery is displayed, and the remaining discharge time of the battery is continuously determined, and the displayed remaining discharge time of the battery is updated;

[0131] Exemplarily, when the remaining discharge time of the battery is less than or equal to the second threshold, a shutdown countdown is sent to the terminal; here, the remaining discharge time of the battery and the shutdown countdown may be displayed, or only the shutdown countdown may be displayed.

[0132] In some embodiments, the method further includes: determining whether the discharge condition of the battery meets a second preset condition;

[0133] The determining of multiple groups of average currents and instantaneous voltages of the battery discharge within the Nth time window includes: when the discharge condition of the battery meets the second preset condition, determining multiple groups of average currents and instantaneous voltages of the battery discharge within the Nth time window.

[0134] In some embodiments, the second preset condition includes: the battery power is less than a third threshold and the battery is not in a charging state.

[0135] Exemplarily, the third threshold may be 1% of the total battery power, or 30% of the total battery power, etc., and the third threshold is less than or equal to the total battery power; the third threshold may be user-defined or a default value;

[0136] When the battery power of the battery is less than a third threshold and the battery is not in a charging state, it is determined that the discharge condition of the battery meets the second preset condition.

[0137] In the disclosed embodiment, multiple groups of average currents and instantaneous voltages of battery discharge in the Nth time window are determined; wherein N is a positive integer greater than or equal to M; and M is a positive integer greater than or equal to 2; the Nth voltage change rate is determined according to the average current and instantaneous voltage in the Nth time window; and the remaining discharge time of the battery is determined according to the voltage change rates of the M time windows continuously distributed in the time domain. In this way, by periodically determining the voltage change rate within the time window, the change of voltage per unit time during the battery discharge process is determined in real time, thereby achieving the determination of the remaining discharge time of the battery according to multiple voltage change rates, thereby improving accuracy and user experience.

[0138] The following is a specific example to further illustrate the method for determining the remaining discharge time provided by the present disclosure and its application scenarios.

[0139] The present disclosure provides a method for determining the remaining discharge time. Figure 6 and Figure 7 All of them are flowcharts of applying the remaining discharge time determination method to terminal equipment; Figure 8 The voltage variation diagram determined by the prior art, Fig. 9 A voltage variation diagram determined in an embodiment of the present disclosure; Fig.10 This is a schematic diagram of the dynamic estimation result of the remaining discharge time in the embodiment of the present disclosure; the specific process of the method may include the following steps:

[0140] It should be noted that N is a positive integer greater than or equal to M, and M is a positive integer greater than or equal to 2.

[0141] Step 1: Determine whether the battery power of the battery is less than a second battery threshold and whether the battery is in a charging state;

[0142] Specifically, if the battery power of the battery is less than the second battery threshold and the battery is not in a charging state, step 2 is executed; otherwise, step 1 is continued to be executed.

[0143] Step 2: Determine the identification value of the data identification;

[0144] Specifically, the data identifier indicates whether the battery data acquired within the time window is valid; the battery data here includes X groups of average current and instantaneous voltage;

[0145] If the identification value is False, it means that the X groups of average currents and instantaneous voltages of the battery discharge in the N-1th time window are invalid, and step 3 is executed; if the identification value is True, it means that the multiple groups of average currents and instantaneous voltages of the battery discharge in the N-1th time window are valid, and step 4 is executed.

[0146] It should be noted that the initial value of the identification value is False, and the initial value of the target voltage change rate K is 0; when N is 1, step 3 is executed.

[0147] Step 3: Determine the average current and instantaneous voltage of the X groups of battery discharge in the Nth time window;

[0148] Specifically, according to X first preset time lengths, X groups of average currents and instantaneous voltages of the battery discharge in the Nth time window are determined.

[0149] Exemplarily, the value of X is 4, the time window duration is 40 seconds, and the first preset duration is 10 seconds. That is, the average voltage and instantaneous voltage of a battery discharge are obtained with a cycle of 10 seconds.

[0150] Every 10 seconds, the average voltage and instantaneous voltage of a battery discharge are obtained from the battery firmware through the I2C protocol;

[0151] The four groups of average currents of the battery discharge in the Nth time window are represented by I 1 ,I 2 ,I 3 and I 4 Indicated by; the four groups of instantaneous voltages of the battery discharge in the Nth time window are respectively represented by V bat1 、V bat2 、V bat3 and V bat4 express.

[0152] Step 4: Determine the average current and instantaneous voltage of the X groups of battery discharge in the Nth time window;

[0153] According to the first preset time length, the Xth average current and instantaneous voltage of the battery discharge in the Nth time window are determined; and the last X-1 average currents and instantaneous currents in the N-1th time window are determined as the first X-1 average currents and instantaneous voltages of the battery discharge in the Nth time window.

[0154] Specifically, according to the first preset time length, the fourth average current I of the battery discharge in the Nth time window is obtained from the battery firmware through the I2C protocol. 5and the instantaneous voltage V bat5 The average current in the N-1th time window is represented by I 1 '、I 2 '、I 3 'and I 4 ' represents; the instantaneous voltage in the N-1th time window is represented by V bat1 '、V bat2 '、V bat3 ' and V bat4 'express;

[0155] The first group of average current and instantaneous voltage in the N-1th time window is discarded, and the last three groups of average current and instantaneous voltage in the N-1th time window are determined as the first three groups of average current source and instantaneous voltage in the Nth time window; the four average currents in the Nth time window are I 2 '、I 3 '、I 4 'and I 5 ; The instantaneous voltages in the Nth time window are V bat2 '、V bat3 '、V bat4 ' and V bat5 .

[0156] Step 5: Determine whether the X-group average current and instantaneous voltage of the battery discharge in the Nth time window are valid;

[0157] Specifically, if among the four groups of instantaneous voltages, the fourth instantaneous voltage is less than the first instantaneous voltage; it means that the four groups of average currents and instantaneous voltages of the battery discharge in the Nth time window are valid, the identification value of the data identification is set to True, and step 6 is executed;

[0158] If the fourth instantaneous voltage among the four groups of instantaneous voltages is not less than the first instantaneous voltage, it means that the four groups of average currents and instantaneous voltages of the battery discharge in the Nth time window are invalid, and the identification value of the data identification is set to False, and step 8 is executed;

[0159] Step 6: Determine the Nth voltage change rate according to the average current and instantaneous voltage in the Nth time window.

[0160] When the average currents of the four groups of battery discharges in the Nth time window are I 1 ,I 2 ,I 3 and I 4 , the four groups of instantaneous voltages of the battery discharge in the Nth time window are V bat1 、V bat2 、V bat3 and V bat4When the Nth voltage change rate Among them, V bat4 -V bat1 The voltage difference of the battery discharged within 30 seconds; is the average current value of the three groups of average currents within 30 seconds. The Nth voltage change rate is the voltage change rate per unit time when the battery is discharged at the average current value.

[0161] When the four average currents in the Nth time window are I 2 '、I 3 '、I 4 'and I 5 , the instantaneous voltages in the Nth time window are V bat2 '、V bat3 '、V bat4 ' and V bat5 When the Nth voltage change rate

[0162] Among them, V bat5 -V bat2 ' is the voltage difference of the battery discharge within 30 seconds; is the average current value of the three groups of average currents within 30 seconds. The Nth voltage change rate is the voltage change rate per unit time when the battery is discharged at the average current value.

[0163] Step 7: according to the voltage change rates of the M time windows continuously distributed in the time domain, taking the maximum value of the voltage change rates of the M time windows as the target voltage change rate K;

[0164] For example, M is 2; the voltage change rates of the two time windows continuously distributed in the time domain are represented by K 1 and K 2 Indicates; K 1 and K 2 The maximum value among them is taken as the target voltage change rate K, K = max(K 1 ,K 2 ).

[0165] Step 8: Determine the N-1th voltage change rate as the target voltage change rate K;

[0166] Specifically, the target voltage change rate K=K N-1 .

[0167] Step 9: Obtain the current discharge current, current instantaneous voltage and first threshold value of the battery;

[0168] Specifically, the first threshold is the lowest voltage value that allows the battery to be in a discharging state; the current discharge current is represented by I, the current instantaneous voltage is represented by V1, the first threshold is represented by V2, and the remaining discharge time of the battery is represented by T.

[0169] Step 10: Determine the remaining discharge time of the battery according to the target voltage change rate, the current discharge current, the current instantaneous voltage and the first threshold.

[0170] Specifically, the remaining discharge time of the battery

[0171] Step 11: Determine whether the remaining discharge time of the battery is greater than a second threshold;

[0172] If the remaining discharge time of the battery is greater than the second threshold, execute step 12; if the remaining discharge time of the battery is not greater than the second threshold, execute step 13.

[0173] Specifically, the second threshold value may be a user-defined time value or a default value; illustratively, the second threshold value is 30 seconds.

[0174] If the remaining discharge time T of the battery is greater than 30 seconds, execute step 12; if the remaining discharge time T of the battery is not greater than 30 seconds, execute step 13.

[0175] Step 12: Displaying the remaining discharge time of the battery;

[0176] Display the remaining discharge time of the battery on the terminal device, and execute step 1;

[0177] Step 13: Send shutdown countdown to the terminal.

[0178] A light machine countdown reminder is displayed on the terminal device.

[0179] Step 14: Determine whether the terminal is connected to a power source, that is, whether it is in a charging state.

[0180] If the terminal is connected to a power source and is in a charging state, the identification value of the data identification is reset and the identification value is set to False. In this way, not only can the memory occupied by data storage be reduced, but also the current state of the battery can be determined dynamically in real time, thereby improving the accuracy of the remaining discharge time of the battery.

[0181] In this embodiment, by periodically determining the voltage change rate within a time window, the voltage change per unit time during the battery discharge process is determined in real time, and then the remaining discharge time of the battery is determined based on multiple voltage change rates, thereby improving accuracy and user experience.

[0182] Fig.11 is a structural block diagram of a device for determining a remaining discharge time according to an exemplary embodiment. Fig.11 , the remaining discharge time determining device 1100 may include:

[0183] A first determining module 1101 is used to determine a voltage change rate according to an average current and an instantaneous voltage of a battery during discharge;

[0184] The second determining module 1102 is used to determine the remaining discharge time of the battery according to the voltage change rate.

[0185] In some embodiments, the first determining module 1101 is specifically configured to:

[0186] Determine multiple groups of average currents and instantaneous voltages of battery discharge in the Nth time window; wherein N is a positive integer greater than or equal to M; and M is a positive integer greater than or equal to 2; determine the Nth voltage change rate according to the average current and instantaneous voltage in the Nth time window;

[0187] The second determination module 1102 is specifically configured to determine a target voltage change rate according to voltage change rates of M time windows continuously distributed in the time domain;

[0188] The remaining discharge time of the battery is determined according to the target voltage change rate.

[0189] In some embodiments, the second determining module 1102 is further configured to:

[0190] When the plurality of groups of average currents and instantaneous voltages satisfy a first preset condition, the Nth voltage change rate is determined according to the average current and the instantaneous voltage in the Nth time window.

[0191] In some embodiments, the first preset condition includes:

[0192] Among the X groups of instantaneous voltages, the Xth instantaneous voltage is smaller than the first instantaneous voltage;

[0193] Wherein, X is the number of the instantaneous voltage and the average current, and X is a positive integer greater than or equal to 2.

[0194] In some embodiments, the second determining module 1102 is further configured to:

[0195] According to the voltage change rates of the M time windows continuously distributed in the time domain, a maximum value among the voltage change rates of the M time windows is used as the target voltage change rate.

[0196] In some embodiments, the second determining module 1102 is further configured to:

[0197] Acquire a current discharge current, a current instantaneous voltage and a first threshold value of the battery;

[0198] The remaining discharge time of the battery is determined according to the target voltage change rate, the current discharge current, the current instantaneous voltage and the first threshold.

[0199] In some embodiments, the apparatus further comprises:

[0200] A third determining module 1103 is configured to determine the N-1th voltage change rate as the target voltage change rate when the plurality of groups of average currents and the instantaneous voltage do not satisfy a first preset condition;

[0201] An acquisition module 1104 is used to acquire a current discharge current, a current instantaneous voltage and a first threshold value of the battery;

[0202] The fourth determination module 1105 is used to determine the remaining discharge time of the battery according to the target voltage change rate, the current discharge current, the current instantaneous voltage and the first threshold.

[0203] In some embodiments, the second determining module 1102 is further configured to:

[0204] The remaining discharge time of the battery

[0205] In some embodiments, the apparatus further comprises:

[0206] A display module 1106, configured to display the remaining discharge time of the battery when the remaining discharge time of the battery is greater than a second threshold;

[0207] and,

[0208] The sending module 1107 is configured to send a shutdown countdown to the terminal when the remaining discharge time of the battery is less than or equal to the second threshold.

[0209] In some embodiments, the apparatus further comprises:

[0210] A fifth determining module 1108, configured to determine whether the discharge condition of the battery meets a second preset condition;

[0211] The first determining module 1101 is further specifically configured to:

[0212] When the discharge condition of the battery meets the second preset condition, multiple groups of average currents and instantaneous voltages of the battery discharge in the Nth time window are determined.

[0213] In some embodiments, the second preset condition includes:

[0214] The battery power is less than a third threshold and the battery is not in a charging state.

[0215] In some embodiments, the apparatus further comprises:

[0216] The sixth determination module 1109 is used to determine an identification value of the data identification; wherein the identification value has a first value, wherein the first value represents that multiple groups of average currents and instantaneous voltages of the battery discharge in the N-1th time window are invalid;

[0217] The first determining module 1101 is further specifically configured to:

[0218] When the identification value is a first value, X groups of average currents and instantaneous voltages of the battery discharge in the Nth time window are determined according to X first preset time lengths.

[0219] In some embodiments, the first determining module 1101 is further configured to:

[0220] When the identification value is the second value, the Xth average current and instantaneous voltage of the battery discharge in the Nth time window are determined according to the first preset time length; the second value represents that multiple groups of average currents and instantaneous voltages of the battery discharge in the N-1th time window are valid;

[0221] The last X-1 average currents and instantaneous currents in the N-1th time window are determined as the first X-1 average currents and instantaneous voltages of the battery discharge in the Nth time window.

[0222] Regarding the device in the above embodiment, the specific manner in which each module performs operations has been described in detail in the embodiment of the method, and will not be elaborated here.

[0223] In an exemplary embodiment, the first determination module 1101, the second determination module 1102, the third determination module 1103, the acquisition module 1104, the fourth determination module 1105, the display module 1106, the sending module 1107, the fifth determination module 1108, and the sixth determination module 1109, etc. can be implemented by one or more central processing units (CPUs), graphics processing units (GPUs), baseband processors (BPs), application-specific integrated circuits (ASICs), DSPs, programmable logic devices (PLDs), complex programmable logic devices (CPLDs), field programmable gate arrays (FPGAs), general-purpose processors, controllers, microcontrollers (MCUs), microprocessors, or other electronic components to execute the aforementioned method.

[0224] Fig.12 1 is a block diagram of a remaining discharge time determination device 1200 according to an exemplary embodiment. For example, the device 1200 may be a mobile phone, a computer, a digital broadcast terminal, a messaging device, a game console, a tablet device, a medical device, a fitness device, a personal digital assistant, etc.

[0225] Reference Fig.12 , the device 1200 may include one or more of the following components: a processing component 1202 , a memory 1204 , a power component 1206 , a multimedia component 1208 , an audio component 1210 , an input / output (I / O) interface 1212 , a sensor component 1214 , and a communication component 1216 .

[0226] The processing component 1202 generally controls the overall operation of the device 1200, such as operations associated with display, phone calls, data communications, camera operations, and recording operations. The processing component 1202 may include one or more processors 1220 to execute instructions to perform all or part of the steps of the above-described method. In addition, the processing component 1202 may include one or more modules to facilitate the interaction between the processing component 1202 and other components. For example, the processing component 1202 may include a multimedia module to facilitate the interaction between the multimedia component 1208 and the processing component 1202.

[0227] The memory 1204 is configured to store various types of data to support the operation of the device 1200. Examples of such data include instructions for any application or method operating on the device 1200, contact data, phone book data, messages, pictures, videos, etc. The memory 1204 can be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic disk or optical disk.

[0228] The power supply component 1206 provides power to the various components of the device 1200. The power supply component 1206 may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power to the device 1200.

[0229] The multimedia component 1208 includes a screen that provides an output interface between the device 1200 and the user. In some embodiments, the screen may include a liquid crystal display (LCD) and a touch panel (TP). If the screen includes a touch panel, the screen may be implemented as a touch screen to receive input signals from the user. The touch panel includes one or more touch sensors to sense touch, slide, and gestures on the touch panel. The touch sensor may not only sense the boundaries of the touch or slide action, but also detect the duration and pressure associated with the touch or slide operation. In some embodiments, the multimedia component 1208 includes a front camera and / or a rear camera. When the device 1200 is in an operating mode, such as a shooting mode or a video mode, the front camera and / or the rear camera may receive external multimedia data. Each front camera and rear camera may be a fixed optical lens system or have a focal length and optical zoom capability.

[0230] The audio component 1210 is configured to output and / or input audio signals. For example, the audio component 1210 includes a microphone (MIC), and when the device 1200 is in an operation mode, such as a call mode, a recording mode, and a speech recognition mode, the microphone is configured to receive an external audio signal. The received audio signal can be further stored in the memory 1204 or sent via the communication component 1216. In some embodiments, the audio component 1210 also includes a speaker for outputting audio signals.

[0231] I / O interface 1212 provides an interface between processing component 1202 and peripheral interface modules, such as keyboards, click wheels, buttons, etc. These buttons may include but are not limited to: a home button, a volume button, a start button, and a lock button.

[0232] The sensor assembly 1214 includes one or more sensors for providing various aspects of the status assessment of the device 1200. For example, the sensor assembly 1214 can detect the open / closed state of the device 1200, the relative positioning of components, such as the display and keypad of the device 1200, the sensor assembly 1214 can also detect the position change of the device 1200 or a component of the device 1200, the presence or absence of user contact with the device 1200, the orientation or acceleration / deceleration of the device 1200, and the temperature change of the device 1200. The sensor assembly 1214 can include a proximity sensor configured to detect the presence of a nearby object without any physical contact. The sensor assembly 1214 can also include an optical sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, the sensor assembly 1214 can also include an accelerometer, a gyroscope sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.

[0233] The communication component 1216 is configured to facilitate wired or wireless communication between the device 1200 and other devices. The device 1200 can access a wireless network based on a communication standard, such as WiFi, 2G or 3G, or a combination thereof. In an exemplary embodiment, the communication component 1216 receives a broadcast signal or broadcast-related information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communication component 1216 also includes a near field communication (NFC) module to facilitate short-range communication. For example, the NFC module can be implemented based on radio frequency identification (RFID) technology, infrared data association (IrDA) technology, ultra-wideband (UWB) technology, Bluetooth (BT) technology and other technologies.

[0234] In an exemplary embodiment, the device 1200 can be implemented by one or more application-specific integrated circuits (ASICs), digital signal processors (DSPs), digital signal processing devices (DSPDs), programmable logic devices (PLDs), field programmable gate arrays (FPGAs), controllers, microcontrollers, microprocessors or other electronic components to perform the above-mentioned methods.

[0235] In an exemplary embodiment, a non-transitory computer-readable storage medium including instructions is also provided, such as a memory 1204 including instructions, and the instructions can be executed by the processor 1220 of the device 1200 to perform the above method. For example, the non-transitory computer-readable storage medium can be a ROM, a random access memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, etc.

[0236] After the instructions are executed by the processor, the following operations can be performed:

[0237] Determine multiple groups of average currents and instantaneous voltages of battery discharge in the Nth time window; wherein N is a positive integer greater than or equal to M; and M is a positive integer greater than or equal to 2;

[0238] Determine the Nth voltage change rate according to the average current and instantaneous voltage in the Nth time window;

[0239] The remaining discharge time of the battery is determined according to the voltage change rates of M time windows continuously distributed in the time domain.

[0240] It can be understood that determining the Nth voltage change rate according to the average current and instantaneous voltage in the Nth time window includes:

[0241] When the plurality of groups of average currents and instantaneous voltages satisfy a first preset condition, the Nth voltage change rate is determined according to the average current and the instantaneous voltage in the Nth time window.

[0242] It can be understood that the first preset condition includes:

[0243] Among the X groups of instantaneous voltages, the Xth instantaneous voltage is smaller than the first instantaneous voltage;

[0244] Wherein, X is the number of the instantaneous voltage and the average current, and X is a positive integer greater than or equal to 2.

[0245] It can be understood that determining the remaining discharge time of the battery according to the voltage change rate of M time windows continuously distributed in the time domain includes:

[0246] According to the voltage change rates of the M time windows continuously distributed in the time domain, taking the maximum value of the voltage change rates of the M time windows as the target voltage change rate;

[0247] Acquire a current discharge current, a current instantaneous voltage and a first threshold value of the battery;

[0248] The remaining discharge time of the battery is determined according to the target voltage change rate, the current discharge current, the current instantaneous voltage and the first threshold.

[0249] It is understandable that the method further comprises:

[0250] When the plurality of groups of average currents and the instantaneous voltages do not satisfy a first preset condition, determining the N-1th voltage change rate as the target voltage change rate;

[0251] Obtaining the current discharge current, current instantaneous voltage and first threshold value of the battery;

[0252] The remaining discharge time of the battery is determined according to the target voltage change rate, the current discharge current, the current instantaneous voltage and the first threshold.

[0253] It can be understood that determining the remaining discharge time of the battery according to the target voltage change rate, the current discharge current, the current instantaneous voltage and the first threshold value includes:

[0254] The remaining discharge time of the battery

[0255] It is understandable that the method further comprises:

[0256] When the remaining discharge time of the battery is greater than a second threshold, displaying the remaining discharge time of the battery;

[0257] and,

[0258] When the remaining discharge time of the battery is less than or equal to the second threshold, a shutdown countdown is sent to the terminal.

[0259] It is understandable that the method further comprises:

[0260] determining whether the discharge condition of the battery meets a second preset condition;

[0261] The step of determining multiple groups of average currents and instantaneous voltages of battery discharge within the Nth time window includes:

[0262] When the discharge condition of the battery meets the second preset condition, multiple groups of average currents and instantaneous voltages of the battery discharge in the Nth time window are determined.

[0263] It can be understood that the second preset condition includes:

[0264] The battery power is less than a third threshold and the battery is not in a charging state.

[0265] It can be understood that before determining the multiple groups of average currents and instantaneous voltages of the battery discharge in the Nth time window, the method further includes:

[0266] Determine an identification value of a data identification; wherein the identification value has a first value, wherein the first value represents that multiple groups of average currents and instantaneous voltages of battery discharge in the N-1th time window are invalid;

[0267] The step of determining multiple groups of average currents and instantaneous voltages of battery discharge within the Nth time window includes:

[0268] When the identification value is a first value, X groups of average currents and instantaneous voltages of the battery discharge in the Nth time window are determined according to X first preset time lengths.

[0269] It can be understood that the step of determining multiple groups of average currents and instantaneous voltages of battery discharge within the Nth time window further includes:

[0270] When the identification value is the second value, the Xth average current and instantaneous voltage of the battery discharge in the Nth time window are determined according to the first preset time length; the second value represents that multiple groups of average currents and instantaneous voltages of the battery discharge in the N-1th time window are valid;

[0271] The last X-1 average currents and instantaneous currents in the N-1th time window are determined as the first X-1 average currents and instantaneous voltages of the battery discharge in the Nth time window.

[0272] Those skilled in the art will readily appreciate other embodiments of the present invention after considering the specification and practicing the invention disclosed herein. This application is intended to cover any variations, uses or adaptations of the present invention that follow the general principles of the present invention and include common knowledge or customary techniques in the art that are not disclosed by the present invention. The specification and examples are to be considered exemplary only, and the true scope and spirit of the present invention are indicated by the claims.

[0273] It should be understood that the present invention is not limited to the exact construction that has been described above and shown in the drawings and that various modifications and changes may be made without departing from the scope thereof. The scope of the present invention is limited only by the appended claims.

Claims

1. A method for determining the remaining discharge time, characterized in that: The method comprises: Determine the voltage change rate based on the average current and instantaneous voltage of the battery discharge; The remaining discharge time of the battery is determined according to the voltage change rate.

2. The method according to claim 1, characterized in that: Determining the voltage change rate according to the average current and instantaneous voltage of the battery discharge includes: Determine multiple groups of average currents and instantaneous voltages of battery discharge in the Nth time window; wherein N is a positive integer greater than or equal to M; and M is a positive integer greater than or equal to 2; Determine the Nth voltage change rate according to the average current and instantaneous voltage in the Nth time window; Determining the remaining discharge time of the battery according to the voltage change rate includes: Determine the target voltage change rate according to the voltage change rates of M time windows continuously distributed in the time domain; The remaining discharge time of the battery is determined according to the target voltage change rate.

3. The method according to claim 2, characterized in that The determining the Nth voltage change rate according to the average current and the instantaneous voltage in the Nth time window includes: When the plurality of groups of average currents and instantaneous voltages satisfy a first preset condition, the Nth voltage change rate is determined according to the average current and the instantaneous voltage in the Nth time window.

4. The method according to claim 3, characterized in that The first preset condition includes: Among the X groups of instantaneous voltages, the Xth instantaneous voltage is smaller than the first instantaneous voltage; Wherein, X is the number of the instantaneous voltage and the average current, and X is a positive integer greater than or equal to 2.

5. The method according to claim 4, characterized in that The step of determining a target voltage change rate according to the voltage change rates of M time windows continuously distributed in the time domain includes: According to the voltage change rates of the M time windows continuously distributed in the time domain, a maximum value among the voltage change rates of the M time windows is used as the target voltage change rate.

6. The method according to claim 5, characterized in that The determining the remaining discharge time of the battery according to the target voltage change rate includes: Acquire a current discharge current, a current instantaneous voltage and a first threshold value of the battery; The remaining discharge time of the battery is determined according to the target voltage change rate, the current discharge current, the current instantaneous voltage and the first threshold.

7. The method according to claim 4, characterized in that The method further comprises: When the plurality of groups of average currents and the instantaneous voltages do not satisfy a first preset condition, determining the N-1th voltage change rate as the target voltage change rate; Obtaining the current discharge current, current instantaneous voltage and first threshold value of the battery; The remaining discharge time of the battery is determined according to the target voltage change rate, the current discharge current, the current instantaneous voltage and the first threshold.

8. The method according to any one of claims 1 to 7, characterized in that: The method further comprises: When the remaining discharge time of the battery is greater than a second threshold, displaying the remaining discharge time of the battery; and, When the remaining discharge time of the battery is less than or equal to the second threshold, a shutdown countdown is sent to the terminal.

9. The method according to any one of claims 2 to 7, characterized in that: The method further comprises: determining whether the discharge condition of the battery meets a second preset condition; The step of determining multiple groups of average currents and instantaneous voltages of battery discharge within the Nth time window includes: When the discharge condition of the battery meets the second preset condition, multiple groups of average currents and instantaneous voltages of the battery discharge in the Nth time window are determined.

10. The method according to claim 9, characterized in that The second preset condition includes: The battery power is less than a third threshold and the battery is not in a charging state.

11. The method according to claim 9, characterized in that Before determining the multiple groups of average currents and instantaneous voltages of battery discharge in the Nth time window, the method further includes: Determine an identification value of a data identification; wherein the identification value has a first value, wherein the first value represents that multiple groups of average currents and instantaneous voltages of battery discharge in the N-1th time window are invalid; The step of determining multiple groups of average currents and instantaneous voltages of battery discharge within the Nth time window includes: When the identification value is a first value, X groups of average currents and instantaneous voltages of the battery discharge in the Nth time window are determined according to X first preset time lengths.

12. The method according to claim 11, characterized in that The determining of multiple groups of average currents and instantaneous voltages of battery discharge within the Nth time window further includes: When the identification value is the second value, the Xth average current and instantaneous voltage of the battery discharge in the Nth time window are determined according to the first preset time length; the second value represents that multiple groups of average currents and instantaneous voltages of the battery discharge in the N-1th time window are valid; The last X-1 average currents and instantaneous currents in the N-1th time window are determined as the first X-1 average currents and instantaneous voltages of the battery discharge in the Nth time window.

13. A device for determining remaining discharge time, characterized in that: The device comprises: A first determination module, used to determine a voltage change rate according to an average current and an instantaneous voltage of a battery discharge; The second determination module is used to determine the remaining discharge time of the battery according to the voltage change rate.

14. An electronic device, characterized in that: include: a memory for storing processor-executable instructions; A processor connected to the memory; The processor is configured to execute the remaining discharge time determination method provided in any one of claims 1 to 12. 15 . A non-transitory computer-readable storage medium, when the instructions in the storage medium are executed by a processor of a computer, enables the computer to perform the remaining discharge time determination method according to any one of claims 1 to 12.