Battery power display method and device, and storage medium

By acquiring the battery cell voltage and discharge current and dynamically adjusting the smoothing time, the problem of the battery power model not matching the actual power level at low temperatures and low power levels is solved, improving the accuracy of battery power display and user experience.

CN116338475BActive Publication Date: 2026-06-12BEIJING XIAOMI MOBILE SOFTWARE CO LTD

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
BEIJING XIAOMI MOBILE SOFTWARE CO LTD
Filing Date
2021-12-24
Publication Date
2026-06-12

AI Technical Summary

Technical Problem

In existing technologies, the battery power model is difficult to match with the actual remaining power under low temperature and low power conditions, resulting in jumps in the displayed battery power and affecting the user experience.

Method used

By acquiring the battery cell voltage and discharge current, the smoothing time is dynamically adjusted. The smoothing time is determined based on the battery's current remaining capacity and discharge current to smooth the battery's displayed power level.

🎯Benefits of technology

It synchronizes the displayed battery level with the actual remaining battery level, avoiding the problem of overly rapid smoothing and improving the user experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116338475B_ABST
    Figure CN116338475B_ABST
Patent Text Reader

Abstract

The present disclosure relates to a battery power display method and device and storage medium, and relates to the technical field of battery power, and comprises the following steps: acquiring a cell voltage of a terminal battery; in the case that the cell voltage is less than or equal to a first target voltage threshold, acquiring a discharge current and a current remaining capacity of the battery; determining a smoothing time according to the current remaining capacity and the discharge current; performing smoothing processing on battery display power to be displayed on a terminal interface according to the smoothing time; and displaying the battery display power after the smoothing processing. In this way, in the case that the cell voltage of the battery is less than or equal to the first target voltage threshold, the smoothing time of the smoothing processing is determined according to the discharge current and the current remaining capacity of the battery, that is, the smoothing time can be dynamically adjusted according to the load change of the current terminal, so that the battery display power finally displayed on the terminal interface is synchronized with the actual remaining power of the battery.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This disclosure relates to the field of battery power technology, and in particular to a method, apparatus and storage medium for displaying battery power. Background Technology

[0002] Currently, the remaining battery power information displayed on mobile terminals is mainly provided by the battery power model of the fuel gauge. However, since it is difficult for the battery power model to be completely matched with the battery cell parameters, especially in low temperature and low battery conditions, the battery power displayed by the battery power model is prone to jumps, thus deviating from the actual remaining battery power.

[0003] In related technologies, the battery level model smooths the displayed battery level within a preset smoothing time, ensuring that the battery level displayed on the terminal interface is synchronized with the actual remaining battery level. However, since the preset smoothing time is a fixed value, when the system load changes, smoothing according to the preset smoothing time may result in smoothing being too fast, thus affecting the user experience. Summary of the Invention

[0004] To overcome the problems existing in related technologies, this disclosure provides a method, apparatus and storage medium for displaying battery power.

[0005] According to a first aspect of the present disclosure, a method for displaying battery power is provided. The method includes: acquiring the cell voltage of a terminal battery; acquiring the discharge current and current remaining capacity of the battery when the cell voltage is less than or equal to a first target voltage threshold; determining a smoothing time based on the current remaining capacity and the discharge current, the smoothing time being the total time for smoothing the battery power displayed on the terminal interface; smoothing the battery power displayed on the terminal interface based on the smoothing time; and displaying the smoothed battery power.

[0006] Optionally, determining the smoothing time based on the current remaining capacity and the discharge current includes: calculating the product of the current remaining capacity and a preset time value; and using the ratio of the product to the discharge current as the smoothing time.

[0007] Optionally, smoothing the battery display level to be shown on the terminal interface according to the smoothing time includes: determining the unit smoothing time of the battery based on the current remaining capacity and the smoothing time; and smoothing the battery display level to a preset smoothed level according to the unit smoothing time.

[0008] Optionally, determining the unit smoothing time of the battery based on the current remaining capacity and the smoothing time includes: determining the current remaining charge of the battery based on the current remaining capacity; and determining the unit smoothing time based on the current remaining charge and the smoothing time.

