CN103885565A - Dormancy method and dormancy system for intelligent equipment - Google Patents

Dormancy method and dormancy system for intelligent equipment Download PDF

Info

Publication number
CN103885565A
CN103885565A CN201210563549.2A CN201210563549A CN103885565A CN 103885565 A CN103885565 A CN 103885565A CN 201210563549 A CN201210563549 A CN 201210563549A CN 103885565 A CN103885565 A CN 103885565A
Authority
CN
China
Prior art keywords
lock
state
smart machine
dormancy
enter
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
CN201210563549.2A
Other languages
Chinese (zh)
Other versions
CN103885565B (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.)
Shanghai Simcom Ltd
Original Assignee
Shanghai Simcom 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 Shanghai Simcom Ltd filed Critical Shanghai Simcom Ltd
Priority to CN201210563549.2A priority Critical patent/CN103885565B/en
Publication of CN103885565A publication Critical patent/CN103885565A/en
Application granted granted Critical
Publication of CN103885565B publication Critical patent/CN103885565B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • User Interface Of Digital Computer (AREA)
  • Telephone Function (AREA)

Abstract

The invention relates to intelligent equipment and discloses a dormancy method and a dormancy system for the intelligent equipment. The dormancy method includes that by distributing awakening locks for application programs, when the intelligent equipment needs to enter a forced dormancy state, locking states of all awakening locks are released, so that no matter current equipment is in any state, the intelligent equipment can enter a dormancy state as long as a user has the need. In addition, by performing weak reference backing-up on the awakening locks when distributing the awakening locks and realizing operation on the awakening locks through operation on weak reference of the awakening locks, stability and reliability in running of the intelligent equipment can be guaranteed.

Description

The dormancy method of smart machine and system
Technical field
The present invention relates to smart machine, particularly the dormancy method of smart machine and system.
Background technology
Along with the function of Android (Andriod) system is progressively powerful and perfect, while also for example, aids due to the powerful strength of developer Google company and the tripartite confrontation of Ge great scheme company (: QualCom company) of Android system, thereby the smart machine based on Android system is not more with covering the sky and the earth to describe at present; In addition also most importantly, because the smart machine based on Android is not only cheap, and also very extensively (for example: Google Market) of the support of application, thereby Android smart machine is popular with the masses of users and pursues.
Just because the popularization degree of Android equipment is very wide, and nearly all field have correspondingly should be used for support, the face that user can select so just becomes very extensive, is exactly that current Android smart machine is almost omnipotent in simple terms; The one side that this has been, but because these application are the developers from global all corners of the country, their technical capability and developing background and object are all not quite similar, thereby inevitably there are malice power consumption program or function and all existence of imperfection program of stability, these programs are in intentional or unintentional situation so, just probably can cause machine cannot enter dormant state, once and there is this kind of situation, with existing system situation, remove beyond the mode that device shutdown restarts, just at one's wit's end; So if so, once the situation that the equipment that runs into cannot dormancy, as long as equipment does not have the cycle power will be always in the higher state of power consumption.That is to say, equipment in go out screen situation under time, if do not enter veritably dormant state, so now the power consumption of equipment can be very high.So, how long have more than is needed, the electric weight of battery has just depleted.Although user originally thinks that the current power consumption of equipment should be very low, all go out and shielded very power consumption of equipment, but true really not so, so, certainly will cause the user can non-constant to the experience effect of equipment.
As research and development and the manufacturer of Android smart machine, when user cannot dormancy once the equipment of running into situation, how can provide a set of total solution to be very important to user.Thus, as long as user thinks that next this has entered dormant state for oneself equipment, rather than merely enter the screen state that goes out, just have meter to have executed; The more important thing is, not only can improve the experience effect of user to equipment, and can improve widely the serviceable life of battery.
Summary of the invention
The object of the present invention is to provide a kind of dormancy method and system of smart machine, make no matter current device is in which kind of state, as long as user needs, smart machine can enter dormant state.
For solving the problems of the technologies described above, embodiments of the present invention provide a kind of dormancy method of smart machine, comprise following steps:
A. application requests is obtained for stoping described smart machine to enter the lock that wakes up of dormant state;
B. wake lock up for described application assigned, and described in arranging, wake up lock be in the lock state;
C. enter while going out screen state at described smart machine, judge whether described smart machine needs to enter forced dormancy state;
If D. judge that described smart machine need to enter forced dormancy state, judge that the current lock that whether wakes up is in the lock state;
Be in the lock state if E. wake lock up, described in discharging, wake the lock-out state of lock up, and return to described step D, further judge that the current lock that whether wakes up is in the lock state;
Be in the lock state if F. do not wake lock up, described smart machine enters dormant state.
Embodiments of the present invention also provide a kind of sleeping system of smart machine, comprise: wake lock controller, screen state watch-dog, forced dormancy operation control up;
The described lock controller that wakes up obtains for stoping described smart machine to enter when lock of waking up of dormant state in application requests, for described application assigned is waken lock up, and described in arranging, wakes lock up and is in the lock state;
Described screen state watch-dog is monitored described smart machine and whether is entered the screen state that goes out, and enters while going out screen state at described smart machine, judges whether described smart machine needs to enter forced dormancy state;
When described forced dormancy operation control judges that at described screen state watch-dog described smart machine need to enter forced dormancy state, judge that the current lock that whether wakes up is in the lock state; And waking lock up while being in the lock state, described in discharging, request power management services program wakes the lock-out state of lock up;
When described smart machine judges that at described forced dormancy operation control not waking lock up is in the lock state, enter dormant state.
Embodiment of the present invention in terms of existing technologies, by waking lock up for application assigned, in the time that smart machine need to enter forced dormancy state, discharge all lock-out states that wakes lock up, thereby make no matter current device is in which kind of state, as long as user needs, smart machine can enter dormant state.
In addition, in described step B, also comprise following steps:
The described lock that wakes up is done to the backup of weak reference, and the weak reference of waking lock described in arranging up is in the lock state;
In described step D, currently whether there is the weak reference of waking lock up to be in the lock state by judging, judge that the current lock that whether wakes up is in the lock state;
In described step e, if there is the weak reference of waking lock up to be in the lock state, ask power management services program to wake the lock-out state of lock up described in discharging, described in also deleting, wake the weak reference of lock up simultaneously, and further judge currently whether have the weak reference of waking lock up to be in the lock state;
In described step F, be in the lock state if do not wake the weak reference of lock up, described smart machine enters dormant state.
Because direct control wakes lock up, possible application programs is brought bad impact, therefore can realize to waking the operation of lock up, to guarantee the reliable and stable operation of system by the operation to the weak reference of waking lock up.
In addition, in described step C, cause shielding the reason of going out and whether will forcing to enter the state value of dormancy by judgement, judge whether described smart machine needs to enter forced dormancy state.
Wherein, described in, cause the screen reason of going out to comprise: power key is pressed, provides that the application program that enters forced dormancy status function is activated, system is overtime, range sensor.The described application program that enters forced dormancy status function that provides comprises: the screen that generally goes out just enters forced dormancy state, enters forced dormancy state by quick touch screen button.
Various ways is provided, for user's operation, makes efficiently and easily smart machine enter forced dormancy state, improve user's experience effect, the serviceable life that also can improve battery.
In addition, in the time judging whether described smart machine needs to enter forced dormancy state, also judge the residing state of described smart machine, if the state of described smart machine in dialling, converse, just in played songs, just recording on backstage, judges that described smart machine does not need to enter forced dormancy state.
By set smart machine in dialling, converse, just in played songs, just when the state in backstage recording, the equipment no matter which kind of reason the causes screen that goes out, system can not enter forced dormancy state, thereby guarantee under these application, can not enter dormant state because user's maloperation causes smart machine, further improve user's experience effect.
In addition, the operating system of described smart machine is any in Android Andriod system, IOS system, Saipan Symbian system, Windows Phone system, blackberry, blueberry BlackBerry OS system.The present invention is applicable to several operation systems, is widely used.
Accompanying drawing explanation
Fig. 1 is according to the process flow diagram of the dormancy method of the smart machine of first embodiment of the invention;
Fig. 2 is according to the process flow diagram of the dormancy method of the smart machine of third embodiment of the invention;
Fig. 3 is the sleeping system framework schematic diagram according to the smart machine of four embodiment of the invention.
Embodiment
For making the object, technical solutions and advantages of the present invention clearer, below in conjunction with accompanying drawing, the embodiments of the present invention are explained in detail.But, persons of ordinary skill in the art may appreciate that in the each embodiment of the present invention, in order to make reader understand the application better, many ins and outs are proposed.But, even without these ins and outs and the many variations based on following embodiment and modification, also can realize the each claim of the application technical scheme required for protection.
The first embodiment of the present invention relates to a kind of dormancy method of smart machine.Idiographic flow as shown in Figure 1, comprises following steps:
Step 101, application requests is obtained for stoping smart machine to enter the lock that wakes up of dormant state.That is to say, third party application wakes lock up by obtaining, and can prevention system enter dormant state, thereby reach the object that realizes the function of application program own.Application program in any case can be obtained and wake lock up, but it should be noted that, once after the functional requirement of application program is realized, application program itself is wanted can go in time to discharge the lock-out state that wakes lock up obtaining before, otherwise the design of this application program itself is problematic.But as systems design and development personnel, the function that can not suppose or rely on all application programs is all perfect, that is to say, the lock-out state that wakes lock up obtaining before application program may not discharge in time.
Step 102, for application assigned is waken lock up, and arrange wake up lock be in the lock state.
What deserves to be explained is, wake lock controller up by calling power management services program, carry out and realize the concrete operations of obtaining or discharging waking lock up, wherein, power management services program is a system-level background service, after system has started, just starts and has moved.
Step 103, judges whether smart machine enters the screen state that goes out, and in this way, performs step 104; As no, continue monitoring intelligent equipment and whether enter the screen state that goes out.
Step 104, judges whether smart machine needs to enter forced dormancy state; In this way, perform step 105; As no, return to step 103, continue monitoring intelligent equipment and whether enter the screen state that goes out.
In this step, cause shielding the reason of going out and whether will forcing to enter the state value of dormancy by judgement, judge whether smart machine needs to enter forced dormancy state.Wherein, cause the screen reason of going out to comprise: power key is pressed, provides that the application program that enters forced dormancy status function is activated, system is overtime, range sensor.In the present embodiment, system is overtime refers to the equipment in idle condition, in the specific time (this time, user can set) if in there is no button or touch screen operation, system can automatically enter to go out and shield and sleep state so.Range sensor for example refers to, because the function of range sensor causes the system screen that goes out: while making a phone call, mobile phone is placed in one's ear, finding that mobile phone goes out has shielded, and in the time that mobile phone leaves in one's ear, shields bright again.Provide the application program that enters forced dormancy status function to comprise: the screen that generally goes out just enters forced dormancy state, enters forced dormancy state by quick touch screen button.By various ways is provided, for user's operation, make efficiently and easily smart machine enter forced dormancy state, improve user's experience effect, the serviceable life that also can improve battery.
Specifically, user realizes the following function relevant with entering dormant state by touch screen and button operation: the one, allow equipment enter to go out screen state, the 2nd, allow equipment force to enter dormant state, the 3rd, the equipment of setting is in the general screen situation of going out, to enter dormant state (for example: operation, the operation of not conversing of not dialling, there is no the operation that Background music playing, the operation that does not have backstage recording).Wherein, user's touch screen and button operation refer to, user can for example, realize user's the screen demand of going out by power key or application program (: a key screen locking application, the quick touch screen button that enters forced dormancy that provides in advance) the quick touch screen button providing.This step is mainly that user's active request equipment enters the screen state that goes out, and equipment is because user's active operation just enters the screen state that goes out.
And the prompting message that adopts screen state watch-dog receiving screen to go out, and the state value that is caused the reason that screen goes out (for example: power key, overtime, range sensor, other relevant user screen that goes out operates) and whether will be forced to enter dormancy by judgement determines whether carrying out the operation of forced dormancy.That is to say, screen state watch-dog is in the time receiving screen and enter the prompting message of the screen state that goes out, (for example: user has opened function, user that the screen that generally goes out just enters forced dormancy state by fast entering the touch screen button of forced dormancy can detection system whether to enter forced dormancy state, as above two operations, on the main interface of system, all provide quick touch screen button), if just call forced dormancy operation control and realize corresponding operation.
Step 105, judges that the current lock that whether wakes up is in the lock state, and in this way, performs step 106; Otherwise, execution step 107;
Step 106, discharges the lock-out state that wakes lock up; Return to step 105, continue to judge that the current lock that whether wakes up is in the lock state.
Step 107, smart machine enters dormant state.
After above step, no matter what state current equipment is, as long as user thinks that equipment enters dormant state, just can enter dormant state.That is to say, when as above all complete in steps after, system just can enter normal dormant state.So, the current state state desired with user of system is the same, thereby the also whole stand-by time of extension device well just, thereby user's experience also just can step to a new level, as can be seen from above, can normally enter dormant state be very large on the impact of user's experience effect to equipment; Moreover, also greatly extended the serviceable life of battery equally, if consider from the angle of energy-saving and emission-reduction equally, the normal hibernation of equipment is also of great benefit to the saving of social resources.Thereby system can guarantee, if user's needs, no matter when and where which kind of situation, system can enter dormancy, beneficial to everybody like this.
In addition, it will be appreciated by those skilled in the art that, present embodiment can be applied to the smart machine that any operating system in Android Andriod system, IOS system, Saipan Symbian system, Windows Phone system, blackberry, blueberry BlackBerry OS system has been installed, be applicable to several operation systems, be widely used.
Compared with prior art, present embodiment is by waking lock up for application assigned, in the time that smart machine need to enter forced dormancy state, discharge all lock-out states that wakes lock up, thereby make no matter current device is in which kind of state, as long as user needs, smart machine can enter dormant state.
The second embodiment of the present invention relates to a kind of dormancy method of smart machine.The second embodiment has done further improvement on the first embodiment basis, main improvements are: in second embodiment of the invention, because direct control wakes lock up, possible application programs is brought bad impact, therefore can realize to waking the operation of lock up, to guarantee the reliable and stable operation of system by the operation to the weak reference of waking lock up.
Specifically, in waking lock up for application assigned, also do the backup of weak reference to waking lock up, and the weak reference of waking lock up is set is in the lock state; Correspondingly, after judging that smart machine need to enter forced dormancy state, currently whether there is the weak reference of waking lock up to be in the lock state by judging, judge that the current lock that whether wakes up is in the lock state; Be in the lock state if do not wake the weak reference of lock up, ask power management services program to discharge and wake the lock-out state of lock up, delete and wake the weak reference of lock up simultaneously, and further judge currently whether have the weak reference of waking lock up to be in the lock state; Be in the lock state if do not wake the weak reference of lock up, smart machine enters dormant state.
The 3rd embodiment of the present invention relates to a kind of dormancy method of smart machine.The 3rd embodiment has done further improvement on the second embodiment basis, main improvements are: in third embodiment of the invention, by set smart machine in dialling, converse, just in played songs, just when the state in backstage recording, the equipment no matter which kind of reason the causes screen that goes out, system can not enter forced dormancy state, thereby guarantee under these application, can not enter dormant state because user's maloperation causes smart machine, further improve user's experience effect.
Specifically, in the time judging whether smart machine needs to enter forced dormancy state, also judge the residing state of smart machine, if the state of smart machine in dialling, converse, just in played songs, just recording on backstage, judges that smart machine does not need to enter forced dormancy state.That is to say, if the state of current system in dialling, converse, just in played songs, just recording on backstage, so no matter which kind of reason causes the equipment of (for example: power button, touch screen button, system are overtime, the range sensor) screen that goes out, and system can not enter forced dormancy state.
Illustrate below in conjunction with Fig. 2 the whole execution flow process that present embodiment relates to and be divided into eight steps, in figure, 1. 2. 3. 4. 5. 6. 7. 8. represented respectively successively eight orders that step is carried out, next describe successively respectively:
1. the controller that wakes up of third party application calling system obtains and wakes lock up, carrys out prevention equipment and enters dormant state, thereby reach the object of the functional requirement of application program own by waking lock up.
2. wake lock controller up receiving application requests when waking the operation of phase-locked pass up, call and wake lock weak reference controller up and wake the relevant operation of lock weak reference up.If to waking the operation of obtaining of lock up, wake so lock weak reference controller up and can lock the backup that do a weak reference to waking up; If to waking the releasing operation of lock up, wake so lock weak reference controller up and can delete the weak reference backup that this wakes lock up.
3. wake lock controller up and call power management services program, carry out and realize the concrete operations of obtaining or discharging waking lock up.Power management services program is a system-level background service, after system has started, just starts and has moved.
4. user's touch screen and button operation refer to, user can for example, realize user's the screen demand of going out by power key or application program (: what a key screen locking application, this programme provided enters the quick touch screen button of forced dormancy) the quick touch screen button providing.This step is mainly that user's active request equipment enters the screen state that goes out, and equipment is because user's active operation just enters the screen state that goes out.
5. screen state watch-dog is in the time receiving screen and enter the prompting message of the screen state that goes out, (for example: user has opened function, user that the screen that generally goes out just enters forced dormancy state by fast entering the touch screen button of forced dormancy can detection system whether to enter forced dormancy state, as above two operations, on the main interface of system, all provide quick touch screen button), if can call forced dormancy operation control and realize corresponding operation.Here it should be noted that, if the state of current system in dialling, converse, just in played songs, just recording on backstage, so no matter which kind of reason causes the equipment of (for example: power button, touch screen button, system are overtime, the range sensor) screen that goes out, and system can not enter forced dormancy state.
6. forced dormancy operation control is in the time receiving the operation requests that enters forced dormancy, can call to wake lock weak reference controller up and discharge and wake the lock-out state of lock up and delete this weak reference of waking lock up.
7. wake lock weak reference controller up and judge currently whether have the weak reference of waking lock up to be still in the lock state, if any, can call power management services program and discharge the lock-out state of this lock, can delete this simultaneously and wake up the weak reference of lock.
8. wake lock weak reference controller up and can call power management services program, carry out and realize the release concrete operations to waking lock up.
The step of the whole bag of tricks is divided above, just in order being described clearly, can to merge into a step or some step is split while realization, is decomposed into multiple steps, as long as comprise identical logical relation, all in the protection domain of this patent; To adding inessential modification in algorithm or in flow process or introducing inessential design, but the core design that does not change its algorithm and flow process is all in the protection domain of this patent.
Four embodiment of the invention relates to a kind of sleeping system of smart machine, comprises: wake lock controller, screen state watch-dog, forced dormancy operation control up;
Wake lock controller up and obtain for stoping smart machine to enter when lock of waking up of dormant state in application requests, for application assigned is waken lock up, and arrange and wake lock up and be in the lock state;
Whether screen state watch-dog monitoring intelligent equipment enters the screen state that goes out, and enters while going out screen state at smart machine, judges whether smart machine needs to enter forced dormancy state; Wherein, screen state watch-dog causes shielding the reason of going out and whether will forcing to enter the state value of dormancy by judgement, judges whether smart machine needs to enter forced dormancy state.Cause the screen reason of going out to comprise: power key is pressed, provides that the application program that enters forced dormancy status function is activated, system is overtime, range sensor.Provide the application program that enters forced dormancy status function to comprise: the screen that generally goes out just enters forced dormancy state, enters forced dormancy state by quick touch screen button.
When forced dormancy operation control judges that at screen state watch-dog smart machine need to enter forced dormancy state, judge that the current lock that whether wakes up is in the lock state; And waking lock up while being in the lock state, request power management services program discharges the lock-out state that wakes lock up;
When smart machine judges that at forced dormancy operation control not waking lock up is in the lock state, enter dormant state.
Referring to shown in Fig. 3, is the system framework schematic diagram of present embodiment, is mainly divided into UI interactive operation, the monitoring of lock status and three large classes of concrete execution of lock task of user.Specifically do following explanation:
Third party application is mainly for obtaining lock status, carrys out prevention system and enters dormant state, thereby reach the object that realizes the function of application own.
Wake lock controller major function up and be third party application can be obtained wake up and lock and the state that wakes lock up is set.
User's touch screen and button operation major function, the one, allow equipment enter to go out screen state, the 2nd, allow equipment force to enter dormant state, the 3rd, to be that general go out in screen situation (for example: operation, the operation of not conversing of not dialling, there is no the operation that Background music playing, the operation that does not have backstage recording) is no entering dormant state to the equipment of setting.
Screen state watch-dog is mainly used in the prompting message that receiving screen goes out, and the state value that is caused the reason that screen goes out (for example: power key, overtime, range sensor, other relevant user go out screen operation) and whether will be forced to enter dormancy by judgement determines whether carrying out the operation of forced dormancy.
Forced dormancy operation control is mainly used to receive the operational order of forced dormancy, judges that in addition the current lock that whether wakes up is in the lock state, and if any, can ask power management routines to discharge this to wake up the lock-out state of lock.
Power management services program and power management driver are mainly used to the concrete locking and the releasing operation that wake lock up carried out.
In addition, it will be appreciated by those skilled in the art that, the sleeping system of present embodiment can be applied to the smart machine that any operating system in Android Andriod system, IOS system, Saipan Symbian system, Windows Phone system, blackberry, blueberry BlackBerry OS system has been installed, be applicable to several operation systems, be widely used.
Be not difficult to find, present embodiment is the system embodiment corresponding with the first embodiment, present embodiment can with the enforcement of working in coordination of the first embodiment.The correlation technique details of mentioning in the first embodiment is still effective in the present embodiment, in order to reduce repetition, repeats no more here.Correspondingly, the correlation technique details of mentioning in present embodiment also can be applicable in the first embodiment.
It is worth mentioning that, each module involved in present embodiment is logic module, and in actual applications, a logical block can be a physical location, can be also a part for a physical location, can also realize with the combination of multiple physical locations.In addition, for outstanding innovation part of the present invention, in present embodiment, the unit not too close with solving technical matters relation proposed by the invention do not introduced, but this does not show not exist in present embodiment other unit.
Fifth embodiment of the invention relates to a kind of sleeping system of smart machine.The 5th embodiment has done further improvement on the 4th embodiment basis, main improvements are: in fifth embodiment of the invention, can realize to waking the operation of lock up, to guarantee the reliable and stable operation of system by the operation to the weak reference of waking lock up.
Specifically, the sleeping system of the smart machine of present embodiment also comprises: wake lock weak reference controller up; This wakes lock weak reference controller up is application assigned while waking lock up waking lock controller up, does the backup of weak reference to waking lock up, and the weak reference of waking lock up is set is in the lock state.
Correspondingly, forced dormancy operation control judges that at screen state watch-dog smart machine is need to enter forced dormancy state time, and whether judge currently has the weak reference of waking lock up to be in the lock state; And in the time having the weak reference of waking lock up to be in the lock state, request wakes lock weak reference controller up and discharges the lock-out state that wakes lock up, deletes the weak reference of waking lock up simultaneously.
When smart machine judges that at forced dormancy operation control the weak reference of not waking lock up is in the lock state, enter dormant state.
That is to say, wake lock weak reference controller up and be mainly used in backing up the lock that wakes up that third party application obtains, with judge that in current system, whether waking lock weak reference up is still in the lock state, facilitate in addition forced dormancy operation control to discharge by waking the weak reference of lock up the lock-out state that wakes lock up, this is also the core place of present embodiment.
Because the second embodiment is mutually corresponding with present embodiment, therefore present embodiment can with the enforcement of working in coordination of the second embodiment.The correlation technique details of mentioning in the second embodiment is still effective in the present embodiment, and the technique effect that can reach in the second embodiment can be realized in the present embodiment too, in order to reduce repetition, repeats no more here.Correspondingly, the correlation technique details of mentioning in present embodiment also can be applicable in the second embodiment.
Sixth embodiment of the invention relates to a kind of sleeping system of smart machine.The 6th embodiment has done further improvement on the 5th embodiment basis, main improvements are: in sixth embodiment of the invention, screen state watch-dog, in the time judging whether smart machine needs to enter forced dormancy state, also judges the residing state of smart machine; And at smart machine in dialling, converse, just in played songs, just when the state in backstage recording, judge that smart machine does not need to enter forced dormancy state.
Because the 3rd embodiment is mutually corresponding with present embodiment, therefore present embodiment can with the enforcement of working in coordination of the 3rd embodiment.The correlation technique details of mentioning in the 3rd embodiment is still effective in the present embodiment, and the technique effect that can reach in the 3rd embodiment can be realized in the present embodiment too, in order to reduce repetition, repeats no more here.Correspondingly, the correlation technique details of mentioning in present embodiment also can be applicable in the 3rd embodiment.
Persons of ordinary skill in the art may appreciate that the respective embodiments described above are to realize specific embodiments of the invention, and in actual applications, can do various changes to it in the form and details, and without departing from the spirit and scope of the present invention.

