Remaining use duration determination method and related equipment

By fitting the actual power consumption or discharge current to the average power consumption or current curve corresponding to the usage scenario in the terminal device, and combining it with battery aging information, the problem of low accuracy in predicting the remaining battery usage time is solved, thereby improving user experience and prediction accuracy.

CN121995259APending Publication Date: 2026-05-08XIAN GLORY TERMINAL CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
XIAN GLORY TERMINAL CO LTD
Filing Date
2025-12-10
Publication Date
2026-05-08

AI Technical Summary

Technical Problem

In existing technologies, the accuracy of predicting remaining battery life is low, resulting in a poor user experience.

Method used

By determining the current state information of the battery, the actual power consumption or discharge current is fitted using the average power consumption or average current curve corresponding to the current usage scenario. Combined with battery aging information and other influencing factors, the remaining usage time is corrected, and multiple determination modes are provided to improve accuracy.

Benefits of technology

It improves the accuracy of predicting remaining battery life, reduces volatility, enhances the user experience, and provides a convenient display of remaining battery life.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN121995259A_ABST
    Figure CN121995259A_ABST
Patent Text Reader

Abstract

The invention provides a method for determining remaining use duration and related equipment, and relates to the technical field of terminals. The remaining use duration determination method comprises the following steps: determining the current remaining capacity of a battery according to the current state information of the battery, wherein the current state information comprises the state of charge; determining a use scene of the terminal equipment, and determining an average power consumption curve corresponding to the use scene based on a pre-configured corresponding relationship; determining the current power consumption of the use scene; determining fitted average power consumption corresponding to the current power consumption based on the current power consumption and the average power consumption curve; based on the current residual capacity and the fitted average power consumption, determining the residual use duration of the battery; and displaying the remaining use duration. By means of the method, the remaining service time of the battery can be accurately determined.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of terminal technology, and in particular to a method and related equipment for determining remaining usage time. Background Technology

[0002] Terminal devices (such as mobile phones and laptops) have become an indispensable part of people's work and life. People use these devices to perform various functions, resulting in rapid battery drain. To allow users to understand battery usage, remaining battery life can be predicted. This remaining life can provide a reference for future use of the terminal device (e.g., reminding users to charge or connect to an external power source). However, current technologies suffer from low accuracy in predicting remaining battery life, leading to a poor user experience. Summary of the Invention

[0003] In view of the above, it is necessary to provide a method and related equipment for determining the remaining usage time of batteries, which can solve the problem of low prediction accuracy of the remaining usage time of batteries in existing predictions.

[0004] In a first aspect, this application provides a method for determining remaining usage time, applied to a terminal device, the terminal device including a battery, the method comprising: determining the current remaining capacity of the battery based on the current state information of the battery; determining the usage scenario of the terminal device, and determining the average power consumption curve corresponding to the usage scenario based on a pre-configured correspondence; determining the current power consumption of the usage scenario; determining the fitted average power consumption corresponding to the current power consumption based on the current power consumption and the average power consumption curve; determining the remaining usage time of the battery based on the current remaining capacity and the fitted average power consumption; and displaying the remaining usage time.

[0005] By adopting the above technical solution, the current remaining capacity of the battery is determined, and the actual power consumption of the current usage scenario is fitted using the average power consumption curve corresponding to the current usage scenario to obtain the fitted average power consumption. This not only suppresses the fluctuation of the remaining battery usage time caused by the fluctuation of the actual power consumption, but also, since it is based on the average power consumption curve corresponding to the current usage scenario, it can accurately determine the average power consumption at each moment under the current usage scenario. Then, by using the current remaining capacity and the fitted average power consumption, the remaining battery usage time is determined, which improves the accuracy of determining the remaining usage time and thus enhances the user's device experience. It also avoids the phenomenon of jumps in the remaining battery usage time under the same scenario. By displaying the remaining usage time, the convenience for users to obtain the remaining usage time is improved.

[0006] In one possible implementation, the average power consumption curve is an average current curve indicating the average discharge current of the usage scenario. Determining the current power consumption of the usage scenario includes: determining the current discharge current of the usage scenario; determining the fitted average power consumption corresponding to the current power consumption based on the current power consumption and the average power consumption curve, including: determining the fitted average current corresponding to the current discharge current based on the current discharge current and the average current curve; and determining the remaining battery usage time based on the current remaining capacity and the fitted average power consumption, including: determining the remaining battery usage time based on the current remaining capacity and the fitted average current.

[0007] By adopting the above technical solution, the current remaining capacity of the battery is determined, and the actual discharge current of the current usage scenario is fitted using the average current curve corresponding to the current usage scenario to obtain the fitted average current. This not only suppresses the fluctuation of the remaining battery usage time caused by the fluctuation of the actual discharge current, but also, since it is based on the average current curve corresponding to the current usage scenario, it can accurately determine the average discharge current at each moment under the current usage scenario. Then, by using the current remaining capacity and the fitted average current, the remaining battery usage time is determined, which improves the accuracy of determining the remaining usage time. Moreover, compared with power consumption, discharge current acquisition is more convenient and can save the amount of data processing on terminal devices.

[0008] In one possible implementation, the average current curve includes the average current from the 1st second to the nth second, and the current discharge current is the discharge current of the application scenario at the ith second, where i and n are both positive integers and i is less than n. Based on the current discharge current and the average current curve, the fitted average current corresponding to the current discharge current is determined, including: based on the discharge current of the application scenario from the 1st second to the ith second and the average current from the (i+1)th second to the nth second in the average current curve, the fitted average current corresponding to the discharge current at the ith second is determined.

[0009] By adopting the above technical solution, the current data is fitted by substituting the actual discharge current under the current usage scenario into the average current curve before fitting, and the fitted average current at the current moment is determined. This can suppress the fluctuation of the actual discharge current and make the fitted average current accurately represent the battery consumption rate under the current usage scenario, thereby improving the accuracy of the remaining usage time.

[0010] In one possible implementation, the average power consumption curve includes the average power consumption from the 1st second to the nth second, and the current power consumption is the power consumption of the usage scenario at the i-th second, where i and n are both positive integers and i is less than n. Based on the current power consumption and the average power consumption curve, the fitted average power consumption corresponding to the current power consumption is determined, including: based on the power consumption of the usage scenario from the 1st second to the i-th second and the average power consumption from the (i+1)th second to the nth second in the average power consumption curve, the fitted average power consumption corresponding to the power consumption at the i-th second is determined.

[0011] By adopting the above technical solution, the actual power consumption under the current usage scenario is substituted into the average power consumption curve before fitting in seconds to perform power consumption fitting, and the fitted average power consumption at the current moment is determined. This can suppress the fluctuation of the actual power consumption and make the fitted average power consumption accurately represent the battery consumption rate under the current usage scenario, thereby improving the accuracy of the remaining usage time.

[0012] In one possible implementation, the method for determining the remaining usage time further includes: obtaining battery aging information, including at least one of battery degradation, battery activation time, and charge / discharge cycles; and displaying the remaining usage time, including: correcting the remaining usage time based on the aging information and displaying the corrected remaining usage time.

[0013] By adopting the above technical solution, since aging information such as battery degradation, battery activation time, and charge / discharge cycles can affect the actual capacity of the battery, the accuracy of the remaining usage time can be further improved by correcting the remaining usage time through aging information.

[0014] In one possible implementation, the current state information of the battery includes the state of charge (SOC) used to determine the current remaining capacity of the battery, and the current state information also includes at least one of the battery temperature and the battery load size. The remaining usage time is displayed by: correcting the remaining usage time based on the battery temperature and / or the battery load size, and displaying the corrected remaining usage time.

[0015] By adopting the above technical solution, battery temperature can affect the actual output capacity of the battery, and battery load can affect the usable time. By correcting the remaining usage time by battery temperature and / or battery load, the accuracy of the remaining usage time can be further improved.

[0016] In one possible implementation, the terminal device pre-stores multiple first average power consumption curves corresponding to multiple usage scenarios, and determines the average power consumption curve corresponding to the usage scenario based on the pre-configured correspondence, including: determining the average power consumption curve corresponding to the usage scenario from the multiple first average power consumption curves.

[0017] By adopting the above technical solution, multiple first average power consumption curves corresponding to multiple usage scenarios can be pre-stored before the terminal device leaves the factory. After the terminal device is activated, power consumption can be fitted based on the pre-stored average power consumption curves, thereby improving the accuracy of the remaining usage time.

[0018] In one possible implementation, the method for determining the remaining usage time further includes: establishing multiple second average power consumption curves corresponding to multiple usage scenarios based on historical usage scenarios and power consumption data of historical usage scenarios recorded by the terminal device; determining the average power consumption curve corresponding to the usage scenario based on a pre-configured correspondence, including: determining the average power consumption curve corresponding to the usage scenario from the multiple second average power consumption curves.

[0019] By adopting the above technical solution, as the terminal device is used, the terminal device itself can record historical usage scenarios and power consumption data of historical usage scenarios. By constructing multiple second average power consumption curves corresponding to multiple usage scenarios, the subsequent power consumption fitting can replace the average power consumption curve constructed by the device itself instead of the pre-stored average power consumption curve, so as to achieve fitting using the average power consumption curve that conforms to the user's usage habits, which can further improve the accuracy of the remaining usage time.

[0020] In one possible implementation, the method for determining the remaining usage time further includes: displaying a power settings interface, the power settings interface including a first control and a second control, the first control indicating a first remaining usage time determination mode, the second control indicating a second remaining usage time determination mode, the first remaining usage time determination mode determining the remaining battery usage time based on the current remaining capacity and the average power consumption within a preset time under the usage scenario, the second remaining usage time determination mode determining the remaining battery usage time based on the current remaining capacity and the fitted average power consumption; in response to an operation on the first control, the terminal device is set to the first remaining usage time determination mode, or in response to an operation on the second control, the terminal device is set to the second remaining usage time determination mode.

[0021] By adopting the above technical solution, multiple remaining time determination modes can be provided for device users to choose from, and users can intuitively switch the method of determining the remaining usage time of the terminal device.

[0022] In one possible implementation, determining the usage scenario of the terminal device includes: obtaining the current usage scenario of the terminal device; determining whether the dwell time of the current usage scenario is greater than a preset duration; if the dwell time of the current usage scenario is greater than the preset duration, determining the current usage scenario as the usage scenario of the terminal device; if the dwell time of the current usage scenario is less than or equal to the preset duration, filtering the current usage scenario and using the previously determined usage scenario as the usage scenario of the terminal device.

[0023] By adopting the above technical solution, the usage scenarios with excessively short dwell times are filtered out, thereby reducing the impact of brief usage scenario switching on the determination of the remaining usage time and reducing the volatility of the remaining usage time.

[0024] Secondly, this application provides a terminal device, which includes a display screen, a memory, and a processor; the display screen and the memory are both coupled to the processor; the memory is used to store program instructions; the processor is used to read the program instructions stored in the memory to implement the method for determining the remaining usage time of the first aspect and its possible implementations.

[0025] Thirdly, this application provides a computer-readable storage medium storing computer-readable instructions, and a method for determining the remaining usage time of implementing the first aspect and its possible implementations when the computer-readable instructions are executed by a processor.

[0026] Fourthly, this application provides a computer program product containing computer-readable instructions that, when executed by a processor, provide a method for determining the remaining usage time of implementing the first aspect and its possible implementations.

[0027] Furthermore, the technical effects brought about by the second to fourth aspects can be found in the descriptions of the methods in the above-mentioned method section, and will not be repeated here. Attached Figure Description

[0028] Figure 1 This is a schematic diagram illustrating a possible application scenario provided by an embodiment of this application; Figure 2 This is a schematic diagram illustrating a possible application scenario provided by another embodiment of this application; Figure 3 This is a schematic diagram of the average current curves before and after fitting provided in an embodiment of this application; Figure 4 This is a schematic diagram showing the remaining usage time before and after fitting, provided in an embodiment of this application; Figure 5 This is a hardware and software architecture diagram of a terminal device provided in one embodiment of this application; Figure 6 This is a schematic diagram of an interface for selecting a remaining time determination mode according to an embodiment of this application; Figure 7 This is a hardware and software architecture diagram of a terminal device provided in another embodiment of this application; Figure 8 This is a flowchart of the steps of a method for determining the remaining usage time provided in an embodiment of this application; Figure 9 This is a hardware architecture diagram of a terminal device provided in one embodiment of this application. Detailed Implementation

[0029] The technical solutions of the embodiments of this application will now be described with reference to the accompanying drawings. Obviously, the described embodiments are only a part of the embodiments of this application, and not all of them. All other embodiments obtained by those skilled in the art based on the embodiments of this application without creative effort are within the scope of protection of this application.

[0030] In the following description, the terms "first" and "second" are used for descriptive purposes only and should not be construed as indicating or implying relative importance or implicitly specifying the number of indicated technical features. Therefore, a feature defined as "first" or "second" may explicitly or implicitly include one or more of that feature. In the description of the embodiments of this application, words such as "exemplary," "or," and "for example" are used to indicate examples, illustrations, or descriptions. Any embodiment or design described as "exemplary" or "for example" in the embodiments of this application should not be construed as being more preferred or advantageous than other embodiments or design solutions. Specifically, the use of words such as "exemplary," "or," and "for example" is intended to present the relevant concepts in a concrete manner.

[0031] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this application pertains. The terminology used in this application's specification is for the purpose of describing particular embodiments only and is not intended to be limiting of the application. It should be understood that, unless otherwise stated, " / " in this application means "or". For example, A / B can mean A or B. "And / or" in this application is merely a description of the relationship between related objects, indicating that three relationships can exist. For example, A and / or B can represent: A alone, A and B simultaneously, and B alone. "At least one" means one or more. "More than one" means two or more. For example, at least one of a, b, or c can represent: a, b, c, a and b, a and c, b and c, and a, b, and c. It should be understood that the order of steps shown in the flowcharts herein can be changed, and some can be omitted.

[0032] To facilitate understanding of the embodiments of this application, the technical terms involved in this application will first be introduced: User interface (UI): This is the medium through which an application or operating system interacts and exchanges information with the user. It converts the internal form of information into a form that the user can understand. The user interface is written in specific computer languages ​​such as Java or Extensible Markup Language (XML). This source code is parsed and rendered on the terminal device, ultimately presenting content that the user can recognize. A common form of user interface is the graphical user interface (GUI), which refers to a user interface related to computer operation displayed graphically. It can be visible interface elements displayed on the terminal device's screen, such as text, icons, buttons, menus, tabs, text boxes, dialog boxes, status bars, navigation bars, and widgets.

[0033] Predicting the remaining battery life of a terminal device is crucial for improving user experience. Typically, this is based on the battery's remaining capacity and current discharge rate. The current discharge rate refers to the rate at which the battery consumes energy per unit of time, calculated as: Current Discharge Rate = Current Operating Voltage × Current Discharge Current. If voltage fluctuations are ignored, for example, by using an average voltage to balance estimation errors, the prediction can be simplified to using the remaining capacity and current discharge current. For instance, the remaining capacity can be expressed in mAh (milliampere-hours), and the current discharge current in mA (milliamperes), meaning the remaining usage time is determined by the ratio of the remaining capacity to the current discharge current. However, the discharge current is not constant. For example, the usage scenarios of a device are generally not static, and the discharge current fluctuates significantly under different usage conditions. Because the discharge current is prone to change, the accuracy of calculating the remaining battery life using the current discharge current is limited, resulting in low accuracy in the predicted remaining battery life and thus degrading the user experience.

[0034] Therefore, embodiments of this application provide a method for determining the remaining usage time, which can improve the accuracy of predicting the remaining usage time of a battery.

[0035] like Figure 1 The illustration shows an application scenario provided by an embodiment of this application, which includes a terminal device 100. The terminal device can be a device equipped with a battery, and this embodiment does not limit the type of terminal device 100. For example, the terminal device 100 can be a mobile phone, tablet computer, laptop computer, e-reader, etc.

[0036] Figure 1Taking a laptop computer as an example, the lower right corner of the laptop screen may display a battery icon 101. When the battery is not charging and the mouse pointer moves over the battery icon 101, the remaining usage time information may be displayed. For example, the remaining usage time information may be: "Battery status: 89%, remaining 2 hours 20 minutes", which indicates that the battery has a relative state of charge (RSOC) of 89% and the estimated remaining usage time is 2 hours and 20 minutes.

[0037] In some embodiments, the terminal device 100 may also display the estimated remaining usage time in response to the remaining battery capacity being lower than a preset threshold. That is, if the remaining battery capacity is greater than or equal to the preset threshold, the remaining usage time information is "Battery status: XX%"; if the remaining battery capacity is less than the preset threshold, the remaining usage time information is "Battery status: XY%, remaining X hYY min". The preset threshold can be set according to actual needs, and this embodiment does not limit it. For example, the preset threshold is 90%.

[0038] like Figure 2 As shown, taking a mobile phone as an example, when a user wants to check the battery life of the terminal device 100, they can trigger the terminal device 100 to display the battery management interface 102 through the path "Settings - Battery". The battery management interface 102 can display the remaining battery capacity and the estimated remaining usage time.

[0039] In some embodiments, since the power consumption of the terminal device 100 varies under different usage scenarios—that is, with the same remaining battery capacity, the remaining usage time can differ significantly across scenarios—to accurately predict the remaining usage time, power consumption, average current, and usage time under various possible usage scenarios can be obtained through big data analysis. The data collected through big data analysis in this application is collected with user consent and is anonymized to avoid disclosing user privacy.

[0040] For example, the usage scenarios of terminal device 100 can be categorized based on the type of currently running application (applications installed on a mobile device) or application software (clients installed on a computer). Taking a laptop computer as an example, usage scenarios can include single scenarios and composite scenarios. Composite scenarios can refer to scenarios that include two or more single scenarios. Single scenarios can include: browser usage scenarios, personal social scenarios, office communication scenarios, document office scenarios, video playback scenarios, gaming scenarios, etc. The type of single scenario can be defined according to actual needs. The multiple scenarios listed above are merely examples provided in this application and are not intended to limit the scope. A browser usage scenario can refer to a currently running or foreground application software that is a browser (e.g., Microsoft Edge browser, Google Chrome, etc.). A personal social scenario can refer to a currently running or foreground application software that is a personal social software (e.g., WeChat, QQ, Weibo, etc.). An office communication scenario can refer to a currently running or foreground application software that is an office communication software (e.g., WeChat Work, DingTalk, Microsoft Teams, Zoom meeting software, etc.). A document office scenario can refer to a currently running or foreground application software that is a document office software (e.g., Word, Excel, PowerPoint software, etc.). Video playback scenarios can refer to applications that are currently running or running in the foreground as video playback software (e.g., Tencent Video, iQiyi, Youku, etc.). Game scenarios can refer to applications that are currently running or running in the foreground as game software (e.g., World of Warcraft, League of Legends, etc.).

[0041] For example, the usage scenarios of terminal device 100 can be divided based on the type of application or application software currently running in the foreground, without considering the applications or application software running in the background.

[0042] In some embodiments, in order to associate the data collected by big data with real-world usage scenarios, the average current and usage time under various possible usage scenarios collected by big data may refer to data when the battery of the terminal device 100 is not charging, i.e., scenario-related data when the terminal device 100 is not connected to an external power source.

[0043] In some embodiments, terminal device manufacturers can also build test environments to simulate user usage in various usage scenarios and record information such as power consumption, average current, and usage time of the terminal device 100 in different usage scenarios.

[0044] For example, by collecting data on the power consumption, average current, and usage time of a certain model of terminal device 100 under different usage scenarios using big data methods, a set of data is shown in Table 1 below. This set of data can represent the usage scenario data of terminal device 100 from 100% battery capacity to low battery triggering automatic shutdown (i.e., near 0% battery).

[0045] Table 1 In Table 1 above, the total usage time of terminal device 100 from 100% battery capacity to automatic shutdown due to low battery is 8.8 hours. For browser usage scenarios, the estimated average current over 1.33 hours is 1280 mA, based on corresponding power consumption and battery voltage. For office communication scenarios, the estimated average current over 1.57 hours is 1350 mA, based on corresponding power consumption and battery voltage. For video playback scenarios, the estimated average current over 0.84 hours is 1680 mA, based on corresponding power consumption and battery voltage. For document processing scenarios, the estimated average current over 5.06 hours is 980 mA, based on corresponding power consumption and battery voltage.

[0046] For example, another set of data collected through big data methods is shown in Table 2 below. This set of data can be used for terminal device 100 from 100% battery capacity to low battery level triggering automatic shutdown (i.e., almost 0% battery).

[0047] Table 2 In Table 1 above, the total usage time of terminal device 100 from 100% battery capacity to automatic shutdown due to insufficient power is approximately 5.9 hours.

[0048] In some embodiments, after collecting multiple sets of data (the collected data should reach a preset quantity requirement to avoid bias caused by insufficient samples; the preset quantity requirement can be set according to actual needs, and this application embodiment does not limit this), since each set of data may contain different or partially identical usage scenarios, after obtaining multiple sets of data, the final average current and usage time corresponding to each usage scenario can be selected from the multiple sets of data, and then an initial average current curve for each usage scenario can be constructed based on the selected average current and usage time. This application embodiment does not limit the specific selection algorithm and can select it according to actual needs. For example, a set of data with a longer usage time and an average current closer to the mean current can be selected. The mean current can refer to the average of all average currents for that usage scenario appearing in the collected multiple sets of data.

[0049] After constructing the initial average current curve (also known as the average current curve before fitting) for each usage scenario, for each real usage scenario (the scenario where the user is currently using terminal device 100), the actual current under the usage scenario can be substituted into the initial average current curve by second to construct the fitted average current curve. The fitted average current curve can be used to determine the expected remaining usage time to improve the prediction accuracy of the remaining battery usage time.

[0050] In some embodiments, the fitted average current at a given time t1 can be determined based on the actual current at time t1, the actual currents at each time before time t1, and the unfitted average currents at each time after time t1. In other embodiments, other fitting algorithms can be used to determine the fitted average current based on the actual current and the unfitted average current.

[0051] For example, after collecting multiple sets of data, for a document office scenario, the final average current and scenario usage time are 980mA and 5.06h (5.06h=18216s) as shown in Table 1. Based on the average current and scenario usage time, we can obtain... Figure 3 The average current curve S11 before fitting is shown. The actual current collected by the terminal device 100 at various times in the current document office scenario is shown as the actual current curve S12. It is assumed that the actual current collected in the 1st second is 1550mA, the actual current collected in the 2nd second is 1300mA, the actual current collected in the 3rd second is 800mA, the actual current collected in the 4th second is 600mA, and the actual current collected in the 5th second is 500mA.

[0052] The fitted average current in the first second can be determined based on the following formula: (1550+980×18215) / 18216≈980.085; The fitted average current in the 2nd second can be determined based on the following formula: (1550+1300+980×18214) / 18216≈980.049; The fitted average current in the 3rd second can be determined based on the following formula: (1550+1300+800+980×18213) / 18216≈980.039; The fitted average current in the 4th second can be determined based on the following formula: (1550+1300+800+600+980×18212) / 18216≈980.018; The fitted average current at the 5th second can be determined based on the following formula: (1550+1300+800+600+500+980×18211) / 18216≈979.992; Similarly, the fitted average current at other times can also be calculated in the same way as above, and the fitted average current at each time can be combined to form... Figure 3 The fitted average current curve S13 is shown.

[0053] like Figure 4 As shown, three curves illustrating the remaining battery life are presented. Curve S21 corresponds to the average current curve S11 before fitting, curve S22 corresponds to the actual current curve S12, and curve S23 corresponds to the average current curve S13 after fitting. Figure 4 It can be seen that due to the large fluctuations in the actual current, the remaining battery usage time curve S22, determined based on the actual current, also exhibits significant volatility, meaning that the accuracy of calculating the remaining battery usage time based on the current discharge current is limited. In contrast, the remaining battery usage time curve S23 shows very little volatility, and as the usage time increases, curve S23 is closer to the remaining battery usage time determined based on the actual current than curve S21. This indicates that the remaining battery usage time curve S23, determined based on the fitted average current curve S13, not only has low volatility but also closely approximates the actual remaining battery usage time.

[0054] It is understandable that the discharge current mentioned above can also be replaced by power consumption. By collecting average power consumption curves for various usage scenarios through big data, and fitting the real-time power consumption based on the current usage scenario, the average power consumption after fitting is obtained. Then, the remaining battery usage time is determined based on the average power consumption after fitting. The specific implementation method is similar to the discharge current method mentioned above, and will not be elaborated here.

[0055] In some embodiments, since the display scenario of remaining battery usage time is typically shown after the terminal device 100 leaves the factory and during user usage of the terminal device 100, and in cases where the terminal device 100 has not recorded sufficient scenario usage time and scenario power consumption (or average current of the scenario) data, an initial average current curve before fitting is constructed using scenario usage time and average current obtained from big data collection or simulation tests by the device manufacturer. Then, the average current curve before fitting is fitted based on the current actual current to obtain a fitted average current curve, which is used to estimate the remaining battery usage time. After the terminal device 100 has recorded sufficient scenario usage time and scenario power consumption (or average current of the scenario) data, the average current curve before fitting corresponding to each usage scenario can be constructed using the scenario usage time and average current recorded by the terminal device 100 itself. Then, the average current curve before fitting is fitted based on the current actual current to obtain a fitted average current curve, which is used to estimate the remaining battery usage time, achieving personalized estimation of the remaining battery usage time. In other embodiments, the fitted average current can also be used to accurately estimate power consumption in the current usage scenario (e.g., determined based on the fitted average current and battery voltage).

[0056] For example, after the terminal device 100 records sufficient scene usage time and scene power consumption (or scene average current) data, it can select the final average current and scene usage time corresponding to each usage scenario, and then construct the initial average current curve for each usage scenario based on the selected average current and scene usage time. This application embodiment does not limit the specific selection algorithm; for example, it can refer to the above-mentioned method for selecting multiple sets of data collected from large datasets, which will not be repeated here. The sufficient scene usage time and scene power consumption data referred to in this application embodiment can mean that the number of collected data reaches a preset number and includes each preset defined usage scenario. The preset number can be set according to actual needs, and this application embodiment does not limit it.