[0009] Optionally, determining the unit smoothing time based on the current remaining charge and the smoothing time includes: using the ratio of the current remaining charge to the smoothing time as the unit smoothing time of the battery.

[0010] Optionally, the method includes: if the cell voltage is less than or equal to a second target voltage threshold, and the displayed battery capacity after smoothing is greater than or equal to a preset smoothed capacity, then the preset smoothed capacity is used as the displayed battery capacity to be displayed; wherein the second target voltage threshold is less than the first target voltage threshold.

[0011] Optionally, the discharge current includes the current discharge current of the battery or the average discharge current of the battery over a preset time period.

[0012] According to a second aspect of the present disclosure, a battery power display device is provided, comprising: a first acquisition module configured to acquire the cell voltage of a terminal battery; a second acquisition module configured to acquire the discharge current and current remaining capacity of the battery when the cell voltage is less than or equal to a first target voltage threshold; a first determination module configured to determine a smoothing time based on the current remaining capacity and the discharge current, the smoothing time being the total time for smoothing the battery power displayed on the terminal interface; a smoothing module configured to smooth the battery power displayed on the terminal interface based on the smoothing time; and a display module configured to display the smoothed battery power.

[0013] Optionally, the first determining module includes: a calculation submodule configured to calculate the product of the current remaining capacity and a preset time value; and a ratio submodule configured to use the ratio of the product to the discharge current as the smoothing time.

[0014] Optionally, the smoothing module includes: a determining submodule configured to determine the unit smoothing time of the battery based on the current remaining capacity and the smoothing time; and a smoothing submodule configured to smooth the displayed battery level to a preset smoothed level according to the unit smoothing time.

[0015] Optionally, the determining submodule is configured to determine the current remaining charge of the battery based on the current remaining capacity; and to determine the unit smoothing time based on the current remaining charge and the smoothing time.

[0016] Optionally, the determining submodule is configured to use the ratio of the current remaining charge to the smoothing time as the unit smoothing time of the battery.

[0017] Optionally, the device includes: a second determining module, configured to, when the cell voltage is less than or equal to a second target voltage threshold, if the smoothed battery display capacity is greater than or equal to a preset smoothed capacity, use the preset smoothed capacity as the battery display capacity to be displayed; wherein the second target voltage threshold is less than the first target voltage threshold.

[0018] Optionally, the discharge current includes the current discharge current of the battery or the average discharge current of the battery over a preset time period.

[0019] According to a third aspect of the present disclosure, a battery power display device is provided, comprising: a processor; a memory for storing processor-executable instructions; wherein the processor is configured to implement the steps of the battery power display method provided in the first aspect of the present disclosure.

[0020] According to a fourth aspect of the present disclosure, a computer-readable storage medium is provided that stores computer program instructions thereon, which, when executed by a processor, implement the steps of the battery power display method provided in the first aspect of the present disclosure.

[0021] The technical solutions provided by the embodiments of this disclosure may include the following beneficial effects: obtaining the cell voltage of the terminal battery; when the cell voltage is less than or equal to a first target voltage threshold, obtaining the battery discharge current and current remaining capacity; determining a smoothing time based on the current remaining capacity and discharge current, the smoothing time being the total time for smoothing the battery power displayed on the terminal interface; smoothing the battery power displayed on the terminal interface based on the smoothing time; and displaying the smoothed battery power. Through the above method, when the battery cell voltage is less than or equal to the first target voltage threshold, the smoothing time is determined based on the battery discharge current and current remaining capacity. This means that the smoothing time can be dynamically adjusted according to the current load changes of the terminal, thereby ensuring that the battery power displayed on the terminal interface is synchronized with the actual remaining battery power, avoiding excessively rapid smoothing and improving the user experience.

[0022] It should be understood that the above general description and the following detailed description are exemplary and explanatory only, and are not intended to limit this disclosure. Attached Figure Description

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

[0024] Figure 1 This is a flowchart illustrating a method for displaying battery power according to an exemplary embodiment;

[0025] Figure 2 This is a flowchart illustrating another method for displaying battery power according to an exemplary embodiment;

