IP Library Granted Patent US 12693335
Granted Patent B2
US 12693335 · App. 17/994,098 · Granted Jul 28, 2026

Power display method and apparatus, and electronic device

Inventor: Shiwei Liu (Chang'an Dongguan, CN)
Assignee: VIVO MOBILE COMMUNICATION CO., LTD.
G01R31/3646G01R31/3648H01M10/425H02J7/42H01M2010/4271H01M2010/4278
View Patent ↗
Loading inventors, assignments & file history…
Monitor This Case
Get email alerts when status or documents change.
Order Certified Copies
Most orders are placed with the USPTO same day — all within 24 business hours.
Order via The Patent Place →
Pre-filled with this patent's details
Quick Facts
Patent No.
US 12693335
App. No.
17/994,098
Granted
Jul 28, 2026
Kind
B2
Abstract

Embodiments of the present disclosure provide a power display method and apparatus, and an electronic device. The method includes: determining, in a case that a target condition is satisfied, a target charging power in each of N pieces of preset duration, to obtain N target charging power, where N is a positive integer; determining a target consumed power in each of the N pieces of preset duration, to obtain N target consumed power; and generating a target charging curve according to a current remaining power, N target charging power, and N target consumed power of the electronic device, where the target condition is that the electronic device is in a charging state, or the electronic device is in a simulated charging state.

Claims (80)

1 . A power display method, comprising:

determining, in a case that a target condition is satisfied, a target charging power in each of N pieces of preset duration, to obtain N target charging power, wherein N is a positive integer;

determining a target consumed power in each of the N pieces of preset duration, to obtain N target consumed power;

generating a target charging curve according to a current remaining power, the N target charging power, and the N target consumed power of the electronic device, wherein the current remaining power is a power of the electronic device corresponding to a start time of a first piece of preset duration among the N pieces of preset duration, and the start time is determined based on a first input of a user; and

displaying the target charging curve,

wherein the target condition is that the electronic device is in a charging state, or the electronic device is in a simulated charging state, wherein the simulated charging state is that the electronic device is not electrically connected to a charging apparatus of the electronic device.

2 . The method according to claim 1 , wherein the determining a target charging power in each of N pieces of preset duration, to obtain N target charging power comprises:

obtaining first charging information of the electronic device; and

determining the target charging power in each of the N pieces of preset duration according to the first charging information, to obtain the N target charging power.

3 . The method according to claim 1 , wherein the determining a target consumed power in each of the N pieces of preset duration, to obtain N target consumed power comprises:

obtaining first power consumption information of the electronic device; and

determining the target consumed power in each of the N pieces of preset duration according to the first power consumption information, to obtain the N target consumed power.

4 . The method according to claim 1 , wherein the generating a target charging curve according to a current remaining power, the N target charging power, and the N target consumed power of the electronic device comprises:

determining a start point of the target charging curve according to the remaining power;

determining a target charged power in each piece of preset duration according to the target charging power and the target consumed power in each piece of preset duration;

determining a target point corresponding to each piece of preset duration on the target charging curve according to the target charged power; and

generating the target charging curve according to the start point and the target point.

5 . The method according to claim 4 , wherein the target charging curve comprises N target points, and each target point corresponds to one target charged power and one of the N pieces of preset duration; and

after the displaying the target charging curve, the method further comprises:

receiving an input by the user on a first point of the N target points; and

displaying, in response to the input, a target charged power and preset duration corresponding to the first point in a preset region corresponding to the first point.

6 . The method according to claim 1 , wherein the target condition is that the electronic device is in the charging state, and the method further comprises:

obtaining, in a case that the electronic device is in the charging state, a parameter of a first charging apparatus connected to the electronic device; and

displaying, in a case that the parameter of the first charging apparatus does not match a preset parameter, an identifier of a recommended charging apparatus and/or information about a target application recommended to be disabled.

7 . The method according to claim 1 , wherein the target charging curve comprises at least two charging curves, and a preset charging parameter corresponding to each charging curve is not all the same; and

the displaying the target charging curve comprises:

displaying the at least two charging curves in a same coordinate system.

8 . An electronic device, comprising:

a processor; and

a memory storing a computer program that is capable of running on the processor, wherein the computer program, when executed by the processor, causes the electronic device to perform the following steps:

determining, in a case that a target condition is satisfied, a target charging power in each of N pieces of preset duration, to obtain N target charging power, wherein N is a positive integer;

determining a target consumed power in each of the N pieces of preset duration, to obtain N target consumed power;

generating a target charging curve according to a current remaining power, the N target charging power, and the N target consumed power of the electronic device, wherein the current remaining power is a power of the electronic device corresponding to a start time of a first piece of preset duration among the N pieces of preset duration, and the start time is determined based on a first input of a user; and

displaying the target charging curve,

wherein the target condition is that the electronic device is in a charging state, or the electronic device is in a simulated charging state, wherein the simulated charging state is that the electronic device is not electrically connected to a charging apparatus of the electronic device.

9 . The electronic device according to claim 8 , wherein the determining a target charging power in each of N pieces of preset duration, to obtain N target charging power comprises:

obtaining first charging information of the electronic device; and

determining the target charging power in each of the N pieces of preset duration according to the first charging information, to obtain the N target charging power.

10 . The electronic device according to claim 8 , wherein the determining a target consumed power in each of the N pieces of preset duration, to obtain N target consumed power comprises:

obtaining first power consumption information of the electronic device; and

determining the target consumed power in each of the N pieces of preset duration according to the first power consumption information, to obtain the N target consumed power.

11 . The electronic device according to claim 8 , wherein the generating a target charging curve according to a current remaining power, the N target charging power, and the N target consumed power of the electronic device comprises:

determining a start point of the target charging curve according to the remaining power;

determining a target charged power in each piece of preset duration according to the target charging power and the target consumed power in each piece of preset duration;

determining a target point corresponding to each piece of preset duration on the target charging curve according to the target charged power; and

generating the target charging curve according to the start point and the target point.

12 . The electronic device according to claim 11 , wherein the target charging curve comprises N target points, and each target point corresponds to one target charged power and one of the N pieces of preset duration; and

after the displaying the target charging curve, the computer program, when executed by the processor, causes the electronic device to further perform the following steps:

receiving an input by the user on a first point of the N target points; and

displaying, in response to the input, a target charged power and preset duration corresponding to the first point in a preset region corresponding to the first point.

13 . The electronic device according to claim 8 , wherein the target condition is that the electronic device is in the charging state, the computer program, when executed by the processor, causes the electronic device to further perform the following steps:

obtaining, in a case that the electronic device is in the charging state, a parameter of a first charging apparatus connected to the electronic device; and

displaying, in a case that the parameter of the first charging apparatus does not match a preset parameter, an identifier of a recommended charging apparatus and/or information about a target application recommended to be disabled.

14 . The electronic device according to claim 8 , wherein the target charging curve comprises at least two charging curves, and a preset charging parameter corresponding to each charging curve is not all the same; and

the displaying the target charging curve comprises:

displaying the at least two charging curves in a same coordinate system.

15 . A non-transitory computer-readable storage medium storing a computer program, wherein the computer program, when executed by a processor, performs the following steps:

determining, in a case that a target condition is satisfied, a target charging power in each of N pieces of preset duration, to obtain N target charging power, wherein N is a positive integer;

determining a target consumed power in each of the N pieces of preset duration, to obtain N target consumed power;

generating a target charging curve according to a current remaining power, the N target charging power, and the N target consumed power of the electronic device, wherein the current remaining power is a power of the electronic device corresponding to a start time of a first piece of preset duration among the N pieces of preset duration, and the start time is determined based on a first input of a user; and

displaying the target charging curve,

wherein the target condition is that the electronic device is in a charging state, or the electronic device is in a simulated charging state, wherein the simulated charging state is that the electronic device is not electrically connected to a charging apparatus of the electronic device.

16 . The electronic device according to claim 15 , wherein the determining a target charging power in each of N pieces of preset duration, to obtain N target charging power comprises:

obtaining first charging information of the electronic device; and

determining the target charging power in each of the N pieces of preset duration according to the first charging information, to obtain the N target charging power.

17 . The electronic device according to claim 15 , wherein the determining a target consumed power in each of the N pieces of preset duration, to obtain N target consumed power comprises:

obtaining first power consumption information of the electronic device; and

determining the target consumed power in each of the N pieces of preset duration according to the first power consumption information, to obtain the N target consumed power.

18 . The electronic device according to claim 15 , wherein the generating a target charging curve according to a current remaining power, the N target charging power, and the N target consumed power of the electronic device comprises:

determining a start point of the target charging curve according to the remaining power;

determining a target charged power in each piece of preset duration according to the target charging power and the target consumed power in each piece of preset duration;

determining a target point corresponding to each piece of preset duration on the target charging curve according to the target charged power; and

generating the target charging curve according to the start point and the target point.

19 . The electronic device according to claim 18 , wherein the target charging curve comprises N target points, and each target point corresponds to one target charged power and one of the N pieces of preset duration; and

after the displaying the target charging curve, the computer program, when executed by the processor, further performs the following steps:

receiving an input by the user on a first point of the N target points; and

displaying, in response to the input, a target charged power and preset duration corresponding to the first point in a preset region corresponding to the first point.

20 . The electronic device according to claim 15 , wherein the target condition is that the electronic device is in the charging state, the computer program, when executed by the processor, further performs the following steps:

obtaining, in a case that the electronic device is in the charging state, a parameter of a first charging apparatus connected to the electronic device; and

displaying, in a case that the parameter of the first charging apparatus does not match a preset parameter, an identifier of a recommended charging apparatus and/or information about a target application recommended to be disabled.