Claims (14)

1. a dormancy method for smart machine, is characterized in that, comprises following steps:
A. application requests is obtained for stoping described smart machine to enter the lock that wakes up of dormant state;
B. wake lock up for described application assigned, and described in arranging, wake up lock be in the lock state;
C. enter while going out screen state at described smart machine, judge whether described smart machine needs to enter forced dormancy state;
If D. judge that described smart machine need to enter forced dormancy state, judge that the current lock that whether wakes up is in the lock state;
Be in the lock state if E. wake lock up, described in discharging, wake the lock-out state of lock up, and return to described step D, further judge that the current lock that whether wakes up is in the lock state;
Be in the lock state if F. do not wake lock up, described smart machine enters dormant state.
2. the dormancy method of smart machine according to claim 1, is characterized in that, in described step C, causes shielding the reason of going out and whether will forcing to enter the state value of dormancy by judgement, judges whether described smart machine needs to enter forced dormancy state.
3. the dormancy method of smart machine according to claim 2, is characterized in that, described in cause the screen reason of going out to comprise: power key is pressed, provides that the application program that enters forced dormancy status function is activated, system is overtime, range sensor.
4. the dormancy method of smart machine according to claim 3, is characterized in that, described in provide the application program that enters forced dormancy status function to comprise: the screen that generally goes out just enters forced dormancy state, enters forced dormancy state by quick touch screen button.
5. the dormancy method of smart machine according to claim 4, it is characterized in that, in the time judging whether described smart machine needs to enter forced dormancy state, also judge the residing state of described smart machine, if the state of described smart machine in dialling, converse, just in played songs, just recording on backstage, judges that described smart machine does not need to enter forced dormancy state.
6. according to the dormancy method of the smart machine described in claim 1 to 5 any one, it is characterized in that, in described step B, also comprise following steps:
The described lock that wakes up is done to the backup of weak reference, and the weak reference of waking lock described in arranging up is in the lock state;
In described step D, currently whether there is the weak reference of waking lock up to be in the lock state by judging, judge that the current lock that whether wakes up is in the lock state;
In described step e, if there is the weak reference of waking lock up to be in the lock state, ask power management services program to wake the lock-out state of lock up described in discharging, described in also deleting, wake the weak reference of lock up simultaneously, and further judge currently whether have the weak reference of waking lock up to be in the lock state;
In described step F, be in the lock state if do not wake the weak reference of lock up, described smart machine enters dormant state.
7. according to the dormancy method of the smart machine described in claim 1 to 5 any one, it is characterized in that, the operating system of described smart machine is any in Android Andriod system, IOS system, Saipan Symbian system, Windows Phone system, blackberry, blueberry BlackBerry OS system.
8. a sleeping system for smart machine, is characterized in that, comprises: wake lock controller, screen state watch-dog, forced dormancy operation control up;
The described lock controller that wakes up obtains for stoping described smart machine to enter when lock of waking up of dormant state in application requests, for described application assigned is waken lock up, and described in arranging, wakes lock up and is in the lock state;
Described screen state watch-dog is monitored described smart machine and whether is entered the screen state that goes out, and enters while going out screen state at described smart machine, judges whether described smart machine needs to enter forced dormancy state;
When described forced dormancy operation control judges that at described screen state watch-dog described smart machine need to enter forced dormancy state, judge that the current lock that whether wakes up is in the lock state; And waking lock up while being in the lock state, described in discharging, request power management routines wakes the lock-out state of lock up;
When described smart machine judges that at described forced dormancy operation control not waking lock up is in the lock state, enter dormant state.
9. the sleeping system of smart machine according to claim 8, it is characterized in that, described screen state watch-dog causes shielding the reason of going out and whether will forcing to enter the state value of dormancy by judgement, judges whether described smart machine needs to enter forced dormancy state.
10. the sleeping system of smart machine according to claim 9, is characterized in that, described in cause the screen reason of going out to comprise: power key is pressed, provides that the application program that enters forced dormancy status function is activated, system is overtime, range sensor.
The sleeping system of 11. smart machines according to claim 10, is characterized in that, described in provide the application program that enters forced dormancy status function to comprise: the screen that generally goes out just enters forced dormancy state, enters forced dormancy state by quick touch screen button.
The sleeping system of 12. smart machines according to claim 9, is characterized in that, described screen state watch-dog, in the time judging whether described smart machine needs to enter forced dormancy state, also judges the residing state of described smart machine; And at described smart machine in dialling, converse, just in played songs, just when the state in backstage recording, judge that described smart machine does not need to enter forced dormancy state.
The sleeping system of the smart machine in 13. according to Claim 8 to 12 described in any one, is characterized in that, also comprises: wake lock weak reference controller up;
The described lock weak reference controller that wakes up is described application assigned while waking lock up at the described lock controller that wakes up, and the described lock that wakes up is done to the backup of weak reference, and the weak reference of waking lock described in arranging up is in the lock state;
Whether when described forced dormancy operation control judges that at described screen state watch-dog described smart machine need to enter forced dormancy state, judging currently has the weak reference of waking lock up to be in the lock state; And in the time having the weak reference of waking lock up to be in the lock state, described in request power management services program discharges, wake the lock-out state of lock up, described in deleting, wake the weak reference of lock up simultaneously;
When the weak reference that described smart machine does not wake lock up in described forced dormancy operation control judgement is in the lock state, enter dormant state.
The sleeping system of the smart machine in 14. according to Claim 8 to 12 described in any one, it is characterized in that, the operating system of described smart machine is any in Android Andriod system, IOS system, Saipan Symbian system, Windows Phone system, blackberry, blueberry BlackBerry OS system.
CN201210563549.2A 2012-12-21 2012-12-21 The dormancy method and system of smart machine Expired - Fee Related CN103885565B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201210563549.2A CN103885565B (en) 2012-12-21 2012-12-21 The dormancy method and system of smart machine

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201210563549.2A CN103885565B (en) 2012-12-21 2012-12-21 The dormancy method and system of smart machine

