CN107390503B - Method and device for controlling alarm clock signal - Google Patents

Method and device for controlling alarm clock signal Download PDF

Info

Publication number
CN107390503B
CN107390503B CN201710534081.7A CN201710534081A CN107390503B CN 107390503 B CN107390503 B CN 107390503B CN 201710534081 A CN201710534081 A CN 201710534081A CN 107390503 B CN107390503 B CN 107390503B
Authority
CN
China
Prior art keywords
alarm clock
clock signal
sensor
light intensity
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.)
Active
Application number
CN201710534081.7A
Other languages
Chinese (zh)
Other versions
CN107390503A (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

Images

Classifications

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

Landscapes

  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Circuit Arrangement For Electric Light Sources In General (AREA)
  • Electric Clocks (AREA)

Abstract

The disclosure relates to a method and a device for controlling an alarm clock signal, and belongs to the technical field of electronics. The method comprises the following steps: acquiring the illumination intensity detected by a first sensor; when the detected illumination intensity exceeds a first light intensity threshold value, an alarm clock signal is sent out; and when the second sensor detects that the target detection object meets the preset displacement condition, ending the alarm clock signal. By adopting the alarm clock signal sending method and device, the sending time of the alarm clock signal does not need to be set by a user, so that time can be saved, and the alarm clock signal sending method and device are convenient for the user to use.

Description

Method and device for controlling alarm clock signal
Technical Field
The invention relates to the technical field of electronics, in particular to a method and a device for controlling an alarm clock signal.
Background
The most important function of the alarm clock is to remind a user to get up when the alarm clock is bright, and the time of the existing alarm clock needs the user to set correspondingly according to the bright time.
In carrying out the present disclosure, the inventors found that at least the following problems exist:
the user needs to set the time of the alarm clock, which is time-consuming and brings inconvenience to the user.
Disclosure of Invention
In order to overcome the problem that a user needs to set the time of an alarm clock and the alarm clock is time-consuming in the related art, the disclosure provides a method for controlling an alarm clock signal. The technical scheme is as follows:
according to a first aspect of embodiments of the present disclosure, there is provided a method of controlling an alarm clock signal, the method comprising:
acquiring the illumination intensity detected by a first sensor;
when the detected illumination intensity exceeds a first light intensity threshold value, an alarm clock signal is sent out;
and when the second sensor detects that the target detection object meets the preset displacement condition, ending the alarm clock signal.
Optionally, the method further includes:
when the detected illumination intensity exceeds a first light intensity threshold value, controlling the first sensor to stop working;
and when a preset time period is reached, starting the first sensor.
Optionally, the method further includes:
when the detected illumination intensity exceeds a first light intensity threshold value, starting the second sensor;
turning off the second sensor after the alarm clock signal is ended.
Optionally, the method further includes:
acquiring current weather information;
and determining a first light intensity threshold value corresponding to the current weather information according to the corresponding relation between the pre-stored weather information and the light intensity threshold value.
Optionally, the method further includes:
acquiring a current date;
and determining a first light intensity threshold corresponding to the current date according to the corresponding relation between the pre-stored date and the light intensity threshold.
Optionally, when the detected illumination intensity exceeds the first light intensity threshold, the sending an alarm clock signal includes:
and when the detected illumination intensity exceeds a first light intensity threshold value, if the current time is within a preset time period, an alarm clock signal is sent out.
According to a second aspect of embodiments of the present disclosure, there is provided an apparatus for controlling an alarm clock signal, the apparatus comprising:
the first acquisition module is used for acquiring the illumination intensity detected by the first sensor;
the sending module is used for sending an alarm clock signal when the detected illumination intensity exceeds a first light intensity threshold value;
and the ending module is used for ending the alarm clock signal when the target detection object detected by the second sensor meets the preset displacement condition.
Optionally, the apparatus further comprises a first switch module, and the switch module is configured to:
when the detected illumination intensity exceeds a first light intensity threshold value, controlling the first sensor to stop working;
and when a preset time period is reached, starting the first sensor.
Optionally, the apparatus further comprises a second switch module, and the second switch module is configured to:
when the detected illumination intensity exceeds a first light intensity threshold value, starting the second sensor;
turning off the second sensor after the alarm clock signal is ended.
Optionally, the apparatus further comprises:
the second acquisition module is used for acquiring current weather information;
the first determining module is used for determining a first light intensity threshold value corresponding to the current weather information according to the corresponding relation between the pre-stored weather information and the light intensity threshold value.
Optionally, the apparatus further comprises:
the third acquisition module is used for acquiring the current date;
and the second determining module is used for determining the first light intensity threshold corresponding to the current date according to the corresponding relation between the pre-stored date and the light intensity threshold.
Optionally, the sending module is configured to:
and when the detected illumination intensity exceeds a first light intensity threshold value, if the current time is within a preset time period, an alarm clock signal is sent out.
According to a third aspect of embodiments of the present disclosure, there is provided an electronic device, which includes a processor and a memory, where at least one instruction is stored in the memory, and the instruction is loaded and executed by the processor to implement the method for controlling an alarm clock signal according to the first aspect.
According to a fourth aspect of embodiments of the present disclosure, there is provided a computer-readable storage medium having at least one instruction stored therein, the instruction being loaded and executed by a processor to implement the method for controlling an alarm clock signal according to the first aspect.
The technical scheme provided by the embodiment of the disclosure can have the following beneficial effects:
in this embodiment, the method is used to first obtain the illumination intensity detected by the first sensor, then detect the illumination intensity, when the illumination intensity is detected to exceed the first light intensity threshold, send an alarm clock signal, and finally end the alarm clock signal according to the detection condition of the second sensor. The time for sending the alarm clock signal is not required to be set by a user, so that the time can be saved, and the use by the user is facilitated.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the disclosure.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present disclosure and together with the description, serve to explain the principles of the disclosure. In the drawings:
fig. 1 is a schematic structural diagram of an alarm clock control system according to an embodiment;
FIG. 2 is a flow diagram illustrating a method of controlling an alarm clock signal according to an embodiment;
FIG. 3 is a flow diagram illustrating a method of controlling an alarm clock signal according to an embodiment;
FIG. 4 is a flow diagram illustrating a method of controlling an alarm clock signal according to an embodiment;
FIG. 5 is a schematic diagram illustrating operation of an alarm clock control system according to an embodiment;
FIG. 6 is a schematic structural diagram of an apparatus for controlling an alarm clock signal according to an embodiment;
FIG. 7 is a schematic diagram illustrating a structure of an apparatus for controlling an alarm clock signal according to an embodiment;
FIG. 8 is a schematic diagram of an apparatus for controlling an alarm clock signal according to an embodiment;
fig. 9 is a schematic structural diagram illustrating an apparatus for controlling an alarm clock signal according to an embodiment;
fig. 10 is a schematic structural diagram illustrating an apparatus for controlling an alarm clock signal according to an embodiment;
fig. 11 is a schematic structural diagram of an electronic device according to an embodiment.
With the foregoing drawings in mind, certain embodiments of the disclosure have been shown and described in more detail below. These drawings and written description are not intended to limit the scope of the disclosed concepts in any way, but rather to illustrate the concepts of the disclosure to those skilled in the art by reference to specific embodiments.
Detailed Description
Reference will now be made in detail to the exemplary embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, like numbers in different drawings represent the same or similar elements unless otherwise indicated. The implementations described in the exemplary embodiments below are not intended to represent all implementations consistent with the present disclosure. Rather, they are merely examples of apparatus and methods consistent with certain aspects of the present disclosure, as detailed in the appended claims.
Example one
An embodiment of the present invention provides a method for controlling an alarm clock signal, which may be applied to an alarm clock control system, as shown in fig. 1, where the alarm clock control system may include a network device, an alarm clock, a first sensor, a second sensor, and the like. The network device (which may be a gateway, a router, etc.) may be an execution subject of the method, and the network device is provided with a wireless communication module, and the alarm clock, the first sensor and the second sensor are all wirelessly connected with the network device through the wireless communication module respectively. The network device is further provided with a processor, a memory, a transceiver, etc. A processor, which may be a CPU (Central Processing Unit) or the like, for detecting and separating data. The Memory may be a RAM (Random Access Memory), a Flash Memory, or the like, and may be configured to store received data, data required by the processing process, data generated in the processing process, or the like, such as a correspondence between different dates and the light intensity threshold, a correspondence between weather information and the light intensity threshold, or the like. The transceiver may be used for data transmission with other devices.
The method can also be applied to a smart alarm clock, in which case the first sensor and the second sensor can be integrated in the smart alarm clock, which is further provided with a processor, a memory, a transceiver, etc., wherein the processor can be the execution subject of the method.
The present embodiment takes the application to an alarm clock control system as an example to perform a detailed description of the scheme, and other situations are similar to the above, and are not described again in the present embodiment.
As shown in fig. 2, the processing flow of the method may include the following steps:
step 201, acquiring the illumination intensity detected by the first sensor.
The first sensor is a light sensor, and can detect the illumination intensity and send the illumination intensity to the network device.
In an implementation, the first sensor periodically detects the illumination intensity and transmits the detected illumination intensity to the network device, so that the network device obtains the illumination intensity.
Step 202, when the detected illumination intensity exceeds a first light intensity threshold value, an alarm clock signal is sent out.
The first light intensity threshold may be a light intensity corresponding to a certain time, for example, the first light intensity threshold corresponds to a light intensity around seven o' clock in the morning. The first light intensity threshold may also be a light intensity that remains constant. The previous illumination intensity in this example is described in detail.
In implementation, the network device periodically acquires the illumination intensity detected by the first sensor, compares the illumination intensity with the first light intensity threshold value when acquiring the illumination intensity every time, sends an electric signal for starting the alarm clock to the alarm clock when detecting that the illumination intensity exceeds the first light intensity threshold value, and starts an alarm clock signal after receiving the electric signal, such as ringing or vibration.
Optionally, in order to avoid that the network device sends an alarm clock signal when detecting that the illumination intensity of the night light exceeds the first light intensity threshold, step 102 may be processed as follows: and when the detected illumination intensity exceeds a first light intensity threshold value, if the current time is within a preset time period, an alarm clock signal is sent out.
In implementation, a preset time period for controlling the alarm clock to send the alarm signal may be preset in the network device, for example, the preset time period may be set between 6 am and 8 am. When the network device detects that the illumination intensity exceeds a first light intensity threshold value, the network device firstly judges whether the current time is between 6 and 8 points, and then determines whether to control the alarm clock to send out an alarm clock signal or not based on the judgment result. Specifically, when the network device detects that the illumination intensity exceeds a first light intensity threshold value, the network device judges that the current time is between 6 and 8 points, the network device sends an electric signal for starting an alarm clock to the alarm clock, and the alarm clock sends an alarm clock signal after receiving the electric signal; when the network device detects that the illumination intensity exceeds the first light intensity threshold value, the network device judges that the current time is not between 6 and 8 points, the network device does not send an alarm clock opening electric signal to the alarm clock, and then the alarm clock can not send an alarm clock signal. Therefore, the situation that the user turns on light at night can be avoided, and when the illumination intensity detected by the network device exceeds the first light intensity threshold value, the alarm clock is also controlled to send an alarm clock signal, so that the rest of the user is disturbed.
And step 203, when the target detection object detected by the second sensor meets a preset displacement condition, ending the alarm clock signal.
The second sensor may be a proximity sensor, which is placed near the bed 5 of the user (i.e., the target detection object), and may periodically detect the user and transmit information indicating that the user is detected to the network device.
In implementation, when the user lies in bed, the second sensor can detect the user and send the information of the detected user to the network device, and the network device controls the alarm clock to continuously send out the alarm clock signal after receiving the information. When the user hears the alarm clock to get up and leaves the bed, the second sensor cannot detect the user, the network device cannot receive the information sent by the second sensor, the network device sends an electric signal for closing the alarm clock to the alarm clock, and the alarm clock finishes the alarm clock signal after receiving the electric signal.
According to the method, the alarm clock signal is started according to the illumination intensity, and is closed according to the displacement condition of the user, so that the user does not need to set time for the alarm clock, the time can be saved, and the use of the user is facilitated.
Optionally, the second sensor does not need to be in a working state all the time, the network device may control the second sensor to work when the second sensor is needed to work, and the network device may control the second sensor to stop working when the second sensor is not needed to work, and the corresponding processing may be as follows:
when the detected illumination intensity exceeds a first light intensity threshold value, a second sensor is started; after the alarm signal is ended, the second sensor is turned off.
In implementation, when the network device detects that the illumination intensity exceeds the first light intensity threshold, the alarm clock is controlled to send an alarm clock signal, an electric signal for starting work can be sent to the second sensor, and the second sensor starts work after receiving the electric signal. After the alarm signal is finished, the network device may send an electric signal to turn off the operation to the second sensor, and the second sensor stops the operation after receiving the electric signal.
Therefore, the power consumption of the second sensor is reduced, and the effect of saving power is achieved.
Alternatively, similar to the second sensor, the first sensor does not need to be in the working state all the time, and the corresponding processing may be as follows:
when the detected illumination intensity exceeds a first light intensity threshold value, controlling a first sensor to stop working; when the preset time period is reached, the first sensor is turned on.
In implementation, when the network device detects that the illumination intensity exceeds the first light intensity threshold, the alarm clock is controlled to send an alarm clock signal, and meanwhile, an electric signal for stopping working can be sent to the first sensor, and the first sensor stops working after receiving the electric signal. When the network device reaches the preset time period again, such as the time period between 6 o 'clock and 8 o' clock of the next day, the network device sends an electric signal for starting the work to the first sensor, and the first sensor starts the work after receiving the electric signal.
Therefore, the network device controls the first sensor to work within a preset time period, and the first sensor can be prevented from detecting the illumination intensity of the light at night. In addition, the effect of saving electricity can be achieved.
Optionally, since the day time is related to the current date, correspondingly, as shown in fig. 3, the method further includes the following steps:
in step 301, the current date is obtained.
In practice, the light intensity thresholds may be different for different dates, especially for different seasons, for example, the illumination intensity of about seven o 'clock every month and the illumination intensity of seven o' clock every sixty-month are obviously different, so that the network device can acquire the current date before controlling the alarm clock to send the alarm clock signal.
Step 302, according to the corresponding relationship between the pre-stored date and the light intensity threshold, determining a first light intensity threshold corresponding to the current date.
In an implementation, the network device may store a correspondence between a date and a light intensity threshold in advance, and determine a first light intensity threshold corresponding to the current date. For example, as shown in table 1, the network device may store a corresponding relationship between seven o 'clock on different dates and the light intensity threshold in advance, and the network device determines the first light intensity threshold according to the illumination intensity corresponding to the seven o' clock on the current date.
TABLE 1 corresponding relationship between seven o' clock and light intensity threshold on different dates
Date Intensity of illumination
Date 1 a
Date 2 b
Date 3 c
…… ……
Therefore, when the day time changes along with the date, the time that the alarm clock signal sounds is also guaranteed to be unchanged, the user does not need to adjust the alarm clock time, and the alarm clock can be conveniently used by the user.
Optionally, since the time of day is also greatly related to the current weather information, as shown in fig. 4, the method further includes the following steps:
step 401, obtaining current weather information.
Since the day time is greatly affected by the current weather information, for example, the illumination intensity of the seven o 'clock on a sunny day is different from the illumination intensity of the seven o' clock on a cloudy day, the network device may acquire the current weather information after acquiring the current date.
Step 402, determining a first light intensity threshold corresponding to the current weather information according to a corresponding relationship between the pre-stored weather information and the light intensity threshold.
In implementation, as shown in table 2, the network device may store a corresponding relationship between the weather information and the light intensity threshold in advance, and determine the first light intensity threshold corresponding to the current weather information.
TABLE 2 corresponding relationship between weather information and light intensity threshold
Weather information Intensity of illumination
Weather information 1 l
Weather information 2 m
Weather information 3 n
…… ……
Based on all the above, as shown in fig. 5, the specific process of the method for controlling an alarm clock signal may be as follows:
when the network device reaches the preset time period, such as the time period between 6 o 'clock and 8 o' clock as described above, the network device controls the first sensor to start working. The first sensor detects the current illumination intensity and sends the illumination intensity to the network device. Before the network device detects the current illumination intensity, the light intensity threshold corresponding to the current date can be searched according to table 1, then the light intensity threshold corresponding to the current weather information can be searched according to table 2, and then the first light intensity threshold is determined. When the network device detects that the illumination intensity exceeds a first light intensity threshold value, an electric signal for starting an alarm clock signal is sent to the alarm clock, and the alarm clock sends the alarm clock signal after receiving the electric signal, such as ringing or vibration. When the network device detects that the illumination intensity exceeds the first light intensity threshold value, the network device also controls the first sensor to stop working and controls the second sensor to start working respectively.
After the alarm clock signal rings, there are two cases, the first: if the user still sleeps at the moment, the second sensor detects the user, the network device receives the information sent by the second sensor, and the alarm clock signal is continuously sent. The user gets up after hearing the alarm clock signal, the second sensor cannot detect the user, the network device cannot receive the information sent by the second sensor, and then the network device controls the alarm clock to close the alarm clock signal. In the second case: at this time, the user gets up, the second sensor cannot detect the user, the network device cannot receive the information sent by the second sensor, and then the network device controls the alarm clock to turn off the alarm clock signal. And the network device controls the alarm clock to end the alarm clock signal and also controls the second sensor to stop working.
In this embodiment, the method is used to first obtain the illumination intensity detected by the first sensor, then detect the illumination intensity, when the illumination intensity is detected to exceed the first light intensity threshold, send an alarm clock signal, and finally end the alarm clock signal according to the detection condition of the second sensor. The time for sending the alarm clock signal is not required to be set by a user, so that the time can be saved, and the use by the user is facilitated.
Example two
The present disclosure also provides an apparatus for controlling an alarm clock signal, as shown in fig. 6, the apparatus including: a first acquisition module 610, an issue module 620, and an end module 630.
The first acquiring module 610 is configured to acquire the illumination intensity detected by the first sensor;
the issuing module 620 is configured to issue an alarm clock signal when the detected illumination intensity exceeds a first light intensity threshold;
the ending module 630 is configured to end the alarm clock signal when it is detected that the target detection object satisfies the preset displacement condition through the second sensor.
Optionally, as shown in fig. 7, the apparatus further includes a first switch module 640, where the first switch module 640 is configured to:
when the detected illumination intensity exceeds a first light intensity threshold value, controlling the first sensor to stop working;
and when a preset time period is reached, starting the first sensor.
Optionally, as shown in fig. 8, the apparatus further includes a second switch module 650, the second switch module 650 being configured to:
when the detected illumination intensity exceeds a first light intensity threshold value, starting the second sensor;
turning off the second sensor after the alarm clock signal is ended.
Optionally, as shown in fig. 9, the apparatus further includes: a second acquisition module 660 and a first determination module 670.
The second obtaining module 660 is configured to obtain current weather information;
the first determining module 670 is configured to determine a first light intensity threshold corresponding to the current weather information according to a pre-stored correspondence relationship between the weather information and the light intensity threshold.
Optionally, as shown in fig. 10, the apparatus further includes: a third acquisition module 680 and a second determination module 690.
The third obtaining module 680 is configured to obtain a current date;
the second determination module 690 is configured to determine the first light intensity threshold corresponding to the current date according to the pre-stored correspondence between the date and the light intensity threshold.
Optionally, the issuing module 620 is configured to issue an alarm clock signal if the current time is within a preset time period when the detected illumination intensity exceeds the first light intensity threshold.
With regard to the apparatus in the above-described embodiment, the specific manner in which each module performs the operation has been described in detail in the embodiment related to the method, and will not be elaborated here.
In this embodiment, acquire the illumination intensity that first sensor detected earlier, detect illumination intensity again, when detecting that illumination intensity exceeds first light intensity threshold value, send alarm clock signal, according to the detection conditions of second sensor again at last, end alarm clock signal. The time for sending the alarm clock signal is not required to be set by a user, so that the time can be saved, and the use by the user is facilitated.
It should be noted that: the device for controlling an alarm clock signal provided in the above embodiment is exemplified by only the division of the above functional modules when controlling an alarm clock signal, and in practical applications, the above function distribution may be completed by different functional modules as needed, that is, the internal structure of the device is divided into different functional modules to complete all or part of the above described functions. In addition, the apparatus for controlling an alarm clock signal and the method for controlling an alarm clock signal provided by the above embodiments belong to the same concept, and specific implementation processes thereof are detailed in the method embodiments and are not described herein again.
EXAMPLE III
The present disclosure also provides an electronic device, which may be a network device such as a router, a gateway, etc., or an intelligent alarm clock, etc. The electronic device comprises a processor and a memory, wherein at least one instruction is stored in the memory, and the instruction is loaded and executed by the processor to realize the method for controlling the alarm clock signal in the first embodiment.
Fig. 11 is a block diagram illustrating an electronic device 1100 in accordance with an example embodiment. For example, the electronic device 1100 may be provided as a router. Referring to fig. 11, electronic device 1100 includes a processing component 1122 that further includes one or more processors and memory resources, represented by memory 1132, for storing instructions, such as application programs, that are executable by processing component 1122. The application programs stored in memory 1132 may include one or more modules that each correspond to a set of instructions. Further, the processing component 1122 is configured to execute instructions to perform the above-described method of controlling an alarm clock signal.
The electronic device 1100 may also include a power component 1126 configured to perform power management of the electronic device 1100, a wired or wireless network interface 1150 configured to connect the electronic device 1100 to a network, and an input/output (I/O) interface 1158. The electronic device 1100 may operate based on an operating system stored in memory 1132, such as Windows Server, Mac OS XTM, UnixTM, LinuxTM, FreeBSDTM, or the like.
Electronic device 1100 may include memory, and one or more programs, where the one or more programs are stored in the memory and configured to be executed by the one or more processors include instructions for:
acquiring the illumination intensity detected by a first sensor;
when the detected illumination intensity exceeds a first light intensity threshold value, an alarm clock signal is sent out;
and when the target detection object detected by the second sensor meets the preset displacement condition, ending the alarm clock signal.
Optionally, the method further includes:
when the detected illumination intensity exceeds a first light intensity threshold value, controlling the first sensor to stop working;
and when a preset time period is reached, starting the first sensor.
Optionally, the method further includes:
when the detected illumination intensity exceeds a first light intensity threshold value, starting the second sensor;
turning off the second sensor after the alarm clock signal is ended.
Optionally, the method further includes:
acquiring current weather information;
and determining a first light intensity threshold value corresponding to the current weather information according to the corresponding relation between the pre-stored weather information and the light intensity threshold value.
Optionally, the method further includes:
acquiring a current date;
and determining a first light intensity threshold corresponding to the current date according to the corresponding relation between the pre-stored date and the light intensity threshold.
Optionally, when the detected illumination intensity exceeds the first light intensity threshold, the sending an alarm clock signal includes:
and when the detected illumination intensity exceeds a first light intensity threshold value, if the current time is within a preset time period, an alarm clock signal is sent out.
In the embodiment of the disclosure, the illumination intensity detected by the first sensor is firstly obtained, then the illumination intensity is detected, when the illumination intensity is detected to exceed the first light intensity threshold value, the alarm clock signal is sent out, and finally the alarm clock signal is ended according to the detection condition of the second sensor. The time for sending the alarm clock signal is not required to be set by a user, so that the time can be saved, and the use by the user is facilitated.
Other embodiments of the disclosure will be apparent to those skilled in the art from consideration of the specification and practice of the disclosure disclosed herein. This application is intended to cover any variations, uses, or adaptations of the disclosure following, in general, the principles of the disclosure and including such departures from the present disclosure as come within known or customary practice within the art to which the disclosure pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the disclosure being indicated by the following claims.
It will be understood that the present disclosure is not limited to the precise arrangements described above and shown in the drawings and that various modifications and changes may be made without departing from the scope thereof. The scope of the present disclosure is limited only by the appended claims.

Claims (4)

1. A method of controlling an alarm clock signal, the method comprising:
acquiring current weather information;
determining a first light intensity threshold value corresponding to the current weather information according to the corresponding relation between the pre-stored weather information and the light intensity threshold value;
when a preset time period is reached, starting a first sensor;
acquiring the illumination intensity detected by a first sensor;
when the detected illumination intensity exceeds a first light intensity threshold value, if the current time is within a preset time period, an alarm clock signal is sent out, the first sensor is controlled to stop working, and a second sensor is started;
when the second sensor detects that the target detection object leaves the detection area, the alarm clock signal is ended;
turning off the second sensor after the alarm clock signal is ended.
2. An apparatus for controlling an alarm clock signal, the apparatus comprising:
the second acquisition module is used for acquiring current weather information;
the first determination module is used for determining a first light intensity threshold corresponding to the current weather information according to the corresponding relation between the pre-stored weather information and the light intensity threshold;
the first acquisition module is used for acquiring the illumination intensity detected by the first sensor;
the sending module is used for sending an alarm clock signal if the current time is within a preset time period when the detected illumination intensity exceeds a first light intensity threshold;
the end module is used for ending the alarm clock signal when the second sensor detects that the target detection object leaves the detection area;
the first switch module is used for controlling the first sensor to stop working when the detected illumination intensity exceeds a first light intensity threshold value; when a preset time period is reached, starting the first sensor;
the second switch module is used for starting the second sensor when the detected illumination intensity exceeds a first light intensity threshold value; turning off the second sensor after the alarm clock signal is ended.
3. An electronic device, comprising a processor and a memory, wherein at least one instruction is stored in the memory, and wherein the instruction is loaded and executed by the processor to implement the method of controlling an alarm clock signal according to claim 1.
4. A computer-readable storage medium having stored therein at least one instruction, which is loaded and executed by a processor, to implement a method of controlling an alarm clock signal according to claim 1.
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 CN107390503A (en) 2017-11-24
CN107390503B true 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)

Families Citing this family (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
CN112650045B (en) * 2020-12-26 2022-04-15 东方诺华科技(深圳)有限公司 Multifunctional alarm clock

Family Cites Families (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
CN104267948B (en) * 2014-09-23 2017-12-01 三星电子(中国)研发中心 The alarm clock control method and device of intelligent mobile terminal
CN104361486A (en) * 2014-11-27 2015-02-18 小米科技有限责任公司 Alarm clock reminding method and device
CN104869260B (en) * 2015-06-19 2017-09-01 上海斐讯数据通信技术有限公司 A kind of method and system of turning-off mobile terminal alarm clock
CN105120057B (en) * 2015-06-26 2019-04-19 小米科技有限责任公司 Alarm clock control method and device
CN105425657B (en) * 2015-10-30 2018-09-14 小米科技有限责任公司 Alarm clock jingle bell control method and 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

Also Published As

Publication number Publication date
CN107390503A (en) 2017-11-24

Similar Documents

Publication Publication Date Title
US10368312B2 (en) Method, device, and system for detecting device power
EP3151525A1 (en) Mobile terminal antenna controlling method and mobile terminal
CN106332159B (en) WIFI abnormity automatic reconnection device, system and method
US20150233985A1 (en) Method, device and computer storage medium for detecting power consumption of an application
CN108399526A (en) Schedule based reminding method and device
CN104754827A (en) Equipment state indicator lamp control method and equipment state indicator lamp control device
CN107390503B (en) Method and device for controlling alarm clock signal
KR101214235B1 (en) Wireless sensing module, wireless lighting controller and wireless lighting system
CN108449785B (en) EGPRS communication method and system based on hierarchical energy consumption management
CN107708063A (en) Signal map generation method and device and electronic equipment
US20220321847A1 (en) Trail camera
CN103294512A (en) Delay start method and system for timer
CN105845090B (en) A kind of backlight adjusting method and device
CN107525592B (en) Conference room monitoring system, sensor equipment and conference room monitoring method
CN110674718B (en) Face recognition method and electronic equipment
CN105739686A (en) Control method and device of mobile terminal
CN105490902A (en) Intelligent home system, and wireless information acquisition equipment control method and apparatus
CN103716864A (en) Information processing method, system and electronic device
CN111981700A (en) Water heater control method and device, water heater and readable storage medium
CN106453968A (en) Terminal information reminding method and system
CN104968121A (en) Automatic learning light control method and apparatus
CN110134047A (en) Method for airing, device and storage medium
KR102367356B1 (en) Controlling Current Consumption of Electronic Device
CN110139294A (en) A kind of wake-up area determination method, the network equipment and user terminal
CN110687807A (en) Control method, device, equipment and medium of intelligent curtain

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