CN107708191A - Terminal control method, device and computer-readable recording medium - Google Patents

Terminal control method, device and computer-readable recording medium Download PDF

Info

Publication number
CN107708191A
CN107708191A CN201710937818.XA CN201710937818A CN107708191A CN 107708191 A CN107708191 A CN 107708191A CN 201710937818 A CN201710937818 A CN 201710937818A CN 107708191 A CN107708191 A CN 107708191A
Authority
CN
China
Prior art keywords
sleep
state
sleep pattern
pattern
duration
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
Application number
CN201710937818.XA
Other languages
Chinese (zh)
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.)
Beijing Xiaomi Mobile Software Co Ltd
Original Assignee
Beijing Xiaomi Mobile Software Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Xiaomi Mobile Software Co Ltd filed Critical Beijing Xiaomi Mobile Software Co Ltd
Priority to CN201710937818.XA priority Critical patent/CN107708191A/en
Publication of CN107708191A publication Critical patent/CN107708191A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/724User interfaces specially adapted for cordless or mobile telephones
    • H04M1/72448User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions
    • H04M1/72463User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions to restrict the functionality of the device
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/48Program initiating; Program switching, e.g. by interrupt
    • G06F9/4806Task transfer initiation or dispatching
    • G06F9/4843Task transfer initiation or dispatching by program, e.g. task dispatcher, supervisor, operating system
    • G06F9/485Task life-cycle, e.g. stopping, restarting, resuming execution
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W52/00Power management, e.g. TPC [Transmission Power Control], power saving or power classes
    • H04W52/02Power saving arrangements
    • H04W52/0209Power saving arrangements in terminal devices
    • H04W52/0261Power saving arrangements in terminal devices managing power supply demand, e.g. depending on battery level
    • H04W52/0264Power saving arrangements in terminal devices managing power supply demand, e.g. depending on battery level by selectively disabling software applications
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D30/00Reducing energy consumption in communication networks
    • Y02D30/70Reducing energy consumption in communication networks in wireless communication networks

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Measurement Of The Respiration, Hearing Ability, Form, And Blood Characteristics Of Living Organisms (AREA)

Abstract

The disclosure is directed to a kind of terminal control method, device and computer-readable recording medium, belongs to field of terminal technology, and this method includes:After detecting that user enters sleep state, start the first sleep pattern and the second sleep pattern successively;Wherein, first sleep pattern refers to the first pattern for specifying the function of class application to be started in the application that limitation is installed, second sleep pattern refers to the second of the limitation installation pattern for specifying the function of class application to be started, and second specifies the quantity of class application to be more than the first quantity for specifying class application;When being detected in the state of the first sleep pattern or the second sleep pattern into bright screen state, the first sleep pattern or the second sleep pattern are exited, is started with recovering the function of the application of installation.The disclosure controls terminal to start the first sleep pattern and the second sleep pattern successively, is started so as to limit the function of the application of installation, reduce the power consumption and power consumption of terminal according to the sleep state of user.

Description