Publications (2)

Publication Number Publication Date
CN103885565A true CN103885565A (en) 2014-06-25
CN103885565B CN103885565B (en) 2018-01-23

Family

ID=50954505

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201210563549.2A Expired - Fee Related CN103885565B (en) 2012-12-21 2012-12-21 The dormancy method and system of smart machine

Country Status (1)

Country Link
CN (1) CN103885565B (en)

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105183137A (en) * 2015-09-09 2015-12-23 厦门美图移动科技有限公司 Mobile terminal and wake lock control method and system thereof
CN105653301A (en) * 2014-11-13 2016-06-08 比亚迪股份有限公司 Method and device for locking screen of mobile terminal
CN105813180A (en) * 2016-03-14 2016-07-27 福州瑞芯微电子股份有限公司 Modem intelligent dormancy method and system
WO2017070894A1 (en) * 2015-10-29 2017-05-04 华为技术有限公司 Terminal-based wakelock control method and apparatus, and terminal
WO2017206890A1 (en) * 2016-05-31 2017-12-07 广东欧珀移动通信有限公司 Wakeup lock-based processing method and apparatus, storage medium, and electronic device
CN107708187A (en) * 2017-09-12 2018-02-16 北京小米移动软件有限公司 The control method and device of sleep pattern
CN108536269A (en) * 2018-03-26 2018-09-14 上海康斐信息技术有限公司 A kind of method and its system reducing terminal standby power consumption
CN110572866A (en) * 2019-07-26 2019-12-13 华为技术有限公司 Management method of wake-up lock and electronic equipment
CN111510781A (en) * 2019-12-04 2020-08-07 海信视像科技股份有限公司 Display device standby control method and display device

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6823460B1 (en) * 1999-11-14 2004-11-23 Networks Associates Technology, Inc. Method and system for intercepting an application program interface
CN101067757A (en) * 2007-06-01 2007-11-07 惠州市Tcl电脑科技有限责任公司 Intelligent power source management method and system
CN102498739A (en) * 2009-08-14 2012-06-13 谷歌公司 Providing a user with feedback regarding power consumption in battery-operated electronic devices

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6823460B1 (en) * 1999-11-14 2004-11-23 Networks Associates Technology, Inc. Method and system for intercepting an application program interface
CN101067757A (en) * 2007-06-01 2007-11-07 惠州市Tcl电脑科技有限责任公司 Intelligent power source management method and system
CN102498739A (en) * 2009-08-14 2012-06-13 谷歌公司 Providing a user with feedback regarding power consumption in battery-operated electronic devices

