CN108989556A - Alarm clock control method and device - Google Patents

Alarm clock control method and device Download PDF

Info

Publication number
CN108989556A
CN108989556A CN201810752968.8A CN201810752968A CN108989556A CN 108989556 A CN108989556 A CN 108989556A CN 201810752968 A CN201810752968 A CN 201810752968A CN 108989556 A CN108989556 A CN 108989556A
Authority
CN
China
Prior art keywords
alarm clock
triggered
sleep quality
triggering moment
moment
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
CN201810752968.8A
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 Intelligent Technology Co Ltd
Original Assignee
Beijing Xiaomi Intelligent Technology 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 Intelligent Technology Co Ltd filed Critical Beijing Xiaomi Intelligent Technology Co Ltd
Priority to CN201810752968.8A priority Critical patent/CN108989556A/en
Publication of CN108989556A publication Critical patent/CN108989556A/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/72451User 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
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04BTRANSMISSION
    • H04B1/00Details of transmission systems, not covered by a single one of groups H04B3/00 - H04B13/00; Details of transmission systems not characterised by the medium used for transmission
    • H04B1/38Transceivers, i.e. devices in which transmitter and receiver form a structural unit and in which at least one part is used for functions of transmitting and receiving
    • H04B1/3827Portable transceivers
    • H04B1/385Transceivers carried on the body, e.g. in helmets
    • 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/72454User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions according to context-related or environment-related conditions

Abstract

The disclosure is directed to alarm clock control method and devices, this method comprises: obtaining the nearest alarm clock to be triggered for waking of triggering moment;If the alarm clock to be triggered is first kind alarm clock, the alarm clock to be triggered is closed, the first sleep quality of user is lower than default sleep quality before the triggering moment of the first kind alarm clock;If the alarm clock to be triggered is Second Type alarm clock, when reaching the triggering moment of the alarm clock to be triggered, the alarm clock to be triggered is triggered, the second sleep quality of user is not less than the default sleep quality before the triggering moment of the Second Type alarm clock.The technical solution can guarantee the sleep of user, and user is avoided to have not enough sleep.

Description

