CN109068003A - Sleep alarm clock setting method, device, mobile terminal and readable storage medium storing program for executing - Google Patents
Sleep alarm clock setting method, device, mobile terminal and readable storage medium storing program for executing Download PDFInfo
- Publication number
- CN109068003A CN109068003A CN201811128769.6A CN201811128769A CN109068003A CN 109068003 A CN109068003 A CN 109068003A CN 201811128769 A CN201811128769 A CN 201811128769A CN 109068003 A CN109068003 A CN 109068003A
- Authority
- CN
- China
- Prior art keywords
- alarm clock
- sleep
- time
- clock setting
- 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
Links
Classifications
-
- 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
- H04M1/72451—User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions according to schedules, e.g. using calendar 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
- H04M1/72463—User 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
Abstract
The invention discloses a kind of sleep alarm clock setting methods, comprising the following steps: when mobile terminal receives alarm clock setting instruction, obtains the alarm clock setting and instructs sleeping time section locating for corresponding user identifier and current time;According to the sleeping time section and user identifier, obtains user identifier and correspond to user in the planning sleep duration in sleeping time section;According to current time and planning sleep duration, the alarm clock ring time of the alarm clock setting instruction is set.The invention also discloses a kind of sleep alarm clock setting device, mobile terminal and computer readable storage mediums.The present invention is according to the current time and planning sleep duration obtained automatically, self-setting alarm clock ring time, user only needs a simple key operation or without operation, realize the setting for waking alarm clock, user is not fixed especially for the working time, it frees from troublesome operation and in calculating, enormously simplifies the setting procedure that mobile terminal wakes alarm clock.
Description
Technical field
The present invention relates to mobile terminal field of intelligent control technology more particularly to a kind of sleep alarm clock setting method, device,
Mobile terminal and computer readable storage medium.
Background technique
With the fast development of software systems, the application function of mobile terminal is also more and more, and mobile terminal is raw for user
It is living that many conveniences are provided, it is increasingly becoming a part indispensable in life.General mobile terminal all has alarm clock function,
It may remind the user that study, work or processing important affairs etc. by the way that alarm clock is arranged.
Currently, the sleep alarm clock function of mobile terminal, under normal circumstances, user are waken noisy for rest setting morning in night
Clock wakes alarm clock for midday rest setting lunch break.But since the rhythm of life of modern is fast, work item is more,
Especially for part working time freedom or working time unfixed user, wake after alarm clock is provided with, often by
In emergency event or temporal events arrangement, can not rest according to the period for waking alarm clock, user must not infrequently weigh
Alarm clock is waken in new setting, and user needs by troublesome operation and calculates next manually implemented alarm clock setting.
Summary of the invention
The main purpose of the present invention is to provide a kind of sleep alarm clock setting method, device, mobile terminal and computers can
Read storage medium, it is intended to which solving the working time is not fixed user and needs by troublesome operation and calculate and carry out the setting of manually implemented alarm clock
The technical issues of.
To achieve the above object, the present invention provides a kind of sleep alarm clock setting method, the sleep alarm clock setting method packet
It includes:
When mobile terminal receives alarm clock setting instruction, obtains the alarm clock setting and instruct corresponding user identifier and work as
Sleeping time section locating for the preceding moment;
According to the sleeping time section and user identifier, obtains user identifier and correspond to user in the rule in sleeping time section
Draw sleep duration;
According to current time and planning sleep duration, the alarm clock ring time of the alarm clock setting instruction is set.
Optionally, it is slept duration according to current time with the planning described, the noisy of alarm clock setting instruction is set
Include: after the step of clock ring time
It obtains the user identifier and corresponds to user's prolonged sleep between current time and alarm clock ring time and actually sleep
Dormancy duration;
It calculates planning sleep duration and the duration of practical sleep duration is poor;
If duration difference is positive number, when reaching the alarm clock ring time at time point, when the prompt of output jingle bell and benefit are slept
Long difference prompt.
Optionally, include: after the step of the duration difference for calculating planning sleep duration and practical duration of sleeping
If duration difference is negative or zero, when reaching the alarm clock ring time at time point, output jingle bell prompt.
Optionally, described to be slept duration according to current time with the planning, the alarm clock of alarm clock setting instruction is set
The step of ring time includes:
Judge whether the alarm clock setting instruction is to instruct for the first time in the pre-set alarm clock setting period;
If alarm clock setting instruction was instructed for the first time in the pre-set alarm clock setting period, by the alarm clock of alarm clock setting instruction
Ring time is set as the time point at the sum of current time and planning sleep duration;
If alarm clock setting instruction was instructed for the first time in the pre-set alarm clock setting period, each duration before obtaining current time
The summation of difference, if the summation of duration difference is negative, when setting current for the alarm clock ring time of alarm clock setting instruction
It carves, the time point of planning sleep duration and the sum of the absolute value of summation of each duration difference.
Optionally, the sleep alarm clock setting method includes:
When detection time point reaches new pre-set alarm clock, and the period is arranged, to what is generated in the upper pre-set alarm clock setting period
Duration difference is zeroed out.
Optionally, the sleep alarm clock setting method includes:
Before output jingle bell prompt, whether detection mobile terminal is in interruption-free mode;
If mobile terminal is in interruption-free mode, jingle bell prompt is not exported, and generate the noisy of non-audio in mobile terminal
Clock filtering prompt;
If mobile terminal is not at interruption-free mode, jingle bell prompt is exported.
Optionally, the sleep alarm clock setting method includes:
When detection time point reaches new pre-set alarm clock, and the period is arranged, the week of predetermined number pre-set alarm clock setting in the past is calculated
It actually sleeps in each sleeping time section of phase duration average value;
Using the average value in each sleeping time section of calculating as new pre-set alarm clock, period each sleeping time section is set
Planning sleep duration.
In addition, to achieve the above object, the present invention also provides a kind of sleep alarm clocks, and device, the sleep alarm clock setting is arranged
Device includes:
First obtains module, for obtaining the alarm clock setting instruction when mobile terminal receives alarm clock setting instruction
Sleeping time section locating for corresponding user identifier and current time;
Second obtains module, for obtaining user identifier and corresponding to user according to the sleeping time section and user identifier
Planning sleep duration in sleeping time section;
Alarm clock setting module, for the alarm clock setting instruction to be arranged according to current time and planning sleep duration
Alarm clock ring time.
In addition, to achieve the above object, the present invention also provides a kind of mobile terminals;The mobile terminal include: memory,
The sleep alarm clock setting program that processor and being stored in can be run on the memory and on the processor, in which: described
The step of sleep alarm clock setting program realizes sleep alarm clock setting method as described above when being executed by the processor.
In addition, to achieve the above object, the present invention also provides a kind of computer readable storage mediums;It is described computer-readable
Sleep alarm clock setting program is stored on storage medium, the sleep alarm clock setting program is realized when being executed by processor as above-mentioned
Sleep alarm clock setting method the step of.
In the present invention, mobile terminal only need to obtain automatically alarm clock setting instruction when detecting alarm clock setting instruction
The corresponding user identifier of initiator and the current time (current point in time record) for detecting alarm clock setting instruction, by current
Moment determines this moment locating sleeping time section, then finds planning corresponding to sleeping time section and user identifier combination
Sleep duration, and then no matter used according to the current time and planning sleep duration, self-setting alarm clock ring time that obtain automatically
When family, which carries out resting, only needs an artificial key to trigger and generates alarm clock setting instruction or mobile terminal set time
Or specific events trigger and automatically generate alarm clock setting instruction, user only need a simple key operation or without operation, realization
The setting of awake alarm clock, is not fixed user especially for the working time, frees, enormously simplifies from troublesome operation and in calculating
Mobile terminal wakes the setting procedure of alarm clock.
Detailed description of the invention
Fig. 1 is the hardware structural diagram of the embodiment of the present invention one optional mobile terminal;
Fig. 2 is the wireless communication device schematic diagram of mobile terminal in Fig. 1;
Fig. 3 is the flow diagram of present invention sleep alarm clock setting method first embodiment;
Fig. 4 is that jingle bell of the present invention prompts a schematic diagram of a scenario;
Fig. 5 is that jingle bell of the present invention prompts another schematic diagram of a scenario.
The embodiments will be further described with reference to the accompanying drawings for the realization, the function and the advantages of the object of the present invention.
Specific embodiment
It should be appreciated that the specific embodiments described herein are merely illustrative of the present invention, it is not intended to limit the present invention.
In subsequent description, it is only using the suffix for indicating such as " module ", " component " or " unit " of element
Be conducive to explanation of the invention, itself there is no a specific meaning.Therefore, " module ", " component " or " unit " can mix
Ground uses.
Terminal can be implemented in a variety of manners.For example, terminal described in the present invention may include such as mobile phone, plate
Computer, laptop, palm PC, personal digital assistant (Personal Digital Assistant, PDA), portable
Media player (Portable Media Player, PMP), navigation device, wearable device, Intelligent bracelet, pedometer etc. move
The fixed terminals such as dynamic terminal, and number TV, desktop computer.
It will be illustrated by taking mobile terminal as an example in subsequent descriptions, it will be appreciated by those skilled in the art that in addition to special
Except element for moving purpose, the construction of embodiment according to the present invention can also apply to the terminal of fixed type.
Referring to Fig. 1, a kind of hardware structural diagram of its mobile terminal of each embodiment to realize the present invention, the shifting
Dynamic terminal 100 may include: RF (Radio Frequency, radio frequency) unit 101, WiFi module 102, audio output unit
103, A/V (audio/video) input unit 104, sensor 105, display unit 106, user input unit 107, interface unit
108, the components such as memory 109, processor 110 and power supply 111.It will be understood by those skilled in the art that shown in Fig. 1
Mobile terminal structure does not constitute the restriction to mobile terminal, and mobile terminal may include components more more or fewer than diagram,
Perhaps certain components or different component layouts are combined.
It is specifically introduced below with reference to all parts of the Fig. 1 to mobile terminal:
Radio frequency unit 101 can be used for receiving and sending messages or communication process in, signal sends and receivees, specifically, by base station
Downlink information receive after, to processor 110 handle;In addition, the data of uplink are sent to base station.In general, radio frequency unit 101
Including but not limited to antenna, at least one amplifier, transceiver, coupler, low-noise amplifier, duplexer etc..In addition, penetrating
Frequency unit 101 can also be communicated with network and other equipment by wireless communication.Any communication can be used in above-mentioned wireless communication
Standard or agreement, including but not limited to GSM (Global System of Mobile communication, global system for mobile telecommunications
System), GPRS (General Packet Radio Service, general packet radio service), CDMA2000 (Code
Division Multiple Access 2000, CDMA 2000), WCDMA (Wideband Code Division
Multiple Access, wideband code division multiple access), TD-SCDMA (Time Division-Synchronous Code
Division Multiple Access, TD SDMA), FDD-LTE (Frequency Division
Duplexing-Long Term Evolution, frequency division duplex long term evolution) and TDD-LTE (Time Division
Duplexing-Long Term Evolution, time division duplex long term evolution) etc..
WiFi belongs to short range wireless transmission technology, and mobile terminal can help user to receive and dispatch electricity by WiFi module 102
Sub- mail, browsing webpage and access streaming video etc., it provides wireless broadband internet access for user.Although Fig. 1 shows
Go out WiFi module 102, but it is understood that, and it is not belonging to must be configured into for mobile terminal, it completely can be according to need
It to omit within the scope of not changing the essence of the invention.
Audio output unit 103 can be in call signal reception pattern, call mode, record mould in mobile terminal 100
When under the isotypes such as formula, speech recognition mode, broadcast reception mode, by radio frequency unit 101 or WiFi module 102 it is received or
The audio data stored in memory 109 is converted into audio signal and exports to be sound.Moreover, audio output unit 103
Audio output relevant to the specific function that mobile terminal 100 executes can also be provided (for example, call signal receives sound, disappears
Breath receives sound etc.).Audio output unit 103 may include loudspeaker, buzzer etc..
A/V input unit 104 is for receiving audio or video signal.A/V input unit 104 may include graphics processor
(Graphics Processing Unit, GPU) 1041 and microphone 1042, graphics processor 1041 is in video acquisition mode
Or the image data of the static images or video obtained in image capture mode by image capture apparatus (such as camera) carries out
Reason.Treated, and picture frame may be displayed on display unit 106.Through graphics processor 1041, treated that picture frame can be deposited
Storage is sent in memory 109 (or other storage mediums) or via radio frequency unit 101 or WiFi module 102.Mike
Wind 1042 can connect in telephone calling model, logging mode, speech recognition mode etc. operational mode via microphone 1042
Quiet down sound (audio data), and can be audio data by such acoustic processing.Audio that treated (voice) data can
To be converted to the format output that can be sent to mobile communication base station via radio frequency unit 101 in the case where telephone calling model.
Microphone 1042 can be implemented various types of noises elimination (or inhibition) algorithms and send and receive sound to eliminate (or inhibition)
The noise generated during frequency signal or interference.
Mobile terminal 100 further includes at least one sensor 105, such as optical sensor, motion sensor and other biographies
Sensor.Specifically, optical sensor includes ambient light sensor and proximity sensor, wherein ambient light sensor can be according to environment
The light and shade of light adjusts the brightness of display panel 1061, and proximity sensor can close when mobile terminal 100 is moved in one's ear
Display panel 1061 and/or backlight.As a kind of motion sensor, accelerometer sensor can detect in all directions (general
For three axis) size of acceleration, it can detect that size and the direction of gravity when static, can be used to identify the application of mobile phone posture
(such as horizontal/vertical screen switching, dependent game, magnetometer pose calibrating), Vibration identification correlation function (such as pedometer, percussion) etc.;
The fingerprint sensor that can also configure as mobile phone, pressure sensor, iris sensor, molecule sensor, gyroscope, barometer,
The other sensors such as hygrometer, thermometer, infrared sensor, details are not described herein.
Display unit 106 is for showing information input by user or being supplied to the information of user.Display unit 106 can wrap
Display panel 1061 is included, liquid crystal display (Liquid Crystal Display, LCD), Organic Light Emitting Diode can be used
Forms such as (Organic Light-Emitting Diode, OLED) configure display panel 1061.
User input unit 107 can be used for receiving the number or character information of input, and generate the use with mobile terminal
Family setting and the related key signals input of function control.Specifically, user input unit 107 may include touch panel 1071 with
And other input equipments 1072.Touch panel 1071, also referred to as touch screen collect the touch operation of user on it or nearby
(for example user uses any suitable objects or attachment such as finger, stylus on touch panel 1071 or in touch panel 1071
Neighbouring operation), and corresponding attachment device is driven according to preset formula.Touch panel 1071 may include touch detection
Two parts of device and touch controller.Wherein, the touch orientation of touch detecting apparatus detection user, and detect touch operation band
The signal come, transmits a signal to touch controller;Touch controller receives touch information from touch detecting apparatus, and by it
It is converted into contact coordinate, then gives processor 110, and order that processor 110 is sent can be received and executed.In addition, can
To realize touch panel 1071 using multiple types such as resistance-type, condenser type, infrared ray and surface acoustic waves.In addition to touch panel
1071, user input unit 107 can also include other input equipments 1072.Specifically, other input equipments 1072 can wrap
It includes but is not limited in physical keyboard, function key (such as volume control button, switch key etc.), trace ball, mouse, operating stick etc.
It is one or more, specifically herein without limitation.
Further, touch panel 1071 can cover display panel 1061, when touch panel 1071 detect on it or
After neighbouring touch operation, processor 110 is sent to determine the type of touch event, is followed by subsequent processing device 110 according to touch thing
The type of part provides corresponding visual output on display panel 1061.Although in Fig. 1, touch panel 1071 and display panel
1061 be the function that outputs and inputs of realizing mobile terminal as two independent components, but in certain embodiments, it can
The function that outputs and inputs of mobile terminal is realized so that touch panel 1071 and display panel 1061 is integrated, is not done herein specifically
It limits.
Interface unit 108 be used as at least one external device (ED) connect with mobile terminal 100 can by interface.For example,
External device (ED) may include wired or wireless headphone port, external power supply (or battery charger) port, wired or nothing
Line data port, memory card port, the port for connecting the device with identification module, audio input/output (I/O) end
Mouth, video i/o port, ear port etc..Interface unit 108 can be used for receiving the input from external device (ED) (for example, number
It is believed that breath, electric power etc.) and the input received is transferred to one or more elements in mobile terminal 100 or can be with
For transmitting data between mobile terminal 100 and external device (ED).
Memory 109 can be used for storing software program and various data, and memory 109 can be situated between for a kind of storage of computer
Matter, the memory 109 are stored with prompting message program of the present invention.Memory 109 can mainly include storing program area and storage number
According to area, wherein storing program area can application program needed for storage program area, at least one function (for example sound plays function
Energy, image player function etc.) etc.;Storage data area can store according to mobile phone use created data (such as audio data,
Phone directory etc.) etc..In addition, memory 109 may include high-speed random access memory, it can also include non-volatile memories
Device, for example, at least a disk memory, flush memory device or other volatile solid-state parts.
Processor 110 is the control centre of mobile terminal, utilizes each of various interfaces and the entire mobile terminal of connection
A part by running or execute the software program and/or module that are stored in memory 109, and calls and is stored in storage
Data in device 109 execute the various functions and processing data of mobile terminal, to carry out integral monitoring to mobile terminal.Such as
Processor 110 executes the prompting message program in memory 109, to realize the step of each embodiment of message prompt method of the present invention
Suddenly.
Processor 110 may include one or more processing units;Optionally, processor 110 can integrate application processor and
Modem processor, wherein the main processing operation system of application processor, user interface and application program etc., modulation /demodulation
Processor mainly handles wireless communication.It is understood that above-mentioned modem processor can not also be integrated into processor 110
In.
Mobile terminal 100 can also include the power supply 111 (such as battery) powered to all parts, optionally, power supply 111
Can be logically contiguous by power-supply management system and processor 110, to realize management charging by power-supply management system, put
The functions such as electricity and power managed.
Although Fig. 1 is not shown, mobile terminal 100 can also be including bluetooth module etc., and details are not described herein.
Embodiment to facilitate the understanding of the present invention, the communications network system that mobile terminal of the invention is based below into
Row description.
Referring to Fig. 2, Fig. 2 is a kind of communications network system architecture diagram provided in an embodiment of the present invention, the communication network system
System is the LTE system of universal mobile communications technology, which includes UE (User Equipment, the use of successively communication connection
Family equipment) (the land Evolved UMTS Terrestrial Radio Access Network, evolved UMTS 201, E-UTRAN
Ground wireless access network) 202, EPC (Evolved Packet Core, evolved packet-based core networks) 203 and operator IP operation
204。
Specifically, UE201 can be above-mentioned terminal 100, and details are not described herein again.
E-UTRAN202 includes eNodeB2021 and other eNodeB2022 etc..Wherein, eNodeB2021 can be by returning
Journey (backhaul) (such as X2 interface) is connect with other eNodeB2022, and eNodeB2021 is connected to EPC203,
ENodeB2021 can provide the access of UE201 to EPC203.
EPC203 may include MME (Mobility Management Entity, mobility management entity) 2031, HSS
(Home Subscriber Server, home subscriber server) 2032, other MME2033, SGW (Serving Gate Way,
Gateway) 2034, PGW (PDN Gate Way, grouped data network gateway) 2035 and PCRF (Policy and
Charging Rules Function, policy and rate functional entity) 2036 etc..Wherein, MME2031 be processing UE201 and
The control node of signaling, provides carrying and connection management between EPC203.HSS2032 is all to manage for providing some registers
Such as the function of home location register (not shown) etc, and preserves some related service features, data rates etc. and use
The dedicated information in family.All customer data can be sent by SGW2034, and PGW2035 can provide the IP of UE 201
Address distribution and other functions, PCRF2036 are strategy and the charging control strategic decision-making of business data flow and IP bearing resource
Point, it selects and provides available strategy and charging control decision with charge execution function unit (not shown) for strategy.
IP operation 204 may include internet, Intranet, IMS (IP Multimedia Subsystem, IP multimedia
System) or other IP operations etc..
Although above-mentioned be described by taking LTE system as an example, those skilled in the art should know the present invention is not only
Suitable for LTE system, be readily applicable to other wireless communication systems, such as GSM, CDMA2000, WCDMA, TD-SCDMA with
And the following new network system etc., herein without limitation.
Based on above-mentioned mobile terminal hardware configuration and communications network system, each embodiment of the method for the present invention is proposed.
The present invention provides a kind of sleep alarm clock setting method, which is mainly used in mobile terminal
On, sleep alarm clock setting method includes:
When mobile terminal receives alarm clock setting instruction, obtains the alarm clock setting and instruct corresponding user identifier and work as
Sleeping time section locating for the preceding moment;
According to the sleeping time section and user identifier, obtains user identifier and correspond to user in the rule in sleeping time section
Draw sleep duration;
According to current time and planning sleep duration, the alarm clock ring time of the alarm clock setting instruction is set.
Specifically, in present invention sleep alarm clock setting method first embodiment, referring to Fig. 3, method includes:
Step S10 obtains alarm clock setting and instructs corresponding user identifier when mobile terminal receives alarm clock setting instruction
With sleeping time section locating for current time.
In embodiment of the present invention, which can be applied in the terminal, such as mobile phone, plate
In computer, wearing electronic equipment etc. the mobile terminal with alarm clock function.
In the present embodiment, alarm clock setting instruction can be user's input, such as want that alarm clock is arranged to be touched with touch control operation in user
Occur into;Certain alarm clock setting instruction is also possible to mobile terminal self generation, such as daily fixed time (such as 7 points of every morning)
Or it is automatically generated in particular event (when such as detecting that user enters sleep state).Sleeping time section is mobile terminal or use
Family will mark the period for being used for sleeping from 24 hours one day, such as be used for the sleeping time section 13:00 to 14 of lunch break:
00, the sleeping time section 22:00 to 7:00 stopped for evening.
Corresponding user identifier, such as e-mail address or internet account can be arranged in user in the terminal,
Furthermore user identifier can be the register account number etc. of mobile terminal alarm-clock application, and the purpose of user identifier is mobile whole in order to distinguish
End subscriber is in different alarm clock demand scenes, such as user A, under the alarm clock demand scene of summer, user identifier 001, summer is whole
Somatic sleep duration demand is shorter, i.e., the planning sleep duration in each sleeping time section is shorter, such as sleeping time section is 22:00
To 24:00, this is night rest section, and corresponding planning is 7 hours a length of when sleeping;Meanwhile the alarm clock demand field of user A in winter
Under scape, user identifier 002, winter duration demand of integrally sleeping is longer, i.e., the planning sleep duration in each sleeping time section compared with
It is long, such as sleeping time section is 22:00 to 24:00, this is night rest section, is corresponded to 8.5 hours a length of when planning sleep.
When user carries out alarm clock setting in the terminal, mobile terminal prompts user that corresponding alarm clock is arranged and is used
Family mark carries out bindings, can infer whether user is in sleep state by detecting the state of mobile terminal, can be with
Understand, the place that mobile terminal device can be personal in user, for example user generally will smartwatch, Intelligent bracelet etc.
Wearable mobile terminal is worn at wrist, passes through sensing built-in in this intelligence wearable device under natural sleep state
The contact that device clings to the body detects with real-time or periodical (such as 30s) and obtains the dynamic turn of user's cardiac rate, respiratory rate, body
Equal users' sign data, analyzes the user's sign data got, judges whether user is in sleep state.Certainly,
Mobile terminal can also be used as the receiving end of user's sign data, as mobile terminal be smart phone when, it is user assembled other can
Wearable device, mobile terminal receive user's sign data of other wearable setting acquisitions, and mobile terminal can be based on received use
Family sign data judges whether user is in sleep state.Mobile terminal (or processor) is detecting user in sleep shape
State automatically generates alarm clock setting and instructs and obtain user into dormant current time, thus based on alarm clock setting instruction
It determines the user identifier for entering sleep state user, determines sleeping time section locating for current time.
Step S20 obtains user identifier and corresponds to user in sleeping time section according to sleeping time section and user identifier
Planning sleep duration.
It is noisy receiving after determining sleeping time section locating for user identifier and current time in the present embodiment
Start to carry out timing to the practical sleep duration of user when clock setting instruction, i.e., starts to count when determining that user enters sleep state
When, and then determine the sleeping time section where the current time for starting timing, user's mark is then inquired from default mapping table
The sleep duration of planning corresponding to sleeping time section where knowledge current time, for example, when sleeping time section includes lunch break
Between section 12:00 to 14:00 and evening stop time interval 22:00 to 24:00, user identifier include 001 and 002, preset mapping
Include following record in table:
[sleeping time section-lunch break section, user identifier -001, planning sleep duration -1h],
[sleeping time section-lunch break section, user identifier -002, planning sleep duration -1.5h],
[stopping time interval, user identifier -001, planning sleep duration -7h in sleeping time section-evening],
[stopping time interval, user identifier -002, planning sleep duration -8h in sleeping time section-evening].
So that section is to stop time interval evening between when he falls asleep, when user identifier is 002, after the default mapping table of inquiry
A length of 8h when planning sleep out.
Step S30, according to current time and planning sleep duration, the alarm clock ring time of instruction is arranged in setting alarm clock.
In the present embodiment, after alarm clock ring time is arranged, the alarm clock of mobile terminal will arrive under normal circumstances in the time
When up to the alarm clock ring time, control mobile terminal output alarm clock jingle bell prompt, alarm clock jingle bell prompt not only includes with sound
The form of bell reminds the alarm clock of user, can also include the alarm clock jingle bell prompt of the prompt such as audio form except vibration, jingle bell.?
It plus time point where planning sleep duration is alarm clock ring time on current time, such as currently in a kind of embodiment
Moment is 13:00, and planning a length of 1h when sleeping, then alarm clock ring time is 14:00.
According to user's planning set by different sleep intervals sleep duration, can be arranged not in different sleep intervals
Same jingle bell reminder time, certainly, after completing alarm clock ring time based on alarm clock setting instruction and being arranged, user is also tangible
Interface of mobile terminal carries out touch control operation and is corrected again with realizing to alarm clock ring time.The duration for example, user will take a nap after lunch
Current noon 12:00 to 14:00 is set, i.e. alarm clock ring time is 14:00, when the time reaching 14:00 in afternoon, mobile terminal
Pre-set alarm clock issues the prompt of alarm clock jingle bell, to remind user to get up on time, if pre-set alarm clock issues when ringing the prompt of alarm clock bell, and user
It does not get up on time, mobile terminal is in deep sleep to user by detection user's sign data acquisition, then mobile whole
By deep sleep data feedback to pre-set alarm clock, pre-set alarm clock receives the deep sleep number of mobile terminal transmission at end
According to when, after preset alarm clock ring time jingle bell finishes, continue the prompt of alarm clock jingle bell, until presetting after waking up user noisy
Clock is automatically closed;If user is in regular sleeping state, in pre-set alarm clock, user is direct when alarm clock ring time is reminded
It gets up, carries out other without user and close alarm clock operation, so that the final wake-up of the sleep state realization user by user, keeps away
It is late or miss important meeting when exempting from the user in deep sleep on weekdays, it improves alarm clock calling and gets up effect
Alarm clock is turned off manually without user in fruit, and user gets up and alarm clock is automatically closed, and improves the intelligent of alarm clock jingle bell, improves
User experience.
In the present embodiment, mobile terminal only need to obtain automatically alarm clock setting instruction when detecting alarm clock setting instruction
The corresponding user identifier of initiator and detect alarm clock setting instruction current time (current point in time record), by working as
The preceding moment determines this moment locating sleeping time section, then finds rule corresponding to sleeping time section and user identifier combination
Sleep duration is drawn, and then according to the current time obtained automatically and plans sleep duration, self-setting alarm clock ring time, no matter
When user carries out resting when only an artificial key being needed to trigger and generating alarm clock setting instruction or fixed mobile terminal
Between or specific events trigger and automatically generate alarm clock setting instruction, user only need a simple key operation or without operation, realize
The setting for waking alarm clock is not fixed user especially for the working time, frees, greatly simplifies from troublesome operation and in calculating
Mobile terminal wakes the setting procedure of alarm clock.
In addition, if alarm clock setting instruction be detect particular event (such as user enters sleep state) generate, just entirely without
User is needed to carry out any operation in terms of alarm clock setting, it is full-automatic that alarm clock ring time is set, avoid user from forgetting to be arranged
It wakes alarm clock and misses important affairs.
Further, on the basis of first embodiment of the invention, the of present invention sleep alarm clock setting method is proposed
Two embodiments are arranged after the step of alarm clock ring time of instruction is arranged in alarm clock according to current time and planning sleep duration
Include:
Step S40 obtains the reality that user identifier corresponds to user's prolonged sleep between current time and alarm clock ring time
Border sleep duration;
In the present embodiment, the practical sleep duration of prolonged sleep receives user for being reflected in current time mobile terminal
When instruction is arranged in the alarm clock of transmission, user enters sleep state to alarm clock ring time output jingle bell and mentions in planning sleep duration
Between waking up, sleep duration of the user in current sleep time interval, i.e., practical sleep duration are as follows: user identifier corresponds to user
After the sleeping time section locating for current time initially enters sleep, the practical duration rested.
Specifically, judging whether user is currently in after the alarm clock setting that mobile terminal receives user's triggering instructs and sleeping
Dormancy state.Delay sleep after mobile terminal detects user in setting alarm clock (i.e. triggering alarm clock setting instruction), for example brush micro-
It is rich, it sees TV or takes on the telephone, then the planning sleep duration according to corresponding to the sleeping time section that active user identifies pushes away
It calculates, if active user is identified as 001, midday rest section is 12:00 in afternoon to 14:00 in afternoon, and alarm clock ring time is afternoon
14:00, when sleep of corresponding planning, are 2 hours, current time 12:00 a length of, user after sending the setting instruction of noon alarm clock,
It is deferred to 13:30 in afternoon just to fall asleep, when reaching alarm clock ring time, alarm clock exports jingle bell and reminds, and sleeps according to user is practical
Duration calculation obtains a length of half an hour when the practical sleep of user.
Step S50, calculates planning sleep duration and the duration of practical sleep duration is poor;
In the present embodiment, is instructed based on the alarm clock setting that user sends and determine that user enters sleep state, it is poor to calculate duration
For reflecting the sleep quality of user, the sleep quality of user can be reflected by the sleep state of user, according to the use got
Family identifies corresponding user and sleeps in the planning sleep duration and practical sleep duration of sleep interval, such as user C in evening summer
Section is 22:00 to 24:00, and corresponding planning is 7 hours a length of when sleeping;User C sleeps not yet complete because working in sleep interval in evening
At, be deferred to morning 01:00 sleep, next day, 7:00 got up, then a length of 5 hours when actual sleep, so as to calculate duration
Poor formula is set as: X-Y=Z, and duration difference is Z, planning a length of X when sleeping, reality a length of Y, the sleep that will be planned when sleeping
Duration subtracts actual sleep duration, obtains planning sleep duration and the duration of practical sleep duration is poor.
Step S60, if duration difference is positive number, when reaching alarm clock ring time at time point, the prompt of output jingle bell and benefit
Sleep the prompt of duration difference.
In the present embodiment, planning sleep duration is calculated by above-mentioned formula and the duration of practical sleep duration is poor, and
Duration difference is analyzed, when the duration difference being calculated is positive number, shows that user has not enough sleep, alarm clock exports jingle bell and reminds simultaneously
Show that user requires supplementation with the benefit of sleep and sleeps promptings in interface of mobile terminal, as shown in figure 4, can also basis detect user's body
Long prompt when the progress jingle bell prompting of sign data and benefit are slept, benefit sleep prompting and only inform user's sleep insufficiency, mend long prompt informing when sleeping
User also need to mend sleep how long, and then improve the hommization and intelligence degree of alarm clock.
Further, after step S50 further include:
Step S70, if duration difference is negative or zero, when reaching alarm clock ring time at time point, output jingle bell prompt.
It sleeps when in user's fixed sleep interval in office, gets up on time on time, for example current time is afternoon nap sleep interval,
Noon 12:00 to 14:00 in afternoon, corresponding planning is 2 hours a length of when sleeping, and user enters sleep shape after alarm clock is arranged successfully
State, when alarm clock reaches ring time, output is reminded, and user gets up, and reality is 2 hours a length of when sleeping, and is substituted into above-mentioned formula and is calculated
Then duration difference is zero.Or the practical sleep duration of user is greater than planning sleep duration, shows that the sleep duration of user is greater than
Planning.Either duration difference is negative or is zero, show user sleep duration be all it is sufficient, time point reaches noisy at this time
When clock ring time, output jingle bell prompt, until alarm clock is turned off manually in user.
In the present embodiment, user's prolonged sleep between current time and alarm time is corresponded to by obtaining user identifier
Practical sleep duration, the duration according to planning sleep duration and practical sleep duration is poor, judge whether the sleep of user sufficient,
To respectively just only exported when user's sufficient sleeping jingle bell prompt and just user sleep insufficiency when and meanwhile export jingle bell prompt with
Long prompt when benefit is slept, user can carry out different in the output jingle bell prompt of mobile terminal pre-set alarm clock according to practical sleep duration
Selection intelligently provides sufficient sleeping time so that alarm clock prompting is more bonded the sleep need of user for user, is conducive to use
The physical and mental health and working condition at family.
3rd embodiment is proposed on the basis of the present invention sleeps alarm clock setting method second embodiment, in 3rd embodiment
In, step S30 includes:
Step S31 judges whether alarm clock setting instruction is to instruct for the first time in the pre-set alarm clock setting period;
Wherein, user can set day, such as 1 day, 3 days or 7 days for the chronomere that the period is arranged in pre-set alarm clock
Be set for a pre-set alarm clock, within the pre-set alarm clock setting period, alarm clock receives the alarm clock setting instruction of user, according to pass the period
Whether the alarm clock setting instruction that the pre-set alarm clock setting period is judged in the calculator of alarm clock setting instruction is to instruct for the first time, that is, is judged
Whether currently detected alarm clock setting instruction detect for the first time, judge within the pre-set alarm clock setting period whether is user
To trigger alarm clock setting instruction for the first time.
Step S32, if alarm clock setting instruction was instructed for the first time in the pre-set alarm clock setting period, by alarm clock setting instruction
Alarm clock ring time is set as the time point at the sum of current time and planning sleep duration;
If the alarm clock setting instruction of current detection was instructed for the first time in the pre-set alarm clock setting period, show to set in this alarm clock
User's triggering useless generated alarm clock setting instruction before setting instruction, that is, there is no practical sleep durations to be less than planning sleep
The possibility of duration, and then there is no that need to increase to mend the needs for sleeping duration because of user's sleep insufficiency, it is instructed so alarm clock is arranged
Alarm clock ring time be set as time point at current time and planning sleep the sum of duration, setting alarm clock ring time does not consider
Mend the factor for sleeping duration.
Step S33, if alarm clock setting instruction be not pre-set alarm clock setting the period in instruct for the first time, obtain current time it
The alarm clock ring time of alarm clock setting instruction is set as working as by the summation of preceding each duration difference if the summation of duration difference is negative
The time point at the sum of preceding moment, the absolute value of summation for planning sleep duration and each duration difference.
If the alarm clock setting instruction of current detection was referred to for the first time in the pre-set alarm clock setting period, show to set in this alarm clock
Set instruction before user it is triggered generated alarm clock setting instruction, it is understood that there may be user have not enough sleep the case where, and it is current when
The duration difference that the corresponding planning sleep duration of each alarm clock setting instruction and practical sleep duration are calculated before carving can be preferably anti-
Using the sleep state (sleep insufficiency or sufficient) at family, so that each alarm clock setting instructs corresponding duration before obtaining current time
Poor summation, when this is checked that the alarm clock ring time of alarm clock setting instruction is set as current time, plans sleep duration and is each
The time point of the sum of the summation of long difference.
Supplemented by assistant solve this embodiment, specific example explanation exemplified below: it is 1 day that pre-set alarm clock, which is arranged the period, this time
The alarm clock setting instruction detected detects instruction for evening not time interval for the second time, then current time today is previous
Alarm clock setting instruction is lunch break section, and the duration difference in lunch break section is -1, current time 23:00, plans duration
For 7h, then alarm clock ring time is next day 7:00.
It in the present embodiment, is a circulation with the pre-set alarm clock setting period, if the alarm clock setting instruction of detection is for the first time
Instruction, then be directly based upon current time and planning duration carries out the setting of this alarm clock ring time, if the alarm clock setting of detection refers to
Order is not to instruct for the first time, then the duration difference summation of alarm clock setting instruction before considering when this alarm clock ring time is arranged, thus
It is absolute with the summation of each duration difference that current time, planning sleep duration are set by the alarm clock ring time of alarm clock setting instruction
At the time point of the sum of value, alarm clock ring time is made more to be bonded the practical sleep need of user.
Further, the present invention sleep alarm clock setting method first to 3rd embodiment any one on the basis of, sleep
Dormancy alarm clock setting method includes:
The period is arranged to a upper pre-set alarm clock when detection time point reaches new pre-set alarm clock, and the period is arranged in step S81
The duration difference of interior generation is zeroed out;
After determining alarm clock ring time, mobile terminal detects that current point in time reaches new pre-set alarm clock and sets
When setting the period, if the pre-set alarm clock setting period is 1 day, new one day is reached at this time, and mobile terminal pops up prompting message, prompts to use
A upper pre-set alarm clock is arranged the duration difference that is arranged in the period and is zeroed out by family, and waits and detect new alarm clock setting instruct with
New alarm clock ring time is set, user is avoided to have not enough sleep time integral within the different pre-set alarm clocks setting period, avoid because
User extended sleep is insufficient and when being arranged growth process alarm clock ring time, to avoid the normal work and life for influencing user
It is living.Optionally, the pre-set alarm clock setting period is 24 hours, and mobile terminal was slept at interval of 24 hours to planning sleep duration and actually
The duration difference of dormancy duration is zeroed out.
Further, in present invention sleep another embodiment of alarm clock setting method, this method further include:
It is default noisy to calculate predetermined number in the past when detection time point reaches new pre-set alarm clock, and the period is arranged by step S82
Duration average value of actually sleeping is arranged in each sleeping time section in period in clock;
The time point of real-time detection mobile terminal records, and mobile terminal detects that current point in time reaches new pre-set alarm clock
When the period is arranged, each sleeping time interval computation for calculating the predetermined number pre-set alarm clock setting period in the past goes out practical sleep duration
Summation calculates each sleep that the period is arranged in predetermined number pre-set alarm clock before reaching at the time of the period is arranged in new pre-set alarm clock
Time interval calculates practical sleep duration summation, and then calculates the average value of practical sleep duration summation.For example, default noisy
The clock setting period is 1 day, and sleeping time section includes stopping sleeping time section in lunch break sleeping time section and evening, and predetermined number is
3, the pre-set alarm clock setting period is 24 hours, and when entering new one, lunch break sleeping time section in 3 days is pass by acquisition at this time
When corresponding planning sleep duration 1h, 1.5h, 0.5h, acquisition pass by evening in 3 days at this time and stop the corresponding planning in sleeping time section and sleep
Long 7h, 8h, 9h, then the planning sleep duration average value in lunch break sleeping time section is 1h, and evening stops the planning in sleeping time section
Sleep duration average value is 8h.
Step S83 respectively sleeps the average value in each sleeping time section of calculating as the new pre-set alarm clock setting period
The planning sleep duration of time interval;
The average value in each sleeping time section is more bonded user and the period is arranged in the pre-set alarm clock of past predetermined number
Sleep need, the i.e. practical sleep duration average value of proximal segment time closer to user's proximal segment time practical sleep need, thus
Practical sleep duration average value is more bonded the practical sleep of user as the planning sleep duration in new pre-set alarm clock setting period
Demand, more can reflect the practical busy extent of user, and then under the premise of realizing that automatically or semi-automatically alarm clock is arranged, and allow rule
It is more acurrate to draw sleep duration.
In addition, in the present invention sleep another embodiment of alarm clock setting method, this method comprises:
Step S91, before output jingle bell prompt, whether detection mobile terminal is in interruption-free mode;
Step S92 does not export jingle bell prompt, and non-in mobile terminal generation if mobile terminal is in interruption-free mode
The alarm clock of audio filters prompt;
With reference to Fig. 5, mobile terminal is under interruption-free mode, and jingle bell, the audio output etc. of mobile terminal triggering adjust
For non-outer sound, the mode that does not influence other people.Long prompt when interruption-free mode and benefit are slept is shown on mobile terminal, user's operation is exempted from
Mode is bothered, then directly interruption-free mode is configured, the mode as prompted in cancelling interruption-free, change interruption-free output.One
As for, mobile terminal user festivals or holidays be interruption-free mode.If user will move eventually in festivals or holidays or before sleep
End equipment is set as interruption-free mode, when pre-set alarm clock reaches the planning sleep duration in sleeping time section, pre-set alarm clock
Jingle bell prompting is not exported, and user can send the alarm clock filtering setting operational order of non-audio by touching mobile terminal, then preset
When alarm clock reaches jingle bell prompting, jingle bell mode is the alarm clock filtering prompt that non-audio flashes the non-audios such as picture.
Step S93 exports jingle bell prompt if mobile terminal is not at interruption-free mode;
(interruption-free mode is not at) when mobile terminal is in normal mode, and the alerting pattern of pre-set alarm clock default is
Jingle bell is reminded, and pre-set alarm clock carries out jingle bell prompting or prompt, optionally, user can also be when reaching planning sleep duration
Specific the tinkle of bells, such as the song that user misses potter is arranged in the sleep alarm clock, when pre-set alarm clock reaches planning sleep duration,
Sleep alarm clock plays the specific the tinkle of bells, so as to user can be allowed to hear the song liked while reminding user to get up.When
User wishes that the sleep alarm clock when reminding user, does not influence other people, then user, which can touch mobile terminal, sends setting behaviour
It instructs to be set as interruption-free mode, the alerting pattern for alarm clock of sleeping is set as shaking, so that when pre-set alarm clock arrives
When sleeping duration up to planning, mobile terminal reminds user by shaking, without influencing other people.
In the present embodiment, the setting operational order sent by receiving user is completed according to operation instruction information to alarm clock
The setting of ring time point, and when mobile terminal detects that time point reaches the new period, by upper period pre-set alarm clock
The data that period generation is arranged are zeroed out, moreover it is possible to calculate each sleeping time area in predetermined number pre-set alarm clock setting period in the past
Between middle planning sleep duration average value, using the average value being calculated as new pre-set alarm clock, period each sleeping time area is set
Between planning sleep duration, thus reach planning sleep duration ring time when, detection alarm clock whether be in interruption-free mode, mention
High agility of the user in setting sleep alarm clock, enhances the experience sense of user, also avoids prompting to other people jingle bell
It impacts.
In addition, the embodiment of the present invention also proposes that control device is arranged in a kind of sleep alarm clock setting control device, sleep alarm clock
Include:
First obtains module, for obtaining alarm clock setting instruction and corresponding to when mobile terminal receives alarm clock setting instruction
User identifier and current time locating for sleeping time section;
Second obtains module, for according to sleeping time section and user identifier, acquisition user identifier to correspond to user and sleeping
The planning sleep duration of dormancy time interval;
Alarm clock setting module, for according to current time and planning sleep duration, the alarm clock that instruction is arranged in setting alarm clock to be rung
The bell time.
The present invention also provides a kind of mobile terminal, the mobile terminal includes: memory, processor and is stored in described deposit
On reservoir and the sleep alarm clock setting control program that can run on the processor, it is described that program is arranged in the sleep alarm clock
It realizes when processor executes such as the step of above-mentioned sleep alarm clock setting method.
The present invention also provides a kind of computer readable storage medium, computer-readable recording medium storage have one or
More than one program, one or more than one program can also be executed by one or more than one processor with for realizing
The step of each embodiment of above-mentioned sleep alarm clock setting method.
Computer readable storage medium specific embodiment of the present invention and each embodiment base of above-mentioned sleep alarm clock setting method
This is identical, and details are not described herein.
It should be noted that, in this document, the terms "include", "comprise" or its any other variant are intended to non-row
His property includes, so that the process, method, article or the system that include a series of elements not only include those elements, and
And further include other elements that are not explicitly listed, or further include for this process, method, article or system institute it is intrinsic
Element.In the absence of more restrictions, the element limited by sentence "including a ...", it is not excluded that including being somebody's turn to do
There is also other identical elements in the process, method of element, article or system.
The serial number of the above embodiments of the invention is only for description, does not represent the advantages or disadvantages of the embodiments.
Through the above description of the embodiments, those skilled in the art can be understood that above-described embodiment side
Method can be realized by means of software and necessary general hardware platform, naturally it is also possible to by hardware, but in many cases
The former is more preferably embodiment.Based on this understanding, technical solution of the present invention substantially in other words does the prior art
The part contributed out can be embodied in the form of software products, which is stored in one as described above
In storage medium (such as ROM/RAM, magnetic disk, CD), including some instructions are used so that terminal device (it can be mobile phone,
Computer, server, air conditioner or network equipment etc.) execute method described in each embodiment of the present invention.
The above is only a preferred embodiment of the present invention, is not intended to limit the scope of the invention, all to utilize this hair
Equivalent structure or equivalent flow shift made by bright specification and accompanying drawing content is applied directly or indirectly in other relevant skills
Art field, is included within the scope of the present invention.
Claims (10)
1. a kind of sleep alarm clock setting method, which is characterized in that the sleep alarm clock setting method includes:
When mobile terminal receives alarm clock setting instruction, obtain alarm clock setting instruct corresponding user identifier and it is current when
Carve locating sleeping time section;
According to the sleeping time section and user identifier, acquisition user identifier corresponds to planning of the user in sleeping time section and sleeps
Dormancy duration;
According to current time and planning sleep duration, the alarm clock ring time of the alarm clock setting instruction is set.
2. sleep alarm clock setting method as described in claim 1, which is characterized in that described according to current time and the rule
Include: after the step of drawing sleep duration, the alarm clock ring time of the alarm clock setting instruction is set
It obtains the user identifier and corresponds to user between current time and alarm clock ring time when the practical sleep of prolonged sleep
It is long;
It calculates planning sleep duration and the duration of practical sleep duration is poor;
If duration difference is positive number, when reaching the alarm clock ring time at time point, to sleep duration poor for the prompt of output jingle bell and benefit
Prompt.
3. sleep alarm clock setting method as claimed in claim 2, which is characterized in that the calculating planning sleep duration and reality
Include: after the step of the duration difference for duration of sleeping
If duration difference is negative or zero, when reaching the alarm clock ring time at time point, output jingle bell prompt.
4. sleep alarm clock setting method as claimed in claim 3, which is characterized in that described according to current time and the planning
Sleep duration, the step of alarm clock ring time of instruction is arranged in the alarm clock, which is arranged, includes:
Judge whether the alarm clock setting instruction is to instruct for the first time in the pre-set alarm clock setting period;
If alarm clock setting instruction was instructed for the first time in the pre-set alarm clock setting period, by the alarm clock jingle bell of alarm clock setting instruction
Time is set as the time point at the sum of current time and planning sleep duration;
If alarm clock setting instruction was instructed for the first time in the pre-set alarm clock setting period, each duration difference before obtaining current time
Summation sets current time, rule for the alarm clock ring time of alarm clock setting instruction if the summation of duration difference is negative
Draw the time point of the sum of absolute value of summation of sleep duration and each duration difference.
5. sleep alarm clock setting method as claimed in claim 2, which is characterized in that the sleep alarm clock setting method includes:
When detection time point reaches new pre-set alarm clock, and the period is arranged, to the duration generated in the upper pre-set alarm clock setting period
Difference is zeroed out.
6. sleep alarm clock setting method as claimed in claim 2 or claim 3, which is characterized in that the sleep alarm clock setting method packet
It includes:
Before output jingle bell prompt, whether detection mobile terminal is in interruption-free mode;
If mobile terminal is in interruption-free mode, jingle bell prompt is not exported, and generate the alarm clock mistake of non-audio in mobile terminal
Filter prompt;
If mobile terminal is not at interruption-free mode, jingle bell prompt is exported.
7. sleep alarm clock setting method as claimed in claim 2, which is characterized in that the sleep alarm clock setting method includes:
When detection time point reaches new pre-set alarm clock, and the period is arranged, calculates predetermined number pre-set alarm clock in the past and the period is set
It actually sleeps in each sleeping time section duration average value;
Using the average value in each sleeping time section of calculating as the rule in new pre-set alarm clock setting period each sleeping time section
Draw sleep duration.
8. device is arranged in a kind of sleep alarm clock, which is characterized in that the sleep alarm clock is arranged device and includes:
First obtains module, for obtaining the alarm clock setting instruction and corresponding to when mobile terminal receives alarm clock setting instruction
User identifier and current time locating for sleeping time section;
Second obtains module, for according to the sleeping time section and user identifier, acquisition user identifier to correspond to user and sleeping
The planning sleep duration of dormancy time interval;
Alarm clock setting module, for the noisy of the alarm clock setting instruction to be arranged according to current time and planning sleep duration
Clock ring time.
9. a kind of mobile terminal, which is characterized in that the mobile terminal includes: memory, processor and is stored in the storage
On device and program is arranged by the place in the sleep alarm clock setting control program that can run on the processor, the sleep alarm clock
Manage the step of realizing the sleep alarm clock setting method as described in any one of claims 1 to 7 when device executes.
10. a kind of computer readable storage medium, which is characterized in that it is noisy to be stored with sleep on the computer readable storage medium
Program is arranged in clock, and the sleep alarm clock setting program is realized as described in any one of claims 1 to 7 when being executed by processor
The step of sleep alarm clock setting method.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811128769.6A CN109068003A (en) | 2018-09-25 | 2018-09-25 | Sleep alarm clock setting method, device, mobile terminal and readable storage medium storing program for executing |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811128769.6A CN109068003A (en) | 2018-09-25 | 2018-09-25 | Sleep alarm clock setting method, device, mobile terminal and readable storage medium storing program for executing |
Publications (1)
Publication Number | Publication Date |
---|---|
CN109068003A true CN109068003A (en) | 2018-12-21 |
Family
ID=64766259
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201811128769.6A Pending CN109068003A (en) | 2018-09-25 | 2018-09-25 | Sleep alarm clock setting method, device, mobile terminal and readable storage medium storing program for executing |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN109068003A (en) |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111657855A (en) * | 2019-03-05 | 2020-09-15 | 广东乐心医疗电子股份有限公司 | Sleep evaluation and sleep awakening method and device and electronic equipment |
CN111694258A (en) * | 2020-06-11 | 2020-09-22 | 湖北美和易思教育科技有限公司 | Internet of things wall clock |
CN114661216A (en) * | 2022-02-16 | 2022-06-24 | 深圳市爱都科技有限公司 | Alarm clock setting method, electronic equipment and computer readable storage medium |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104580642A (en) * | 2014-12-30 | 2015-04-29 | 小米科技有限责任公司 | Clock reminding method and device |
CN105045622A (en) * | 2015-07-13 | 2015-11-11 | 小米科技有限责任公司 | Terminal alarming method and apparatus |
US20160203695A1 (en) * | 2015-01-13 | 2016-07-14 | Anhui Huami Information Technology Co., Ltd. | Method and apparatus for controlling alarms |
CN107566611A (en) * | 2017-08-07 | 2018-01-09 | 珠海市魅族科技有限公司 | A kind of alarm clock setting method, device, computer installation and computer-readable recording medium |
CN107613140A (en) * | 2017-10-19 | 2018-01-19 | 维沃移动通信有限公司 | Reminding method, mobile terminal and the computer-readable recording medium that alarm clock is set |
CN108174044A (en) * | 2018-03-15 | 2018-06-15 | 维沃移动通信有限公司 | A kind of alarm clock setting method and mobile terminal |
-
2018
- 2018-09-25 CN CN201811128769.6A patent/CN109068003A/en active Pending
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104580642A (en) * | 2014-12-30 | 2015-04-29 | 小米科技有限责任公司 | Clock reminding method and device |
US20160203695A1 (en) * | 2015-01-13 | 2016-07-14 | Anhui Huami Information Technology Co., Ltd. | Method and apparatus for controlling alarms |
CN105045622A (en) * | 2015-07-13 | 2015-11-11 | 小米科技有限责任公司 | Terminal alarming method and apparatus |
CN107566611A (en) * | 2017-08-07 | 2018-01-09 | 珠海市魅族科技有限公司 | A kind of alarm clock setting method, device, computer installation and computer-readable recording medium |
CN107613140A (en) * | 2017-10-19 | 2018-01-19 | 维沃移动通信有限公司 | Reminding method, mobile terminal and the computer-readable recording medium that alarm clock is set |
CN108174044A (en) * | 2018-03-15 | 2018-06-15 | 维沃移动通信有限公司 | A kind of alarm clock setting method and mobile terminal |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111657855A (en) * | 2019-03-05 | 2020-09-15 | 广东乐心医疗电子股份有限公司 | Sleep evaluation and sleep awakening method and device and electronic equipment |
CN111657855B (en) * | 2019-03-05 | 2023-08-25 | 广东乐心医疗电子股份有限公司 | Sleep evaluation and sleep awakening method and device and electronic equipment |
CN111694258A (en) * | 2020-06-11 | 2020-09-22 | 湖北美和易思教育科技有限公司 | Internet of things wall clock |
CN114661216A (en) * | 2022-02-16 | 2022-06-24 | 深圳市爱都科技有限公司 | Alarm clock setting method, electronic equipment and computer readable storage medium |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN107465803A (en) | A kind of intelligent prompt method, terminal, wearable device and system | |
CN109039862A (en) | Message prompt method, terminal and computer readable storage medium | |
CN109561219A (en) | Music adjusting method, device, mobile terminal and readable storage medium storing program for executing | |
CN109167879A (en) | Based reminding method, mobile terminal and storage medium based on artificial intelligence | |
CN109582821A (en) | A kind of music object recommendation method, terminal and computer readable storage medium | |
CN109246291B (en) | Mobile terminal and sleep reminding method and device | |
CN109938720A (en) | Based reminding method, wearable device and computer readable storage medium based on heart rate | |
CN108924364A (en) | Message prompt method, mobile terminal and computer readable storage medium | |
CN109361822A (en) | Incoming call reminding method, mobile terminal and computer readable storage medium | |
CN109068003A (en) | Sleep alarm clock setting method, device, mobile terminal and readable storage medium storing program for executing | |
CN110012157A (en) | A kind of application display alarm method, terminal and computer readable storage medium | |
CN109009141A (en) | Sleep-Monitoring method, wearable device and computer readable storage medium | |
CN107295183A (en) | A kind of alarm clock prompting method, device, storage medium and terminal | |
CN106664336A (en) | Method and terminal for processing communication event | |
CN109660654A (en) | A kind of eyeshield based reminding method, flexible screen terminal and computer readable storage medium | |
CN109947484A (en) | A kind of control method, terminal and computer readable storage medium waking up lock | |
CN109782851A (en) | Operating mode adjusting method, wearable device and computer readable storage medium | |
CN108733292A (en) | Application model control method, wearable device and computer readable storage medium | |
CN108769384A (en) | Call processing method, terminal and computer readable storage medium | |
CN108227842A (en) | Wearable pattern switching based reminding method, mobile terminal and readable storage medium storing program for executing | |
CN107066327A (en) | Timed task processing method, mobile terminal and computer-readable recording medium | |
CN108803999B (en) | Terminal control method, terminal, and computer-readable storage medium | |
CN109379503A (en) | A kind of income prompting method and mobile terminal | |
CN107290951B (en) | Alarm clock setting method and related product | |
CN110167113A (en) | A kind of apparatus control method, wearable device and computer readable storage medium |
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: 20181221 |