Cited By (15)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105653301A (en) * 2014-11-13 2016-06-08 比亚迪股份有限公司 Method and device for locking screen of mobile terminal
CN105653301B (en) * 2014-11-13 2019-02-26 比亚迪股份有限公司 The screen locking control method and device of mobile terminal
CN105183137B (en) * 2015-09-09 2018-06-01 厦门美图移动科技有限公司 A kind of mobile terminal and its wake-up lock control method and control system
CN105183137A (en) * 2015-09-09 2015-12-23 厦门美图移动科技有限公司 Mobile terminal and wake lock control method and system thereof
WO2017070894A1 (en) * 2015-10-29 2017-05-04 华为技术有限公司 Terminal-based wakelock control method and apparatus, and terminal
US10788881B2 (en) 2015-10-29 2020-09-29 Huawei Technologies Co., Ltd. Terminal-based wakelock control method and apparatus and terminal
CN105813180A (en) * 2016-03-14 2016-07-27 福州瑞芯微电子股份有限公司 Modem intelligent dormancy method and system
WO2017206890A1 (en) * 2016-05-31 2017-12-07 广东欧珀移动通信有限公司 Wakeup lock-based processing method and apparatus, storage medium, and electronic device
CN107708187A (en) * 2017-09-12 2018-02-16 北京小米移动软件有限公司 The control method and device of sleep pattern
CN108536269A (en) * 2018-03-26 2018-09-14 上海康斐信息技术有限公司 A kind of method and its system reducing terminal standby power consumption
CN110572866A (en) * 2019-07-26 2019-12-13 华为技术有限公司 Management method of wake-up lock and electronic equipment
CN110572866B (en) * 2019-07-26 2021-03-30 华为技术有限公司 Management method of wake-up lock and electronic equipment
CN111510781A (en) * 2019-12-04 2020-08-07 海信视像科技股份有限公司 Display device standby control method and display device
WO2021109422A1 (en) * 2019-12-04 2021-06-10 海信视像科技股份有限公司 Standby control method and display device
CN111510781B (en) * 2019-12-04 2022-07-15 海信视像科技股份有限公司 Display device standby control method and display device