Alarm clock control method and device
Technical field
This disclosure relates to field of terminal technology more particularly to alarm clock control method and device.
Background technique
The effect of alarm clock is to remind people by ring tone, sleep can be arranged in usual user when the time of setting arrives When wake alarm clock, people are waken by ring tone, still, sometimes user can have a sleepless night not sleep well at night, but early set the alarm clock Still equally sounding makes user get up, at this point, user gets up, meeting is highly difficult, and having got up also can be very tired.
Summary of the invention
The embodiment of the present disclosure provides alarm clock control method and device.The technical solution is as follows:
According to the first aspect of the embodiments of the present disclosure, a kind of alarm clock control method is provided, comprising:
Obtain the nearest alarm clock to be triggered for waking of triggering moment;
If the alarm clock to be triggered is first kind alarm clock, the alarm clock to be triggered is closed, it is noisy in the first kind The first sleep quality of user is lower than default sleep quality before the triggering moment of clock;
If the alarm clock to be triggered is Second Type alarm clock, when reaching the triggering moment of the alarm clock to be triggered, touching Send out alarm clock to be triggered described, the second sleep quality of user is not less than described before the triggering moment of the Second Type alarm clock Default sleep quality.
In one embodiment, the method also includes:
Obtain the triggering moment of the alarm clock to be triggered;
Obtain the third sleep quality of user before the triggering moment of the alarm clock to be triggered;
If the third sleep quality is lower than the default sleep quality, the alarm clock to be triggered is determined as described the One type alarm clock;
If the third sleep quality is not less than the default sleep quality, the alarm clock to be triggered is determined as described Second Type alarm clock.
In one embodiment, the method also includes:
The moment is waken in acquisition the latest;
If waking before the moment that there is no the Second Type alarm clocks the latest described, target alarm clock, the target are set The triggering moment of alarm clock wakes the moment described in being the latest;
When reaching the triggering moment of the target alarm clock, the target alarm clock is triggered.
In one embodiment, the method also includes:
The timing since the triggering moment of current alarm clock to be triggered, is determined as next to be triggered at the time of timing is terminated The triggering moment of alarm clock, wherein timing duration is preset duration.
According to the second aspect of an embodiment of the present disclosure, a kind of alarm clock control device is provided, comprising:
First obtains module, for obtaining the nearest alarm clock to be triggered for waking of triggering moment;
Closedown module, for the alarm clock to be triggered being closed, in institute when the alarm clock to be triggered is first kind alarm clock The first sleep quality of user is lower than default sleep quality before stating the triggering moment of first kind alarm clock;
First trigger module, in the case where the alarm clock to be triggered is Second Type alarm clock, when reach it is described to When triggering the triggering moment of alarm clock, the alarm clock to be triggered, the user before the triggering moment of the Second Type alarm clock are triggered The second sleep quality be not less than the default sleep quality.
In one embodiment, described device further include:
Second obtains module, for obtaining the triggering moment of the alarm clock to be triggered;
Third obtains module, the third sleep quality of user before the triggering moment for obtaining the alarm clock to be triggered;
First determining module is used for when the third sleep quality is lower than the default sleep quality, by described wait touch Hair alarm clock is determined as the first kind alarm clock;When the third sleep quality is not less than the default sleep quality, by institute It states alarm clock to be triggered and is determined as the Second Type alarm clock.
In one embodiment, described device further include:
4th obtains module, wakes the moment the latest for obtaining;
Setup module, for being waken the latest described there is no when the Second Type alarm clock before the moment, setting target is noisy The triggering moment of clock, the target alarm clock wakes the moment to be described the latest;
Second trigger module, for triggering the target alarm clock when reaching the triggering moment of the target alarm clock.
In one embodiment, described device further include:
Second determining module, for the timing since the triggering moment of current alarm clock to be triggered, at the time of timing is terminated It is determined as the triggering moment of next alarm clock to be triggered, wherein timing duration is preset duration.
According to the third aspect of an embodiment of the present disclosure, a kind of alarm clock control device is provided, comprising:
Processor;
Memory for storage processor executable instruction;
Wherein, the processor is configured to:
Obtain the nearest alarm clock to be triggered for waking of triggering moment;
If the alarm clock to be triggered is first kind alarm clock, the alarm clock to be triggered is closed, it is noisy in the first kind The first sleep quality of user is lower than default sleep quality before the triggering moment of clock;
If the alarm clock to be triggered is Second Type alarm clock, when reaching the triggering moment of the alarm clock to be triggered, touching Send out alarm clock to be triggered described, the second sleep quality of user is not less than described before the triggering moment of the Second Type alarm clock Default sleep quality.
According to a fourth aspect of embodiments of the present disclosure, a kind of computer readable storage medium is provided, computer is stored with and refers to It enables, the step in the above method is realized when the computer instruction is executed by processor.
The technical scheme provided by this disclosed embodiment can include the following benefits: the available triggering of the present embodiment The alarm clock to be triggered for waking of moment recently;If the alarm clock to be triggered is first kind alarm clock, close described wait touch Alarm clock is sent out, the first sleep quality of user is lower than default sleep quality before the triggering moment of the first kind alarm clock;If The alarm clock to be triggered is Second Type alarm clock, then when reaching the triggering moment of the alarm clock to be triggered, triggering is described wait touch Alarm clock is sent out, the second sleep quality of user is not less than the default sleep matter before the triggering moment of the Second Type alarm clock Amount, so when sleep quality is not less than default sleep quality, that is, sleep quality it is good enough when just triggering alarm clock wake user, guarantor The sleep for demonstrate,proving user, avoids user from having not enough sleep.
It should be understood that above general description and following detailed description be only it is exemplary and explanatory, not The disclosure can be limited.
Detailed description of the invention
The drawings herein are incorporated into the specification and forms part of this specification, and shows the implementation for meeting the disclosure Example, and together with specification for explaining the principles of this disclosure.
Fig. 1 is a kind of flow chart of alarm clock control method shown according to an exemplary embodiment.
Fig. 2 is a kind of flow chart of alarm clock control method shown according to an exemplary embodiment.
Fig. 3 is a kind of flow chart of alarm clock control method shown according to an exemplary embodiment.
Fig. 4 is a kind of flow chart of alarm clock control method shown according to an exemplary embodiment.
Fig. 5 is a kind of block diagram of alarm clock control device shown according to an exemplary embodiment.
Fig. 6 is a kind of block diagram of alarm clock control device shown according to an exemplary embodiment.
Fig. 7 is a kind of block diagram of alarm clock control device shown according to an exemplary embodiment.
Fig. 8 is a kind of block diagram of alarm clock control device shown according to an exemplary embodiment.
Fig. 9 is a kind of block diagram of alarm clock control device shown according to an exemplary embodiment.
Specific embodiment
Example embodiments are described in detail here, and the example is illustrated in the accompanying drawings.Following description is related to When attached drawing, unless otherwise indicated, the same numbers in different drawings indicate the same or similar elements.Following exemplary embodiment Described in embodiment do not represent all implementations consistent with this disclosure.On the contrary, they be only with it is such as appended The example of the consistent device and method of some aspects be described in detail in claims, the disclosure.
Fig. 1 is a kind of flow chart of alarm clock control method shown according to an exemplary embodiment, as shown in Figure 1, this is noisy Clock control method is used to be able to detect in the equipment such as intelligent wearable device or the terminal of user's sleep, includes the following steps 101- 103:
In a step 101, the nearest alarm clock to be triggered for waking of triggering moment is obtained.
Here, the control method of the present embodiment can be realized that the control device can be set in intelligence by control device In wearable device such as Intelligent bracelet, or also it can be set in terminal such as mobile phone, plate.
Here, the alarm clock to be triggered for waking can be arranged in user at the terminal, and user can be set one, two Or multiple alarm clocks to be triggered, exemplary, for waking in the morning occurs after this is waken and sleeps at night for user, user can be with Be arranged the alarm clocks of such as 7 points of multiple alarm clocks to be triggered, the alarm clock of 7 thirty, 8 points of alarm clock, 8: 15 alarm clock and the alarm clock of 8 thirty Etc..
Here, if control device setting at the terminal, control device can directly acquire user setting at the terminal Each alarm clock to be triggered for waking;If control device is arranged in intelligent wearable device, terminal can by setting to Triggering alarm clock be sent to this terminal binding intelligent wearable device, in this way, the control device can obtain it is each to be triggered Alarm clock.
Here, after control device gets each alarm clock to be triggered, available triggering moment it is nearest for waking Alarm clock to be triggered, it is exemplary, it is assumed that alarm clock that multiple alarm clocks to be triggered are 7 points, the alarm clock of 7 thirty, 8 points of alarm clock, 8: 15 The alarm clock of alarm clock and 8 thirty, current time be 0 point, then the available triggering moment of control device it is nearest for wake to Trigger the alarm clock that alarm clock is at 7 points.
In a step 102, if alarm clock to be triggered is first kind alarm clock, alarm clock to be triggered is closed, it is noisy in the first kind The first sleep quality of user is lower than default sleep quality before the triggering moment of clock.
In step 103, if alarm clock to be triggered is Second Type alarm clock, when the triggering moment for reaching alarm clock to be triggered When, alarm clock to be triggered is triggered, the second sleep quality of user is slept not less than default before the triggering moment of Second Type alarm clock Dormancy quality.
Here, sleep quality can be the sleep duration or deep sleep duration of user, which can be with It is the minimum sleep quality of preset user.
Here, for the alarm clock in terminal there are two types of type, that is, first kind alarm clock and Second Type alarm clock, the first kind is noisy The first sleep quality of user is lower than the alarm clock of default sleep quality, the i.e. touching of first kind alarm clock before Zhong Weiqi triggering moment User's sleep quality is lower before sending out the moment, and user's sleep is inadequate;User before the Second Type alarm clock is its triggering moment Second sleep quality is not less than the alarm clock of default sleep quality, i.e. user's sleep quality before the triggering moment of Second Type alarm clock Higher, user's sleep is enough.
Here, if the alarm clock to be triggered is first kind alarm clock, show before the triggering moment of the alarm clock to be triggered The sleep quality of user is lower than default sleep quality, and user's sleep is inadequate, if the triggering moment triggering in the alarm clock to be triggered should Alarm clock wakes user, and user gets up can be highly difficult, and having got up also can be very tired, therefore, it is to be triggered to may turn off this for control device at this time Alarm clock avoids waking user up, and user is allowed to continue to sleep.
Here, if the alarm clock to be triggered is Second Type alarm clock, show before the triggering moment of the alarm clock to be triggered The sleep quality of user is not less than default sleep quality, and user's sleep enough, can get up and carry out Activities, at this point, control Device processed will trigger the alarm clock to be triggered, wake user.
The nearest alarm clock to be triggered for waking of the available triggering moment of the present embodiment;If alarm clock to be triggered is first Type alarm clock then closes alarm clock to be triggered, and the first sleep quality of user is lower than before the triggering moment of first kind alarm clock Default sleep quality;If alarm clock to be triggered is Second Type alarm clock, when reaching the triggering moment of alarm clock to be triggered, triggering to Alarm clock is triggered, the second sleep quality of user is not less than default sleep quality before the triggering moment of Second Type alarm clock, such as This when sleep quality is not less than default sleep quality, that is, sleep quality it is good enough when just triggering alarm clock wake user, guarantee user Sleep, avoid user from having not enough sleep.
In a kind of possible embodiment, Fig. 2 is a kind of alarm clock control method shown according to an exemplary embodiment Flow chart, as shown in Fig. 2, above-mentioned alarm clock control method can also include the following steps 104 to step 107.
At step 104, the triggering moment of alarm clock to be triggered is obtained.
In step 105, the third sleep quality of user before the triggering moment of alarm clock to be triggered is obtained.
In step 106, if third sleep quality is lower than default sleep quality, alarm clock to be triggered is determined as the first kind Type alarm clock.
In step 107, if third sleep quality is not less than default sleep quality, alarm clock to be triggered is determined as second Type alarm clock.
Here, after control device gets alarm clock to be triggered such as 7 points of alarm clock, the triggering of the available alarm clock to be triggered Moment i.e. 7 point.
Here, intelligent wearable device can detecte the sleep quality such as sleeping time or deep sleep time of user;If Control device is arranged in the terminal, then control device can be sent out in the triggering moment of alarm clock to be triggered to intelligent wearable device Request is sent, request intelligent wearable device returns to the third sleep quality of user before the triggering moment that it is detected, in this way, control The third sleep quality of user before the triggering moment that device can obtain alarm clock to be triggered;If control device is arranged in intelligence In wearable device, then the third sleep quality of user before the triggering moment that control device can directly acquire alarm clock to be triggered.
Here, if third sleep quality is lower than default sleep quality, alarm clock to be triggered is determined as first kind alarm clock, At this point, control device can close the alarm clock to be triggered, so just prevent in lower (the third sleep matter of the third sleep quality of user Amount is lower than default sleep quality), when user's sleep is inadequate, wake user;If third sleep quality is not less than default sleep quality, Alarm clock to be triggered is then determined as Second Type alarm clock, at this point, control device will be in the triggering moment for reaching alarm clock to be triggered When, trigger alarm clock to be triggered, it so can higher (third sleep quality be slept not less than default in the third sleep quality of user Dormancy quality), when user's sleep is enough, wakes user and get up and carry out Activities.
It is exemplary, still with the multiple alarm clocks to be triggered of user setting be 7 points alarm clock, the alarm clock of 7 thirty, 8 points of alarm clock, It is illustrated for 8: 15 alarm clock and the alarm clock of 8 thirty, it is assumed that user's sleep quality is the deep sleep time, presets sleep Quality be 3 hours the deep sleep time, it is 7 points that control device, which obtains the nearest alarm clock to be triggered for waking of triggering moment, Alarm clock, if control device get user between 7 points third sleep quality be 50 minutes two hours, this indicates that user The sleep quality in evening is bad, if 7 points of alarm clock in morning, which still equally sounds, wakes user up, user gets up can be highly difficult, gets up Also can be very tired, therefore control device determines that 7 points of the alarm clock is first kind alarm clock, closes 7 points of the alarm clock, avoids waking use up Family allows user to continue to sleep.After 7 points, it is 7 points that control device, which obtains the nearest alarm clock to be triggered for waking of triggering moment, Half alarm clock, if the third sleep quality that control device gets user between 7 points is ten minutes three hours, this indicates that user The sleep quality in evening is preferable, can get up and carry out Activities, at this point, control device just will start the alarm clock of 7 thirty, cries Wake up user.
Alarm clock to be triggered can be determined as the first kind when third sleep quality is lower than default sleep quality by the present embodiment Alarm clock to be triggered is determined as Second Type alarm clock when third sleep quality is not less than default sleep quality by type alarm clock, is determined Mode is accurate.
In a kind of possible embodiment, Fig. 3 is a kind of alarm clock control method shown according to an exemplary embodiment Flow chart, as shown in figure 3, above-mentioned alarm clock control method can also include the following steps 108 to step 110.
In step 108, it obtains and wakes the moment the latest.
In step 109, if Second Type alarm clock is not present before waking the moment the latest, target alarm clock, target are set The triggering moment of alarm clock is to wake the moment the latest.
In step 110, when reaching the triggering moment of target alarm clock, target alarm clock is triggered.
Here, in order to avoid user slept the time, delay normal activity or the work of user, user can be defeated in the terminal Enter to wake the deadline date that moment such as 8 thirty of morning get up as user the latest;In this way, before waking the moment the latest, there are second When type alarm clock, control device will carry out step 103 before waking the moment the latest, i.e., belong to Second Type alarm clock in arrival Alarm clock to be triggered triggering moment when, trigger alarm clock to be triggered, wake user;And second is not present before waking the moment the latest When type alarm clock, show before waking the moment the latest, there is no triggering alarm clocks to be waken for control device, at this point, in order to keep away Exempt from user and slept the time, delay normal activity or the work of user, a target alarm clock can be set in control device, the target alarm clock Triggering moment be wake the moment the latest;In this way, control device can trigger mesh when reaching the triggering moment of target alarm clock Alarm clock is marked, user is waken, user is avoided to sleep the time, delay normal activity or the work of user.
Target alarm clock can be arranged when Second Type alarm clock is not present before waking the moment the latest in the present embodiment, and target is noisy The triggering moment of clock is to wake the moment the latest;So target alarm clock can be triggered when reaching the triggering moment of target alarm clock User is waken, user is avoided to sleep the time, delays normal activity or the work of user.
In a kind of possible embodiment, Fig. 4 is a kind of alarm clock control method shown according to an exemplary embodiment Flow chart, as shown in figure 4, above-mentioned alarm clock control method can also include the following steps 111.
In step 111, the timing since the triggering moment of current alarm clock to be triggered, is determined as at the time of timing is terminated The triggering moment of next alarm clock to be triggered, wherein timing duration is preset duration.
Here, user can input two or more alarm clocks to be triggered into terminal, so triggering moment most After the close alarm clock to be triggered for waking is closed, control device can determine next triggering moment it is nearest for waking The alarm clock type of alarm clock to be triggered decide whether to wake user in next alarm clock to be triggered.Certainly, user can also be only An alarm clock to be triggered is inputted, control device can be after the triggering moment for getting current alarm clock to be triggered, from current at this time The triggering moment of alarm clock to be triggered starts timing, when being determined as the triggering of next alarm clock to be triggered at the time of timing is terminated It carves, wherein timing duration is preset duration.
It is exemplary, it is assumed that the triggering moment of current alarm clock to be triggered is 8 points of morning, and preset duration is 20 minutes, then controls It, can be default when amounting to since timing 8 points of morning after the triggering moment that device obtains current alarm clock to be triggered is 8 points of morning Time point, that is, morning 8: 20 at the end of duration 20 minutes is next each and every one alarm time point.
The present embodiment can the timing since the triggering moment of current alarm clock to be triggered, be determined as at the time of timing is terminated The triggering moment of next alarm clock to be triggered, wherein timing duration is preset duration, so obtains each alarm clock to be triggered, obtains Take mode simple and fast.
Following is embodiment of the present disclosure, can be used for executing embodiments of the present disclosure.
Fig. 5 is a kind of block diagram of alarm clock control device shown according to an exemplary embodiment, which can be by soft Part, hardware or both are implemented in combination with as some or all of of electronic equipment.As shown in figure 5, the alarm clock control device It include: the first acquisition module 501, closedown module 502 and the first trigger module 503;Wherein:
First obtains module 501, for obtaining the nearest alarm clock to be triggered for waking of triggering moment;
Closedown module 502, for alarm clock to be triggered being closed, in the first kind when alarm clock to be triggered is first kind alarm clock The first sleep quality of user is lower than default sleep quality before the triggering moment of type alarm clock;
First trigger module 503, for being made a noise when arrival is to be triggered in the case where alarm clock to be triggered is Second Type alarm clock When the triggering moment of clock, alarm clock to be triggered is triggered, the second sleep quality of user before the triggering moment of Second Type alarm clock Not less than default sleep quality.
As a kind of possible embodiment, Fig. 6 is a kind of alarm clock control device shown according to an exemplary embodiment Block diagram, as shown in fig. 6, alarm clock control device disclosed above can be configured to include that the second acquisition module 504, third obtains Modulus block 505 and the first determining module 506, in which:
Second obtains module 504, for obtaining the triggering moment of alarm clock to be triggered;
Third obtains module 505, the third sleep quality of user before the triggering moment for obtaining alarm clock to be triggered;
First determining module 506, for when third sleep quality is lower than default sleep quality, alarm clock to be triggered to be determined For first kind alarm clock;When third sleep quality is not less than default sleep quality, alarm clock to be triggered is determined as Second Type Alarm clock.
As a kind of possible embodiment, Fig. 7 is a kind of alarm clock control device shown according to an exemplary embodiment Block diagram, as shown in fig. 7, alarm clock control device disclosed above can be configured to include the 4th acquisition module 507, setting mould Block 508 and the second trigger module 509, in which:
4th obtains module 507, wakes the moment the latest for obtaining;
Setup module 508, for target alarm clock, mesh to be arranged when Second Type alarm clock is not present before waking the moment the latest The triggering moment of mark alarm clock is to wake the moment the latest;
Second trigger module 509, for triggering target alarm clock when reaching the triggering moment of target alarm clock.
As a kind of possible embodiment, Fig. 8 is a kind of alarm clock control device shown according to an exemplary embodiment Block diagram, as shown in figure 8, alarm clock control device disclosed above can be configured to include the second determining module 510, in which:
Second determining module 510, for the timing since the triggering moment of current alarm clock to be triggered, by timing terminate when Carve the triggering moment for being determined as next alarm clock to be triggered, wherein timing duration is preset duration.
About the device in above-described embodiment, wherein modules execute the concrete mode of operation in related this method Embodiment in be described in detail, no detailed explanation will be given here.
Fig. 9 is a kind of block diagram of alarm clock control device shown according to an exemplary embodiment, which is suitable for terminal Equipment.For example, device 900 can be mobile phone, game console, computer, tablet device, personal digital assistant etc..
Device 900 may include following one or more components: processing component 901, memory 902, power supply module 903, Multimedia component 904, audio component 905, input/output (I/O) interface 906, sensor module 907 and communication component 908。
The integrated operation of the usual control device 900 of processing component 901, such as with display, telephone call, data communication, phase Machine operation and record operate associated operation.Processing component 901 may include that one or more processors 920 refer to execute It enables, to perform all or part of the steps of the methods described above.In addition, processing component 901 may include one or more modules, just Interaction between processing component 901 and other assemblies.For example, processing component 901 may include multi-media module, it is more to facilitate Interaction between media component 904 and processing component 901.
Memory 902 is configured as storing various types of data to support the operation in device 900.These data are shown Example includes the instruction of any application or method for operating on device 900, contact data, and telephone book data disappears Breath, picture, video etc..Memory 902 can be by any kind of volatibility or non-volatile memory device or their group It closes and realizes, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM) is erasable to compile Journey read-only memory (EPROM), programmable read only memory (PROM), read-only memory (ROM), magnetic memory, flash Device, disk or CD.
Power supply module 903 provides electric power for the various assemblies of device 900.Power supply module 903 may include power management system System, one or more power supplys and other with for device 900 generate, manage, and distribute the associated component of electric power.
Multimedia component 904 includes the screen of one output interface of offer between device 900 and user.In some realities It applies in example, screen may include liquid crystal display (LCD) and touch panel (TP).If screen includes touch panel, screen can To be implemented as touch screen, to receive input signal from the user.Touch panel include one or more touch sensors with Sense the gesture on touch, slide, and touch panel.Touch sensor can not only sense the boundary of a touch or slide action, and And also detect duration and pressure relevant to touch or slide.In some embodiments, multimedia component 904 includes One front camera and/or rear camera.It is such as in a shooting mode or a video mode, preceding when device 900 is in operation mode It sets camera and/or rear camera can receive external multi-medium data.Each front camera and rear camera can Be a fixed optical lens system or have focusing and optical zoom capabilities.
Audio component 905 is configured as output and/or input audio signal.For example, audio component 905 includes a Mike Wind (MIC), when device 900 is in operation mode, when such as call mode, recording mode, and voice recognition mode, microphone is matched It is set to reception external audio signal.The received audio signal can be further stored in memory 902 or via communication set Part 908 is sent.In some embodiments, audio component 905 further includes a loudspeaker, is used for output audio signal.
The interface 906 of I/O provides interface, above-mentioned peripheral interface module between processing component 901 and peripheral interface module It can be keyboard, click wheel, button etc..These buttons may include, but are not limited to: home button, volume button, start button and Locking press button.
Sensor module 907 includes one or more sensors, and the state for providing various aspects for device 900 is commented Estimate.For example, sensor module 907 can detecte the state that opens/closes of device 900, the relative positioning of component, such as component For the display and keypad of device 900, sensor module 907 can be with the position of 900 1 components of detection device 900 or device Set change, the existence or non-existence that user contacts with device 900, the temperature in 900 orientation of device or acceleration/deceleration and device 900 Variation.Sensor module 907 may include proximity sensor, be configured to detect without any physical contact near The presence of object.Sensor module 907 can also include optical sensor, such as CMOS or ccd image sensor, for answering in imaging With middle use.In some embodiments, which can also include acceleration transducer, gyro sensor, magnetic Sensor, pressure sensor or temperature sensor.
Communication component 908 is configured to facilitate the communication of wired or wireless way between device 900 and other equipment.Device 900 can access the wireless network based on communication standard, such as WiFi, 2G or 3G or their combination.In an exemplary implementation In example, communication component 908 receives broadcast singal or broadcast related information from external broadcasting management system via broadcast channel. In one exemplary embodiment, communication component 908 further includes near-field communication (NFC) module, to promote short range communication.For example, Radio frequency identification (RFID) technology, Infrared Data Association (IrDA) technology, ultra wide band (UWB) technology, bluetooth can be based in NFC module (BT) technology and other technologies are realized.
In the exemplary embodiment, device 900 can be believed by one or more application specific integrated circuit (ASIC), number Number processor (DSP), digital signal processing appts (DSPD), programmable logic device (PLD), field programmable gate array (FPGA), controller, microcontroller, microprocessor or other electronic components are realized, for executing the above method.
In the exemplary embodiment, a kind of non-transitorycomputer readable storage medium including instruction, example are additionally provided It such as include the memory 902 of instruction, above-metioned instruction can be executed by the processor 920 of device 900 to complete the above method.For example, Non-transitorycomputer readable storage medium can be ROM, random access memory (RAM), CD-ROM, tape, floppy disk and light Data storage device etc..
A kind of computer readable storage medium is present embodiments provided, when the instruction in storage medium is by device 900 Reason device performs the steps of when executing
Obtain the nearest alarm clock to be triggered for waking of triggering moment;
If alarm clock to be triggered is first kind alarm clock, alarm clock to be triggered is closed, in the triggering moment of first kind alarm clock The first sleep quality of user is lower than default sleep quality before;
If alarm clock to be triggered is Second Type alarm clock, when reaching the triggering moment of alarm clock to be triggered, trigger to be triggered Alarm clock, the second sleep quality of user is not less than default sleep quality before the triggering moment of Second Type alarm clock.
In one embodiment, it can also be performed the steps of when the instruction in storage medium is executed by processor
Obtain the triggering moment of alarm clock to be triggered;
Obtain the third sleep quality of user before the triggering moment of alarm clock to be triggered;
If third sleep quality is lower than default sleep quality, alarm clock to be triggered is determined as first kind alarm clock;
If third sleep quality is not less than default sleep quality, alarm clock to be triggered is determined as Second Type alarm clock.
In one embodiment, it can also be performed the steps of when the instruction in storage medium is executed by processor
The moment is waken in acquisition the latest;
If Second Type alarm clock is not present before waking the moment the latest, target alarm clock is set, when the triggering of target alarm clock It carves to wake the moment the latest;
When reaching the triggering moment of target alarm clock, target alarm clock is triggered.
In one embodiment, it can also be performed the steps of when the instruction in storage medium is executed by processor
The timing since the triggering moment of current alarm clock to be triggered, is determined as next to be triggered at the time of timing is terminated The triggering moment of alarm clock, wherein timing duration is preset duration.
The present embodiment additionally provides a kind of alarm clock control device, comprising:
Processor;
Memory for storage processor executable instruction;
Wherein, processor is configured as:
Obtain the nearest alarm clock to be triggered for waking of triggering moment;
If alarm clock to be triggered is first kind alarm clock, alarm clock to be triggered is closed, in the triggering moment of first kind alarm clock The first sleep quality of user is lower than default sleep quality before;
If alarm clock to be triggered is Second Type alarm clock, when reaching the triggering moment of alarm clock to be triggered, trigger to be triggered Alarm clock, the second sleep quality of user is not less than default sleep quality before the triggering moment of Second Type alarm clock.
In one embodiment, processor can be additionally configured to:
Obtain the triggering moment of alarm clock to be triggered;
Obtain the third sleep quality of user before the triggering moment of alarm clock to be triggered;
If third sleep quality is lower than default sleep quality, alarm clock to be triggered is determined as first kind alarm clock;
If third sleep quality is not less than default sleep quality, alarm clock to be triggered is determined as Second Type alarm clock.
In one embodiment, processor can be additionally configured to:
The moment is waken in acquisition the latest;
If Second Type alarm clock is not present before waking the moment the latest, target alarm clock is set, when the triggering of target alarm clock It carves to wake the moment the latest;
When reaching the triggering moment of target alarm clock, target alarm clock is triggered.
In one embodiment, processor can be additionally configured to:
The timing since the triggering moment of current alarm clock to be triggered, is determined as next to be triggered at the time of timing is terminated The triggering moment of alarm clock, wherein timing duration is preset duration.
Those skilled in the art will readily occur to its of the disclosure after considering specification and practicing disclosure disclosed herein Its embodiment.This application is intended to cover any variations, uses, or adaptations of the disclosure, these modifications, purposes or Person's adaptive change follows the general principles of this disclosure and including the undocumented common knowledge in the art of the disclosure Or conventional techniques.The description and examples are only to be considered as illustrative, and the true scope and spirit of the disclosure are by following Claim is pointed out.
It should be understood that the present disclosure is not limited to the precise structures that have been described above and shown in the drawings, and And various modifications and changes may be made without departing from the scope thereof.The scope of the present disclosure is only limited by the accompanying claims.

Claims (10)

1. a kind of alarm clock control method characterized by comprising
Obtain the nearest alarm clock to be triggered for waking of triggering moment;
If the alarm clock to be triggered is first kind alarm clock, the alarm clock to be triggered is closed, in the first kind alarm clock The first sleep quality of user is lower than default sleep quality before triggering moment;
If the alarm clock to be triggered is Second Type alarm clock, when reaching the triggering moment of the alarm clock to be triggered, institute is triggered Alarm clock to be triggered is stated, the second sleep quality of user is default not less than described before the triggering moment of the Second Type alarm clock Sleep quality.
2. the method according to claim 1, wherein the method also includes:
Obtain the triggering moment of the alarm clock to be triggered;
Obtain the third sleep quality of user before the triggering moment of the alarm clock to be triggered;
If the third sleep quality is lower than the default sleep quality, the alarm clock to be triggered is determined as the first kind Type alarm clock;
If the third sleep quality is not less than the default sleep quality, the alarm clock to be triggered is determined as described second Type alarm clock.
3. the method according to claim 1, wherein the method also includes:
The moment is waken in acquisition the latest;
If waking before the moment that there is no the Second Type alarm clocks the latest described, target alarm clock, the target alarm clock are set Triggering moment be described to wake the moment the latest;
When reaching the triggering moment of the target alarm clock, the target alarm clock is triggered.
4. the method according to claim 1, wherein the method also includes:
The timing since the triggering moment of current alarm clock to be triggered, is determined as next alarm clock to be triggered at the time of timing is terminated Triggering moment, wherein the timing duration be preset duration.
5. a kind of alarm clock control device characterized by comprising
First obtains module, for obtaining the nearest alarm clock to be triggered for waking of triggering moment;
Closedown module, for closing the alarm clock to be triggered when the alarm clock to be triggered is first kind alarm clock, described the The first sleep quality of user is lower than default sleep quality before the triggering moment of one type alarm clock;
First trigger module is used in the case where the alarm clock to be triggered is Second Type alarm clock, described to be triggered when reaching When the triggering moment of alarm clock, the alarm clock to be triggered is triggered, the of user before the triggering moment of the Second Type alarm clock Two sleep qualities are not less than the default sleep quality.
6. device according to claim 5, which is characterized in that described device further include:
Second obtains module, for obtaining the triggering moment of the alarm clock to be triggered;
Third obtains module, the third sleep quality of user before the triggering moment for obtaining the alarm clock to be triggered;
First determining module is used for when the third sleep quality is lower than the default sleep quality, will be described to be triggered noisy Clock is determined as the first kind alarm clock;When the third sleep quality is not less than the default sleep quality, will it is described to Triggering alarm clock is determined as the Second Type alarm clock.
7. device according to claim 5, which is characterized in that described device further include:
4th obtains module, wakes the moment the latest for obtaining;
Target alarm clock, institute is arranged for being waken before the moment the latest described there is no when the Second Type alarm clock in setup module It states the triggering moment of target alarm clock and wakes the moment the latest to be described;
Second trigger module, for triggering the target alarm clock when reaching the triggering moment of the target alarm clock.
8. device according to claim 5, which is characterized in that described device further include:
Second determining module determines at the time of terminating timing for the timing since the triggering moment of current alarm clock to be triggered For the triggering moment of next alarm clock to be triggered, wherein the timing duration is preset duration.
9. a kind of alarm clock control device characterized by comprising
Processor;
Memory for storage processor executable instruction;
Wherein, the processor is configured to:
Obtain the nearest alarm clock to be triggered for waking of triggering moment;
If the alarm clock to be triggered is first kind alarm clock, the alarm clock to be triggered is closed, in the first kind alarm clock The first sleep quality of user is lower than default sleep quality before triggering moment;
If the alarm clock to be triggered is Second Type alarm clock, when reaching the triggering moment of the alarm clock to be triggered, institute is triggered Alarm clock to be triggered is stated, the second sleep quality of user is default not less than described before the triggering moment of the Second Type alarm clock Sleep quality.
10. a kind of computer readable storage medium, is stored with computer instruction, which is characterized in that the computer instruction is located Manage the step realized in any one of Claims 1-4 the method when device executes.
CN201810752968.8A 2018-07-10 2018-07-10 Alarm clock control method and device Pending CN108989556A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810752968.8A CN108989556A (en) 2018-07-10 2018-07-10 Alarm clock control method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810752968.8A CN108989556A (en) 2018-07-10 2018-07-10 Alarm clock control method and device

Publications (1)

Publication Number Publication Date
CN108989556A true CN108989556A (en) 2018-12-11

Family

ID=64537740

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810752968.8A Pending CN108989556A (en) 2018-07-10 2018-07-10 Alarm clock control method and device

Country Status (1)

Country Link
CN (1) CN108989556A (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104580748A (en) * 2015-02-12 2015-04-29 广东欧珀移动通信有限公司 Method and system for adjusting alarm clocks and mobile terminal
US20160203695A1 (en) * 2015-01-13 2016-07-14 Anhui Huami Information Technology Co., Ltd. Method and apparatus for controlling alarms
CN106388777A (en) * 2016-09-05 2017-02-15 广东欧珀移动通信有限公司 Method and device for setting alarm clock based on sleep quality
CN106982292A (en) * 2017-02-27 2017-07-25 珠海市魅族科技有限公司 A kind of alarm clock prompting method and system

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20160203695A1 (en) * 2015-01-13 2016-07-14 Anhui Huami Information Technology Co., Ltd. Method and apparatus for controlling alarms
CN104580748A (en) * 2015-02-12 2015-04-29 广东欧珀移动通信有限公司 Method and system for adjusting alarm clocks and mobile terminal
CN106388777A (en) * 2016-09-05 2017-02-15 广东欧珀移动通信有限公司 Method and device for setting alarm clock based on sleep quality
CN106982292A (en) * 2017-02-27 2017-07-25 珠海市魅族科技有限公司 A kind of alarm clock prompting method and system

Similar Documents

Publication Publication Date Title
CN105430547B (en) The dormancy method and device of bluetooth headset
CN107872576B (en) Alarm clock reminding method and device and computer readable storage medium
CN105138319B (en) Event-prompting method and device
WO2017028425A1 (en) Energy-saving mode activation method and device
CN104580642A (en) Clock reminding method and device
CN106371802A (en) Terminal volume control method and device
CN105933539B (en) audio playing control method and device and terminal
CN104065818A (en) Method and device for prompting user
CN105117897B (en) Shut down based reminding method and device
CN105487650A (en) Intelligent alarm clock turn-off method and apparatus
KR20170035829A (en) Method and device for managing alarm clock, electronic device
CN105979088A (en) Message pushing method and device
CN106357910A (en) Terminal working mode switching method and device
CN105516469B (en) Alarm clock control method and device
CN110349578A (en) Equipment wakes up processing method and processing device
CN105141769A (en) Communication message processing method and device as well as terminal
CN105214197A (en) Based reminding method and device
WO2018058815A1 (en) Information reminding method and apparatus
CN109903765A (en) Sound control method and device
CN106502664B (en) User is reminded to open the method and device of application
CN106254633B (en) Handset mode method of adjustment and device
CN109862169A (en) Control method of electronic device and device
CN106921797A (en) Information prompting method and device
CN109522058A (en) Awakening method, device, terminal and storage medium
CN109325337A (en) Unlocking method and 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: 20181211

RJ01 Rejection of invention patent application after publication