Battery power smooth display method, electronic equipment, readable medium and computer program product

By smoothing and unifying the battery discharge curve, the problems of uneven power display and power jumps in terminal devices are solved, achieving uniform power display and improving user experience. It is suitable for terminal devices such as mobile phones and tablets.

CN121324979APending Publication Date: 2026-01-13ZTE CORP
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410940010.7
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-07-12
Publication Date
2026-01-13

AI Technical Summary

Technical Problem

Terminal devices exhibit uneven battery level display, short battery life during low battery phases, and fluctuating battery levels, affecting users' ability to predict charging time and reducing user experience.

Method used

By acquiring the battery's discharge curve, the total charge is divided into a preset number of baseline charge intervals. The discharge curves are then smoothed and made uniform to obtain the actual charge intervals corresponding to each baseline charge interval. The displayed charge is determined based on the actual charge intervals and then displayed uniformly on the user interface.

Benefits of technology

It achieves uniformity in battery level display, solves the problems of short battery life and fluctuating battery levels during low battery phases, improves user experience, and does not increase hardware costs, making it suitable for various terminal devices.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN121324979A_ABST
    Figure CN121324979A_ABST
Patent Text Reader

Abstract

The invention provides a battery electric quantity smooth display method, which comprises the following steps: acquiring a discharge curve of a battery, dividing the total electric quantity of the battery into a preset number of reference electric quantity intervals according to the discharge curve of the battery, and carrying out smooth and uniform processing on the discharge curve according to each reference electric quantity interval. Obtaining a first actual electric quantity interval corresponding to each reference electric quantity interval; and determining a first display electric quantity corresponding to the actual electric quantity of the battery according to each first actual electric quantity interval, and displaying the first display electric quantity. By utilizing the discharge curve of the battery, the total electric quantity of the battery is controlled in different intervals, and the actual electric quantity of the battery is mapped into the display electric quantity to be displayed, so that the display duration of each electric quantity interval can be uniformized, the electric quantity display uniformity is ensured, and the problems that the electric quantity is not durable in a low electric quantity stage and the electric quantity jumps are solved; the method can be widely applied to various terminal devices, does not increase hardware cost, and is easy to implement. The disclosure also provides an electronic device, a computer readable medium, and a computer program product.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This disclosure relates to the field of battery power detection technology, and in particular to a method for smoothly displaying battery power, an electronic device, a readable medium, and a computer program product. Background Technology

[0002] Most terminal devices need to display battery level to indicate the charging / discharging progress to users. A smooth battery level UI (User Interface) display is very user-friendly. However, current terminal devices suffer from uneven battery level display, short battery life at low levels, and even abrupt changes in battery level during low-battery periods. These issues affect users' ability to predict charging time and degrade the user experience. Therefore, there is an urgent need for a battery level display solution that displays battery level evenly and addresses the problems of short battery life at low levels and abrupt changes in battery level. Summary of the Invention

[0003] This disclosure provides a method for smoothly displaying battery power, an electronic device, a readable medium, and a computer program product.

[0004] In a first aspect, embodiments of this disclosure provide a method for smoothly displaying battery power, the method comprising:

[0005] Obtain the battery's discharge curve;

[0006] Based on the discharge curve of the battery, the total capacity of the battery is divided into a preset number of reference capacity intervals, and the discharge curve is smoothed and uniformly processed according to each reference capacity interval to obtain the first actual capacity interval corresponding to each reference capacity interval.

[0007] The first displayed charge corresponding to the actual charge of the battery is determined according to each of the first actual charge ranges, and the first displayed charge is displayed.

[0008] Secondly, embodiments of this disclosure provide an electronic device, which includes a memory and a processor; the memory stores a computer program that can be executed by the processor, and when the computer program is executed by the processor, it implements the battery power smoothing display method as described above.

[0009] Thirdly, embodiments of this disclosure provide a computer-readable medium having a computer program stored thereon, which, when executed by a processor, implements the battery power smoothing display method as described above.

[0010] Fourthly, embodiments of this disclosure provide a computer program product, which includes a computer program that, when executed by a processor, implements the battery power smoothing display method as described above.

[0011] The battery power smoothing display method in this embodiment obtains the battery's discharge curve, divides the battery's total power into a preset number of benchmark power intervals based on the discharge curve, and smooths and evens the discharge curve according to each benchmark power interval to obtain a first actual power interval corresponding to each benchmark power interval; determines the first display power corresponding to the actual power of the battery based on each first actual power interval, and displays the first display power. This embodiment utilizes the battery's discharge curve to control the total battery power in intervals, mapping the actual battery power to the display power for display. This can even out the display time of each power interval, ensuring the uniformity of power display, solving the problems of short battery life and fluctuating power levels during low battery stages; and it can be widely applied to various terminal devices without increasing hardware costs and is easy to implement. Attached Figure Description

[0012] In the accompanying drawings of the embodiments disclosed herein:

[0013] Figure 1 Flowchart of the battery power smoothing display method provided in the embodiments of this disclosure Figure 1 ;

[0014] Figure 2 A schematic diagram of the discharge curve of a battery provided in an embodiment of this disclosure;

[0015] Figure 3 Flowchart of the battery power smoothing display method provided in the embodiments of this disclosure Figure 2 ;

