Summary of the invention
In view of this, the technical problem to be solved in the present invention is to provide a kind of method according to information about power adjustment wakeup time, device and terminal, to solve in prior art, by the timing wake-up that the wakeup time of the manual adjustment System of user realizes, the defect reducing terminal power consumption can not be realized preferably, meanwhile, also may be in course of adjustment and bring that systemic-function lacks, systemic-function can not be recovered in time and the system wake-up time can not get problem and the defects such as in time adjustment.
It is as follows that the present invention solves the problems of the technologies described above adopted technical scheme:
Construct a kind of method according to information about power adjustment wakeup time, the method comprises:
In a terminal, set up the first regulation relationship between the dump energy information of battery and the wakeup time information of system;
According to the first regulation relationship adjustment wakeup time.
Preferably, also comprised before setting up the regulation relationship between the dump energy information of battery and the wakeup time information of system:
In preset time period, add up and the wakeup time information of analysis application, wherein, wakeup time information comprises wake-up period and wakes object up.
Preferably, in preset time period, statistics also also comprises before the wakeup time information of analysis application:
In preset time period, add up and the system occupancy information of analysis application and power consumption information, wherein, system occupancy information comprises system resource occupancy and system resource holding time, and power consumption information comprises electric quantity consumption amount and electric quantity consumption speed.
Preferably, the first regulation relationship set up between the dump energy information of battery and the wakeup time information of system specifically comprises:
At wake-up period and wake up between object and set up the second regulation relationship;
The 3rd regulation relationship is set up between system resource occupancy and system resource holding time;
The 4th regulation relationship is set up between electric quantity consumption amount and electric quantity consumption speed.
Preferably, the first regulation relationship set up between the dump energy information of battery and the wakeup time information of system also comprises:
Integrate the second regulation relationship, the 3rd regulation relationship and the 4th regulation relationship, generate the first regulation relationship.
Preferably, after setting up the first regulation relationship between the dump energy information of battery and the wakeup time information of system, before the first regulation relationship adjustment wakeup time, also comprise:
The second regulation and control interface is set up according to the second regulation relationship;
The 3rd regulation and control interface is set up according to the 3rd regulation relationship;
The 4th regulation and control interface is set up according to the 4th regulation relationship.
Preferably, adjust described wakeup time according to the first regulation relationship specifically to comprise:
Interface is regulated and controled, the first corresponding relation between analytical calculation wakeup time information and system occupancy information by the second regulation and control interface and the 3rd, and according to the first corresponding relation adjustment wakeup time;
Or, regulate and control interface, the second corresponding relation described in analytical calculation between wakeup time information and power consumption information by the second regulation and control interface and the 4th, and according to the second corresponding relation adjustment wakeup time;
Preferably, comprise after according to described first regulation relationship adjustment wakeup time:
Regulate and control interface, the 3rd corresponding relation between analytical calculation system occupancy information and power consumption information by the 3rd regulation and control interface and the 4th, and adjust the first corresponding relation and the second corresponding relation according to the 3rd corresponding relation.
The invention allows for a kind of device according to information about power adjustment wakeup time, this device comprises:
Regulation relationship sets up module, for setting up the first regulation relationship between the dump energy information of battery and the wakeup time information of system in a terminal;
Wakeup time adjusting module, for adjusting wakeup time according to the first regulation relationship.
The invention allows for a kind of terminal according to information about power adjustment wakeup time, this terminal comprises the above-mentioned device according to information about power adjustment wakeup time.
Implement the present invention, by setting up the first regulation relationship between the dump energy information of end cell and the wakeup time information of system, then according to this first regulation relationship adjustment wakeup time.Application program is changed along with the change of the dump energy of battery the wakeup time of system, when dump energy is lower, accordingly application program is raised the wakeup time of system, when dump energy is higher, then accordingly application program is lowered the wakeup time of system.Therefore, ensureing that user can obtain the pushed information of application program in time, and on basis to the experience of terminal, reducing the battery consumption of terminal, thus bring more lasting terminal continuation of the journey.
Embodiment
In order to make technical problem to be solved by this invention, technical scheme and beneficial effect clearly, understand, below in conjunction with drawings and Examples, the present invention is further elaborated.Should be appreciated that specific embodiment described herein only in order to explain the present invention, be not intended to limit the present invention.
Fig. 1 is the method flow diagram according to information about power adjustment wakeup time provided by the invention.The method comprises:
S1, in a terminal, sets up the first regulation relationship between the dump energy information of battery and the wakeup time information of system.
First, detect dump energy by the battery electric quantity detection chip in terminal, the mode of detection can be detect battery voltage signal or battery current signal.When the battery of terminal is detachable, then also need the sequence number information of corresponding record battery, maximum capacitance information and current residual information about power.
Then, obtain by the application management interface of this terminal operating system the application program run on this operating system, and obtain the wakeup time of each application program to this operating system respectively.This wakeup time refers to that each application program is built-in, and for when application program receives information pushing, waken system, performs the time interval of information pushing.
Finally, the first regulation relationship between the dump energy information of battery and the wakeup time information of system is set up.Because dump energy information is a variable, Variable Factors comprises the residual electric quantity factor and the current time factor, and similarly, wakeup time information is also a variable, and Variable Factors comprises the application program factor and the current wakeup time factor.Therefore, the wakeup time information of the dump energy information and system that are respectively battery sets up dump energy information database and wakeup time database, and sets up the first regulation relationship between above-mentioned two databases according to the regulation and control demand of wakeup time.
Such as, run in the operating system of terminal and have application program M, application program N, application program P and application program L, wherein, the current wakeup time of application program M, application program N, application program P and application program L is 20s, 15s, 10s and 5s respectively, and meanwhile, what this terminal was conventional has two pieces of batteries, battery X and battery Y respectively, wherein, the capacity of battery X is 2000mA, and the capacity of battery Y is 3000mA.When time point T1, that this terminal is settled is battery X, the application program of running background is application program M, application program N and application program P, therefore, the information of dump energy information database record comprises the dump energy information of battery X at time point T1 and the sequence number of battery X, and the information of wakeup time data-base recording is when being included in time point T1, wakeup time 20s, 15s and 10s of application program M, application program N and application program P.Then now the first regulation relationship can be: if battery dump energy is within 500mA, then the wakeup time of all application programs is adjusted to 20s, if battery dump energy is in the scope of 500mA-1000mA, then the wakeup time of all application programs is adjusted to 10s, if battery dump energy is at more than 1000mA, then keep the wakeup time of all application programs constant.
S2, according to the first regulation relationship adjustment wakeup time.As above, described in example, when according to the first regulation relationship adjustment wakeup time, multiple first regulation relationship can be set up according to the use habit of user or user demand.
The beneficial effect of the present embodiment is, by setting up the first regulation relationship between the dump energy information of end cell and the wakeup time information of system, then according to this first regulation relationship adjustment wakeup time.Application program is changed along with the change of the dump energy of battery the wakeup time of system, when dump energy is lower, accordingly application program is raised the wakeup time of system, when dump energy is higher, then accordingly application program is lowered the wakeup time of system.Therefore, ensureing that user can obtain the pushed information of application program in time, and on basis to the experience of terminal, reducing the battery consumption of terminal, thus bring more lasting terminal continuation of the journey.
Embodiment one
Fig. 2 is the method flow diagram according to information about power adjustment wakeup time that the present invention first preferred embodiment provides.Based on the above method, also comprise before setting up the regulation relationship between the dump energy information of battery and the wakeup time information of system:
S01, in preset time period, add up and the wakeup time information of analysis application, wherein, wakeup time information comprises wake-up period and wakes object up.
As above described in example, application program M in this terminal, application program N, the current wake-up period of application program P and application program L is 20s respectively, 15s, 10s and 5s, wake object up then to refer to, when application program wake moment point up time, the system component waken up, such as, application program M is social class software, need to wake networking component up, application program N is music class software, need to wake audio decoder assembly up, application program P is navigation type software, need to wake Geographic mapping assembly up, application program L is web page browsing class software, need to wake networking component up.Therefore, above-mentioned awake networking component, audio decoder assembly and Geographic mapping assembly are and wake object up.Be appreciated that same application program can have and multiplely wake object up, different application programs can wake object up by common simultaneously.
The beneficial effect of the present embodiment is, by to the wake-up period in wakeup time information and the book of final entry waking object up, make before regulation and control wakeup time, more clear to the situation of the component call of system, simultaneously, to wake the electricity that object consumes in identical wakeup time up be not identical due to different, therefore, object and corresponding wake-up period is waken up according to different, the wakeup time of application program to system associated component can be regulated and controled more accurately, make terminal more effectively utilize the dump energy of battery.
Embodiment two
Fig. 3 is the method flow diagram according to information about power adjustment wakeup time that the present invention second preferred embodiment provides.
Based on above-described embodiment one, in preset time period, statistics also also comprises before the wakeup time information of analysis application:
S02, in preset time period, add up and the system occupancy information of analysis application and power consumption information, wherein, system occupancy information comprises system resource occupancy and system resource holding time, and power consumption information comprises electric quantity consumption amount and electric quantity consumption speed.
In this step, system occupancy information and the power consumption information of adding up also analysis application refer to, statistics application program is to information such as the occupancy of system and priority, meanwhile, its information to the power consumption of the single utility program that the occupancy of system and priority bring is added up for this application program.
Be appreciated that, system occupancy information comprises system resource occupancy and system resource holding time, as above, described in example, application program M is social class software, needs to wake networking component up, application program N is music class software, need to wake audio decoder assembly up, application program P is navigation type software, needs to wake Geographic mapping assembly up, application program L is web page browsing class software, needs to wake networking component up.Therefore, above-mentioned application program run one hour in, to system resource occupancy respectively: the networking component occupancy of a hour, the audio decoder assembly occupancy of a hour, the Geographic mapping assembly occupancy of hour and the networking component occupancy of a hour.
The power consumption information of the present embodiment comprises electric quantity consumption amount and electric quantity consumption speed.As above described in example, correspondingly, the electricity that statistics application program M, application program N, application program P and application program L consume separately within the time of one hour, and correspondingly calculate electric quantity consumption speed.
The beneficial effect of the present embodiment is, by difference statistical analysis system resource occupation amount, system resource holding time, electric quantity consumption amount and electric quantity consumption speed.The electric quantity consumption factor of segmentation terminal, carries out statistical analysis by electric quantity consumption degree during application program waken system, thus regulates and controls application program more accurately to the wakeup time of system.
Embodiment three
Fig. 4 is the method flow diagram according to information about power adjustment wakeup time that the present invention the 3rd preferred embodiment provides
Based on above-described embodiment, the first regulation relationship set up between the dump energy information of battery and the wakeup time information of system specifically comprises:
S11, at wake-up period and wake up between object and set up the second regulation relationship.This regulation relationship is set up by relevant logical relation, is appreciated that wake-up period herein and wakes object up all can be set to corresponding subdata base, and then sets up the regulation relationship between above-mentioned two subdatas.
S12, sets up the 3rd regulation relationship between system resource occupancy and system resource holding time.Similarly, system resource occupancy subdata base and system resource holding time subdata base is set up.
S13, sets up the 4th regulation relationship between electric quantity consumption amount and electric quantity consumption speed.Similarly, electric quantity consumption quantal data storehouse and electric quantity consumption speed subdata base is set up.
The present embodiment sets up multiple regulation relationship between multiple subdata base, be appreciated that, first be in Preset Time, the statistical analysis of the running status of terminal entirety, then corresponding regulation relationship is generated according to user's request or presupposed solution and in conjunction with the result of statistical analysis, finally by the regulation relationship adjustment wakeup time generated.
The beneficial effect of the present embodiment is, in conjunction with multiple subdata base and corresponding multiple regulation relationship, make can the regulation and control variable of reference more, the adaptability of Regulate Environment is stronger, thus can solve more comprehensively according to the multiple demand in dump energy regulation and control wakeup time process.
Embodiment four
Fig. 5 is the method flow diagram according to information about power adjustment wakeup time that the present invention the 4th preferred embodiment provides.
Based on above-described embodiment, the first regulation relationship set up between the dump energy information of battery and the wakeup time information of system also comprises:
S14, integrates the second regulation relationship, the 3rd regulation relationship and the 4th regulation relationship, generates the first regulation relationship.
Be appreciated that this integrated operation can be simple union operation, also can be extract reference point, and integrate relevant regulation relationship according to reference point.Such as, when the second regulation relationship and the 3rd regulation relationship have reference point wake the resource occupation amount of object up time, then integrate above-mentioned second regulation relationship and the 3rd regulation relationship according to the resource occupation amount waking object up, need according to when waking corresponding resource occupation amount adjustment wakeup time up when relating to, then correspondingly can transfer this reference point in the first regulation relationship, and according to this reference point adjustment wakeup time.
The beneficial effect of the present embodiment is, integrates multiple regulation relationship, makes the logical communication link between each regulation relationship stronger, meanwhile, performs the efficiency calling regulation relationship higher.
Embodiment five
Fig. 6 is the method flow diagram according to information about power adjustment wakeup time that the present invention the 5th preferred embodiment provides.
Based on above-described embodiment, after setting up the first regulation relationship between the dump energy information of battery and the wakeup time information of system, before adjusting described wakeup time according to described first regulation relationship, also comprise:
S15, sets up the second regulation and control interface according to the second regulation relationship.
S16, sets up the 3rd regulation and control interface according to the 3rd regulation relationship.
S17, sets up the 4th regulation and control interface according to the 4th regulation relationship.
Set up according to regulation relationship and regulate and control interface accordingly, the regulation relationship of being more convenient for needed for system or application call by regulation and control interface.
Embodiment six
Fig. 7 is the method flow diagram according to information about power adjustment wakeup time that the present invention the 6th preferred embodiment provides;
Based on above-described embodiment, adjust described wakeup time according to the first regulation relationship and specifically comprise:
S21, regulates and controls interface, the first corresponding relation between analytical calculation wakeup time information and system occupancy information by the second regulation and control interface and the 3rd, and according to the first corresponding relation adjustment wakeup time.In this step, second regulation and control interface and the 3rd regulates and controls interface and is respectively used to call the second regulation relationship and the 3rd regulation relationship, from above-described embodiment, in above-mentioned two, the reference point of regulation relationship is wakeup time information and system occupancy information, therefore, now according to wakeup time information and system occupancy information as with reference to variable, wakeup time will be adjusted.
Particularly, resolve wakeup time information and the system occupancy information of pressing above-described embodiment record, extract wakeup time and the system seizure condition of current point in time, then, call default second and the 3rd regulation relationship, and carry out the adjustment of wakeup time in conjunction with above-mentioned wakeup time and system seizure condition.
S21 ', regulates and controls interface, the second corresponding relation between analytical calculation wakeup time information and power consumption information by the second regulation and control interface and the 4th, and according to the second corresponding relation adjustment wakeup time.This step and above-mentioned steps S21 belong to optional step arranged side by side, do not repeat them here.
The beneficial effect of the present embodiment is, by the factor being used for adjusting wakeup time is divided into two levels, wherein, ground floor sets up corresponding relation at single factor of influence, such as, wake-up period and wake object, system resource occupancy and system resource holding time, electric quantity consumption amount and electric quantity consumption speed up is then the cross integration on the basis of ground floor for the second time, improve the mechanism to wakeup time adjustment further, thus provide more Adjusted Option for the adjustment of wakeup time.
Embodiment seven
Fig. 8 is the method flow diagram according to information about power adjustment wakeup time that the present invention the 7th preferred embodiment provides;
Based on above-described embodiment six, comprise after according to institute first regulation relationship adjustment wakeup time:
S3, regulates and controls interface, the 3rd corresponding relation between analytical calculation system occupancy information and power consumption information by the 3rd regulation and control interface and the 4th, and adjusts the first corresponding relation and the second corresponding relation according to the 3rd corresponding relation.Be appreciated that this step is the second layer control methods by above-described embodiment, to integrated operation, the renewal rewards theory of the first corresponding relation and the second corresponding relation.
One of ordinary skill in the art will appreciate that all or part of step realized in above-described embodiment method is that the hardware that can control to be correlated with by program completes, described program can be stored in a computer read/write memory medium, described storage medium, as ROM/RAM, disk, CD etc.
Fig. 9 is the structured flowchart of the device according to information about power adjustment wakeup time provided by the invention.
The invention allows for a kind of device according to information about power adjustment wakeup time, this device comprises:
Regulation relationship sets up module 10, for setting up the first regulation relationship between the dump energy information of battery and the wakeup time information of system in a terminal;
Wakeup time adjusting module 20, for adjusting wakeup time according to the first regulation relationship.
It should be noted that, the technical characteristic in said method embodiment is all corresponding applicable at this device, no longer repeats here.
The invention allows for a kind of terminal according to information about power adjustment wakeup time, this terminal comprises the above-mentioned device according to information about power adjustment wakeup time.
Implement the present invention, by setting up the first regulation relationship between the dump energy information of end cell and the wakeup time information of system, then according to this first regulation relationship adjustment wakeup time.Application program is changed along with the change of the dump energy of battery the wakeup time of system, when dump energy is lower, accordingly application program is raised the wakeup time of system, when dump energy is higher, then accordingly application program is lowered the wakeup time of system.Therefore, ensureing that user can obtain the pushed information of application program in time, and on basis to the experience of terminal, reducing the battery consumption of terminal, thus bring more lasting terminal continuation of the journey.
Above with reference to the accompanying drawings of the preferred embodiments of the present invention, not thereby limit to interest field of the present invention.Those skilled in the art do not depart from the scope and spirit of the present invention, and multiple flexible program can be had to realize the present invention, and the feature such as an embodiment can be used for another embodiment and obtains another embodiment.All use do within technical conceive of the present invention any amendment, equivalently replace and improve, all should within interest field of the present invention.