CN107708187A - The control method and device of sleep pattern - Google Patents
The control method and device of sleep pattern Download PDFInfo
- Publication number
- CN107708187A CN107708187A CN201710818803.1A CN201710818803A CN107708187A CN 107708187 A CN107708187 A CN 107708187A CN 201710818803 A CN201710818803 A CN 201710818803A CN 107708187 A CN107708187 A CN 107708187A
- Authority
- CN
- China
- Prior art keywords
- terminal
- sleep pattern
- condition
- sleep
- state parameter
- 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.)
- Pending
Links
- 230000007958 sleep Effects 0.000 title claims abstract description 368
- 238000000034 method Methods 0.000 title claims abstract description 53
- 238000001514 detection method Methods 0.000 claims description 65
- 230000007613 environmental effect Effects 0.000 claims description 63
- 230000001133 acceleration Effects 0.000 claims description 34
- 238000003909 pattern recognition Methods 0.000 claims description 32
- 230000003068 static effect Effects 0.000 claims description 23
- 235000013399 edible fruits Nutrition 0.000 claims description 2
- 238000010586 diagram Methods 0.000 description 16
- 238000012545 processing Methods 0.000 description 9
- 238000004891 communication Methods 0.000 description 8
- 238000005516 engineering process Methods 0.000 description 7
- 230000003287 optical effect Effects 0.000 description 5
- 230000005855 radiation Effects 0.000 description 4
- 230000005236 sound signal Effects 0.000 description 4
- 230000000712 assembly Effects 0.000 description 3
- 238000000429 assembly Methods 0.000 description 3
- 230000005611 electricity Effects 0.000 description 3
- 230000006870 function Effects 0.000 description 3
- 230000004048 modification Effects 0.000 description 3
- 238000012986 modification Methods 0.000 description 3
- 230000006978 adaptation Effects 0.000 description 2
- 230000006378 damage Effects 0.000 description 2
- 230000003993 interaction Effects 0.000 description 2
- 238000007726 management method Methods 0.000 description 2
- 230000002093 peripheral effect Effects 0.000 description 2
- 230000008569 process Effects 0.000 description 2
- KLDZYURQCUYZBL-UHFFFAOYSA-N 2-[3-[(2-hydroxyphenyl)methylideneamino]propyliminomethyl]phenol Chemical compound OC1=CC=CC=C1C=NCCCN=CC1=CC=CC=C1O KLDZYURQCUYZBL-UHFFFAOYSA-N 0.000 description 1
- 241000208340 Araliaceae Species 0.000 description 1
- 235000005035 Panax pseudoginseng ssp. pseudoginseng Nutrition 0.000 description 1
- 235000003140 Panax quinquefolius Nutrition 0.000 description 1
- 206010048669 Terminal state Diseases 0.000 description 1
- 241000209140 Triticum Species 0.000 description 1
- 235000021307 Triticum Nutrition 0.000 description 1
- 208000027418 Wounds and injury Diseases 0.000 description 1
- 230000008859 change Effects 0.000 description 1
- 238000007796 conventional method Methods 0.000 description 1
- 238000013500 data storage Methods 0.000 description 1
- 201000001098 delayed sleep phase syndrome Diseases 0.000 description 1
- 208000033921 delayed sleep phase type circadian rhythm sleep disease Diseases 0.000 description 1
- 230000005059 dormancy Effects 0.000 description 1
- 230000000694 effects Effects 0.000 description 1
- 235000008434 ginseng Nutrition 0.000 description 1
- 230000005484 gravity Effects 0.000 description 1
- 238000003384 imaging method Methods 0.000 description 1
- 208000014674 injury Diseases 0.000 description 1
- 239000004973 liquid crystal related substance Substances 0.000 description 1
- 239000012092 media component Substances 0.000 description 1
- 238000012163 sequencing technique Methods 0.000 description 1
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W52/00—Power management, e.g. Transmission Power Control [TPC] or power classes
- H04W52/02—Power saving arrangements
- H04W52/0209—Power saving arrangements in terminal devices
- H04W52/0261—Power saving arrangements in terminal devices managing power supply demand, e.g. depending on battery level
- H04W52/0264—Power saving arrangements in terminal devices managing power supply demand, e.g. depending on battery level by selectively disabling software applications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04M—TELEPHONIC COMMUNICATION
- H04M1/00—Substation equipment, e.g. for use by subscribers
- H04M1/72—Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
- H04M1/724—User interfaces specially adapted for cordless or mobile telephones
- H04M1/72448—User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions
-
- Y—GENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
- Y02—TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
- Y02D—CLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
- Y02D30/00—Reducing energy consumption in communication networks
- Y02D30/70—Reducing energy consumption in communication networks in wireless communication networks
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Human Computer Interaction (AREA)
- Telephone Function (AREA)
Abstract
The disclosure is directed to a kind of control method and device of sleep pattern, this method includes:Detect whether to meet the condition into sleep pattern;Detect whether the terminal is currently running default application;Meet that control terminal enters sleep pattern, and the sleep pattern includes the default application out of service into when presetting application described in the condition and off-duty of sleep pattern detecting.The technical scheme can make terminal more accurately enter sleep pattern, and ensure that terminal will not interrupt rashly and preset application, improve the experience of user.
Description
Technical field
This disclosure relates to field of terminal technology, more particularly to the control method and device of sleep pattern.
Background technology
In the modern life, intelligent terminal has become part essential in people's live and work.People
The various activities such as can be communicated using intelligent terminal, do shopping, play.In order to reduce radiation of the intelligent terminal to human body, and
The electricity of intelligent terminal is saved, some intelligent terminals support sleep pattern, and relative to normal mode, intelligent terminal enters sleep mould
Can partial function out of service after formula.
The content of the invention
The embodiment of the present disclosure provides the control method and device of sleep pattern.The technical scheme is as follows:
According to the first aspect of the embodiment of the present disclosure, there is provided a kind of control method of sleep pattern, including:
Detect whether to meet the condition into sleep pattern;
Detect whether the terminal is currently running default application;
Meet that control terminal enters sleep into when presetting application described in the condition and off-duty of sleep pattern detecting
Pattern, the sleep pattern include the default application out of service.
In one embodiment, it is described to detect whether to meet the condition into sleep pattern, including:
State parameter of the detection terminal under screen state of going out;
When the user that the state parameter meets the terminal is in sleep state during corresponding state parameter feature, really
The fixed terminal meets the condition into sleep pattern.
In one embodiment, the state parameter includes going out and shielded in time, environmental light intensity, environmental volume and acceleration
It is at least one;
When the state parameter goes out the screen time including described in, the state when user of the terminal is in sleep state is joined
Number is characterized as the screen time of going out more than the first preset time;
When the state parameter includes the environmental light intensity, the state when user of the terminal is in sleep state is joined
Number is characterized as that the environmental light intensity is less than default light intensity;
When the state parameter includes the environmental volume, the state when user of the terminal is in sleep state is joined
Number is characterized as that the environmental volume is less than default volume;
When the state parameter includes the acceleration, the user of the terminal is in state parameter during sleep state
It is 0 to be characterized as the acceleration.
In one embodiment, it is described to detect whether to meet the condition into sleep pattern, including:
When current time reaches the default length of one's sleep, it is determined that meeting the condition into sleep pattern.
In one embodiment, detect whether to meet the condition into sleep pattern, including:
The state parameter of detection terminal;
Based on default pattern recognition model, according to the state parameter of the terminal, obtain the pattern recognition model and know
The recognition result not gone out;
Wherein, the pattern recognition model is for identifying whether the model into sleep pattern, the recognition result bag
Include the condition for meeting to enter sleep pattern or be unsatisfactory for the condition for entering sleep pattern.
In one embodiment, whether the detection terminal is currently running default application, including:
When detecting that satisfaction enters the condition of sleep pattern, detect whether the terminal is currently running default application.
In one embodiment, the default application includes:Play application, download application, recording application and navigation application
In it is at least one.
In one embodiment, when the default application includes playing application, methods described also includes:
When detecting the terminal satisfaction into the condition of sleep pattern and being currently running the broadcasting application, output carries
Show information, the prompt message is currently running described play for prompting and applied;
Detect whether the terminal is in static condition in the second preset time after showing the prompt message;
When detecting that the terminal is in static condition, described play out of service is applied.
In one embodiment, methods described also includes:
After terminal enters sleep pattern, detect be unsatisfactory for the condition into sleep pattern when, control the terminal
Exit the sleep pattern.
According to the second aspect of the embodiment of the present disclosure, there is provided a kind of control device of sleep pattern, including:
First detection module, for detecting whether meeting the condition into sleep pattern;
Second detection module, for detecting whether the terminal is currently running default application;
First control module, for detecting default application described in the condition for meeting to enter sleep pattern and off-duty
When, control terminal enters sleep pattern, and the sleep pattern includes the default application out of service.
In one embodiment, the first detection module includes:
First detection sub-module, for state parameter of the detection terminal under screen state of going out;
First determination sub-module, the user for meeting the terminal in the state parameter are in corresponding during sleep state
State parameter feature when, determine that the terminal meets the condition into sleep pattern.
In one embodiment, the state parameter includes going out and shielded in time, environmental light intensity, environmental volume and acceleration
It is at least one;
When the state parameter goes out the screen time including described in, the state when user of the terminal is in sleep state is joined
Number is characterized as the screen time of going out more than the first preset time;
When the state parameter includes the environmental light intensity, the state when user of the terminal is in sleep state is joined
Number is characterized as that the environmental light intensity is less than default light intensity;
When the state parameter includes the environmental volume, the state when user of the terminal is in sleep state is joined
Number is characterized as that the environmental volume is less than default volume;
When the state parameter includes the acceleration, the user of the terminal is in state parameter during sleep state
It is 0 to be characterized as the acceleration.
In one embodiment, the first detection module includes:
Second determination sub-module, for current time reach the default length of one's sleep when, it is determined that meet enter sleep mould
The condition of formula.
In one embodiment, the first detection module includes:
Second detection sub-module, the state parameter for detection terminal;
Submodule is identified, for based on default pattern recognition model, according to the state parameter of the terminal, obtaining described
The recognition result that pattern recognition model identifies;
Wherein, the pattern recognition model is for identifying whether the model into sleep pattern, the recognition result bag
Include the condition for meeting to enter sleep pattern or be unsatisfactory for the condition for entering sleep pattern.
In one embodiment, second detection module includes:
3rd detection sub-module, for when detecting that satisfaction enters the condition of sleep pattern, whether detecting the terminal
It is currently running default application.
In one embodiment, the default application includes:Play application, download application, recording application and navigation application
In it is at least one.
In one embodiment, when the default application includes playing application, described device also includes:
Output module, for detecting the terminal satisfaction into the condition of sleep pattern and being currently running the broadcasting
Using when, export prompt message, the prompt message be used for prompting be currently running it is described play apply;
3rd detection module, for detect the terminal in the second preset time after showing the prompt message whether
In static condition;
Stopping modular, for when detecting that the terminal is in static condition, described play out of service to be applied.
In one embodiment, described device also includes:
Second control module, for after terminal enters sleep pattern, detecting the bar that is unsatisfactory for into sleep pattern
During part, the terminal is controlled to exit the sleep pattern.
According to the third aspect of the embodiment of the present disclosure, there is provided a kind of control device of sleep pattern, including:
Processor;
For storing the memory of processor-executable instruction;
Wherein, the processor is configured as:
Detect whether to meet the condition into sleep pattern;
Detect whether the terminal is currently running default application;
Meet that control terminal enters sleep into when presetting application described in the condition and off-duty of sleep pattern detecting
Pattern, the sleep pattern include the default application out of service.
According to the fourth aspect of the embodiment of the present disclosure, there is provided a kind of computer-readable recording medium, be stored with computer and refer to
Order, the computer instruction realize the step in the above method when being executed by processor.
The present embodiment can meet the condition into sleep pattern detecting the terminal and not run described preset
Using when, just control terminal to enter sleep pattern, terminal is more accurately entered sleep pattern, and guarantee terminal will not rashly in
The disconnected default application of operation, improve the experience of user.
It should be appreciated that the general description and following detailed description of the above are only exemplary and explanatory, not
The disclosure can be limited.
Brief description of the drawings
Accompanying drawing herein is merged in specification and forms the part of this specification, shows the implementation for meeting the disclosure
Example, and be used to together with specification to explain the principle of the disclosure.
Fig. 1 is a kind of flow chart of the control method of sleep pattern according to an exemplary embodiment.
Fig. 2 is a kind of flow chart of the control method of sleep pattern according to an exemplary embodiment.
Fig. 3 is a kind of flow chart of the control method of sleep pattern according to an exemplary embodiment.
Fig. 4 is a kind of flow chart of the control method of sleep pattern according to an exemplary embodiment.
Fig. 5 is a kind of block diagram of the control device of sleep pattern according to an exemplary embodiment.
Fig. 6 is a kind of block diagram of the control device of sleep pattern according to an exemplary embodiment.
Fig. 7 is a kind of block diagram of the control device of sleep pattern according to an exemplary embodiment.
Fig. 8 is a kind of block diagram of the control device of sleep pattern according to an exemplary embodiment.
Fig. 9 is a kind of block diagram of the control device of sleep pattern according to an exemplary embodiment.
Figure 10 is a kind of block diagram of the control device of sleep pattern according to an exemplary embodiment.
Figure 11 is a kind of block diagram of the control device of sleep pattern according to an exemplary embodiment.
Figure 12 is a kind of block diagram of the control device of sleep pattern according to an exemplary embodiment.
Embodiment
Here exemplary embodiment will be illustrated in detail, its example is illustrated in the accompanying drawings.Following description is related to
During accompanying drawing, unless otherwise indicated, the same numbers in different accompanying drawings represent same or analogous key element.Following exemplary embodiment
Described in embodiment do not represent all embodiments consistent with the disclosure.On the contrary, they be only with it is such as appended
The example of the consistent apparatus and method of some aspects be described in detail in claims, the disclosure.
At present, the length of one's sleep of user is provided with terminal, terminal can control terminal to enter sleep mould in the length of one's sleep
Formula, the sleep pattern include default application more out of service such as music player application, recorder application or download application,
It is possible that at this time user is listening song, recording or downloading thing, at this moment entrance sleep pattern rashly, stops these
Using some losses may be caused to user, very big injury can be caused to the experience of user.
In order to solve the above problems, whether the disclosure can meet the condition into sleep pattern with detection terminal, and detect
Whether the terminal is currently running default application;Terminal is only detecting the condition for meeting to enter sleep pattern and not run
During the default application, just terminal is controlled to enter sleep pattern, the sleep pattern includes the default application out of service;Such as
This, ensures that terminal will not enter the default application of sleep pattern interrupt operation rashly, ensures the experience of user.
Fig. 1 is a kind of flow chart of the control method of sleep pattern according to an exemplary embodiment, such as Fig. 1 institutes
Show, the control method of the sleep pattern is used in the equipment such as terminal, comprises the following steps 101-103:
In a step 101, detect whether to meet the condition into sleep pattern.
In a step 102, detect whether the terminal is currently running default application.
In step 103, when detecting default application described in the condition for meeting to enter sleep pattern and off-duty, control
Terminal enters sleep pattern, and the sleep pattern includes the default application out of service.
In this embodiment, step 101 and step 102 do not have sequencing, and whether terminal can first be periodically detected full
Foot enters the condition of sleep pattern, then whether detection terminal is currently running default application;Certainly, terminal first can also be examined periodically
Survey whether terminal is currently running default application, then detect whether to meet the condition into sleep pattern, be not limited herein.
In this embodiment, when the user of terminal enters sleep state, terminal can enter sleep pattern, therefore here eventually
The condition that end enters sleep pattern can be that user enters dormant condition, if terminal detects that user enters sleep shape
State, then show that terminal detects the condition met into sleep pattern.
In this embodiment, the default application can be that user is set, can also give tacit consent in terminal, and this is default to apply
It can not rashly be stopped under operation, certain infringement otherwise can be caused to user, example, the default application can be
Player application, download application etc..
In this embodiment, the sleep pattern refers to the pattern of the certain applications in terminal out of service, example, and this is slept
Sleep mode can close function of surfing the Net with holding and short message application, and now, the sleep pattern just includes out of service with surfing the Net
The relevant application of function such as downloads application, plays the player application of online audio, and certainly, the sleep pattern can also be stopped
Only run application of some power consumptions etc..Explanation is needed exist for, terminal enters the certain applications stopped during sleep pattern and included
Above-mentioned default application, in this way, terminal is when detecting that satisfaction enters the condition of sleep pattern, it is also necessary to which just whether detection terminal
The default application is being run, if the default application of terminal off-duty, terminal can enter sleep pattern, to reduce intelligent terminal
Radiation to human body, and save the electricity of intelligent terminal.
Need exist for explanation, if terminal detect meet into sleep pattern condition but terminal be currently running it is pre-
If using when, terminal will not enter sleep pattern, and then, terminal can continue whether detection terminal is currently running default application,
When detecting that terminal off-duty presets application, terminal also needs to detect whether to meet the condition into sleep pattern, only exists
Detect that the terminal meets, into when presetting application described in the condition and off-duty of sleep pattern, can just control terminal to enter to fall asleep
Sleep mode.
The present embodiment can meet to answer into default described in the condition and off-duty of sleep pattern detecting the terminal
Used time, just control terminal to enter sleep pattern, terminal is more accurately entered sleep pattern, and ensure that terminal will not interrupt rashly
The default application of operation, improve the experience of user.
In a kind of possible embodiment, the step 101 in the control method of above-mentioned sleep pattern may be embodied as with
Lower step A1 and A2.
In step A1, state parameter of the terminal under screen state of going out is obtained.
In step A2, the corresponding state ginseng when the user that the state parameter meets the terminal is in sleep state
During number feature, determine that the terminal meets the condition into sleep pattern.
In this embodiment, it is well known that user when in sleep state will not using terminal, now in order to reduce intelligence
Can terminal-pair human body radiation, and save the electricity of intelligent terminal, terminal can be controlled to enter sleep pattern, therefore terminal can be
Detect when meeting that user is in dormant condition, it is determined that meeting the condition into sleep pattern.
In this embodiment, terminal can detect according to this terminal some state parameters automatically determine whether to meet
User is in dormant condition, and when being in due to user under sleep state without using terminal, terminal can be in screen state of going out,
Therefore terminal can detect the state parameter that goes out under screen state to determine whether to meet that user is in dormant condition.Usual feelings
Under condition, user sleep when can by terminal stand and user sleep when environment can it is quieter, than dark, the screen state therefore these go out
Under state parameter can be terminal local environment parameter, and some show the parameter whether terminal is allowed to stand for, and work as terminal
These state parameters such as ambient parameter detected meet environment when user is in sleep state it is quieter, than dark spy
Sign;And state parameter is when meeting the state parameter feature that terminal is allowed to stand for, it is possible to determines that the terminal meets to enter sleep mould
The condition of formula.
The present embodiment can when the user that the state parameter meets the terminal is in sleep state corresponding state
During parameter attribute, determine that the terminal meets the condition into sleep pattern, can be joined according to the state that terminal oneself detects
Number automatically determines the condition whether terminal meets to enter sleep pattern, and without other equipment, automatic detection determines.
In a kind of possible embodiment, in the control method of above-mentioned sleep pattern, the state parameter includes the screen that goes out
It is at least one in time, environmental light intensity, environmental volume and acceleration;When the state parameter goes out the screen time including described in,
The state parameter when user of the terminal is in sleep state is characterized as the screen time of going out more than the first preset time;Institute
When stating state parameter includes the environmental light intensity, the state parameter when user of the terminal is in sleep state is characterized as described
Environmental light intensity is less than default light intensity;When the state parameter includes the environmental volume, the user of the terminal is in sleep
State parameter during state is characterized as that the environmental volume is less than default volume;Include the acceleration in the state parameter
When, the state parameter when user of the terminal is in sleep state is characterized as that the acceleration is 0..
In this embodiment, the state parameter to go out under screen state that terminal detects can include go out screen time, ambient light
By force, at least one in environmental volume and static condition parameter, here, terminal can start timing when detecting that terminal is gone out and shielded
The screen time of going out so is got, terminal can be by the environmental light intensity residing for the optical sensor detection terminal in terminal, and terminal can
So that gravity sensor detection terminal can be used using the sound and then acquisition environmental volume in microphone collection environment, terminal
Acceleration.
In this embodiment, if the state parameter includes described go out and shields the time, it will not be used when being slept due to user
Terminal, terminal can be chronically at screen state of going out, therefore the state parameter when user of terminal is in sleep state is characterized as described go out
Shield the time more than the first preset time such as half an hour.If the state parameter includes the environmental light intensity, because user sleeps
Environment during dormancy is generally all more dim, therefore the state parameter when user of the terminal is in sleep state is characterized as the ring
Border light intensity is less than default light intensity.If the state parameter includes the environmental volume, environment when being slept due to user is usual
It is all quieter, therefore to be characterized as that the environmental volume is less than default for the state parameter when user of the terminal is in sleep state
Volume.If the state parameter includes acceleration, the acceleration be 0 when determine that terminal is in static condition, due to
Family when sleeping will not mobile terminal, therefore the state parameter when user of the terminal is in sleep state is characterized as 0.
Need exist for explanation, state parameter have it is two or more in the case of, it is equal in each state parameter
When meeting the state parameter feature when user of the terminal is in sleep state, it may be determined that the terminal meets to enter sleep
The condition of pattern.
State parameter in the present embodiment can include go out screen time, environmental light intensity, environmental volume and static condition parameter
In it is at least one, and then during state parameter feature when these state parameters meet that user is in sleep state, it is determined that with
Terminal satisfaction enters the condition of sleep pattern described in family, and determination mode is various and simple and convenient.
In a kind of possible embodiment, the step 101 in the control method of above-mentioned sleep pattern may be embodied as with
Lower step A3.
In step A3, when current time reaches the default length of one's sleep, it is determined that meeting the condition into sleep pattern.
In this embodiment, user can preset the length of one's sleep in the terminal in advance, and the default length of one's sleep is used to inform
Terminal user is in the default length of one's sleep possibly into sleep state, and so, terminal is detecting that current time reaches default
The length of one's sleep when, detect the condition met into sleep pattern, such determination mode is simple and convenient.
The present embodiment can be when current time reaches the default length of one's sleep, it is determined that meeting the bar into sleep pattern
Part, determination mode are simple and convenient.
In a kind of possible embodiment, the step 101 in the control method of above-mentioned sleep pattern may be embodied as with
Lower step A4 and A5.
In step A4, the state parameter of detection terminal;
In step A5, based on default pattern recognition model, according to the state parameter of the terminal, the pattern is obtained
The recognition result that identification model identifies;
Wherein, the pattern recognition model is for identifying whether the model into sleep pattern, the recognition result bag
Include the condition for meeting to enter sleep pattern or be unsatisfactory for the condition for entering sleep pattern.
In this embodiment, the state parameter of terminal can be the parameter and/or terminal oneself state of terminal local environment
Parameter, example, the parameter of terminal local environment can be that the location of environmental light intensity, environmental volume, terminal, institute are in place
The magnetic field put and intensity etc., the parameter of terminal oneself state can be screen state (screen state of going out or bright screen state), terminal
Acceleration, placing direction, operation application etc..
In this embodiment, it can prestore in terminal and know for the pattern for identifying whether to meet into sleep mode condition
Other model, the obtaining step of the pattern recognition model are as follows:Obtain sample set, wherein, the sample set include positive sample and
Negative sample, the state parameter of terminal when the positive sample includes that sleep mode condition can be entered, the negative sample include entering
The state parameter of terminal when entering sleep pattern.Positive sample in these sample sets and negative sample are inputted into initial pattern-recognition
Model to the model parameter in initial pattern recognition model to be adjusted, the pattern recognition model energy after parameter adjustment
Positive sample and negative sample are identified to enough maximum probabilities, so can be obtained by the default pattern recognition model.
In this embodiment, terminal can input the state parameter of the terminal after the state parameter of terminal is detected
Default pattern recognition model, if bar of the recognition result of preset mode identification model output for satisfaction into sleep pattern
Part, then terminal detect meet into sleep pattern condition;If the recognition result of preset mode identification model output is not
Meet the condition into sleep pattern, then terminal detects the condition being unsatisfactory for into sleep pattern.
The present embodiment can be with the state parameter of detection terminal;It is used to identify whether to meet to enter sleep pattern based on default
The pattern recognition model of condition, according to the state parameter of the terminal, obtain the identification knot that the pattern recognition model identifies
Fruit;The recognition result includes satisfaction into the condition of sleep pattern or is unsatisfactory for the condition for entering sleep pattern, use pattern
Identification model determines to meet the condition into sleep pattern, and determination mode is more accurate.
In a kind of possible embodiment, the step 102 in the control method of above-mentioned sleep pattern may be embodied as with
Lower step B1.
In step bl is determined, when detecting that satisfaction enters the condition of sleep pattern, detect whether the terminal is currently running
Default application.
In this embodiment, terminal can first detect whether meet into sleep pattern condition, detect meet into
When entering the condition of sleep pattern, then whether the terminal is detected in the default application of operation, it is not necessary to whether detect the terminal always
Default application is currently running, avoids producing unnecessary power consumption.
The present embodiment can just detect whether the terminal is transporting when detecting that satisfaction enters the condition of sleep pattern
The default application of row, reduces power consumption of terminal.
In a kind of possible embodiment, the default application includes:Play application, download application, recording application and
It is at least one in navigation application.
In this embodiment, preset application and belong to the application that can not be arbitrarily interrupted in terminal, the default application includes broadcasting
Application is put, application is downloaded, is in record application and navigation application at least one, due to this can be closed when terminal enters sleep pattern
A little default applications, therefore when these default applications are currently running, terminal will not enter sleep pattern, interrupt these default applications
Operation.
Default application in the present embodiment includes playing application, downloaded in application, recording application and navigation application at least
One, these default applications will not be interrupted arbitrarily, will not be caused damage to user, be ensured the experience of user.
In a kind of possible embodiment, when the default application includes playing application, the control of above-mentioned sleep pattern
Method can also comprise the following steps C1 to step C3.
In step C1, answered detecting that the terminal satisfaction enters the condition of sleep pattern and is currently running the broadcasting
Used time, prompt message is exported, the prompt message is currently running described play for prompting and applied.
In step C2, the terminal is detected in the second preset time after showing the prompt message whether in quiet
Configuration state.
In step C3, when detecting that the terminal is in static condition, described play out of service is applied.
In this embodiment, somebody likes listening song at night or listened to the radio programme etc. and falls asleep, if user is during song is listened
Directly fall asleep, now, terminal can detect that user is in sleep state, determine that the terminal meets the bar into sleep pattern
Part, but terminal is currently running broadcasting application, now terminal cannot enter sleep pattern.But in this case, if user
Really fall asleep, and play application and continue to run with and may result in terminal and can not enter sleep pattern always, and consuming terminal power,
Therefore in order to which terminal can enter sleep pattern in this case, reduce human body radiation and terminal power consumption, terminal can be further
Determine whether user falls asleep in the playing process for playing application, now, terminal can export prompt message, and the prompt message is used
In prompting user terminal be now currently running it is described play application, here, the prompt message can be user preset as vibration,
The information of the various modes such as jingle bell, bright screen display the prompt box.
If user has fallen asleep really, it will not reply, now, terminal will detect that terminal is showing the prompting
It is that now terminal will in static condition (acceleration is 0 as detected) in the second preset time (such as 30s) after information
Described play out of service is applied, and after terminal broadcasting application out of service, terminal will detect that terminal meets to enter sleep
The condition of pattern and not run it is described play application, will now control terminal to enter sleep pattern.
Certainly, if during terminal display prompt message, also without sleeping, user can then lead to if it is desired to continue to play user
Mobile terminal is crossed, terminal location is changed, so, terminal will detect the of terminal after the prompt message is shown
Static condition is not in two preset times, this indicates that user, to terminal input feedback, shows after prompt message is found
User is not sleeping, and now terminal out of service would not play application.
The present embodiment can detect that the terminal meets to enter sleep when default application includes playing application in terminal
The condition of pattern and be currently running it is described export prompt message when playing application, and user's sleep do not find into without it is mobile eventually
During end, the broadcasting application out of service, ensure the sleep of user, and further determine that user is in sleep state really, make end
End can enter sleep pattern.
In a kind of possible embodiment, the control method of above-mentioned sleep pattern can also comprise the following steps D1.
In step D1, after terminal enters sleep pattern, detect be unsatisfactory for the condition into sleep pattern when, control
Make the terminal and exit the sleep pattern.
In this embodiment, terminal is after sleep pattern is entered, if terminal detects the bar being unsatisfactory for into sleep pattern
During part, show that user can use the terminal at any time, now terminal will control terminal to exit the sleep pattern, so that terminal opens
Various applications out of service before dynamic, so, user avoid the need for spending the time to start this when unblock terminal begins to use
A little applications, are user-friendly terminal.
The present embodiment can detect the condition that is unsatisfactory for into sleep pattern after terminal enters the sleep pattern
When, control the terminal to exit the sleep pattern, so that terminal starts various applications, be user-friendly terminal.
Implementation process is discussed in detail below by several embodiments.
Fig. 2 is a kind of flow chart of the control method of sleep pattern according to an exemplary embodiment, such as Fig. 2 institutes
Show, this method can be realized by equipment such as terminals, including step 201-204.
In step 201, state parameter of the detection terminal under screen state of going out.
In step 202, the corresponding state when the user that the state parameter meets the terminal is in sleep state
During parameter attribute, determine that the terminal meets the condition into sleep pattern.
Wherein, the state parameter is including at least one in go out screen time, environmental light intensity, environmental volume and acceleration;
When the state parameter goes out the screen time including described in, the state parameter when user of the terminal is in sleep state is characterized as
The screen time of going out is more than the first preset time;When the state parameter includes the environmental light intensity, the user of the terminal
State parameter during in sleep state is characterized as that the environmental light intensity is less than default light intensity;Include in the state parameter described
During environmental volume, the state parameter when user of the terminal is in sleep state is characterized as that the environmental volume is less than default sound
Amount;When the state parameter includes the acceleration, the user of the terminal is in state parameter feature during sleep state
It is 0 for the acceleration.
In step 203, when detecting that satisfaction enters the condition of sleep pattern, detect whether the terminal is currently running
Default application, the default application include:Application is played, application is downloaded, is in record application and navigation application at least one.
In step 204, when detecting default application described in the condition for meeting to enter sleep pattern and off-duty, control
Terminal enters sleep pattern, and the sleep pattern includes the default application out of service.
Fig. 3 is a kind of flow chart of the control method of sleep pattern according to an exemplary embodiment, such as Fig. 3 institutes
Show, this method can be realized by equipment such as terminals, including step 301-308.
In step 301, the state parameter of detection terminal.
In step 302, based on default pattern recognition model, according to the state parameter of the terminal, the mould is obtained
The recognition result that formula identification model identifies.
Wherein, the pattern recognition model is for identifying whether to meet the model into sleep mode condition, the knowledge
Other result includes satisfaction into the condition of sleep pattern or is unsatisfactory for the condition for entering sleep pattern.
In step 303, when detecting that satisfaction enters the condition of sleep pattern, detect whether the terminal is currently running
Default application, the default application, which includes playing, applies.
In step 304, the terminal satisfaction is being detected into the condition of sleep pattern and is being currently running the broadcasting
Using when, export prompt message, the prompt message be used for prompting be currently running it is described play apply.
In step 305, detect whether the terminal is in the second preset time after showing the prompt message
Static condition.
Within step 306, when detecting that the terminal is in static condition, described play out of service is applied.
In step 307, the terminal satisfaction is being detected into the condition of sleep pattern and is not running described preset
Using when, control terminal enter sleep pattern, the sleep pattern includes the default application out of service.
In step 308, after terminal enters sleep pattern, detect be unsatisfactory for the condition into sleep pattern when,
The terminal is controlled to exit the sleep pattern.
Fig. 4 is a kind of flow chart of the control method of sleep pattern according to an exemplary embodiment, such as Fig. 4 institutes
Show, this method can be realized by equipment such as terminals, including step 401-404.
In step 401, when current time reaches the default length of one's sleep, it is determined that meeting the bar into sleep pattern
Part.
In step 402, when detecting that satisfaction enters the condition of sleep pattern, detect whether the terminal is currently running
Default application, the default application include:Application is played, application is downloaded, is in record application and navigation application at least one.
In step 403, when detecting default application described in the condition for meeting to enter sleep pattern and off-duty, control
Terminal enters sleep pattern, and the sleep pattern includes the default application out of service.
In step 404, after terminal enters sleep pattern, detect be unsatisfactory for the condition into sleep pattern when,
The terminal is controlled to exit the sleep pattern.
Following is embodiment of the present disclosure, can be used for performing embodiments of the present disclosure.
Fig. 5 is a kind of block diagram of the control device of sleep pattern according to an exemplary embodiment, and the device can be with
Pass through being implemented in combination with as some or all of of electronic equipment for software, hardware or both.As shown in figure 5, the sleep mould
The control device of formula includes:First detection module 501, the second detection module 502 and the first control module 503;Wherein:
First detection module 501, for detecting whether meeting the condition into sleep pattern;
Second detection module 502, for detecting whether the terminal is currently running default application;
First control module 503, for detecting default described in the condition for meeting to enter sleep pattern and off-duty answer
Used time, control terminal enter sleep pattern, and the sleep pattern includes the default application out of service.
As a kind of possible embodiment, Fig. 6 is the block diagram for the control device for being related to above-mentioned sleep pattern, disclosed above
The control device of sleep pattern can also be configured to the first detection module 501 to include the first detection sub-module 5011 and
One determination sub-module 5012, wherein:
First detection sub-module 5011, for state parameter of the detection terminal under screen state of going out;
First determination sub-module 5012, when the user for meeting the terminal in the state parameter is in sleep state
During corresponding state parameter feature, determine that the terminal meets the condition into sleep pattern.
As a kind of possible embodiment, in the control device of sleep pattern disclosed above, the state parameter includes
Going out, it is at least one in time, environmental light intensity, environmental volume and acceleration to shield;
When the state parameter goes out the screen time including described in, the state when user of the terminal is in sleep state is joined
Number is characterized as the screen time of going out more than the first preset time;
When the state parameter includes the environmental light intensity, the state when user of the terminal is in sleep state is joined
Number is characterized as that the environmental light intensity is less than default light intensity;
When the state parameter includes the environmental volume, the state when user of the terminal is in sleep state is joined
Number is characterized as that the environmental volume is less than default volume;
When the state parameter includes the acceleration, the user of the terminal is in state parameter during sleep state
It is 0 to be characterized as the acceleration.
As a kind of possible embodiment, Fig. 7 is the block diagram for the control device for being related to above-mentioned sleep pattern, disclosed above
The control device of sleep pattern can also be configured to first detection module 501 to include the second determination sub-module 5013, wherein:
Second determination sub-module 5013, for current time reach the default length of one's sleep when, it is determined that meeting into sleep
The condition of sleep mode.
As a kind of possible embodiment, Fig. 8 is the block diagram for the control device for being related to above-mentioned sleep pattern, disclosed above
The control device of sleep pattern can also be configured to first detection module 501 to include the second detection sub-module 5014 and identification
Module 5015, wherein:
Second detection sub-module 5014, the state parameter for detection terminal;
Submodule 5015 is identified, for based on default pattern recognition model, according to the state parameter of the terminal, obtaining
The recognition result that the pattern recognition model identifies;
Wherein, the pattern recognition model is for identifying whether the model into sleep pattern, the recognition result bag
Include the condition for meeting to enter sleep pattern or be unsatisfactory for the condition for entering sleep pattern.
As a kind of possible embodiment, Fig. 9 is the block diagram for the control device for being related to above-mentioned sleep pattern, and described preset should
During with being applied including playing, the control device of sleep pattern disclosed above can also be configured to the second detection module 502 to wrap
The 3rd detection sub-module 5021 is included, wherein:
3rd detection sub-module 5021, for when detecting that satisfaction enters the condition of sleep pattern, detecting the terminal
Whether default application is currently running.
As a kind of possible embodiment, in the control device of sleep pattern disclosed above, the default application includes
Application is played, application is downloaded, is in record application and navigation application at least one.
As a kind of possible embodiment, Figure 10 is the block diagram for the control device for being related to above-mentioned sleep pattern, described default
During using being applied including playing, the control device of sleep pattern disclosed above can be configured to include output module 504,
3rd detection module 505 and stopping modular 506, wherein:
Output module 504, for detecting the terminal satisfaction into the condition of sleep pattern and being currently running described
When playing application, prompt message is exported, the prompt message is currently running described play for prompting and applied;
3rd detection module 505, for detecting the terminal in the second preset time after showing the prompt message
Whether static condition is in;
Stopping modular 506, for when detecting that the terminal is in static condition, described play out of service to be applied.
As a kind of possible embodiment, Figure 11 is the block diagram for the control device for being related to above-mentioned sleep pattern, disclosed above
The control device of sleep pattern can be configured to include the second control module 507, wherein:
Second control module 507, for after terminal enters sleep pattern, being unsatisfactory for detecting into sleep pattern
During condition, the terminal is controlled to exit the sleep pattern.
On the device in above-described embodiment, wherein modules perform the concrete mode of operation in relevant this method
Embodiment in be described in detail, explanation will be not set forth in detail herein.
Figure 12 is a kind of block diagram of the control device of sleep pattern according to an exemplary embodiment, and the device is applicable
In terminal device.For example, device 1200 can be mobile phone, and game console, computer, tablet device, personal digital assistant
Deng.
Device 1200 can include following one or more assemblies:Processing component 1201, memory 1202, power supply module
1203, multimedia groupware 1204, audio-frequency assembly 1205, input/output (I/O) interface 1206, sensor cluster 1207, Yi Jitong
Believe component 1208.
The integrated operation of the usual control device 1200 of processing component 1201, such as communicated with display, call, data,
The operation that camera operation and record operation are associated.Processing component 1201 can include one or more processors 1220 to perform
Instruction, to complete all or part of step of above-mentioned method.In addition, processing component 1201 can include one or more moulds
Block, the interaction being easy between processing component 1201 and other assemblies.For example, processing component 1201 can include multi-media module,
To facilitate the interaction between multimedia groupware 1204 and processing component 1201.
Memory 1202 is configured as storing various types of data to support the operation in device 1200.These data
Example includes being used for the instruction of any application program or method operated on device 1200, contact data, telephone book data,
Message, picture, video etc..Memory 1202 can by any kind of volatibility or non-volatile memory device or they
Combination is realized, such as static RAM (SRAM), Electrically Erasable Read Only Memory (EEPROM), it is erasable can
Program read-only memory (EPROM), programmable read only memory (PROM), read-only storage (ROM), magnetic memory, flash memory
Reservoir, disk or CD.
Power supply module 1203 provides electric power for the various assemblies of device 1200.Power supply module 1203 can include power management
System, one or more power supplys, and other components associated with generating, managing and distributing electric power for device 1200.
Multimedia groupware 1204 is included in the screen of one output interface of offer between described device 1200 and user.
In some embodiments, screen can include liquid crystal display (LCD) and touch panel (TP).If screen includes touch panel,
Screen may be implemented as touch-screen, to receive the input signal from user.Touch panel includes one or more touch and passed
Sensor is with the gesture on sensing touch, slip and touch panel.The touch sensor can not only sensing touch or slip be dynamic
The border of work, but also detect the duration and pressure related to the touch or slide.In certain embodiments, it is more
Media component 1204 includes a front camera and/or rear camera.When device 1200 is in operator scheme, mould is such as shot
When formula or video mode, front camera and/or rear camera can receive outside multi-medium data.Each preposition shooting
Head and rear camera can be a fixed optical lens system or have focusing and optical zoom capabilities.
Audio-frequency assembly 1205 is configured as output and/or input audio signal.For example, audio-frequency assembly 1205 includes a wheat
Gram wind (MIC), when device 1200 is in operator scheme, during such as call model, logging mode and speech recognition mode, microphone quilt
It is configured to receive external audio signal.The audio signal received can be further stored in memory 1202 or via communication
Component 1208 is sent.In certain embodiments, audio-frequency assembly 1205 also includes a loudspeaker, for exports audio signal.
I/O interface 1206 provides interface, above-mentioned peripheral interface mould between processing component 1201 and peripheral interface module
Block can be keyboard, click wheel, button etc..These buttons may include but be not limited to:Home button, volume button, start button
And locking press button.
Sensor cluster 1207 includes one or more sensors, and the state for providing various aspects for device 1200 is commented
Estimate.For example, sensor cluster 1207 can detect opening/closed mode of device 1200, the relative positioning of component, such as institute
The display and keypad that component is device 1200 are stated, sensor cluster 1207 can be with detection means 1200 or device 1,200 1
The position of individual component changes, the existence or non-existence that user contacts with device 1200, the orientation of device 1200 or acceleration/deceleration and dress
Put 1200 temperature change.Sensor cluster 1207 can include proximity transducer, be configured in no any physics
The presence of object nearby is detected during contact.Sensor cluster 1207 can also include optical sensor, as CMOS or ccd image are sensed
Device, for being used in imaging applications.In certain embodiments, the sensor cluster 1207 can also include acceleration sensing
Device, gyro sensor, Magnetic Sensor, pressure sensor or temperature sensor.
Communication component 1208 is configured to facilitate the communication of wired or wireless way between device 1200 and other equipment.Dress
The wireless network based on communication standard, such as WiFi, 2G or 3G, or combinations thereof can be accessed by putting 1200.It is exemplary at one
In embodiment, communication component 1208 receives broadcast singal or broadcast correlation from external broadcasting management system via broadcast channel
Information.In one exemplary embodiment, the communication component 1208 also includes near-field communication (NFC) module, to promote short distance
Communication.For example, radio frequency identification (RFID) technology, Infrared Data Association (IrDA) technology, ultra wide band can be based in NFC module
(UWB) technology, bluetooth (BT) technology and other technologies are realized.
In the exemplary embodiment, device 1200 can be by one or more application specific integrated circuits (ASIC), numeral
Signal processor (DSP), digital signal processing appts (DSPD), PLD (PLD), field programmable gate array
(FPGA), controller, microcontroller, microprocessor or other electronic components are realized, for performing the above method.
In the exemplary embodiment, a kind of non-transitorycomputer readable storage medium including instructing, example are additionally provided
Such as include the memory 1202 of instruction, above-mentioned instruction can be performed to complete the above method by the processor 1220 of device 1200.Example
Such as, the non-transitorycomputer readable storage medium can be ROM, it is random access memory (RAM), CD-ROM, tape, soft
Disk and optical data storage devices etc..
A kind of computer-readable recording medium is present embodiments provided, when the instruction in the storage medium is by device 1200
Computing device when realize following steps:
Detect whether to meet the condition into sleep pattern;
Detect whether the terminal is currently running default application;
Meet that control terminal enters sleep into when presetting application described in the condition and off-duty of sleep pattern detecting
Pattern, the sleep pattern include the default application out of service.
Instruction in the storage medium can also realize following steps when being executed by processor:
It is described to detect whether to meet the condition into sleep pattern, including:
State parameter of the detection terminal under screen state of going out;
When the user that the state parameter meets the terminal is in sleep state during corresponding state parameter feature, really
The fixed terminal meets the condition into sleep pattern.
Instruction in the storage medium can also realize following steps when being executed by processor:
The state parameter is including at least one in go out screen time, environmental light intensity, environmental volume and acceleration;
When the state parameter goes out the screen time including described in, the state when user of the terminal is in sleep state is joined
Number is characterized as the screen time of going out more than the first preset time;
When the state parameter includes the environmental light intensity, the state when user of the terminal is in sleep state is joined
Number is characterized as that the environmental light intensity is less than default light intensity;
When the state parameter includes the environmental volume, the state when user of the terminal is in sleep state is joined
Number is characterized as that the environmental volume is less than default volume;
When the state parameter includes the acceleration, the user of the terminal is in state parameter during sleep state
It is 0 to be characterized as the acceleration.
Instruction in the storage medium can also realize following steps when being executed by processor:
It is described to detect whether to meet the condition into sleep pattern, including:
When current time reaches the default length of one's sleep, it is determined that meeting the condition into sleep pattern.
Instruction in the storage medium can also realize following steps when being executed by processor:
Detect whether to meet the condition into sleep pattern, including:
The state parameter of detection terminal;
Based on default pattern recognition model, according to the state parameter of the terminal, obtain the pattern recognition model and know
The recognition result not gone out;
Wherein, the pattern recognition model is for identifying whether to meet the model into sleep mode condition, the knowledge
Other result includes satisfaction into the condition of sleep pattern or is unsatisfactory for the condition for entering sleep pattern.
Instruction in the storage medium can also realize following steps when being executed by processor:
Whether the detection terminal is currently running default application, including:
When detecting that satisfaction enters the condition of sleep pattern, detect whether the terminal is currently running default application.
Instruction in the storage medium can also realize following steps when being executed by processor:
The default application includes:Application is played, application is downloaded, is in record application and navigation application at least one.
Instruction in the storage medium can also realize following steps when being executed by processor:
When the default application includes playing application, methods described also includes:
When detecting the terminal satisfaction into the condition of sleep pattern and being currently running the broadcasting application, output carries
Show information, the prompt message is currently running described play for prompting and applied;
Detect whether the terminal is in static condition in the second preset time after showing the prompt message;
When detecting that the terminal is in static condition, described play out of service is applied.
Instruction in the storage medium can also realize following steps when being executed by processor:
Methods described also includes:
After terminal enters sleep pattern, detect be unsatisfactory for the condition into sleep pattern when, control the terminal
Exit the sleep pattern.
The disclosure additionally provides a kind of control device of sleep pattern, including:
Processor;
For storing the memory of processor-executable instruction;
Wherein, the processor is configured as:
Detect whether to meet the condition into sleep pattern;
Detect whether the terminal is currently running default application;
Meet that control terminal enters sleep into when presetting application described in the condition and off-duty of sleep pattern detecting
Pattern, the sleep pattern include the default application out of service.
The processor can be additionally configured to:
It is described to detect whether to meet the condition into sleep pattern, including:
State parameter of the detection terminal under screen state of going out;
When the user that the state parameter meets the terminal is in sleep state during corresponding state parameter feature, really
The fixed terminal meets the condition into sleep pattern.
The processor can be additionally configured to:
The state parameter is including at least one in go out screen time, environmental light intensity, environmental volume and acceleration;
When the state parameter goes out the screen time including described in, the state when user of the terminal is in sleep state is joined
Number is characterized as the screen time of going out more than the first preset time;
When the state parameter includes the environmental light intensity, the state when user of the terminal is in sleep state is joined
Number is characterized as that the environmental light intensity is less than default light intensity;
When the state parameter includes the environmental volume, the state when user of the terminal is in sleep state is joined
Number is characterized as that the environmental volume is less than default volume;
When the state parameter includes the acceleration, the user of the terminal is in state parameter during sleep state
It is 0 to be characterized as the acceleration.
The processor can be additionally configured to:
It is described to detect whether to meet the condition into sleep pattern, including:
When current time reaches the default length of one's sleep, it is determined that meeting the condition into sleep pattern.
The processor can be additionally configured to:
Detect whether to meet the condition into sleep pattern, including:
The state parameter of detection terminal;
Based on default pattern recognition model, according to the state parameter of the terminal, obtain the pattern recognition model and know
The recognition result not gone out;
Wherein, the pattern recognition model is for identifying whether to meet the model into sleep mode condition, the knowledge
Other result includes satisfaction into the condition of sleep pattern or is unsatisfactory for the condition for entering sleep pattern.
The processor can be additionally configured to:
Whether the detection terminal is currently running default application, including:
When detecting that satisfaction enters the condition of sleep pattern, detect whether the terminal is currently running default application.
The processor can be additionally configured to:
The default application includes:Application is played, application is downloaded, is in record application and navigation application at least one.
The processor can be additionally configured to:
When the default application includes playing application, methods described also includes:
When detecting the terminal satisfaction into the condition of sleep pattern and being currently running the broadcasting application, output carries
Show information, the prompt message is currently running described play for prompting and applied;
Detect whether the terminal is in static condition in the second preset time after showing the prompt message;
When detecting that the terminal is in static condition, described play out of service is applied.
The processor can be additionally configured to:
Methods described also includes:
After terminal enters sleep pattern, detect be unsatisfactory for the condition into sleep pattern when, control the terminal
Exit the sleep pattern.
Those skilled in the art will readily occur to the disclosure its after considering specification and putting into practice disclosure disclosed herein
Its embodiment.The application is intended to any modification, purposes or the adaptations of the disclosure, these modifications, purposes or
Person's adaptations follow the general principle of the disclosure and including the undocumented common knowledges in the art of the disclosure
Or conventional techniques.Description and embodiments are considered only as exemplary, and the true scope of the disclosure and spirit are by following
Claim is pointed out.
It should be appreciated that the precision architecture that the disclosure is not limited to be described above and is shown in the drawings, and
And various modifications and changes can be being carried out without departing from the scope.The scope of the present disclosure is only limited by appended claim.
Claims (20)
- A kind of 1. control method of sleep pattern, it is characterised in that including:Detect whether to meet the condition into sleep pattern;Detect whether the terminal is currently running default application;Meet that control terminal enters sleep mould into when presetting application described in the condition and off-duty of sleep pattern detecting Formula, the sleep pattern include the default application out of service.
- 2. according to the method for claim 1, it is characterised in that it is described to detect whether to meet the condition into sleep pattern, Including:State parameter of the detection terminal under screen state of going out;When the user that the state parameter meets the terminal is in sleep state during corresponding state parameter feature, institute is determined State the condition that terminal meets to enter sleep pattern.
- 3. according to the method for claim 2, it is characterised in that the state parameter includes go out screen time, environmental light intensity, ring It is at least one in border volume and acceleration;The state parameter include it is described go out the screen time when, the user of the terminal be in state parameter spy during sleep state Levy is that described go out shields the time more than the first preset time;When the state parameter includes the environmental light intensity, the state parameter when user of the terminal is in sleep state is special Levy and be less than default light intensity for the environmental light intensity;When the state parameter includes the environmental volume, the state parameter when user of the terminal is in sleep state is special Levy and be less than default volume for the environmental volume;When the state parameter includes the acceleration, the user of the terminal is in state parameter feature during sleep state It is 0 for the acceleration.
- 4. according to the method for claim 1, it is characterised in that it is described to detect whether to meet the condition into sleep pattern, Including:When current time reaches the default length of one's sleep, it is determined that meeting the condition into sleep pattern.
- 5. according to the method for claim 1, it is characterised in that detect whether to meet the condition into sleep pattern, including:The state parameter of detection terminal;Based on default pattern recognition model, according to the state parameter of the terminal, obtain the pattern recognition model and identify Recognition result;Wherein, the pattern recognition model is for identifying whether to meet the model into sleep mode condition, the identification knot Fruit includes satisfaction into the condition of sleep pattern or is unsatisfactory for the condition for entering sleep pattern.
- 6. according to the method for claim 1, it is characterised in that whether the detection terminal is currently running default answer With, including:When detecting that satisfaction enters the condition of sleep pattern, detect whether the terminal is currently running default application.
- 7. according to the method for claim 1, it is characterised in that the default application includes:Broadcasting is applied, download is applied, It is at least one in recording application and navigation application.
- 8. according to the method for claim 1, it is characterised in that when the default application includes playing application, methods described Also include:When detecting the terminal satisfaction into the condition of sleep pattern and being currently running the broadcasting application, letter is prompted in output Breath, the prompt message are currently running described play for prompting and applied;Detect whether the terminal is in static condition in the second preset time after showing the prompt message;When detecting that the terminal is in static condition, described play out of service is applied.
- 9. according to the method for claim 1, it is characterised in that methods described also includes:After terminal enters sleep pattern, detect be unsatisfactory for the condition into sleep pattern when, control the terminal to exit The sleep pattern.
- A kind of 10. control device of sleep pattern, it is characterised in that including:First detection module, for detecting whether meeting the condition into sleep pattern;Second detection module, for detecting whether the terminal is currently running default application;First control module, for when detecting default application described in the condition for meeting to enter sleep pattern and off-duty, controlling Terminal processed enters sleep pattern, and the sleep pattern includes the default application out of service.
- 11. device according to claim 10, it is characterised in that the first detection module includes:First detection sub-module, for detecting state parameter of the terminal under screen state of going out;First determination sub-module, corresponding shape when the user for meeting the terminal in the state parameter is in sleep state During state parameter attribute, determine that the terminal meets the condition into sleep pattern.
- 12. device according to claim 11, it is characterised in that the state parameter include go out screen the time, environmental light intensity, It is at least one in environmental volume and acceleration;The state parameter include it is described go out the screen time when, the user of the terminal be in state parameter spy during sleep state Levy is that described go out shields the time more than the first preset time;When the state parameter includes the environmental light intensity, the state parameter when user of the terminal is in sleep state is special Levy and be less than default light intensity for the environmental light intensity;When the state parameter includes the environmental volume, the state parameter when user of the terminal is in sleep state is special Levy and be less than default volume for the environmental volume;When the state parameter includes the acceleration, the user of the terminal is in state parameter feature during sleep state It is 0 for the acceleration.
- 13. device according to claim 10, it is characterised in that the first detection module includes:Second determination sub-module, for when current time reaches the default length of one's sleep, it is determined that meeting into sleep pattern Condition.
- 14. device according to claim 10, it is characterised in that the first detection module includes:Second detection sub-module, the state parameter for detection terminal;Submodule is identified, for based on default pattern recognition model, according to the state parameter of the terminal, obtaining the pattern The recognition result that identification model identifies;Wherein, the pattern recognition model is for identifying whether the model into sleep pattern, and the recognition result includes full Foot enters the condition of sleep pattern or is unsatisfactory for the condition for entering sleep pattern.
- 15. device according to claim 10, it is characterised in that second detection module includes:3rd detection sub-module, for when detecting that satisfaction enters the condition of sleep pattern, whether to detect the terminal The default application of operation.
- 16. device according to claim 10, it is characterised in that the default application includes:Application is played, downloads and answers With, recording application and navigation application in it is at least one.
- 17. device according to claim 10, it is characterised in that when the default application includes playing application, the dress Putting also includes:Output module, for detecting the terminal satisfaction into the condition of sleep pattern and being currently running the broadcasting application When, prompt message is exported, the prompt message is currently running described play for prompting and applied;3rd detection module, whether it is in the second preset time after showing the prompt message for detecting the terminal Static condition;Stopping modular, for when detecting that the terminal is in static condition, described play out of service to be applied.
- 18. device according to claim 10, it is characterised in that described device also includes:Second control module, for after terminal enters sleep pattern, detect be unsatisfactory for the condition into sleep pattern when, The terminal is controlled to exit the sleep pattern.
- A kind of 19. control device of sleep pattern, it is characterised in that including:Processor;For storing the memory of processor-executable instruction;Wherein, the processor is configured as:Detect whether to meet the condition into sleep pattern;Detect whether the terminal is currently running default application;Meet that control terminal enters sleep mould into when presetting application described in the condition and off-duty of sleep pattern detecting Formula, the sleep pattern include the default application out of service.
- 20. a kind of computer-readable recording medium, is stored with computer instruction, it is characterised in that the computer instruction is located Reason device realizes the step in claim 1 to 9 methods described when performing.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710818803.1A CN107708187A (en) | 2017-09-12 | 2017-09-12 | The control method and device of sleep pattern |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710818803.1A CN107708187A (en) | 2017-09-12 | 2017-09-12 | The control method and device of sleep pattern |
Publications (1)
Publication Number | Publication Date |
---|---|
CN107708187A true CN107708187A (en) | 2018-02-16 |
Family
ID=61172581
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201710818803.1A Pending CN107708187A (en) | 2017-09-12 | 2017-09-12 | The control method and device of sleep pattern |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN107708187A (en) |
Cited By (10)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108966134A (en) * | 2018-07-26 | 2018-12-07 | 马书翠 | A kind of mobile terminal location control method based on Internet of Things |
CN109040953A (en) * | 2018-07-26 | 2018-12-18 | 马书翠 | A kind of mobile terminal location control system based on Internet of Things |
CN109040956A (en) * | 2018-08-02 | 2018-12-18 | 赵佳丽 | A kind of mobile terminal energy conservation localization method based on Internet of Things |
CN109088987A (en) * | 2018-07-26 | 2018-12-25 | 阿里巴巴集团控股有限公司 | A kind of audio and video playing method, apparatus and electronic equipment |
CN109831817A (en) * | 2019-02-27 | 2019-05-31 | 北京达佳互联信息技术有限公司 | Terminal control method, device, terminal and storage medium |
CN110198558A (en) * | 2019-05-09 | 2019-09-03 | 深圳市万普拉斯科技有限公司 | Standby optimization method, device, computer equipment and storage medium |
CN110491419A (en) * | 2019-08-26 | 2019-11-22 | 广东小天才科技有限公司 | A kind of control method for playing back, system and terminal device |
CN113747346A (en) * | 2021-05-10 | 2021-12-03 | 荣耀终端有限公司 | Standby method of terminal equipment and terminal equipment |
CN114201255A (en) * | 2021-12-07 | 2022-03-18 | 联想(北京)有限公司 | Control method and device and electronic equipment |
CN115412945A (en) * | 2021-05-26 | 2022-11-29 | 华为技术有限公司 | Method and device for identifying excessive dormancy |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103327162A (en) * | 2012-03-21 | 2013-09-25 | 华为技术有限公司 | Contextual model setting method and terminal device |
CN103885565A (en) * | 2012-12-21 | 2014-06-25 | 希姆通信息技术(上海)有限公司 | Dormancy method and dormancy system for intelligent equipment |
CN105430152A (en) * | 2014-09-19 | 2016-03-23 | 中兴通讯股份有限公司 | Method and device for controlling player to go into sleep mode and terminal equipment |
CN106125883A (en) * | 2016-06-15 | 2016-11-16 | 乐视控股(北京)有限公司 | Intelligent terminal and control method thereof |
CN106131337A (en) * | 2016-07-19 | 2016-11-16 | 宇龙计算机通信科技(深圳)有限公司 | A kind of method and device out of service based on User Status control application |
CN106502687A (en) * | 2016-10-24 | 2017-03-15 | 深圳市金立通信设备有限公司 | A kind of method and terminal for entering resting state |
-
2017
- 2017-09-12 CN CN201710818803.1A patent/CN107708187A/en active Pending
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103327162A (en) * | 2012-03-21 | 2013-09-25 | 华为技术有限公司 | Contextual model setting method and terminal device |
CN103885565A (en) * | 2012-12-21 | 2014-06-25 | 希姆通信息技术(上海)有限公司 | Dormancy method and dormancy system for intelligent equipment |
CN105430152A (en) * | 2014-09-19 | 2016-03-23 | 中兴通讯股份有限公司 | Method and device for controlling player to go into sleep mode and terminal equipment |
CN106125883A (en) * | 2016-06-15 | 2016-11-16 | 乐视控股(北京)有限公司 | Intelligent terminal and control method thereof |
CN106131337A (en) * | 2016-07-19 | 2016-11-16 | 宇龙计算机通信科技(深圳)有限公司 | A kind of method and device out of service based on User Status control application |
CN106502687A (en) * | 2016-10-24 | 2017-03-15 | 深圳市金立通信设备有限公司 | A kind of method and terminal for entering resting state |
Cited By (16)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108966134A (en) * | 2018-07-26 | 2018-12-07 | 马书翠 | A kind of mobile terminal location control method based on Internet of Things |
CN109040953A (en) * | 2018-07-26 | 2018-12-18 | 马书翠 | A kind of mobile terminal location control system based on Internet of Things |
CN109088987A (en) * | 2018-07-26 | 2018-12-25 | 阿里巴巴集团控股有限公司 | A kind of audio and video playing method, apparatus and electronic equipment |
CN109040953B (en) * | 2018-07-26 | 2020-11-27 | 南京博晟宇网络科技有限公司 | Mobile terminal positioning control system based on Internet of things |
CN108966134B (en) * | 2018-07-26 | 2020-11-27 | 宁波海特技术转移有限公司 | Mobile terminal positioning control method based on Internet of things |
CN109040956A (en) * | 2018-08-02 | 2018-12-18 | 赵佳丽 | A kind of mobile terminal energy conservation localization method based on Internet of Things |
CN109831817A (en) * | 2019-02-27 | 2019-05-31 | 北京达佳互联信息技术有限公司 | Terminal control method, device, terminal and storage medium |
CN109831817B (en) * | 2019-02-27 | 2020-09-11 | 北京达佳互联信息技术有限公司 | Terminal control method, device, terminal and storage medium |
WO2020224658A1 (en) * | 2019-05-09 | 2020-11-12 | 深圳市万普拉斯科技有限公司 | Standby optimization method and apparatus, and computer device and storage medium |
CN110198558A (en) * | 2019-05-09 | 2019-09-03 | 深圳市万普拉斯科技有限公司 | Standby optimization method, device, computer equipment and storage medium |
CN110491419A (en) * | 2019-08-26 | 2019-11-22 | 广东小天才科技有限公司 | A kind of control method for playing back, system and terminal device |
CN113747346A (en) * | 2021-05-10 | 2021-12-03 | 荣耀终端有限公司 | Standby method of terminal equipment and terminal equipment |
CN113747346B (en) * | 2021-05-10 | 2023-10-03 | 荣耀终端有限公司 | Standby method of terminal equipment and terminal equipment |
CN115412945A (en) * | 2021-05-26 | 2022-11-29 | 华为技术有限公司 | Method and device for identifying excessive dormancy |
CN115412945B (en) * | 2021-05-26 | 2025-06-13 | 华为技术有限公司 | Method and device for identifying excessive sleep |
CN114201255A (en) * | 2021-12-07 | 2022-03-18 | 联想(北京)有限公司 | Control method and device and electronic equipment |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN107708187A (en) | The control method and device of sleep pattern | |
CN105162945B (en) | Method for information display and device | |
CN104618218B (en) | Message prompt method and device | |
CN104298547B (en) | terminal setting method and device | |
CN105848190A (en) | OTA upgrading method and apparatus | |
CN105138319B (en) | Event-prompting method and device | |
CN105487650A (en) | Intelligent alarm clock turn-off method and apparatus | |
CN106774774A (en) | The electric quantity display method and device of end cell | |
CN106878558A (en) | Dropproof based reminding method and device | |
CN105933539A (en) | Audio playing control method and device, and terminal | |
CN107493500A (en) | Multimedia resource player method and device | |
CN108536996A (en) | Method, apparatus, storage medium and intelligent baby bed are slept in automatic roars of laughter | |
CN108549529A (en) | Control the method and device of audio output | |
CN105141758A (en) | Terminal control method and device | |
CN109087650A (en) | voice awakening method and device | |
CN105657186A (en) | Volume control method and device | |
CN106131393A (en) | Take pictures reminding method and device | |
CN106060296A (en) | Terminal control method, device and system | |
CN107529699A (en) | Control method of electronic device and device | |
CN104182039B (en) | Apparatus control method, device and electronic equipment | |
CN105390120B (en) | bright screen control method and device | |
CN105807894A (en) | Processing method and device of lock holding of application | |
CN106921797A (en) | Information prompting method and device | |
CN106502664A (en) | User is reminded to open the method and device of application | |
CN106791039A (en) | A kind of mobile terminal location device and method |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
RJ01 | Rejection of invention patent application after publication | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20180216 |