[0016] Figure 4 A flowchart illustrating the process of determining the first actual power range provided in this embodiment of the disclosure. Figure 1 ;

[0017] Figure 5 A flowchart illustrating the process of determining the first actual power range provided in this embodiment of the disclosure. Figure 2 ;

[0018] Figure 6 This is a flowchart illustrating the process of determining the first displayed power corresponding to the actual power consumption, as provided in an embodiment of this disclosure.

[0019] Figure 7 This is a schematic block diagram illustrating the composition of an electronic device provided in an embodiment of this disclosure. Detailed Implementation

[0020] To enable those skilled in the art to better understand the technical solutions of this disclosure, the embodiments of this disclosure will be described in detail below with reference to the accompanying drawings.

[0021] The present disclosure will be described more fully below with reference to the accompanying drawings; however, the embodiments shown may be embodied in different forms, and the present disclosure should not be construed as limited to the embodiments set forth below. Rather, these embodiments are provided so that this disclosure will be thorough and complete, and will enable those skilled in the art to fully understand the scope of the disclosure.

[0022] The accompanying drawings of the embodiments disclosed herein are provided to further illustrate the embodiments of this disclosure and form part of the specification. They are used together with the detailed embodiments to explain this disclosure and do not constitute a limitation thereof. The above and other features and advantages will become more apparent to those skilled in the art from the description of the detailed embodiments with reference to the accompanying drawings.

[0023] This disclosure may be described with reference to plan and / or cross-sectional views using the ideal schematic diagrams of this disclosure. Therefore, the example illustrations may be modified according to manufacturing techniques and / or tolerances.

[0024] Where there is no conflict, the various embodiments of this disclosure and the features thereof in the embodiments may be combined with each other.

[0025] The terminology used in this disclosure is for the purpose of describing particular embodiments only and is not intended to limit the disclosure. The term "and / or" as used in this disclosure includes any and all combinations of one or more of the associated enumerated entries. The singular forms "a" and "the" as used in this disclosure are also intended to include the plural forms, unless the context clearly indicates otherwise. The terms "comprising," "made of," etc., as used in this disclosure specify the presence of the stated feature, integral, step, operation, element, and / or component, but do not exclude the presence or addition of one or more other features, integrals, steps, operations, elements, components, and / or groups thereof.

[0026] Unless otherwise specified, all terms used in this disclosure (including technical and scientific terms) have the same meaning as commonly understood by one of ordinary skill in the art. It will also be understood that terms such as those defined in commonly used dictionaries should be interpreted as having a meaning consistent with their meaning in the context of the relevant art and this disclosure, and will not be interpreted as having an idealized or overly formal meaning, unless expressly so defined in this disclosure.

[0027] This disclosure is not limited to the embodiments shown in the accompanying drawings, but includes modifications to the configuration based on the manufacturing process. Therefore, the areas illustrated in the drawings are schematic, and the shapes of the areas shown illustrate specific shapes of the areas of an element, but are not intended to be limiting.

[0028] To address the issue of fluctuating battery level, one related technology establishes a mapping table between battery level and voltage. If the battery voltage falls below a preset voltage, the battery level is recalculated. Another related technology obtains the actual remaining battery level (first battery level), corresponding current, and the battery level displayed on the mobile terminal interface at the current moment. Based on the total battery capacity, the first battery level, the second battery level, and the current, a smoothing time for the displayed battery level is calculated. The displayed battery level is then adjusted, decreasing by one percentage point every smoothing time. This solution approximates the true battery level by adjusting the displayed false battery level to ensure a smooth display.

[0029] This disclosure provides a method for smoothly displaying battery power. The method is applied to an electronic device, which can be various terminal devices capable of displaying battery power, including but not limited to mobile phones, smartwatches, and tablets. The electronic device includes a detection module such as a fuel gauge that can report battery power and a display module for displaying battery power.

[0030] like Figure 1 As shown, the battery power smoothing display method includes the following steps:

[0031] Step S11: Obtain the battery discharge curve.

[0032] In some embodiments, the electronic device is discharged with a constant current to obtain the battery's discharge curve. In actual user scenarios, the electronic device is not in a constant current environment. In this embodiment, by discharging with a constant current and recording the changes in battery charge, the original state of the electronic device's discharge charge can be reflected more accurately.

[0033] Figure 2 This is a schematic diagram of the discharge curve of the battery provided in the embodiments of this disclosure, such as... Figure 2 As shown, the discharge curve is the ST curve, where S represents the battery capacity and T represents the battery discharge duration. The discharge curve reveals that the battery does not discharge uniformly, exhibiting problems such as uneven discharge and excessively short discharge durations for certain capacity ranges.

[0034] Step S12: Based on the battery discharge curve, the total battery capacity is divided into a preset number of reference capacity intervals, and the discharge curve is smoothed and uniformly processed according to each reference capacity interval to obtain the first actual capacity interval corresponding to each reference capacity interval.

[0035] In some embodiments, the total battery capacity can be divided into a preset number of baseline capacity intervals. For example, if the total battery capacity of an electronic device is S, the total battery capacity S can be divided into a preset number of x parts to obtain x baseline capacity intervals: The preset quantity x can be determined according to the power control accuracy of the electronic device. For example, if the power is accurate to 1%, then x = 100; if the power is accurate to 0.01%, then x = 10000. If the power display accuracy requirement is low, 100 bars of power can be divided into 4 equal parts, i.e., x = 4.