Terminal control method, device and computer-readable recording medium
Technical field
This disclosure relates to field of terminal technology, more particularly to terminal control method, device and computer-readable recording medium.
Background technology
At present, the application installed in terminal is more and more, and in such applications, some applications are preferable in order to provide a user Service, some functions of the application may carry out self-starting in the default period, such as, the information push of communications applications Deng.But due to the function always self-starting of application, the power consumption and power consumption for causing terminal increase, and shorten the use of terminal Life-span.Therefore, in order to reduce terminal power consumption amount and power consumption, it is necessary to be controlled to terminal so that installation application function without Method self-starting.
In correlation technique, in order to prevent the function self-starting for the application installed in terminal, it can be set in advance in terminal WIFI (Wireless Fidelity, Wireless Fidelity) connected mode, when making terminal in a dormant state, disconnects WIFI automatically Connection.It that is to say, after terminal is detected into death of monks or nuns screen state certain time length, it may be determined that into resting state, now, terminal WIFI connections can be disconnected, so that the function of the application of installation can not pass through network self-starting.
The content of the invention
In order to reduce the power consumption of terminal and power consumption, the disclosure provides a kind of terminal control method, device and computer can Read storage medium.
According to the first aspect of the embodiment of the present disclosure, there is provided a kind of terminal control method, methods described include:
After detecting that user enters sleep state, start the first sleep pattern and the second sleep pattern successively;
Wherein, first sleep pattern refers to that the first function of specifying class to apply is started in the application that limitation is installed Pattern, second sleep pattern refers to the second of the limitation installation pattern that is started of function for specifying class application, described Second specifies the quantity of class application to be more than the described first quantity for specifying class application;
When being detected in the state of first sleep pattern or second sleep pattern into bright screen state, move back Go out first sleep pattern or second sleep pattern, started with recovering the function of the application of the installation.
Alternatively, it is described after detecting that user enters sleep state, start the first sleep pattern and the second sleep successively Before pattern, in addition to:
The User Status data that wearable device is sent are received, the User Status data are used for instruction user and enter sleep State.
Alternatively, it is described after detecting that user enters sleep state, start the first sleep pattern and the second sleep successively Before pattern, in addition to:
Detect the environmental data of present position, intensity of illumination, noise intensity and the vibrations that the environmental data includes Intensity;
When the intensity of illumination is less than default noise threshold, and the shake less than default illumination threshold value, the noise intensity When fatigue resistance is less than default vibrations threshold value, determine that the user enters sleep state.
Alternatively, it is described after detecting that user enters sleep state, start the first sleep pattern and the second sleep successively Before pattern, in addition to:
The grader that grader generating means are sent is received, the grader is the grader generating means with state sample This collection is used as training data, according to classification algorithm training obtain be used for determine whether target terminal is located at dormant classification Device, the state sample concentrate be included in sample terminal be in during sleep state n sleep state sample gathering and The sample terminal is not at the m non-sleep state sample gathered during sleep state, and the n and m are more than 0 Integer;
Obtain the state sample at the target terminal current time;
The state sample is inputted into the grader, to pass through the grader output state label, the state mark Sign the classification for indicative of said status sample;
When the classification of the state sample of state tag instruction is in sleep state, determine that the user enters Enter sleep state.
Alternatively, it is described after detecting that user enters sleep state, start the first sleep pattern and the second sleep successively Pattern, including:
When detecting that the user enters hypophypnosis state, start first sleep pattern, the hypophypnosis State refers to that sleep quality is less than predetermined quality threshold and the state being easily waken up;
When detecting that the user enters severe sleep state after starting first sleep pattern, described in startup Second sleep pattern, the severe sleep state refer to that sleep quality is more than the predetermined quality threshold and is not easy the shape being waken up State.
Alternatively, it is described after detecting that user enters sleep state, start the first sleep pattern and the second sleep successively Pattern, including:
When detecting that the user enters sleep state, start first sleep pattern;
Dormant time for falling asleep, the corresponding relation between time for falling asleep and duration are entered according to the user Duration corresponding to middle acquisition;
After first sleep pattern starts the duration, start second sleep pattern.
Alternatively, it is described after detecting that user enters sleep state, start the first sleep pattern and the second sleep successively Pattern, including:
When detecting that the user enters sleep state, start first sleep pattern;
After detecting that starting first sleep pattern specifies duration, start second sleep pattern.
Alternatively, it is described that dormant time for falling asleep is entered according to the user, from time for falling asleep and duration it Between corresponding relation in obtain corresponding to before duration, in addition to:
Multiple time for falling asleep of the user and multiple sleep durations are obtained, the multiple sleep duration is institute User is stated when multiple time for falling asleep enter sleep state, keeps the duration of hypophypnosis state;
Based on the multiple time for falling asleep and the multiple sleep duration, it is determined that appointing in the multiple time for falling asleep The duration of first sleep pattern described in during one time for falling asleep startup first sleep pattern;
The time for falling asleep and the duration are stored to the corresponding pass between the time for falling asleep and duration In system.
According to the second aspect of the embodiment of the present disclosure, there is provided a kind of terminal control mechanism, described device include:
Starting module, for after detecting that user enters sleep state, starting the first sleep pattern and second successively and sleeping Sleep mode;
Wherein, first sleep pattern refers to that the first function of specifying class to apply is started in the application that limitation is installed Pattern, second sleep pattern refers to the second of the limitation installation pattern that is started of function for specifying class application, described Second specifies the quantity of class application to be more than the described first quantity for specifying class application;
Module is exited, entrance is detected in the state of first sleep pattern or second sleep pattern for working as During bright screen state, first sleep pattern or second sleep pattern are exited, to recover the function of the application of the installation Started.
Alternatively, described device also includes:
First receiving module, for receiving the User Status data of wearable device transmission, the User Status data are used Enter sleep state in instruction user.
Alternatively, described device also includes:
Detection module, for detecting the environmental data of present position, intensity of illumination that the environmental data includes, make an uproar Loudness of a sound degree and shockproofness;
First determining module, for being less than default illumination threshold value, the noise intensity less than default when the intensity of illumination Noise threshold, and when the shockproofness is less than default vibrations threshold value, determine that the user enters sleep state.
Described device also includes:
Second receiving module, for receiving the grader of grader generating means transmission, the grader is the classification Device generating means are used for whether determining target terminal using state sample collection as training data, according to what classification algorithm training obtained Positioned at dormant grader, the state sample concentration is included in sample terminal and is in during sleep state the n gathered Individual sleep state sample and the m non-sleep state sample gathered during the sample terminal is not at sleep state, The n and m are the integer more than 0;
Acquisition module, for obtaining the state sample at the target terminal current time;
Input module, for the state sample to be inputted into the grader, to pass through the grader output state mark Label, the state tag are used for the classification of indicative of said status sample;
Second determining module, the classification of the state sample for being indicated when the state tag is in sleep state When, determine that the user enters sleep state.
Alternatively, the starting module includes:
First starts submodule, is slept for when detecting that the user enters hypophypnosis state, starting described first Sleep mode, the hypophypnosis state refer to that sleep quality is less than predetermined quality threshold and the state being easily waken up;
Second starts submodule, for detecting that the user enters severe after first sleep pattern is being started During sleep state, start second sleep pattern, the severe sleep state refers to that sleep quality is more than the preset quality Threshold value and it is not easy the state being waken up.
Alternatively, the starting module includes:
3rd starts submodule, for when detecting that the user enters sleep state, starting the first sleep mould Formula;
First acquisition submodule, for entering dormant time for falling asleep according to the user, from time for falling asleep with holding Duration corresponding to being obtained in corresponding relation between continuous duration;
4th starts submodule, for after first sleep pattern starts the duration, starting described second Sleep pattern.
Alternatively, the starting module includes:
5th starts submodule, for when detecting that the user enters sleep state, starting the first sleep mould Formula;
6th starts submodule, for after detecting that starting first sleep pattern specifies duration, startup described the Two sleep patterns.
Alternatively, the starting module also includes:
Second acquisition submodule, it is described for the multiple time for falling asleep for obtaining the user and multiple sleep durations It is multiple sleep durations be the user when multiple time for falling asleep enter sleep state, holding hypophypnosis state when It is long;
Determination sub-module, for based on the multiple time for falling asleep and the multiple sleep duration, it is determined that described The duration of first sleep pattern described in when any time for falling asleep starts first sleep pattern in multiple time for falling asleep;
Sub-module stored, for by the time for falling asleep and the duration store to the time for falling asleep with it is lasting when In corresponding relation between length.
According to the third aspect of the embodiment of the present disclosure, there is provided a kind of terminal control mechanism, described device include:
Processor;
For storing the memory of processor-executable instruction;
Wherein, the processor is configured as performing the step of any one method described in above-mentioned first aspect
According to the fourth aspect of the embodiment of the present disclosure, there is provided a kind of computer-readable recording medium, it is described computer-readable Instruction is stored with storage medium, any one method described in above-mentioned first aspect is realized in the instruction when being executed by processor Step.
The technical scheme provided by this disclosed embodiment can include the following benefits:In the disclosed embodiments, by Under the situation of sleep is entered in user, influence will not be brought to user by limiting the function progress self-starting of application.Therefore, when When detecting that user enters sleep state, the first sleep pattern and the second sleep pattern can be started successively, so as to limit application Function started, reduce the power consumption and power consumption of terminal, and then improve the service life of terminal.
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 terminal control method according to an exemplary embodiment.
Fig. 2 is the flow chart of another terminal control method according to an exemplary embodiment.
Fig. 3 A are the block diagrams of the first terminal control mechanism according to an exemplary embodiment.
Fig. 3 B are the block diagrams of second of terminal control mechanism according to an exemplary embodiment.
Fig. 3 C are the block diagrams of the third terminal control mechanism according to an exemplary embodiment.
Fig. 3 D are the block diagrams of the 4th kind of terminal control mechanism according to an exemplary embodiment.
Fig. 3 E are the block diagrams of the first starting module according to an exemplary embodiment.
Fig. 3 F are the block diagrams of second of starting module according to an exemplary embodiment.
Fig. 3 G are the block diagrams of the third starting module according to an exemplary embodiment.
Fig. 3 H are the block diagrams of the 4th kind of starting module according to an exemplary embodiment.
Fig. 4 is a kind of structured flowchart of terminal 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.
Before detailed explanation is carried out to the embodiment of the present disclosure, the first application to being related in the embodiment of the present disclosure Scene is introduced.
At present, in the application installed in terminal, the functions of major applications may in default period self-starting, from And the electricity of terminal is caused to be consumed because of the function self-starting of extensive application.And currently in order to preventing these functions of applying from carrying out Self-starting, WIFI connections are disconnected typically after terminal enters death of monks or nuns screen state certain time length.But after WIFI connections are disconnected, Terminal will be unable to receive information by the communication class application such as instant messaging application, so as to lead to miss some important informations, be The life of user brings certain influence.Based on such scene, the embodiment of the present disclosure, which provides one kind, can lift user's body Test, reduce terminal power consumption amount and power consumption, improve the terminal control method of terminal service life.
Fig. 1 is a kind of flow chart for terminal control method that the embodiment of the present disclosure provides, whole applied to target referring to Fig. 1 In end, this method may include steps of.
In a step 101, after detecting that user enters sleep state, the first sleep pattern and the second sleep are started successively Pattern.
Wherein, the first sleep pattern refers to the first mould for specifying the function of class application to be started in the application that limitation is installed Formula, the second sleep pattern refer to the second of the limitation installation pattern for specifying the function of class application to be started, and second specifies class should Quantity is more than the first quantity for specifying class application.
In a step 102, when being detected in the state of the first sleep pattern or the second sleep pattern into bright screen state When, the first sleep pattern or the second sleep pattern are exited, is started with recovering the function of the application of installation.
In the disclosed embodiments, under due to entering the situation of sleep in user, the function of limiting application carries out self-starting Influence will not be brought to user.Therefore, when detecting that user enters sleep state, the first sleep pattern can be started successively With the second sleep pattern, started so as to limit the function of application, reduce the power consumption and power consumption of terminal, and then improved The service life of terminal.
Alternatively, after detecting that user enters sleep state, the first sleep pattern and the second sleep pattern are started successively Before, in addition to:
The User Status data that wearable device is sent are received, the User Status data are used for instruction user and enter sleep shape State.
Alternatively, after detecting that user enters sleep state, the first sleep pattern and the second sleep pattern are started successively Before, in addition to:
The environmental data of present position is detected, intensity of illumination, noise intensity and the vibrations that the environmental data includes are strong Degree;
When the intensity of illumination is less than default noise threshold, and the shockproofness less than default illumination threshold value, the noise intensity During less than default vibrations threshold value, determine that the user enters sleep state.
Alternatively, after detecting that user enters sleep state, the first sleep pattern and the second sleep pattern are started successively Before, in addition to:
The grader that grader generating means are sent is received, grader is that the grader generating means are made with state sample collection For training data, determine whether target terminal be located at dormant grader according to being used for of obtaining of classification algorithm training, this State sample, which is concentrated, to be included in sample terminal and be in during sleep state n sleep state sample gathering and at sample end End is not at the m non-sleep state sample gathered during sleep state, and n and m are the integer more than 0;
Obtain the state sample at target terminal current time;
The state sample is inputted into the grader, so that by the grader output state label, the state tag is used to refer to Show the classification of the state sample;
When the classification of the state sample of state tag instruction is in sleep state, determine that the user enters sleep State.
Alternatively, after detecting that user enters sleep state, the first sleep pattern and the second sleep pattern are started successively, Including:
When detecting that the user enters hypophypnosis state, start the first sleep pattern, the hypophypnosis state refers to Sleep quality is less than predetermined quality threshold and the state being easily waken up;
When detecting that the user enters severe sleep state after starting the first sleep pattern, start the second sleep mould Formula, the severe sleep state refer to that sleep quality is more than the predetermined quality threshold and is not easy the state being waken up.
Alternatively, after detecting that user enters sleep state, the first sleep pattern and the second sleep pattern are started successively, Including:
When detecting that the user enters sleep state, start the first sleep pattern;
Dormant time for falling asleep is entered according to the user, in the corresponding relation between time for falling asleep and duration Duration corresponding to acquisition;
After the first sleep pattern starts the duration, start the second sleep pattern.
Alternatively, after detecting that user enters sleep state, the first sleep pattern and the second sleep pattern are started successively, Including:
When detecting that the user enters sleep state, start the first sleep pattern;
After detecting that starting the first sleep pattern specifies duration, start the second sleep pattern.
Alternatively, dormant time for falling asleep, pair between time for falling asleep and duration are entered according to the user It should be related to before duration corresponding to middle acquisition, in addition to:
Multiple time for falling asleep of the user and multiple sleep durations are obtained, the plurality of sleep duration is the user When multiple time for falling asleep enter sleep state, the duration of hypophypnosis state is kept;
Based on the plurality of time for falling asleep and the plurality of sleep duration, it is determined that any sleep in the plurality of time for falling asleep The duration of first sleep pattern when time starts the first sleep pattern;
The time for falling asleep and the duration are stored into the corresponding relation between the time for falling asleep and duration.
Above-mentioned all optional technical schemes, can form the alternative embodiment of the disclosure according to any combination, and the disclosure is real Example is applied no longer to repeat this one by one.
Fig. 2 is a kind of flow chart for terminal control method that the embodiment of the present disclosure provides, and referring to Fig. 2, this method can wrap Include following steps.
In step 201, whether target terminal detection user enters sleep state.
Wherein, in the disclosed embodiments, target terminal refers to the currently used terminal of user, and the target terminal can be Mobile phone, tablet personal computer, handheld device etc..
All it is to enter sleep state in user because target terminal subsequently starts the first sleep pattern and the second sleep pattern Carry out afterwards, therefore, target terminal is in order to determine whether to start the first sleep pattern or the second sleep pattern, it is necessary to detect user Whether sleep state is entered.Wherein, the first sleep pattern refers to that the first function of specifying class to apply is entered in the application that limitation is installed The pattern that row starts, the second sleep pattern refer to the second of the limitation installation pattern for specifying the function of class application to be started, should Second specifies the quantity of class application to be more than the first quantity for specifying class application.
It should be noted that the first specified class application can be set in advance, such as, the first specified class application can be The application of multimedia class, game class application etc..Second specify class application can equally set in advance, such as, this second specify Class application can be communication class application, study class application etc., and in order to avoid user's miss critical information, communication class application are usual It is included in second to specify in class application.In addition, the first application for specifying class can be included in the second specified class application.
In addition, whether target terminal detection user, which enters dormant operation, can include following three kinds of modes.
First way, target terminal receive the User Status data that wearable device is sent, and the User Status data are used Enter sleep state in instruction user.
Because current increasing user likes wearing wearable device (such as Intelligent bracelet etc.), and wearable set Standby to detect User Status data, and determine whether user currently enters sleep state, therefore, target terminal can be by can Whether wearable device detection user enters sleep state.
Wherein, wearable device can detect User Status data, and will detect obtained User Status data send to Target terminal, when the User Status data that wearable device detects are that instruction user enters dormant data, once Wearable device sends the User Status data to target terminal, then target terminal would know that user enters sleep shape State.
The second way, target terminal detect the environmental data of present position, intensity of illumination that environmental data includes, Noise intensity and shockproofness;When intensity of illumination is less than default illumination threshold value, noise intensity is less than default noise threshold, and shaken When intensity is less than default vibrations threshold value, determine that user enters sleep state.
Because under normal conditions, when user enters sleep state, sleep light is generally dark, and local environment is more pacified Quiet, target terminal will be in fixed object by user, hardly shake.Therefore, target terminal can pass through inspection Intensity of illumination, noise intensity and shockproofness are surveyed, to determine whether user enters sleep state.
It should be noted that default illumination threshold value can be set in advance, such as, it can be that 10lux (is strangled to preset illumination threshold value Ke Si), 5lux etc., because user generally falls asleep in the place of dark, therefore, it is generally smaller to preset illumination threshold value.It is default Noise threshold can equally be set in advance, such as, the default noise threshold can be 5db (decibel), 10db etc., due to user Generally fallen asleep in relatively quiet place, therefore, it is generally smaller to preset noise threshold.Default vibrations threshold value can equally be set in advance Put, such as, the default vibrations threshold value can be 0mm/s (millimeter/s), 10mm/s etc..Because under normal conditions, user falls asleep When, target terminal should be actionless, but user may fall asleep on train, aircraft sometimes, and target terminal can produce Raw slight vibrations, therefore, it can not also be 0 to preset vibrations threshold value, but is generally set smaller.
The third mode, target terminal receive the grader that grader generating means are sent, and the grader is grader life Into device using state sample collection as training data, according to classification algorithm training obtain be used for determine whether target terminal is located at Dormant grader, state sample concentration are included in sample terminal and are in during sleep state the n sleep shape gathered Aspect sheet and the m non-sleep state sample gathered during sample terminal is not at sleep state, n and m are more than 0 Integer;Obtain the state sample at target terminal current time;State sample is inputted into the grader, with defeated by the grader Do well label, and the state tag is used for the classification of instruction state sample;When the class of the state sample of state tag instruction When Wei not be in sleep state, determine that user enters sleep state.When the classification of the state sample of state tag instruction is During in non-sleep state, determine that user is introduced into sleep state.
It should be noted that the grader generating means can be desktop computer, notebook, server or clothes Business device cluster etc..The sample terminal can be that type or the multiple sample terminals of model identical, each sample terminal are used to adopt Collect wakefulness state sample and non-wakefulness state sample, and the quantity of sample terminal is more, the formation speed of state sample collection is faster, And then the formation speed of grader also can be faster.
Wherein, grader generating means are classified using state sample collection as training data according to classification algorithm training The operation of device can be:N sleep state sample and m sleep state sample are obtained from multiple sample terminals, by n sleep State sample and m non-sleep state sample merge into state sample collection;Using the state sample collection as training data, according to point Class Algorithm for Training obtains grader.
In addition, in order to obtain n sleep state sample and m sleep state sample, grader from multiple sample terminals Generating means can obtain multiple sample terminals the first running log in a sleep state respectively and under non-sleep state Second running log, and multiple sleep state samples are obtained from the first running log, and acquisition is more from the second running status Individual non-sleep state sample, any sleep state sample in the plurality of sleep state sample can include p characteristic parameter with For the label for the classification for indicating any sleep state sample, the classification of any sleep state sample is to be in sleep state, p Integer more than 0, any non-sleep state sample in the plurality of non-sleep state sample include p characteristic parameter and for referring to Show the label of the classification of any non-sleep state sample, the classification of any non-sleep state sample is not to be located at sleep state;Point It is other that format check processing and missing values completion processing are carried out to multiple sleep state samples and multiple non-sleep state samples, obtain N sleep state sample and m sleep state sample.
It should be noted that p characteristic parameter can include:The parameter of acceleration transducer acquisition, sample mobile terminal System time, the parameter that light sensor obtains, the program of sample terminal operating and sample terminal screen display interface in At least three kinds.In addition, in actual applications, p characteristic parameter can also include other characteristic parameters of sample terminal, than Such as, parameter that range sensor obtains etc..P is bigger, and the accuracy of the grader of generation is higher.
It should also be noted that, in p characteristic parameter, the parameter that acceleration transducer obtains is used to react sample terminal Acceleration, when the acceleration of sample terminal is continuously 0, the possibility that sample terminal is in sleep state is larger;Light The parameter that sensor obtains is used for the light intensity for reacting sample terminal surrounding, when the light intensity of sample terminal surrounding is relatively low When, it is larger that sample terminal is in dormant possibility;The system time of sample terminal can be used for aiding in and calibrating light For example, the intensity of sample terminal surrounding light is relatively low for the anomaly ratio of the parameter that sensor obtains once in a while, but sample terminal is in non- Sleep state;The program of sample terminal operating and the screen display interface of sample terminal can be used for reacting the current row of user For, such as, sample terminal operating has game application and screen display interface is the interface of the game application, then sample terminal It is smaller in dormant possibility.
In addition, target terminal can obtain current time after the grader of grader generating means transmission is received State sample, the state sample are the state sample without label, i.e. the state sample only includes multiple characteristic parameters, and the plurality of Any sleep state sample or any non-sleep state sample that the type of characteristic parameter can obtain with grader generating means Characteristic parameter type it is identical.For example any sleep state sample that grader generating means obtain is including characteristic parameter Acceleration transducer obtain parameter, sample terminal system time and light sensor obtain parameter, then target terminal obtain Parameter, system time and the light that the acceleration transducer that the state sample at the current time taken includes current time obtains pass The parameter that sensor obtains.
In step 202, after target terminal detects that user enters sleep state, start successively the first sleep pattern and Second sleep pattern.
Wherein, target terminal starts the first sleep pattern and second and slept successively after detecting that user enters sleep state The operation of sleep mode can include following three kinds of modes.
(1), when detecting that user enters hypophypnosis state, the first sleep pattern is started, hypophypnosis state refers to Sleep quality is less than predetermined quality threshold and the state being easily waken up;Detect that user enters after the first sleep pattern is being started When entering severe sleep state, start the second sleep pattern, severe sleep state refer to sleep quality be more than predetermined quality threshold and It is not easy the state being waken up.
Due to being typically to be introduced into hypophypnosis state after user's sleep, then again by hypophypnosis under normal conditions State enters severe sleep state.When user is under hypophypnosis state, user is easier to be waken up, therefore, in order to reach The purpose of power consumption is reduced, and in order to avoid user's miss critical information, target terminal can be limited first in the application of installation Specify the function of class application to be started, that is, start the first sleep pattern.When user is slept by hypophypnosis state into severe During state, because user has been not easy to be waken up under severe sleep state, even if receiving some information by communication class application, User may can not also know the information very first time, therefore, in order to further reduce target terminal power consumption and power consumption, mesh Mark terminal can continue to specify the function of class application to close by the second of installation, that is, open the second sleep pattern.
Wherein, from the foregoing, target terminal can know User Status data, therefore, target by wearable device The User Status data that terminal directly can be sent according to wearable device, know that user is presently at hypophypnosis state also It is to be in severe sleep state, and works as and know that user enters severe sleep shape in the User Status data sent from wearable device During state, start the second sleep pattern.
It should be noted that sleep quality is used for the situation for describing user's sleep, generally can be by user in sleep shape The frequency of state lower limb body action, the reflection such as pulse data.When frequency response of the sleep quality by user's limb action, preset Quality threshold can be the threshold value with frequency dependence, such as, the predetermined quality threshold can be 1 time/hour, 2 times/hour etc. Deng.When sleep quality is reflected by pulse data, predetermined quality threshold can be the related threshold value of pulse rate, such as, should Predetermined quality threshold can be 70 beats/min, 80 beats/min etc..
(2), when detecting that user enters sleep state, the first sleep pattern is started;Sleep state is entered according to user Time for falling asleep, corresponding duration is obtained in the corresponding relation between time for falling asleep and duration;In the first sleep After pattern starts duration, start the second sleep pattern.
From the foregoing, target terminal may be by the environmental data that detection is presently in, determine that user enters sleep State, therefore, whether target terminal may only determine that user has been enter into sleep state, can not but determine user by slightly sleeping Dormancy state enters severe sleep state.And due under normal conditions, if user fall asleep it is more early, then user keeps slight The dormant time is longer, and it is more late that user enters the severe dormant time.Therefore, target terminal can start first After sleep pattern, dormant time for falling asleep is entered according to user, the corresponding pass between time for falling asleep and duration Duration corresponding to being obtained in system;And after the first sleep pattern starts duration, it is believed that user is by slightly sleeping Dormancy state enters severe sleep state, and now, target terminal can start the second sleep pattern.
Further, the corresponding relation between time for falling asleep and duration can be previously stored in target terminal, It is that target terminal enters dormant time for falling asleep according to user, the corresponding pass between time for falling asleep and duration Before duration corresponding to being obtained in system, when target terminal can obtain multiple time for falling asleep and the lasting multiple sleeps of user It is long, the plurality of sleep duration be user when multiple time for falling asleep enter sleep state, holding hypophypnosis state when It is long;And the plurality of time for falling asleep and multiple sleep durations are based on, it is determined that any time for falling asleep opens in multiple time for falling asleep The duration of first sleep pattern during dynamic first sleep pattern;Afterwards, the time for falling asleep and the duration are stored to this In corresponding relation between time for falling asleep and duration.
Wherein, can be that each time for falling asleep is corresponding one in the corresponding relation between the time for falling asleep and duration Duration, naturally it is also possible to the corresponding duration of multiple time for falling asleep.Such as time for falling asleep be 21 when, it is corresponding Duration is 3.5 hours, and when time for falling asleep is 22, corresponding duration is 3 hours, right when time for falling asleep is 23 The duration answered is 2.5 hours etc..
, can also corresponding one of multiple time for falling asleep when continuing because each time for falling asleep can correspond to a duration Long, therefore, target terminal is based on the plurality of time for falling asleep and multiple sleep durations, it is determined that any in multiple time for falling asleep The operation of duration of the first sleep pattern can be when time for falling asleep starts the first sleep pattern:For multiple time for falling asleep In any time for falling asleep, target terminal can determine sleep duration corresponding to the time for falling asleep to be opened in the time for falling asleep The duration of first sleep pattern during dynamic first sleep pattern.Or target terminal can determine earlier than or equal to specify into Sleep the first of multiple time for falling asleep of time averagely to sleep duration, the first averagely sleep duration was defined as in morning The first sleep pattern holds when any time for falling asleep starts the first sleep pattern in the multiple time for falling asleep for specifying time for falling asleep Continuous duration;Averagely slept duration it is determined that being later than the second of multiple time for falling asleep of specified time for falling asleep, this second is averaged Sleep duration is defined as any time for falling asleep in the multiple time for falling asleep for be later than specified time for falling asleep and starts the first sleep The duration of first sleep pattern during pattern.
It should be noted that this specify time for falling asleep can set in advance, such as, this specify time for falling asleep be 22 points, 23 Point etc..
For example when specified time for falling asleep is, multiple time for falling asleep of time for falling asleep are specified to divide earlier than or equal to this at 23 Wei not be 21 points, 22 points and 23 points, corresponding sleep duration is respectively 3.5 hours, 3 hours, 2.5 hours, accordingly, it is determined that First duration of averagely sleeping is 3 hours, accordingly, it is determined that the first averagely sleep duration 3 hours is to be in time for falling asleep 21 points, 22 points, 23 points start the first sleep pattern when the first sleep pattern duration.It is later than this and specifies the more of time for falling asleep Individual time for falling asleep is respectively 24 points, 1 point and 2 points, and corresponding sleep duration is respectively 2 hours, 1.5 hours, 1 hour, because This, it is determined that the second duration of averagely sleeping be 1.5 hours, accordingly, it is determined that the second duration of averagely sleeping 1.5 hours is Time for falling asleep be 24 points, 1 point, 2 points start the first sleep pattern when the first sleep pattern duration.
What deserves to be explained is because the time for falling asleep of user may be all different each time, therefore, when multiple time for falling asleep pair When answering a duration, if target terminal detects that the time for falling asleep of user and the plurality of time for falling asleep differ, but should When the time for falling asleep detected is located in multiple time for falling asleep in the range of any two time for falling asleep, when determining the sleep that this is detected Between corresponding duration it is identical with the duration corresponding to the plurality of time for falling asleep.
Such as when duration is 3 hours corresponding to 21 points, 22 points and 23 points of time for falling asleep, if target terminal is examined Measure the time for falling asleep of user for 21 points 30 minutes, differed with multiple time for falling asleep within 30 minutes due to 21 points, but be located at and 22 at 21 points In the range of the time for falling asleep of point, hence, it can be determined that 30 minutes corresponding durations of time for falling asleep 21 point are 3 hours.
In addition, in the disclosed embodiments, the corresponding relation between the time for falling asleep and duration can be stored in mesh Mark in terminal, server can also be stored in.When the corresponding relation between the time for falling asleep and duration is stored in server When middle, if target terminal detects that user enters sleep state, the time for falling asleep of user can be sent to server;When When server receives the time for falling asleep of target terminal transmission, corresponding relation that can be between time for falling asleep and duration In, duration corresponding to the time for falling asleep is determined, and the sleep duration is sent to target terminal.
(3), when target terminal detects that user enters sleep state, the first sleep pattern is started;Start when detecting After first sleep pattern specifies duration, start the second sleep pattern.
Because user is likely to be fixed the length of one's sleep, user by hypophypnosis state enter severe it is dormant when Between and it is fixed, therefore, target terminal can be specified directly after the first sleep pattern is started in the first sleep pattern of startup After duration, start the second sleep pattern.
It should be noted that this specifies duration to set in advance, it can be 2 hours, 3 hours etc. that this, which specifies duration,.
In step 203, when target terminal detects entrance in the state of the first sleep pattern or the second sleep pattern During bright screen state, the first sleep pattern or the second sleep pattern are exited, is started with recovering the function of the application of installation.
Due to being operated when target terminal is detected in the state of the first sleep pattern or the second sleep pattern into bright screen When, illustrate that user wakes up from sleep state, now, in order to not impacted to user using target terminal, target terminal The first sleep pattern or the second sleep pattern can be directly exited, is started so as to recover the function of the application of installation.
In the disclosed embodiments, due to after user enters sleep state, will not enter in using terminal in user Under the situation for entering sleep, the function of terminal limitation application carries out self-starting will not bring influence to user, and therefore, terminal can be with Whether detection detection user enters sleep state.When terminal is detecting that user enters sleep state, first can be started and slept Sleep mode.Because the first sleep pattern refers to limit the first mould for specifying the function of class application to be started in the application installed Formula, and first specifies class generally not include communication class application in applying, so as to can not only reduce the power consumption and power consumption of terminal, It is also prevented from user and misses the important information received by communication class application.After entering severe sleep state due to user, It can not be waken up easily, therefore, after terminal detects that user enters severe sleep state by hypophypnosis state, Ke Yiqi Dynamic second sleep pattern, because the second sleep pattern refers to the second of the limitation installation mould for specifying the function of class application to be started Formula, and second quantity for specifying class to apply is more than the first quantity for specifying class application, therefore, terminal starts the second sleep pattern Afterwards, can make more applications of installation function can not self-starting, so as to reduce the power consumption of terminal and power consumption, improve The service life of terminal.
Fig. 3 A are a kind of block diagrams for terminal control mechanism that the embodiment of the present disclosure provides, referring to Fig. 3 A, terminal control dress Putting can be implemented in combination with by software, hardware or both, and the device includes:Starting module 301 and exit module 302.
Starting module 301, for after detecting that user enters sleep state, starting the first sleep pattern and second successively Sleep pattern;
Wherein, the first sleep pattern refers to the first mould for specifying the function of class application to be started in the application that limitation is installed Formula, the second sleep pattern refer to the second of the limitation installation pattern for specifying the function of class application to be started, and second specifies class should Quantity is more than the first quantity for specifying class application;
Module 302 is exited, is detected for working as in the state of the first sleep pattern or the second sleep pattern into bright screen During state, the first sleep pattern or the second sleep pattern are exited, is started with recovering the function of the application of the installation.
Alternatively, also include referring to Fig. 3 B, the device:
First receiving module 303, for receiving the User Status data of wearable device transmission, the User Status data are used Enter sleep state in instruction user.
Alternatively, also include referring to Fig. 3 C, the device:
Detection module 304, for detecting the environmental data of present position, intensity of illumination that the environmental data includes, Noise intensity and shockproofness;
First determining module 305, for being less than default illumination threshold value when the intensity of illumination, the noise intensity is less than default make an uproar Sound threshold value, and when the shockproofness is less than default vibrations threshold value, determine that the user enters sleep state.
Alternatively, also include referring to Fig. 3 D, the device:
Second receiving module 306, for receiving the grader of grader generating means transmission, the grader is the grader Generating means using state sample collection as training data, according to classification algorithm training obtain be used for determine target terminal whether position In dormant grader, the state sample, which is concentrated, to be included in sample terminal and be in during sleep state that the n gathered is individual to sleep Dormancy state sample and the m non-sleep state sample gathered during the sample terminal is not at sleep state, n and m are equal For the integer more than 0;
Acquisition module 307, for obtaining the state sample at target terminal current time;
Input module 308, for the state sample to be inputted into the grader, with by the grader output state label, The state tag is used for the classification for indicating the state sample;
Second determining module 309, the classification of the state sample for being indicated when the state tag is in sleep state When, determine that the user enters sleep state.
Alternatively, include referring to Fig. 3 E, the starting module 301:
First starts submodule 3011, for when detecting that the user enters hypophypnosis state, starting the first sleep Pattern, the hypophypnosis state refer to that sleep quality is less than predetermined quality threshold and the state being easily waken up;
Second starts submodule 3012, for detecting that the user sleeps into severe after the first sleep pattern is being started During dormancy state, start the second sleep pattern, the severe sleep state refers to that sleep quality is more than the predetermined quality threshold and is not easy The state being waken up.
Alternatively, include referring to Fig. 3 F, the starting module 301:
3rd starts submodule 3013, for when detecting that the user enters sleep state, starting the first sleep pattern;
First acquisition submodule 3014, for entering dormant time for falling asleep according to the user, from time for falling asleep with Duration corresponding to being obtained in corresponding relation between duration;
4th starts submodule 3015, for after the first sleep pattern starts the duration, starting the second sleep mould Formula.
Alternatively, include referring to Fig. 3 G, the starting module 301:
5th starts submodule 3016, for when detecting that the user enters sleep state, starting the first sleep pattern;
6th starts submodule 3017, for after detecting that starting the first sleep pattern specifies duration, starting second and sleeping Sleep mode.
Alternatively, also include referring to Fig. 3 H, the starting module 301:
Second acquisition submodule 3018, should for the multiple time for falling asleep for obtaining the user and multiple sleep durations It is multiple sleep durations be the user when multiple time for falling asleep enter sleep state, holding hypophypnosis state duration;
Determination sub-module 3019, for based on the plurality of time for falling asleep and the plurality of sleep duration, it is determined that more at this The duration of first sleep pattern when any time for falling asleep starts the first sleep pattern in individual time for falling asleep;
Sub-module stored 30110, for by the time for falling asleep and the duration store to the time for falling asleep with it is lasting when In corresponding relation between length.
In summary, in the disclosed embodiments, because after user enters sleep state, being will not be in using terminal , in the case where user enters the situation of sleep, the function of terminal limitation application carries out self-starting will not bring influence to user, because This, terminal can detect whether detection user enters sleep state., can be with when terminal is detecting that user enters sleep state Start the first sleep pattern, carried out because the first sleep pattern refers to limit the first function of specifying class to apply in the application installed The pattern of startup, and first specifies class generally not include communication class application in applying, so as to can not only reduce the power consumption of terminal Amount and power consumption, are also prevented from user and miss the important information received by communication class application.Because user sleeps into severe After dormancy state, it is impossible to be waken up easily, therefore, when terminal detects that user enters severe sleep state by hypophypnosis state Afterwards, the second sleep pattern can be started.Because the second sleep pattern refers to that the second of limitation installation specifies the function of class application to enter The pattern that row starts, and this second specifies quantity of class application to be more than the first quantity for specifying class application, therefore, terminal starts the After two sleep patterns, can make installation more applications function can not self-starting, so as to reduce the power consumption of terminal and consumption Electricity, improve the service life of terminal.
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.
Fig. 4 is a kind of block diagram with terminal 400 according to an exemplary embodiment.For example, terminal 400 can be moved Mobile phone, computer, digital broadcast terminal, messaging devices, game console, tablet device, Medical Devices, body-building are set It is standby, personal digital assistant etc..
Reference picture 4, terminal 400 can include following one or more assemblies:Processing component 402, memory 404, power supply Component 406, multimedia groupware 408, audio-frequency assembly 410, the interface 412 of input/output (I/O), sensor cluster 414, and Communication component 416.
Processing component 402 generally controls the integrated operation of terminal 400, is such as communicated with display, call, data, phase The operation that machine operates and record operation is associated.Processing component 402 can refer to including one or more processors 420 to perform Order, to complete all or part of step of above-mentioned method.In addition, processing component 402 can include one or more modules, just Interaction between processing component 402 and other assemblies.For example, processing component 402 can include multi-media module, it is more to facilitate Interaction between media component 408 and processing component 402.
Memory 404 is configured as storing various types of data to support the operation in terminal 400.These data are shown Example includes the instruction of any application program or method for being operated in terminal 400, contact data, telephone book data, disappears Breath, picture, video etc..Memory 404 can be by any kind of volatibility or non-volatile memory device or their group Close and realize, as static RAM (SRAM), Electrically Erasable Read Only Memory (EEPROM) are erasable to compile Journey read-only storage (EPROM), programmable read only memory (PROM), read-only storage (ROM), magnetic memory, flash Device, disk or CD.
Power supply module 406 provides power supply for the various assemblies of terminal 400.Power supply module 406 can include power management system System, one or more power supplys, and other components associated with generating, managing and distributing power supply for terminal 400.
Multimedia groupware 408 is included in the screen of one output interface of offer between the terminal 400 and user.One In a little embodiments, screen can include liquid crystal display (LCD) and touch panel (TP).If screen includes touch panel, screen Curtain may be implemented as touch-screen, to receive the input signal from user.Touch panel includes one or more touch sensings Device is with the gesture on sensing touch, slip and touch panel.The touch sensor can not only sensing touch or sliding action Border, but also detect and touched or the related duration and pressure of slide with described.In certain embodiments, more matchmakers Body component 408 includes a front camera and/or rear camera.When terminal 400 is in operator scheme, such as screening-mode or During video mode, front camera and/or rear camera can receive outside multi-medium data.Each front camera and Rear camera can be a fixed optical lens system or have focusing and optical zoom capabilities.
Audio-frequency assembly 410 is configured as output and/or input audio signal.For example, audio-frequency assembly 410 includes a Mike Wind (MIC), when terminal 400 is in operator scheme, during such as call model, logging mode and speech recognition mode, microphone by with It is set to reception external audio signal.The audio signal received can be further stored in memory 404 or via communication set Part 416 is sent.In certain embodiments, audio-frequency assembly 410 also includes a loudspeaker, for exports audio signal.
I/O interfaces 412 provide interface between processing component 402 and peripheral interface module, and above-mentioned peripheral interface module can To be keyboard, click wheel, button etc..These buttons may include but be not limited to:Home button, volume button, start button and lock Determine button.
Sensor cluster 414 includes one or more sensors, and the state for providing various aspects for terminal 400 is commented Estimate.For example, sensor cluster 414 can detect opening/closed mode of terminal 400, and the relative positioning of component, for example, it is described Component is the display and keypad of terminal 400, and sensor cluster 414 can be with 400 1 components of detection terminal 400 or terminal Position change, the existence or non-existence that user contacts with terminal 400, the orientation of terminal 400 or acceleration/deceleration and terminal 400 Temperature change.Sensor cluster 414 can include proximity transducer, be configured to detect in no any physical contact The presence of neighbouring object.Sensor cluster 414 can also include optical sensor, such as CMOS or ccd image sensor, for into As being used in application.In certain embodiments, the sensor cluster 414 can also include acceleration transducer, gyro sensors Device, Magnetic Sensor, pressure sensor or temperature sensor.
Communication component 416 is configured to facilitate the communication of wired or wireless way between terminal 400 and other equipment.Terminal 400 can access the wireless network based on communication standard, such as WiFi, 2G or 3G, or combinations thereof.In an exemplary implementation In example, communication component 416 receives broadcast singal or broadcast related information from external broadcasting management system via broadcast channel. In one exemplary embodiment, the communication component 416 also includes near-field communication (NFC) module, to promote junction service.Example Such as, in NFC module radio frequency identification (RFID) technology can be based on, Infrared Data Association (IrDA) technology, ultra wide band (UWB) technology, Bluetooth (BT) technology and other technologies are realized.
In the exemplary embodiment, terminal 400 can be believed by one or more application specific integrated circuits (ASIC), numeral Number processor (DSP), digital signal processing appts (DSPD), PLD (PLD), field programmable gate array (FPGA), controller, microcontroller, microprocessor or other electronic components are realized, real shown in above-mentioned Fig. 1 or Fig. 2 for performing The method that example offer is provided.
In the above-described embodiments, can come wholly or partly by software, hardware, firmware or its any combination real It is existing.When implemented in software, can realize in the form of a computer program product whole or in part.The computer program Product includes one or more computer instructions.It is all or part of when loading on computers and performing the computer instruction Ground is produced according to the flow or function described in the embodiment of the present disclosure.The computer can be all-purpose computer, special-purpose computer, Computer network or other programmable devices.The computer instruction can store in a computer-readable storage medium, or Person is transmitted from a computer-readable recording medium to another computer-readable recording medium, for example, the computer instruction Can from a web-site, computer, server or data center by it is wired (such as:Coaxial cable, optical fiber, data are used Family line (Digital Subscriber Line, DSL)) or wireless (such as:Infrared, wireless, microwave etc.) mode is to another net Website, computer, server or data center are transmitted.The computer-readable recording medium can be that computer can Any usable medium of access is either comprising data storages such as the integrated server of one or more usable mediums, data centers Equipment.The usable medium can be magnetic medium (such as:Floppy disk, hard disk, tape), optical medium (such as:Digital versatile disc (Digital Versatile Disc, DVD)) or semiconductor medium (such as:Solid state hard disc (Solid State Disk, SSD)) etc..
Those skilled in the art will readily occur to the disclosure its after considering specification and putting into practice invention 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 (18)

1. a kind of terminal control method, it is characterised in that methods described includes:
After detecting that user enters sleep state, start the first sleep pattern and the second sleep pattern successively;
Wherein, first sleep pattern refers to the first mould for specifying the function of class application to be started in the application that limitation is installed Formula, second sleep pattern refer to the second of the limitation installation pattern that is started of function for specifying class application, described second The quantity of class application is specified to be more than the described first quantity for specifying class application;
When being detected in the state of first sleep pattern or second sleep pattern into bright screen state, institute is exited The first sleep pattern or second sleep pattern are stated, is started with recovering the function of the application of the installation.
2. the method as described in claim 1, it is characterised in that it is described after detecting that user enters sleep state, open successively Before dynamic first sleep pattern and the second sleep pattern, in addition to:
The User Status data that wearable device is sent are received, the User Status data are used for instruction user and enter sleep shape State.
3. the method as described in claim 1, it is characterised in that it is described after detecting that user enters sleep state, open successively Before dynamic first sleep pattern and the second sleep pattern, in addition to:
Detect the environmental data of present position, intensity of illumination, noise intensity and the shockproofness that the environmental data includes;
Illumination threshold value, the noise intensity are preset less than default noise threshold when the intensity of illumination is less than, and the vibrations are strong When degree is less than default vibrations threshold value, determine that the user enters sleep state.
4. the method as described in claim 1, it is characterised in that it is described after detecting that user enters sleep state, open successively Before dynamic first sleep pattern and the second sleep pattern, in addition to:
The grader that grader generating means are sent is received, the grader is the grader generating means with state sample collection As training data, determine whether target terminal is located at dormant grader according to being used for of obtaining of classification algorithm training, The state sample, which is concentrated, to be included in sample terminal and is in during sleep state n sleep state sample gathering and described Sample terminal is not at the m non-sleep state sample gathered during sleep state, and the n and m are whole more than 0 Number;
Obtain the state sample at the target terminal current time;
The state sample is inputted into the grader, to be used by the grader output state label, the state tag In the classification of indicative of said status sample;
When the classification of the state sample of state tag instruction is in sleep state, determine that the user enters to fall asleep Dormancy state.
5. the method as described in claim 1-4 is any, it is characterised in that it is described after detecting that user enters sleep state, Start the first sleep pattern and the second sleep pattern successively, including:
When detecting that the user enters hypophypnosis state, start first sleep pattern, the hypophypnosis state Refer to that sleep quality is less than predetermined quality threshold and the state being easily waken up;
When detecting that the user enters severe sleep state after starting first sleep pattern, start described second Sleep pattern, the severe sleep state refer to that sleep quality is more than the predetermined quality threshold and is not easy the state being waken up.
6. the method as described in claim 1-4 is any, it is characterised in that it is described after detecting that user enters sleep state, Start the first sleep pattern and the second sleep pattern successively, including:
When detecting that the user enters sleep state, start first sleep pattern;
Dormant time for falling asleep is entered according to the user, obtained in the corresponding relation between time for falling asleep and duration Take corresponding duration;
After first sleep pattern starts the duration, start second sleep pattern.
7. the method as described in claim 1-4 is any, it is characterised in that it is described after detecting that user enters sleep state, Start the first sleep pattern and the second sleep pattern successively, including:
When detecting that the user enters sleep state, start first sleep pattern;
After detecting that starting first sleep pattern specifies duration, start second sleep pattern.
8. method as claimed in claim 6, it is characterised in that described when entering dormant sleep according to the user Between, before obtaining corresponding duration in the corresponding relation between time for falling asleep and duration, in addition to:
Multiple time for falling asleep of the user and multiple sleep durations are obtained, the multiple sleep duration is the use Family keeps the duration of hypophypnosis state when multiple time for falling asleep enter sleep state;
Based on the multiple time for falling asleep and the multiple sleep duration, it is determined that in the multiple time for falling asleep it is any enter Sleep the time start first sleep pattern when described in the first sleep pattern duration;
The time for falling asleep and the duration are stored into the corresponding relation between the time for falling asleep and duration.
9. a kind of terminal control mechanism, it is characterised in that described device includes:
Starting module, for after detecting that user enters sleep state, starting the first sleep pattern and the second sleep mould successively Formula;
Wherein, first sleep pattern refers to the first mould for specifying the function of class application to be started in the application that limitation is installed Formula, second sleep pattern refer to the second of the limitation installation pattern that is started of function for specifying class application, described second The quantity of class application is specified to be more than the described first quantity for specifying class application;
Module is exited, is detected for working as in the state of first sleep pattern or second sleep pattern into bright screen During state, first sleep pattern or second sleep pattern are exited, to recover the progress of the function of the application of the installation Start.
10. device as claimed in claim 9, it is characterised in that described device also includes:
First receiving module, for receiving the User Status data of wearable device transmission, the User Status data are used to refer to Show that user enters sleep state.
11. device as claimed in claim 9, it is characterised in that described device also includes:
Detection module, for detecting the environmental data of present position, intensity of illumination that the environmental data includes, noise are strong Degree and shockproofness;
First determining module, for being less than default illumination threshold value when the intensity of illumination, the noise intensity is less than default noise Threshold value, and when the shockproofness is less than default vibrations threshold value, determine that the user enters sleep state.
12. device as claimed in claim 9, it is characterised in that described device also includes:
Second receiving module, for receiving the grader of grader generating means transmission, the grader is the grader life Into device using state sample collection as training data, according to classification algorithm training obtain be used for determine whether target terminal is located at Dormant grader, the state sample, which is concentrated, to be included in sample terminal and be in during sleep state that the n gathered is individual to sleep Dormancy state sample and the m non-sleep state sample gathered during the sample terminal is not at sleep state, the n It is the integer more than 0 with m;
Acquisition module, for obtaining the state sample at the target terminal current time;
Input module, for the state sample to be inputted into the grader, to pass through the grader output state label, institute State the classification that state tag is used for indicative of said status sample;
Second determining module, when the classification of the state sample for being indicated when the state tag is in sleep state, Determine that the user enters sleep state.
13. the device as described in claim 9-12 is any, it is characterised in that the starting module includes:
First starts submodule, for when detecting that the user enters hypophypnosis state, starting the first sleep mould Formula, the hypophypnosis state refer to that sleep quality is less than predetermined quality threshold and the state being easily waken up;
Second starts submodule, for detecting that the user sleeps into severe after first sleep pattern is being started During state, start second sleep pattern, the severe sleep state refers to that sleep quality is more than the predetermined quality threshold And it is not easy the state being waken up.
14. the device as described in claim 9-12 is any, it is characterised in that the starting module includes:
3rd starts submodule, for when detecting that the user enters sleep state, starting first sleep pattern;
First acquisition submodule, for entering dormant time for falling asleep according to the user, from time for falling asleep with it is lasting when Duration corresponding to being obtained in corresponding relation between length;
4th starts submodule, for after first sleep pattern starts the duration, starting second sleep Pattern.
15. the device as described in claim 9-12 is any, it is characterised in that the starting module includes:
5th starts submodule, for when detecting that the user enters sleep state, starting first sleep pattern;
6th starts submodule, for after detecting that starting first sleep pattern specifies duration, starting described second and sleeping Sleep mode.
16. method as claimed in claim 14, it is characterised in that the starting module also includes:
Second acquisition submodule, it is the multiple for the multiple time for falling asleep for obtaining the user and multiple sleep durations Sleep duration be the user when multiple time for falling asleep enter sleep state, holding hypophypnosis state duration;
Determination sub-module, for based on the multiple time for falling asleep and the multiple sleep duration, it is determined that the multiple The duration of first sleep pattern described in when any time for falling asleep starts first sleep pattern in time for falling asleep;
Sub-module stored, for by the time for falling asleep and the duration store to the time for falling asleep and duration it Between corresponding relation in.
17. a kind of terminal control mechanism, it is characterised in that described device includes:
Processor;
For storing the memory of processor-executable instruction;
Wherein, the processor is configured as the step of perform claim requires any one method described in 1-8.
18. a kind of computer-readable recording medium, instruction is stored with the computer-readable recording medium, it is characterised in that The step of instruction realizes any one method described in claim 1-8 when being executed by processor.
CN201710937818.XA 2017-09-30 2017-09-30 Terminal control method, device and computer-readable recording medium Pending CN107708191A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710937818.XA CN107708191A (en) 2017-09-30 2017-09-30 Terminal control method, device and computer-readable recording medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710937818.XA CN107708191A (en) 2017-09-30 2017-09-30 Terminal control method, device and computer-readable recording medium

Publications (1)

Publication Number Publication Date
CN107708191A true CN107708191A (en) 2018-02-16

Family

ID=61183509

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710937818.XA Pending CN107708191A (en) 2017-09-30 2017-09-30 Terminal control method, device and computer-readable recording medium

Country Status (1)

Country Link
CN (1) CN107708191A (en)

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108536099A (en) * 2018-02-26 2018-09-14 维沃移动通信有限公司 A kind of information processing method, device and mobile terminal
CN108965605A (en) * 2018-07-27 2018-12-07 南昌黑鲨科技有限公司 The control method and device of smart phone
CN109274830A (en) * 2018-10-08 2019-01-25 程桂平 The method and apparatus for being adjusted into the sleep state time
CN109511139A (en) * 2018-12-19 2019-03-22 Oppo广东移动通信有限公司 WIFI control method, device, mobile device, computer readable storage medium
CN110538381A (en) * 2018-05-29 2019-12-06 华为技术有限公司 illumination adjustment method and terminal
CN110572868A (en) * 2019-09-09 2019-12-13 紫光展锐(重庆)科技有限公司 Method and device for reducing power consumption of electronic device
CN110691372A (en) * 2019-09-16 2020-01-14 Oppo广东移动通信有限公司 Transmission rate control method, terminal and storage medium
CN110809091A (en) * 2019-11-11 2020-02-18 腾讯科技(深圳)有限公司 Mode switching method of intelligent terminal and related device
WO2020168451A1 (en) * 2019-02-18 2020-08-27 深圳市欢太科技有限公司 Sleep prediction method and apparatus, storage medium, and electronic device

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104660795A (en) * 2013-11-25 2015-05-27 联想(北京)有限公司 Information processing method and electronic equipment
CN104720746A (en) * 2013-12-20 2015-06-24 ***通信集团公司 Sleeping stage determination method and system
CN105404382A (en) * 2015-11-30 2016-03-16 小米科技有限责任公司 Power saving mode setting method and apparatus
CN106333680A (en) * 2016-09-21 2017-01-18 广州视源电子科技股份有限公司 Sleep state detection method and system based on multi-classifier fusion
CN106388780A (en) * 2016-09-21 2017-02-15 广州视源电子科技股份有限公司 Sleep state detection method and system based on fusion of two classifiers and detector
CN106502371A (en) * 2016-11-08 2017-03-15 珠海市魅族科技有限公司 A kind of electricity-saving control method and device

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104660795A (en) * 2013-11-25 2015-05-27 联想(北京)有限公司 Information processing method and electronic equipment
CN104720746A (en) * 2013-12-20 2015-06-24 ***通信集团公司 Sleeping stage determination method and system
CN105404382A (en) * 2015-11-30 2016-03-16 小米科技有限责任公司 Power saving mode setting method and apparatus
CN106333680A (en) * 2016-09-21 2017-01-18 广州视源电子科技股份有限公司 Sleep state detection method and system based on multi-classifier fusion
CN106388780A (en) * 2016-09-21 2017-02-15 广州视源电子科技股份有限公司 Sleep state detection method and system based on fusion of two classifiers and detector
CN106502371A (en) * 2016-11-08 2017-03-15 珠海市魅族科技有限公司 A kind of electricity-saving control method and device

Cited By (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108536099A (en) * 2018-02-26 2018-09-14 维沃移动通信有限公司 A kind of information processing method, device and mobile terminal
CN110538381A (en) * 2018-05-29 2019-12-06 华为技术有限公司 illumination adjustment method and terminal
US11857731B2 (en) 2018-05-29 2024-01-02 Huawei Technologies Co., Ltd. Light adjustment method and terminal
CN108965605A (en) * 2018-07-27 2018-12-07 南昌黑鲨科技有限公司 The control method and device of smart phone
CN109274830A (en) * 2018-10-08 2019-01-25 程桂平 The method and apparatus for being adjusted into the sleep state time
CN109511139A (en) * 2018-12-19 2019-03-22 Oppo广东移动通信有限公司 WIFI control method, device, mobile device, computer readable storage medium
CN109511139B (en) * 2018-12-19 2023-01-03 Oppo广东移动通信有限公司 WIFI control method and device, mobile device and computer-readable storage medium
WO2020168451A1 (en) * 2019-02-18 2020-08-27 深圳市欢太科技有限公司 Sleep prediction method and apparatus, storage medium, and electronic device
CN110572868A (en) * 2019-09-09 2019-12-13 紫光展锐(重庆)科技有限公司 Method and device for reducing power consumption of electronic device
CN110572868B (en) * 2019-09-09 2023-01-24 紫光展锐(重庆)科技有限公司 Method and device for reducing power consumption of electronic device
CN110691372A (en) * 2019-09-16 2020-01-14 Oppo广东移动通信有限公司 Transmission rate control method, terminal and storage medium
CN110809091A (en) * 2019-11-11 2020-02-18 腾讯科技(深圳)有限公司 Mode switching method of intelligent terminal and related device

Similar Documents

Publication Publication Date Title
CN107708191A (en) Terminal control method, device and computer-readable recording medium
WO2020211701A1 (en) Model training method, emotion recognition method, related apparatus and device
CN110868626B (en) Method and device for preloading content data
RU2628558C2 (en) Method and smart terminal handling device
CN104298547B (en) terminal setting method and device
US10755730B1 (en) System and method for beep detection and interpretation
CN111371938B (en) Fault detection method and electronic equipment
CN106537946A (en) Scoring beacon messages for mobile device wake-up
CN104832446A (en) Method and device for controlling fan
CN105306743A (en) Screen control method and device
EP3232323B1 (en) Method and apparatus for displaying status information of application
CN105862321B (en) parameter adjusting method and device
CN107453964A (en) Sleep environment management method and device
CN109920418A (en) Adjust the method and device of wakeup sensitivity
CN105404382A (en) Power saving mode setting method and apparatus
CN106534785A (en) Monitoring method and apparatuses
CN107343087A (en) Smart machine control method and device
CN108334651A (en) Collect method, apparatus and storage medium that user's end data realizes preset need
CN108108683A (en) Touch-control response method, mobile terminal and storage medium
CN107659717B (en) State detection method, device and storage medium
CN111262777A (en) Group message display method and electronic equipment
CN106897009A (en) Mobile device time display method and device
CN105390120B (en) bright screen control method and device
CN105611048A (en) Alarm clock prompt method and device, and mobile terminal
KR102163996B1 (en) Apparatus and Method for improving performance of non-contact type recognition function in a user device

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

Application publication date: 20180216

RJ01 Rejection of invention patent application after publication