CN103218033B - A kind of method and device waking hardware device up - Google Patents

A kind of method and device waking hardware device up Download PDF

Info

Publication number
CN103218033B
CN103218033B CN201310105368.XA CN201310105368A CN103218033B CN 103218033 B CN103218033 B CN 103218033B CN 201310105368 A CN201310105368 A CN 201310105368A CN 103218033 B CN103218033 B CN 103218033B
Authority
CN
China
Prior art keywords
time
wakeup time
wake
delay
wakeup
Prior art date
Application number
CN201310105368.XA
Other languages
Chinese (zh)
Other versions
CN103218033A (en
Inventor
张扬
孙鹏
Original Assignee
小米科技有限责任公司
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 小米科技有限责任公司 filed Critical 小米科技有限责任公司
Priority to CN201310105368.XA priority Critical patent/CN103218033B/en
Publication of CN103218033A publication Critical patent/CN103218033A/en
Application granted granted Critical
Publication of CN103218033B publication Critical patent/CN103218033B/en

Links

Classifications

    • Y02D10/24

Abstract

The invention discloses a kind of method and the device that wake hardware device up, belong to field of computer technology.Described method comprises: receive the wake request to predetermined hardware that application sends, at least carry the wakeup time that described application is specified in described wake request; Determine that described wakeup time is the need of delay according to described wakeup time and default delay wake-up period; When described wakeup time needs Delay time, then determine the delay wakeup time to described predetermined hardware according to described wakeup time and described default delay wake-up period, and wake described predetermined hardware up according to described delay wakeup time.The present invention, by the wakeup time of specifying in the wake request of application and the delay wake-up period preset are postponed the application of wakeup time by needing, carries out waking delay disposal up.Reduce and wake the serious situation of power consumption that hardware device causes up due to frequently unordered, improve the stand-by time of terminal.

Description

A kind of method and device waking hardware device up

Technical field

The present invention relates to field of computer technology, particularly a kind of method and device waking hardware device up.

Background technology

Along with the development of terminal technology, terminal has spread in the life of people gradually.Due to the limited battery capacity of terminal, in order to terminal can be more lasting standby use, therefore power management is focus important in terminal development always.

Power management of the prior art is: the hardware device in terminal is not when having application call, and can enter dormant state, now power consumption is extremely low.When application needs to call hardware device, the hardware device called to needs again sends wake request, inform that hardware device needs the time of waking up, hardware device can be converted to duty in the time of waking up from dormant state, for the application of calling self is served.

Realizing in process of the present invention, inventor finds that above-mentioned technology at least exists following problem:

During each application call hardware device, demand according to each application self wakes hardware device up, the process called can be caused frequent and unordered, each hardware device is caused to be waken up frequently, such situation does not reach the effect of original dormancy economize on electricity, this frequently unordered process waking hardware device up, can cause more serious power consumption on the contrary.

Summary of the invention

Unordered waking hardware device up and the problem causing power consumption serious to solve frequently, embodiments providing a kind of method and the device that wake hardware device up.Described technical scheme is as follows:

On the one hand, provide a kind of method waking hardware device up, described method comprises:

Receive the wake request to predetermined hardware that application sends, in described wake request, at least carry the wakeup time that described application is specified;

Determine that described wakeup time is the need of delay according to described wakeup time and default delay wake-up period;

When described wakeup time needs Delay time, then determine the delay wakeup time to described predetermined hardware according to described wakeup time and described default delay wake-up period, and wake described predetermined hardware up according to described delay wakeup time;

Wherein, described according to described wakeup time and preset delay wake-up period determine that described wakeup time is the need of delay, comprising:

Complementation computing is carried out to described wakeup time and default delay wake-up period, obtains the first remainder;

When described first remainder is zero, then determine that described wakeup time does not need to postpone;

When described first remainder is non-vanishing, then determine that described wakeup time needs to postpone.

On the other hand, provide a kind of device waking hardware device up, described device comprises:

Receiver module, for receiving the wake request to predetermined hardware that application sends, at least carries the wakeup time that described application is specified in described wake request;

According to described wakeup time and default delay wake-up period, determination module, for determining that described wakeup time is the need of delay;

First wake module, for needing Delay time when described wakeup time, then determines the delay wakeup time to described predetermined hardware according to described wakeup time and described default delay wake-up period, and wakes described predetermined hardware up according to described delay wakeup time;

Wherein, described determination module, comprising:

First computing unit, for carrying out complementation computing to described wakeup time and default delay wake-up period, obtains the first remainder;

First determining unit, for when described first remainder is zero, then determines that described wakeup time does not need to postpone;

Second determining unit, for when described first remainder is non-vanishing, then determines that described wakeup time needs to postpone.

The beneficial effect that the technical scheme that the embodiment of the present invention provides is brought is:

By the wakeup time of specifying in the wake request of application and the delay wake-up period preset are postponed the application of wakeup time by needing, carry out waking delay disposal up.Reduce and wake the serious situation of power consumption that hardware device causes up due to frequently unordered, improve the stand-by time of terminal.

Accompanying drawing explanation

In order to be illustrated more clearly in the technical scheme in the embodiment of the present invention, below the accompanying drawing used required in describing embodiment is briefly described, apparently, accompanying drawing in the following describes is only some embodiments of the present invention, for those of ordinary skill in the art, under the prerequisite not paying creative work, other accompanying drawing can also be obtained according to these accompanying drawings.

Fig. 1 is the method flow diagram waking hardware device up that the embodiment of the present invention one provides;

Fig. 2 is the method flow diagram waking hardware device up that the embodiment of the present invention two provides;

Fig. 3 is the method flow diagram waking hardware device up that the embodiment of the present invention three provides;

Fig. 4 is the apparatus structure schematic diagram waking hardware device up that the embodiment of the present invention four provides.

Embodiment

For making the object, technical solutions and advantages of the present invention clearly, below in conjunction with accompanying drawing, embodiment of the present invention is described further in detail.

Embodiment one

Embodiments provide a kind of method waking hardware device up, see Fig. 1, method flow comprises:

101: receive the wake request to predetermined hardware that application sends, in described wake request, at least carry the wakeup time that described application is specified;

102: determine that described wakeup time is the need of delay according to described wakeup time and default delay wake-up period;

103: when described wakeup time needs Delay time, then determine the delay wakeup time to described predetermined hardware according to described wakeup time and described default delay wake-up period, and wake described predetermined hardware up according to described delay wakeup time.

Wherein, described hardware device is one or more in central processor CPU, Wireless Fidelity Wifi module, global position system GPS module.

The embodiment of the present invention, by the wakeup time of specifying in the wake request of application and the delay wake-up period preset are postponed the application of wakeup time by needing, carries out waking delay disposal up.Reduce and wake the serious situation of power consumption that hardware device causes up due to frequently unordered, improve the stand-by time of terminal.

Embodiment two

Embodiments provide a kind of method waking hardware device up, see Fig. 2.

It should be noted that, the embodiment of the present invention is that example is described the method waking hardware device up with the process of application call CPU (CentralProcessingUnit, central processing unit) in Android (Android) system.

When being applied in the CPU waking up and be in dormant state, when CPU is waken up by sending AlarmManager message apprizing system.Wherein, AlarmManager is available to the interface to fixed cycle operator management of upper layer application, application can arrange timing wake-up operation that is single and that repeat by set and the setRepeating interface calling AlarmManager, wake CPU up to carry out and apply the operation customized in advance after the time that system can be arranged in application arrives.

In embodiments of the present invention, application call be this interface of set of AlarmManager, when apprizing system wakes CPU up, wherein also carries application identities in request message, i.e. uid.Further, the content of this message is: AlarmManager.set (inttype, longtriggerAtMillis, PendingIntentoperation), wherein parametric t ype is time type, triggerAtMillis is the wakeup time of setting, and operation is the operation then carried out afterwards.

Time type wherein in type is divided into four kinds: RTC, to start the then time that millisecond number is till now digit setting Alarm zero point on January 1st, 1970, if then terminal is in dormant state and does not wake hardware device up, but wait for that next hardware device is waken up laggard line operate; RTC_WAKEUP, is the then time setting Alarm for digit with the millisecond number started zero point on January 1st, 1970 till now, if then hardware device dormancy, wakes hardware device up and operate; ELAPSED_REALTIME, is start the millisecond number till now then time for digit setting Alarm with this starting up of terminal, if then hardware device dormancy does not wake hardware device up, but waits for that next hardware device wakes laggard line operate up; ELAPSED_REALTIME_WAKEUP, is start the millisecond number till now then time for digit setting Alarm with this starting up of terminal, if then hardware device dormancy, wakes hardware device up and operate.

Wherein, method flow comprises:

201: receive the wake request to predetermined hardware that application sends, in described wake request, at least carry the wakeup time that described application is specified.

Wakeup time and time type and concrete operation can be carried in the wake request that system receives, if when wherein time type is ELAPSED_REALTIME_WAKEUP, when calculating wakeup time the need of the process postponed in following flow process, this time is then needed to be added with the system boot time, calculate millisecond value till now from zero point on January 1st, 1970, and time type for this time be RTC_WAKEUP time, then directly use this millisecond value to calculate.

202: judge the white list whether described application identities belongs to default.

Preferably, consider certain applications, such as: alarm clock application etc., very accurate to the time accuracy requirement of fixed cycle operator, therefore the application identities of this type of application assert authoritative organization (official or have the tissue of similar power influence power) is added in the white list prestored and manage, thus the delay request that application corresponding for the application identities belonged in white list is sent, time unifying strategy is not carried out to ensure that this kind of application program can work normally in the normal time to it.

203: determine that described wakeup time is the need of delay according to described wakeup time and default delay wake-up period.

In time judging in step 202 in the white list that application identities belongs to default, then step 203 can be:

When described application identities does not belong to described default white list, then determine that described wakeup time is the need of delay according to described wakeup time and default delay wake-up period.

Postpone wake-up period, being the standard of a default time unifying, is a millisecond value.If the wakeup time in wake request needs to carry out postponing through calculating with delay wake-up period, postpone the wakeup time of application.Wherein, account form is: computing wakeup time and delay wake-up period being carried out complementation, checks whether be zero after obtaining remainder, if be zero, illustrate that this wakeup time is without the need to postponing, when the wakeup time of wake request arrives, system can wake CPU up; If non-vanishing, illustrate that this wakeup time needs to postpone.

Such as: default wake-up period is 300000 milliseconds, namely with 5 minutes for standard carries out time unifying, the time must be the time can divided exactly by 300000, just allows not to be delayed by.When 12:08 subsystem receives the wake request of A application transmission, the wakeup time wherein carried in request is that 12:13 divides, according to 12:13 divide corresponding from zero point on January 1st, 1970 millisecond number be till now that the millisecond value of digit and default wake-up period 300000 milliseconds determine that this wakeup time is the need of delay, 12:13 divides corresponding millisecond value divided by can not be divided evenly after 300000, and remainder is 120000 non-zero, illustrates that this wakeup time needs to postpone.

When 12:10 subsystem receives the wake request of application B transmission, the wakeup time wherein carried in request is that 12:15 divides, according to 12:15 divide corresponding from zero point on January 1st, 1970 millisecond number be till now that the millisecond value of digit and default wake-up period 300000 milliseconds determine that this wakeup time is the need of delay, 12:15 divides corresponding millisecond value divided by can be divided evenly after 300000, and remainder is 0 and illustrates that this wakeup time is without the need to postponing.

Step 203 determines that wakeup time the need of the process postponed is:

2031: complementation computing is carried out to described wakeup time and default delay wake-up period, obtains the first remainder;

2032: when described first remainder is zero, then determine that described wakeup time does not need to postpone.

If do not need to postpone, then perform step 205.

2033: when described first remainder is non-vanishing, then determine that described wakeup time needs to postpone.

If need to postpone, then perform step 204.

204: when described wakeup time needs Delay time, then determine the delay wakeup time to described predetermined hardware according to described wakeup time and described default delay wake-up period, and wake described predetermined hardware up according to described delay wakeup time.

The mode that namely wakeup time calculated after postponing postpones wakeup time is:

Described wakeup time and described first remainder are subtracted each other, and is added with described default delay wake-up period and obtains the very first time, and the described very first time is defined as postpone wakeup time.

Connect the example in step 202, the remainder calculated is 120000, is divided by 12:13 corresponding millisecond value to deduct 120000, and be added with 300000, the delay wakeup time obtained is that 12:15 divides, and CPU wakes up in 12:15 timesharing by system, for application A carries out concrete call operation.

205: when described wakeup time does not need Delay time, then wake the hardware device of described application call up according to described wakeup time.

12:10 in step 202 divides the application B that the receives wake request sent, and wakeup time corresponding to this wake request does not need to be delayed by, and therefore CPU wakes up in 12:15 timesharing by system, for application B carries out concrete call operation.

For the wake request of the application A in step 202 example and application B, system only need be divided at 12:15 and waken the wake operation that CPU completes twice wake request up.

The embodiment of the present invention, by the wakeup time of specifying in the wake request of application and the delay wake-up period preset are postponed the application of wakeup time by needing, carries out waking delay disposal up.Reduce and wake the serious situation of power consumption that hardware device causes up due to frequently unordered, improve the stand-by time of terminal.

Embodiment three

Embodiments provide a kind of method waking hardware device up, see Fig. 3.

It should be noted that, some application needs the CPU that wakes up repeated to carry out concrete operation.In embodiments of the present invention, application call be this interface of setRepeating of AlarmManager, when apprizing system wakes CPU up, and at every periodic wakeup CPU when one-period wakeup time arrives, wherein also carry application identities in request message, i.e. uid.Further, the content of this message is: AlarmManager.setRepeating (inttype, longtriggerAtMillis, longintervalMillis, PendingIntentoperation), wherein parametric t ype is time type, and triggerAtMillis is the wakeup time of setting, intervalMillis is the periodic wakeup time interval, and operation is the operation then carried out afterwards.

Further, in the embodiment of the present invention, part steps is identical with the description in embodiment two, does not repeat them here.

301: receive the wake request to predetermined hardware that application sends, in described wake request, at least carry the wakeup time that described application is specified.

Wakeup time can be carried in the wake request that system receives, time type, the periodic wakeup time interval and concrete operation, wherein the periodic wakeup time interval is for after being applied in and waking CPU up first, periodically wakes the time of CPU every this periodic wakeup time interval up.

303: judge the white list whether described application identities belongs to default.

303: according to described wakeup time and default delay wake-up period, determine that described wakeup time is the need of delay.

In time judging in step 302 in the white list that application identities belongs to default, then step 303 can be:

When described application identities does not belong to described default white list, then determine that described wakeup time is the need of delay according to described wakeup time and default delay wake-up period.

Such as: when 12:08 subsystem receives the wake request of A application transmission, the wakeup time wherein carried in request is that 12:13 divides and the periodic wakeup time interval is 660000 milliseconds, namely 11 minutes.According to 12:13 divide corresponding from zero point on January 1st, 1970 millisecond number be till now that the millisecond value of digit and default wake-up period 300000 milliseconds determine that this wakeup time is the need of delay, 12:13 divides corresponding millisecond value divided by can not be divided evenly after 300000, and remainder is 120000 non-zero, illustrates that this wakeup time needs to postpone.

Step 303 determines that wakeup time the need of the process postponed is:

3031: complementation computing is carried out to described wakeup time and default delay wake-up period, obtains the first remainder;

3032: when described first remainder is zero, then determine that described wakeup time does not need to postpone.

If do not need to postpone, then perform step 305.

3033: when described first remainder is non-vanishing, then determine that described wakeup time needs to postpone.

If need to postpone, then perform step 304.

304: when described wakeup time needs Delay time, then determine the delay wakeup time to described predetermined hardware according to described wakeup time and described default delay wake-up period, and wake described predetermined hardware up according to described delay wakeup time.

Connect the example in step 302, the remainder calculated is 120000, is divided by 12:13 corresponding millisecond value to deduct 120000, and be added with 300000, the delay wakeup time obtained is that 12:15 divides, and CPU wakes up in 12:15 timesharing by system, for application A carries out concrete call operation.

305: when described wakeup time does not need Delay time, then wake the hardware device of described application call up according to described wakeup time.

306: when waking the hardware device of described application call up, according to current time, the delay wake-up period preset and the described periodic wakeup time interval, determine next cycle wakeup time, and wake the hardware device of described application call up according to described next cycle wakeup time.

When CPU is waken up at 12:15 first, according to 12:15 divide corresponding from zero point on January 1st, 1970 millisecond number be till now the millisecond value of digit, default wake-up period 300000 milliseconds and the periodic wakeup time interval are 660000 milliseconds, determine the next cycle wakeup time applying A.

Therefore determine that the process of next cycle wakeup time is:

3061: described current time was added with the periodic wakeup time interval and obtained for the second time, and complementation computing is carried out to described second time and described default delay wake-up period, obtain the second remainder.

To 12:15 divide corresponding from zero point on January 1st, 1970 millisecond number be till now the millisecond value of digit, be 660000 milliseconds of additions with the periodic wakeup time interval, the time obtained be 12:26 divide corresponding from zero point on January 1st, 1970 millisecond number be till now the millisecond value of digit.This millisecond value and default wake-up period 300000 milliseconds are carried out complementation computing, obtains remainder 60000.

3062: when described second remainder is zero, to be then added with the described periodic wakeup time interval according to described current time and to obtain for the 3rd time, and described 3rd time is defined as next cycle wakeup time.

3063: when described second remainder is non-vanishing, then subtract each other according to described current time and described second remainder, and be added with the described periodic wakeup time interval and obtained for the 4th time, and described 4th time is defined as next cycle wakeup time.

By 12:15 is divided corresponding from zero point on January 1st, 1970 millisecond number be till now that the millisecond value of digit and remainder 60000 subtract each other, and to be added with default wake-up period 300000 milliseconds, to obtain next cycle wakeup time.

Further, be, after application A wakes CPU up, all will calculate next cycle wakeup time so that when the time arrives, wake CPU up afterwards at every turn.

The embodiment of the present invention, by the wakeup time of specifying in the wake request of application and the delay wake-up period preset are postponed the application of wakeup time by needing, carries out waking delay disposal up.Reduce and wake the serious situation of power consumption that hardware device causes up due to frequently unordered, improve the stand-by time of terminal.

Embodiment four

Embodiments provide a kind of device waking hardware device up, see Fig. 4, this device comprises:

Receiver module 401, for receiving the wake request to predetermined hardware that application sends, at least carries the wakeup time that described application is specified in described wake request;

According to described wakeup time and default delay wake-up period, determination module 402, for determining that described wakeup time is the need of delay;

First wake module 403, for needing Delay time when described wakeup time, then determine the delay wakeup time to described predetermined hardware according to described wakeup time and described default delay wake-up period, and wake described predetermined hardware up according to described delay wakeup time.

Wherein, in a specific embodiment, described determination module 402, comprising:

First computing unit 4021, for carrying out complementation computing to described wakeup time and default delay wake-up period, obtains the first remainder;

First determining unit 4022, for when described first remainder is zero, then determines that described wakeup time does not need to postpone;

Second determining unit 4023, for when described first remainder is non-vanishing, then determines that described wakeup time needs to postpone.

Wherein, described first wake module 403 specifically for:

Described wakeup time and described first remainder are subtracted each other, and is added with described default delay wake-up period and obtains the very first time, and the described very first time is defined as postpone wakeup time.

Wherein, in described wake request, also carry the periodic wakeup time interval,

Accordingly, described device also comprises:

Second wake module 404, for when waking the hardware device of described application call up, according to current time, the delay wake-up period preset and the described periodic wakeup time interval, determine next cycle wakeup time, and wake the hardware device of described application call up according to described next cycle wakeup time.

Wherein, described second wake module 404, comprising:

Second computing unit 4041, obtained for the second time for described current time being added with the periodic wakeup time interval, and carried out complementation computing to described second time and described default delay wake-up period, obtained the second remainder;

First wakeup unit 4042, for when described second remainder is zero, is then added with the described periodic wakeup time interval according to described current time and obtained for the 3rd time, and described 3rd time is defined as next cycle wakeup time;

Second wakeup unit 4043, for when described second remainder is non-vanishing, then subtract each other according to described current time and described second remainder, and be added with the described periodic wakeup time interval and obtained for the 4th time, and described 4th time is defined as next cycle wakeup time.

Wherein, when also carrying application identities in described wake request,

Described device also comprises:

Judge module 405, for judging the white list whether described application identities belongs to default;

Correspondingly, described determination module specifically for:

When described application identities does not belong to described default white list, then determine that described wakeup time is the need of delay according to described wakeup time and default delay wake-up period.

Wherein, described hardware device is one or more in central processor CPU, Wireless Fidelity Wifi module, global position system GPS module.

The embodiment of the present invention, by the wakeup time of specifying in the wake request of application and the delay wake-up period preset are postponed the application of wakeup time by needing, carries out waking delay disposal up.Reduce and wake the serious situation of power consumption that hardware device causes up due to frequently unordered, improve the stand-by time of terminal.

The invention described above embodiment sequence number, just to describing, does not represent the quality of embodiment.

One of ordinary skill in the art will appreciate that all or part of step realizing above-described embodiment can have been come by hardware, the hardware that also can carry out instruction relevant by program completes, described program can be stored in a kind of computer-readable recording medium, the above-mentioned storage medium mentioned can be ROM (read-only memory), disk or CD etc.

The foregoing is only preferred embodiment of the present invention, not in order to limit the present invention, within the spirit and principles in the present invention all, any amendment done, equivalent replacement, improvement etc., all should be included within protection scope of the present invention.

Claims (12)

1. wake a method for hardware device up, it is characterized in that, described method comprises:
Receive the wake request to predetermined hardware that application sends, in described wake request, at least carry the wakeup time that described application is specified;
Determine that described wakeup time is the need of delay according to described wakeup time and default delay wake-up period;
When described wakeup time needs Delay time, then determine the delay wakeup time to described predetermined hardware according to described wakeup time and described default delay wake-up period, and wake described predetermined hardware up according to described delay wakeup time;
Wherein, described according to described wakeup time and preset delay wake-up period determine that described wakeup time is the need of delay, comprising:
Complementation computing is carried out to described wakeup time and default delay wake-up period, obtains the first remainder;
When described first remainder is zero, then determine that described wakeup time does not need to postpone;
When described first remainder is non-vanishing, then determine that described wakeup time needs to postpone.
2. method according to claim 1, is characterized in that, describedly determines, to the delay wakeup time of described predetermined hardware, to comprise according to described wakeup time and described default delay wake-up period:
Described wakeup time and described first remainder are subtracted each other, and is added with described default delay wake-up period and obtains the very first time, and the described very first time is defined as postpone wakeup time.
3. method according to claim 1, is characterized in that, also carries the periodic wakeup time interval in described wake request,
Accordingly, after described wakeup time wakes described predetermined hardware up, described method also comprises:
When waking the hardware device of described application call up, according to current time, the delay wake-up period preset and the described periodic wakeup time interval, determine next cycle wakeup time, and wake the hardware device of described application call up according to described next cycle wakeup time.
4. method according to claim 3, is characterized in that, described according to current time, default delay wake-up period and the described periodic wakeup time interval, determines next cycle wakeup time, comprising:
Described current time was added with the periodic wakeup time interval and obtained for the second time, and complementation computing is carried out to described second time and described default delay wake-up period, obtain the second remainder;
When described second remainder is zero, is then added with the described periodic wakeup time interval according to described current time and obtained for the 3rd time, and described 3rd time is defined as next cycle wakeup time;
When described second remainder is non-vanishing, then subtract each other according to described current time and described second remainder, and be added with the described periodic wakeup time interval and obtained for the 4th time, and described 4th time is defined as next cycle wakeup time.
5. method according to claim 1, is characterized in that, also carries application identities in described wake request,
Described according to described wakeup time and preset delay wake-up period determine described wakeup time the need of delay before, described method also comprises:
Judge the white list whether described application identities belongs to default;
Correspondingly, described according to described wakeup time and preset delay wake-up period determine that described wakeup time is the need of delay, comprising:
When described application identities does not belong to described default white list, then determine that described wakeup time is the need of delay according to described wakeup time and default delay wake-up period.
6. method according to claim 1, is characterized in that, described hardware device is one or more in central processor CPU, Wireless Fidelity Wifi module, global position system GPS module.
7. wake a device for hardware device up, it is characterized in that, described device comprises:
Receiver module, for receiving the wake request to predetermined hardware that application sends, at least carries the wakeup time that described application is specified in described wake request;
According to described wakeup time and default delay wake-up period, determination module, for determining that described wakeup time is the need of delay;
First wake module, for needing Delay time when described wakeup time, then determines the delay wakeup time to described predetermined hardware according to described wakeup time and described default delay wake-up period, and wakes described predetermined hardware up according to described delay wakeup time;
Wherein, described determination module, comprising:
First computing unit, for carrying out complementation computing to described wakeup time and default delay wake-up period, obtains the first remainder;
First determining unit, for when described first remainder is zero, then determines that described wakeup time does not need to postpone;
Second determining unit, for when described first remainder is non-vanishing, then determines that described wakeup time needs to postpone.
8. device according to claim 7, is characterized in that, described first wake module specifically for:
Described wakeup time and described first remainder are subtracted each other, and is added with described default delay wake-up period and obtains the very first time, and the described very first time is defined as postpone wakeup time.
9. device according to claim 7, is characterized in that, also carries the periodic wakeup time interval in described wake request,
Accordingly, described device also comprises:
Second wake module, for when waking the hardware device of described application call up, according to current time, the delay wake-up period preset and the described periodic wakeup time interval, determine next cycle wakeup time, and wake the hardware device of described application call up according to described next cycle wakeup time.
10. device according to claim 9, is characterized in that, described second wake module, comprising:
Second computing unit, obtained for the second time for described current time being added with the periodic wakeup time interval, and carried out complementation computing to described second time and described default delay wake-up period, obtained the second remainder;
First wakeup unit, for when described second remainder is zero, is then added with the described periodic wakeup time interval according to described current time and obtained for the 3rd time, and described 3rd time is defined as next cycle wakeup time;
Second wakeup unit, for when described second remainder is non-vanishing, then subtract each other according to described current time and described second remainder, and be added with the described periodic wakeup time interval and obtained for the 4th time, and described 4th time is defined as next cycle wakeup time.
11. devices according to claim 7, is characterized in that, also carry application identities in described wake request,
Described device also comprises:
Judge module, for judging the white list whether described application identities belongs to default;
Correspondingly, described determination module specifically for:
When described application identities does not belong to described default white list, then determine that described wakeup time is the need of delay according to described wakeup time and default delay wake-up period.
12. devices according to claim 7, is characterized in that, described hardware device is one or more in central processor CPU, Wireless Fidelity Wifi module, global position system GPS module.
CN201310105368.XA 2013-03-28 2013-03-28 A kind of method and device waking hardware device up CN103218033B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201310105368.XA CN103218033B (en) 2013-03-28 2013-03-28 A kind of method and device waking hardware device up

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201310105368.XA CN103218033B (en) 2013-03-28 2013-03-28 A kind of method and device waking hardware device up

Publications (2)

Publication Number Publication Date
CN103218033A CN103218033A (en) 2013-07-24
CN103218033B true CN103218033B (en) 2015-11-25

Family

ID=48815922

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201310105368.XA CN103218033B (en) 2013-03-28 2013-03-28 A kind of method and device waking hardware device up

Country Status (1)

Country Link
CN (1) CN103218033B (en)

Families Citing this family (16)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103402027B (en) * 2013-07-29 2015-03-04 广东欧珀移动通信有限公司 Mobile terminal and method for putting same into sleeping state
CN103561179B (en) * 2013-10-31 2016-06-08 宇龙计算机通信科技(深圳)有限公司 The method and apparatus that intelligent terminal's wakeup time adjusts
CN103869929B (en) * 2014-02-14 2016-07-13 珠海全志科技股份有限公司 A kind of method and system reducing smart machine stand-by power consumption
CN104865882B (en) * 2014-02-20 2018-05-04 联发科技股份有限公司 The method and apparatus of warning packet control is timed to electronic device
US9717055B2 (en) 2014-02-20 2017-07-25 Mediatek Inc. Method for performing alarm grouping control of an electronic device with aid of at least one grouping control strategy, and associated apparatus
CN105227772A (en) * 2015-09-30 2016-01-06 努比亚技术有限公司 Terminal wake-up method and apparatus
CN105867577A (en) * 2015-12-04 2016-08-17 乐视移动智能信息技术(北京)有限公司 Terminal awakening method and terminal
CN105740018B (en) * 2016-01-29 2019-08-23 北京奇虎科技有限公司 The awakening method and device of application
CN106055079B (en) * 2016-05-31 2017-11-24 广东欧珀移动通信有限公司 The management method and device of a kind of central processing unit
CN106406499A (en) * 2016-09-26 2017-02-15 南京酷派软件技术有限公司 An aligned awakening method and device based on a terminal system
CN106412284A (en) * 2016-09-27 2017-02-15 上海斐讯数据通信技术有限公司 Alarm control method for use in Android system and mobile terminal
CN106445077A (en) * 2016-10-18 2017-02-22 中国科学院信息工程研究所 Batch processing awakening low-power-consumption method based on clock mechanism of smartphone
CN106569879B (en) * 2016-10-28 2020-02-11 青岛海信移动通信技术股份有限公司 Method for awakening peripheral and mobile terminal
CN106598714A (en) * 2016-11-30 2017-04-26 上海斐讯数据通信技术有限公司 Alarm optimization management method and system
CN106970696B (en) * 2017-03-24 2020-04-24 联想(北京)有限公司 Electronic equipment management method and electronic equipment
CN109981299A (en) * 2019-03-05 2019-07-05 青岛海信传媒网络技术有限公司 Awakening method and device

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101315543A (en) * 2008-06-28 2008-12-03 黄更 Network digital alarm clock, long-range control method and signal synchronous transmission method
CN101610566A (en) * 2008-06-19 2009-12-23 财团法人工业技术研究院 Dynamically adjust the system and the method thereof of the dormant/waking time course of radio network device
CN102918474A (en) * 2009-05-13 2013-02-06 苹果公司 Power managed lock optimization
CN102968172A (en) * 2011-08-02 2013-03-13 宏达国际电子股份有限公司 Event triggering method during sleep mode and related mobile devices

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7907557B2 (en) * 2008-06-13 2011-03-15 Conexant Systems, Inc. Low power receiving

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101610566A (en) * 2008-06-19 2009-12-23 财团法人工业技术研究院 Dynamically adjust the system and the method thereof of the dormant/waking time course of radio network device
CN101315543A (en) * 2008-06-28 2008-12-03 黄更 Network digital alarm clock, long-range control method and signal synchronous transmission method
CN102918474A (en) * 2009-05-13 2013-02-06 苹果公司 Power managed lock optimization
CN102968172A (en) * 2011-08-02 2013-03-13 宏达国际电子股份有限公司 Event triggering method during sleep mode and related mobile devices

Also Published As

Publication number Publication date
CN103218033A (en) 2013-07-24

Similar Documents

Publication Publication Date Title
US10386915B2 (en) Distribution of tasks among asymmetric processing elements
CN104221445B (en) A kind of method and terminal waking up terminal system
KR101529539B1 (en) Method and apparatus of smart power management for mobile communication terminals
JP5647645B2 (en) Suspend postponed
RU2619596C2 (en) Method and device for adjusting router signal power
US6965763B2 (en) Event coordination in an electronic device to reduce current drain
CN103179241B (en) A kind of automated testing method and system of mobile terminal power consumption
TWI259354B (en) System and method of real-time power management
CN101495958B (en) System and method for controlling processor low power states
EP2876944A1 (en) Network card device, routing device, system and method for realizing dynamic sleep and wakeup
KR102023146B1 (en) Zero power hibernation mode with instant on
CN101963837B (en) idle duration reporting for power management
JP5777467B2 (en) control device and program
US20120329533A1 (en) Portable Communication Device with Multi-Tiered Power Save Operation
TWI656439B (en) Application program wake-up method and device
JP4123640B2 (en) Information processing system and control method thereof, task allocation control method and control apparatus, and program providing medium
KR20140040933A (en) System-on-chip controlling power supply correspond to data transaction and operating method thereof
US20150245290A1 (en) Node control method, network controller, and network system
KR20110021927A (en) Integrated circuit with secondary-memory controller for providing a sleep state for reduced power consumption and method therefor
US8954980B2 (en) Conserving power through work load estimation for a portable computing device using scheduled resource set transitions
US20090248878A1 (en) Aggregating connection maintenance to optimize resource consumption
US8438409B2 (en) Operating system (OS) virtualisation and processor utilization thresholds for minimizing power consumption in mobile phones
US20180150324A1 (en) Idle Time Service
US9867131B2 (en) Wake-up control method and apparatus, and terminal device
TWI537716B (en) System on a chip and method for the same

Legal Events

Date Code Title Description
PB01 Publication
C06 Publication
SE01 Entry into force of request for substantive examination
C10 Entry into substantive examination
CB02 Change of applicant information

Address after: 100102 Beijing Wangjing West Road, a volume of stone world building, A, block, floor 12

Applicant after: Xiaomi Technology Co., Ltd.

Address before: 100102 Beijing Wangjing West Road, a volume of stone world building, A, block, floor 12

Applicant before: Beijing Xiaomi Technology Co., Ltd.

C53 Correction of patent for invention or patent application
CB02 Change of applicant information

Address after: 100085 Beijing city Haidian District Qinghe Street No. 68 Huarun colorful city shopping center two floor 13

Applicant after: Xiaomi Technology Co., Ltd.

Address before: 100102 Beijing Wangjing West Road, a volume of stone world building, A, block, floor 12

Applicant before: Xiaomi Technology Co., Ltd.

C53 Correction of patent for invention or patent application
GR01 Patent grant
C14 Grant of patent or utility model