[0026] Figure 3 This is a flowchart illustrating another method for displaying battery power according to an exemplary embodiment;

[0027] Figure 4 This is a flowchart illustrating another method for displaying battery power according to an exemplary embodiment;

[0028] Figure 5 This is a flowchart illustrating another method for displaying battery power according to an exemplary embodiment;

[0029] Figure 6 This is a flowchart illustrating another method for displaying battery power according to an exemplary embodiment;

[0030] Figure 7 This is a block diagram illustrating a battery power display device according to an exemplary embodiment;

[0031] Figure 8 This is a block diagram illustrating another battery power display device according to an exemplary embodiment;

[0032] Figure 9 This is a block diagram illustrating another battery power display device according to an exemplary embodiment;

[0033] Figure 10 This is a block diagram illustrating another battery power display device according to an exemplary embodiment;

[0034] Figure 11 This is a block diagram illustrating a battery power display device according to an exemplary embodiment. Detailed Implementation

[0035] Exemplary embodiments will now be described in detail, examples of which are illustrated in the accompanying drawings. When the following description relates to the drawings, unless otherwise indicated, the same numerals in different drawings denote the same or similar elements. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with this disclosure. Rather, they are merely examples of apparatuses and methods consistent with some aspects of this disclosure as detailed in the appended claims.

[0036] Before introducing the battery power display method, apparatus, and storage medium provided in this disclosure, the application scenarios involved in the various embodiments of this disclosure are first introduced. This disclosure applies to scenarios involving battery discharge, where battery power is an important indicator in mobile terminals. Users can determine whether to charge based on the remaining power information displayed on the terminal. The remaining power information displayed by the mobile terminal is mainly provided by the power model of the fuel gauge. The power module calculates the displayed battery power and displays it on the mobile terminal interface. However, since the power model and the battery cell parameters are difficult to perfectly match, especially under low temperature and low power conditions, the displayed battery power obtained by the power model is prone to jumps, resulting in a deviation from the actual remaining battery power. For example, in a low temperature and low power environment, the displayed battery power may jump directly from 7% to 0%. This will cause the displayed battery power obtained by the power model to be smaller than the actual remaining power, which may affect the final displayed battery power on the mobile terminal. In related technologies, the power model smooths the displayed battery power within a preset smoothing time, so that the battery power finally displayed on the terminal interface is synchronized with the actual remaining battery power. Based on the above scenario, the inventors discovered that since the preset smoothing time is a fixed value, if the smoothing process is still performed according to the preset smoothing time when the system load changes, it may cause the smoothing to be too fast, which in turn affects the user experience.

[0037] To address the aforementioned issues, this disclosure provides a method, apparatus, and storage medium for displaying battery power. When the battery cell voltage is less than or equal to a first target voltage threshold, the smoothing time for smoothing is determined based on the battery's discharge current and current remaining capacity. In other words, the smoothing time can be dynamically adjusted according to the current load changes of the terminal, thereby ensuring that the battery power displayed on the terminal interface is synchronized with the actual remaining battery power, thus avoiding the problem of smoothing being too fast and improving the user experience.

[0038] The present disclosure will now be described in conjunction with specific embodiments.

[0039] Figure 1 This is a flowchart illustrating a method for displaying battery power according to an exemplary embodiment, such as... Figure 1 As shown, the method includes the following steps:

[0040] In step S101, the cell voltage of the terminal battery is obtained.

[0041] The terminal may include, but is not limited to, mobile phones, tablets, cameras, or aircraft. The battery cell voltage can be obtained from the terminal's fuel gauge voltage model.

[0042] In step S102, if the cell voltage is less than or equal to the first target voltage threshold, the discharge current and current remaining capacity of the battery are obtained.

[0043] Considering that the battery charge decreases rapidly in low-temperature and low-power environments, the battery charge displayed by the fuel gauge is prone to fluctuations, causing a deviation between the displayed battery charge and the actual remaining battery charge. Therefore, in this embodiment, when the cell voltage is less than or equal to a first target voltage threshold, the battery discharge current and current remaining capacity can be obtained. The discharge current can include the current discharge current of the battery or the average discharge current of the battery over a preset time period. In other words, when the cell voltage is less than or equal to the first target voltage threshold, it can be determined that the current battery charge is low and may decrease rapidly. To prevent a large deviation between the displayed battery charge and the actual remaining battery charge, the discharge current and current remaining capacity can be obtained to smooth the displayed battery charge based on these parameters.

[0044] In this embodiment, the sum of the battery's preset shutdown cutoff voltage and preset smoothing start voltage can be used as the first target voltage threshold. The preset shutdown cutoff voltage represents the cell voltage at which the battery triggers the terminal shutdown control command. For example, the preset shutdown cutoff voltage can be any voltage value between 3.2V and 3.5V, such as 3.2V, 3.3V, 3.4V, or 3.5V. If the battery's preset shutdown cutoff voltage is 3.4V and the preset smoothing start voltage is 50mV, then the first target voltage threshold is 3.45V. That is, when the cell voltage is less than or equal to 3.45V, the battery's discharge current and current remaining capacity are obtained.

[0045] In step S103, the smoothing time is determined based on the current remaining capacity and the discharge current.

[0046] The smoothing time refers to the total time required to smooth the battery level displayed on the terminal interface. Since the battery discharge current reflects the terminal's load status, in this embodiment, the smoothing time required to smooth the battery level from the displayed level to the preset smoothed level under the terminal's current load status can be determined based on the battery's current remaining capacity and discharge current, thereby ensuring that the smoothing is not too fast.

[0047] In step S104, the battery level displayed on the terminal interface is smoothed according to the smoothing time.

[0048] In this embodiment, the battery level displayed on the terminal interface can be smoothed within the smoothing time range obtained in step S104. This allows for smoothing the battery level before it is displayed on the terminal interface, reducing the error between the displayed battery level and the actual remaining battery power.

[0049] In step S105, the battery level after smoothing is displayed.

[0050] In this step, the battery level displayed after smoothing in step S104 is shown on the terminal interface to show the user the current remaining battery level, so that the user can charge the terminal in time when the remaining battery level is low to ensure the normal operation of the terminal.

[0051] Using the above method, when the battery cell voltage is less than or equal to the first target voltage threshold, the smoothing time of the smoothing process is determined based on the battery discharge current and the current remaining capacity. In other words, the smoothing time can be dynamically adjusted according to the current load changes of the terminal, so that the battery power displayed on the terminal interface is synchronized with the actual remaining battery power, thereby avoiding the problem of smoothing too quickly and improving the user experience.

[0052] Figure 2 This is another method for displaying battery power according to an exemplary embodiment, such as... Figure 2 As shown, determining the smoothing time in step S103 based on the current remaining capacity and the discharge current may include the following steps:

[0053] In step S1031, the product of the current remaining capacity and the preset time value is calculated.

[0054] For example, if the current remaining capacity is RM (unit: mA) and the preset time value is 3600, then the product of the current remaining capacity and the preset time value is RM*3600.

[0055] In step S1032, the ratio of the product to the discharge current is used as the smoothing time.

[0056] For example, if the discharge current is I1 and the product is RM*3600, then the smoothing time is the ratio of the product to the discharge current, i.e., the smoothing time.

[0057] In addition, to further reduce the data processing burden, the ratio of the product obtained above to the discharge current can be rounded down and used as the smoothing time.

[0058] For example, taking the parameters in the example above, the smoothing time could be... Here, int() indicates that the data in parentheses is rounded down.

[0059] Figure 3 This is another method for displaying battery power according to an exemplary embodiment, such as... Figure 3 As shown, step S104, which smooths the battery level display on the terminal interface based on the smoothing time, may include the following steps:

[0060] In step S1041, the unit smoothing time of the battery is determined based on the current remaining capacity and the smoothing time.

[0061] In this embodiment, as Figure 4 As shown, the unit smoothing time of the battery can be obtained through the following steps:

[0062] S1: Determine the current remaining charge of the battery based on the current remaining capacity.