[0057] In some embodiments, for the battery of the terminal device 100, in addition to the current discharge current affecting the remaining battery usage time, there are many other factors that can affect the remaining battery usage time. For example, these other factors include, but are not limited to, battery degradation, battery activation time (which can be calculated from the time of the battery's initial activation), charge / discharge cycles, battery temperature, and battery load. Therefore, the remaining battery usage time determined based on the fitted average current can be corrected based on these factors to further improve the accuracy of the prediction of the remaining battery usage time.

[0058] For example, the terminal device 100 may also pre-set the following adjustment rules for the remaining battery usage time. It should be understood that the following adjustment rules are only an example, and the adjustment rules can be set and modified according to actual needs. This application embodiment does not limit this: (1) Determine the battery degradation rate and adjust the remaining battery capacity based on the battery degradation rate (i.e., indirectly adjust the remaining battery usage time), or directly adjust the determined remaining battery usage time. The battery degradation rate can be determined by the following formula: Battery degradation rate = Full Charger Capacity / Design Capacity.

[0059] In some embodiments, a first correction formula can be pre-built for the battery degradation rate and the remaining battery capacity, or for the remaining battery usage time. Based on the first correction formula and the battery degradation rate, the remaining battery capacity used to calculate the remaining usage time is corrected, or the remaining battery usage time is directly corrected. For example, the first correction formula is: for every 1% increase in battery degradation rate, the remaining battery usage time is reduced by X%.

[0060] (2) Determine the battery activation time, and adjust the remaining battery capacity based on the battery activation time (i.e., indirectly adjust the remaining battery usage time), or directly adjust the determined remaining battery usage time. For example, the battery activation time is calculated from the user's first activation of the terminal device 100, in days.

[0061] In some embodiments, a second correction formula can be pre-built for the battery activation time and the remaining battery capacity, or for the remaining battery usage time. Based on the second correction formula and the battery activation time, the remaining battery capacity used to calculate the remaining usage time is corrected, or the remaining battery usage time is directly corrected. For example, the second correction formula is that for every 30-day increase in battery activation time, the remaining battery usage time is reduced by Y%.

[0062] (3) Determine the number of charge and discharge cycles of the battery, and adjust the remaining capacity of the battery based on the number of charge and discharge cycles (i.e., indirectly adjust the remaining battery usage time), or directly adjust the determined remaining battery usage time.

[0063] In some embodiments, a third correction formula can be pre-built for the number of battery charge / discharge cycles and the remaining battery capacity, or for the remaining battery usage time. Based on the third correction formula and the number of battery charge / discharge cycles, the remaining battery capacity used to calculate the remaining usage time is corrected, or the remaining battery usage time is directly corrected. For example, the third correction formula is that for every 100 additional charge / discharge cycles, the remaining battery usage time is reduced by Z%.

[0064] (4) Determine the battery temperature and adjust the determined remaining battery usage time based on the battery temperature.

[0065] In some embodiments, a fourth correction formula for battery temperature and remaining battery life can be pre-constructed, and the remaining battery life can be corrected based on the fourth correction formula and battery temperature. For example, the fourth correction formula is: with XX℃ as the base temperature, before rising to the preset temperature, for every 1℃ increase in temperature, the remaining battery life increases by P%, and below the base temperature, for every 1℃ decrease in temperature, the remaining battery life decreases by Q%. Another example is: with XX~YY℃ as the base temperature range, above this base temperature range, for every 1℃ increase in temperature, the remaining battery life decreases by P%, and below this base temperature range, for every 1℃ decrease in temperature, the remaining battery life decreases by Q%.

[0066] (5) Determine the battery load size. The battery load size can be expressed by the current discharge current size. For example, with XXXmA current as the reference, for every YYYmA increase in current, the remaining battery usage time is shortened by V.

[0067] It is understood that the values ​​involved in each of the above adjustment rules can be set according to actual needs, and this application embodiment does not limit this.

[0068] In some embodiments, taking a laptop computer as an example, the laptop computer may include an embedded controller (EC) chip. The EC chip is responsible for managing the basic hardware logic, power consumption, and peripheral interaction of the entire machine. Its functions cover power management (e.g., charge and discharge management, low power triggering), hardware control (keyboard and touchpad management, fan and heat dissipation control, etc.). When the EC chip receives the average current curve before fitting (including the scene usage time and the scene's average current), the EC chip can fit the average current curve before fitting based on the real-time reported current or power consumption (the real-time current is determined based on the real-time power consumption) to obtain the fitted average current. Then, the remaining battery usage time can be estimated based on the fitted average current. The EC chip can also determine data such as battery degradation / battery activation time / charge and discharge cycles, and optimize the estimated remaining battery usage time based on data such as battery degradation / battery activation time / charge and discharge cycles (because battery wear will affect the overall battery life, and the scene usage time cannot exceed the actual remaining usage time, the remaining battery usage time is optimized based on battery wear). The EC chip can further optimize the estimated remaining battery life based on battery temperature and battery load to improve the accuracy of the remaining battery life estimate.

[0069] like Figure 5The diagram shows a hardware and software architecture applicable to laptops, using Windows as an example, with terminal device 100 running Windows. Terminal device 100 may also have pre-installed computer management software before leaving the factory. For example, this software could be a customized PC manager software developed by the device manufacturer (its functions include security protection, system optimization, software management, and may also include many practical auxiliary functions to meet most of the daily computer maintenance needs of ordinary users), such as Honor Manager software from Honor Corporation. Scene usage time and average current collected through big data can be pre-stored in terminal device 100.

[0070] The PC Manager software can handle the display and interaction of the relevant user interface, the distribution of usage scenarios, the distribution of commands for selecting the remaining duration mode, and the distribution of the average current curve before fitting corresponding to the usage scenario.

[0071] The operating system can be responsible for transmitting WMI (Windows Management Instrumentation) commands and related parameters. For example, information issued by PC Manager software can be first transmitted to the operating system, which can then transmit it to the EC chip according to the relevant interfaces defined by the Advanced Configuration and Power Interface (ACPI) specification.

[0072] The EC chip is used to receive WMI commands and related parameters from the operating system. It can also be used for selecting the remaining battery life mode, receiving usage scenarios, fitting the average current, and reporting the fitted average current. Other chips in the terminal device 100 (e.g., the central processing unit) calculate the remaining battery life based on the fitted average current.

[0073] In some embodiments, the EC chip can also report a correction factor for the remaining battery usage time.

[0074] In some embodiments, the EC chip can also directly perform the calculation of the remaining battery usage time and the reporting of the remaining battery usage time, so as to facilitate the display of the remaining battery usage time on the upper-level user interface.

[0075] In some embodiments, to avoid frequent switching of usage scenarios affecting the determination of remaining battery life, the EC chip can also be used to de-jitter usage scenarios and filter out usage scenarios with excessively short dwell times. For example, if the dwell time of a certain usage scenario is less than a preset duration, the usage scenario can be ignored, and it can be assumed that the user is still in the previous usage scenario, i.e., the usage scenario has not been switched. The preset duration can be set according to actual needs, and this application embodiment does not limit it. For example, the preset duration is 5 minutes.

[0076] In some embodiments, such as Figure 6 As shown, the PC management software may include a power settings interface 103, which provides a selection control for two remaining battery life modes: real-time remaining battery life mode and comprehensive remaining battery life mode. The real-time remaining battery life mode may refer to predicting the remaining battery life using the average current over X minutes, for example, predicting the remaining battery life based on the average current over 2 minutes. The comprehensive remaining battery life mode may refer to comprehensively predicting the remaining battery life for the current scenario based on user usage habits; that is, the solution in this application determines the remaining battery life based on the fitted average current. The PC management software can respond to the user's operation on the selection control, determine the remaining battery life mode selected by the user, and decide which strategy to use to determine the remaining battery life. Figure 6 This indicates that the currently selected mode is the combined remaining time mode.

[0077] In some embodiments, the terminal device may be configured to include only the overall remaining time mode, that is, there is no need to provide a user interface for the user to select, and the remaining battery usage time is determined by default based on the fitted average current using the solution of this application.

[0078] Please see Figure 7 This is a hardware and software architecture diagram applicable to mobile phones or tablets. The operating system of the terminal device 100 can adopt a layered architecture, event-driven architecture, microkernel architecture, microservice architecture, or cloud architecture. This application embodiment takes a layered Android system as an example, setting the application to be responsible for related user interface display and interaction, issuing usage scenario commands, issuing commands for selecting remaining duration modes, and issuing the average current curve before fitting corresponding to the usage scenario.

[0079] Parameters or commands issued by the configuration application can be passed to the power management integrated circuit (PMIC) through the power management service (PMS) and power management driver.

[0080] The power management chip can be used to receive relevant parameters and commands issued by the settings application. It can also be used for selecting the remaining battery life mode, receiving usage scenarios, fitting the average current, and reporting the fitted average current. Other chips in the terminal device 100 (e.g., system-on-a-chip, battery management chip) calculate the remaining battery life based on the fitted average current.

[0081] In some embodiments, the power management chip may also report a correction factor for the remaining battery usage time.

[0082] In some embodiments, the power management chip can also directly perform the calculation of the remaining battery usage time and the reporting of the remaining battery usage time, so as to facilitate the display of the remaining battery usage time on the upper-level user interface.

[0083] In some embodiments, to avoid frequent switching of usage scenarios affecting the determination of remaining battery life, the power management chip can also be used to de-jitter usage scenarios and filter out usage scenarios with excessively short dwell times. For example, if the dwell time of a certain usage scenario is less than a preset duration, the usage scenario can be ignored, and it can be assumed that the user is still in the previous usage scenario, i.e., the usage scenario has not been switched. The preset duration can be set according to actual needs, and this application embodiment does not limit it. For example, the preset duration is 5 minutes.

[0084] For example, the battery settings interface of the application can provide a selection control for two remaining battery life modes. One mode, as described in relevant technologies, is implemented through a fuel gauge function. For instance, it continuously integrates the battery charging and discharging current using the coulomb integral method (i.e., current × time to calculate power consumption), while simultaneously monitoring battery voltage, temperature, and other data. Then, through dynamic modeling methods such as current fitting, it compensates for errors caused by battery aging and temperature changes, thereby accurately estimating the state of charge. Finally, combined with the phone's current power consumption, it calculates the remaining battery life. The other mode predicts the remaining battery life based on user habits in the current scenario. In this application, the remaining battery life is determined based on the fitted average current. The settings application can respond to the user's operation on the selection control, determine the selected remaining battery life mode, and decide which strategy to use to determine the remaining battery life.

[0085] like Figure 8 The illustration shows a method for determining remaining usage time provided in this application embodiment. This method can be applied to a terminal device, which includes a battery. The method for determining remaining usage time may include the following steps: S801: Determine the current remaining capacity of the battery based on the battery's current status information.

[0086] In some embodiments, the current state information of the battery may include the battery's current voltage, discharge current, and state of charge. This application embodiment does not limit the current state information; it only needs to be used to determine the battery's current remaining capacity. There are various ways to obtain the battery's current state information, such as through corresponding detection devices or by reading it through corresponding chips. After obtaining the battery's current state information, the battery's current remaining capacity can be determined based on this information. Determining the battery's current remaining capacity based on the battery's current state information can be done using methods described in relevant technologies, and this application embodiment does not limit this approach.

[0087] S802 determines the usage scenario of the terminal device and determines the average power consumption curve corresponding to the usage scenario based on the pre-configured correspondence.

[0088] In some embodiments, the usage scenario of a terminal device can be determined based on the running state of the application on the terminal device. For example, when a game application is running in the foreground, the current usage scenario of the terminal device can be determined to be a game scenario. Similarly, when a video application is running in the foreground, the current usage scenario of the terminal device can be determined to be a video playback scenario. And again, when a document processing application is running in the foreground, the current usage scenario of the terminal device can be determined to be a document processing scenario.

[0089] In some embodiments, the terminal device may pre-store average power consumption curves corresponding to each usage scenario, with one average power consumption curve corresponding to one usage scenario. The pre-configured correspondence is the correspondence between each usage scenario and one average power consumption curve. After determining the usage scenario of the terminal device, the average power consumption curve corresponding to the usage scenario can be determined based on the pre-configured correspondence.

[0090] For example, the terminal device pre-stores multiple first average power consumption curves corresponding to multiple usage scenarios. These multiple first average power consumption curves can be collected through big data or obtained through manufacturer testing. Determining the average power consumption curve corresponding to the usage scenario based on the pre-configured correspondence may include: determining the average power consumption curve corresponding to the usage scenario from the multiple first average power consumption curves.

[0091] For example, the method for determining the remaining usage time may also include: establishing multiple second average power consumption curves corresponding to multiple usage scenarios based on historical usage scenarios and power consumption data of historical usage scenarios recorded by the terminal device; determining the average power consumption curve corresponding to the usage scenario based on a pre-configured correspondence, which may include: determining the average power consumption curve corresponding to the usage scenario from multiple second average power consumption curves. By fitting the average power consumption curve with user habits, the accuracy of the remaining usage time can be further improved.

[0092] S803 determines the current power consumption of the usage scenario.

[0093] In some embodiments, the current power consumption of the usage scenario can be detected by a power consumption detection method, for example, the current power consumption can be obtained by a power consumption detection method described in relevant technologies.

[0094] In some embodiments, current power consumption may refer to the total current power consumption of each power-consuming module of the terminal device under the usage scenario.

[0095] S804 determines the fitted average power consumption corresponding to the current power consumption based on the current power consumption and the average power consumption curve.

[0096] In some embodiments, after determining the current power consumption of the usage scenario, the current power consumption can be fitted based on the average power consumption curve to determine the fitted average power consumption corresponding to the current power consumption.

[0097] In some embodiments, assuming the average power consumption curve corresponding to the usage scenario includes the average power consumption from second 1 to second n, and the current power consumption is the power consumption of the usage scenario at second i, where i and n are both positive integers and i is less than n, the fitted average power consumption corresponding to the current power consumption is determined based on the current power consumption and the average power consumption curve. Specifically, this may include: determining the fitted average power consumption corresponding to the power consumption at second i based on the actual power consumption of the usage scenario from second 1 to second i and the average power consumption from second (i+1) to second n in the average power consumption curve. For example, the fitted average power consumption of the usage scenario at second 1 can be determined as follows: the fitted average power consumption of second 1 is determined based on the actual power consumption of the usage scenario at second 1 and the average power consumption from second 2 to second n in the average power consumption curve. As another example, the fitted average power consumption of the usage scenario at second 2 can be determined as follows: the fitted average power consumption of second 2 is determined based on the actual power consumption of the usage scenario at second 1, the actual power consumption of the usage scenario at second 2, and the average power consumption from second 3 to second n in the average power consumption curve.

[0098] In some embodiments, the average power consumption curve may also be an average current curve indicating the average discharge current of the usage scenario. Determining the current power consumption of the usage scenario may specifically include: determining the current discharge current of the usage scenario; determining the fitted average power consumption corresponding to the current power consumption based on the current power consumption and the average power consumption curve, which may specifically include: determining the fitted average current corresponding to the current discharge current based on the current discharge current and the average current curve; and determining the remaining battery usage time based on the current remaining capacity and the fitted average power consumption, which may specifically include: determining the remaining battery usage time based on the current remaining capacity and the fitted average current.

[0099] In some embodiments, the average current curve includes the average current from the 1st second to the nth second, and the current discharge current is the discharge current of the usage scenario at the i-th second, where i and n are both positive integers, and i is less than n. Based on the current discharge current and the average current curve, the fitted average current corresponding to the current discharge current is determined. Specifically, this may include: determining the fitted average current corresponding to the discharge current at the i-th second based on the discharge current of the usage scenario from the 1st second to the i-th second and the average current from the (i+1)-th second to the n-th second in the average current curve. For example, the fitted average current of the usage scenario at the 1st second can be determined as follows: based on the actual discharge current of the usage scenario at the 1st second and the average current from the 2nd second to the nth second in the average current curve. As another example, the fitted average current of the usage scenario at the 2nd second can be determined as follows: based on the actual discharge current of the usage scenario at the 1st second, the actual discharge current of the usage scenario at the 2nd second, and the average current from the 3rd second to the nth second in the average current curve, the fitted average current of the 2nd second is determined.

[0100] S805 determines the remaining battery life based on the current remaining capacity and the fitted average power consumption.

[0101] In some embodiments, since the product of power consumption and time equals the consumed battery capacity, the remaining usage time can be predicted based on the current remaining energy and the fitted average power consumption. That is, after determining the fitted average power consumption, the remaining battery usage time can be determined based on the current remaining capacity and the fitted average power consumption. For example, the ratio of the current remaining capacity to the fitted average power consumption can be used as the remaining battery usage time.

[0102] S806 displays the remaining usage time.

[0103] In some embodiments, after determining the remaining usage time, the remaining usage time can be displayed via an icon or interface. For example, the icon can be a preset icon capable of displaying the remaining usage time; the size, style, color, and position of the icon are not limited. Another example is through... Figure 1 or Figure 2 The interface displays the remaining usage time.

[0104] In some embodiments, the method for determining the remaining usage time may further include: acquiring battery aging information, the aging information including at least one of battery degradation, battery activation time, and charge / discharge cycles; displaying the remaining usage time may include: correcting the remaining usage time based on the aging information, and displaying the corrected remaining usage time. For example, the remaining usage time may be corrected based on the battery degradation, battery activation time, and charge / discharge cycles involved in the adjustment rules described above.

[0105] In some embodiments, the current status information may further include at least one of battery temperature and battery load. Displaying the remaining usage time may include: adjusting the remaining usage time based on battery temperature and / or battery load, and displaying the adjusted remaining usage time. For example, the remaining usage time may be adjusted based on the battery temperature and battery load involved in the adjustment rules described above.

[0106] In some embodiments, the terminal device may provide multiple remaining time determination modes for the device user to choose from. The method for determining the remaining usage time may further include: displaying a power settings interface, the power settings interface including a first control and a second control, the first control indicating a first remaining time determination mode, and the second control indicating a second remaining time determination mode. The first remaining time determination mode is used to determine the remaining battery usage time based on the current remaining capacity and the average power consumption within a preset time (e.g., 2 minutes) under the usage scenario, and the second remaining time determination mode is used to determine the remaining battery usage time based on the current remaining capacity and the fitted average power consumption. In response to an operation on the first control, the terminal device is set to the first remaining time determination mode, or in response to an operation on the second control, the terminal device is set to the second remaining time determination mode. For example, the first control is... Figure 6 The control shown corresponds to the real-time remaining time mode. The second control is... Figure 6 The control shown corresponds to the combined remaining time mode.

[0107] In some embodiments, determining the usage scenario of a terminal device may include: obtaining the current usage scenario of the terminal device; determining whether the dwell time of the current usage scenario is greater than a preset duration; if the dwell time of the current usage scenario is greater than the preset duration, determining the current usage scenario as the usage scenario of the terminal device; if the dwell time of the current usage scenario is less than or equal to the preset duration, filtering the current usage scenario and using the previously determined usage scenario as the usage scenario of the terminal device. The preset duration can be set according to actual needs, and this application embodiment does not limit it.

[0108] See Figure 9 As shown, the terminal device 100 involved in the embodiments of this application will be described below. The terminal device 100 in the embodiments of this application can be a mobile phone, tablet computer, laptop computer, ultra-mobile personal computer (UMPC), personal digital assistant (PDA), or other device including a display screen and battery. The embodiments of this application do not impose special limitations on the specific form of this terminal device. Please refer to... Figure 9 , Figure 9 This is a schematic diagram of the structure of the terminal device 100 provided in the embodiments of this application.

[0109] Terminal device 100 may include processor 110, external memory interface 120, internal memory 121, universal serial bus (USB) interface 130, charging management module 140, power management module 141, battery 142, antenna 1, antenna 2, mobile communication module 150, wireless communication module 160, audio module 170, speaker 170A, receiver 170B, microphone 170C, headphone jack 170D, sensor module 180, button 190, motor 191, indicator 192, camera 193, display screen 194, etc.

[0110] It is understood that the structures illustrated in the embodiments of the present invention do not constitute a specific limitation on the terminal device 100. In other embodiments of this application, the terminal device 100 may include more or fewer components than illustrated, or combine some components, or split some components, or have different component arrangements. The illustrated components may be implemented in hardware, software, or a combination of software and hardware.

[0111] In addition, an operating system runs on top of the aforementioned components. Examples include Apple's iOS operating system, Google's Android open-source operating system, and Microsoft's Windows operating system.

[0112] Processor 110 may include one or more processing units, such as application processors (APs), modem processors, graphics processing units (GPUs), image signal processors (ISPs), controllers, video codecs, digital signal processors (DSPs), baseband processors, and / or neural network processing units (NPUs). These different processing units may be independent devices or integrated into one or more processors.

[0113] For example, processor 110 can be used to execute the above-described method for determining the remaining usage time, thereby accurately displaying the remaining usage time.

[0114] The processor 110 may also include a memory for storing instructions and data. In some embodiments, the memory in the processor 110 is a cache memory. The memory can store instructions or data that the processor 110 has just used or that are being used repeatedly. If the processor 110 needs to use the instructions or data again, it can retrieve them directly from the memory. This avoids repeated accesses, reduces the waiting time of the processor 110, and thus improves system efficiency.

[0115] In some embodiments, the processor 110 may include one or more interfaces. Interfaces may include an inter-integrated circuit (I2C) interface, an inter-integrated circuit sound (I2S) interface, a pulse code modulation (PCM) interface, a universal asynchronous receiver / transmitter (UART) interface, a mobile industry processor interface (MIPI), a general-purpose input / output (GPIO) interface, a subscriber identity module (SIM) interface, and / or a universal serial bus (USB) interface, etc.

[0116] The wireless communication function of the terminal device 100 can be implemented through antenna 1, antenna 2, mobile communication module 150, wireless communication module 160, modem processor and baseband processor, etc.

[0117] Antennas 1 and 2 are used to transmit and receive electromagnetic wave signals. Each antenna in terminal device 100 can be used to cover one or more communication frequency bands. Different antennas can also be multiplexed to improve antenna utilization. For example, antenna 1 can be multiplexed as a diversity antenna for a wireless local area network. In some other embodiments, the antennas can be used in conjunction with a tuning switch.

[0118] The mobile communication module 150 can provide solutions for wireless communication, including 2G / 3G / 4G / 5G, applied to the terminal device 100. The mobile communication module 150 may include at least one filter, switch, power amplifier, low noise amplifier (LNA), etc. The mobile communication module 150 can receive electromagnetic waves via antenna 1, and perform filtering, amplification, and other processing on the received electromagnetic waves before transmitting them to a modem processor for demodulation. The mobile communication module 150 can also amplify the signal modulated by the modem processor and convert it into electromagnetic waves for radiation via antenna 1. In some embodiments, at least some functional modules of the mobile communication module 150 may be housed in the processor 110. In some embodiments, at least some functional modules of the mobile communication module 150 and at least some modules of the processor 110 may be housed in the same device.

[0119] The wireless communication module 160 can provide solutions for wireless communication applications on the terminal device 100, including wireless local area networks (WLAN) (such as wireless fidelity (Wi-Fi) networks), Bluetooth (BT), global navigation satellite system (GNSS), frequency modulation (FM), near field communication (NFC), and infrared (IR) technologies. The wireless communication module 160 can be one or more devices integrating at least one communication processing module. The wireless communication module 160 receives electromagnetic waves via antenna 2, performs frequency modulation and filtering of the electromagnetic wave signals, and sends the processed signal to processor 110. The wireless communication module 160 can also receive signals to be transmitted from processor 110, perform frequency modulation and amplification, and convert them into electromagnetic waves for radiation via antenna 2.

[0120] In some embodiments, antenna 1 of terminal device 100 is coupled to mobile communication module 150, and antenna 2 is coupled to wireless communication module 160, enabling terminal device 100 to communicate with networks and other devices via wireless communication technology. The wireless communication technology may include Global System for Mobile Communications (GSM), General Packet Radio Service (GPRS), Code Division Multiple Access (CDMA), Wideband Code Division Multiple Access (WCDMA), Time-Division Code Division Multiple Access (TD-SCDMA), Long Term Evolution (LTE), BT, GNSS, WLAN, NFC, FM, and / or IR technology, etc. The GNSS may include Global Positioning System (GPS), Global Navigation Satellite System (GLONASS), BeiDou Navigation Satellite System (BDS), Quasi-Zenith Satellite System (QZSS), and / or Satellite Based Augmentation Systems (SBAS).

[0121] Terminal device 100 implements display functions through a GPU, display screen 194, and application processor. The GPU is a microprocessor for image processing, connected to the display screen 194 and the application processor. The GPU is used to perform mathematical and geometric calculations and for graphics rendering. Processor 110 may include one or more GPUs, which execute program instructions to generate or modify display information.

[0122] Display screen 194 is used to display images, etc. For example, display screen 194 can be used to display... Figure 1 , Figure 2 , Figure 6The interface shown is as follows. The display screen 194 includes a display panel. The display panel can be a liquid crystal display (LCD), an organic light-emitting diode (OLED), an active-matrix organic light-emitting diode (AMOLED), a flexible light-emitting diode (FLED), a minimized display, a microLED, a micro-OLED, a quantum dot light-emitting diode (QLED), etc. In some embodiments, the terminal device 100 may include one or N display screens 194, where N is a positive integer greater than 1. In this embodiment, the display screen 194 can be a touch screen, that is, the display screen 194 integrates a touch sensor 180K.

[0123] Internal memory 121 may include one or more random access memory (RAM) and one or more non-volatile memory (NVM). The RAM may include static random-access memory (SRAM), dynamic random-access memory (DRAM), synchronous dynamic random-access memory (SDRAM), double data rate synchronous dynamic random-access memory (DDR SDRAM, such as fifth-generation DDR SDRAM, generally referred to as DDR5 SDRAM), etc.; the NVM may include disk storage devices and flash memory.

[0124] Flash memory can be classified according to its operating principle, including NOR FLASH, NAND FLASH, 3D NAND FLASH, etc.; according to the level of the storage cell, including single-level cell (SLC), multi-level cell (MLC), triple-level cell (TLC), quad-level cell (QLC), etc.; and according to the storage specification, including universal flash storage (UFS) and embedded multimedia card (eMMC), etc.

[0125] The random access memory can be directly read and written by the processor 110. It can be used to store executable programs (such as machine instructions) of the operating system or other running programs, as well as user and application data.

[0126] Non-volatile memory can also store executable programs and user and application data, and can be pre-loaded into random access memory for direct reading and writing by the processor 110.

[0127] The external memory interface 120 can be used to connect to external non-volatile memory to expand the storage capacity of the terminal device 100. The external non-volatile memory communicates with the processor 110 through the external memory interface 120 to realize data storage function.

[0128] The methods for determining the remaining usage time in the above embodiments can all be implemented in the terminal device 100 with the above hardware structure.

[0129] This embodiment also provides a computer-readable storage medium storing computer instructions. When the computer instructions are executed on the terminal device 100, the terminal device 100 performs the aforementioned related method steps to implement the method for determining the remaining usage time in the above embodiment.

[0130] This embodiment also provides a computer program product that, when run on a computer, causes the computer to perform the aforementioned related steps to implement the method for determining the remaining usage time in the above embodiment.

[0131] This embodiment also provides a chip system coupled to a memory. The chip system is used to read and execute a computer program stored in the memory to implement the method for determining the remaining usage time in the above embodiments.

[0132] Through the above description of the implementation methods, those skilled in the art can clearly understand that, for the sake of convenience and brevity, only the division of the above functional modules is used as an example. In actual applications, the above functions can be assigned to different functional modules as needed, that is, the internal structure of the device can be divided into different functional modules to complete all or part of the functions described above.

[0133] In the several embodiments provided in this application, it should be understood that the disclosed apparatus and methods can be implemented in other ways. For example, the apparatus embodiments described above are merely illustrative. For instance, the division of modules or units is only a logical functional division, and in actual implementation, there may be other division methods. For example, multiple units or components may be combined or integrated into another device, or some features may be ignored or not executed. Furthermore, the mutual coupling or direct coupling or communication connection shown or discussed may be through some interfaces; the indirect coupling or communication connection between devices or units may be electrical, mechanical, or other forms.

[0134] The unit described as a separate component may or may not be physically separate. The component shown as a unit can be one physical unit or multiple physical units, that is, it can be located in one place or distributed in multiple different places. Some or all of the units can be selected to achieve the purpose of the solution in this embodiment according to actual needs.

[0135] Furthermore, the functional units in the various embodiments of this application can be integrated into one processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit. The integrated unit can be implemented in hardware or as a software functional unit.

[0136] If the integrated unit is implemented as a software functional unit and sold or used as an independent product, it can be stored in a readable storage medium. Based on this understanding, the technical solutions of the embodiments of this application, essentially or in other words, the parts that contribute to the prior art, or all or part of the technical solutions, can be embodied in the form of a software product. This software product is stored in a storage medium and includes several instructions to cause a device (which may be a microcontroller, chip, etc.) or processor to execute all or part of the steps of the methods of the various embodiments of this application. The aforementioned storage medium includes various media capable of storing program code, such as USB flash drives, portable hard drives, read-only memory (ROM), random access memory (RAM), magnetic disks, or optical disks.

[0137] The above embodiments are only used to illustrate the technical solutions of this application, and are not intended to limit it. Although this application has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that modifications can still be made to the technical solutions described in the foregoing embodiments, or equivalent substitutions can be made to some of the technical features. Such modifications or substitutions do not cause the essence of the corresponding technical solutions to deviate from the scope of the technical solutions of the embodiments of this application.

Claims

1. A method for determining remaining usage time, applied to a terminal device, the terminal device including a battery, characterized in that, The method includes: The current remaining capacity of the battery is determined based on the current status information of the battery; The usage scenario of the terminal device is determined, and the average power consumption curve corresponding to the usage scenario is determined based on the pre-configured correspondence. Determine the current power consumption of the usage scenario; Based on the current power consumption and the average power consumption curve, determine the fitted average power consumption corresponding to the current power consumption; Based on the current remaining capacity and the fitted average power consumption, the remaining usage time of the battery is determined; Displays the remaining usage time.

2. The method for determining the remaining usage time as described in claim 1, characterized in that, The average power consumption curve is an average current curve indicating the average discharge current of the usage scenario. Determining the current power consumption of the usage scenario includes: Determine the current discharge current for the application scenario; The step of determining the fitted average power consumption corresponding to the current power consumption based on the current power consumption and the average power consumption curve includes: Based on the current discharge current and the average current curve, determine the fitted average current corresponding to the current discharge current; Determining the remaining battery usage time based on the current remaining capacity and the fitted average power consumption includes: The remaining usage time of the battery is determined based on the current remaining capacity and the fitted average current.

3. The method for determining the remaining usage time as described in claim 2, characterized in that, The average current curve includes the average current from the 1st second to the nth second, and the current discharge current is the discharge current of the usage scenario at the i-th second, where i and n are both positive integers and i is less than n. The step of determining the fitted average current corresponding to the current discharge current based on the current discharge current and the average current curve includes: Based on the discharge current from the 1st second to the ith second in the described usage scenario and the average current from the (i+1)th second to the nth second in the average current curve, the fitted average current corresponding to the discharge current in the ith second is determined.

4. The method for determining the remaining usage time as described in claim 1, characterized in that, The average power consumption curve includes the average power consumption from the 1st second to the nth second, and the current power consumption is the power consumption of the usage scenario in the i-th second, where i and n are both positive integers and i is less than n. The step of determining the fitted average power consumption corresponding to the current power consumption based on the current power consumption and the average power consumption curve includes: Based on the power consumption of the usage scenario from the 1st second to the ith second and the average power consumption from the (i+1)th second to the nth second in the average power consumption curve, the fitted average power consumption corresponding to the power consumption in the ith second is determined.

5. The method for determining the remaining usage time as described in any one of claims 1 to 4, characterized in that, The method further includes: Obtain the aging information of the battery, which includes at least one of the following: battery degradation rate, battery activation time, and number of charge / discharge cycles. The display of the remaining usage time includes: The remaining usage time is corrected based on the aging information, and the corrected remaining usage time is displayed.

6. The method for determining the remaining usage time as described in any one of claims 1 to 4, characterized in that, The current state information of the battery includes the state of charge (SOC), which is used to determine the current remaining capacity of the battery. The current state information also includes at least one of battery temperature and battery load. Displaying the remaining usage time includes: The remaining usage time is adjusted based on the battery temperature and / or the battery load, and the adjusted remaining usage time is displayed.

7. The method for determining the remaining usage time as described in any one of claims 1 to 6, characterized in that, The terminal device pre-stores multiple first average power consumption curves corresponding to multiple usage scenarios. The step of determining the average power consumption curve corresponding to the usage scenario based on a pre-configured correspondence includes: The average power consumption curve corresponding to the usage scenario is determined from the plurality of first average power consumption curves.

8. The method for determining the remaining usage time as described in claim 7, characterized in that, The method further includes: Based on the historical usage scenarios recorded by the terminal device and the power consumption data of the historical usage scenarios, multiple second average power consumption curves corresponding to the multiple usage scenarios are established; The determination of the average power consumption curve corresponding to the usage scenario based on the pre-configured correspondence includes: The average power consumption curve corresponding to the usage scenario is determined from the plurality of second average power consumption curves.

9. The method for determining the remaining usage time as described in any one of claims 1 to 8, characterized in that, The method further includes: The power settings interface includes a first control and a second control. The first control is used to indicate a first remaining time determination mode, and the second control is used to indicate a second remaining time determination mode. The first remaining time determination mode is used to determine the remaining usage time of the battery based on the current remaining capacity and the average power consumption within a preset time under the usage scenario. The second remaining time determination mode is used to determine the remaining usage time of the battery based on the current remaining capacity and the fitted average power consumption. In response to an operation on the first control, the terminal device is set to the first remaining time determination mode, or in response to an operation on the second control, the terminal device is set to the second remaining time determination mode.

10. The method for determining the remaining usage time as described in any one of claims 1 to 8, characterized in that, Determining the usage scenario of the terminal device includes: Obtain the current usage scenario of the terminal device; Determine whether the dwell time in the current usage scenario is greater than a preset duration; If the dwell time in the current usage scenario is greater than the preset duration, the current usage scenario is determined as the usage scenario of the terminal device; If the dwell time of the current usage scenario is less than or equal to the preset duration, the current usage scenario is filtered, and the previously determined usage scenario is used as the usage scenario of the terminal device.

11. A terminal device, characterized in that, The terminal device includes a display screen, a memory, and a processor; The display screen and the memory are both coupled to the processor; The memory is used to store program instructions; The processor is configured to read the program instructions stored in the memory to implement the method for determining the remaining usage time as described in any one of claims 1 to 10.

12. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores computer-readable instructions, which, when executed by a processor, implement the method for determining the remaining usage time as described in any one of claims 1 to 10.

13. A computer program product comprising computer-readable instructions, characterized in that, When the computer-readable instruction is executed by the processor, it implements the method for determining the remaining usage time as described in any one of claims 1 to 10.