[0036] In some embodiments, the discharge curve is smoothed and made uniform based on the average division of the reference power range, and the total power is re-divided into power ranges to obtain the first actual power range corresponding to each reference power range. The discharge time of each of the re-divided first actual power ranges is basically the same.

[0037] Step S13: Determine the first displayed charge corresponding to the actual charge of the battery according to each first actual charge range, and display the first displayed charge.

[0038] In some embodiments, the actual battery charge can be mapped to a corresponding first actual charge range, and the actual charge can be converted into a first display charge for display on the UI. Since the discharge time of each first actual charge range is basically the same, the actual display time of each first display charge obtained after mapping is uniform, and there will be no situation where the charge changes too quickly in the low charge stage (such as 5% charge) and the user does not have time to plug in the charger and the device shuts down.

[0039] The battery power smoothing display method in this embodiment obtains the battery's discharge curve, divides the battery's total power into a preset number of benchmark power intervals based on the discharge curve, and smooths and evens the discharge curve according to each benchmark power interval to obtain a first actual power interval corresponding to each benchmark power interval; determines the first display power corresponding to the actual power of the battery based on each first actual power interval, and displays the first display power. This embodiment utilizes the battery's discharge curve to control the total battery power in intervals, mapping the actual battery power to the display power for display. This can even out the display time of each power interval, ensuring the uniformity of power display, solving the problems of short battery life and fluctuating power levels during low battery stages; and it can be widely applied to various terminal devices without increasing hardware costs and is easy to implement.

[0040] In related technologies, it is determined whether the curvature of the discharge curve is greater than a preset value. If so, a target curve is drawn based on the discharge curve, making the curvature of the target curve less than or equal to the preset value, and the terminal's battery level is calculated based on the target curve. This related technology can only reduce the curvature of the segment with a curvature greater than the preset value, that is, reduce the rate of change of battery level in a certain segment, and cannot flexibly extend or shorten the display time of battery level.

[0041] To address the aforementioned problems, in some embodiments of this disclosure, such as Figure 3As shown, after smoothing and uniformly processing the discharge curve according to each reference charge range to obtain the first actual charge range corresponding to each reference charge range (i.e., step S12), the battery charge smoothing display method may further include the following steps:

[0042] Step S13': Adjust each first actual power range according to the preset time scaling factor of the target reference power range to obtain the second actual power range corresponding to each reference power range; wherein, the target reference power range is at least one of the reference power ranges.

[0043] In some embodiments, the target reference battery level range can be preset as needed. For example, a high battery level range, such as 90%-100%, can be used as the target reference battery level range. A time scaling factor A is preset for the target reference battery level range. In this step, each first actual battery level range is adjusted according to the time scaling factor A to obtain the second actual battery level range. The time scaling factor A can be greater than 1 or less than 1. If the time scaling factor A is greater than 1, the battery level display duration of the target reference battery level range is extended, that is, the battery level display duration is extended by A times; if the time scaling factor A is less than 1, the battery level display duration of the target reference battery level range is shortened. It should be noted that if A = 1, the battery level display duration of the target reference battery level range is not adjusted, that is, the second actual battery level range is the same as the first actual battery level range.

[0044] Step S14': Determine the second displayed charge corresponding to the actual charge of the battery based on each second actual charge range, and display the second displayed charge.

[0045] In some embodiments, the actual battery charge is mapped to a corresponding second actual charge range, and the actual charge is converted into a second display charge for display on the UI. The charge display duration of the second actual charge range corresponding to the target reference charge range is A times or 1 / A of the charge display duration of other second actual charge ranges.

[0046] Through steps S13'-S14', the UI displays the battery level for a second time, which is scaled up or down according to requirements, allowing for flexible extension or shortening of the battery level display duration.

[0047] In some embodiments, such as Figure 4 As shown, the step of smoothing and uniformly processing the discharge curve according to each reference charge range to obtain the first actual charge range corresponding to each reference charge range (i.e., step S12) includes the following steps:

[0048] Step S121: Determine the total discharge time of the battery and the discharge time of each reference capacity range based on the discharge curve.

[0049] In some embodiments, the total discharge time T of the battery can be directly determined based on the discharge curve, and the total battery capacity S can be divided into a preset number of x parts to obtain x reference capacity intervals: Calculate the discharge duration t for each of the above x reference charge ranges. i : t1, t2, t3, ..., t x ,i=(1,2,…,x).

[0050] Step S122: Based on the total power, total discharge time, preset quantity, and discharge time of each reference power interval, the discharge curve is smoothed and made uniform to obtain the first actual power interval corresponding to each reference power interval.

[0051] In some embodiments, such as Figure 5 As shown, the step of smoothing and uniformly processing the discharge curve based on the total power, total discharge time, preset quantity, and discharge time of each reference power interval to obtain the first actual power interval corresponding to each reference power interval (i.e., step S122) includes the following steps:

[0052] Step S1221: For each reference power range, calculate the first power parameter corresponding to the reference power range based on the total power, total discharge time, preset quantity and discharge time of the reference power range.

[0053] In some embodiments, for a reference power range, a first proportional coefficient can be calculated based on the total discharge time, a preset quantity, and the discharge time of the reference power range; the power of the reference power range can be calculated, and the product of the power of the reference power range and the first proportional coefficient can be calculated to obtain the first power parameter corresponding to the reference power range.

[0054] Specifically, the first energy parameter corresponding to the i-th reference energy range can be calculated according to the following formula (1):

[0055]

[0056] Among them, S i Let t be the first energy parameter corresponding to the i-th reference energy range. i Let S be the discharge duration of the i-th baseline charge interval, where i = (1, 2, ..., x); T is the total discharge duration, x is the preset quantity, and S is the total charge. The energy level is within the baseline energy range. This is the first proportionality coefficient.

[0057] It should be noted that, according to the above formula (1), the first parameter corresponding to each benchmark energy range, namely S1, S2, ..., S, can be calculated respectively. x .

[0058] Step S1222: Determine the first actual power range corresponding to the reference power range based on the first power parameters corresponding to the reference power range and the first power parameters corresponding to each reference power range before the reference power range.

[0059] In some embodiments, for a reference power range, the first actual power range corresponding to the reference power range can be calculated by the following steps: taking the first power parameter of the previous reference power range as the lower limit of the first actual power range corresponding to the reference power range; calculating the sum of the first power parameters corresponding to each reference power range before the reference power range to obtain the upper limit of the first actual power range corresponding to the reference power range; and obtaining the first actual power range corresponding to the reference power range based on the lower limit and the upper limit.

[0060] First benchmark energy range The corresponding actual battery capacity is 0 to S1. Similarly, the second benchmark energy range Third benchmark power range ..., the xth reference energy range The corresponding first actual energy ranges are: S1~(S1+S2), (S1+S2)~(S1+S2+S3), ..., (S1+S2+...+S x-1 )~(S1+S2+...+S x ),in

[0061] The proportion of the discharge duration t1 of the first reference charge range to the total discharge duration T is: The proportions of discharge time in each reference charge range to the total discharge time are as follows: These proportions are likely uneven, with some baseline discharge durations being longer or shorter than others. Since the smaller the proportion of the baseline discharge duration to the total discharge duration, the larger its reciprocal will be, this embodiment of the disclosure multiplies the reciprocal of the proportion of the baseline discharge duration to the total discharge duration. Calculate the first power parameter corresponding to the baseline power range. This will extend the power display duration for the corresponding first actual power range calculated based on the first power parameter. (Using the first baseline power range...) For example, the proportion of the discharge time in the first reference charge range to the total discharge time is: If the solution of this embodiment is not adopted, the display duration is t1, and the UI displays... The duration is relatively short; after adopting the solution of this embodiment, the UI still displays to the user... However, the actual corresponding battery capacity is 0 to S1. In fact, it extends the display time on the UI. Battery level display duration.

[0062] In some embodiments, such as Figure 6 As shown, the step of determining the first displayed battery level corresponding to the actual battery level based on each first actual battery level range (i.e., step S13) includes the following steps:

[0063] Step S131: Calculate the sum of the first energy parameters corresponding to each reference energy range to obtain the total energy parameters.

[0064] Calculate the sum of x first energy parameters to obtain the total energy parameter S', i.e., S' = S1 + S2 + ... + S x .

[0065] Step S132: Based on the battery's actual charge, total charge, and total charge parameters, determine the target first actual charge range corresponding to the battery's actual charge. The target first actual charge range is one of the various first actual charge ranges.

[0066] In some embodiments, determining the target first actual power range corresponding to the battery's actual power range based on the battery's actual power level, total power level, and total power level parameters (i.e., step S132) includes the following steps: calculating the display power level parameters based on the battery's actual power level, total power level, and total power level parameters; and determining the target first actual power range corresponding to the display power level parameters. That is, using the total power level parameters S' and the total power level S, the display power level parameters corresponding to the battery's actual power level are calculated. By determining which of the various first actual power ranges the display power level parameters fall into, the battery's actual power level is mapped to that first actual power range.

[0067] Step S133: Calculate the first displayed battery level based on the battery's actual charge, total charge, total charge parameters, lower limit of the target first actual charge range, first charge parameters corresponding to the target first actual charge range, and a preset quantity.

[0068] In some embodiments, the actual battery charge 0 to S is mapped to 0 to S', based on the reference charge range calculated above. The corresponding first actual energy range is S1~(S1+S2), (S1+S2)~(S1+S2+S3), ..., (S1+S2+...+S x-1 )~(S1+S2+...+S xThe actual battery level Y is mapped and displayed. Specifically, based on the total battery level parameter S', the lower limit of the target first actual battery level range, the first battery level parameter corresponding to the target first actual battery level range, and the preset quantity x, the actual battery level Y is mapped to obtain the first displayed battery level Y'.

[0069] In some embodiments, the first displayed battery level can be calculated according to the following formula (2):

[0070]

[0071] Where Y' is the first displayed battery level; Y is the actual battery level; S' is the total battery level parameter; S is the total battery level; Y×S' / S is the displayed battery level parameter; S m S is the first energy parameter corresponding to the first actual energy range of the target. mL The lower limit of the target first actual power range; the target first actual power range is the i-th first actual power range, i = (1, 2, ..., x); x is the preset quantity.

[0072] In some embodiments, adjusting each first actual power range according to a preset time scaling factor for a target reference power range to obtain a second actual power range corresponding to each reference power range (i.e., step S13') includes the following steps:

[0073] Step S131': For each reference power range, adjust the first power parameter corresponding to each reference power range according to the preset time scaling factor of the target reference power range to obtain the second power parameter corresponding to each reference power range.

[0074] In some embodiments, the first energy parameter corresponding to each reference energy range is obtained in the following manner: in the process of determining the first actual energy range corresponding to each reference energy range, the total discharge time of the battery and the discharge time of each reference energy range are determined according to the discharge curve (i.e., step S121); and for each reference energy range, the first energy parameter corresponding to the reference energy range is calculated according to the total energy, the total discharge time, the preset quantity and the discharge time of the reference energy range (i.e., step S1221).

[0075] The total reference energy range includes the target reference energy range and other reference energy ranges besides the target reference energy range. For these two types of reference energy ranges, the corresponding second energy parameters are determined respectively.

[0076] In some embodiments, for a target reference power range, a second proportional coefficient of the target reference power range can be calculated based on the preset time scaling factor of the target reference power range, the total discharge duration, the preset quantity, and the discharge duration of the target reference power range; the power of the reference power range is calculated, and the product of the power of the reference power range and the second proportional coefficient of the target reference power range is calculated to obtain the second power parameter corresponding to the target reference power range.

[0077] In other words, the second energy parameter corresponding to the target reference energy range can be calculated according to the following formula (3):

[0078]

[0079] Among them, S′ m This refers to the second energy parameter corresponding to the m-th reference energy range, where the m-th reference energy range is the target reference energy range. m The discharge duration is the target baseline charge range; T is the total discharge duration, A is the time scaling factor for the target baseline charge range, x is the preset quantity, and S is the total charge. The energy level is within the baseline energy range. This is the second proportionality coefficient.

[0080] By using the preset time scaling factor A of the target reference power range, the first scaling factor of the target reference power range is adjusted to the second scaling factor, and the second power parameter corresponding to the target reference power range is calculated based on the second scaling factor, thereby realizing the adjustment of the power parameter of the target reference power range.

[0081] In some embodiments, for reference power ranges other than the target reference power range, a third scaling factor for the reference power ranges other than the target reference power range can be calculated based on the preset time scaling factor of the target reference power range, the total discharge duration, the preset quantity, and the discharge duration of the reference power ranges other than the target reference power range; the power of the reference power range is calculated, and the product of the power of the reference power range and the third scaling factor of the reference power ranges other than the target reference power range is calculated to obtain the second power parameter corresponding to the reference power ranges other than the target reference power range.

[0082] In other words, the second energy parameter corresponding to other reference energy ranges besides the target reference energy range can be calculated according to the following formula (4):

[0083]

[0084] Among them, S′ jLet x be the second energy parameter corresponding to the j-th reference energy range other than the target reference energy range, and j = (1,...,m-1,m+1,...,x). j Let T be the discharge duration of the j-th reference energy range other than the target reference energy range; T is the total discharge duration, A is the time scaling factor for the target reference energy range, x is the preset quantity, and S is the total energy. The energy level is within the baseline energy range. It is the third proportionality coefficient.

[0085] Using the preset time scaling factor A of the target reference power range, the first scaling factor of other reference power ranges besides the target reference power range is adjusted to the third scaling factor, and the second power parameters corresponding to other reference power ranges besides the target reference power range are calculated based on the third scaling factor, thereby realizing the adjustment of the power parameters of other reference power ranges besides the target reference power range.

[0086] Step S132': Determine the second actual power range corresponding to the reference power range based on the second power parameters corresponding to the reference power range and the second power parameters corresponding to each reference power range before the reference power range.

[0087] The method for determining the second actual power range is the same as the method for determining the first actual power range, as detailed in step S1222, and will not be repeated here.

[0088] To clearly illustrate the solutions of the embodiments of this disclosure, specific examples are described below.

[0089] Discharge the electronic device with a constant current, such as 500mA, and obtain the battery discharge curve.

[0090] The process of smoothing and homogenizing the discharge curve is as follows:

[0091] The discharge curve shows that the total discharge time of the battery is T = 5500 seconds, and the total battery capacity is S = 100%. This 100% capacity can be divided into 10 equal parts, x = 10, resulting in the following baseline capacity ranges: 0%–10%, 10%–20%, 20%–30%, 30%–40%, 40%–50%, 50%–60%, 60%–70%, 70%–80%, 80%–90%, and 90%–100%. Correspondingly, the discharge time t for each baseline capacity range is... i The values ​​are t1 = 400 seconds, t2 = 520 seconds, t3 = 560 seconds, t4 = 560 seconds, t5 = 560 seconds, t6 = 560 seconds, t7 = 560 seconds, t8 = 560 seconds, and t9 = 560 seconds, respectively. 10= 660 seconds. The discharge curve shows that the battery charge is uneven, and the discharge time is too short in the low charge range of 0%-10%.

[0092] The proportion of the discharge duration t1 of the first reference charge range to the total discharge duration T is: The proportions of the discharge duration of each of the x reference charge intervals in the discharge curve to the total discharge duration T are as follows: The proportion of discharge time in each reference charge range to the total discharge time T is uneven. The discharge time in the 0% to 10% reference charge range is shorter, while the discharge time in the 90% to 100% reference charge range is longer.

[0093] By smoothing and uniformizing the discharge curve, the battery level can be displayed smoothly and uniformly in the UI. The total battery level displayed in the UI is still S=100%, and the actual battery level corresponding to the baseline battery level range of 0% to 10% displayed in the UI is 0 to S1. Similarly, the UI displays the first actual battery range corresponding to the baseline battery ranges of 10%–20%, 20%–30%, ..., 90%–100% as: S1–(S1+S2), (S1+S2)–(S1+S2+S3), ..., (S1+S2+...+S...S1+S2+...+S1+S2 ... X-1 )~(S1+S2+...+S X ),in

[0094] Total energy parameter S' = S1 + S2 + ... + S x =101.4%, mapping the actual battery charge from 0% to 100% to 0% to 101.4%. The first actual charge ranges corresponding to the base charge ranges of 0% to 10%, 10% to 20%, 20% to 30%, ..., 90% to 100% are 0% to 13.75%, 13.75% to 24.33%, 24.33% to 34.15%, ..., 93.07% to 101.4%.

[0095] Assuming the actual battery charge Y = 30%, the displayed charge parameter = Y × S' / S = 30.42%. This displayed charge parameter falls within the target first actual charge range of 24.33% to 34.15%, which is the third first actual charge range, i.e., i = 3. The corresponding first charge parameter S3 = 9.82%. Therefore, the first displayed charge can be calculated according to formula (2). Accordingly, the UI displays the current battery level as 26.2%.

[0096] The UI originally displayed 10% battery percentages (10%, 20%, ..., 100%), representing the actual battery capacity. In this embodiment, these 10 percentages are mapped to corresponding first actual battery capacity ranges, with the UI displaying the upper limit of that range. This ensures a more even display duration for the 10 percentage points, preventing situations where the battery level changes too rapidly at low levels (e.g., 5%), causing the device to shut down before the user can plug in the charger.

[0097] The process of smoothly scaling the display duration of battery power within a specified baseline range is as follows:

[0098] The total discharge time of the battery is T = 5500 seconds, and the total battery capacity is S = 100%. This 100% capacity can be divided into 10 equal parts, x = 10, resulting in the following baseline capacity ranges: 0%–10%, 10%–20%, 20%–30%, 30%–40%, 40%–50%, 50%–60%, 60%–70%, 70%–80%, 80%–90%, and 90%–100%. Correspondingly, the discharge time t for each baseline capacity range is... i The values ​​are t1 = 400 seconds, t2 = 520 seconds, t3 = 560 seconds, t4 = 560 seconds, t5 = 560 seconds, t6 = 560 seconds, t7 = 560 seconds, t8 = 560 seconds, and t9 = 560 seconds, respectively. 10 = 660 seconds.

[0099] To improve user experience, it's possible to request an extension of the display duration for any one or more battery level ranges. For example, if the display duration for the target baseline battery level range of 90% to 100% is required to be approximately twice the display duration for other baseline battery level ranges (i.e., A=2), and this target baseline battery level range is the 10th baseline battery level range, the total battery level displayed in the UI will still be 100%.

[0100] For the target reference energy range of 90% to 100%, the second energy parameter corresponding to the target reference energy range is calculated using formula (3).

[0101] For other reference energy ranges besides the target reference energy range, such as 0%–10%, 10%–20%, 20%–30%, 30%–40%, 40%–50%, 50%–60%, 60%–70%, 70%–80%, and 80%–90%, the second energy parameters S′1, S′2, S′3, S′4, S′5, S′6, S′7, S′8, and S′9 corresponding to each other reference energy range are calculated using formula (4).

[0102] At this point, the total electrical energy parameter S″ = S1′ + S2′ + ... + S x =99.78%, which maps the actual battery charge from 0 to 100% to 0 to 99.78%.

[0103] The 10 baseline battery levels (0%–10%, 10%–20%, 20%–30%, ..., 90%–100%) correspond to the following 10 actual battery levels: 0%–12.5%, 12.5%–22.12%, 22.12%–31.05%, ..., 84.63%–99.78%. The display duration for the target baseline battery level range of 90%–100% is approximately twice that of the other baseline ranges (0%–10%, 10%–20%, ..., 80%–90%), and the display duration for the other baseline ranges is uniform. This processing ensures that the actual display duration of the 10 battery levels in the UI is scaled according to demand, improving the user experience.

[0104] The following explains the process of smoothly scaling the display duration of the battery level in the 0% to 10% baseline battery range.

[0105] The total discharge time of the battery is T = 5500 seconds, and the total battery capacity is S = 100%. This 100% capacity can be divided into 10 equal parts, x = 10, resulting in the following baseline capacity ranges: 0%–10%, 10%–20%, 20%–30%, 30%–40%, 40%–50%, 50%–60%, 60%–70%, 70%–80%, 80%–90%, and 90%–100%. Correspondingly, the discharge time t for each baseline capacity range is... i The values ​​are t1 = 400 seconds, t2 = 520 seconds, t3 = 560 seconds, t4 = 560 seconds, t5 = 560 seconds, t6 = 560 seconds, t7 = 560 seconds, t8 = 560 seconds, and t9 = 560 seconds, respectively. 10 = 660 seconds.

[0106] The display duration of the battery level in the 0% to 10% baseline battery level range should be approximately twice the display duration of the battery level in other baseline battery level ranges, i.e., A=2. The target baseline battery level range is the first baseline battery level range, and the total battery level displayed by the UI is still 100%.

[0107] For the target reference energy range of 0% to 10%, the second energy parameter corresponding to the target reference energy range is calculated using formula (3).

[0108] For other reference energy ranges besides the target reference energy range, such as 10%–20%, 20%–30%, 30%–40%, 40%–50%, 50%–60%, 60%–70%, 70%–80%, 80%–90%, and 90%–100%, the second energy parameters S′2, S′3, S′4, S′5, S′6, S′7, S′8, S′9, and S′ are calculated respectively using formula (4). 10 ,in,

[0109] At this point, the total electrical energy parameter S″ = S1′ + S2′ + ... + S x =104.71%, which maps the actual battery charge from 0 to 100% to 0 to 104.71%.

[0110] The 10 baseline battery levels (0%–10%, 10%–20%, 20%–30%, ..., 90%–100%) correspond to the following 10 actual battery levels: 0%–25%, 25%–34.62%, 34.62%–43.55%, ..., 97.13%–104.71%. The battery display duration for the target baseline battery level range (0%–10%) is approximately twice that of the other baseline battery levels (10%–20%, ..., 80%–90%, 90%–100%), and the display duration for the other baseline battery levels is uniform. This processing ensures that the actual display duration of the 10 battery levels in the UI is scaled according to demand, improving the user experience.

[0111] This disclosure can be applied to power display scenarios in various terminals such as mobile phones, tablets, and in-vehicle terminals of electric vehicles. By acquiring the battery's discharge curve and smoothing and uniformly processing it, the actual battery charge is mapped to the displayed charge level. This ensures a more even display duration across different charge ranges, solving the problems of short battery life and fluctuating charge levels during low-battery periods. Furthermore, it allows for flexible extension or shortening of any charge segment, improving the user experience. This disclosure requires no additional cost, can be implemented solely through software, and is applicable to all terminal devices requiring power display, demonstrating its wide applicability.

[0112] This disclosure also provides an electronic device, such as... Figure 7 As shown, it includes a memory 1 and a processor 2; the memory 1 stores a computer program that can be executed by the processor, and when the computer program is executed by the processor, it implements any of the battery power smoothing display methods of the present disclosure embodiments.

[0113] Among them, processor 2 is a device with data processing capabilities, including but not limited to a central processing unit (CPU); memory 1 is a device with data storage capabilities, including but not limited to random access memory (RAM, more specifically SDRAM, DDR, etc.), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory (FLASH); I / O interface (read-write interface) is connected between the processor and the memory, enabling information exchange between the memory and the processor, including but not limited to a data bus (Bus).

[0114] This disclosure provides a computer-readable medium having a computer program stored thereon, which, when executed by a processor, implements any of the battery power smoothing display methods of this disclosure.

[0115] This disclosure provides a computer program product, which includes a computer program that, when executed by a processor, implements any of the battery power smoothing display methods of this disclosure.

[0116] Those skilled in the art will understand that all or some of the steps, systems, and devices disclosed above, as functional modules / units, can be implemented as software, firmware, hardware, or suitable combinations thereof.

[0117] In hardware implementations, the division between functional modules / units mentioned in the above description does not necessarily correspond to the division of physical components; for example, a physical component may have multiple functions, or a function or step may be executed by several physical components working together.

[0118] Some or all of the physical components may be implemented as software executed by a processor, such as a central processing unit (CPU), digital signal processor, or microprocessor, or as hardware, or as an integrated circuit, such as an application-specific integrated circuit (ASIC). Such software may be distributed on a computer-readable medium, which may include computer storage media (or non-transitory media) and communication media (or transient media). As is known to those skilled in the art, the term computer storage media includes volatile and non-volatile, removable and non-removable media implemented in any method or technique for storing information (such as computer-readable instructions, data structures, program modules, or other data). Computer storage media include, but are not limited to, random access memory (RAM, more specifically SDRAM, DDR, etc.), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory (FLASH) or other disk storage; read-only optical disc (CD-ROM), digital versatile disc (DVD) or other optical disc storage; magnetic cartridges, magnetic tapes, disk storage or other magnetic storage; and any other media that can be used to store desired information and can be accessed by a computer. Furthermore, as is known to those skilled in the art, communication media typically contain computer-readable instructions, data structures, program modules, or other data in modulated data signals such as carrier waves or other transmission mechanisms, and may include any information delivery medium.

[0119] This disclosure has disclosed exemplary embodiments, and although specific terminology has been used, it is for general illustrative purposes only and should not be construed as limiting. In some instances, it will be apparent to those skilled in the art that features, characteristics, and / or elements described in conjunction with particular embodiments may be used alone, or in combination with features, characteristics, and / or elements described in conjunction with other embodiments, unless otherwise expressly indicated. Therefore, those skilled in the art will understand that various changes in form and detail may be made without departing from the scope of this disclosure as set forth by the appended claims.

Claims

1. A battery power smoothing display method, the method comprising: obtaining a discharge curve of a battery; dividing a total power of the battery into a preset number of reference power intervals according to the discharge curve of the battery, and performing smoothing and uniform processing on the discharge curve according to each of the reference power intervals to obtain a first actual power interval corresponding to each of the reference power intervals; determining a first display power corresponding to an actual power of the battery according to each of the first actual power intervals, and displaying the first display power.

2. The method of claim 1, wherein, After the smoothing and uniform processing on the discharge curve according to each of the reference power intervals to obtain a first actual power interval corresponding to each of the reference power intervals, the method further comprises: adjusting each of the first actual power intervals according to a time scaling factor of a target reference power interval to obtain a second actual power interval corresponding to each of the reference power intervals, wherein the target reference power interval is at least one of the reference power intervals; determining a second display power corresponding to the actual power of the battery according to each of the second actual power intervals, and displaying the second display power.

3. The method of claim 1, wherein, The smoothing and uniform processing on the discharge curve according to each of the reference power intervals to obtain a first actual power interval corresponding to each of the reference power intervals comprises: determining a total discharge duration of the battery and a discharge duration of each of the reference power intervals according to the discharge curve; performing smoothing and uniform processing on the discharge curve according to the total power, the total discharge duration, the preset number and the discharge duration of each of the reference power intervals to obtain a first actual power interval corresponding to each of the reference power intervals.

4. The method of claim 3, wherein, The smoothing and uniform processing on the discharge curve according to the total power, the total discharge duration, the preset number and the discharge duration of each of the reference power intervals to obtain a first actual power interval corresponding to each of the reference power intervals comprises: for each of the reference power intervals, calculating a first power parameter corresponding to the reference power interval according to the total power, the total discharge duration, the preset number and the discharge duration of the reference power interval; determining a first actual power interval corresponding to the reference power interval according to the first power parameter corresponding to the reference power interval and the first power parameter corresponding to each of the reference power intervals before the reference power interval.

5. The method of claim 4, wherein, The determination of a first actual power interval corresponding to the reference power interval according to the first power parameter corresponding to the reference power interval and the first power parameter corresponding to each of the reference power intervals before the reference power interval comprises: taking the first power parameter of a previous reference power interval of the reference power interval as a lower limit value of the first actual power interval corresponding to the reference power interval; calculating a sum of the first power parameters corresponding to each of the reference power intervals before the reference power interval to obtain an upper limit value of the first actual power interval corresponding to the reference power interval; obtaining the first actual power interval corresponding to the reference power interval according to the lower limit value and the upper limit value.

6. The method of claim 4, wherein, The first display power corresponding to the actual power of the battery is determined according to each of the first actual power intervals, and the first display power is determined according to the actual power of the battery, the total power, and the total power parameter. The sum of each first power parameter corresponding to each reference power interval is calculated to obtain a total power parameter; A target first actual power interval corresponding to the actual power of the battery is determined according to the actual power of the battery, the total power, and the total power parameter, and the target first actual power interval is one of the first actual power intervals; The first display power is calculated according to the actual power of the battery, the total power, the total power parameter, a lower limit value of the target first actual power interval, a first power parameter corresponding to the target first actual power interval, and the preset number.

7. The method of claim 6, wherein, The target first actual power interval corresponding to the actual power of the battery is determined according to the actual power of the battery, the total power, and the total power parameter, and the target first actual power interval is one of the first actual power intervals; A display power parameter is calculated according to the actual power of the battery, the total power, and the total power parameter; A target first actual power interval corresponding to the display power parameter is determined.

8. The method of claim 4, wherein, The first power parameter corresponding to each reference power interval is calculated according to the total power, the total discharge duration, the preset number, and the discharge duration of the reference power interval, and the first power parameter corresponding to each reference power interval is adjusted according to the preset time scaling factor of the target reference power interval to obtain a second power parameter corresponding to each reference power interval. A first scaling factor is calculated according to the total discharge duration, the preset number, and the discharge duration of the reference power interval; The power of the reference power interval is calculated, and the product of the power of the reference power interval and the first scaling factor is calculated to obtain the first power parameter corresponding to the reference power interval.

9. The method of claim 2, wherein, The first actual power interval is adjusted according to the preset time scaling factor of the target reference power interval to obtain a second actual power interval corresponding to each reference power interval, and the second actual power interval corresponding to each reference power interval is determined according to the second power parameter corresponding to the reference power interval and the second power parameter corresponding to each reference power interval before the reference power interval. 10.An electronic device, comprising a memory and a processor, wherein the memory stores a computer program executable by the processor, and the computer program is executed by the processor to implement the battery power smoothing display method in any one of claims 1-9. 11.A computer readable medium, wherein a computer program is stored on the computer readable medium, and the computer program is executed by a processor to implement the battery power smoothing display method in any one of claims 1-9. ​ ​ ​ 12. A computer program product comprising a computer program which, when executed by a processor, implements the battery power smoothing display method according to any one of claims 1-9.