[0063] The current remaining charge of the battery represents the percentage of the current remaining capacity in the total battery capacity. It can be understood that there is a one-to-one correspondence between the current remaining capacity and the current remaining charge. For example, if the total battery capacity is 4000mA and the current remaining capacity is 80mA, then the current remaining charge is 2%.

[0064] S2: Determine the unit smoothing time based on the current remaining charge and the smoothing time.

[0065] In one possible implementation, the ratio of the current remaining charge to the smoothing time can be used as the unit smoothing time of the battery.

[0066] For example, if the current remaining charge is RSOC, the smoothing time is... Therefore, the unit smoothing time of the battery is the ratio of the current remaining charge to that smoothing time, i.e., the unit smoothing time.

[0067] In another possible implementation, the ratio of the current remaining charge to the smoothing time can be rounded down and used as the unit smoothing time for the battery.

[0068] For example, if the current remaining charge is RSOC, the smoothing time is... Therefore, the unit smoothing time of the battery is the integer value of the ratio of the current remaining charge to that smoothing time, i.e., the unit smoothing time.

[0069] In step S1042, the battery's displayed charge level is smoothed to a preset smoothed charge level according to the unit smoothing time.

[0070] In this embodiment, the battery level can be smoothed by 1% per unit smoothing time until the displayed battery level is smoothed to a preset smoothed level. For example, if the unit smoothing time is t and the preset smoothed level is 0%, then the battery level can be smoothed by 1% every t seconds until the displayed battery level is smoothed to 0%.

[0071] Furthermore, considering that changes in the terminal's usage environment, increased user usage, or other factors may alter the terminal's load, leading to a faster drop in battery cell voltage and potentially causing abnormal shutdown, it's important to note that if the battery cell voltage reaches the cutoff voltage triggering the shutdown command before the battery level has smoothly reached 0%, an abnormal shutdown may occur. Therefore, in this embodiment, as... Figure 5 As shown, the method includes the following steps:

[0072] In step S106, if the cell voltage is less than or equal to the second target voltage threshold, and the displayed battery capacity after smoothing is greater than or equal to the preset smoothed capacity, the preset smoothed capacity is used as the displayed battery capacity to be displayed.

[0073] The second target voltage threshold is less than the first target voltage threshold. In this embodiment, the difference between the battery's preset shutdown cutoff voltage and preset smoothing end voltage can be used as the second target voltage threshold. For example, if the battery's preset shutdown cutoff voltage is 3.4V, the preset smoothing end voltage is 200mV, and the preset smoothed charge is 0%, then the second target voltage threshold is 3.2V. That is, if the battery cell voltage is less than or equal to 3.2V, and the battery charge displayed after smoothing is greater than or equal to 0%, then 0% is used as the battery charge to be displayed, i.e., the battery charge to be displayed is set to 0%, to ensure the normal shutdown of the terminal.

[0074] Using the above method, when the battery cell voltage is less than or equal to the first target voltage threshold, the smoothing time of the smoothing process is determined based on the battery discharge current and the current remaining capacity. In other words, the smoothing time can be dynamically adjusted according to the current load changes of the terminal, so that the battery power displayed on the terminal interface is synchronized with the actual remaining battery power, thereby avoiding the problem of smoothing too quickly and improving the user experience.

[0075] Figure 6 This is another method for displaying battery power according to an exemplary embodiment, such as... Figure 6 As shown, the method includes the following steps:

[0076] In step S601, the cell voltage of the terminal battery is obtained.

[0077] In step S602, it is determined whether the cell voltage is less than or equal to the first target voltage threshold.

[0078] If the cell voltage is less than or equal to the first target voltage threshold, proceed to step S603;

[0079] If the cell voltage is greater than the first target voltage threshold, proceed to step S601.

[0080] In step S603, the discharge current and current remaining capacity of the battery are obtained.

[0081] In step S604, the product of the current remaining capacity and the preset time value is calculated, and the ratio of the product to the discharge current is used as the smoothing time.

[0082] In step S605, the current remaining charge of the battery is determined based on the current remaining capacity, and the ratio of the current remaining charge to the smoothing time is used as the unit smoothing time of the battery.

[0083] In step S606, 1% of the power is smoothed per unit smoothing time.

