[go: up one dir, main page]

CN116338475A - Battery electric quantity display method, device and storage medium - Google Patents

Battery electric quantity display method, device and storage medium Download PDF

Info

Publication number
CN116338475A
CN116338475A CN202111602565.3A CN202111602565A CN116338475A CN 116338475 A CN116338475 A CN 116338475A CN 202111602565 A CN202111602565 A CN 202111602565A CN 116338475 A CN116338475 A CN 116338475A
Authority
CN
China
Prior art keywords
battery
smoothing
electric quantity
time
current
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202111602565.3A
Other languages
Chinese (zh)
Inventor
席利根
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Xiaomi Mobile Software Co Ltd
Original Assignee
Beijing Xiaomi Mobile Software Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Xiaomi Mobile Software Co Ltd filed Critical Beijing Xiaomi Mobile Software Co Ltd
Priority to CN202111602565.3A priority Critical patent/CN116338475A/en
Publication of CN116338475A publication Critical patent/CN116338475A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G01MEASURING; TESTING
    • G01RMEASURING ELECTRIC VARIABLES; MEASURING MAGNETIC VARIABLES
    • G01R31/00Arrangements for testing electric properties; Arrangements for locating electric faults; Arrangements for electrical testing characterised by what is being tested not provided for elsewhere
    • G01R31/36Arrangements for testing, measuring or monitoring the electrical condition of accumulators or electric batteries, e.g. capacity or state of charge [SoC]
    • G01R31/382Arrangements for monitoring battery or accumulator variables, e.g. SoC
    • GPHYSICS
    • G01MEASURING; TESTING
    • G01RMEASURING ELECTRIC VARIABLES; MEASURING MAGNETIC VARIABLES
    • G01R31/00Arrangements for testing electric properties; Arrangements for locating electric faults; Arrangements for electrical testing characterised by what is being tested not provided for elsewhere
    • G01R31/36Arrangements for testing, measuring or monitoring the electrical condition of accumulators or electric batteries, e.g. capacity or state of charge [SoC]
    • G01R31/3644Constructional arrangements
    • G01R31/3646Constructional arrangements for indicating electrical conditions or variables, e.g. visual or audible indicators
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02EREDUCTION OF GREENHOUSE GAS [GHG] EMISSIONS, RELATED TO ENERGY GENERATION, TRANSMISSION OR DISTRIBUTION
    • Y02E60/00Enabling technologies; Technologies with a potential or indirect contribution to GHG emissions mitigation
    • Y02E60/10Energy storage using batteries

Landscapes

  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Charge And Discharge Circuits For Batteries Or The Like (AREA)

Abstract

The disclosure relates to a battery power display method, a device and a storage medium, and relates to the technical field of battery power, comprising the following steps: acquiring the cell voltage of a terminal battery; under the condition that the voltage of the battery core is smaller than or equal to a first target voltage threshold value, acquiring the discharge current and the current residual capacity of the battery; determining smoothing time according to the current residual capacity and the discharge current; according to the smoothing time, smoothing the battery display electric quantity to be displayed on the terminal interface; and displaying the electric quantity of the battery after the smoothing treatment. In this way, when the cell voltage of the battery is smaller than or equal to the first target voltage threshold, the smoothing time of the smoothing process is determined according to the discharge current and the current residual capacity of the battery, that is, the smoothing time can be dynamically adjusted according to the load change condition of the current terminal, so that the battery display electric quantity finally displayed at the terminal interface is synchronous with the actual residual electric quantity of the battery.

Description

