CN-121995259-A - Method for determining remaining use time and related equipment
Abstract
The application provides a method for determining the remaining use time and related equipment, and relates to the technical field of terminals. The method for determining the remaining use time length comprises the steps of determining the current remaining capacity of a battery according to current state information of the battery, wherein the current state information comprises a state of charge, determining a use scene of a terminal device, determining an average power consumption curve corresponding to the use scene based on a preset corresponding relation, determining the current power consumption of the use scene, determining the average power consumption after fitting corresponding to the current power consumption based on the current power consumption and the average power consumption, determining the remaining use time length of the battery based on the current remaining capacity and the average power consumption after fitting, and displaying the remaining use time length. By using the method, the remaining use time of the battery can be accurately determined.
Inventors
- LIU PENGCHENG
- ZHANG YOUJUN
- GUO YANBO
- DENG XUTONG
Assignees
- 西安荣耀终端有限公司
Dates
- Publication Date
- 20260508
- Application Date
- 20251210
Claims (13)
- 1. A method for determining a remaining usage time length, applied to a terminal device, the terminal device including a battery, the method comprising: determining the current residual capacity of the battery according to the current state information of the battery; 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 relation; determining the current power consumption of the usage scenario; determining the average power consumption after fitting corresponding to the current power consumption based on the current power consumption and the average power consumption curve; determining the residual using duration of the battery based on the current residual capacity and the fitted average power consumption; And displaying the residual using time.
- 2. The method of determining remaining usage time length as set forth in claim 1, wherein the average power consumption curve is an average current curve indicating an average discharge current of the usage scenario, the determining the present power consumption of the usage scenario includes: Determining a present discharge current of the usage scenario; the determining, based on the current power consumption and the average power consumption curve, the post-fitting average power consumption corresponding to the current power consumption includes: Determining a fitted average current corresponding to the current discharge current based on the current discharge current and the average current curve; the determining the remaining use time of the battery based on the current remaining capacity and the fitted average power consumption includes: and determining the residual using duration of the battery based on the current residual capacity and the fitted average current.
- 3. The method for determining remaining use time length according to claim 2, wherein the average current curve includes average currents of 1 st to nth seconds, the present discharge current is a discharge current of the use scene at the ith second, i and n are positive integers, and i is smaller than n, the determining a post-fitting average current corresponding to the present discharge current based on the present discharge current and the average current curve includes: and determining a fitted average current corresponding to the discharge current of the ith second based on the discharge current of the use scene in the 1 st second to the ith second and the average current of the (i+1) th second to the nth second in the average current curve.
- 4. The method for determining a remaining usage time period according to claim 1, wherein the average power consumption curve includes average power consumption from 1 st second to nth second, the current power consumption is power consumption of the usage scenario at the ith second, i and n are positive integers, and i is smaller than n, the determining, based on the current power consumption and the average power consumption curve, average power consumption after fitting corresponding to the current power consumption includes: and determining the average power consumption after fitting corresponding to the power consumption of the ith second based on the power consumption of the use scene from the 1 st 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.
- 5. A method of determining remaining in-use time length according to any one of claims 1 to 4, further comprising: Acquiring aging information of the battery, wherein the aging information comprises at least one of battery attenuation degree, battery activation time and charge-discharge turns; The displaying the remaining use time length includes: and correcting the residual using time length based on the aging information, and displaying the corrected residual using time length.
- 6. The remaining-use-time-length determining method according to any one of claims 1 to 4, wherein the current state information of the battery includes a state of charge for determining a current remaining capacity of the battery, the current state information further includes at least one of a battery temperature and a battery load size, the displaying the remaining-use-time-length includes: and correcting the residual use time length based on the battery temperature and/or the battery load size, and displaying the corrected residual use time length.
- 7. The method for determining remaining usage time length according to any one of claims 1 to 6, wherein the terminal device prestores a plurality of first average power consumption curves corresponding to a plurality of usage scenarios, and the determining the average power consumption curve corresponding to the usage scenario based on the preconfigured correspondence relation includes: An 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 remaining in-use time length as set forth in claim 7, further comprising: Establishing a plurality of second average power consumption curves corresponding to the plurality of use scenes based on the historical use scenes recorded by the terminal equipment and the power consumption data of the historical use scenes; The determining an average power consumption curve corresponding to the usage scenario based on the pre-configured correspondence relation comprises: An 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 remaining in-use time length according to any one of claims 1 to 8, further comprising: Displaying a power supply setting interface, wherein the power supply setting interface comprises a first control and a second control, the first control is used for indicating a first residual duration determining mode, the second control is used for indicating a second residual duration determining mode, the first residual duration determining mode is used for determining residual use duration of the battery based on the current residual capacity and average power consumption in preset time under the use scene, and the second residual duration determining mode is used for determining residual use duration of the battery based on the current residual capacity and the average power consumption after fitting; The terminal device is set to the first remaining duration determination mode in response to an operation for the first control, or the terminal device is set to the second remaining duration determination mode in response to an operation for the second control.
- 10. The method for determining a remaining usage time length according to any one of claims 1 to 8, wherein the determining a usage scenario of the terminal device includes: Acquiring a current use scene of the terminal equipment; determining whether the residence time of the current use scene is longer than a preset duration; if the stay time of the current use scene is longer than the preset duration, determining the current use scene as the use scene of the terminal equipment; And if the stay time of the current usage scenario is less than or equal to the preset duration, filtering the current usage scenario, and taking the usage scenario determined in the previous time as the usage scenario of the terminal equipment.
- 11. A terminal device, characterized in that the terminal device comprises a display screen, a memory and a processor; The display screen and the memory are coupled with the processor; the memory is used for storing program instructions; The processor is configured to read the program instructions stored in the memory to implement the method for determining remaining usage time length according to any one of claims 1 to 10.
- 12. A computer readable storage medium, wherein computer readable instructions are stored in the computer readable storage medium, which when executed by a processor, implement the method of determining remaining in-use time length according to any one of claims 1 to 10.
- 13. A computer program product comprising computer readable instructions which, when executed by a processor, implement a method of determining remaining in-use length as claimed in any one of claims 1 to 10.
Description
Method for determining remaining use time and related equipment Technical Field The application relates to the technical field of terminals, in particular to a method for determining the residual using time and related equipment. Background Terminal devices (e.g., mobile phones, notebook computers) have become an unavailable part of people's work and life, and people realize various functions through the terminal devices, so that the consumption speed of the electric quantity of the battery is very fast. In order to enable a user to know the electricity consumption condition of the battery, the remaining use time length of the battery can be predicted, and the remaining use time length can provide a certain reference for the terminal device in subsequent use (for example, reminding the user to charge in time or connecting an external power supply). In the related art, the predicted remaining use time of the battery has a problem of low prediction accuracy, resulting in poor user experience. Disclosure of Invention In view of the foregoing, it is necessary to provide a method for determining a remaining use time length and related apparatus, which can solve the problem that the existing predicted remaining use time length of a battery has low prediction accuracy. The application provides a method for determining remaining use time length, which is applied to terminal equipment, wherein the terminal equipment comprises a battery, the method comprises the steps of determining the current remaining capacity of the battery according to current state information of the battery, determining a use scene of the terminal equipment, determining an average power consumption curve corresponding to the use scene based on a pre-configured corresponding relation, 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, determining remaining use time length of the battery based on the current remaining capacity and the fitted average power consumption, and displaying the remaining use time length. By adopting the technical scheme, the current residual capacity of the battery is determined, the average power consumption curve corresponding to the current use scene is used for fitting the actual power consumption of the current use scene, the average power consumption after fitting is obtained, fluctuation of the residual use duration of the battery caused by fluctuation of the actual power consumption can be restrained, and the average power consumption at each moment under the current use scene can be accurately determined by fitting based on the average power consumption curve corresponding to the current use scene, and then the residual use duration of the battery is determined by the current residual capacity and the average power consumption after fitting, so that the accuracy of determining the residual use duration is improved, the equipment use experience of a user is improved, the phenomenon that the residual use duration of the battery in the same scene is prolonged is avoided, and the convenience of acquiring the residual use duration of the user is improved by displaying the residual use duration. In one possible implementation, the average power consumption curve is an average current curve indicating an average discharge current of the usage scenario, and determining the current power consumption of the usage scenario includes determining the current discharge current of the usage scenario, determining a post-fitting average power consumption corresponding to the current power consumption based on the current power consumption and the average power consumption curve, including determining a post-fitting average current corresponding to the current discharge current based on the current discharge current and the average current curve, and determining a remaining usage time of the battery based on the current remaining capacity and the post-fitting average power consumption, including determining a remaining usage time of the battery based on the current remaining capacity and the post-fitting average current. By adopting the technical scheme, the current residual capacity of the battery is determined, the average current curve corresponding to the current use scene is used for fitting the actual discharge current of the current use scene to obtain the fitted average current, so that the fluctuation of the residual use duration of the battery caused by the fluctuation of the actual discharge current can be restrained, and the average discharge current at each moment under the current use scene can be accurately determined by fitting based on the average current curve corresponding to the current use scene, and the residual use duration of the battery is determined by the current residual capacity and the fitted average current, so that the a