[0084] 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 capacity is greater than or equal to the preset smoothed capacity.

[0085] If the cell voltage is less than or equal to the second target voltage threshold and the battery capacity to be displayed is greater than or equal to the preset smoothed capacity, proceed to step S608.

[0086] If the cell voltage is greater than the second target voltage threshold and / or the battery capacity to be displayed is less than the preset smoothed capacity, proceed to step S609.

[0087] In step S608, the preset smoothed power level is used as the battery power level to be displayed.

[0088] In step S609, the battery power level after the smoothing process is displayed.

[0089] Using the above method, when the battery cell voltage is less than or equal to the first target voltage threshold, the smoothing time of the smoothing process is determined based on the battery discharge current and the current remaining capacity. In other words, the smoothing time can be dynamically adjusted according to the current load changes of the terminal, so that the battery power displayed on the terminal interface is synchronized with the actual remaining battery power, thereby avoiding the problem of smoothing too quickly and improving the user experience.

[0090] Figure 7 This is a block diagram illustrating a battery power display device according to an exemplary embodiment, such as... Figure 7 As shown, the device 700 includes:

[0091] The first acquisition module 701 is configured to acquire the cell voltage of the terminal battery;

[0092] The second acquisition module 702 is configured to acquire the discharge current and current remaining capacity of the battery when the cell voltage is less than or equal to the first target voltage threshold.

[0093] The first determining module 703 is configured to determine a smoothing time based on the current remaining capacity and the discharge current, wherein the smoothing time is the total time for smoothing the battery display capacity to be displayed on the terminal interface.

[0094] The smoothing module 704 is configured to smooth the battery display level to be shown on the terminal interface according to the smoothing time.

[0095] Display module 705 is configured to display the battery charge level after the smoothing process.

[0096] Optionally, such as Figure 8 As shown, the first determining module 703 includes:

[0097] The calculation submodule 7031 is configured to calculate the product of the current remaining capacity and the preset time value;

[0098] The ratio submodule 7032 is configured to use the ratio of the product to the discharge current as the smoothing time.

[0099] Optionally, such as Figure 9 As shown, the smoothing module 704 includes:

[0100] The determination submodule 7041 is configured to determine the unit smoothing time of the battery based on the current remaining capacity and the smoothing time;

[0101] The smoothing submodule 7042 is configured to smooth the battery display charge to a preset smooth charge over the unit smoothing time.

[0102] Optionally, the determining submodule 7041 is configured to determine the current remaining charge of the battery based on the current remaining capacity; and to determine the unit smoothing time based on the current remaining charge and the smoothing time.

[0103] Optionally, the determining submodule 7041 is configured to use the ratio of the current remaining charge to the smoothing time as the unit smoothing time of the battery.

[0104] Optionally, such as Figure 10 As shown, the device 700 includes: a second determining module 706, configured to, when the cell voltage is less than or equal to a second target voltage threshold, if the battery display capacity after smoothing is greater than or equal to a preset smoothed capacity, use the preset smoothed capacity as the battery display capacity to be displayed; wherein the second target voltage threshold is less than the first target voltage threshold.

[0105] Optionally, the discharge current may include the current discharge current of the battery or the average discharge current of the battery over a preset time period.

[0106] Using the above device, when the battery cell voltage is less than or equal to the first target voltage threshold, the smoothing time of the smoothing process is determined according to the battery discharge current and the current remaining capacity. In other words, the smoothing time can be dynamically adjusted according to the current load change of the terminal, so that the battery power displayed on the terminal interface is synchronized with the actual remaining battery power, so as to avoid the problem of smoothing too fast and improve the user experience.

[0107] Regarding the apparatus in the above embodiments, the specific manner in which each module performs its operation has been described in detail in the embodiments related to the method, and will not be elaborated upon here.

[0108] This disclosure provides a computer-readable storage medium having stored thereon computer program instructions that, when executed by a processor, implement the steps of the battery power display method provided in this disclosure.

[0109] Figure 11This is a block diagram illustrating a device 1100 for displaying battery power according to an exemplary embodiment. For example, device 1100 may be a mobile phone, computer, digital broadcasting terminal, messaging device, game console, tablet device, medical device, fitness equipment, personal digital assistant, etc.

[0110] Reference Figure 11 The device 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.

[0111] Processing component 1102 typically controls the overall operation of device 1100, such as operations associated with display, telephone calls, data communication, camera operation, and recording. Processing component 1102 may include one or more processors 1120 to execute instructions to complete all or part of the steps of the battery power display method described above. Furthermore, processing component 1102 may include one or more modules to facilitate interaction between processing component 1102 and other components. For example, processing component 1102 may include a multimedia module to facilitate interaction between multimedia component 1108 and processing component 1102.

[0112] Memory 1104 is configured to store various types of data to support the operation of device 1100. Examples of such data include instructions for any application or method operating on device 1100, contact data, phonebook data, messages, pictures, videos, etc. Memory 1104 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 storage, flash memory, magnetic disk, or optical disk.

[0113] The power component 1106 provides power to the various components of the device 1100. The power component 1106 may include a power management system, one or more power sources, and other components associated with generating, managing, and distributing power to the device 1100.

[0114] Multimedia component 1108 includes a screen that provides an output interface between the device 1100 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 touchscreen to receive input signals from the user. The touch panel includes one or more touch sensors to sense touches, swipes, and gestures on the touch panel. The touch sensors may sense not only the boundaries of the touch or swipe action but also the duration and pressure associated with the touch or swipe operation. In some embodiments, multimedia component 1108 includes a front-facing camera and / or a rear-facing camera. When the device 1100 is in an operating mode, such as a shooting mode or a video mode, the front-facing camera and / or the rear-facing camera may receive external multimedia data. Each front-facing camera and rear-facing camera may be a fixed optical lens system or have focal length and optical zoom capabilities.

[0115] Audio component 1110 is configured to output and / or input audio signals. For example, audio component 1110 includes a microphone (MIC) configured to receive external audio signals when device 1100 is in an operating mode, such as call mode, recording mode, and voice recognition mode. The received audio signals may be further stored in memory 1104 or transmitted via communication component 1116. In some embodiments, audio component 1110 includes a speaker for outputting audio signals.

[0116] I / O interface 1112 provides an interface between processing component 1102 and peripheral interface modules, such as keyboards, click wheels, buttons, etc. These buttons may include, but are not limited to, home buttons, volume buttons, power buttons, and lock buttons.

[0117] Sensor assembly 1114 includes one or more sensors for providing status assessments of various aspects of device 1100. For example, sensor assembly 1114 may detect the on / off state of device 1100, the relative positioning of components such as the display and keypad of device 1100, changes in the position of device 1100 or a component of device 1100, the presence or absence of user contact with device 1100, the orientation or acceleration / deceleration of device 1100, and temperature changes of device 1100. Sensor assembly 1114 may include a proximity sensor configured to detect the presence of nearby objects without any physical contact. Sensor assembly 1114 may include a light sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, sensor assembly 1114 may include an accelerometer, a gyroscope, a magnetometer, a pressure sensor, or a temperature sensor.

[0118] Communication component 1116 is configured to facilitate wired or wireless communication between device 1100 and other devices. Device 1100 can access wireless networks based on communication standards, such as WiFi, 4G, or 5G, or combinations thereof. In one exemplary embodiment, communication component 1116 receives broadcast signals or broadcast-related information from an external broadcast management system via a broadcast channel. In one exemplary embodiment, 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.

[0119] In an exemplary embodiment, the device 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 components to perform the above-described method for displaying battery power.

[0120] In an exemplary embodiment, a non-transitory computer-readable storage medium including instructions is provided, such as a memory 1104 including instructions, which can be executed by a processor 1120 of device 1100 to complete the battery power display method. For example, the non-transitory computer-readable storage medium may be a ROM, random access memory (RAM), CD-ROM, magnetic tape, floppy disk, and optical data storage device, etc.

[0121] In another exemplary embodiment, a computer program product is provided, the computer program product comprising a computer program executable by a programmable device, the computer program having a code portion for performing the above-described method for displaying battery power when executed by the programmable device.

[0122] Other embodiments of this disclosure will readily occur to those skilled in the art upon consideration of the specification and practice of this disclosure. This application is intended to cover any variations, uses, or adaptations of this disclosure that follow the general principles of this disclosure and include common knowledge or customary techniques in the art not disclosed herein. The specification and examples are to be considered exemplary only, and the true scope and spirit of this disclosure are indicated by the following claims.

[0123] It should be understood that this disclosure is not limited to the precise structures described above and shown in the accompanying drawings, and various modifications and changes can be made without departing from its scope. The scope of this disclosure is limited only by the appended claims.

Claims

1. A method for displaying battery power, characterized in that, The method includes: Obtain the cell voltage of the terminal battery; When the cell voltage is less than or equal to a first target voltage threshold, the discharge current and current remaining capacity of the battery are obtained; wherein, the first target voltage threshold is the sum of the preset shutdown cutoff voltage and the preset smooth start voltage of the battery, and the preset shutdown cutoff voltage represents the cell voltage at which the battery triggers the terminal shutdown control command; Based on the current remaining capacity and the discharge current, a smoothing time is determined, which is the total time for smoothing the battery power displayed on the terminal interface. Based on the smoothing time, the battery level displayed on the terminal interface is smoothed. The battery level is displayed after the smoothing process. The method includes: If the cell voltage is less than or equal to the second target voltage threshold, and the displayed battery capacity after smoothing is greater than or equal to the preset smoothed capacity, the preset smoothed capacity is used as the displayed battery capacity; wherein the second target voltage threshold is less than the first target voltage threshold.

2. The method according to claim 1, characterized in that, The step of determining the smoothing time based on the current remaining capacity and the discharge current includes: Calculate the product of the current remaining capacity and the preset time value; The ratio of the product to the discharge current is used as the smoothing time.

3. The method according to claim 1, characterized in that, The step of smoothing the battery level display on the terminal interface according to the smoothing time includes: The unit smoothing time of the battery is determined based on the current remaining capacity and the smoothing time. The battery level displayed is smoothed to a preset smoothed level according to the unit smoothing time.

4. The method according to claim 3, characterized in that, Determining the unit smoothing time of the battery based on the current remaining capacity and the smoothing time includes: Based on the current remaining capacity, determine the current remaining charge of the battery; The unit smoothing time is determined based on the current remaining charge and the smoothing time.

5. The method according to claim 4, characterized in that, Determining the unit smoothing time based on the current remaining charge and the smoothing time includes: The ratio of the current remaining charge to the smoothing time is used as the unit smoothing time of the battery.

6. The method according to any one of claims 1 to 5, characterized in that, The discharge current includes the current discharge current of the battery or the average discharge current of the battery over a preset time period.

7. A device for displaying battery power, characterized in that, include: 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 current remaining capacity of the battery when the cell voltage is less than or equal to a first target voltage threshold; wherein, the first target voltage threshold is the sum of the preset shutdown cutoff voltage and the preset smoothing start voltage of the battery, and the preset shutdown cutoff voltage represents the cell voltage at which the battery triggers the terminal shutdown control command. The first determining module is configured to determine a smoothing time based on the current remaining capacity and the discharge current, wherein the smoothing time is the total time for smoothing the battery power displayed on the terminal interface. A smoothing module is configured to smooth the battery level display to be shown on the terminal interface according to the smoothing time. The display module is configured to display the battery level after the smoothing process. The device further includes: The second determining module is configured to, when the cell voltage is less than or equal to the second target voltage threshold, if the displayed battery capacity after smoothing is greater than or equal to the preset smoothed capacity, use the preset smoothed capacity as the displayed battery capacity to be displayed; wherein the second target voltage threshold is less than the first target voltage threshold.

8. A device for displaying battery power, characterized in that, include: processor; Memory used to store processor-executable instructions; The processor is configured to implement the steps of the method according to any one of claims 1 to 6.

9. A computer-readable storage medium having computer program instructions stored thereon, characterized in that, When executed by a processor, the program instructions implement the steps of the method according to any one of claims 1 to 6.