Battery electric quantity display method, device and storage medium
Technical Field
The disclosure relates to the technical field of battery power, and in particular relates to a battery power display method, a battery power display device and a storage medium.
Background
At present, the residual electric quantity information displayed by the mobile terminal is mainly provided by an electric quantity model of the electric quantity meter, but because the electric quantity model is difficult to be completely matched with the electric core parameters of the battery, the displayed electric quantity of the battery obtained by the electric quantity model is easy to jump, so that the deviation from the actual residual electric quantity of the battery occurs.
In the related art, the electric quantity model performs smoothing processing on the electric quantity displayed by the battery within a preset smoothing time, so that the electric quantity displayed by the battery finally displayed on the terminal interface is synchronous with the actual residual electric quantity of the battery. However, since the preset smoothing time is a fixed value, when the system load changes, smoothing is performed according to the preset smoothing time, which may cause a problem of too fast smoothing, thereby affecting the user experience.
Disclosure of Invention
In order to overcome the problems in the related art, the present disclosure provides a method, an apparatus, and a storage medium for displaying battery power.
According to a first aspect of embodiments of the present disclosure, there is provided a method for displaying battery power, the method including: acquiring the cell voltage of a terminal battery; acquiring the discharge current and the current residual capacity of the battery under the condition that the battery cell voltage is smaller than or equal to a first target voltage threshold value; determining smoothing time according to the current residual capacity and the discharge current, wherein the smoothing time is total time for smoothing the battery display electric quantity to be displayed on the terminal interface; according to the smoothing time, smoothing the battery display electric quantity to be displayed on the terminal interface; and displaying the battery display electric quantity after the smoothing treatment.
Optionally, the determining the smoothing time according to the current remaining capacity and the discharge current includes: calculating the product of the current residual capacity and a preset time value; and taking the ratio of the product to the discharge current as the smoothing time.
Optionally, the smoothing processing for the battery display power to be displayed on the terminal interface according to the smoothing time includes: determining a unit smoothing time of the battery according to the current residual capacity and the smoothing time; and smoothing the battery display electric quantity to a preset smooth electric quantity according to the unit smooth time.
Optionally, the determining the unit smoothing time of the battery according to the current remaining capacity and the smoothing time includes: determining the current residual charge amount of the battery according to the current residual capacity; and determining the unit smoothing time according to the current residual charge quantity and the smoothing time.
Optionally, the determining the unit smoothing time according to the current remaining charge amount and the smoothing time includes: and taking the ratio of the current residual charge amount to the smoothing time as the unit smoothing time of the battery.
Optionally, the method comprises: if the battery cell voltage is smaller than or equal to a second target voltage threshold, if the battery display electric quantity after the smoothing processing is larger than or equal to a preset smooth electric quantity, taking the preset smooth electric quantity as the battery display electric quantity to be displayed; wherein the second target voltage threshold is less than the first target voltage threshold.
Optionally, the discharge current includes a present discharge current of the battery or an average discharge current of the battery over a preset period of time.
According to a second aspect of embodiments of the present disclosure, there is provided a display device for displaying battery power, including: the first acquisition module is configured to acquire the cell voltage of the terminal battery; the second acquisition module is configured to acquire the discharge current and the current residual capacity of the battery under the condition that the battery cell voltage is smaller than or equal to a first target voltage threshold value; the first determining module is configured to determine a smoothing time according to the current residual capacity and the discharge current, wherein the smoothing time is the total time for carrying out smoothing processing on the battery display electric quantity to be displayed on the terminal interface; the smoothing module is configured to carry out smoothing treatment on the battery display electric quantity to be displayed on the terminal interface according to the smoothing time; and the display module is configured to display the battery display electric quantity after the smoothing treatment.
Optionally, the first determining module includes: a calculation sub-module configured to calculate a product of the current remaining capacity and a preset time value; and a ratio sub-module configured to compare the product with the discharge current as the smoothing time.
Optionally, the smoothing module includes: a determination submodule configured to determine a unit smoothing time of the battery based on the current remaining capacity and the smoothing time; and the smoothing sub-module is configured to smooth the battery display electric quantity to a preset smooth electric quantity according to the unit smoothing time.
Optionally, the determining submodule is configured to determine a current residual charge of the battery according to the current residual capacity; and determining the unit smoothing time according to the current residual charge quantity and the smoothing time.
Optionally, the determining submodule is configured to use a ratio of the current remaining charge amount and the smoothing time as a unit smoothing time of the battery.
Optionally, the apparatus comprises: the second determining module is configured to take the preset smooth electric quantity as the battery display electric quantity to be displayed if the battery display electric quantity after the smoothing processing is larger than or equal to the preset smooth electric quantity under the condition that the battery cell voltage is smaller than or equal to a second target voltage threshold value; wherein the second target voltage threshold is less than the first target voltage threshold.
Optionally, the discharge current includes a present discharge current of the battery or an average discharge current of the battery over a preset period of time.
According to a third aspect of embodiments of the present disclosure, there is provided a display device for displaying battery power, including: a processor; a memory for storing processor-executable instructions; wherein the processor is configured to implement the steps of the method for displaying battery power provided by the first aspect of the present disclosure.
According to a fourth aspect of embodiments of the present disclosure, there is provided a computer readable storage medium having stored thereon computer program instructions which, when executed by a processor, implement the steps of the method for displaying battery charge provided by the first aspect of the present disclosure.
The technical scheme provided by the embodiment of the disclosure can comprise the following beneficial effects: acquiring the cell voltage of a terminal battery; under the condition that the voltage of the battery core is smaller than or equal to a first target voltage threshold value, acquiring the discharge current and the current residual capacity of the battery; determining smoothing time according to the current residual capacity and the discharge current, wherein the smoothing time is the total time for smoothing the electric quantity of the battery to be displayed on the terminal interface; according to the smoothing time, smoothing the battery display electric quantity to be displayed on the terminal interface; and displaying the electric quantity of the battery after the smoothing treatment. By the method, when the cell voltage of the battery is smaller than or equal to the first target voltage threshold, the smoothing time of the smoothing process is determined according to the discharging current and the current residual capacity of the battery, namely, the smoothing time can be dynamically adjusted according to the load change condition of the current terminal, so that the battery display electric quantity finally displayed on the terminal interface is synchronous with the actual residual electric quantity of the battery, the problem of excessively fast smoothing is avoided, and the use experience of a user is improved.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the disclosure.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the disclosure and together with the description, serve to explain the principles of the disclosure.
FIG. 1 is a flow chart illustrating a method of displaying battery charge according to an exemplary embodiment;
FIG. 2 is a flowchart illustrating another battery charge presentation method according to an exemplary embodiment;
FIG. 3 is a flowchart illustrating another battery charge presentation method according to an exemplary embodiment;
FIG. 4 is a flowchart illustrating another battery charge presentation method according to an exemplary embodiment;
FIG. 5 is a flowchart illustrating another battery charge presentation method according to an exemplary embodiment;
FIG. 6 is a flowchart illustrating another battery charge presentation method according to an exemplary embodiment;
FIG. 7 is a block diagram of a battery level presentation device according to an exemplary embodiment;
FIG. 8 is a block diagram of another battery level display device according to an exemplary embodiment;
FIG. 9 is a block diagram of another battery level display device according to an exemplary embodiment;
FIG. 10 is a block diagram of another battery level display device according to an exemplary embodiment;
fig. 11 is a block diagram illustrating a battery level presentation device according to an exemplary embodiment.
Detailed Description
Reference will now be made in detail to exemplary embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, the same numbers in different drawings refer to the same or similar elements, unless otherwise indicated. The implementations described in the following exemplary examples are not representative of all implementations consistent with the present disclosure. Rather, they are merely examples of apparatus and methods consistent with some aspects of the present disclosure as detailed in the accompanying claims.
Before introducing the method, the device and the storage medium for displaying the battery power provided by the disclosure, application scenarios related to various embodiments of the disclosure are first described. The method and the device are applied to the situation that the battery is discharged, the battery electric quantity is an important index in the mobile terminal, and a user can determine whether to charge according to the residual electric quantity information displayed by the terminal. The residual electric quantity information displayed by the mobile terminal is mainly provided by an electric quantity model of the electric quantity meter, the electric quantity module obtains the battery display electric quantity through calculation, and the battery display electric quantity is displayed on a mobile terminal interface. However, because the battery cell parameters of the battery and the battery model are difficult to be completely matched, particularly under the condition of low temperature and low battery, the battery display power obtained by the battery model is easy to jump, so that deviation occurs between the battery display power and the actual residual power of the battery. For example, in a low temperature, low power environment, the battery may exhibit a jump from 7% directly to 0%. This will result in the battery display power obtained by the power model being smaller than the actual remaining power, so that the battery display power finally displayed by the mobile terminal may be affected to jump. In the related art, the electric quantity model performs smoothing processing on the battery display electric quantity within a preset smoothing time, so that the battery display electric quantity finally displayed on the terminal interface is synchronous with the actual residual electric quantity of the battery. Based on the above-mentioned scenario, the inventor finds that, because the preset smoothing time is a fixed value, when the system load changes, if the smoothing processing is still performed according to the preset smoothing time, a problem of too fast smoothing may occur, so as to affect the use experience of the user.
In order to solve the above problems, the present disclosure provides a method, an apparatus, and a storage medium for displaying battery power, where when a cell voltage of a battery is less than or equal to a first target voltage threshold, a smoothing time of smoothing processing is determined according to a discharge current and a current residual capacity of the battery, that is, the smoothing time is dynamically adjusted according to a load change condition of a current terminal, so that a battery display power finally displayed on a terminal interface is synchronized with an actual residual power of the battery, so as to avoid a problem of excessively fast smoothing, and improve user experience.
The present disclosure is described below in connection with specific embodiments.
Fig. 1 is a flowchart illustrating a method of displaying battery power according to an exemplary embodiment, and the method includes the steps of:
in step S101, the cell voltage of the terminal battery is acquired.
The terminal may include, for example, but not limited to, a mobile phone, a tablet computer, a camera, an aircraft, or the like. The cell voltage of the battery may be obtained from a power model of the electricity meter of the terminal.
In step S102, in the case where the cell voltage is less than or equal to the first target voltage threshold, the discharge current and the current remaining capacity of the battery are obtained.
In consideration of the fact that the battery power of the battery drops rapidly when the terminal is in a low-temperature low-power environment, the battery display power obtained by the power meter is easy to jump, and accordingly deviation occurs between the battery display power displayed by the terminal and the actual residual power of the battery. Therefore, in the embodiment of the present disclosure, the discharge current and the current remaining capacity of the battery may be obtained in the case where the cell voltage is less than or equal to the first target voltage threshold. The discharge current may include a present discharge current of the battery or an average discharge current of the battery over a preset period of time. That is, under the condition that the voltage of the battery core is smaller than or equal to the first target voltage threshold, it can be determined that the electric quantity of the current battery is lower, the electric quantity may drop faster, and in order to prevent a larger deviation between the battery display electric quantity displayed by the terminal and the actual residual electric quantity of the battery, the discharging current and the current residual capacity can be obtained, so that the battery display electric quantity to be displayed is subjected to smoothing processing according to the discharging current and the current residual capacity.
In addition, in this embodiment, a sum of a preset shutdown cutoff voltage of the battery and a preset smoothing start voltage value may be used as the first target voltage threshold, where the preset shutdown cutoff voltage characterizes a cell voltage of the battery triggering the terminal shutdown control instruction. For example, the preset shutdown cutoff voltage may be any voltage value from 3.2V to 3.5V, such as 3.2V, 3.3A, 3.4V, or 3.5V, and if the preset shutdown cutoff voltage of the battery is 3.4V and the preset smoothing start voltage value is 50mV, the first target voltage threshold is 3.45V, that is, if the cell voltage is less than or equal to 3.45V, the discharge current and the current remaining capacity of the battery are obtained.
In step S103, a smoothing time is determined based on the current remaining capacity and the discharge current.
The smoothing time is the total time for smoothing the electric quantity of the battery to be displayed on the terminal interface. Since the discharging current of the battery can reflect the terminal load state, in this embodiment, the smoothing time required for smoothing the electric quantity displayed from the battery to the preset smooth electric quantity in the current load state of the terminal can be determined according to the current remaining capacity and the discharging current of the battery, so as to ensure that the problem of too fast smoothing does not occur.
In step S104, according to the smoothing time, smoothing the battery display power to be displayed on the terminal interface.
In this embodiment, the smoothing processing may be performed on the battery display power to be displayed on the terminal interface within the smoothing time range obtained in step S104. Therefore, before the battery display electric quantity is displayed on the terminal interface, the battery display electric quantity to be displayed is subjected to smoothing treatment, and errors between the battery display electric quantity and the actual residual electric quantity of the battery are reduced.
In step S105, the battery display power after the smoothing process is displayed.
In this step, the battery power displayed in step S104 after the smoothing process is displayed on the terminal interface, so as to display the current remaining power of the battery to the user, so that the user can charge the terminal in time when the remaining power is insufficient, thereby ensuring the normal operation of the terminal.
By adopting the method, under the condition that the cell voltage of the battery is smaller than or equal to the first target voltage threshold, the smoothing time of the smoothing treatment is determined according to the discharging current and the current residual capacity of the battery, namely, the smoothing time can be dynamically adjusted according to the load change condition of the current terminal, so that the displayed electric quantity of the battery finally displayed on the terminal interface is synchronous with the actual residual electric quantity of the battery, the problem of excessively fast smoothing is avoided, and the use experience of a user is improved.
Fig. 2 is another method for displaying battery power according to an exemplary embodiment, and as shown in fig. 2, determining the smoothing time according to the current remaining capacity and the discharge current in step S103 may include the steps of:
in step S1031, the product of the current remaining capacity and a preset time value is calculated.
For example, if the current remaining capacity is RM (unit: mA), the preset time value is 3600, and then the product of the current remaining capacity and the preset time value is rm×3600.
In step S1032, the ratio of the product to the discharge current is taken as a smoothing time.
For example, if the discharge current is I 1 The product is RM 3600, then the smoothing time is the productThe ratio of the product to the discharge current, i.e. the smoothing time
Figure BDA0003433434150000081
In order to further reduce the data processing load, the value obtained by rounding the ratio of the product obtained above to the discharge current may be used as the smoothing time.
For example, taking the parameters in the above example as an example, the smoothing time may be
Figure BDA0003433434150000082
Where int () denotes rounding the data in brackets.
Fig. 3 is another method for displaying battery power according to an exemplary embodiment, as shown in fig. 3, in step S104, according to the smoothing time, smoothing the battery power to be displayed on the terminal interface may include the following steps:
in step S1041, a unit smoothing time of the battery is determined according to the current remaining capacity and the smoothing time.
In the present embodiment, as shown in fig. 4, the unit smoothing time of the battery can be obtained by:
s1: and determining the current residual charge amount of the battery according to the current residual capacity.
The current residual charge quantity of the battery characterizes the ratio of the current residual capacity in the total capacity of the battery, and it can be understood that the current residual capacity and the current residual charge quantity of the battery are in one-to-one correspondence. For example, if the total capacity of the battery is 4000mA and the current remaining capacity of the battery is 80mA, the current remaining charge amount of the battery is 2%.
S2: the unit smoothing time is determined based on the current remaining charge amount and the smoothing time.
In one possible implementation, the ratio of the current amount of charge remaining to the smoothing time may be taken as a unit of smoothing time for the battery.
By way of example, if the current amount of remaining charge is RSOC,smoothing time
Figure BDA0003433434150000091
Then the unit smoothing time of the battery is the ratio of the current amount of remaining charge to the smoothing time, i.e. the unit smoothing time +.>
Figure 1
In another possible implementation, the ratio of the current amount of remaining charge and the smoothing time may be rounded as a unit smoothing time of the battery.
For example, if the current residual charge is RSOC, the time is smoothed
Figure BDA0003433434150000093
The unit smoothing time of the battery is the value obtained by rounding the ratio of the current residual charge amount to the smoothing time, i.e. the unit smoothing time
Figure BDA0003433434150000094
In step S1042, the battery display power is smoothed to a predetermined smoothed power according to the unit smoothing time.
In this embodiment, the power of 1% may be smoothed per unit smoothing time until the battery display power is smoothed to a preset smoothed power. For example, if the unit smoothing time is t and the preset smoothing power is 0%, 1% of the power can be smoothed every t seconds until the battery display power is smoothed to 0%.
In addition, under the conditions that the use environment of the terminal changes, the use degree of the terminal is increased by a user or other factors, the load of the terminal can change, so that the voltage drop speed of the battery cell becomes high, and the abnormal shutdown of the terminal can be caused. It should be noted that, if the cell voltage of the terminal reaches the cutoff voltage triggering the shutdown instruction, the battery display power is not smooth to 0% yet, which may cause the shutdown abnormality of the terminal. Thus, in an embodiment of the present disclosure, as shown in fig. 5, the method includes the steps of:
in step S106, if the battery cell voltage is less than or equal to the second target voltage threshold, if the smoothed battery display power is greater than or equal to the preset smoothed power, the preset smoothed power is used as the battery display power to be displayed.
Wherein the second target voltage threshold is less than the first target voltage threshold. In this embodiment, the difference between the preset shutdown cut-off voltage and the preset smoothing end voltage of the battery may be used as the second target voltage threshold, for example, if the preset shutdown cut-off voltage of the battery is 3.4V, the preset smoothing end voltage is 200mV, and the preset smoothing electric quantity is 0%, then the second target voltage threshold is 3.2V, that is, if the electric core voltage is less than or equal to 3.2V, the electric quantity displayed by the battery after the smoothing processing is greater than or equal to 0%, and the 0% is used as the electric quantity displayed by the battery to be displayed, that is, the electric quantity displayed by the battery to be displayed is set to 0%, so as to ensure the normal shutdown of the terminal.
By adopting the method, under the condition that the cell voltage of the battery is smaller than or equal to the first target voltage threshold, the smoothing time of the smoothing treatment is determined according to the discharging current and the current residual capacity of the battery, namely, the smoothing time can be dynamically adjusted according to the load change condition of the current terminal, so that the displayed electric quantity of the battery finally displayed on the terminal interface is synchronous with the actual residual electric quantity of the battery, the problem of excessively fast smoothing is avoided, and the use experience of a user is improved.
Fig. 6 is another method for displaying battery power according to an exemplary embodiment, as shown in fig. 6, the method including the steps of:
in step S601, the cell voltage of the terminal battery is acquired.
In step S602, it is determined whether the cell voltage is less than or equal to a first target voltage threshold.
If the voltage of the battery cell is less than or equal to the first target voltage threshold, step S603 is executed;
if the cell voltage is greater than the first target voltage threshold, step S601 is performed.
In step S603, the discharge current of the battery and the current remaining capacity are acquired.
In step S604, a product of the current remaining capacity and a preset time value is calculated, and a ratio of the product to the discharge current is used as a smoothing time.
In step S605, the current remaining charge amount of the battery is determined according to the current remaining capacity, and the ratio of the current remaining charge amount and the smoothing time is taken as the unit smoothing time of the battery.
In step S606, the amount of electricity is smoothed by 1% per unit smoothing time.
In step S607, it is determined whether the cell voltage is less than or equal to the second target voltage threshold and whether the battery display power to be displayed is greater than or equal to the preset smooth power.
If the voltage of the battery cell is less than or equal to the second target voltage threshold and the displayed electric quantity of the battery to be displayed is greater than or equal to the preset smooth electric quantity, executing step S608;
if the voltage of the battery cell is greater than the second target voltage threshold and/or the amount of power to be displayed by the battery is less than the preset smooth power, step S609 is performed.
In step S608, the preset smooth power is used as the power to be displayed for the battery.
In step S609, the battery display power after the smoothing process is displayed.
By adopting the method, under the condition that the cell voltage of the battery is smaller than or equal to the first target voltage threshold, the smoothing time of the smoothing treatment is determined according to the discharging current and the current residual capacity of the battery, namely, the smoothing time can be dynamically adjusted according to the load change condition of the current terminal, so that the displayed electric quantity of the battery finally displayed on the terminal interface is synchronous with the actual residual electric quantity of the battery, the problem of excessively fast smoothing is avoided, and the use experience of a user is improved.
Fig. 7 is a block diagram of a battery level display apparatus according to an exemplary embodiment, and as shown in fig. 7, the apparatus 700 includes:
a first acquisition module 701 configured to acquire a cell voltage of a terminal battery;
a second obtaining module 702 configured to obtain a discharge current and a current remaining capacity of the battery in a case where the cell voltage is less than or equal to a first target voltage threshold;
a first determining module 703 configured to determine a smoothing time according to the current remaining capacity and the discharge current, where the smoothing time is a total time for smoothing a battery display power to be displayed on the terminal interface;
the smoothing module 704 is configured to smooth the battery display electric quantity to be displayed on the terminal interface according to the smoothing time;
the display module 705 is configured to display the smoothed battery display power.
Optionally, as shown in fig. 8, the first determining module 703 includes:
a calculation sub-module 7031 configured to calculate a product of the current remaining capacity and a preset time value;
a ratio submodule 7032 configured to compare the product to the discharge current as the smoothing time.
Optionally, as shown in fig. 9, the smoothing module 704 includes:
a determination submodule 7041 configured to determine a unit smoothing time of the battery based on the current remaining capacity and the smoothing time;
a smoothing submodule 7042 configured to smooth the battery presentation charge to a preset smooth charge in the unit smoothing time.
Optionally, the determining submodule 7041 is configured to determine a current remaining charge amount of the battery according to the current remaining capacity; the unit smoothing time is determined based on the current remaining charge amount and the smoothing time.
Optionally, the determining submodule 7041 is configured to take the ratio of the current remaining charge amount and the smoothing time as a unit smoothing time of the battery.
Optionally, as shown in fig. 10, the apparatus 700 includes: a second determining module 706, configured to, if the battery cell voltage is less than or equal to the second target voltage threshold, take the preset smooth electric quantity as the battery display electric quantity to be displayed if the smoothed battery display electric quantity is greater than or equal to a preset smooth electric quantity; wherein the second target voltage threshold is less than the first target voltage threshold.
Optionally, the discharge current includes a present discharge current of the battery or an average discharge current of the battery over a preset period of time.
By adopting the device, under the condition that the cell voltage of the battery is smaller than or equal to the first target voltage threshold, the smoothing time of the smoothing treatment is determined according to the discharging current and the current residual capacity of the battery, namely, the smoothing time can be dynamically adjusted according to the load change condition of the current terminal, so that the battery display electric quantity finally displayed on the terminal interface is synchronous with the actual residual electric quantity of the battery, the problem of excessively fast smoothing is avoided, and the use experience of a user is improved.
The specific manner in which the various modules perform the operations in the apparatus of the above embodiments have been described in detail in connection with the embodiments of the method, and will not be described in detail herein.
The present disclosure provides a computer readable storage medium having stored thereon computer program instructions which, when executed by a processor, implement the steps of the method of exhibiting battery charge provided by the present disclosure.
Fig. 11 is a block diagram illustrating an apparatus 1100 for presentation of battery charge according to an example embodiment. For example, apparatus 1100 may be a mobile phone, computer, digital broadcast terminal, messaging device, game console, tablet device, medical device, exercise device, personal digital assistant, or the like.
Referring to fig. 11, apparatus 1100 may include one or more of the following components: a processing component 1102, a memory 1104, a power component 1106, a multimedia component 1108, an audio component 1110, an input/output (I/O) interface 1112, a sensor component 1114, and a communication component 1116.
The processing component 1102 generally controls overall operation of the apparatus 1100, such as operations associated with display, telephone calls, data communications, camera operations, and recording operations. The processing component 1102 may include one or more processors 1120 to execute instructions to perform all or part of the steps of the battery level presentation method described above. Further, the processing component 1102 can include one or more modules that facilitate interactions between the processing component 1102 and other components. For example, the processing component 1102 may include a multimedia module to facilitate interaction between the multimedia component 1108 and the processing component 1102.
Memory 1104 is configured to store various types of data to support operations at apparatus 1100. Examples of such data include instructions for any application or method operating on the device 1100, contact data, phonebook data, messages, pictures, videos, and the like. The memory 1104 may be implemented by any type or combination of volatile or nonvolatile memory devices 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 or optical disk.
The power component 1106 provides power to the various components of the device 1100. The power components 1106 may include a power management system, one or more power sources, and other components associated with generating, managing, and distributing power for the device 1100.
Multimedia component 1108 includes a screen between the device 1100 and the user that provides an output interface. 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 a user. The touch panel includes one or more touch sensors to sense touches, swipes, and gestures on the touch panel. The touch sensor may sense not only the boundary of a touch or slide action, but also the duration and pressure associated with the touch or slide operation. In some embodiments, multimedia component 1108 includes a front camera and/or a rear camera. The front camera and/or the rear camera may receive external multimedia data when the apparatus 1100 is in an operational mode, such as a photographing mode or a video mode. Each front camera and rear camera may be a fixed optical lens system or have focal length and optical zoom capabilities.
The audio component 1110 is configured to output and/or input an audio signal. For example, the audio component 1110 includes a Microphone (MIC) configured to receive external audio signals when the device 1100 is in an operational mode, such as a call mode, a recording mode, and a voice recognition mode. The received audio signals may be further stored in the memory 1104 or transmitted via the communication component 1116. In some embodiments, the audio component 1110 includes a speaker for outputting audio signals.
The I/O interface 1112 provides an interface between the processing component 1102 and peripheral interface modules, which may be keyboards, click wheels, buttons, etc. These buttons may include, but are not limited to: homepage button, volume button, start button, and lock button.
The sensor assembly 1114 includes one or more sensors for providing status assessment of various aspects of the apparatus 1100. For example, the sensor assembly 1114 may detect the on/off state of the device 1100, the relative positioning of the components, such as the display and keypad of the device 1100, the sensor assembly 1114 may detect a change in position of the device 1100 or a component of the device 1100, the presence or absence of user contact with the device 1100, the orientation or acceleration/deceleration of the device 1100, and a change in temperature of the device 1100. The sensor assembly 1114 may include a proximity sensor configured to detect the presence of nearby objects in the absence of any physical contact. The sensor assembly 1114 may include a light sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, the sensor assembly 1114 may include an acceleration sensor, a gyroscopic sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.
The communication component 1116 is configured to facilitate communication between the apparatus 1100 and other devices in a wired or wireless manner. The device 1100 may access a wireless network based on a communication standard, such as WiFi,4G, or 5G, or a combination thereof. In one exemplary embodiment, the communication component 1116 receives a broadcast signal or broadcast-related information from an external broadcast management system via a broadcast channel. In one exemplary embodiment, the communication component 1116 includes a Near Field Communication (NFC) module to facilitate short range communication. For example, the NFC module may be implemented based on Radio Frequency Identification (RFID) technology, infrared data association (IrDA) technology, ultra Wideband (UWB) technology, bluetooth (BT) technology, and other technologies.
In an exemplary embodiment, the apparatus 1100 may 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 elements for performing the above-described battery level presentation method.
In an exemplary embodiment, a non-transitory computer readable storage medium is provided, such as a memory 1104, that includes instructions executable by a processor 1120 of the device 1100 to perform the battery level presentation method described above. For example, the non-transitory computer readable storage medium may be ROM, random Access Memory (RAM), CD-ROM, magnetic tape, floppy disk, optical data storage device, etc.
In another exemplary embodiment, a computer program product is provided, comprising a computer program executable by a programmable apparatus, the computer program having code portions for performing the above-described battery level presentation method when executed by the programmable apparatus.
Other embodiments of the disclosure will be apparent to those skilled in the art from consideration of the specification and practice of the disclosure. This application is intended to cover any adaptations, uses, or adaptations of the disclosure following, in general, the principles of the disclosure and including such departures from the present disclosure as come within known or customary practice within the art to which the disclosure pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the disclosure being indicated by the following claims.
It is to be understood that the present disclosure is not limited to the precise arrangements and instrumentalities shown in the drawings, and that various modifications and changes may be effected without departing from the scope thereof. The scope of the present disclosure is limited only by the appended claims.