Also Published As

Publication number Publication date
CN103885565B (en) 2018-01-23

Similar Documents

Publication Publication Date Title
CN103885565A (en) Dormancy method and dormancy system for intelligent equipment
CN105183137B (en) A kind of mobile terminal and its wake-up lock control method and control system
CN103324500B (en) A kind of method and device reclaiming internal memory
CN105554316B (en) A kind of realization method and system of reserved intelligent terminal battery capacity
CN104221445B (en) A kind of method and terminal waking up terminal system
CN107302789B (en) Method and system for improving battery endurance of android device
CN104166542A (en) Method and device for detecting electricity consumption of application
CN103064669B (en) The timing wake-up method and system of smart machine
CN105188115A (en) Method and device for saving electricity for intelligent terminal
CN103164229A (en) Method and device for clearing progresses of mobile terminal
CN103199310A (en) Battery power guaranteeing method and battery power guaranteeing apparatus for portable electronic product, and mobile terminal
CN105676987A (en) Method for shutting down background application of mobile terminal, device and mobile terminal
CN103336572A (en) Intelligent terminal and power saving method thereof
CN105630132A (en) Power consumption control method and system as well as terminal
CN106055077A (en) Wake-up lock-based processing method and device
CN103927239A (en) Method and device for restoring system of terminal equipment
CN103019521A (en) Method and device for screen off of mobile terminal
CN105373207A (en) Standby method of wireless communication terminal
CN103412636A (en) Power saving system and power saving method of intelligent terminal
CN102968174A (en) Deep sleep awakening method of android device
CN105388991A (en) Timing wake-up processing system and method
CN102156534A (en) Hardware energy-saving processing method and device
CN106155777A (en) A kind of background application managing device, terminal and background application management method
CN104808767A (en) Terminal control method
CN104574538A (en) Onboard unit and management system, Bluetooth starting method and charging method thereof

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20180123