CN110320991A - A kind of method for managing power supply and device of mobile terminal - Google Patents

A kind of method for managing power supply and device of mobile terminal Download PDF

Info

Publication number
CN110320991A
CN110320991A CN201910547646.4A CN201910547646A CN110320991A CN 110320991 A CN110320991 A CN 110320991A CN 201910547646 A CN201910547646 A CN 201910547646A CN 110320991 A CN110320991 A CN 110320991A
Authority
CN
China
Prior art keywords
mobile terminal
power consumption
target application
time period
preset time
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.)
Granted
Application number
CN201910547646.4A
Other languages
Chinese (zh)
Other versions
CN110320991B (en
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 CN201910547646.4A priority Critical patent/CN110320991B/en
Publication of CN110320991A publication Critical patent/CN110320991A/en
Application granted granted Critical
Publication of CN110320991B publication Critical patent/CN110320991B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F1/00Details not covered by groups G06F3/00 - G06F13/00 and G06F21/00
    • G06F1/26Power supply means, e.g. regulation thereof
    • G06F1/32Means for saving power
    • G06F1/3203Power management, i.e. event-based initiation of a power-saving mode
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/30Monitoring
    • G06F11/3058Monitoring arrangements for monitoring environmental properties or parameters of the computing system or of the computing system component, e.g. monitoring of power, currents, temperature, humidity, position, vibrations
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Computing Systems (AREA)
  • Quality & Reliability (AREA)
  • Telephone Function (AREA)

Abstract

The embodiment of the invention provides a kind of method for managing power supply of mobile terminal and devices to determine at least one target application corresponding with backlog information that mobile terminal is run in preset time period according to the backlog information of target user;Obtain total power consumption of the mobile terminal when preset time period runs at least one target application;According to the current residual electricity and total power consumption of mobile terminal, determine that mobile terminal can distribute to the power consumption of non-targeted application in preset time period;According to the current residual electricity of mobile terminal, total power consumption and the power consumption generation power management plan that non-targeted application can be distributed to, and it is managed according to power supply of the power management plan to mobile terminal, it is can be realized under the premise of guaranteeing that current residual electricity meets power consumption needed for target application is run in this way, make user that mobile terminal be made full use of to carry out recreation, improves the usage experience of user.

Description

Power management method and device for mobile terminal
Technical Field
The invention relates to the technical field of power management, in particular to a power management method and device of a mobile terminal.
Background
At present, along with the rapid development of mobile communication technology, mobile terminals (such as intelligent terminal devices) have become indispensable electronic consumer goods in people's daily life, along with the increasing popularization of intelligent terminal devices, simultaneously, the function of intelligent terminal devices is constantly upgraded, optimized, and intelligent terminal devices have been merged into each aspect of life, and the user often uses intelligent terminal devices in various places of various occasions.
However, in these processes using the smart terminal device, some operations are necessary, such as: mobile payment, car-playing, communication, navigation, etc., but in addition to these necessary operations, people often utilize intelligent terminal devices to perform long-term entertainment, such as browsing news information, swiping short videos, playing games, etc.
Although the battery capacity of the intelligent terminal equipment is made larger and larger at present, the long-time use requirement is still difficult to meet under the condition of no charging equipment. When people use the intelligent terminal device for entertainment, the user is often not required to complete related operations due to insufficient power when necessary operations are carried out by using the terminal device because the user does not pay attention to the residual power of the intelligent terminal device.
Disclosure of Invention
The embodiment of the invention aims to provide a power management method and a power management device for a mobile terminal, which aim to solve the problem that when people need to use terminal equipment to perform necessary operations, the related necessary operations cannot be completed due to insufficient electric quantity under the condition that people do not pay attention to the residual electric quantity of the terminal equipment when using the terminal equipment to perform entertainment activities, and unnecessary troubles are brought to users.
In order to solve the above technical problem, the embodiment of the present invention is implemented as follows:
in a first aspect, an embodiment of the present invention provides a power management method for a mobile terminal, including:
determining at least one target application which is operated by the mobile terminal in a preset time period and corresponds to the backlog information according to the backlog information of a target user;
acquiring the total power consumption of the mobile terminal when the mobile terminal operates the at least one target application in the preset time period;
determining the power consumption which can be allocated to the non-target application by the mobile terminal in the preset time period according to the current residual power and the total power consumption of the mobile terminal;
and generating a power supply management plan according to the current residual power of the mobile terminal, the total power consumption and the power consumption capable of being distributed to the non-target application, and managing the power supply of the mobile terminal according to the power supply management plan.
In a second aspect, an embodiment of the present invention provides a power management apparatus for a mobile terminal, including:
the target application determining module is used for determining at least one target application which is operated by the mobile terminal in a preset time period and corresponds to the backlog information according to the backlog information of a target user;
the total power consumption acquisition module is used for acquiring the total power consumption of the mobile terminal when the mobile terminal operates the at least one target application in the preset time period;
the non-target application power consumption determining module is used for determining the power consumption which can be allocated to the non-target application by the mobile terminal in the preset time period according to the current residual power and the total power consumption of the mobile terminal;
and the power supply management module is used for generating a power supply management plan according to the current residual power of the mobile terminal, the total power consumption and the power consumption capable of being distributed to the non-target application, and managing the power supply of the mobile terminal according to the power supply management plan.
In a third aspect, an embodiment of the present invention provides a mobile terminal, including: a memory, a processor and a computer program stored on the memory and executable on the processor, the computer program, when executed by the processor, implementing the steps of the power management method of the mobile terminal according to the first aspect.
In a fourth aspect, an embodiment of the present invention provides a computer-readable storage medium, on which a computer program is stored, where the computer program, when executed by a processor, implements the steps of the power management method for a mobile terminal according to the first aspect.
According to the power supply management method and device of the mobile terminal in the embodiment of the invention, at least one target application which is operated by the mobile terminal in a preset time period and corresponds to the backlog information is determined according to the backlog information of a target user; acquiring the total power consumption of the mobile terminal when the mobile terminal operates at least one target application in a preset time period; determining the power consumption which can be allocated to the non-target application by the mobile terminal in a preset time period according to the current residual power and the total power consumption of the mobile terminal; generating a power supply management plan according to the current residual power, the total power consumption and the power consumption which can be distributed to the non-target application of the mobile terminal, and managing the power supply of the mobile terminal according to the power supply management plan; in the embodiment of the invention, the power consumption which can be distributed to the non-target application in the preset time period is determined on the premise of reserving the total power consumption which meets the requirement that the mobile terminal runs the target application in the preset time period, so that the power supply of the mobile terminal is dynamically managed, a user can fully utilize the mobile terminal to carry out entertainment activities on the premise of ensuring that the current residual power of the mobile terminal meets the requirement of running the target application, and the use experience of the user is improved.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below, it is obvious that the drawings in the following description are only some embodiments described in the present invention, and for those skilled in the art, other drawings can be obtained according to these drawings without creative efforts.
Fig. 1 is a first flowchart illustrating a power management method of a mobile terminal according to an embodiment of the present invention;
fig. 2 is a second flowchart illustrating a power management method of a mobile terminal according to an embodiment of the present invention;
fig. 3 is a third flowchart illustrating a power management method of a mobile terminal according to an embodiment of the present invention;
fig. 4 is a fourth flowchart illustrating a power management method of a mobile terminal according to an embodiment of the present invention;
fig. 5 is a diagram illustrating a variation trend of theoretical power and actual power according to an embodiment of the present invention;
fig. 6 is a schematic diagram for determining an operating period of a non-target application corresponding to a certain idle period according to an embodiment of the present invention;
FIG. 7 is a schematic diagram of a power management plan generation provided by an embodiment of the invention;
fig. 8 is a schematic diagram illustrating a module configuration of a power management apparatus of a mobile terminal according to an embodiment of the present invention;
fig. 9 is a schematic structural diagram of a mobile terminal according to an embodiment of the present invention.
Detailed Description
In order to make those skilled in the art better understand the technical solution of the present invention, the technical solution in the embodiment of the present invention will be clearly and completely described below with reference to the drawings in the embodiment of the present invention, and it is obvious that the described embodiment is only a part of the embodiment of the present invention, and not all embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
The embodiment of the invention provides a power management method and a power management device of a mobile terminal, which are used for determining the power consumption which can be distributed to non-target applications in a preset time period by reserving the total power consumption required by the mobile terminal to run the target applications in the preset time period, so that the power of the mobile terminal is dynamically managed, a user can fully utilize the mobile terminal to carry out entertainment activities on the premise of ensuring that the current residual power of the mobile terminal meets the running requirements of the target applications, and the use experience of the user is improved.
In an embodiment of the present invention, a mobile terminal may be a smart phone, a tablet computer, and the like, taking the smart phone as an example, fig. 1 is a first flowchart of a power management method of the mobile terminal provided in the embodiment of the present invention, where the method in fig. 1 can be executed by the mobile terminal, and is particularly executed by a program module arranged in the mobile terminal, as shown in fig. 1, the method at least includes the following steps:
s101, determining at least one target application which is operated by the mobile terminal in a preset time period and corresponds to the backlog information according to the backlog information of the target user;
the to-do information of the target user may include: the ticket booking information of the target user is identified by detecting the short message of the mobile terminal of the target user, such as: booking information such as train tickets, airline tickets, sight spot tickets and the like; the backlog information of the target user may further include: identifying travel information of a target user by detecting calendar information; the backlog information of the target user may also include: the information that the target user identified by the detection memo information needs to operate using the mobile terminal, for example: making a call to a certain person, etc.; and the backlog information of the target user may further include: according to the use habit of the target user, detecting whether the target user has information of daily necessary use of the mobile terminal, for example: mobile phone payment, mobile phone bus card and other information;
wherein, the target application may include: at least one of an application program for code scanning payment, an application program for online car appointment reservation, an application program for navigation, an application program for mobile payment, an application program for voice call, an application program for video chat and an application program for photographing; the target application is the application which is determined to be related to the backlog information according to the preference information of the user;
for example: the method comprises the steps of detecting a short message of a mobile terminal of a target user, wherein the identified backlog information is train ticket information from Beijing to Changchun in a preset time period, extracting historical riding records from a user use habit database, and analyzing application of the mobile terminal which needs to be used by the target user when the target user takes trains from Beijing to Changchun before, wherein the historical riding records are related to the train ticket scene information from Beijing to Changchun, and the application comprises the following steps: the method comprises the following steps that a mobile terminal is required to be used for carrying out network car booking reservation and mobile payment before a journey, and the mobile terminal is required to be used for carrying out network car booking reservation, mobile payment, navigation, voice communication and the like after a destination is reached; and determining the applications with the functions as target applications of the mobile terminal in a preset time period, storing the target applications and calendar records generated by time information into a target application database which must use the mobile terminal, and taking the target applications when subsequent conditions are triggered.
Before determining at least one target application which is operated by the mobile terminal in a preset time period and corresponds to the to-do-item information, the method further comprises the following steps: determining whether the mobile terminal has backlog information which is necessary to use the mobile terminal in a preset time period; if yes, executing the step S101 of determining at least one target application, which is operated by the mobile terminal in a preset time period and corresponds to the backlog information, according to the backlog information of the target user; if not, triggering the delay time to the target time period to continue detecting until detecting backlog information of the mobile terminal which needs to be used;
s102, acquiring the total power consumption of the mobile terminal when the mobile terminal runs at least one target application in a preset time period,
specifically, after target applications related to backlog information are determined from a use habit database of a target user according to preference information of the user, estimated power consumption of each target application is determined according to unit time power consumption of each target application and predicted operation time periods of each target application; then, according to the power consumption of each target application, determining the total power consumption of the mobile terminal when at least one target application is operated in a preset time period;
s103, determining power consumption that can be allocated to the non-target application by the mobile terminal in a preset time period according to the current remaining power and the total power consumption of the mobile terminal, where the non-target application may include: at least one of an application for social communication, an application for assessing and managing physical status, an application for reading, an application for viewing video and audio, and an application for entertainment;
s104, generating a power supply management plan according to the current residual power, the total power consumption and the power consumption capable of being distributed to the non-target application of the mobile terminal;
s105, managing the power supply of the mobile terminal according to the power supply management plan;
specifically, an initial power management plan is generated according to the identification information, the starting execution time and the estimated power consumption of each target application; determining the power consumption which can be distributed to the non-target applications according to the current residual power and the total power consumption of the mobile terminal, and inserting each determined non-target application into the idle time period in the initial power management plan according to the determined non-target identification information, the non-target execution time period and the distributed available power consumption of each non-target application to generate the power management plan of the mobile terminal;
when the power supply of the mobile terminal is managed, if the generation interval cycle of the power supply management plan is one day, the duration of the preset time period is one day, wherein the starting point of the preset time period refers to the starting time of the execution period of the power supply management plan, and the ending point of the preset time period refers to the ending time point of the execution period of the power supply management plan.
In the embodiment of the invention, the power consumption which can be distributed to the non-target application in the preset time period is determined on the premise of reserving the total power consumption which meets the requirement that the mobile terminal runs the target application in the preset time period, so that the power supply of the mobile terminal is dynamically managed, a user can fully utilize the mobile terminal to carry out entertainment activities on the premise of ensuring that the current residual power of the mobile terminal meets the requirement of running the target application, and the use experience of the user is improved.
As shown in fig. 2, the determining, by the S101, at least one target application, which is operated by the mobile terminal in a preset time period and corresponds to the to-do-event information, according to the to-do-event information of the target user includes:
s1011, obtaining user preference information related to the backlog information of the target user, wherein the user preference information can be historical user preference information extracted from a user use habit database or a user use habit data table; specifically, after identifying that the backlog information is the backlog information which needs to use the mobile terminal in a preset time period, obtaining user preference information related to the backlog information of the target user from a user use habit database or a user use habit data table;
s1012, determining at least one target application corresponding to the backlog information and running in a preset time period by the mobile terminal according to the user preference information, specifically, for example, the backlog information is some tourist attraction ticket information identified in the preset time period by detecting a short message of the target user mobile terminal, and extracting the scene record information of the historical tourist attraction from the user usage habit database according to the tourist attraction ticket information, where the scene record information of the historical tourist attraction includes: the method comprises the following steps that a mobile terminal is required to be used for taxi taking, payment and navigation before a journey, and the mobile terminal is required to be used for taxi taking, payment, navigation, photographing and the like after a target tourist attraction is reached; determining the extracted application information related to the backlog information of the target user as at least one target application in a preset time period;
in order to reserve, in advance, the total power consumption amount which can meet the requirement of running the target application for the target application to be run in the preset time period, as shown in fig. 3, the step S102 of obtaining the total power consumption amount of the mobile terminal when the mobile terminal runs at least one target application in the preset time period includes:
s1021, determining the total power consumption of the mobile terminal when the mobile terminal runs at least one target application in a preset time period according to the historical running data of the at least one target application;
wherein, the historical operating data may include: the time taken to run each target application, and the power consumption per unit time required to run each target application;
in particular, according to historical operating data of at least one target application, and according to a formulaDetermining the total power consumption of at least one target application operated by the mobile terminal in a preset time period, wherein i represents the serial number of the target application, n represents the number of the target applications, and tp represents the number of the target applicationsiDenotes the time, p, taken by the target application with the sequence number iiThe power consumption per unit time required by the target application with the sequence number i is represented, and P1 represents the predicted total power consumption in the running of at least one target application in a preset time period;
in order to more intuitively remind the user of the current power utilization condition of the mobile terminal according to the formulated power management plan and the actual use condition of the user, as shown in fig. 4, the step S105 of managing the power of the mobile terminal according to the power management plan includes:
s1051, generating a theoretical electric quantity change trend graph of a power supply of the mobile terminal in a preset time period according to the power supply management plan;
s1052, in the execution process of the power management plan, generating an actual electric quantity change trend graph of the power supply of the mobile terminal in a preset time period according to the actual electric consumption of the target application and the actual electric consumption of the non-target application;
and S1053, adjusting the power consumption which can be distributed to the non-target application to be operated in a preset time period according to the actual power change trend graph and the theoretical power change trend graph.
In a specific embodiment, fig. 5 is a graph of a change trend of theoretical electric quantity and actual electric quantity provided by the embodiment of the present invention, where as shown in fig. 5, an abscissa represents a time axis, and an abscissa further includes an operation end node corresponding to each target application labeled according to an operation time period of the target application, and an ordinate represents a remaining electric quantity of the mobile terminal; specifically, in the power management plan execution process, generating a theoretical electric quantity change trend graph of the mobile terminal, and judging whether the difference value between the actual electric consumption displayed by the actual electric consumption trend graph in a certain time period and the theoretical electric consumption displayed by the theoretical electric consumption trend graph in the same certain time period is larger than a set threshold value or not according to the theoretical electric quantity change trend graph and the actual electric quantity change trend graph generated regularly in the actual use process, if so, adjusting the electric consumption which can be distributed to the non-target application to be operated in the preset time period in real time to meet the total electric consumption required by the mobile terminal to operate at least one target application;
setting electric quantity milestones of all target applications according to the electric consumption of each target application and the corresponding operation time period; the time represented by the abscissa in fig. 5 and the target application operation end node correspond to each power consumption milestone, when each target application is operated and reaches the power consumption milestone of the next target application, whether the difference between the actual remaining power consumption and the theoretical remaining power consumption corresponding to the theoretical power consumption change trend graph in the power consumption milestone meets a preset condition is judged, if yes, it is proved that the power consumption in the previous power consumption milestone is still remaining, the remaining power consumption in the previous milestone is merged into a subsequent plan, the operation time of the non-target application to be operated in the power management plan is increased, and the power consumption allocatable to the non-target application to be operated in the mobile terminal is fully utilized by the user to perform entertainment activities under the condition that the mobile terminal has operated at least one target application;
in order to enable the user to more fully utilize the mobile terminal to perform the entertainment activity on the premise that the current remaining power amount can satisfy the total power consumption amount required by the target user when executing the target application, the step S103 determines the power consumption amount that the mobile terminal can allocate to the non-target application in the preset time period according to the current remaining power amount and the total power consumption amount of the mobile terminal, and includes:
judging whether the difference value between the current residual power and the total power consumption of the mobile terminal is greater than a first preset threshold value or not;
specifically, according to the difference between the current residual capacity of the mobile terminal of the target user and the predicted total power consumption of the mobile terminal for running at least one target application, whether the difference between the current residual capacity and the total power consumption is greater than a first preset threshold value is judged;
if so, executing the second step, and determining an idle time period in a preset time period according to the running time period of at least one target application;
specifically, if the difference value between the current remaining power and the total power consumption is greater than a first preset threshold value, a historical application use log generated by each target application and time information is extracted from a user use habit database, and an idle time period in a preset time period is determined according to the running time period of each target application in the historical application use log;
step three, determining non-target applications which can be operated by the mobile terminal in each idle period according to the user preference information of the target user;
step four, determining the power consumption which can be distributed to the non-target application by the mobile terminal in a preset time period according to the difference value between the current residual power and the total power consumption;
if the judgment result is negative, executing a fifth step, and generating prompt information for reminding the user, wherein the prompt information comprises: and reminding the user to continue charging or to carry the charging device, specifically, for example, detecting that the current electric quantity is 45% and the predicted total electric consumption of the target application is 50%, determining that the current remaining electric quantity cannot support and complete the necessary operation of the target application, and at this time, generating a prompt message for reminding the user by the mobile terminal of the target user to remind the user to continue charging or carry the charging device.
Determining the power consumption that the mobile terminal can allocate to the non-target application in the preset time period according to the difference between the current remaining power and the total power consumption, specifically including:
(1) calculating the total power consumption which can be allocated to the non-target application by the mobile terminal in a preset time period according to the difference value between the current residual power and the total power consumption of at least one target application;
specifically, according to the formula P2-P1, the total power consumption amount assignable to the non-target application is calculated; wherein P2 represents the total power consumption amount assignable to the non-target application, P represents the current remaining power amount, and P1 represents the total power consumption amount when running at least one target application;
(2) for each idle period in a preset time period, calculating the total power consumption which can be allocated to at least one non-target application corresponding to the idle period according to the total power consumption which can be allocated to the non-target application in the preset time period;
in particular, according to the formulaCalculating the total power consumption which can be allocated to at least one non-target application corresponding to the idle period;
wherein, prjDenotes a total power consumption amount assignable to at least one non-target application corresponding to an idle period with sequence number j, P2 denotes a total power consumption amount assignable to a non-target application, TjDenotes the duration of the idle period with the sequence number j, m denotes the number of idle periods contained within a preset time period,representing the total duration of the idle periods contained in the preset time period;
(3) calculating the allocable duration of each non-target application APP corresponding to the idle period according to the total power consumption amount allocable to at least one non-target application corresponding to the idle period;
in particular, according to the formulaCalculating the distributable duration of each non-target application APP corresponding to the idle period;
wherein, tajkIndicating the assignable duration, pr, of a non-target application APP with sequence number k that may run during an idle period with sequence number jjRepresenting the total power consumption allocatable to at least one non-target application corresponding to the idle period numbered j, P3 representing the total average power consumption for entertainment for a preset period of time by the target user,representing the historical average use duration of the non-target application APP with the sequence number k;
wherein, the total average power consumption P3 for entertainment in the preset time period of the target user is determined as follows:
for each idle period, acquiring preference information of non-target application APP used by the target user in the idle period from the use habit database of the target user, and obtaining target use according to the preference informationAverage time of each APP used by the user every day according to the formulaObtaining the total average power consumption for entertainment in a preset time period of a target user;
wherein P3 represents the total average power consumption for entertainment over a preset time period; s represents the number of non-target applications APP which can run in a certain idle period; k denotes the sequence number of the non-target application APP,representing the historical average use duration of the non-target application APP with the sequence number k; PAkRepresents the power consumption per unit time of the non-target application APP with sequence number k;
(4) for each idle period, determining the power consumption of each non-target application APP corresponding to the mobile terminal in the idle period according to the allocable duration of each non-target application APP corresponding to the idle period and the power consumption of each non-target application APP in unit time;
in particular, according to the formula PBjK=PAK*tajkCalculating the power consumption of each corresponding non-target application APP which can be distributed by the mobile terminal in the idle period;
wherein, PB isjkRepresenting the power consumption, PA, of a non-target application APP with sequence number k that can be allocated to an idle period with sequence number jkIndicating the power consumption per time, ta, of the non-target application APP with sequence number kjkThe method comprises the steps of representing the assignable duration of a non-target application APP with a sequence number k which can run in an idle period with a sequence number j;
further, for each idle time period, according to the sequence that the power consumption of the non-target applications in unit time is reduced from high to low, and according to the allocable duration of each non-target application APP corresponding to the idle time period, determining the running time period of each non-target application corresponding to the idle time period;
in a specific embodiment, as shown in fig. 6, fig. 6 is a schematic diagram for determining an operating period of a non-target application corresponding to a certain idle period according to an embodiment of the present invention; for example, a certain idle period is 08:00 to 09:50, the total power consumption of at least one non-target application corresponding to the idle period is 500ma, and the total average power consumption of the target user for entertainment in a preset time period is 2500 ma; the historical average use time of the APP1 is 250min, the historical average use time of the APP2 is 200min, and the historical average use time of the APP3 is 100 min; the power consumption per unit time of APP is in the following relation: APP1> APP2> APP 3;
in particular, according to the above formulaCalculating the distributable duration of the non-target application APP with the sequence number k which can run in the idle period with the sequence number j;
wherein, tajkIndicating the assignable duration, pr, of a non-target application APP with sequence number k that may run during an idle period with sequence number jjRepresenting the total power consumption allocatable to at least one non-target application corresponding to the idle period numbered j, P3 representing the total average power consumption for entertainment for a preset period of time by the target user,representing the historical average use duration of the non-target application APP with the sequence number k; the required time of the available APP1 is 50min, the required time of the APP2 is 40min, and the required time of the APP3 is 20min, then, according to the sequence of the power consumption of each APP unit time from large to small, the corresponding non-target applications in the idle period are determined to include the APP1, the APP2 and the APP3, and the operation periods of the mobile terminal of the target user for operating each APP are respectively: 08:00 to 08:50 runs APP1, 08:50 to 09:30 executes APP2, 09:30 to 09:50 executes APP 3.
Wherein the power management plan comprises: at least one of the current remaining power of the mobile terminal, the identification information of each target application, the running time period, the required power consumption, and the identification information, the running time period and the distributed power consumption of each non-target application contained in each idle time period;
correspondingly, the step S104 of generating the power management plan according to the current remaining power, the total power consumption and the power consumption allocable to the non-target application of the mobile terminal includes:
step one, aiming at each target application, determining first attribute information of the target application, wherein the first attribute information comprises: at least one of application identification, operation time interval and estimated power consumption;
specifically, after target applications related to backlog information are determined from a use habit database of a target user according to preference information of the user, estimated power consumption of each target application is determined according to unit time power consumption of each target application and predicted operation time periods of each target application;
determining at least one item of attribute information of an application identifier, an operation time period and pre-estimated power consumption of each target application to be operated, and discharging the attribute information of at least one target application in a power management plan to be generated;
step two, determining second attribute information of each non-target application corresponding to each idle period, wherein the second attribute information comprises: at least one of application identification, operation time period and allocation of available power consumption;
specifically, firstly, the total power consumption which can be distributed to the non-target application is obtained according to the current remaining power and the total power consumption of the mobile terminal in a preset time period; determining the total power consumption which can be allocated to at least one non-target application corresponding to the idle period aiming at each idle period in a preset time period;
then, determining the allocable duration of each non-target application corresponding to the idle period according to the total power consumption amount allocable to at least one non-target application corresponding to the idle period; determining distributable power consumption of each non-target application corresponding to each idle time period within a preset time period according to the distributable time length of each non-target application corresponding to a certain idle time period and the power consumption of each non-target application in unit time;
finally, determining the operation time period of each non-target application according to the required time length for the mobile terminal corresponding to each non-target use scene to operate each non-target application APP and the sequence of the power consumption of each non-target application APP from large to small in unit time, and further determining the non-target application to be operated corresponding to each idle time period; determining at least one item of attribute information of an application identifier, an operation time period and pre-estimated power consumption of each non-target application, and discharging the attribute information of at least one non-target application in a power management plan to be generated;
step three, generating a power supply management plan of the mobile terminal according to the first attribute information and the second attribute information;
specifically, according to first attribute information in a preset time period, attribute information of at least one target application is arranged in the power management plan to be generated, and according to an operating time period of the at least one target application, an idle time period in the preset time period is determined; and according to the second attribute information, discharging each determined non-target operation time period into an idle time period, and generating a power management plan of the mobile terminal.
As shown in fig. 7, fig. 7 is a schematic diagram for generating a power management plan according to an embodiment of the present invention, specifically, for example: the preset time period is 08:00 to 00:00, the target operation time period identifications of each target application to be operated in the mobile terminal of the target user in the preset time period are respectively SP1, SP2 and SP3, the corresponding target operation time periods are respectively 11: 31-12: 01, 14: 02-17: 06 and 18: 25-18: 55 in sequence according to the information of the backlog of the target user and the use habit database of the target user, and the target operation time periods of the target application are arranged in a power supply management plan of the mobile terminal to be generated;
then, according to the determined target operation time periods of the target application, idle time periods among the target operation time periods are determined, as shown in fig. 7, a first idle time period SR1 is 08: 00-11: 31, a second idle time period SR2 is 12: 01-14: 02, a third idle time period SR3 is 17:06-18:25, and a fourth idle time period SR4 is 18: 55-00: 00; according to the determined idle time periods and the attribute information of at least one non-target application to be operated corresponding to the determined idle time periods and according to the user preference information, determining the operation time length of each non-target application corresponding to each determined idle time period according to the sequence of the unit time power consumption of each non-target application from large to small, inserting the determined operation time length of each non-target application into the idle time period, and generating a power management plan of the mobile terminal;
wherein, the step S1053 of adjusting the power consumption allocable to the non-target application to be run in the preset time period according to the actual power change trend graph and the theoretical power change trend graph includes:
judging whether the actual exceeding power consumption of the mobile terminal is larger than a second preset threshold value or not according to the actual power consumption change trend graph and the theoretical power consumption change trend graph;
if so, reducing the power consumption which can be distributed to the non-target application to be operated in a preset time period;
specifically, for example, in the execution process of the power management plan, according to the theoretical power change trend graph, the power of the mobile terminal of the target user at 13:00 should be 75%, and the power of the mobile terminal of the target user at 13:00, which is displayed according to the actual power change trend graph, should be 65%, and according to the second preset threshold value of 3%, it is determined that the power consumption actually exceeds the power consumption by 10% by more than 3%, by shortening the running time of the non-target application to be run in the power management plan, the entertainment time plan of the non-target application is readjusted, and meanwhile, a prompt message is sent to the target user, so that the problem that the user cannot complete the related operation on the target application without a charging device due to the fact that the actual power consumption is greater than the theoretical power consumption is effectively avoided;
if not, continuing to run the non-target application to be run;
or,
when the operation of each target application is finished, judging whether the difference value between the actual residual power consumption and the theoretical residual power consumption is larger than a third preset threshold value or not according to the actual power consumption change trend graph and the theoretical power consumption change trend graph;
if so, increasing the power consumption which can be distributed to the non-target application to be operated in a preset time period;
specifically, the electric quantity milestones of the target applications are set according to the electric consumption of the target applications and the corresponding running time periods; when each target application is finished to run and reaches the electric quantity milestone of the next target application, whether the difference value between the actual residual electric quantity and the theoretical residual electric quantity corresponding to the theoretical electric quantity change trend graph in the electric quantity milestone is larger than a third preset threshold value or not is judged, if yes, the electric quantity in the previous electric quantity milestone is proved to be residual, and the residual electric quantity in the previous milestone is merged into a subsequent plan so as to increase the electric quantity which can be distributed to the non-target application to be run in a preset time period, further increase the running time of the non-target application to be run in the power management plan, and meet the requirement that a user can fully utilize the electric quantity of the non-target application to carry out entertainment activities under the condition that the target application is finished.
If not, further judging whether the current residual electric quantity can operate the electric quantity milestone corresponding to the next target application, if the current residual electric quantity cannot meet the electric quantity milestone corresponding to the next target application, generating prompt information to remind a user to stop using the mobile terminal for entertainment activities.
The power supply management method of the mobile terminal in the embodiment of the invention determines at least one target application which is operated by the mobile terminal in a preset time period and corresponds to the backlog information according to the backlog information of a target user; acquiring the total power consumption of the mobile terminal when the mobile terminal operates at least one target application in a preset time period; determining the power consumption which can be allocated to the non-target application by the mobile terminal in a preset time period according to the current residual power and the total power consumption of the mobile terminal; generating a power supply management plan according to the current residual power, the total power consumption and the power consumption which can be distributed to the non-target application of the mobile terminal, and managing the power supply of the mobile terminal according to the power supply management plan; in the embodiment of the invention, the power consumption which can be distributed to the non-target application in the preset time period is determined on the premise of reserving the total power consumption which meets the requirement that the mobile terminal runs the target application in the preset time period, so that the power supply of the mobile terminal is dynamically managed, a user can fully utilize the mobile terminal to carry out entertainment activities on the premise of ensuring that the current residual power of the mobile terminal meets the requirement of running the target application, and the use experience of the user is improved.
Corresponding to the power management method of the mobile terminal provided in the foregoing embodiment, based on the same technical concept, an embodiment of the present invention further provides a power management apparatus of the mobile terminal, where fig. 8 is a schematic diagram illustrating a first module of the power management apparatus of the mobile terminal provided in the embodiment of the present invention, and the power management apparatus of the mobile terminal is configured to execute the power management method of the mobile terminal described in fig. 1 to 7, and as shown in fig. 8, the power management apparatus of the mobile terminal includes:
a target application determining module 801, configured to determine, according to-do-event information of a target user, at least one target application that is operated by the mobile terminal in a preset time period and corresponds to the to-do-event information;
a total power consumption obtaining module 802, configured to obtain a total power consumption of the mobile terminal when the mobile terminal operates the at least one target application in the preset time period;
a non-target application power consumption determining module 803, configured to determine, according to the current remaining power and the total power consumption of the mobile terminal, power consumption that can be allocated to a non-target application by the mobile terminal in the preset time period;
and the power management module 804 is configured to generate a power management plan according to the current remaining power of the mobile terminal, the total power consumption amount, and the power consumption amount allocable to the non-target application, and manage the power of the mobile terminal according to the power management plan.
In the embodiment of the invention, the power consumption which can be distributed to the non-target application in the preset time period is determined on the premise of reserving the total power consumption which meets the requirement that the mobile terminal runs the target application in the preset time period, so that the power supply of the mobile terminal is dynamically managed, a user can fully utilize the mobile terminal to carry out entertainment activities on the premise of ensuring that the current residual power of the mobile terminal meets the requirement of running the target application, and the use experience of the user is improved.
Optionally, the total power consumption obtaining module 802 is specifically configured to:
and determining the total power consumption of the mobile terminal when the mobile terminal operates the at least one target application in the preset time period according to the historical operation data of the at least one target application.
Optionally, the power management module 804 is specifically configured to:
generating a theoretical electric quantity change trend graph of the power supply of the mobile terminal in the preset time period according to the power supply management plan;
in the execution process of the power management plan, generating an actual power change trend graph of the power supply of the mobile terminal in the preset time period according to the actual power consumption of the target application and the actual power consumption of the non-target application;
and adjusting the power consumption which can be distributed to the non-target application to be operated in the preset time period according to the actual power change trend graph and the theoretical power change trend graph.
Optionally, the non-target application power consumption determining module 803 is specifically configured to:
judging whether the difference value between the current residual power and the total power consumption of the mobile terminal is greater than a first preset threshold value or not;
if yes, determining an idle time period in the preset time period according to the running time period of the at least one target application;
determining non-target applications which can be operated by the mobile terminal in each idle period according to the user preference information of the target user;
and determining the power consumption which can be distributed to the non-target application by the mobile terminal in the preset time period according to the difference value between the current residual power and the total power consumption.
Optionally, the power management module 804 is further specifically configured to:
judging whether the actual exceeding power consumption of the mobile terminal is larger than a second preset threshold value or not according to the actual power consumption change trend graph and the theoretical power consumption change trend graph;
if so, reducing the power consumption which can be distributed to the non-target application to be operated in the preset time period;
or,
when the running of each target application is finished, judging whether the difference value between the actual residual power consumption and the theoretical residual power consumption is larger than a third preset threshold value or not according to the actual power consumption change trend graph and the theoretical power consumption change trend graph;
and if so, increasing the power consumption which can be distributed to the non-target application to be operated in the preset time period.
The power supply management device of the mobile terminal in the embodiment of the invention determines at least one target application which is operated by the mobile terminal in a preset time period and corresponds to the backlog information according to the backlog information of a target user; acquiring the total power consumption of the mobile terminal when the mobile terminal operates at least one target application in a preset time period; determining the power consumption which can be allocated to the non-target application by the mobile terminal in a preset time period according to the current residual power and the total power consumption of the mobile terminal; generating a power supply management plan according to the current residual power, the total power consumption and the power consumption which can be distributed to the non-target application of the mobile terminal, and managing the power supply of the mobile terminal according to the power supply management plan; in the embodiment of the invention, the power consumption which can be distributed to the non-target application in the preset time period is determined on the premise of reserving the total power consumption which meets the requirement that the mobile terminal runs the target application in the preset time period, so that the power supply of the mobile terminal is dynamically managed, a user can fully utilize the mobile terminal to carry out entertainment activities on the premise of ensuring that the current residual power of the mobile terminal meets the requirement of running the target application, and the use experience of the user is improved.
The power management device of the mobile terminal provided by the embodiment of the invention can realize each process in the embodiment corresponding to the power management method of the mobile terminal, and is not described herein again in order to avoid repetition.
It should be noted that the power management apparatus of the mobile terminal according to the embodiment of the present invention and the power management method of the mobile terminal according to the embodiment of the present invention are based on the same inventive concept, and therefore, for specific implementation of the embodiment, reference may be made to implementation of the power management method of the mobile terminal, and repeated details are not described again.
Corresponding to the power management method of the mobile terminal provided in the foregoing embodiment, based on the same technical concept, an embodiment of the present invention further provides a mobile terminal, where the device is configured to execute the power management method of the mobile terminal, fig. 9 is a schematic diagram of a hardware structure of a mobile terminal implementing various embodiments of the present invention, and the mobile terminal 100 shown in fig. 9 includes, but is not limited to: radio frequency unit 101, network module 102, audio output unit 103, input unit 104, sensor 105, display unit 106, user input unit 107, interface unit 108, memory 109, processor 110, and power supply 111. Those skilled in the art will appreciate that the mobile terminal architecture shown in fig. 9 is not intended to be limiting of mobile terminals, and that a mobile terminal may include more or fewer components than shown, or some components may be combined, or a different arrangement of components. In the embodiment of the present invention, the mobile terminal includes, but is not limited to, a terminal device, a tablet computer, a notebook computer, a palm computer, a vehicle-mounted terminal, a wearable device, a pedometer, and the like.
Among others, a processor 110 for
Determining at least one target application which is operated by the mobile terminal in a preset time period and corresponds to the backlog information according to the backlog information of a target user;
acquiring the total power consumption of the mobile terminal when the mobile terminal operates the at least one target application in the preset time period;
determining the power consumption which can be allocated to the non-target application by the mobile terminal in the preset time period according to the current residual power and the total power consumption of the mobile terminal;
and generating a power supply management plan according to the current residual power of the mobile terminal, the total power consumption and the power consumption capable of being distributed to the non-target application, and managing the power supply of the mobile terminal according to the power supply management plan.
In the embodiment of the invention, the power consumption which can be distributed to the non-target application in the preset time period is determined on the premise of reserving the total power consumption which meets the requirement that the mobile terminal runs the target application in the preset time period, so that the power supply of the mobile terminal is dynamically managed, a user can fully utilize the mobile terminal to carry out entertainment activities on the premise of ensuring that the current residual power of the mobile terminal meets the requirement of running the target application, and the use experience of the user is improved.
The processor 110 is specifically configured to:
and determining the total power consumption of the mobile terminal when the mobile terminal operates the at least one target application in the preset time period according to the historical operation data of the at least one target application.
The processor 110 is specifically configured to:
generating a theoretical electric quantity change trend graph of the power supply of the mobile terminal in the preset time period according to the power supply management plan;
in the execution process of the power management plan, generating an actual power change trend graph of the power supply of the mobile terminal in the preset time period according to the actual power consumption of the target application and the actual power consumption of the non-target application;
and adjusting the power consumption which can be distributed to the non-target application to be operated in the preset time period according to the actual power change trend graph and the theoretical power change trend graph.
The processor 110 is specifically configured to:
judging whether the difference value between the current residual power and the total power consumption of the mobile terminal is greater than a first preset threshold value or not;
if yes, determining an idle time period in the preset time period according to the running time period of the at least one target application;
determining non-target applications which can be operated by the mobile terminal in each idle period according to the user preference information of the target user;
and determining the power consumption which can be distributed to the non-target application by the mobile terminal in the preset time period according to the difference value between the current residual power and the total power consumption.
The processor 110 is specifically configured to:
judging whether the actual exceeding power consumption of the mobile terminal is larger than a second preset threshold value or not according to the actual power consumption change trend graph and the theoretical power consumption change trend graph;
if so, reducing the power consumption which can be distributed to the non-target application to be operated in the preset time period;
or,
when the running of each target application is finished, judging whether the difference value between the actual residual power consumption and the theoretical residual power consumption is larger than a third preset threshold value or not according to the actual power consumption change trend graph and the theoretical power consumption change trend graph;
and if so, increasing the power consumption which can be distributed to the non-target application to be operated in the preset time period.
The mobile terminal 100 in the embodiment of the present invention determines, according to the backlog information of the target user, at least one target application corresponding to the backlog information, which is run by the mobile terminal in a preset time period; acquiring the total power consumption of the mobile terminal when the mobile terminal operates at least one target application in a preset time period; determining the power consumption which can be allocated to the non-target application by the mobile terminal in a preset time period according to the current residual power and the total power consumption of the mobile terminal; generating a power supply management plan according to the current residual power, the total power consumption and the power consumption which can be distributed to the non-target application of the mobile terminal, and managing the power supply of the mobile terminal according to the power supply management plan; in the embodiment of the invention, the power consumption which can be distributed to the non-target application in the preset time period is determined on the premise of reserving the total power consumption which meets the requirement that the mobile terminal runs the target application in the preset time period, so that the power supply of the mobile terminal is dynamically managed, a user can fully utilize the mobile terminal to carry out entertainment activities on the premise of ensuring that the current residual power of the mobile terminal meets the requirement of running the target application, and the use experience of the user is improved.
It should be noted that, the mobile terminal 100 provided in the embodiment of the present invention is capable of implementing each process implemented by the mobile terminal in the foregoing power management method of the mobile terminal, and for avoiding repetition, details are not described here again.
It should be understood that, in the embodiment of the present invention, the radio frequency unit 101 may be used for receiving and sending signals during a message transmission or call process, and specifically, after receiving downlink data from a base station, the downlink data is processed by the processor 110; in addition, the uplink data is transmitted to the base station. Typically, 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. In addition, the radio frequency unit 101 can also communicate with a network and other devices through a wireless communication system.
The mobile terminal provides wireless broadband internet access to the user through the network module 102, such as helping the user send and receive e-mails, browse webpages, access streaming media, and the like.
The audio output unit 103 may convert 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 as sound. Also, the audio output unit 103 may also provide audio output related to a specific function performed by the mobile terminal 100 (e.g., a call signal reception sound, a 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 an audio or video signal. The input Unit 104 may include a Graphics Processing Unit (GPU) 1041 and a microphone 1042, and the Graphics processor 1041 processes image data of a still picture or video obtained by an image capturing device (e.g., a camera) in a video capturing mode or an image capturing mode. The processed image frames may be displayed on the display unit 106. The image frames processed by the graphic processor 1041 may be stored in the memory 109 (or other storage medium) or transmitted via the radio frequency unit 101 or the network module 102. The microphone 1042 may receive sound and may be capable of processing such sound into audio data. The processed audio data may be converted into a format output transmittable to a mobile communication base station via the radio frequency unit 101 in case of a phone call mode.
The mobile terminal 100 also includes at least one sensor 105, such as a light sensor, a motion sensor, and other sensors. Specifically, the light sensor includes an ambient light sensor that can adjust the brightness of the display panel 1061 according to the brightness of ambient light, and a proximity sensor that can turn off the display panel 1061 and/or a backlight when the mobile terminal 100 is moved to the ear. As one of the motion sensors, the accelerometer sensor can detect the magnitude of acceleration in each direction (generally three axes), detect the magnitude and direction of gravity when stationary, and can be used to identify the posture of the mobile terminal (such as horizontal and vertical screen switching, related games, magnetometer posture calibration), and vibration identification related functions (such as pedometer, tapping); the sensors 105 may also include fingerprint sensors, pressure sensors, iris sensors, molecular sensors, gyroscopes, barometers, hygrometers, thermometers, infrared sensors, etc., which are not described in detail herein.
The display unit 106 is used to display information input by a 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), or the like.
The user input unit 107 may be used to receive input numeric or character information and generate key signal inputs related to user settings and function control of the mobile terminal. Specifically, the user input unit 107 includes a touch panel 1071 and other input devices 1072. Touch panel 1071, also referred to as a touch screen, may collect touch operations by a user on or near the touch panel 1071 (e.g., operations by a user on or near touch panel 1071 using a finger, stylus, or any suitable object or attachment). The touch panel 1071 may include two parts of a touch detection device and a touch controller. The touch detection device detects the touch direction of a user, detects a signal brought by touch operation and transmits the signal to the touch controller; the touch controller receives touch information from the touch sensing device, converts the touch information into touch point coordinates, sends the touch point coordinates to the processor 110, and receives and executes commands sent by the processor 110. In addition, the touch panel 1071 may be implemented in various types, such as a resistive type, a capacitive type, an infrared ray, and a surface acoustic wave. In addition to the touch panel 1071, the user input unit 107 may include other input devices 1072. Specifically, other input devices 1072 may include, but are not limited to, a physical keyboard, function keys (e.g., volume control keys, switch keys, etc.), a trackball, a mouse, and a joystick, which are not described in detail herein.
Further, the touch panel 1071 may be overlaid on the display panel 1061, and when the touch panel 1071 detects a touch operation thereon or nearby, the touch panel 1071 transmits the touch operation to the processor 110 to determine the type of the touch event, and then the processor 110 provides a corresponding visual output on the display panel 1061 according to the type of the touch event. Although in fig. 9, the touch panel 1071 and the display panel 1061 are two independent components to implement the input and output functions of the mobile terminal, in some embodiments, the touch panel 1071 and the display panel 1061 may be integrated to implement the input and output functions of the mobile terminal, and is not limited herein.
The interface unit 108 is an interface through which an external device is connected to the mobile terminal 100. For example, the external device may include a wired or wireless headset port, an external power supply (or battery charger) port, a wired or wireless data port, a memory card port, a port for connecting a device having an identification module, an audio input/output (I/O) port, a video I/O port, an earphone port, and the like. The interface unit 108 may be used to receive input (e.g., data information, power, etc.) from external devices and transmit the received input to one or more elements within the mobile terminal 100 or may be used to transmit data between the mobile terminal 100 and external devices.
The memory 109 may be used to store software programs as well as various data. The memory 109 may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program required by at least one function (such as a sound playing function, an image playing function, etc.), and the like; the storage data area may store data (such as audio data, a phonebook, etc.) created according to the use of the terminal device, and the like. Further, the memory 109 may include high speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid state storage device.
The processor 110 is a control center of the mobile terminal, connects various parts of the entire mobile terminal using various interfaces and lines, and performs various functions of the mobile terminal and processes data by operating or executing software programs and/or modules stored in the memory 109 and calling data stored in the memory 109, thereby performing overall monitoring of the mobile terminal. Processor 110 may include one or more processing units; preferably, the processor 110 may integrate an application processor, which mainly handles operating systems, user interfaces, application programs, etc., and a modem processor, which mainly handles wireless communications. It will be appreciated that the modem processor described above may not be integrated into the processor 110.
The mobile terminal 100 may further include a power supply 111 (e.g., a battery) for supplying power to various components, and preferably, the power supply 111 may be logically connected to the processor 110 via a power management system, so as to manage charging, discharging, and power consumption management functions via the power management system.
In addition, the mobile terminal 100 includes some functional modules that are not shown, and thus, the detailed description thereof is omitted.
Preferably, an embodiment of the present invention further provides a mobile terminal, which includes a processor 110, a memory 109, and a computer program stored in the memory 109 and capable of running on the processor 110, where the computer program, when executed by the processor 110, implements each process of the above-mentioned embodiment of the power management method for a mobile terminal, and can achieve the same technical effect, and in order to avoid repetition, details are not repeated here.
Further, corresponding to the power management method of the mobile terminal provided in the foregoing embodiment, an embodiment of the present invention further provides a computer-readable storage medium, where a computer program is stored on the computer-readable storage medium, and when the computer program is executed by the processor 110, the steps of the power management method of the mobile terminal are implemented, and the same technical effects can be achieved, and in order to avoid repetition, details are not described here again. The computer-readable storage medium may be a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk.
As will be appreciated by one skilled in the art, embodiments of the present invention may be provided as a method, system, or computer program product. Accordingly, the present invention may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present invention may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The present invention is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the invention. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
In a typical configuration, a computing device includes one or more processors (CPUs), input/output interfaces, network interfaces, and memory.
The memory may include forms of volatile memory in a computer readable medium, Random Access Memory (RAM) and/or non-volatile memory, such as Read Only Memory (ROM) or flash memory (flash RAM). Memory is an example of a computer-readable medium.
Computer-readable media, including both non-transitory and non-transitory, removable and non-removable media, may implement information storage by any method or technology. The information may be computer readable instructions, data structures, modules of a program, or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), Static Random Access Memory (SRAM), Dynamic Random Access Memory (DRAM), other types of Random Access Memory (RAM), Read Only Memory (ROM), Electrically Erasable Programmable Read Only Memory (EEPROM), flash memory or other memory technology, compact disc read only memory (CD-ROM), Digital Versatile Discs (DVD) or other optical storage, magnetic cassettes, magnetic tape magnetic disk storage or other magnetic storage devices, or any other non-transmission medium that can be used to store information that can be accessed by a computing device. As defined herein, a computer readable medium does not include a transitory computer readable medium such as a modulated data signal and a carrier wave.
It is to be understood that the embodiments described herein may be implemented in hardware, software, firmware, middleware, microcode, or any combination thereof. For a hardware implementation, the processing units may be implemented within one or more Application Specific Integrated Circuits (ASICs), Digital Signal Processors (DSPs), Digital Signal Processing Devices (DSPDs), Programmable Logic Devices (PLDs), Field Programmable Gate Arrays (FPGAs), general purpose processors, controllers, micro-controllers, microprocessors, other electronic units designed to perform the functions described herein, or a combination thereof.
For a software implementation, the techniques described in this disclosure may be implemented with modules (e.g., procedures, functions, and so on) that perform the functions described in this disclosure. The software codes may be stored in a memory and executed by a processor. The memory may be implemented within the processor or external to the processor.
It should also be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
Through the above description of the embodiments, those skilled in the art will clearly understand that the method of the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but in many cases, the former is a better implementation manner. Based on such understanding, the technical solutions of the present invention may be embodied in the form of a software product, which is stored in a storage medium (such as ROM/RAM, magnetic disk, optical disk) and includes instructions for enabling a terminal (which may be a terminal device, a computer, a server, an air conditioner, or a network device) to execute the method according to the embodiments of the present invention.
While the present invention has been described with reference to the embodiments shown in the drawings, the present invention is not limited to the embodiments, which are illustrative and not restrictive, and it will be apparent to those skilled in the art that various changes and modifications can be made herein without departing from the spirit and scope of the invention as defined in the appended claims. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present invention should be included in the scope of the claims of the present invention.