Claims (10)

1. A method for displaying battery power, the method comprising:
acquiring the cell voltage of a terminal battery;
acquiring the discharge current and the current residual capacity of the battery under the condition that the battery cell voltage is smaller than or equal to a first target voltage threshold value;
determining smoothing time according to the current residual capacity and the discharge current, wherein the smoothing time is total time for smoothing the battery display electric quantity to be displayed on the terminal interface;
according to the smoothing time, smoothing the battery display electric quantity to be displayed on the terminal interface;
and displaying the battery display electric quantity after the smoothing treatment.
2. The method of claim 1, wherein said determining a smoothing time based on said present residual capacity and said discharge current comprises:
calculating the product of the current residual capacity and a preset time value;
and taking the ratio of the product to the discharge current as the smoothing time.
3. The method of claim 1, wherein smoothing the battery display power to be displayed on the terminal interface according to the smoothing time includes:
determining a unit smoothing time of the battery according to the current residual capacity and the smoothing time;
and smoothing the battery display electric quantity to a preset smooth electric quantity according to the unit smooth time.
4. The method of claim 3, wherein said determining a unit smoothing time of said battery based on said current remaining capacity and said smoothing time comprises:
determining the current residual charge amount of the battery according to the current residual capacity;
and determining the unit smoothing time according to the current residual charge quantity and the smoothing time.
5. The method of claim 4, wherein said determining said unit smoothing time based on said current amount of remaining charge and said smoothing time comprises:
and taking the ratio of the current residual charge amount to the smoothing time as the unit smoothing time of the battery.
6. The method according to claim 1, characterized in that the method comprises:
if the battery cell voltage is smaller than or equal to a second target voltage threshold, if the battery display electric quantity after the smoothing processing is larger than or equal to a preset smooth electric quantity, taking the preset smooth electric quantity as the battery display electric quantity to be displayed; wherein the second target voltage threshold is less than the first target voltage threshold.
7. The method according to any one of claims 1 to 6, wherein the discharge current comprises a present discharge current of the battery or an average discharge current of the battery over a preset period of time.
8. A display device for battery power, comprising:
the first acquisition module is configured to acquire the cell voltage of the terminal battery;
the second acquisition module is configured to acquire the discharge current and the current residual capacity of the battery under the condition that the battery cell voltage is smaller than or equal to a first target voltage threshold value;
the first determining module is configured to determine a smoothing time according to the current residual capacity and the discharge current, wherein the smoothing time is the total time for carrying out smoothing processing on the battery display electric quantity to be displayed on the terminal interface;
the smoothing module is configured to carry out smoothing treatment on the battery display electric quantity to be displayed on the terminal interface according to the smoothing time;
and the display module is configured to display the battery display electric quantity after the smoothing treatment.
9. A display device for battery power, comprising:
a processor;
a memory for storing processor-executable instructions;
wherein the processor is configured to implement the steps of the method of any one of claims 1 to 7.
10. A computer readable storage medium having stored thereon computer program instructions, which when executed by a processor, implement the steps of the method of any of claims 1 to 7.
CN202111602565.3A 2021-12-24 2021-12-24 Battery electric quantity display method, device and storage medium Pending CN116338475A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111602565.3A CN116338475A (en) 2021-12-24 2021-12-24 Battery electric quantity display method, device and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111602565.3A CN116338475A (en) 2021-12-24 2021-12-24 Battery electric quantity display method, device and storage medium

Publications (1)

Publication Number Publication Date
CN116338475A true CN116338475A (en) 2023-06-27

Family

ID=86875124

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111602565.3A Pending CN116338475A (en) 2021-12-24 2021-12-24 Battery electric quantity display method, device and storage medium

Country Status (1)

Country Link
CN (1) CN116338475A (en)

Similar Documents

Publication Publication Date Title
CN108121631B (en) Screen abnormal state reminding method and device
CN113725954B (en) Charging method, device, equipment and storage medium
CN108539804B (en) Battery charging control method, battery charging control device and electronic equipment
CN108600503B (en) Voice call control method and device
CN108874107B (en) Control method and device for state of charge
CN113675902A (en) Battery charging method, battery charging device and storage medium
CN107733021B (en) Control method and device of electronic equipment
CN108429312B (en) Charging control method and device
CN114977348B (en) Method, device and storage medium for determining battery charging time
CN116338475A (en) Battery electric quantity display method, device and storage medium
CN114428563B (en) Method and device for determining display frame rate and touch sampling rate and storage medium
CN115347636A (en) Method and device for determining charging time and storage medium
CN113572208B (en) Battery charging method and device
CN117348710A (en) Equipment control method, device, medium, equipment and chip
CN116859248A (en) Battery cycle life prediction method, device and storage medium
CN113991779B (en) Charging method, device, electronic device and storage medium
CN114069744A (en) Intelligent charging method and device and storage medium
CN106776204B (en) Method and device for determining power consumption application
CN108650322B (en) Battery data processing method and device
CN115224750B (en) Charging duration determination method, device, terminal and storage medium
CN116031960A (en) Method, device, equipment, system and storage medium for determining display electric quantity
CN113138036B (en) Temperature detection method and device and electronic equipment
CN114156957B (en) Battery charging method, device and storage medium
CN119596146A (en) Display method and device for available time length of battery, electronic equipment and storage medium
CN116365616A (en) Shutdown voltage adjustment method, device, equipment and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination