CN107390503A - A kind of method and apparatus for controlling alarm clock signal - Google Patents

A kind of method and apparatus for controlling alarm clock signal Download PDF

Info

Publication number
CN107390503A
CN107390503A CN201710534081.7A CN201710534081A CN107390503A CN 107390503 A CN107390503 A CN 107390503A CN 201710534081 A CN201710534081 A CN 201710534081A CN 107390503 A CN107390503 A CN 107390503A
Authority
CN
China
Prior art keywords
intensity
alarm clock
clock signal
sensor
intensity threshold
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201710534081.7A
Other languages
Chinese (zh)
Other versions
CN107390503B (en
Inventor
傅强
王阳
侯恩星
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Xiaomi Mobile Software Co Ltd
Original Assignee
Beijing Xiaomi Mobile Software Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Xiaomi Mobile Software Co Ltd filed Critical Beijing Xiaomi Mobile Software Co Ltd
Priority to CN201710534081.7A priority Critical patent/CN107390503B/en
Publication of CN107390503A publication Critical patent/CN107390503A/en
Application granted granted Critical
Publication of CN107390503B publication Critical patent/CN107390503B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G04HOROLOGY
    • G04GELECTRONIC TIME-PIECES
    • G04G13/00Producing acoustic time signals
    • G04G13/02Producing acoustic time signals at preselected times, e.g. alarm clocks

Abstract

The disclosure is directed to a kind of method and apparatus for controlling alarm clock signal, belong to electronic technology field.Methods described includes:Obtain the intensity of illumination of first sensor detection;When the intensity of illumination detected is more than the first Intensity threshold, alarm clock signal is sent;When detecting when meeting preset displacement condition of target detection object by second sensor, terminate the alarm clock signal.Using the disclosure, the time that sends of alarm clock signal does not need user to be set, and can save the time, be user-friendly.

Description

A kind of method and apparatus for controlling alarm clock signal
Technical field
The present invention relates to electronic technology field, more particularly to a kind of method and apparatus for controlling alarm clock signal.
Background technology
One most important function of alarm clock is at day to remind user to get up, and the time of existing alarm clock needs user's root Set accordingly according to the time of daybreak.
During the disclosure is realized, inventor has found problems with least be present:
User is needed to set the time of alarm clock, and than relatively time-consuming, the use to user is made troubles.
The content of the invention
In order to overcome user present in correlation technique to need to set the time of alarm clock, than it is relatively time-consuming the problem of, Present disclose provides a kind of method for controlling alarm clock signal.The technical scheme is as follows:
According to the first aspect of the embodiment of the present disclosure, there is provided a kind of method for controlling alarm clock signal, methods described include:
Obtain the intensity of illumination of first sensor detection;
When the intensity of illumination detected is more than the first Intensity threshold, alarm clock signal is sent;
When detecting when meeting preset displacement condition of target detection object by second sensor, terminate the alarm clock letter Number.
Optionally, methods described also includes:
When the intensity of illumination detected is more than the first Intensity threshold, the first sensor is controlled to be stopped;
When reaching preset time period, the first sensor is opened.
Optionally, methods described also includes:
When the intensity of illumination detected is more than the first Intensity threshold, the second sensor is opened;
After the alarm clock signal is terminated, the second sensor is closed.
Optionally, methods described also includes:
Obtain current Weather information;
According to the Weather information and the corresponding relation of Intensity threshold prestored, it is determined that corresponding to current Weather information One Intensity threshold.
Optionally, methods described also includes:
Obtain the current date;
According to the date prestored and the corresponding relation of Intensity threshold, it is determined that the first light intensity threshold corresponding to the current date Value.
Optionally, it is described to send alarm clock signal when the intensity of illumination detected is more than the first Intensity threshold, including:
When the intensity of illumination detected is more than the first Intensity threshold, if current time in preset time period, is sent out Go out alarm clock signal.
According to the second aspect of the embodiment of the present disclosure, there is provided a kind of device for controlling alarm clock signal, described device include:
First acquisition module, for obtaining the intensity of illumination of first sensor detection;
Module is sent, for when the intensity of illumination detected is more than the first Intensity threshold, sending alarm clock signal;
Terminate module, for when detecting that target detection object meets preset displacement condition by second sensor, tying Shu Suoshu alarm clock signals.
Optionally, described device also includes first switch module, and the switch module is used for:
When the intensity of illumination detected is more than the first Intensity threshold, the first sensor is controlled to be stopped;
When reaching preset time period, the first sensor is opened.
Optionally, described device also includes second switch module, and the second switch module is used for:
When the intensity of illumination detected is more than the first Intensity threshold, the second sensor is opened;
After the alarm clock signal is terminated, the second sensor is closed.
Optionally, described device also includes:
Second acquisition module, for obtaining current Weather information;
First determining module, the Weather information and the corresponding relation of Intensity threshold prestored for basis, it is determined that currently Weather information corresponding to the first Intensity threshold.
Optionally, described device also includes:
3rd acquisition module, for obtaining the current date;
Second determining module, the date prestored for basis and the corresponding relation of Intensity threshold, it is determined that current day First Intensity threshold corresponding to phase.
Optionally, the module that sends is used for:
When the intensity of illumination detected is more than the first Intensity threshold, if current time in preset time period, is sent out Go out alarm clock signal.
According to the third aspect of the embodiment of the present disclosure, there is provided a kind of electronic equipment, the electronic equipment include processor and Memory, is stored with least one instruction in the memory, and the instruction is loaded by the processor and performed to realize the The method of control alarm clock signal described in one side.
According to the fourth aspect of the embodiment of the present disclosure, there is provided a kind of computer-readable recording medium, in the storage medium It is stored with least one instruction, the instruction is loaded as processor and performed with the control alarm clock signal described in realizing first aspect Method.
The technical scheme provided by this disclosed embodiment can include the following benefits:
In the present embodiment, the intensity of illumination of first sensor detection is first obtained using this method, then intensity of illumination is carried out Detection, when detecting intensity of illumination more than the first Intensity threshold, sends alarm clock signal, finally further according to the inspection of second sensor Survey situation, terminate alarm clock signal.The time that sends of this alarm clock signal does not need user to be set, and can save the time, side Just user uses.
It should be appreciated that the general description and following detailed description of the above are only exemplary and explanatory, not The disclosure can be limited.
Brief description of the drawings
Accompanying drawing herein is merged in specification and forms the part of this specification, shows the implementation for meeting the disclosure Example, and be used to together with specification to explain the principle of the disclosure.In the accompanying drawings:
Fig. 1 is the structural representation according to a kind of alarm clock control system for implementing to exemplify;
Fig. 2 is the method flow diagram according to a kind of control alarm clock signal for implementing to exemplify;
Fig. 3 is the method flow diagram according to a kind of control alarm clock signal for implementing to exemplify;
Fig. 4 is the method flow diagram according to a kind of control alarm clock signal for implementing to exemplify;
Fig. 5 is the fundamental diagram according to a kind of alarm clock control system for implementing to exemplify;
Fig. 6 is the structural representation according to a kind of device for the control alarm clock signal for implementing to exemplify;
Fig. 7 is the structural representation according to a kind of device for the control alarm clock signal for implementing to exemplify;
Fig. 8 is the structural representation according to a kind of device for the control alarm clock signal for implementing to exemplify;
Fig. 9 is the structural representation according to a kind of device for the control alarm clock signal for implementing to exemplify;
Figure 10 is the structural representation according to a kind of device for the control alarm clock signal for implementing to exemplify;
Figure 11 is the structural representation according to a kind of electronic equipment for implementing to exemplify.
Pass through above-mentioned accompanying drawing, it has been shown that the clear and definite embodiment of the disclosure, will hereinafter be described in more detail.These accompanying drawings It is not intended to limit the scope of disclosure design by any mode with word description, but is by reference to specific embodiment Those skilled in the art illustrate the concept of the disclosure.
Embodiment
Here exemplary embodiment will be illustrated in detail, its example is illustrated in the accompanying drawings.Following description is related to During accompanying drawing, unless otherwise indicated, the same numbers in different accompanying drawings represent same or analogous key element.Following exemplary embodiment Described in embodiment do not represent all embodiments consistent with the disclosure.On the contrary, they be only with it is such as appended The example of the consistent apparatus and method of some aspects be described in detail in claims, the disclosure.
Embodiment one
The embodiments of the invention provide a kind of method for controlling alarm clock signal, this method can apply to alarm clock control system System, as shown in figure 1, the alarm clock control system can include network equipment, alarm clock, first sensor and second sensor etc..Net Network device (can be gateway, router etc.) can be the executive agent of this method, and network equipment is provided with radio communication Module, alarm clock, first sensor and second sensor realize wireless connection with network equipment respectively by wireless communication module. Network equipment is additionally provided with processor, memory, transceiver etc..Processor, can be CPU (Central Processing Unit, CPU) etc., for detecting and distinguishing data.Memory, can be RAM (Random Access Memory, random access memory), Flash (flash memory) etc., it can be used for data that storage receives, needed for processing procedure Data generated in data, processing procedure etc., such as the not corresponding relation of same date and Intensity threshold, Weather information and Intensity threshold Corresponding relation etc..Transceiver can be used for carrying out data transmission with miscellaneous equipment.
This method can also be applied to intelligent alarm clock, in this case, first sensor and second sensor can be integrated in In intelligent alarm clock, intelligent alarm clock is additionally provided with processor, memory, transceiver etc., wherein, processor can be holding for this method Row main body.
The present embodiment carries out the detailed description of scheme exemplified by applied to alarm clock control system, and other situations are similar therewith, The present embodiment repeats no more.
As shown in Fig. 2 the handling process of this method may include steps of:
Step 201, the intensity of illumination of first sensor detection is obtained.
Wherein, first sensor is a kind of light sensor, can detect intensity of illumination, and intensity of illumination is sent to Network equipment.
In force, first sensor is carried out being periodically detected intensity of illumination, and the intensity of illumination detected is sent to Network equipment, so as to which network equipment obtains intensity of illumination.
Step 202, when the intensity of illumination detected is more than the first Intensity threshold, alarm clock signal is sent.
Wherein, the first Intensity threshold can be corresponding intensity of illumination sometime, and such as the first Intensity threshold is corresponding early The intensity of illumination at or so upper seven o'clock.First Intensity threshold can also be to maintain constant intensity of illumination.It is previous in the present embodiment It is described in detail exemplified by kind intensity of illumination.
In force, network equipment periodically obtains the intensity of illumination of first sensor detection, and it is strong to get illumination every time When spending, the intensity of illumination can all be compared with the first Intensity threshold, when detecting that intensity of illumination exceeds the first Intensity threshold, The electric signal of alarm clock unlatching is sent to alarm clock, alarm clock opens alarm clock signal, such as jingle bell or vibrations after receiving the electric signal.
Optionally, when detecting the intensity of illumination of night lights more than the first Intensity threshold in order to avoid network equipment, Alarm clock signal is sent, step 102 can be handled as follows:When the intensity of illumination detected is more than the first Intensity threshold, If current time in preset time period, sends alarm clock signal.
In force, the preset time period that control alarm clock sends alarm signal, example can be previously provided with network equipment Such as it can will be arranged to preset time period between 6 points to 8 points of morning.When network equipment detects intensity of illumination more than the first light intensity During threshold value, network equipment first judges current time whether between 6 points to 8 points, then based on judged result, it is determined whether control is noisy Clock sends alarm clock signal.Specifically, when network equipment detects intensity of illumination more than the first Intensity threshold, network equipment judges Go out current time between 6 points to 8 points, network equipment sends the electric signal of alarm clock unlatching to alarm clock, and alarm clock receives the telecommunications Alarm clock signal is sent after number;When network equipment detects intensity of illumination more than the first Intensity threshold, network equipment is judged For current time not between 6 points to 8 points, network equipment does not send the electric signal of alarm clock unlatching to alarm clock, then alarm clock will not be sent Alarm clock signal.This way it is possible to avoid user opens light at night, the intensity of illumination that network equipment detects is more than the first light intensity During threshold value, also control alarm clock to send alarm clock signal, bother the rest of user.
Step 203, when detecting that target detection object meets preset displacement condition by second sensor, terminate described Alarm clock signal.
Wherein, second sensor can be a kind of Proximity Sensor, be placed on user's's (namely target detection object) Near bed 5, user can be periodically detected, and will detect that this information of user is sent to network equipment.
In force, when user lies on a bed, second sensor can detect user, and will detect this letter of user Breath is sent to network equipment, and after network equipment receives the information, control alarm clock continuously sends out alarm clock signal.When user hear it is noisy Clock is got up, and when leaving bed, second sensor can't detect user, and network equipment does not receive the information of second sensor transmission, Then network equipment sends the electric signal of alarm clock closing to alarm clock, after alarm clock receives the electric signal, terminates alarm clock signal.
It is this, alarm clock signal is opened according to intensity of illumination, alarm clock signal is closed according to the displacement condition of user, it is not necessary to use Family carries out setting time to alarm clock, can save the time, user-friendly.
Optionally, second sensor need not be constantly in working condition, can be when needing second sensor to work, net Network device controls its work, it is not necessary to which when second sensor works, network equipment controls it to be stopped, and corresponding processing can be with It is as follows:
When the intensity of illumination detected is more than the first Intensity threshold, second sensor is opened;Terminate alarm clock signal it Afterwards, second sensor is closed.
In force, when network equipment detects intensity of illumination more than the first Intensity threshold, control alarm clock sends alarm clock While signal, the electric signal for opening work can be sent to second sensor, after second sensor receives the electric signal, Open work.After alarm clock signal is terminated, network equipment can to second sensor send close work electric signal, second After sensor receives the electric signal, it is stopped.
So, the power consumption of second sensor is reduced, so as to reach the effect of using electricity wisely.
Optionally, similar with second sensor, first sensor need not also be constantly in working condition, corresponding processing Can be as follows:
When the intensity of illumination detected is more than the first Intensity threshold, control first sensor is stopped;It is pre- when reaching If during the period, open first sensor.
In force, when network equipment detects that intensity of illumination sends alarm clock letter more than the first Intensity threshold, control alarm clock Number while, the electric signal that is stopped can be sent to first sensor, after first sensor receives the electric signal, stopped Only work.When network equipment reaches preset time period again, when such as reaching the period between 6 points to 8 points of second day, net Network device sends the electric signal for opening work to first sensor, and first sensor opens work after receiving the electric signal.
So, network equipment control first sensor works in preset time period, can avoid first sensor at night Between detect light intensity of illumination.Alternatively, it is also possible to reach the effect of using electricity wisely.
Optionally, because time daybreak is relevant with the current date, accordingly, as shown in figure 3, this method is also including as follows Step:
Step 301, the current date is obtained.
In force, the Intensity threshold of same date is not possible to differ, the particularly date of Various Seasonal, such as January The intensity of illumination and the intensity of illumination at seven o'clock on June 1 at or so seven o'clock of one day are significantly different, then, network equipment Before control alarm clock sends alarm clock signal, the current date can be first obtained.
Step 302, according to the date prestored and the corresponding relation of Intensity threshold, it is determined that corresponding to the current date One Intensity threshold.
In force, the corresponding relation of date and Intensity threshold can be previously stored with network equipment, it is determined that current First Intensity threshold corresponding to date.For example, as shown in table 1,7 points of not same date can be previously stored with network equipment The corresponding relation of clock and Intensity threshold, network equipment intensity of illumination according to corresponding to seven o'clock of current date, determines the first light Strong threshold value.
Table 1 not seven o'clock of same date and the corresponding relation of Intensity threshold
Date Intensity of illumination
Date 1 a
Date 2 b
Date 3 c
…… ……
So, when time daybreak following the date to change, it is also ensured that the time that alarm clock signal sounds is constant, Yong Huye Without being adjusted to alarm time, can be user-friendly.
Optionally, because also there are very big relation time daybreak and current Weather information, accordingly, as shown in figure 4, should Method also comprises the following steps:
Step 401, current Weather information is obtained.
Due to time daybreak influenceed by current weather information it is bigger, for example, the intensity of illumination at seven o'clock of fine day with it is cloudy The intensity of illumination at its seven o'clock differs, then, network equipment can obtain current weather again after getting Date Information.
Step 402, according to the Weather information and the corresponding relation of Intensity threshold prestored, it is determined that current Weather information Corresponding first Intensity threshold.
In force, as shown in table 2, Weather information pass corresponding with Intensity threshold can be previously stored with network equipment System, it is determined that the first Intensity threshold corresponding to current Weather information.
The corresponding relation of the Weather information of table 2 and Intensity threshold
Weather information Intensity of illumination
Weather information 1 l
Weather information 2 m
Weather information 3 n
…… ……
Based on above-mentioned all described, as shown in figure 5, the detailed process of the method for the control alarm clock signal can be as follows:
When network equipment reaches preset time period, the period between 6 points to 8 points as described above, network equipment control First sensor processed opens work.First sensor is carried out detecting current intensity of illumination, and the intensity of illumination is sent into net Network device.Before network equipment detection current light intensity, the Intensity threshold of corresponding current date can be first searched according to table 1, The Intensity threshold of corresponding current weather information is searched further according to table 2, determines the first Intensity threshold afterwards.When network equipment detects When intensity of illumination is more than the first Intensity threshold, the electric signal for opening alarm clock signal is sent to alarm clock, alarm clock receives the electric signal Afterwards, alarm clock signal, such as jingle bell or vibrations are sent.When network equipment detects intensity of illumination more than the first Intensity threshold, Also control first sensor is stopped and controlled second sensor to open work to network equipment respectively.
After alarm clock signal sounds, two kinds of situations, the first situation be present:If now user is also sleeping, the second sensing Device detects user, and network equipment receives the information that second sensor is sent, and alarm clock signal is continued for.User hears that alarm clock is believed Got up after number, second sensor can't detect user, and network equipment does not receive the information of second sensor transmission, then network fills Put control alarm clock and close alarm clock signal.Second of situation:Now user has got up, and second sensor can't detect user, net Network device does not receive the information of second sensor transmission, then network equipment control alarm clock closes alarm clock signal.Network equipment control While alarm clock processed terminates alarm clock signal, also second sensor is controlled to be stopped.
In the present embodiment, the intensity of illumination of first sensor detection is first obtained using this method, then intensity of illumination is carried out Detection, when detecting intensity of illumination more than the first Intensity threshold, sends alarm clock signal, finally further according to the inspection of second sensor Survey situation, terminate alarm clock signal.The time that sends of this alarm clock signal does not need user to be set, and can save the time, side Just user uses.
Embodiment two
The disclosure provides a kind of device for controlling alarm clock signal again, as shown in fig. 6, described device includes:First obtains Module 610, send module 620 and terminate module 630.
First acquisition module 610 is configured as obtaining the intensity of illumination of first sensor detection;
When sending intensity of illumination that module 620 is configured as detecting more than the first Intensity threshold, alarm clock signal is sent;
Terminate module 630 is configured as detecting that target detection object meets preset displacement condition by second sensor When, terminate the alarm clock signal.
Optionally, as shown in fig. 7, the device also includes first switch module 640, first switch module 640 is configured as:
When the intensity of illumination detected is more than the first Intensity threshold, the first sensor is controlled to be stopped;
When reaching preset time period, the first sensor is opened.
Optionally, as shown in figure 8, the device also includes second switch module 650, second switch module 650 is configured as:
When the intensity of illumination detected is more than the first Intensity threshold, the second sensor is opened;
After the alarm clock signal is terminated, the second sensor is closed.
Optionally, as shown in figure 9, the device also includes:Second acquisition module 660 and the first determining module 670.
Second acquisition module 660 is configured as obtaining current Weather information;
First determining module 670 is configured as the corresponding relation according to the Weather information that prestores and Intensity threshold, really First Intensity threshold corresponding to Weather information before settled.
Optionally, as shown in Figure 10, the device also includes:3rd acquisition module 680 and the second determining module 690.
3rd acquisition module 680 is configured as obtaining the current date;
Second determining module 690 is configured as according to the date prestored and the corresponding relation of Intensity threshold, it is determined that working as First Intensity threshold corresponding to the preceding date.
Optionally, when sending intensity of illumination that module 620 is configured as detecting more than the first Intensity threshold, if worked as The preceding time in preset time period, then sends alarm clock signal.
On the device in above-described embodiment, wherein modules perform the concrete mode of operation in relevant this method Embodiment in be described in detail, explanation will be not set forth in detail herein.
In the present embodiment, the intensity of illumination of first sensor detection is first obtained, then intensity of illumination is detected, works as detection To intensity of illumination more than the first Intensity threshold when, send alarm clock signal, finally further according to the detection case of second sensor, terminate Alarm clock signal.The time that sends of this alarm clock signal does not need user to be set, and can save the time, be user-friendly.
It should be noted that:Above-described embodiment provide control alarm clock signal device when controlling alarm clock signal, only with The division progress of above-mentioned each functional module, can be as needed and by above-mentioned function distribution by not for example, in practical application Same functional module is completed, i.e., the internal structure of device is divided into different functional modules, to complete whole described above Or partial function.In addition, the method for the device and control alarm clock signal for the control alarm clock signal that above-described embodiment provides is implemented Example belongs to same design, and its specific implementation process refers to embodiment of the method, repeats no more here.
Embodiment three
The disclosure additionally provides a kind of electronic equipment, and the electronic equipment can be the network equipment of such as router, gateway, It can also be intelligent alarm clock etc..The electronic equipment includes processor and memory, and at least one instruction is stored with memory, should Instruction is loaded as processor and performed to realize the method for the control alarm clock signal described in embodiment one.
Figure 11 is the block diagram of a kind of electronic equipment 1100 according to an exemplary embodiment.For example, electronic equipment 1100 may be provided in a router.Reference picture 11, electronic equipment 1100 include processing component 1122, and it further comprises one Individual or multiple processors, and as the memory resource representated by memory 1132, can be by processing component 1122 for storing The instruction of execution, such as application program.The application program stored in memory 1132 can include one or more every One module for corresponding to one group of instruction.In addition, processing component 1122 is configured as execute instruction, to perform above-mentioned control alarm clock The method of signal.
Electronic equipment 1100 can also include the power supply that a power supply module 1126 is configured as performing electronic equipment 1100 Management, a wired or wireless network interface 1150 is configured as electronic equipment 1100 being connected to network, and an input is defeated Go out (I/O) interface 1158.Electronic equipment 1100 can be operated based on the operating system for being stored in memory 1132, such as Windows ServerTM, Mac OS XTM, UnixTM, LinuxTM, FreeBSDTM or similar.
Electronic equipment 1100 can include memory, and one or more than one program, one of them or More than one program storage in memory, and be configured to by one either more than one computing device it is one or More than one program bag contains the instruction for being used for being operated below:
Obtain the intensity of illumination of first sensor detection;
When the intensity of illumination detected is more than the first Intensity threshold, alarm clock signal is sent;
When detecting that target detection object meets preset displacement condition by second sensor, terminate the alarm clock letter Number.
Optionally, methods described also includes:
When the intensity of illumination detected is more than the first Intensity threshold, the first sensor is controlled to be stopped;
When reaching preset time period, the first sensor is opened.
Optionally, methods described also includes:
When the intensity of illumination detected is more than the first Intensity threshold, the second sensor is opened;
After the alarm clock signal is terminated, the second sensor is closed.
Optionally, methods described also includes:
Obtain current Weather information;
According to the Weather information and the corresponding relation of Intensity threshold prestored, it is determined that corresponding to current Weather information One Intensity threshold.
Optionally, methods described also includes:
Obtain the current date;
According to the date prestored and the corresponding relation of Intensity threshold, it is determined that the first light intensity threshold corresponding to the current date Value.
Optionally, it is described to send alarm clock signal when the intensity of illumination detected is more than the first Intensity threshold, including:
When the intensity of illumination detected is more than the first Intensity threshold, if current time in preset time period, is sent out Go out alarm clock signal.
In the embodiment of the present disclosure, the intensity of illumination of first sensor detection is first obtained, then intensity of illumination is detected, when When detecting intensity of illumination more than the first Intensity threshold, alarm clock signal is sent, finally further according to the detection case of second sensor, Terminate alarm clock signal.The time that sends of this alarm clock signal does not need user to be set, and can save the time, facilitate user to make With.
Those skilled in the art will readily occur to the disclosure its after considering specification and putting into practice disclosure disclosed herein Its embodiment.The application is intended to any modification, purposes or the adaptations of the disclosure, these modifications, purposes or Person's adaptations follow the general principle of the disclosure and including the undocumented common knowledges in the art of the disclosure Or conventional techniques.Description and embodiments are considered only as exemplary, and the true scope of the disclosure and spirit are by following Claim is pointed out.
It should be appreciated that the precision architecture that the disclosure is not limited to be described above and is shown in the drawings, and And various modifications and changes can be being carried out without departing from the scope.The scope of the present disclosure is only limited by appended claim.

Claims (14)

  1. A kind of 1. method for controlling alarm clock signal, it is characterised in that methods described includes:
    Obtain the intensity of illumination of first sensor detection;
    When the intensity of illumination detected is more than the first Intensity threshold, alarm clock signal is sent;
    When detecting that target detection object meets preset displacement condition by second sensor, terminate the alarm clock signal.
  2. 2. according to the method for claim 1, it is characterised in that methods described also includes:
    When the intensity of illumination detected is more than the first Intensity threshold, the first sensor is controlled to be stopped;
    When reaching preset time period, the first sensor is opened.
  3. 3. according to the method for claim 1, it is characterised in that methods described also includes:
    When the intensity of illumination detected is more than the first Intensity threshold, the second sensor is opened;
    After the alarm clock signal is terminated, the second sensor is closed.
  4. 4. according to the method for claim 1, it is characterised in that methods described also includes:
    Obtain current Weather information;
    According to the Weather information and the corresponding relation of Intensity threshold prestored, it is determined that the first light corresponding to current Weather information Strong threshold value.
  5. 5. according to the method for claim 1, it is characterised in that methods described also includes:
    Obtain the current date;
    According to the date prestored and the corresponding relation of Intensity threshold, it is determined that the first Intensity threshold corresponding to the current date.
  6. 6. according to the method for claim 1, it is characterised in that described when the intensity of illumination detected is more than the first light intensity threshold During value, alarm clock signal is sent, including:
    When the intensity of illumination detected is more than the first Intensity threshold, if current time in preset time period, send it is noisy Clock signal.
  7. 7. a kind of device for controlling alarm clock signal, it is characterised in that described device includes:
    First acquisition module, for obtaining the intensity of illumination of first sensor detection;
    Module is sent, for when the intensity of illumination detected is more than the first Intensity threshold, sending alarm clock signal;
    Terminate module, for when detecting that target detection object meets preset displacement condition by second sensor, terminating institute State alarm clock signal.
  8. 8. device according to claim 7, it is characterised in that described device also includes first switch module, and described first Switch module is used for:
    When the intensity of illumination detected is more than the first Intensity threshold, the first sensor is controlled to be stopped;
    When reaching preset time period, the first sensor is opened.
  9. 9. device according to claim 7, it is characterised in that described device also includes second switch module, and described second Switch module is used for:
    When the intensity of illumination detected is more than the first Intensity threshold, the second sensor is opened;
    After the alarm clock signal is terminated, the second sensor is closed.
  10. 10. device according to claim 7, it is characterised in that described device also includes:
    Second acquisition module, for obtaining current Weather information;
    First determining module, the Weather information and the corresponding relation of Intensity threshold prestored for basis, it is determined that current day First Intensity threshold corresponding to gas information.
  11. 11. device according to claim 7, it is characterised in that described device also includes:
    3rd acquisition module, for obtaining the current date;
    Second determining module, the date prestored for basis and the corresponding relation of Intensity threshold, it is determined that the current date pair The first Intensity threshold answered.
  12. 12. device according to claim 7, it is characterised in that the module that sends is used for:
    When the intensity of illumination detected is more than the first Intensity threshold, if current time in preset time period, send it is noisy Clock signal.
  13. 13. a kind of electronic equipment, it is characterised in that the electronic equipment includes processor and memory, is deposited in the memory At least one instruction is contained, the instruction is loaded by the processor and performed to realize as described in claim 1 to 6 is any The method for controlling alarm clock signal.
  14. 14. a kind of computer-readable recording medium, it is characterised in that at least one instruction, institute are stored with the storage medium Instruction is stated to be loaded by processor and performed to realize the method for the control alarm clock signal as described in claim 1 to 6 is any.
CN201710534081.7A 2017-07-03 2017-07-03 Method and device for controlling alarm clock signal Active CN107390503B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710534081.7A CN107390503B (en) 2017-07-03 2017-07-03 Method and device for controlling alarm clock signal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710534081.7A CN107390503B (en) 2017-07-03 2017-07-03 Method and device for controlling alarm clock signal

Publications (2)

Publication Number Publication Date
CN107390503A true CN107390503A (en) 2017-11-24
CN107390503B CN107390503B (en) 2021-01-15

Family

ID=60334079

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710534081.7A Active CN107390503B (en) 2017-07-03 2017-07-03 Method and device for controlling alarm clock signal

Country Status (1)

Country Link
CN (1) CN107390503B (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108769415A (en) * 2018-05-25 2018-11-06 武汉工程大学 A kind of terminal and based reminding method according to the prompting of real-time weather data-triggered
CN112650045A (en) * 2020-12-26 2021-04-13 东方诺华科技(深圳)有限公司 Multifunctional alarm clock

Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN2594844Y (en) * 2002-09-06 2003-12-24 罗云龙 Human body inducting alarm clocks
JP2009186324A (en) * 2008-02-06 2009-08-20 Nec Fielding Ltd Alarm notification system, alarm notification generation method, device, program, and recording medium
CN201607624U (en) * 2009-11-12 2010-10-13 康佳集团股份有限公司 Optical signal sensing alarm clock
CN104267948A (en) * 2014-09-23 2015-01-07 三星电子(中国)研发中心 Alarm clock control method and alarm clock control device for intelligent mobile terminal
CN104361486A (en) * 2014-11-27 2015-02-18 小米科技有限责任公司 Alarm clock reminding method and device
CN104869260A (en) * 2015-06-19 2015-08-26 上海斐讯数据通信技术有限公司 Method and system for turning off alarm clock of mobile terminal
CN105120057A (en) * 2015-06-26 2015-12-02 小米科技有限责任公司 Alarm clock control method and device
CN105425657A (en) * 2015-10-30 2016-03-23 小米科技有限责任公司 Method and device used for controlling alarm clock ringing
CN105446170A (en) * 2014-08-08 2016-03-30 富泰华工业(深圳)有限公司 Alarm control system and method for electronic device
CN205787626U (en) * 2016-05-31 2016-12-07 胡仪 One senses alarm clock automatically
CN106775646A (en) * 2016-11-23 2017-05-31 北京小米移动软件有限公司 Alarm clock control method and device

Patent Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN2594844Y (en) * 2002-09-06 2003-12-24 罗云龙 Human body inducting alarm clocks
JP2009186324A (en) * 2008-02-06 2009-08-20 Nec Fielding Ltd Alarm notification system, alarm notification generation method, device, program, and recording medium
CN201607624U (en) * 2009-11-12 2010-10-13 康佳集团股份有限公司 Optical signal sensing alarm clock
CN105446170A (en) * 2014-08-08 2016-03-30 富泰华工业(深圳)有限公司 Alarm control system and method for electronic device
CN104267948A (en) * 2014-09-23 2015-01-07 三星电子(中国)研发中心 Alarm clock control method and alarm clock control device for intelligent mobile terminal
CN104361486A (en) * 2014-11-27 2015-02-18 小米科技有限责任公司 Alarm clock reminding method and device
CN104869260A (en) * 2015-06-19 2015-08-26 上海斐讯数据通信技术有限公司 Method and system for turning off alarm clock of mobile terminal
CN105120057A (en) * 2015-06-26 2015-12-02 小米科技有限责任公司 Alarm clock control method and device
CN105425657A (en) * 2015-10-30 2016-03-23 小米科技有限责任公司 Method and device used for controlling alarm clock ringing
CN205787626U (en) * 2016-05-31 2016-12-07 胡仪 One senses alarm clock automatically
CN106775646A (en) * 2016-11-23 2017-05-31 北京小米移动软件有限公司 Alarm clock control method and device

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108769415A (en) * 2018-05-25 2018-11-06 武汉工程大学 A kind of terminal and based reminding method according to the prompting of real-time weather data-triggered
CN112650045A (en) * 2020-12-26 2021-04-13 东方诺华科技(深圳)有限公司 Multifunctional alarm clock

Also Published As

Publication number Publication date
CN107390503B (en) 2021-01-15

Similar Documents

Publication Publication Date Title
CN103941871B (en) The method and apparatus for controlling the hardware running status of intelligent terminal
CN107463403A (en) Course control method, device, storage medium and electronic equipment
CN105575366B (en) Switch the method and system of backlight governing speed
CN108304758A (en) Facial features tracking method and device
EP3671441A1 (en) Application management method and apparatus, storage medium, and electronic device
CN108536783A (en) Data processing method and device, terminal, computer readable storage medium
CN107111335A (en) For the operation that controls electronic installation method and use its electronic installation
CN109003604A (en) A kind of audio recognition method that realizing low-power consumption standby and system
CN107517413B (en) A kind of intelligent sound box and its control method
CN107390503A (en) A kind of method and apparatus for controlling alarm clock signal
CN111435482A (en) Outbound model construction method, outbound method, device and storage medium
CN105912916A (en) Fingerprint unlocking method and terminal
CN107580103A (en) The control method and device of lighting device
CN107659717A (en) Condition detection method, device and storage medium
CN106027174A (en) Radio monitoring unmanned check-in system and signal analyzing and identifying method thereof
CN107145425A (en) Information processing method, device and mobile terminal
CN110322596A (en) Boot method of controlling switch and system based on position identification and speech recognition
CN114706895A (en) Emergency event plan recommendation method and device, storage medium and electronic equipment
CN105530673B (en) A kind of method for connecting network and user equipment
CN108600559A (en) Control method, device, storage medium and the electronic equipment of silent mode
CN107170211A (en) The position indicating method and electronic installation of electronic installation
Weber et al. Diagnosability evaluation for a system-level diagnosis algorithm for wireless sensor networks
CN107154996B (en) Incoming call interception method and device, storage medium and terminal
CN110415698A (en) Artificial intelligence data detection method and device and storage medium
CN109215656A (en) Speech remote controller device and method, storage medium, electronic 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
GR01 Patent grant
GR01 Patent grant