Claims (12)

1. A power management method of a mobile terminal, the method comprising:
determining at least one target application which is operated by the mobile terminal in a preset time period and corresponds to the backlog information according to the backlog information of a target user;
acquiring the total power consumption of the mobile terminal when the mobile terminal operates the at least one target application in the preset time period;
determining the power consumption which can be allocated to the non-target application by the mobile terminal in the preset time period according to the current residual power and the total power consumption of the mobile terminal;
and generating a power supply management plan according to the current residual power of the mobile terminal, the total power consumption and the power consumption capable of being distributed to the non-target application, and managing the power supply of the mobile terminal according to the power supply management plan.
2. The method according to claim 1, wherein the obtaining of the total power consumption of the mobile terminal when the at least one target application is running for the preset time period comprises:
and determining the total power consumption of the mobile terminal when the mobile terminal operates the at least one target application in the preset time period according to the historical operation data of the at least one target application.
3. The method of claim 1, wherein the managing the power of the mobile terminal according to the power management plan comprises:
generating a theoretical electric quantity change trend graph of the power supply of the mobile terminal in the preset time period according to the power supply management plan;
in the execution process of the power management plan, generating an actual power change trend graph of the power supply of the mobile terminal in the preset time period according to the actual power consumption of the target application and the actual power consumption of the non-target application;
and adjusting the power consumption which can be distributed to the non-target application to be operated in the preset time period according to the actual power change trend graph and the theoretical power change trend graph.
4. The method according to claim 1, wherein the determining the power consumption amount that can be allocated to the non-target application by the mobile terminal in the preset time period according to the current remaining power amount and the total power consumption amount of the mobile terminal comprises:
judging whether the difference value between the current residual power and the total power consumption of the mobile terminal is greater than a first preset threshold value or not;
if yes, determining an idle time period in the preset time period according to the running time period of the at least one target application;
determining non-target applications which can be operated by the mobile terminal in each idle period according to the user preference information of the target user;
and determining the power consumption which can be distributed to the non-target application by the mobile terminal in the preset time period according to the difference value between the current residual power and the total power consumption.
5. The method according to claim 3, wherein the adjusting the power consumption allocable to the non-target application to be run in the preset time period according to the actual power consumption trend graph and the theoretical power consumption trend graph comprises:
judging whether the actual exceeding power consumption of the mobile terminal is larger than a second preset threshold value or not according to the actual power consumption change trend graph and the theoretical power consumption change trend graph;
if so, reducing the power consumption which can be distributed to the non-target application to be operated in the preset time period;
or,
when the running of each target application is finished, judging whether the difference value between the actual residual power consumption and the theoretical residual power consumption is larger than a third preset threshold value or not according to the actual power consumption change trend graph and the theoretical power consumption change trend graph;
and if so, increasing the power consumption which can be distributed to the non-target application to be operated in the preset time period.
6. An apparatus for power management of a mobile terminal, the apparatus comprising:
the target application determining module is used for determining at least one target application which is operated by the mobile terminal in a preset time period and corresponds to the backlog information according to the backlog information of a target user;
the total power consumption acquisition module is used for acquiring the total power consumption of the mobile terminal when the mobile terminal operates the at least one target application in the preset time period;
the non-target application power consumption determining module is used for determining the power consumption which can be allocated to the non-target application by the mobile terminal in the preset time period according to the current residual power and the total power consumption of the mobile terminal;
and the power supply management module is used for generating a power supply management plan according to the current residual power of the mobile terminal, the total power consumption and the power consumption capable of being distributed to the non-target application, and managing the power supply of the mobile terminal according to the power supply management plan.
7. The apparatus of claim 6, wherein the total power consumption obtaining module is specifically configured to:
and determining the total power consumption of the mobile terminal when the mobile terminal operates the at least one target application in the preset time period according to the historical operation data of the at least one target application.
8. The apparatus of claim 6, wherein the power management module is specifically configured to:
generating a theoretical electric quantity change trend graph of the power supply of the mobile terminal in the preset time period according to the power supply management plan;
in the execution process of the power management plan, generating an actual power change trend graph of the power supply of the mobile terminal in the preset time period according to the actual power consumption of the target application and the actual power consumption of the non-target application;
and adjusting the power consumption which can be distributed to the non-target application to be operated in the preset time period according to the actual power change trend graph and the theoretical power change trend graph.
9. The apparatus of claim 6, wherein the non-target application power consumption determination module is specifically configured to:
judging whether the difference value between the current residual power and the total power consumption of the mobile terminal is greater than a first preset threshold value or not;
if yes, determining an idle time period in the preset time period according to the running time period of the at least one target application;
determining non-target applications which can be operated by the mobile terminal in each idle period according to the user preference information of the target user;
and determining the power consumption which can be distributed to the non-target application by the mobile terminal in the preset time period according to the difference value between the current residual power and the total power consumption.
10. The apparatus of claim 8, wherein the power management module is further specifically configured to:
judging whether the actual exceeding power consumption of the mobile terminal is larger than a second preset threshold value or not according to the actual power consumption change trend graph and the theoretical power consumption change trend graph;
if so, reducing the power consumption which can be distributed to the non-target application to be operated in the preset time period;
or,
when the running of each target application is finished, judging whether the difference value between the actual residual power consumption and the theoretical residual power consumption is larger than a third preset threshold value or not according to the actual power consumption change trend graph and the theoretical power consumption change trend graph;
and if so, increasing the power consumption which can be distributed to the non-target application to be operated in the preset time period.
11. A mobile terminal, comprising: processor, memory and computer program stored on the memory and executable on the processor, the computer program, when executed by the processor, implementing the steps of the power management method of a mobile terminal according to any of claims 1 to 5.
12. A computer-readable storage medium, characterized in that the computer-readable storage medium has stored thereon a computer program which, when executed by a processor, implements the steps of the power management method of a mobile terminal according to any one of claims 1 to 5.
CN201910547646.4A 2019-06-24 2019-06-24 Power management method and device for mobile terminal Active CN110320991B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910547646.4A CN110320991B (en) 2019-06-24 2019-06-24 Power management method and device for mobile terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910547646.4A CN110320991B (en) 2019-06-24 2019-06-24 Power management method and device for mobile terminal

Publications (2)

Publication Number Publication Date
CN110320991A true CN110320991A (en) 2019-10-11
CN110320991B CN110320991B (en) 2022-01-28

Family

ID=68120219

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910547646.4A Active CN110320991B (en) 2019-06-24 2019-06-24 Power management method and device for mobile terminal

Country Status (1)

Country Link
CN (1) CN110320991B (en)

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111768155A (en) * 2020-06-30 2020-10-13 上海木木聚枞机器人科技有限公司 Scheduling control method, intelligent mobile device, server and storage medium
CN113220106A (en) * 2021-05-10 2021-08-06 维沃移动通信有限公司 Power saving control method and power saving control device
CN114034106A (en) * 2021-11-10 2022-02-11 珠海格力电器股份有限公司 Multi-connected unit control method and device and multi-connected unit equipment
CN114518797A (en) * 2020-11-20 2022-05-20 Oppo(重庆)智能科技有限公司 Information pushing method and device, wearable device and storage medium
CN115117966A (en) * 2022-06-30 2022-09-27 深圳市旭联信息技术有限公司 Intelligent detection management method and system based on energy storage device
CN116822340A (en) * 2023-06-12 2023-09-29 中科软件测评(广州)有限公司 Terminal electric quantity optimization method based on software energy consumption
TWI833086B (en) * 2021-05-31 2024-02-21 緯創資通股份有限公司 Control method of power supply and related portable electronic device
CN118312028A (en) * 2024-06-11 2024-07-09 麒麟软件有限公司 Application power consumption management and control method and system of android system

Citations (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20110072292A1 (en) * 2009-09-22 2011-03-24 Microsoft Corporation Power management of a mobile communications device
CN102172082A (en) * 2011-04-22 2011-08-31 华为技术有限公司 Method, terminal device, network side device and communication system for managing power supply
CN102811289A (en) * 2012-08-15 2012-12-05 东莞宇龙通信科技有限公司 Terminal and power management method of same
CN104010072A (en) * 2014-03-03 2014-08-27 小米科技有限责任公司 Electric quantity prompt method and device
CN105975043A (en) * 2016-04-26 2016-09-28 珠海市魅族科技有限公司 Terminal control method and control apparatus as well as terminal
CN106303096A (en) * 2015-06-10 2017-01-04 联想(北京)有限公司 Electronic equipment and the method adjusting power management policy thereof
US20170185134A1 (en) * 2015-12-23 2017-06-29 Samsung Electronics Co., Ltd. Electronic device for managing power and method for controlling thereof
CN106951057A (en) * 2017-03-23 2017-07-14 广东欧珀移动通信有限公司 The control method and mobile terminal of application
CN107707766A (en) * 2017-10-23 2018-02-16 上海爱优威软件开发有限公司 Charging reminding method based on routing
CN108322601A (en) * 2018-01-25 2018-07-24 维沃移动通信有限公司 A kind of based reminding method and terminal
CN109151961A (en) * 2018-07-20 2019-01-04 重庆宝力优特科技有限公司 A kind of operation method of mobile terminal, terminal and computer readable storage medium
CN109388220A (en) * 2018-10-09 2019-02-26 维沃移动通信有限公司 A kind of method for managing power supply and mobile terminal

Patent Citations (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20110072292A1 (en) * 2009-09-22 2011-03-24 Microsoft Corporation Power management of a mobile communications device
CN102172082A (en) * 2011-04-22 2011-08-31 华为技术有限公司 Method, terminal device, network side device and communication system for managing power supply
CN102811289A (en) * 2012-08-15 2012-12-05 东莞宇龙通信科技有限公司 Terminal and power management method of same
CN104010072A (en) * 2014-03-03 2014-08-27 小米科技有限责任公司 Electric quantity prompt method and device
CN106303096A (en) * 2015-06-10 2017-01-04 联想(北京)有限公司 Electronic equipment and the method adjusting power management policy thereof
US20170185134A1 (en) * 2015-12-23 2017-06-29 Samsung Electronics Co., Ltd. Electronic device for managing power and method for controlling thereof
CN105975043A (en) * 2016-04-26 2016-09-28 珠海市魅族科技有限公司 Terminal control method and control apparatus as well as terminal
CN106951057A (en) * 2017-03-23 2017-07-14 广东欧珀移动通信有限公司 The control method and mobile terminal of application
CN107707766A (en) * 2017-10-23 2018-02-16 上海爱优威软件开发有限公司 Charging reminding method based on routing
CN108322601A (en) * 2018-01-25 2018-07-24 维沃移动通信有限公司 A kind of based reminding method and terminal
CN109151961A (en) * 2018-07-20 2019-01-04 重庆宝力优特科技有限公司 A kind of operation method of mobile terminal, terminal and computer readable storage medium
CN109388220A (en) * 2018-10-09 2019-02-26 维沃移动通信有限公司 A kind of method for managing power supply and mobile terminal

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
MENGFANRONG: "手机管理中的应用(6)——电源管理篇", 《HTTP://WWW.CNBLOGS.COM/MENGFANRONG/P/4677143.HTML》 *

Cited By (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111768155A (en) * 2020-06-30 2020-10-13 上海木木聚枞机器人科技有限公司 Scheduling control method, intelligent mobile device, server and storage medium
CN111768155B (en) * 2020-06-30 2024-03-26 上海木木聚枞机器人科技有限公司 Scheduling control method, intelligent mobile device, server and storage medium
CN114518797A (en) * 2020-11-20 2022-05-20 Oppo(重庆)智能科技有限公司 Information pushing method and device, wearable device and storage medium
CN114518797B (en) * 2020-11-20 2024-02-13 Oppo(重庆)智能科技有限公司 Information pushing method and device, wearable device and storage medium
CN113220106A (en) * 2021-05-10 2021-08-06 维沃移动通信有限公司 Power saving control method and power saving control device
CN113220106B (en) * 2021-05-10 2024-05-14 维沃移动通信有限公司 Power saving control method and power saving control device
TWI833086B (en) * 2021-05-31 2024-02-21 緯創資通股份有限公司 Control method of power supply and related portable electronic device
CN114034106A (en) * 2021-11-10 2022-02-11 珠海格力电器股份有限公司 Multi-connected unit control method and device and multi-connected unit equipment
CN115117966A (en) * 2022-06-30 2022-09-27 深圳市旭联信息技术有限公司 Intelligent detection management method and system based on energy storage device
CN116822340A (en) * 2023-06-12 2023-09-29 中科软件测评(广州)有限公司 Terminal electric quantity optimization method based on software energy consumption
CN116822340B (en) * 2023-06-12 2024-05-28 中科软件测评(广州)有限公司 Terminal electric quantity optimization method based on software energy consumption
CN118312028A (en) * 2024-06-11 2024-07-09 麒麟软件有限公司 Application power consumption management and control method and system of android system

Also Published As

Publication number Publication date
CN110320991B (en) 2022-01-28

Similar Documents

Publication Publication Date Title
CN110320991B (en) Power management method and device for mobile terminal
CN107800651B (en) Application program closing method and device, storage medium and electronic equipment
CN108062190B (en) Application running state control method and mobile terminal
CN108055408B (en) Application program control method and mobile terminal
CN106786962B (en) Charging control method and device and terminal
CN110502163B (en) Terminal device control method and terminal device
CN108073458B (en) Memory recovery method, mobile terminal and computer-readable storage medium
CN108170361B (en) Application running state control method and mobile terminal
CN108322601B (en) Reminding method and terminal
CN107613146B (en) Volume adjustment method and device and mobile terminal
CN108196947B (en) Application running state control method and mobile terminal
CN107967177B (en) Memory optimization method based on core process, mobile terminal and readable storage medium
CN109284144B (en) Fast application processing method and mobile terminal
CN109286727B (en) Operation control method and terminal equipment
CN109062634B (en) Application starting method and mobile terminal
CN108710458A (en) A kind of split screen control method and terminal device
CN109635205A (en) Information-pushing method and terminal device
CN110225136B (en) Offline caching method and mobile terminal
CN108601048A (en) A kind of flow control methods and mobile terminal
CN110557506A (en) Electric quantity distribution method and device
CN109688175B (en) Resource package distribution method, resource package acquisition method, device and storage medium
CN111491292B (en) Internet access mode adjusting method and device, storage medium and mobile terminal
CN108170362B (en) Application running state control method and mobile terminal
CN110955436A (en) Application program installation method and electronic equipment
CN107688498B (en) Application program processing method and device, computer equipment and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant