WO2021239017A1 - 电量显示方法、装置及电子设备 - Google Patents

电量显示方法、装置及电子设备 Download PDF

Info

Publication number
WO2021239017A1
WO2021239017A1 PCT/CN2021/096188 CN2021096188W WO2021239017A1 WO 2021239017 A1 WO2021239017 A1 WO 2021239017A1 CN 2021096188 W CN2021096188 W CN 2021096188W WO 2021239017 A1 WO2021239017 A1 WO 2021239017A1
Authority
WO
WIPO (PCT)
Prior art keywords
target
charging
electronic device
power
preset
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Ceased
Application number
PCT/CN2021/096188
Other languages
English (en)
French (fr)
Inventor
刘石玮
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Vivo Mobile Communication Co Ltd
Original Assignee
Vivo Mobile Communication Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Vivo Mobile Communication Co Ltd filed Critical Vivo Mobile Communication Co Ltd
Priority to EP21813644.8A priority Critical patent/EP4160860A4/en
Publication of WO2021239017A1 publication Critical patent/WO2021239017A1/zh
Priority to US17/994,098 priority patent/US20230092801A1/en
Anticipated expiration legal-status Critical
Ceased legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G01MEASURING; TESTING
    • G01RMEASURING ELECTRIC VARIABLES; MEASURING MAGNETIC VARIABLES
    • G01R31/00Arrangements for testing electric properties; Arrangements for locating electric faults; Arrangements for electrical testing characterised by what is being tested not provided for elsewhere
    • G01R31/36Arrangements for testing, measuring or monitoring the electrical condition of accumulators or electric batteries, e.g. capacity or state of charge [SoC]
    • G01R31/3644Constructional arrangements
    • G01R31/3646Constructional arrangements for indicating electrical conditions or variables, e.g. visual or audible indicators
    • GPHYSICS
    • G01MEASURING; TESTING
    • G01RMEASURING ELECTRIC VARIABLES; MEASURING MAGNETIC VARIABLES
    • G01R31/00Arrangements for testing electric properties; Arrangements for locating electric faults; Arrangements for electrical testing characterised by what is being tested not provided for elsewhere
    • G01R31/36Arrangements for testing, measuring or monitoring the electrical condition of accumulators or electric batteries, e.g. capacity or state of charge [SoC]
    • G01R31/3644Constructional arrangements
    • G01R31/3648Constructional arrangements comprising digital calculation means, e.g. for performing an algorithm
    • HELECTRICITY
    • H01ELECTRIC ELEMENTS
    • H01MPROCESSES OR MEANS, e.g. BATTERIES, FOR THE DIRECT CONVERSION OF CHEMICAL ENERGY INTO ELECTRICAL ENERGY
    • H01M10/00Secondary cells; Manufacture thereof
    • H01M10/42Methods or arrangements for servicing or maintenance of secondary cells or secondary half-cells
    • H01M10/425Structural combination with electronic components, e.g. electronic circuits integrated to the outside of the casing
    • HELECTRICITY
    • H01ELECTRIC ELEMENTS
    • H01MPROCESSES OR MEANS, e.g. BATTERIES, FOR THE DIRECT CONVERSION OF CHEMICAL ENERGY INTO ELECTRICAL ENERGY
    • H01M10/00Secondary cells; Manufacture thereof
    • H01M10/42Methods or arrangements for servicing or maintenance of secondary cells or secondary half-cells
    • H01M10/48Accumulators combined with arrangements for measuring, testing or indicating the condition of cells, e.g. the level or density of the electrolyte
    • H01M10/488Cells or batteries combined with indicating means for external visualization of the condition, e.g. by change of colour or of light density
    • HELECTRICITY
    • H02GENERATION; CONVERSION OR DISTRIBUTION OF ELECTRIC POWER
    • H02JELECTRIC POWER NETWORKS; CIRCUIT ARRANGEMENTS OR SYSTEMS FOR SUPPLYING OR DISTRIBUTING ELECTRIC POWER; SYSTEMS FOR STORING ELECTRIC ENERGY
    • H02J7/00Circuit arrangements for charging or discharging batteries or for supplying loads from batteries
    • H02J7/40Circuit arrangements for charging or discharging batteries or for supplying loads from batteries characterised by the exchange of charge or discharge related data
    • H02J7/42Circuit arrangements for charging or discharging batteries or for supplying loads from batteries characterised by the exchange of charge or discharge related data with electronic devices having internal batteries, e.g. mobile phones
    • HELECTRICITY
    • H02GENERATION; CONVERSION OR DISTRIBUTION OF ELECTRIC POWER
    • H02JELECTRIC POWER NETWORKS; CIRCUIT ARRANGEMENTS OR SYSTEMS FOR SUPPLYING OR DISTRIBUTING ELECTRIC POWER; SYSTEMS FOR STORING ELECTRIC ENERGY
    • H02J7/00Circuit arrangements for charging or discharging batteries or for supplying loads from batteries
    • H02J7/80Circuit arrangements for charging or discharging batteries or for supplying loads from batteries including monitoring or indicating arrangements
    • HELECTRICITY
    • H01ELECTRIC ELEMENTS
    • H01MPROCESSES OR MEANS, e.g. BATTERIES, FOR THE DIRECT CONVERSION OF CHEMICAL ENERGY INTO ELECTRICAL ENERGY
    • H01M10/00Secondary cells; Manufacture thereof
    • H01M10/42Methods or arrangements for servicing or maintenance of secondary cells or secondary half-cells
    • H01M10/425Structural combination with electronic components, e.g. electronic circuits integrated to the outside of the casing
    • H01M2010/4271Battery management systems including electronic circuits, e.g. control of current or voltage to keep battery in healthy state, cell balancing
    • HELECTRICITY
    • H01ELECTRIC ELEMENTS
    • H01MPROCESSES OR MEANS, e.g. BATTERIES, FOR THE DIRECT CONVERSION OF CHEMICAL ENERGY INTO ELECTRICAL ENERGY
    • H01M10/00Secondary cells; Manufacture thereof
    • H01M10/42Methods or arrangements for servicing or maintenance of secondary cells or secondary half-cells
    • H01M10/425Structural combination with electronic components, e.g. electronic circuits integrated to the outside of the casing
    • H01M2010/4278Systems for data transfer from batteries, e.g. transfer of battery parameters to a controller, data transferred between battery controller and main controller

Definitions

  • the embodiments of the present application relate to the field of communication technology, and in particular, to a power display method, device, and electronic equipment.
  • the power of the electronic device can be supplemented by charging the electronic device, and when the electronic device is in a charging state, the electronic device usually displays the percentage of the power to remind the user of the charging status of the electronic device.
  • the above battery percentage can only indicate the current charging progress of the electronic device, and the charging process is usually a non-linear process, the user can only determine the current charging progress of the electronic device based on the battery percentage, and cannot determine the future charging status of the electronic device . That is, the flexibility of the above-mentioned power prompt method is relatively poor.
  • the embodiments of the present invention provide a power display method, device, and electronic equipment, so as to solve the problem of poor flexibility in prompting the power of the electronic equipment.
  • an embodiment of the present invention provides a power display method, the method includes: when a target condition is met, determining the target charging power in each of the N preset durations to obtain N targets Charge the power, N is a positive integer; determine the target power consumption in each of the N preset time periods, and get N target power consumption; according to the current remaining power of the electronic device, the N target charge-in power and N Generating a target charging curve for each target power consumption; 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.
  • an embodiment of the present invention also provides a power display device, the power display device includes: a determination module, a generation module, and a display module; the determination module is used to determine N presets when the target condition is met For each target charge-in power within the preset duration in the duration, N target charge-in power is obtained; and the target power consumption within each preset duration in the N preset durations is determined, and N target power consumption is obtained, where N is Positive integer; generating module, used to generate the target charging curve according to the current remaining power of the electronic device, the N target charging power determined by the determining module, and N target power consumption; the display module, used to display the target charging generated by the generating module Curve; where the above target condition is that the electronic device is in a charging state, or the electronic device is in a simulated charging state.
  • an embodiment of the present invention provides an electronic device, including a processor, a memory, and a computer program stored on the memory and running on the processor.
  • the computer program is executed by the processor to achieve the following On the one hand, the steps of the battery display method.
  • an embodiment of the present invention provides a computer-readable storage medium on which a computer program is stored.
  • the computer program is executed by a processor, the steps of the power display method as described in the first aspect are implemented. .
  • the electronic device when the electronic device satisfies the target condition (the electronic device is in a charging state, or the electronic device is in a simulated charging state), it can determine the target charge within each of the N preset durations. Enter the power, obtain N target charge-in power, and determine the target power consumption in each of the N preset time lengths to obtain N target power consumption. Then, the electronic device may generate a target charging curve according to the current remaining power of the electronic device, N target charged power, and N target power consumption. Then, the electronic device can display the target charging curve.
  • the electronic device can display the target charging curve to intuitively display the future charging status of the electronic device to the user, so that the user can not only view the current charging progress, but also You can view the future charging status, which improves the flexibility of the electronic device to prompt the power.
  • FIG. 1 is a schematic structural diagram of a possible operating system provided by an embodiment of the present invention
  • FIG. 2 is a schematic flow chart of a method for displaying electricity provided by an embodiment of the present invention
  • FIG. 3 is one of the schematic diagrams of an interface applied by a power display method provided by an embodiment of the present invention
  • FIG. 4 is a second schematic diagram of an interface applied by a power display method provided by an embodiment of the present invention.
  • FIG. 5 is a third schematic diagram of an interface applied by a power display method according to an embodiment of the present invention.
  • FIG. 6 is a fourth schematic diagram of an interface applied by a power display method according to an embodiment of the present invention.
  • FIG. 7 is a fifth schematic diagram of an interface applied by a power display method according to an embodiment of the present invention.
  • FIG. 8 is a sixth schematic diagram of an interface applied by a power display method according to an embodiment of the present invention.
  • FIG. 9 is a seventh schematic diagram of an interface applied by a power display method according to an embodiment of the present invention.
  • FIG. 10 is a schematic structural diagram of a power display device provided by an embodiment of the present invention.
  • FIG. 11 is a schematic structural diagram of an electronic device provided by an embodiment of the present invention.
  • words such as “first” and “second” are used for the same or similar items with basically the same function or effect. Distinguishing, those skilled in the art can understand that words such as “first” and “second” do not limit the quantity and execution order. For example, the first input and the second input are used to distinguish different inputs, not to describe a specific order of input.
  • the execution subject of the power display method provided by the embodiment of the present invention may be the above-mentioned electronic device (including mobile electronic equipment and non-mobile electronic equipment), or may be a functional module and/or function in the electronic device that can implement the power display method
  • the entity can be specifically determined according to actual usage requirements, and is not limited in the embodiment of the present invention.
  • an electronic device is taken as an example to illustrate the power display method provided by the embodiment of the present invention.
  • the electronic device in the embodiment of the present invention may be a mobile electronic device or a non-mobile electronic device.
  • Mobile electronic devices can be mobile phones, tablet computers, laptops, handheld computers, in-vehicle electronic devices, wearable devices, ultra-mobile personal computers (UMPC), netbooks or personal digital assistants (personal digital assistants, PDAs)
  • the non-mobile electronic device may be a personal computer (PC), a television (television, TV), a teller machine, or a self-service machine, etc.; the embodiment of the present invention does not specifically limit it.
  • the electronic device in the embodiment of the present invention may be an electronic device with an operating system.
  • the operating system may be an Android operating system, an ios operating system, or other possible operating systems, which is not specifically limited in the embodiment of the present invention.
  • the following takes the operating system shown in FIG. 1 as an example to introduce the software environment to which the power display method provided by the embodiment of the present invention is applied.
  • FIG. 1 it is a schematic structural diagram of a possible operating system provided by an embodiment of the present invention.
  • the architecture of the operating system includes 4 layers, namely: application layer, application framework layer, system runtime library layer, and kernel layer (specifically, it may be the Linux kernel layer).
  • the application layer includes various applications in the operating system (including system applications and third-party applications).
  • the application framework layer is the framework of the application. Developers can develop some applications based on the application framework layer while complying with the development principles of the application framework.
  • the system runtime library layer includes a library (also called a system library) and an operating system runtime environment.
  • the library mainly provides various resources required by the operating system.
  • the operating system operating environment is used to provide a software environment for the operating system.
  • the kernel layer is the operating system layer of the operating system and belongs to the lowest level of the operating system software.
  • the kernel layer is based on the Linux kernel to provide core system services and hardware-related drivers for the operating system.
  • developers can develop a software program that implements the power display method provided by the embodiment of the present invention based on the system architecture of the operating system shown in FIG.
  • the power display method can be run based on the operating system as shown in FIG. 1. That is, the processor or the electronic device can implement the power display method provided by the embodiment of the present invention by running the software program in the operating system.
  • the power display method provided by the embodiments of the present invention can be applied in a variety of scenarios. For example, it can be applied to a scenario where the user needs to know the power of the electronic device for a certain period of time in the future during real charging, or it can be applied to simulate charging when the user It is required to know the charging power of the electronic device for a certain period of time in the future.
  • the electronic device can calculate the expected charge and consumption of the electronic device within a certain period of time in the future. Power. At this time, the electronic device can also generate an estimated charging curve based on the current remaining power of the electronic device and display it to the user. In this way, the user can intuitively see the charging situation in a certain period of time in the future, which can improve the reminder of the electronic device The flexibility of power.
  • Step 201 When the electronic device satisfies the target condition, it determines the target charge-in power within each of the N preset time durations, and obtains N target charge-in power levels.
  • the aforementioned target condition is that the electronic device is in a charging state, or the electronic device is in a simulated charging state.
  • the above-mentioned electronic device being in a charging state means that the electronic device is electrically connected to the charging device of the electronic device.
  • the aforementioned electronic device being in a simulated charging state means that the electronic device is not electrically connected to the charging device of the electronic device. Specifically, it refers to a state in which the electronic device is not physically connected to the charging device of the electronic device, or the electronic device is physically connected to the charging device of the electronic device, but is not electrically connected to the charging device of the electronic device.
  • the electronic device when the electronic device detects that the electronic device is electrically connected to the charging device of the electronic device, it can calculate the target charge in each of the N preset durations, that is, determine the N target charge Into the battery.
  • the aforementioned preset duration may be the default of the system or set by the user, which is not limited in the embodiment of the present invention.
  • the aforementioned preset duration may be 2 minutes.
  • the value of N may be the system default or set by the user, which is not limited in the embodiment of the present invention. Among them, N is a positive integer.
  • the electronic device can obtain the value of N by dividing the estimated total duration by the preset duration.
  • the electronic device can obtain the value of N as 15.
  • the electronic device can obtain the estimated total duration according to the preset duration multiplied by N.
  • the target charge-in power within each preset time period may be equal to the charge-in charge rate multiplied by the charge-in duration (that is, the preset time period).
  • the aforementioned charge-in power rate can be obtained through experiments, for example, the statistical mean value of the historical charge-in power rate of the charge-in power rate.
  • the target charge-in amount of electricity within each preset time period may be the same or different, which is not limited in the embodiment of the present invention.
  • the above-mentioned target charge-in power is affected by many factors, for example, the battery voltage of the electronic device, the battery temperature, or the temperature of the environment where the electronic device is located. Therefore, the target charge level may be different within each preset time period.
  • the user may trigger the electronic device to perform the calculation .
  • step 201 may specifically include the following steps 201a and 201b:
  • Step 201a The electronic device receives the user's first input when the target condition is met.
  • the above-mentioned first input may include: a click input on the screen of the electronic device, or a voice command input by the user, or a specific gesture input by the user.
  • the specific one may be determined according to actual usage requirements. Not limited.
  • the specific gesture in the embodiment of the present invention may be any one of a single click gesture, a slide gesture, a drag gesture, a pressure recognition gesture, a long press gesture, an area change gesture, a double press gesture, and a double tap gesture; in the embodiment of the present invention
  • the click input can be one-click input, double-click input, or any number of click input, etc., and it can also be long-press input or short-press input.
  • the aforementioned click input to the screen of the electronic device may specifically be a click input to a specific application on the screen of the electronic device.
  • the specific application program may be an existing application program or a newly-added application program, which is not limited in the embodiment of the present invention.
  • Step 201b In response to the aforementioned first input, the electronic device determines the target charge-in power within each of the N preset time periods, and obtains N target charge-in power levels.
  • the user goes out at 9 am, finds that the battery of the mobile phone is low at 8:30, and needs to charge the electronic device. Taking the preset time of 2 minutes, the user needs to know the charging status of the electronic device in the next 30 minutes as an example.
  • the user can click on the application icon of the "Power Management" application (that is, the above-mentioned specific application, 31 in Figure 3).
  • the electronic device calculates each of the 15 preset durations. The target charge within the time period will get 15 target charge.
  • the electronic device will start to calculate the target charge in each of the N preset durations, which can avoid miscalculation of the electronic device and reduce the burden of the electronic device. Work load.
  • Step 202 The electronic device determines the target power consumption in each of the N preset time periods, and obtains N target power consumption.
  • the target power consumption within each preset time period mentioned above may include at least one of the following: power consumed by applications running on the electronic device, external devices of the electronic device (for example, speakers, peripheral keyboards) Etc.)
  • the power consumed by the electronic equipment system for example, screens, electronic components, etc.
  • the above-mentioned application program running on the electronic device may include at least one of the following: an application program running in the background of the electronic device, and an application program running in the foreground of the electronic device.
  • the target condition is to simulate charging an electronic device
  • the above-mentioned running application program is not a real running application program, but refers to a simulated running application program.
  • the above-mentioned simulated running application can be selected by the user through the electronic device.
  • a window for charging the electronic device in a simulated operation will automatically pop up, thereby prompting the user to charge and promptly recommending the technical effect of a charging strategy suitable for the user.
  • area 41a displays 4 game application options, namely Game 1 option, Game 2 option, Game 3 option, and Game 4 option;
  • area 41b displays 4 video application options, namely Video 1 option, video 2 option, video 3 option, and video 4 option;
  • area 41c displays 4 other application options, which are camera options, music options, map options, and phone options.
  • the user can click the Game 1 option (ie, 42 in FIG. 4), and then, the electronic device can calculate the target power consumption of the Game 1 application within each of the 15 preset durations.
  • the electronic device may obtain, for each application, a statistical average of the historical power consumption corresponding to each application when the electronic device is working normally.
  • the target power consumption within each preset time period described above may be the same or different, which is not limited in the embodiment of the present invention.
  • the determination of the target charged power in each of the N preset time durations in step 201 to obtain the N target charged power and the execution of step 202 have no obvious sequence.
  • the electronic device may perform the calculation in step 201 before performing step 202 to calculate the target charge-in power in each of the N preset time lengths to obtain N target charge-in power levels, or perform it after performing step 202 In step 201, calculate the target charged power in each of the N preset time lengths to obtain N target charged power. It is also possible to perform the calculation in step 201 for N preset time lengths while performing step 202. For each target charge-in power within the preset duration in each of the N target charge-in power levels, N target charge-in power levels can be set according to actual needs, which is not limited in the embodiment of the present invention.
  • Step 203 The electronic device generates a target charging curve according to the current remaining power of the electronic device, N target charge-in power, and N target power consumption.
  • the current remaining power of the electronic device refers to the power of the electronic device corresponding to the start time of the first preset duration among the N preset durations.
  • the aforementioned step 203 may specifically include the following steps 203a to 203d:
  • Step 203a The electronic device determines the starting point of the target charging curve according to the above-mentioned remaining power.
  • Step 203b The electronic device determines the target charging power for each preset duration according to the target charging power and the target power consumption within each preset duration.
  • the target charging power for each preset duration is equal to the difference between the target charged power and the target power consumption within each preset duration.
  • Step 203c The electronic device determines the target point corresponding to each preset duration on the target charging curve according to the above-mentioned target charging power.
  • the electronic device can determine N target points according to the target charging power in each preset time period, and each target point corresponds to a preset time period and the target charging power in the preset determined by the electronic device.
  • Step 203d The electronic device generates the target charging curve according to the above-mentioned starting point and target point.
  • the electronic device may connect the above-mentioned starting point and the target point to draw a target charging curve, and then generate the target curve.
  • the electronic device can determine the starting point according to the current remaining power of the electronic device, and then the electronic device can calculate a target charge and charge every 3 minutes in the next hour. For a target power consumption, the target charging power minus the target power consumption can determine a target charging power. Then, the electronic device can determine a point corresponding to the target charging curve according to the target charging power and a period of 3 minutes, so that 20 estimated points corresponding to the target charging curve can be obtained. Finally, the electronic device can connect the starting point and 20 points to draw and generate the target charging curve.
  • Step 204 The electronic device displays the target charging curve.
  • the aforementioned target charging curve may be one curve or multiple curves, which is not limited in the embodiment of the present invention.
  • the electronic device may display the target charging curve in the window. For example, when the electronic device is in a charging state, the electronic device may pop up a window in which the target charging curve is displayed.
  • the above-mentioned window may be an existing window or a newly-added window, which is not limited in the embodiment of the present invention.
  • the electronic device may display the target charging curve for a predetermined period of time, and after displaying the target charging curve for the predetermined period of time, the electronic device may cancel the display of the target charging curve.
  • the electronic device may display the target charging curve in the coordinate system.
  • the coordinate system may be a rectangular coordinate system, where the abscissa of the rectangular coordinate system represents the preset duration, and may be in the form of time intervals, for example, 10 minutes (min), 20min, and 30min, etc., or may be in the form of time, for example, 9:00, 9:10 and 9:20, etc.; the ordinate of the Cartesian coordinate system represents the estimated charging power, which can be in the form of percentage of power, for example, 30%, 40%, and 50%, etc., or milliampere hour Forms, for example, 1000 mAh, 1500mAh and 2000mAh, etc.
  • the electronic device can adjust the horizontal and vertical coordinate intervals of the above-mentioned rectangular coordinate system according to the preset duration, the current remaining power and the remaining charging duration, etc.
  • the screen 51 of the electronic device displays the target charging curve for one hour in the future, and the abscissa of the rectangular coordinate system 52 respectively shows 10 min. , 20min, 30min, 40min, 50min, and 60min, the ordinate of the rectangular coordinate system 52 shows the initial power and 100% respectively.
  • Curve 53 is displayed in this rectangular coordinate system.
  • the electronic device may simultaneously display the target charging curve in the off-screen state of the electronic device and the target charging curve in the on-screen state of the electronic device.
  • the electronic device when the electronic device meets the target condition (the electronic device is in a charging state, or the electronic device is in a simulated charging state), it can be determined that each of the N preset durations is within the preset duration
  • the target charge-in power of obtain N target charge-in power, and determine the target power consumption in each of the N preset time lengths, and obtain N target power consumption.
  • the electronic device may generate a target charging curve according to the current remaining power of the electronic device, N target charged power, and N target power consumption. Then, the electronic device can display the target charging curve.
  • the electronic device can display the target charging curve to intuitively display the future charging situation of the electronic device to the user, so that the user can not only view the current charging progress, but also You can view the future charging status, which improves the flexibility of the electronic device to prompt the power.
  • the user can view the estimated charging power and the preset duration corresponding to any point on the target charging curve in real time.
  • the method further It may include the following steps 205:
  • Step 205 The electronic device receives the user's input to the first point among the N target points.
  • the above-mentioned user input to the first point of the N target points may include: a click input to the first point, or a voice command input by the user, or a specific gesture input by the user, which may be specifically based on The actual use requirement is determined, which is not limited in the embodiment of the present invention.
  • Step 206 In response to the aforementioned input, the electronic device displays the target charging power corresponding to the first point and the preset duration in the preset area corresponding to the first point.
  • the aforementioned preset area may be any area on the screen, for example, it may be an area above the screen area where the first point is located, or may be an area below the screen area where the first point is located, or may be the first point The left area of the screen area where the first point is located, or the area to the right of the screen area where the first point is located, or the upper right area of the screen area where the first point is located, or the lower right area of the screen area where the first point is located, Or it may be the upper left area of the screen area where the first point is located, or may be the lower left area of the screen area where the first point is located, which can be specifically set according to actual needs, which is not limited in the embodiment of the present invention.
  • the user can view the target charging power in different time periods in real time by clicking on the point on the target charging curve, which is convenient for the user to judge the charging status of the electronic device in a more refined manner, so that the user can plan the charging behavior more reasonably.
  • the electronic device can consider the impact of multiple types of information on the target charge-in power, and then calculate the target charge-in power more accurately.
  • the determination of the target charge-in power in each of the N preset time lengths in the foregoing step 201 to obtain the N target charge-in power levels may specifically include the following steps 201c and 201d:
  • Step 201c The electronic device obtains the first charging information of the electronic device.
  • the above-mentioned first charging information is information related to charging of an electronic device.
  • the aforementioned first charging information may include at least one of the following: battery voltage, ambient temperature, battery temperature, charging protocol, charging strategy, and estimated temperature rise. It should be noted that the first charging information includes but is not limited to the aforementioned 6 types of information.
  • the above-mentioned battery temperature and ambient temperature can be obtained through the temperature sensor of the electronic device, and the above-mentioned charging strategy is a built-in charging algorithm of the electronic device system.
  • the user can determine the charging behavior based on information such as the temperature rise and remaining power of the electronic device.
  • the target charge-in amount of electricity may change with the change of the first charge information.
  • the target charge-in power within the preset time period may increase with the increase of the first charge information, or the target charge-in charge within the preset time period may decrease with the decrease of the first charge information, or ,
  • the target charge-in power within the preset time period may increase as the first charging information decreases, or the target charge-in power within the preset time period may decrease as the first charge information increases.
  • the target charge-in amount of electricity within the preset time period may decrease as the ambient temperature increases.
  • Example 2 If the first charging information is charging protocol A, the target charged power in the preset time period is A, if the first charging information is charging protocol B, the target charged power in the preset time period is B, if The first charging information is the charging protocol C, and the target charged power in the preset time period is C.
  • Step 201d The electronic device determines, according to the first charging information, the target charge-in power within each of the N preset time periods, and obtains N target charge-in power levels.
  • the electronic device when the electronic device calculates the target charging power within each preset time period, it may obtain the first charging information at the start time of each preset time period, and then the electronic device may obtain the first charging information according to each start time period.
  • the first charging information is used to calculate the target charging power within each preset time period.
  • the electronic device can fully consider the impact of the first charging information on the target charged power, so that the target charged power within each preset time period can be calculated more accurately, and then the power can be charged according to the more accurate target. Accurately generate the target charging curve.
  • step 202 may specifically include the following steps 202a and 202b:
  • Step 202a The electronic device obtains the first consumption information of the electronic device.
  • the aforementioned first consumption information is information related to the current operation of the electronic device.
  • the above-mentioned first consumption information includes at least one item: the operating status of the application program, the operating status of the external device of the electronic device, and the operating status of the electronic device system.
  • the running status of the application program can include the running status of the high-load application program, and the running status of the low-load application program can be ignored;
  • the operating status of the electronic device system can include the screen display status, the high-speed data exchange status, etc.; the external device of the electronic device
  • the working conditions of the speakers can include the working conditions of the speakers and so on.
  • Step 202b The electronic device determines, according to the first consumption information, the target power consumption in each of the N preset time periods, and obtains N target power consumption.
  • the electronic device can calculate the statistical average of the historical power consumption of each application, obtain the power consumption per unit time, and use the obtained power consumption per unit time as a benchmark to calculate the target within the preset time period. Power consumption. For example, the electronic device calculates 5% of the power consumption of the application A every 10 minutes based on the historical power consumption of the application A. Using this as a benchmark, the electronic device can calculate the target power consumption of the application A for 2 minutes to consume 1%.
  • the electronic device when the electronic device calculates the target power consumption within each preset time period, it may obtain the first consumption information at the start time of each preset time period, and then the electronic device may obtain the first consumption information according to each start time.
  • a consumption information is used to calculate the target power consumption within each preset time period.
  • the electronic device may obtain the first consumption information according to each target duration, where the target duration may be at least two preset durations.
  • the duration corresponds to the total duration, and then the electronic device can calculate the target power consumption within each preset duration in the target duration according to the first consumption information acquired at the start time of the target duration.
  • the electronic device can more accurately calculate the target power consumption within each preset time period by acquiring the first consumption information, so that the target power consumption can be used to generate the target charging curve more accurately.
  • the multiple curves may be the target charging curves under different charging protocols displayed by the electronic device according to different charging protocols supported by the electronic device.
  • the foregoing step 204 may specifically include the following step 204a:
  • Step 204a The electronic device displays at least two charging curves in the same coordinate system.
  • the foregoing preset charging parameters may include at least one of the following: a charging protocol, an ambient temperature, and a charging strategy. It should be noted that the preset charging parameters include but are not limited to the aforementioned three parameters.
  • the electronic device may calculate N target charged power levels and N target power consumptions corresponding to each charging protocol. Electricity, so as to generate the target charging curve corresponding to each charging protocol.
  • the electronic device may respectively display the target charging curve of charging protocol 1, the target charging curve of charging protocol 2, and the target charging curve of charging protocol 3 in the rectangular coordinate system 52.
  • the electronic device when the electronic device is in a charging state, the electronic device can only display the target charging curve under the current charging protocol and the target charging curve under the charging protocol with a better estimated charging effect, without displaying the electronic device Target charging curve under all supported charging protocols.
  • the electronic device can display the target charging curve under different preset charging parameters in the same coordinate system, which can facilitate the user to view and compare the future charging conditions under different preset charging parameters, so that the user has a more comprehensive understanding of the electronic The charging status of the device.
  • the electronic device may prompt the user of the charging devices corresponding to the at least two charging curves.
  • the displaying of at least two charging curves in the above step 204a may specifically include the following step 204a1:
  • Step 204a1 The electronic device displays at least two target charging curves and displays the first identification.
  • the above-mentioned first identifier is used to indicate the preset charging parameters corresponding to the above-mentioned at least two target charging curves respectively.
  • the foregoing first identifier may be one or multiple, which is not limited in the embodiment of the present invention.
  • the logo in this application may include at least one of the following: text and pictures.
  • the method may further include the following steps 204b and 204c:
  • Step 204b The electronic device receives the second input for the first identifier.
  • the above-mentioned second input may include: a click input to the first identifier, or a voice command input by the user, or a specific gesture input by the user. Specifically, it may be determined according to actual usage requirements. This is not limited.
  • Step 204c The electronic device displays the second identifier.
  • the above-mentioned second identifier is used to prompt the user of the charging devices corresponding to at least two target charging curves respectively.
  • the aforementioned charging device may include a charger and a charging data line.
  • the foregoing second identifier may be one or multiple, which is not limited in the embodiment of the present invention.
  • the electronic device displays the charging device display interface 61, and the electrical device display interface 61 displays the protocol 1. Pictures and names of charger 1 and data line 1 corresponding to 1, pictures and names of charger 2 and data line 2 corresponding to protocol 2, and pictures and names of charger 3 and data line 3 corresponding to protocol 31.
  • the electronic device can intuitively prompt the user of the charging device supported by the electronic device by displaying the second identifier for indicating the charging device, and it is convenient for the user to select the charging device from the charging device.
  • the electronic device when the electronic device is in a charging state, the electronic device may prompt the user whether the current charging device is the best charging device.
  • the foregoing target condition is that the electronic device is in a charging state
  • the method may further include the following steps 206 and 207:
  • Step 206 When the electronic device is in a charging state, the electronic device acquires the parameters of the first charging device connected to the electronic device.
  • the electronic device may send a charging protocol signal to the charging device, and when the charging device receives the charging protocol signal, it may send its own parameters to the electronic device.
  • Step 207 When the parameters of the first charging device do not match the preset parameters, the electronic device displays the identification of the recommended charging device, and/or displays the target application information that is recommended to be turned off.
  • the preset parameter may be a parameter of a recommended charging device, or a parameter preset by the user, which is not limited in the embodiment of the present invention.
  • the identification of the recommended charging device may include: the identification of the recommended charger and the identification of the recommended data line.
  • the recommended charging device can make the battery of the electronic device fully charged for a shorter time or the charging voltage is more stable, which is not limited in the embodiment of the present invention.
  • the aforementioned target application information recommended to be closed may include: the name of the recommended application to be closed, and a picture of the recommended application to be closed.
  • the electronic device when the electronic device is electrically connected to the charging device 2, the electronic device detects that the parameters of the charging device 2 do not match the preset parameters, as shown in FIG. 9, the electronic device can display the charging device 2 on the upper screen 71 The target charging curve corresponding to charging protocol 2 and the target charging curve corresponding to charging protocol 1 with a better charging effect. At the same time, the electronic device can display the recommended picture and name of the charger 1 and the data cable 1 on the lower screen 72, and display the text "it is recommended to close the application 1".
  • the electronic device does not need to display the identification of the recommended charging device or the target application information that is recommended to be turned off.
  • the electronic device when the electronic device is in a charging state, the electronic device can detect the impact of the opened high-load application on the charging rate in real time. If it causes a significant impact (for example, exceeds a certain threshold), the electronic device can The target charging curve is updated and a reminder message is displayed. The reminder message is used to prompt the user to exit the running high-load application. The user can adjust the charging behavior in time according to the target charging curve and reminder information.
  • the electronic device when the electronic device detects that the first charging device is not the most matching charging device, it can display the recommended charging device or the target application information that is recommended to be turned off, so that the user can switch the charging device to a charging device with a better charging effect. And the application can be closed to reduce power consumption, which can improve the charging effect and save charging time.
  • FIG. 10 is a schematic diagram of a possible structure of a power display device provided by an embodiment of the present invention.
  • the power display device 600 includes: a determination module 601, a generation module 602, and a display module 603, wherein: a determination module 601 , Used to determine the target charge-in power in each of the N preset durations when the target conditions are met, to obtain the N target charge-in power levels; and to determine each of the N preset durations The target power consumption within the time period, N target power consumption is obtained, and N is a positive integer; the generation module 602 is used to generate N target charge-in power and N target power consumption determined by the determining module 601 according to the current remaining power of the electronic device , Generate a target charging curve; the display module 603, for displaying the target charging curve generated by the generating module 602; wherein the above target condition is that the electronic device is in a charging state, or the electronic device is in a simulated charging state.
  • a determination module 601 Used to determine the target charge-in
  • the apparatus 600 further includes: an obtaining module 604; an obtaining module 604, configured to obtain first charging information of the electronic device; The charging information is used to determine the target charge-in power in each of the N preset time periods, and obtain N target charge-in power levels.
  • the apparatus 600 further includes: an obtaining module 604; an obtaining module 604, configured to obtain first power consumption information of an electronic device; and a determining module 601, specifically configured to obtain the first power consumption information obtained by the obtaining module 604 For power consumption information, determine the target power consumption in each of the N preset time periods, and obtain N target power consumption.
  • the determining module 601 is also used to determine the starting point of the target charging curve according to the remaining power; and to determine the target charging power for each preset duration according to the target charge-in power and the target power consumption within each preset duration And according to the target charging power to determine the target point corresponding to each preset duration on the target charging curve; the generating module 602 is specifically configured to generate the target charging curve according to the starting point and the target point determined by the determining module 601.
  • the device 600 further includes: a receiving module 605; a receiving module 605, configured to receive a user's response to the first point among the N target points when the target charging curve includes N target points Each target point corresponds to a target charging power and a preset duration of N preset durations; the display module 603 is also used to respond to the input received by the receiving module 605, in the preset period corresponding to the first point In the setting area, the target charging power corresponding to the first point and the preset duration are displayed.
  • a receiving module 605 configured to receive a user's response to the first point among the N target points when the target charging curve includes N target points
  • Each target point corresponds to a target charging power and a preset duration of N preset durations
  • the display module 603 is also used to respond to the input received by the receiving module 605, in the preset period corresponding to the first point In the setting area, the target charging power corresponding to the first point and the preset duration are displayed.
  • the apparatus 600 further includes: an obtaining module 604; the above target condition is that the electronic device is in a charging state; and the obtaining module 604 is used to obtain a connection with the electronic device when the electronic device is in a charging state.
  • the display module 603 is also used to display the identification of the recommended charging device when the parameters of the first charging device acquired by the acquiring module 604 do not match the preset parameters, and/or display Recommended target application information to be closed.
  • the target charging curve includes at least two charging curves, and the preset charging parameters corresponding to each charging curve are not all the same; the display module 603 is specifically configured to display at least two charging curves in the same coordinate system.
  • the modules that must be included in the power display device 600 are indicated by solid line boxes, such as the determination module 601; the modules that may or may not be included in the power display device 600 are indicated by dashed boxes, such as Receiving module 605.
  • the power display device can determine each of the N preset durations when the target condition is satisfied (the electronic device is in a charging state, or the electronic device is in a simulated charging state) The target charge-in power in, obtain N target charge-in power, and determine the target power consumption in each of the N preset time lengths, and obtain N target power consumption. Then, the power display device can generate a target charging curve according to the current remaining power of the electronic device, N target charged power, and N target power consumption. Then, the power display device can display the target charging curve.
  • the power display device can display the target charging curve to intuitively display the future charging status of the electronic equipment to the user, so that the user can not only view the current charging progress, but also You can also view the future charging status, which improves the flexibility of electronic devices to prompt the battery.
  • the power display device provided in the embodiment of the present invention can implement each process in the foregoing method embodiment, and in order to avoid repetition, details are not described herein again.
  • the electronic device 100 includes but is not limited to: a radio frequency unit 101, a network module 102, an audio output unit 103, an input unit 104, a sensor 105, and a display unit 106, a user input unit 107, an interface unit 108, a memory 109, a processor 110, and a power supply 111 and other components.
  • a radio frequency unit 101 includes but is not limited to: a radio frequency unit 101, a network module 102, an audio output unit 103, an input unit 104, a sensor 105, and a display unit 106, a user input unit 107, an interface unit 108, a memory 109, a processor 110, and a power supply 111 and other components.
  • the structure of the electronic device 100 shown in FIG. 11 does not constitute a limitation on the electronic device, and the electronic device 100 may include more or less components than those shown in the figure, or combine certain components, or Different component arrangements.
  • the electronic device 100 includes, but is not limited to, a mobile phone, a
  • the processor 110 is configured to determine the target charge-in power within each of the N preset durations when the target condition is met, to obtain N target charge-in power levels; and determine N preset durations The target power consumption within each preset time period in each of the N target power consumptions is obtained, where N is a positive integer; and according to the current remaining power of the electronic device, the N target charging power and N target power consumption determined by the determining module, Generate a target charging curve; the display unit 106 is used to display the 110 target charging curve generated by the processor; wherein, the above target condition is that the electronic device is in a charging state, or the electronic device is in a simulated charging state.
  • the Target charge-in power when the electronic device satisfies the target condition (the electronic device is in a charging state, or the electronic device is in a simulated charging state), the Target charge-in power, obtain N target charge-in power levels, and determine the target power consumption in each of the N preset time periods to obtain N target power consumption levels. Then, the electronic device may generate a target charging curve according to the current remaining power of the electronic device, N target charged power, and N target power consumption. Then, the electronic device can display the target charging curve.
  • the electronic device can display the target charging curve to intuitively display the future charging status of the electronic device to the user, so that the user can not only view the current charging progress, but also You can check the future charging status, which improves the flexibility of the electronic device to prompt the battery
  • the radio frequency unit 101 can be used for receiving and sending signals in the process of sending and receiving information or talking. Specifically, after receiving the downlink data from the base station, it is processed by the processor 110; in addition, Uplink data is sent to the base station.
  • the radio frequency unit 101 includes, but is not limited to, an antenna, at least one amplifier, a transceiver, a coupler, a low noise amplifier, a duplexer, and the like.
  • the radio frequency unit 101 can also communicate with the network and other devices through a wireless communication system.
  • the electronic device 100 provides users with wireless broadband Internet access through the network module 102, such as helping users to send and receive emails, browse web pages, and access streaming media.
  • the audio output unit 103 may convert the audio data received by the radio frequency unit 101 or the network module 102 or stored in the memory 109 into an audio signal and output it as sound. Moreover, the audio output unit 103 may also provide audio output related to a specific function performed by the electronic device 100 (for example, call signal reception sound, message reception sound, etc.).
  • the audio output unit 103 includes a speaker, a buzzer, a receiver, and the like.
  • the input unit 104 is used to receive audio or video signals.
  • the input unit 104 may include a graphics processing unit (GPU) 1041 and a microphone 1042.
  • the graphics processor 1041 is configured to monitor images of still pictures or videos obtained by an image capture device (such as a camera) in a video capture mode or an image capture mode.
  • the data is processed.
  • the processed image frame can be displayed on the display unit 106.
  • the image frame processed by the graphics processor 1041 may be stored in the memory 109 (or other storage medium) or sent via the radio frequency unit 101 or the network module 102.
  • the microphone 1042 can receive sound, and can process such sound into audio data.
  • the processed audio data can be converted into a format that can be sent to a mobile communication base station via the radio frequency unit 101 for output in the case of a telephone call mode.
  • the electronic device 100 also includes at least one sensor 105, such as a light sensor, a motion sensor, and other sensors.
  • the light sensor includes an ambient light sensor and a proximity sensor.
  • the ambient light sensor can adjust the brightness of the display panel 1061 according to the brightness of the ambient light.
  • the proximity sensor can close the display panel 1061 and the display panel 1061 when the electronic device 100 is moved to the ear. / Or backlight.
  • the accelerometer sensor can detect the magnitude of acceleration in various directions (usually three-axis), and can detect the magnitude and direction of gravity when stationary, and can be used to identify the posture of electronic devices (such as horizontal and vertical screen switching, related games) , Magnetometer attitude calibration), vibration recognition related functions (such as pedometer, percussion), etc.; sensor 105 can also include fingerprint sensors, pressure sensors, iris sensors, molecular sensors, gyroscopes, barometers, hygrometers, thermometers, Infrared sensors, etc., will not be repeated here.
  • the display unit 106 is used to display information input by the user or information provided to the user.
  • the display unit 106 may include a display panel 1061, and the display panel 1061 may be configured in the form of a liquid crystal display (LCD), an organic light-emitting diode (OLED), etc.
  • LCD liquid crystal display
  • OLED organic light-emitting diode
  • the user input unit 107 may be used to receive inputted numeric or character information, and generate key signal input related to user settings and function control of the electronic device 100.
  • the user input unit 107 includes a touch panel 1071 and other input devices 1072.
  • the touch panel 1071 also called a touch screen, can collect the user's touch operations on or near it (for example, the user uses any suitable objects or accessories such as fingers, stylus, etc.) on the touch panel 1071 or near the touch panel 1071. operate).
  • the touch panel 1071 may include two parts: a touch detection device and a touch controller.
  • the touch detection device detects the user's touch position, and detects the signal brought by the touch operation, and transmits the signal to the touch controller; the touch controller receives the touch information from the touch detection device, converts it into contact coordinates, and then sends it To the processor 110, the command sent by the processor 110 is received and executed.
  • the touch panel 1071 can be implemented in multiple types such as resistive, capacitive, infrared, and surface acoustic wave.
  • the user input unit 107 may also include other input devices 1072.
  • other input devices 1072 may include, but are not limited to, a physical keyboard, function keys (such as volume control buttons, switch buttons, etc.), trackball, mouse, and joystick, which will not be repeated here.
  • the touch panel 1071 can be overlaid on the display panel 1061. After the touch panel 1071 detects a touch operation on or near it, it is transmitted to the processor 110 to determine the type of the touch event, and then the processor 110 determines the type of touch event according to the touch. The type of event provides corresponding visual output on the display panel 1061.
  • the touch panel 1071 and the display panel 1061 are used as two independent components to implement the input and output functions of the electronic device 100, but in some embodiments, the touch panel 1071 and the display panel 1061 can be combined.
  • the input and output functions of the electronic device 100 are realized by integration, which is not specifically limited here.
  • the interface unit 108 is an interface for connecting an external device and the electronic device 100.
  • the external device may include a wired or wireless headset port, an external power source (or battery charger) port, a wired or wireless data port, a memory card port, a port for connecting a device with an identification module, audio input/output (I/O) port, video I/O port, headphone port, etc.
  • the interface unit 108 can be used to receive input (for example, data information, power, etc.) from an external device and transmit the received input to one or more elements in the electronic device 100 or can be used to connect to the electronic device 100 and the external device. Transfer data between devices.
  • the memory 109 can be used to store software programs and various data.
  • the memory 109 may mainly include a program storage area and a data storage area.
  • the program storage area may store an operating system, an application program required by at least one function (such as a sound playback function, an image playback function, etc.), etc.; Data created by the use of mobile phones (such as audio data, phone book, etc.), etc.
  • the memory 109 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one magnetic disk storage device, a flash memory device, or other volatile solid-state storage devices.
  • the processor 110 is the control center of the electronic device 100, which uses various interfaces and lines to connect the various parts of the entire electronic device 100, runs or executes the software programs and/or modules stored in the memory 109, and calls and stores them in the memory 109 , Execute various functions of the electronic device 100 and process data, so as to monitor the electronic device 100 as a whole.
  • the processor 110 may include one or more processing units; optionally, the processor 110 may integrate an application processor and a modem processor, where the application processor mainly processes the operating system, user interface, application programs, etc., and the modem
  • the adjustment processor mainly deals with wireless communication. It can be understood that the foregoing modem processor may not be integrated into the processor 110.
  • the electronic device 100 may also include a power source 111 (such as a battery) for supplying power to various components.
  • a power source 111 such as a battery
  • the power source 111 may be logically connected to the processor 110 through a power management system, so as to manage charging, discharging, and power consumption through the power management system. Management and other functions.
  • the electronic device 100 includes some functional modules not shown, which will not be repeated here.
  • an embodiment of the present invention also provides an electronic device, including a processor, a memory, and a computer program stored in the memory and running on the processor 110.
  • the computer program is executed by the processor, the above-mentioned power is realized.
  • the various processes of the method embodiments are shown, and the same technical effect can be achieved. In order to avoid repetition, the details are not repeated here.
  • the embodiment of the present invention also provides a computer-readable storage medium, and a computer program is stored on the computer-readable storage medium.
  • a computer program is stored on the computer-readable storage medium.
  • the computer program is executed by a processor, each process of the above-mentioned power display method embodiment is realized, and the same technology can be achieved. The effect, in order to avoid repetition, will not be repeated here.
  • the computer-readable storage medium such as read-only memory (Read-Only Memory, ROM for short), random access memory (Random Access Memory, RAM for short), magnetic disk, or optical disk, etc.
  • the method of the above embodiments can be implemented by means of software plus the necessary general hardware platform. Of course, it can also be implemented by hardware, but in many cases the former is better. ⁇
  • the technical solution of this application essentially or the part that contributes to the existing technology can be embodied in the form of a software product, and the computer software product is stored in a storage medium (such as ROM/RAM, magnetic disk, The optical disc) includes several instructions to make an electronic device (which can be a mobile phone, a computer, a server, an air conditioner, or a network device, etc.) execute the methods described in the various embodiments of the present application.

Landscapes

  • Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Manufacturing & Machinery (AREA)
  • Chemical & Material Sciences (AREA)
  • Chemical Kinetics & Catalysis (AREA)
  • Electrochemistry (AREA)
  • General Chemical & Material Sciences (AREA)
  • Power Engineering (AREA)
  • Microelectronics & Electronic Packaging (AREA)
  • Charge And Discharge Circuits For Batteries Or The Like (AREA)

Abstract

本发明实施例提供一种电量显示方法、装置及电子设备,该方法包括:在满足目标条件的情况下,确定N个预设时长中每个预设时长内的目标充入电量,得到N个目标充入电量,N为正整数;确定N个预设时长中每个预设时长内的目标消耗电量,得到N个目标消耗电量;根据电子设备当前的剩余电量、N个目标充入电量和N个目标消耗电量,生成目标充电曲线;显示该目标充电曲线;其中,上述目标条件为电子设备处于充电状态,或者,电子设备处于模拟充电状态。

Description

电量显示方法、装置及电子设备
相关申请的交叉引用
本申请主张在2020年5月28日提交国家知识产权局、申请号为202010468966.3、申请名称为“电量显示方法、装置及电子设备”的中国专利申请的优先权,其全部内容通过引用包含于此。
技术领域
本申请实施例涉及通信技术领域,尤其涉及一种电量显示方法、装置及电子设备。
背景技术
随着电子设备的发展,用户使用电子设备的频率越来越高,电子设备的耗电量也越来越大。
目前,可以通过对电子设备充电来补充电子设备的电量,并且当电子设备处于充电状态时,电子设备通常会显示电量百分比,来提示用户电子设备的充电情况。
然而,由于上述电量百分比只能表示电子设备当前的充电进度,而充电过程通常为非线性过程,因此,用户根据该电量百分比只能确定电子设备当前的充电进度,无法确定电子设备未来的充电情况。即上述电量提示方法的灵活性较差。
发明内容
本发明实施例提供一种电量显示方法、装置及电子设备,以解决电子设备提示电量所存在的灵活性较差的问题。
为了解决上述技术问题,本申请是这样实现的:
第一方面,本发明实施例提供一种电量显示方法,该方法包括:在满足目标条件的情况下,确定N个预设时长中每个预设时长内的目标充入电量,得到N个目标充入电量,N为正整数;确定N个预设时长中每个预设时长内的目标消耗电量,得到N个目标消耗电量;根据电子设备当前的剩余电量、N个目标充入电量和N个目标消耗电量,生成目标充电曲线;显示该目标充电曲线;其中,上述目标条件为电子设备处于充电状态,或者,电子设备处于模拟充电状态。
第二方面,本发明实施例还提供了一种电量显示装置,该电量显示装置包括:确定模块、生成模块和显示模块;确定模块,用于在满足目标条件的情况下,确定N个预设时长中每个预设时长内的目标充入电量,得到N个目标充入电量;以及确定N个预设时长中每个预设时长内的目标消耗电量,得到N个目标消耗电量,N为正整数;生成模块,用于根据电子设备当前的剩余电量、确定模块确定的N个目标充入电量和N个目标消耗电量,生成目标充电曲线;显示模块,用于显示生成模块生成的目标充电曲线;其中,上述目标条件为电子设备处于充电状态,或者,电子设备处于模拟充电状态。
第三方面,本发明实施例提供了一种电子设备,包括处理器、存储器及存储在该存储器上并可在该处理器上运行的计算机程序,该计算机程序被该处理器执行时实现如第一方面所述的电量显示方法的步骤。
第四方面,本发明实施例提供了一种计算机可读存储介质,该计算机可读存储介质上存储计算机程序,该计算机程序被处理器执行时实现如第一方面所述的电量显示方法的步骤。
在本发明实施例中,电子设备在满足目标条件(电子设备处于充电状态,或者,电子设备处于模拟充电状态)的情况下,可以确定N个预设时长中每个预设时长内的目标充入电量,得到N个目标充入电量,并确定N个预设时长中每个预设时长内的目标消耗电量,得到N个目标消耗电量。然后,电子设备可以根据电子设备当前的剩余电量、N个目标充入电量和N个目标消耗电量,生成目标充电曲线。接着,电子设备可以显示该目标充电曲线。相比于传统电子设备提示用户电子设备当前充电进度,通过上述方案,电子设备可以通过显示目标充电曲线,将电子设备未来的充电情况直观的展示给用户,使得用户不仅可以查看当前充电进度,还可以查看未来充电情况,提高了电子设备提示电量的灵活性。
附图说明
图1为本发明实施例提供的一种可能的操作系统的架构示意图;
图2为本发明实施例提供的一种电量显示方法流程示意图;
图3为本发明实施例提供的一种电量显示方法所应用的界面的示意图之一;
图4为本发明实施例提供的一种电量显示方法所应用的界面的示意图之二;
图5为本发明实施例提供的一种电量显示方法所应用的界面的示意图之三;
图6为本发明实施例提供的一种电量显示方法所应用的界面的示意图之四;
图7为本发明实施例提供的一种电量显示方法所应用的界面的示意图之五;
图8为本发明实施例提供的一种电量显示方法所应用的界面的示意图之六;
图9为本发明实施例提供的一种电量显示方法所应用的界面的示意图之七;
图10为本发明实施例提供的一种电量显示装置的结构示意图;
图11为本发明实施例提供的一种电子设备的结构示意图。
具体实施方式
下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都属于本申请保护的范围。
需要说明的是,本文中的“/”表示或的意思,例如,A/B可以表示A或B;本文中的“和/或”仅仅是一种描述关联对象的关联关系,表示可以存在三种关系,例如,A和/或B,可以表示:单独存在A,同时存在A和B,单独存在B这三种情况。
需要说明的是,本文中的“多个”是指两个或多于两个。
需要说明的是,本发明实施例中,“示例性的”或者“例如”等词用于表示作例子、例证或说明。本发明实施例中被描述为“示例性的”或者“例如”的任何实施例或设计方案不应被 解释为比其它实施例或设计方案更优选或更具优势。确切而言,使用“示例性的”或者“例如”等词旨在以具体方式呈现相关概念。
需要说明的是,为了便于清楚描述本发明实施例的技术方案,在本发明实施例中,采用了“第一”、“第二”等字样对功能或作用基本相同的相同项或相似项进行区分,本领域技术人员可以理解“第一”、“第二”等字样并不对数量和执行次序进行限定。例如,第一输入和第二输入是用于区别不同的输入,而不是用于描述输入的特定顺序。
本发明实施例提供的电量显示方法的执行主体可以为上述的电子设备(包括移动电子设备和非移动电子设备),也可以为该电子设备中能够实现该电量显示方法的功能模块和/或功能实体,具体的可以根据实际使用需求确定,本发明实施例不作限定。下面以电子设备为例,对本发明实施例提供的电量显示方法进行示例性的说明。
本发明实施例中的电子设备可以为移动电子设备,也可以为非移动电子设备。移动电子设备可以为手机、平板电脑、笔记本电脑、掌上电脑、车载电子设备、可穿戴设备、超级移动个人计算机(ultra-mobile personal computer,UMPC)、上网本或者个人数字助理(personal digital assistant,PDA)等;非移动电子设备可以为个人计算机(personal computer,PC)、电视机(television,TV)、柜员机或者自助机等;本发明实施例不作具体限定。
本发明实施例中的电子设备可以为具有操作系统的电子设备。该操作系统可以为安卓(Android)操作系统,可以为ios操作系统,还可以为其他可能的操作系统,本发明实施例不作具体限定。
下面以图1所示的操作系统为例,介绍一下本发明实施例提供的电量显示方法所应用的软件环境。
如图1所示,为本发明实施例提供的一种可能的操作系统的架构示意图。在图1中,操作系统的架构包括4层,分别为:应用程序层、应用程序框架层、系统运行库层和内核层(具体可以为Linux内核层)。
其中,应用程序层包括操作系统中的各个应用程序(包括系统应用程序和第三方应用程序)。
应用程序框架层是应用程序的框架,开发人员可以在遵守应用程序的框架的开发原则的情况下,基于应用程序框架层开发一些应用程序。
系统运行库层包括库(也称为系统库)和操作系统运行环境。库主要为操作系统提供其所需的各类资源。操作系统运行环境用于为操作系统提供软件环境。
内核层是操作系统的操作系统层,属于操作系统软件层次的最底层。内核层基于Linux内核为操作系统提供核心系统服务和与硬件相关的驱动程序。
以图1所示的操作系统为例,本发明实施例中,开发人员可以基于上述如图1所示的操作系统的系统架构,开发实现本发明实施例提供的电量显示方法的软件程序,从而使得该电量显示方法可以基于如图1所示的操作系统运行。即处理器或者电子设备可以通过在操作系统中运行该软件程序实现本发明实施例提供的电量显示方法。
本发明实施例提供的电量显示方法可以应用在多种场景中,例如,可以应用在真实充电时,用户需求获知电子设备未来某一时长的充电电量场景中,也可以应用在模拟充电时,用户需求获知电子设备未来某一时长的充电电量场景中。
以应用在真实充电时,用户需求获知电子设备未来某一时长的充电电量场景为例,当 对电子设备充电时,电子设备可以计算未来某一时长内,电子设备预计充入的电量和消耗的电量。此时,电子设备还可以并根据电子设备当前剩余的电量,生成预估充电曲线并展示给用户,如此,用户便可直观地看到未来某一时长内的充电情况,从而可以提高电子设备提示电量的灵活性。
下面结合图2所示的电量显示方法流程图对本发明实施例的电量显示方法进行说明,图2为本发明实施例提供的一种电量显示方法流程示意图,包括步骤201至步骤204:
步骤201:电子设备在满足目标条件的情况下,确定N个预设时长中每个预设时长内的目标充入电量,得到N个目标充入电量。
在本发明实施例中,上述的目标条件为电子设备处于充电状态,或者,电子设备处于模拟充电状态。
可以理解,上述的电子设备处于充电状态是指:电子设备与电子设备的充电装置电连接。
可以理解,上述的电子设备处于模拟充电状态是指:电子设备未与电子设备的充电装置电连接。具体是指电子设备未与电子设备的充电装置物理连接的状态,或者电子设备与电子设备的充电装置物理连接,但未与电子设备的充电装置电连接的状态。
需要说明的是,上述的确定N个预设时长中每个预设时长内的目标充入电量,可理解为,计算N个预设时长中每个预设时长内的目标充入电量。
在一种示例中,电子设备检测到电子设备与电子设备的充电装置电连接的情况下,可以计算N个预设时长中每个预设时长内的目标充入电量,即确定N个目标充入电量。
在本发明实施例中,上述的预设时长可以为系统默认的,也可以为用户设置的,本发明实施例对此不作限定。例如,上述的预设时长可以为2分钟。
在本发明实施例中,N的值可以为系统默认的,也可以为用户设置的,本发明实施例对此不作限定。其中,N为正整数。
在一种示例中,若电子设备获知预估总时长和预设时长,则电子设备可以通过预估总时长除以预设时长来得到N的值。
例如,若电子设备获知预估总时长为未来30分钟,预设时长为2分钟,则电子设备可以得到N的值为15。
在另一种示例中,若电子设备获知预设时长和N的值,则电子设备可以根据预设时长乘以N得到预估总时长。
示例性的,每个预设时长内的目标充入电量可以等于充入电量速率乘以充入电量时长(即该预设时长)。示例性的,上述的充入电量速率可以通过实验得到,例如,充入电量速率历史充入电量速率的统计均值。
示例性的,每个预设时长内的目标充入电量可以相同,也可以不同,本发明实施例对此不作限定。
可以理解,由于上述的目标充入电量受很多因素的影响,例如,电子设备的电池电压,电池温度或者电子设备所处环境温度。因此,每个预设时长内的目标充入电量可能不同。
可选的,在本发明实施例中,在电子设备满足目标条件的情况下,为避免电子设备误触发目标充入电量的计算,以减少电子设备的工作负担,可以由用户触发电子设备进行计算。
示例性的,上述的步骤201具体可以包括如下步骤201a和步骤201b:
步骤201a:电子设备在满足目标条件的情况下,接收用户的第一输入。
其中,上述的第一输入可以包括:对电子设备的屏幕的点击输入,或者是用户输入的语音指令,或者是用户输入的特定手势,具体的可以根据实际使用需求确定,本发明实施例对此不作限定。
本发明实施例中的特定手势可以为单击手势、滑动手势、拖动手势、压力识别手势、长按手势、面积变化手势、双按手势、双击手势中的任意一种;本发明实施例中的点击输入可以为单击输入、双击输入或任意次数的点击输入等,还可以为长按输入或短按输入。
在一种示例中,上述的对电子设备的屏幕的点击输入具体可以为对电子设备的屏幕上的特定应用程序的点击输入。其中,该特定应用程序可以为已有的应用程序,也可以为新增的应用程序,本发明实施例对此不作限定。
步骤201b:响应于上述的第一输入,电子设备确定N个预设时长中每个预设时长内的目标充入电量,得到N个目标充入电量。
举例说明,用户早上9点出门,8点30分发现手机电量较低,需求对电子设备进行充电,以预设时长为2分钟,用户需求获知未来30分钟内电子设备的充电情况为例。如图3所示,用户可以点击“电源管理”应用程序的应用图标(即上述的特定应用程序,如图3中的31),此时,电子设备计算15个预设时长中每个预设时长内的目标充入电量,得到15个目标充入电量。
这样,电子设备只有在接收到用户的第一输入之后,才会开始计算N个预设时长中每个预设时长内的目标充入电量,可以避免电子设备误计算,也可以减轻电子设备的工作负担。
步骤202:电子设备确定N个预设时长中每个预设时长内的目标消耗电量,得到N个目标消耗电量。
在本发明实施例中,上述的每个预设时长内的目标消耗电量可以包括以下至少一项:电子设备运行的应用程序所消耗的电量,电子设备的外部设备(例如,扬声器、外设键盘等)所消耗的电量,电子设备系统(例如,屏幕、电子元器件等)所消耗的电量。
示例性的,上述的电子设备运行的应用程序可以包括以下至少一项:电子设备后台运行的应用程序,电子设备前台运行的应用程序。
可以理解,若目标条件为模拟对电子设备充电,则上述的运行的应用程序不是真实运行的应用程序,而是指模拟运行的应用程序。
示例性的,上述的模拟运行的应用程序可以由用户通过电子设备自行选择。当然,也可以是在电池电量低于预设电量阈值的情况下,自动弹出模拟运行对电子设备充电的窗口,从而既起到提示用户充电,又能及时推荐适合用户的充电策略的技术效果。
举例说明,以预设时长为2分钟为例,若用户早上9点出门,8点30分发现手机电量较低,用户需求获知充电时打开游戏1应用程序来玩游戏的情况下,当到达9点时电子设备的充电情况。此时,结合图3,当用户点击电源管理应用程序的应用图标31之后,如图4所示,电子设备显示自定义设置界面(即图4中的41),该自定义设置界面41划分为3个区域,分别为区域41a、区域41b和区域41c。其中,区域41a显示有4个游戏类应用程序的选项,分别为游戏1选项、游戏2选项、游戏3选项和游戏4选项;区域41b上显示 有4个视频类应用程序的选项,分别为视频1选项、视频2选项、视频3选项和视频4选项;区域41c上显示有4个其他类应用程序的选项,分别为相机选项、音乐选项、地图选项和电话选项。此时,用户可以点击游戏1选项(即图4中的42),然后,电子设备可以计算15个预设时长中每个预设时长内的游戏1应用程序的目标消耗电量。
示例性的,电子设备运行的应用程序所消耗的电量,电子设备可以针对每一个应用程序,通过获取该每一个应用程序在电子设备正常工作情况下,对应的历史消耗电量的统计均值。
示例性的,上述的每个预设时长内的目标消耗电量可以相同,也可以不同,本发明实施例对此不作限定。
需要说明的是,步骤201中的确定N个预设时长中每个预设时长内的目标充入电量,得到N个目标充入电量与步骤202在执行时没有明显的先后顺序。例如,电子设备可以在执行步骤202之前执行步骤201中的计算N个预设时长中每个预设时长内的目标充入电量,得到N个目标充入电量,也可以在执行步骤202之后执行步骤201中的计算N个预设时长中每个预设时长内的目标充入电量,得到N个目标充入电量,还可以在执行步骤202的同时执行步骤201中的计算N个预设时长中每个预设时长内的目标充入电量,得到N个目标充入电量,具体可以根据实际需求设定,本发明实施例对此不作限定。
步骤203:电子设备根据电子设备当前的剩余电量、N个目标充入电量和N个目标消耗电量,生成目标充电曲线。
示例性的,电子设备当前的剩余电量是指:N个预设时长中的第一个预设时长的起始时刻对应的电子设备的电量。
可选的,在本发明实施例中,上述的步骤203具体可以包括如下步骤203a至步骤203d:
步骤203a:电子设备根据上述剩余电量,确定目标充电曲线的起点。
步骤203b:电子设备根据每个预设时长内的目标充入电量和目标消耗电量,确定每个预设时长的目标充电电量。
示例性的,每个预设时长的目标充电电量等于每个预设时长内的目标充入电量与目标消耗电量的差值。
步骤203c:电子设备根据上述目标充电电量确定每个预设时长在目标充电曲线上对应的目标点。
可以理解,电子设备根据每个预设时长内的目标充电电量可以确定N个目标点,每个目标点对应一个预设时长和电子设备确定的该一个预设内的目标充电电量。
步骤203d:电子设备根据上述起点和目标点,生成所述目标充电曲线。
示例性的,电子设备可以将上述起点和目标点连线,绘制目标充电曲线,进而生成目标曲线。
举例说明,以预设时长为3分钟为例,首先,电子设备可以根据电子设备当前的剩余电量,确定起点,然后,电子设备可以计算未来一个小时内,每3分钟计算一个目标充入电量和一个目标消耗电量,将该一个目标充入电量减去该一个目标消耗电量可以确定一个目标充电电量。接着,电子设备可以根据该目标充电电量和一个3分钟,确定目标充电曲线对应的一个点,从而可以得到目标充电曲线对应的20个预估点。最后,电子设备可以将起点和20个点连线,绘制并生成目标充电曲线。
步骤204:电子设备显示目标充电曲线。
示例性的,上述的目标充电曲线可以为一条曲线,也可以为多条曲线,本发明实施例对此不作限定。
在一种示例中,电子设备可以在窗口中显示目标充电曲线。例如,在电子设备处于充电状态的情况下,电子设备可以弹出一个窗口,该窗口中显示有目标充电曲线。
需要说明的是,上述的窗口可以为已有的窗口,也可以为新增的窗口,本发明实施例对此不作限定。
在一种示例中,电子设备可以按照预定时长显示目标充电曲线,在显示目标充电曲线达到预定时长之后,电子设备可以取消显示目标充电曲线。
示例性的,电子设备可以在坐标系中显示目标充电曲线。例如,坐标系可以为直角坐标系,其中,直角坐标系的横坐标表示预设时长,可以采用时间间隔形式,例如,10分钟(min)、20min和30min等,也可以采用时刻形式,例如,9:00、9:10和9:20等;直角坐标系的纵坐标表示预估充电电量,可以采用电量百分比的形式,例如,30%、40%和50%等,也可以采用毫安时形式,例如,1000毫安时(mAh)、1500mAh和2000mAh等。
需要说明的是,电子设备可以根据预设时长,当前剩余电量和剩余充电时长等,调整上述的直角坐标系的横、纵坐标间隔。
举例说明,以横坐标为时间间隔,纵坐标为电量百分比,如图5所示电子设备的屏幕51上显示有未来一个小时的目标充电曲线,其中,直角坐标系52的横坐标分别显示有10min、20min、30min、40min、50min和60min,直角坐标系52的纵坐标分别显示有起始电量和100%。该直角坐标系中显示有曲线53。
在一种示例中,电子设备可以同时显示在电子设备灭屏状态下的目标充电曲线和亮屏状态下的目标充电曲线。
本发明实施例提供的电量显示方法,电子设备在满足目标条件(电子设备处于充电状态,或者,电子设备处于模拟充电状态)的情况下,可以确定N个预设时长中每个预设时长内的目标充入电量,得到N个目标充入电量,并确定N个预设时长中每个预设时长内的目标消耗电量,得到N个目标消耗电量。然后,电子设备可以根据电子设备当前的剩余电量、N个目标充入电量和N个目标消耗电量,生成目标充电曲线。接着,电子设备可以显示该目标充电曲线。相比于传统电子设备提示用户电子设备当前充电进度,通过上述方案,电子设备可以通过显示目标充电曲线,将电子设备未来的充电情况直观的展示给用户,使得用户不仅可以查看当前充电进度,还可以查看未来充电情况,提高了电子设备提示电量的灵活性。
可选的,在本发明实施例中,用户可以实时查看目标充电曲线上任一点对应的预估充电电量和预设时长。
示例性的,在上述目标充电曲线包括N个目标点,每个目标点对应一个目标充电电量和N个预设时长中的一个预设时长的情况下,在上述的步骤204之后,该方法还可以包括如下步骤205:
步骤205:电子设备接收用户对N个目标点中的第一点的输入。
示例性的,上述的用户对N个目标点中的第一点的输入可以包括:对第一点的点击输入,或者是用户输入的语音指令,或者是用户输入的特定手势,具体的可以根据实际使用 需求确定,本发明实施例对此不作限定。
步骤206:响应于上述输入,电子设备在与第一点对应的预设区域中,显示与第一点对应的目标充电电量和预设时长。
示例性的,上述的预设区域可以是屏幕中的任意区域,例如,可以为第一点所在屏幕区域的上方区域,或者可以为第一点所在屏幕区域的下方区域,或者可以为第一点所在屏幕区域的左方区域,或者可以为第一点所在屏幕区域的右方区域,或者可以为第一点所在屏幕区域的右上方区域,或者可以为第一点所在屏幕区域的右下方区域,或者可以为第一点所在屏幕区域的左上方区域,或者可以为第一点所在屏幕区域的左下方区域,具体的可以根据实际需求设定,本发明实施例对此不作限定。
举例说明,结合图5,在电子设备显示目标充电曲线之后,若用户需求查看A点对应的目标充电电量和预设时长时,可以点击A点,此时,如图6所示,电子设备在A点的右下方区域(图6中的54)显示“15min,75%”。
这样,用户可以通过点击目标充电曲线上的点,实时查看未来不同时长内的目标充电电量,方便用户更精细化地对电子设备的充电情况进行判断,使得用户可以更合理的规划充电行为。
可选的,在本发明实施例中,由于目标充入电量收到多种信息的影响,因此,电子设备可以考虑多种信息对目标充入电量的影响,进而更准确的计算目标充入电量。
示例性的,上述的步骤201中的确定N个预设时长中每个预设时长内的目标充入电量,得到N个目标充入电量,具体可以包括如下步骤201c和步骤201d:
步骤201c:电子设备获取电子设备的第一充电信息。
示例性的,上述的第一充电信息为与电子设备充电相关的信息。
具体的,上述的第一充电信息可以包括以下至少一项:电池电压、环境温度、电池温度、充电协议、充电策略和预估温升。需要说明的是,第一充电信息包括但不限于前述的6种信息。
其中,上述的电池温度,环境温度可以通过电子设备的温度传感器获取,上述的充电策略为电子设备系统内置的充电算法。
需要说明的是,用户可以根据电子设备的温升、剩余电量等信息确定充电行为。
示例性的,目标充入电量可以随着第一充电信息的变化而变化。
示例1,预设时长内的目标充入电量可以随着第一充电信息的增加而增加,或者,预设时长内的目标充入电量可以随着第一充电信息的减小而减小,或者,预设时长内的目标充入电量可以随着第一充电信息的减小而增加,或者,预设时长内的目标充入电量可以随着第一充电信息的增加而减小。例如,预设时长内的目标充入电量可以随着环境温度的升高而减小。
示例2,若第一充电信息为充电协议A,则预设时长内的目标充入电量为A,若第一充电信息为充电协议B,则预设时长内的目标充入电量为B,若第一充电信息为充电协议C,则预设时长内的目标充入电量为C。
步骤201d:电子设备根据第一充电信息,确定N个预设时长中每个预设时长内的目标充入电量,得到N个目标充入电量。
示例性的,电子设备在计算每个预设时长内的目标充入电量时,可以在每个预设时长 的起始时刻获取第一充电信息,然后电子设备可以根据每个起始时刻获取的第一充电信息来计算每个预设时长内的目标充入电量。
需要说明的是,第一充电信息对目标充入电量的影响,可以根据实验得到。
这样,电子设备可以充分考虑到第一充电信息对目标充入电量的影响,从而可以较准确的计算每个预设时长内的目标充入电量,进而可以根据较准确的目标充入电量,更准确的生成目标充电曲线。
可选的,在本发明实施例中,电子设备在预估充电电量时,除了需要考虑如何较准确的确定充入电量以外,还需要考虑如何较准确的确定电子设备的消耗电量。
示例性的,上述的步骤202具体可以包括如下步骤202a和步骤202b:
步骤202a:电子设备获取电子设备的第一消耗信息。
其中,上述的第一消耗信息为与电子设备当前运行相关的信息。
具体的,上述的第一消耗信息包括至少一项:应用程序的运行状态,电子设备的外部设备的工作情况,电子设备系统运行状态。
其中,应用程序的运行状态可以包括高负载应用程序的运行状态,低负载应用程序的运行状态可以忽略不计;电子设备系统运行状态可以包括屏幕显示状态,高速数据交换状态等;电子设备的外部设备的工作情况可以包括扬声器的工作情况等。
步骤202b:电子设备根据第一消耗信息,确定N个预设时长中每个预设时长内的目标消耗电量,得到N个目标消耗电量。
示例性的,电子设备可以计算出每个应用程序历史耗电情况的统计均值,得到单位时长内的耗电电量,以得到的单位时长内的耗电电量作为基准,计算预设时长内的目标消耗电量。例如,电子设备根据应用程序A历史耗电情况,计算出应用程序A的每10分钟耗电5%,以此为基准,电子设备可以计算出应用程序A运行2分钟的目标消耗电量1%。
示例性的,电子设备在计算每个预设时长内的目标消耗电量时,可以在每个预设时长的起始时刻获取第一消耗信息,然后电子设备可以根据每个起始时刻获取的第一消耗信息来计算每个预设时长内的目标消耗电量。
需要说明的是,当预设时长取值较小时,为减轻电子设备的计算负担,电子设备可以按照每个目标时长来获取第一消耗信息,其中,所述目标时长可以为至少两个预设时长对应的总时长,然后电子设备可以根据目标时长的起始时刻获取的第一消耗信息,来计算目标时长中的每个预设时长内的目标消耗电量。
这样,电子设备可以通过获取第一消耗信息,较为准确的计算每个预设时长内的目标消耗电量,从而可以利用目标消耗电量,更准确的生成目标充电曲线。
可选的,在本发明实施例中,目标充电曲线为多条曲线时,该多条曲线可以为电子设备根据电子设备支持的不同的充电协议,显示的不同充电协议下的目标充电曲线。
示例性的,在目标充电曲线包括至少两条充电曲线,每条充电曲线对应的预设充电参数不全相同的情况下,上述的步骤204具体可以包括如下步骤204a:
步骤204a:电子设备在同一坐标系中,显示至少两条充电曲线。
示例性的,上述的预设充电参数可以包括以下至少一项:充电协议,环境温度,充电策略。需要说明的是,预设充电参数包括但不限于前述3种参数。
示例性的,由于不同的预设充电参数(例如,充电协议)对应的充入电量可能不同, 因此,电子设备可以分别计算每一种充电协议对应的N个目标充入电量和N个目标消耗电量,从而生成每一种充电协议对应的目标充电曲线。
举例说明,以预设时长为3分钟为例,结合图5,若电子设备支持3种充电协议,分别为充电协议1、充电协议2和充电协议3。如图7所示,电子设备可以在直角坐标系52中分别显示充电协议1的目标充电曲线、充电协议2的目标充电曲线和充电协议3下的目标充电曲线。
需要说明的是,在电子设备处于充电状态的情况下,电子设备可以仅显示当前充电协议下的目标充电曲线,以及预估充电效果更好的充电协议下的目标充电曲线,而无需显示电子设备支持的所有充电协议下的目标充电曲线。
这样,电子设备可以在同一坐标系中显示不同预设充电参数下的目标充电曲线,从而可以方便用户查看,以及比对不同预设充电参数下的未来的充电情况,使得用户更全面的了解电子设备的充电情况。
进一步的,在本发明实施例中,电子设备可以提示用户上述至少两条充电曲线分别对应的充电装置。
示例性的,上述的步骤204a中的显示至少两条充电曲线,具体可以包括如下步骤204a1:
步骤204a1:电子设备显示至少两条目标充电曲线,并显示第一标识。
示例性的,上述第一标识用于指示上述至少两条目标充电曲线分别对应的预设充电参数。
示例性的,上述的第一标识可以为一个,也可以为多个,本发明实施例对此不作限定。
示例性的,本申请中的标识可以包括以下至少一项:文字,图片。
在上述的步骤204a1之后,该方法还可以包括如下步骤204b和步骤204c:
步骤204b:电子设备接收针对第一标识的第二输入。
示例性的,上述的第二输入可以包括:对第一标识的点击输入,或者是用户输入的语音指令,或者是用户输入的特定手势,具体的可以根据实际使用需求确定,本发明实施例对此不作限定。
步骤204c:电子设备显示第二标识。
示例性的,上述的第二标识用于提示用户至少两条目标充电曲线分别对应的充电装置。
示例性的,上述的充电装置可以包括充电器和充电数据线。
示例性的,上述的第二标识可以为一个,也可以为多个,本发明实施例对此不作限定。
举例说明,结合图7,当用户想要查看充电协议对应的充电装置时,可以点击协议2图标,如图8所示,电子设备显示充电装置展示界面61,该电装置展示界面61显示有协议1对应的充电器1和数据线1的图片及名称、协议2对应的充电器2和数据线2的图片及名称和协议31对应的充电器3和数据线3的图片及名称。
这样,电子设备可以通过展示用于指示充电装置的第二标识,可以直观的提示用户电子设备支持的充电装置,方便用户从中选择充电装置。
可选的,在本发明实施例中,在电子设备处于充电状态的情况下,电子设备可以提示用户当前的充电装置的是否为最佳的充电装置。
示例性的,上述的目标条件为电子设备处于充电状态,该方法还可以包括如下步骤206和步骤207:
步骤206:在电子设备处于充电状态的情况下,电子设备获取与电子设备连接的第一充电装置的参数。
示例性的,当电子设备与充电装置电连接之后,电子设备可以向充电装置发送充电协议信号,当充电装置接收到该充电协议信号后,可以将自身的参数发送给电子设备。
步骤207:电子设备在第一充电装置的参数与预设参数不匹配的情况下,显示推荐充电装置的标识,和/或,显示推荐关闭的目标应用信息。
示例性的,预设参数可以为推荐充电装置的参数,也可以为用户预先设置的参数,本发明实施例对此不作限定。
示例性的,推荐充电装置的标识可以包括:推荐充电器的标识和推荐数据线的标识。
示例性的,推荐充电装置相比于第一充电装置可以使电子设备的电池充满电量的时间更短,或者充电电压更稳定,本发明实施例对此不作限定。
示例性的,上述的推荐关闭的目标应用信息可以包括:推荐关闭应用程序的名称,推荐关闭应用程序的图片。
举例说明,当电子设备和充电装置2电连接后,电子设备检测到在充电装置2的参数与预设参数不匹配,如图9所示,则电子设备可以在上方屏幕71中显示充电装置2对应的充电协议2的目标充电曲线,以及充电效果更好的充电协议1对应的目标充电曲线。同时,电子设备可以在下方屏幕72中显示推荐的充电器1和数据线1的图片及名称,并显示文字“建议关闭应用程序1”。
需要说明的是,电子设备在第一充电装置的参数与预设参数匹配的情况下,无需显示推荐的充电装置的标识或者推荐关闭的目标应用信息。
在一种示例中,在电子设备处于充电状态的情况下,电子设备可以实时检测到开启的高负载应用程序对充电速率的影响,若造成显著影响(例如,超过某一阈值),电子设备可以更新显示目标充电曲线,并显示提醒信息,该提醒信息用于提示用户退出正在运行的高负载应用程序。用户可以根据目标充电曲线和提醒信息及时调整充电行为。
这样,当电子设备检测到第一充电装置不是最匹配的充电装置时,可以显示推荐的充电装置或者推荐关闭的目标应用信息,以使用户可以将充电装置切换为充电效果更好的充电装置,且可以将应用程序关闭以减少消耗电量,从而可以提高充电效果,节约充电时间。
需要说明的是,电子设备是否显示充电效果更好的充电曲线,是否显示提醒信息,是否显示横纵坐标的单位等等可以由系统默认设置,可以由用户自行设置,本发明实施例对此不作限定。
图10为实现本发明实施例提供的一种电量显示装置的可能的结构示意图,如图10所示,电量显示装置600包括:确定模块601、生成模块602和显示模块603,其中:确定模块601,用于在满足目标条件的情况下,确定N个预设时长中每个预设时长内的目标充入电量,得到N个目标充入电量;以及确定N个预设时长中每个预设时长内的目标消耗电量,得到N个目标消耗电量,N为正整数;生成模块602,用于根据电子设备当前的剩余电量、确定模块601确定的N个目标充入电量和N个目标消耗电量,生成目标充电曲线;显示模块603,用于显示生成模块602生成的目标充电曲线;其中,上述目标条件为电子 设备处于充电状态,或者,电子设备处于模拟充电状态。
可选的,如图10所示,装置600还包括:获取模块604;获取模块604,用于获取电子设备的第一充电信息;确定模块601,具体用于根据获取模块604获取到的第一充电信息,确定N个预设时长中每个预设时长内的目标充入电量,得到N个目标充入电量。
可选的,如图10所示,装置600还包括:获取模块604;获取模块604,用于获取电子设备的第一耗电信息;确定模块601,具体用于根据获取模块604获取到的第一耗电信息,确定N个预设时长中每个预设时长内的目标消耗电量,得到N个目标消耗电量。
可选的,确定模块601,还用于根据剩余电量,确定目标充电曲线的起点;并根据每个预设时长内的目标充入电量和目标消耗电量,确定每个预设时长的目标充电电量;以及根据该目标充电电量确定每个预设时长在目标充电曲线上对应的目标点;生成模块602,具体用于根据确定模块601确定的起点和目标点,生成目标充电曲线。
可选的,如图10所示,装置600还包括:接收模块605;接收模块605,用于在目标充电曲线包括N个目标点的情况下,接收用户对N个目标点中的第一点的输入,每个目标点对应一个目标充电电量和N个预设时长中的一个预设时长;显示模块603,还用于响应于接收模块605接收到的输入,在与第一点对应的预设区域中,显示与该第一点对应的目标充电电量和预设时长。
可选的,如图10所示,装置600还包括:获取模块604;上述目标条件为电子设备处于充电状态;获取模块604,用于在电子设备处于充电状态的情况下,获取与电子设备连接的第一充电装置的参数;显示模块603,还用于在获取模块604获取到的第一充电装置的参数与预设参数不匹配的情况下,显示推荐充电装置的标识,和/或,显示推荐关闭的目标应用信息。
可选的,目标充电曲线包括至少两条充电曲线,每条充电曲线对应的预设充电参数不全相同;显示模块603,具体用于在同一坐标系中,显示至少两条充电曲线。
需要说明的是,如图10所示,电量显示装置600中一定包括的模块用实线框示意,如确定模块601;电量显示装置600中可以包括也可以不包括的模块用虚线框示意,如接收模块605。
本发明实施例提供的电量显示装置,电量显示装置在满足目标条件(电子设备处于充电状态,或者,电子设备处于模拟充电状态)的情况下,可以确定N个预设时长中每个预设时长内的目标充入电量,得到N个目标充入电量,并确定N个预设时长中每个预设时长内的目标消耗电量,得到N个目标消耗电量。然后,电量显示装置可以根据电子设备当前的剩余电量、N个目标充入电量和N个目标消耗电量,生成目标充电曲线。接着,电量显示装置可以显示该目标充电曲线。相比于传统电子设备提示用户电子设备当前充电进度,通过上述方案,电量显示装置可以通过显示目标充电曲线,将电子设备未来的充电情况直观的展示给用户,使得用户不仅可以查看当前充电进度,还可以查看未来充电情况,提高了电子设备提示电量的灵活性。
本发明实施例提供的电量显示装置能够实现上述方法实施例中的各个过程,为避免重复,这里不再赘述。
图11为实现本发明各个实施例的一种电子设备的硬件结构示意图,该电子设备100包括但不限于:射频单元101、网络模块102、音频输出单元103、输入单元104、传感器 105、显示单元106、用户输入单元107、接口单元108、存储器109、处理器110、以及电源111等部件。本领域技术人员可以理解,图11中示出的电子设备100的结构并不构成对电子设备的限定,电子设备100可以包括比图示更多或更少的部件,或者组合某些部件,或者不同的部件布置。在本发明实施例中,电子设备100包括但不限于手机、平板电脑、笔记本电脑、掌上电脑、车载电子设备、可穿戴设备、以及计步器等。
其中,处理器110,用于在满足目标条件的情况下,确定N个预设时长中每个预设时长内的目标充入电量,得到N个目标充入电量;以及确定N个预设时长中每个预设时长内的目标消耗电量,得到N个目标消耗电量,N为正整数;以及根据电子设备当前的剩余电量、确定模块确定的N个目标充入电量和N个目标消耗电量,生成目标充电曲线;显示单元106,用于显示处理器生成的110目标充电曲线;其中,上述目标条件为电子设备处于充电状态,或者,电子设备处于模拟充电状态。
本发明实施例提供的电子设备,电子设备在满足目标条件(电子设备处于充电状态,或者,电子设备处于模拟充电状态)的情况下,可以确定N个预设时长中每个预设时长内的目标充入电量,得到N个目标充入电量,并确定N个预设时长中每个预设时长内的目标消耗电量,得到N个目标消耗电量。然后,电子设备可以根据电子设备当前的剩余电量、N个目标充入电量和N个目标消耗电量,生成目标充电曲线。接着,电子设备可以显示该目标充电曲线。相比于传统电子设备提示用户电子设备当前充电进度,通过上述方案,电子设备可以通过显示目标充电曲线,将电子设备未来的充电情况直观的展示给用户,使得用户不仅可以查看当前充电进度,还可以查看未来充电情况,提高了电子设备提示电量的灵活性
应理解的是,本发明实施例中,射频单元101可用于收发信息或通话过程中,信号的接收和发送,具体的,将来自基站的下行数据接收后,给处理器110处理;另外,将上行的数据发送给基站。通常,射频单元101包括但不限于天线、至少一个放大器、收发信机、耦合器、低噪声放大器、双工器等。此外,射频单元101还可以通过无线通信系统与网络和其他设备通信。
电子设备100通过网络模块102为用户提供了无线的宽带互联网访问,如帮助用户收发电子邮件、浏览网页和访问流式媒体等。
音频输出单元103可以将射频单元101或网络模块102接收的或者在存储器109中存储的音频数据转换成音频信号并且输出为声音。而且,音频输出单元103还可以提供与电子设备100执行的特定功能相关的音频输出(例如,呼叫信号接收声音、消息接收声音等等)。音频输出单元103包括扬声器、蜂鸣器以及受话器等。
输入单元104用于接收音频或视频信号。输入单元104可以包括图形处理器(Graphics Processing Unit,GPU)1041和麦克风1042,图形处理器1041对在视频捕获模式或图像捕获模式中由图像捕获装置(如摄像头)获得的静态图片或视频的图像数据进行处理。处理后的图像帧可以显示在显示单元106上。经图形处理器1041处理后的图像帧可以存储在存储器109(或其它存储介质)中或者经由射频单元101或网络模块102进行发送。麦克风1042可以接收声音,并且能够将这样的声音处理为音频数据。处理后的音频数据可以在电话通话模式的情况下转换为可经由射频单元101发送到移动通信基站的格式输出。
电子设备100还包括至少一种传感器105,比如光传感器、运动传感器以及其他传感 器。具体地,光传感器包括环境光传感器及接近传感器,其中,环境光传感器可根据环境光线的明暗来调节显示面板1061的亮度,接近传感器可在电子设备100移动到耳边时,关闭显示面板1061和/或背光。作为运动传感器的一种,加速计传感器可检测各个方向上(一般为三轴)加速度的大小,静止时可检测出重力的大小及方向,可用于识别电子设备姿态(比如横竖屏切换、相关游戏、磁力计姿态校准)、振动识别相关功能(比如计步器、敲击)等;传感器105还可以包括指纹传感器、压力传感器、虹膜传感器、分子传感器、陀螺仪、气压计、湿度计、温度计、红外线传感器等,在此不再赘述。
显示单元106用于显示由用户输入的信息或提供给用户的信息。显示单元106可包括显示面板1061,可以采用液晶显示器(Liquid Crystal Display,LCD)、有机发光二极管(Organic Light-Emitting Diode,OLED)等形式来配置显示面板1061。
用户输入单元107可用于接收输入的数字或字符信息,以及产生与电子设备100的用户设置以及功能控制有关的键信号输入。具体地,用户输入单元107包括触控面板1071以及其他输入设备1072。触控面板1071,也称为触摸屏,可收集用户在其上或附近的触摸操作(比如用户使用手指、触笔等任何适合的物体或附件在触控面板1071上或在触控面板1071附近的操作)。触控面板1071可包括触摸检测装置和触摸控制器两个部分。其中,触摸检测装置检测用户的触摸方位,并检测触摸操作带来的信号,将信号传送给触摸控制器;触摸控制器从触摸检测装置上接收触摸信息,并将它转换成触点坐标,再送给处理器110,接收处理器110发来的命令并加以执行。此外,可以采用电阻式、电容式、红外线以及表面声波等多种类型实现触控面板1071。除了触控面板1071,用户输入单元107还可以包括其他输入设备1072。具体地,其他输入设备1072可以包括但不限于物理键盘、功能键(比如音量控制按键、开关按键等)、轨迹球、鼠标、操作杆,在此不再赘述。
进一步的,触控面板1071可覆盖在显示面板1061上,当触控面板1071检测到在其上或附近的触摸操作后,传送给处理器110以确定触摸事件的类型,随后处理器110根据触摸事件的类型在显示面板1061上提供相应的视觉输出。虽然在图11中,触控面板1071与显示面板1061是作为两个独立的部件来实现电子设备100的输入和输出功能,但是在某些实施例中,可以将触控面板1071与显示面板1061集成而实现电子设备100的输入和输出功能,具体此处不做限定。
接口单元108为外部装置与电子设备100连接的接口。例如,外部装置可以包括有线或无线头戴式耳机端口、外部电源(或电池充电器)端口、有线或无线数据端口、存储卡端口、用于连接具有识别模块的装置的端口、音频输入/输出(I/O)端口、视频I/O端口、耳机端口等等。接口单元108可以用于接收来自外部装置的输入(例如,数据信息、电力等等)并且将接收到的输入传输到电子设备100内的一个或多个元件或者可以用于在电子设备100和外部装置之间传输数据。
存储器109可用于存储软件程序以及各种数据。存储器109可主要包括存储程序区和存储数据区,其中,存储程序区可存储操作系统、至少一个功能所需的应用程序(比如声音播放功能、图像播放功能等)等;存储数据区可存储根据手机的使用所创建的数据(比如音频数据、电话本等)等。此外,存储器109可以包括高速随机存取存储器,还可以包括非易失性存储器,例如至少一个磁盘存储器件、闪存器件、或其他易失性固态存储器件。
处理器110是电子设备100的控制中心,利用各种接口和线路连接整个电子设备100 的各个部分,通过运行或执行存储在存储器109内的软件程序和/或模块,以及调用存储在存储器109内的数据,执行电子设备100的各种功能和处理数据,从而对电子设备100进行整体监控。处理器110可包括一个或多个处理单元;可选的,处理器110可集成应用处理器和调制解调处理器,其中,应用处理器主要处理操作系统、用户界面和应用程序等,调制解调处理器主要处理无线通信。可以理解的是,上述调制解调处理器也可以不集成到处理器110中。
电子设备100还可以包括给各个部件供电的电源111(比如电池),可选的,电源111可以通过电源管理系统与处理器110逻辑相连,从而通过电源管理系统实现管理充电、放电、以及功耗管理等功能。
另外,电子设备100包括一些未示出的功能模块,在此不再赘述。
可选的,本发明实施例还提供一种电子设备,包括处理器,存储器,存储在存储器上并可在所述处理器110上运行的计算机程序,该计算机程序被处理器执行时实现上述电量显示方法实施例的各个过程,且能达到相同的技术效果,为避免重复,这里不再赘述。
本发明实施例还提供一种计算机可读存储介质,计算机可读存储介质上存储有计算机程序,该计算机程序被处理器执行时实现上述电量显示方法实施例的各个过程,且能达到相同的技术效果,为避免重复,这里不再赘述。其中,所述的计算机可读存储介质,如只读存储器(Read-Only Memory,简称ROM)、随机存取存储器(Random Access Memory,简称RAM)、磁碟或者光盘等。
需要说明的是,在本文中,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、物品或者装置不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、物品或者装置所固有的要素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括该要素的过程、方法、物品或者装置中还存在另外的相同要素。
通过以上的实施方式的描述,本领域的技术人员可以清楚地了解到上述实施例方法可借助软件加必需的通用硬件平台的方式来实现,当然也可以通过硬件,但很多情况下前者是更佳的实施方式。基于这样的理解,本申请的技术方案本质上或者说对现有技术做出贡献的部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质(如ROM/RAM、磁碟、光盘)中,包括若干指令用以使得一台电子设备(可以是手机,计算机,服务器,空调器,或者网络设备等)执行本申请各个实施例所述的方法。
上面结合附图对本申请的实施例进行了描述,但是本申请并不局限于上述的具体实施方式,上述的具体实施方式仅仅是示意性的,而不是限制性的,本领域的普通技术人员在本申请的启示下,在不脱离本申请宗旨和权利要求所保护的范围情况下,还可做出很多形式,均属于本申请的保护之内。

Claims (18)

  1. 一种电量显示方法,所述方法包括:
    在满足目标条件的情况下,确定N个预设时长中每个预设时长内的目标充入电量,得到N个目标充入电量,N为正整数;
    确定所述N个预设时长中每个预设时长内的目标消耗电量,得到N个目标消耗电量;
    根据所述电子设备当前的剩余电量、所述N个目标充入电量和所述N个目标消耗电量,生成目标充电曲线;
    显示所述目标充电曲线;
    其中,所述目标条件为所述电子设备处于充电状态,或者,所述电子设备处于模拟充电状态。
  2. 根据权利要求1所述的方法,其中,所述确定N个预设时长中每个预设时长内的目标充入电量,得到N个目标充入电量,包括:
    获取所述电子设备的第一充电信息;
    根据所述第一充电信息,确定N个预设时长中每个预设时长内的目标充入电量,得到N个目标充入电量。
  3. 根据权利要求1所述的方法,其中,所述确定所述N个预设时长中每个预设时长内的目标消耗电量,得到N个目标消耗电量,包括:
    获取所述电子设备的第一耗电信息;
    根据所述第一耗电信息,确定所述N个预设时长中每个预设时长内的目标消耗电量,得到N个目标消耗电量。
  4. 根据权利要求1至3中任一项所述的方法,其中,所述根据所述电子设备当前的剩余电量、所述N个目标充入电量和所述N个目标消耗电量,生成目标充电曲线,包括:
    根据所述剩余电量,确定所述目标充电曲线的起点;
    根据所述每个预设时长内的所述目标充入电量和所述目标消耗电量,确定所述每个预设时长的目标充电电量;
    根据所述目标充电电量确定所述每个预设时长在所述目标充电曲线上对应的目标点;
    根据所述起点和所述目标点,生成所述目标充电曲线。
  5. 根据权利要求4所述的方法,其中,所述目标充电曲线包括N个目标点,每个目标点对应一个目标充电电量和所述N个预设时长中的一个预设时长;
    在显示所述目标充电曲线之后,所述方法还包括:
    接收用户对所述N个目标点中的第一点的输入;
    响应于所述输入,在与所述第一点对应的预设区域中,显示与所述第一点对应的目标充电电量和预设时长。
  6. 根据权利要求1所述的方法,其中,所述目标条件为所述电子设备处于充电状态,所述方法还包括:
    在所述电子设备处于充电状态的情况下,获取与所述电子设备连接的第一充电装置的参数;
    在所述第一充电装置的参数与预设参数不匹配的情况下,显示推荐充电装置的标识,和/或,显示推荐关闭的目标应用信息。
  7. 根据权利要求1所述的方法,其中,所述目标充电曲线包括至少两条充电曲线,每条充电曲线对应的预设充电参数不全相同;
    所述显示所述目标充电曲线,包括:
    在同一坐标系中,显示所述至少两条充电曲线。
  8. 一种电量显示装置,所述装置包括:确定模块、生成模块和显示模块;
    所述确定模块,用于在满足目标条件的情况下,确定N个预设时长中每个预设时长内的目标充入电量,得到N个目标充入电量;以及确定所述N个预设时长中每个预设时长内的目标消耗电量,得到N个目标消耗电量,N为正整数;
    所述生成模块,用于根据所述电子设备当前的剩余电量、所述确定模块确定的所述N个目标充入电量和所述N个目标消耗电量,生成目标充电曲线;
    所述显示模块,用于显示所述生成模块生成的所述目标充电曲线;
    其中,所述目标条件为所述电子设备处于充电状态,或者,所述电子设备处于模拟充电状态。
  9. 根据权利要求8所述的装置,其中,所述装置还包括:获取模块;
    所述获取模块,用于获取所述电子设备的第一充电信息;
    所述确定模块,具体用于根据所述获取模块获取到的所述第一充电信息,确定N个预设时长中每个预设时长内的目标充入电量,得到N个目标充入电量。
  10. 根据权利要求8所述的装置,其中,所述装置还包括:获取模块;
    所述获取模块,用于获取所述电子设备的第一耗电信息;
    所述确定模块,具体用于根据所述获取模块获取到的所述第一耗电信息,确定所述N个预设时长中每个预设时长内的目标消耗电量,得到N个目标消耗电量。
  11. 根据权利要求8至10中任一项所述的装置,其中,
    所述确定模块,还用于根据所述剩余电量,确定所述目标充电曲线的起点;并根据每个所述预设时长内的所述目标充入电量和所述目标消耗电量,确定每个所述预设时长的目标充电电量;以及根据所述目标充电电量确定所述每个预设时长在所述目标充电曲线上对应的目标点;
    所述生成模块,具体用于根据所述确定模块确定的所述起点和所述目标点,生成所述目标充电曲线。
  12. 根据权利要求11所述的装置,其中,所述装置还包括:接收模块;
    所述接收模块,用于在所述目标充电曲线包括N个目标点的情况下,接收用户对所述N个目标点中的第一点的输入,每个目标点对应一个目标充电电量和所述N个预设时长中的一个预设时长;
    所述显示模块,还用于响应于所述接收模块接收到的所述输入,在与所述第一点对应的预设区域中,显示与所述第一点对应的目标充电电量和预设时长。
  13. 根据权利要求8所述的装置,其中,所述装置还包括:获取模块;所述目标 条件为所述电子设备处于充电状态;
    所述获取模块,用于在所述电子设备处于充电状态的情况下,获取与所述电子设备连接的第一充电装置的参数;
    所述显示模块,还用于在所述获取模块获取到的所述第一充电装置的参数与预设参数不匹配的情况下,显示推荐充电装置的标识,和/或,显示推荐关闭的目标应用信息。
  14. 根据权利要求8所述的装置,其中,所述目标充电曲线包括至少两条充电曲线,每条充电曲线对应的预设充电参数不全相同;
    所述显示模块,具体用于在同一坐标系中,显示所述至少两条充电曲线。
  15. 一种电子设备,包括处理器、存储器及存储在所述存储器上并可在所述处理器上运行的计算机程序,所述计算机程序被所述处理器执行时实现如权利要求1至7中任一项所述的电量显示方法的步骤。
  16. 一种计算机可读存储介质,所述计算机可读存储介质上存储计算机程序,所述计算机程序被处理器执行时实现如权利要求1至7中任一项所述的电量显示方法的步骤。
  17. 一种计算机程序产品,所述计算机程序产品被至少一个处理器执行以实现如权利要求1至7中任一项所述的电量显示方法。
  18. 一种电子设备,包括所述电子设备被配置成用于执行如权利要求1至7中任一项所述的电量显示方法。
PCT/CN2021/096188 2020-05-28 2021-05-26 电量显示方法、装置及电子设备 Ceased WO2021239017A1 (zh)

Priority Applications (2)

Application Number Priority Date Filing Date Title
EP21813644.8A EP4160860A4 (en) 2020-05-28 2021-05-26 METHOD AND APPARATUS FOR DISPLAYING ENERGY QUANTITY, AND ELECTRONIC DEVICE
US17/994,098 US20230092801A1 (en) 2020-05-28 2022-11-25 Power display method and apparatus, and electronic device

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202010468966.3 2020-05-28
CN202010468966.3A CN111431250B (zh) 2020-05-28 2020-05-28 电量显示方法、装置及电子设备

Related Child Applications (1)

Application Number Title Priority Date Filing Date
US17/994,098 Continuation US20230092801A1 (en) 2020-05-28 2022-11-25 Power display method and apparatus, and electronic device

Publications (1)

Publication Number Publication Date
WO2021239017A1 true WO2021239017A1 (zh) 2021-12-02

Family

ID=71553145

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2021/096188 Ceased WO2021239017A1 (zh) 2020-05-28 2021-05-26 电量显示方法、装置及电子设备

Country Status (4)

Country Link
US (1) US20230092801A1 (zh)
EP (1) EP4160860A4 (zh)
CN (1) CN111431250B (zh)
WO (1) WO2021239017A1 (zh)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111431250B (zh) * 2020-05-28 2022-07-01 维沃移动通信有限公司 电量显示方法、装置及电子设备
CN113839427B (zh) * 2020-06-05 2025-09-23 华为技术有限公司 一种充电管理方法、电子设备和系统
CN112104028B (zh) * 2020-09-10 2022-05-10 歌尔科技有限公司 充电设备、无线耳机的电量修正方法和可读存储介质
CN112601269B (zh) * 2020-11-13 2023-08-15 维沃移动通信有限公司 一种通信连接方法、装置、电子设备和可读存储介质

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101436690A (zh) * 2008-12-10 2009-05-20 深圳华为通信技术有限公司 一种充电时间的确定方法、装置和终端设备
CN105071486A (zh) * 2015-08-26 2015-11-18 广东欧珀移动通信有限公司 一种充电提示方法和装置
CN105680521A (zh) * 2016-03-23 2016-06-15 广东欧珀移动通信有限公司 移动终端的充电功能检测方法、装置及移动终端
CN110579712A (zh) * 2019-10-14 2019-12-17 北京云迹科技有限公司 电量显示方法、装置及电子设备
CN111079054A (zh) * 2019-12-25 2020-04-28 维沃移动通信有限公司 一种信息处理方法及电子设备
CN111431250A (zh) * 2020-05-28 2020-07-17 维沃移动通信有限公司 电量显示方法、装置及电子设备

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN100553071C (zh) * 2007-06-15 2009-10-21 陈建民 一种智能数字电池
CN103675690B (zh) * 2012-09-25 2018-05-25 腾讯科技(深圳)有限公司 一种显示终端充电状态的方法和终端
CN107980190A (zh) * 2016-10-28 2018-05-01 深圳市柔宇科技有限公司 电子装置及按需充电方法
CN107231022A (zh) * 2017-06-15 2017-10-03 Tcl移动通信科技(宁波)有限公司 一种移动终端的充电方法、存储装置及移动终端
CN108099641B (zh) * 2017-11-27 2021-05-07 国网北京市电力公司 充电站的能量控制方法和装置
CN108832674A (zh) * 2018-06-07 2018-11-16 贵港市厚顺信息技术有限公司 一种根据耗电量智能手机充电系统及其控制方法

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101436690A (zh) * 2008-12-10 2009-05-20 深圳华为通信技术有限公司 一种充电时间的确定方法、装置和终端设备
CN105071486A (zh) * 2015-08-26 2015-11-18 广东欧珀移动通信有限公司 一种充电提示方法和装置
CN105680521A (zh) * 2016-03-23 2016-06-15 广东欧珀移动通信有限公司 移动终端的充电功能检测方法、装置及移动终端
CN110579712A (zh) * 2019-10-14 2019-12-17 北京云迹科技有限公司 电量显示方法、装置及电子设备
CN111079054A (zh) * 2019-12-25 2020-04-28 维沃移动通信有限公司 一种信息处理方法及电子设备
CN111431250A (zh) * 2020-05-28 2020-07-17 维沃移动通信有限公司 电量显示方法、装置及电子设备

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
See also references of EP4160860A4 *

Also Published As

Publication number Publication date
EP4160860A1 (en) 2023-04-05
CN111431250B (zh) 2022-07-01
EP4160860A4 (en) 2024-02-14
CN111431250A (zh) 2020-07-17
US20230092801A1 (en) 2023-03-23

Similar Documents

Publication Publication Date Title
WO2021239017A1 (zh) 电量显示方法、装置及电子设备
US11165950B2 (en) Method and apparatus for shooting video, and storage medium
US11838438B2 (en) Message viewing method and terminal
CN110109604B (zh) 一种应用界面显示方法及移动终端
CN111163260B (zh) 一种摄像头启动方法及电子设备
CN109558046B (zh) 一种信息显示方法及终端设备
CN110752981B (zh) 一种信息控制方法及电子设备
CN108345425B (zh) 一种应用的管理方法及移动终端
CN109407949B (zh) 一种显示控制方法及终端
CN110049486B (zh) 一种sim卡选择方法及终端设备
CN110012152B (zh) 一种界面显示方法及终端设备
CN108345474A (zh) 应用程序的启动方法、启动装置及移动终端
WO2021057301A1 (zh) 文件控制方法及电子设备
WO2021017738A1 (zh) 界面显示方法及电子设备
CN110442281A (zh) 一种应用图标显示方法和终端
WO2019169991A1 (zh) 显示方法及移动终端
CN111240451B (zh) 散热方法、电子设备及计算机可读存储介质
WO2021093766A1 (zh) 消息显示方法及电子设备
CN109976629A (zh) 图像显示方法、终端和移动终端
WO2020215969A1 (zh) 内容输入方法及终端设备
CN110866465A (zh) 电子设备的控制方法及电子设备
CN111158485B (zh) 一种屏幕控制方法及电子设备
CN109240575A (zh) 一种屏幕控制方法及电子设备
WO2021093772A1 (zh) 通知消息的处理方法及电子设备
CN111049701A (zh) 一种数据流量监控方法及电子设备

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 21813644

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

ENP Entry into the national phase

Ref document number: 2021813644

Country of ref document: EP

Effective date: 20230102