CN109862186B - Control method, device, equipment and storage medium - Google Patents

Control method, device, equipment and storage medium Download PDF

Info

Publication number
CN109862186B
CN109862186B CN201910087964.7A CN201910087964A CN109862186B CN 109862186 B CN109862186 B CN 109862186B CN 201910087964 A CN201910087964 A CN 201910087964A CN 109862186 B CN109862186 B CN 109862186B
Authority
CN
China
Prior art keywords
lamp
identification
signal source
terminal equipment
bedroom
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
CN201910087964.7A
Other languages
Chinese (zh)
Other versions
CN109862186A (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.)
Jiangsu hengzhihe Technology Co.,Ltd.
Original Assignee
Kunshan Pinyuan Intellectual Property Operating 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 Kunshan Pinyuan Intellectual Property Operating Technology Co ltd filed Critical Kunshan Pinyuan Intellectual Property Operating Technology Co ltd
Priority to CN201910087964.7A priority Critical patent/CN109862186B/en
Publication of CN109862186A publication Critical patent/CN109862186A/en
Application granted granted Critical
Publication of CN109862186B publication Critical patent/CN109862186B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Telephone Function (AREA)

Abstract

The invention discloses a control method, a control device, control equipment and a storage medium. The method comprises the following steps: when detecting that the terminal equipment is provided with a sleep reminding alarm clock, acquiring the identification and the signal state information of a received signal source, and determining the position of the terminal equipment according to the identification and the signal state information of the signal source; when the bedroom lamp is in a closed state and the position of the terminal equipment is an area corresponding to the bedroom, judging whether the terminal equipment is in a use state; if not, the sleep reminding alarm clock is controlled to be turned off, and the technical scheme of the invention can realize that the reminding alarm clock related to sleep is automatically turned off when the user is in a sleep state, thereby improving the use experience of the user.

Description

Control method, device, equipment and storage medium
Technical Field
Embodiments of the present invention relate to terminal device technologies, and in particular, to a control method, an apparatus, a device, and a storage medium.
Background
At present, due to the characteristics of the alarm, a user is reminded through set ring, volume and mode when the alarm is ready, and once the alarm is set, the alarm cannot be changed if the alarm is not manually changed.
In actual use, when an alarm needs to be added at night to remind a user of sleeping, a problem occurs, if the user rings to a point and sleeps again each time, the user will be later than the expected time, so that a time is generally set, and the user must sleep at the time. In fact, when much time is earlier than the time, the user can go to bed, but when the time set by the alarm clock is up, the alarm clock rings again, people get loud, the alarm clock is turned off and turned on every day, and the user forgets, the user can be in sleep, but the set sleep alarm clock wakes up the user, so that the use experience of the user is reduced, and the life of the user is inconvenient.
Disclosure of Invention
The embodiment of the invention provides a control method, a control device, control equipment and a storage medium, so that a reminding alarm clock related to sleep is automatically turned off when a user is in a sleep state, and the use experience of the user is improved.
In a first aspect, an embodiment of the present invention provides a control method, including: when detecting that the terminal equipment is provided with a sleep reminding alarm clock, acquiring the identification and the signal state information of a received signal source, and determining the position of the terminal equipment according to the identification and the signal state information of the signal source;
when the bedroom lamp is in a closed state and the position of the terminal equipment is an area corresponding to the bedroom, judging whether the terminal equipment is in a use state;
if not, controlling the sleep reminding alarm clock to be turned off.
Further, before acquiring the identifier and the signal status information of the received signal source and determining the position of the terminal device according to the identifier and the signal status information of the signal source, the method further includes:
and establishing Bluetooth connection between the terminal equipment and the bedroom lamp, the living room lamp, the kitchen lamp and the bathroom lamp in advance.
Further, the identification of the signal source includes: the identification of the signal source corresponding to the bedroom lamp, the identification of the signal source corresponding to the living room lamp, the identification of the signal source corresponding to the kitchen lamp and the identification of the signal source corresponding to the bathroom lamp.
Further, the method also comprises the following steps:
and when the bedroom lamp is in a closed state, the position of the terminal equipment is an area corresponding to the bedroom, and the living room lamp is controlled to be closed when the living room lamp is in an open state.
In a second aspect, an embodiment of the present invention further provides a control apparatus, where the apparatus includes: the acquisition module is used for acquiring the received signal source identification and signal state information when the terminal equipment is detected to be provided with the sleep reminding alarm clock, and determining the position of the terminal equipment according to the signal source identification and the signal state information;
the judging module is used for judging whether the terminal equipment is in a use state or not when the bedroom lamp is in a closed state and the position of the terminal equipment is an area corresponding to the bedroom;
and the first control module is used for controlling the sleep reminding alarm clock to be turned off if the sleep reminding alarm clock is not started.
Further, the method also comprises the following steps:
the establishing module is used for pre-establishing Bluetooth connection between the terminal equipment and the bedroom lamp, the living room lamp, the kitchen lamp and the bathroom lamp before acquiring the received identification and signal state information of the signal source and determining the position of the terminal equipment according to the identification and the signal state information of the signal source.
Further, the identification of the signal source includes: the identification of the signal source corresponding to the bedroom lamp, the identification of the signal source corresponding to the living room lamp, the identification of the signal source corresponding to the kitchen lamp and the identification of the signal source corresponding to the bathroom lamp.
Further, the method also comprises the following steps:
and the second control module is used for controlling the closing of the living room lamp when the bedroom lamp is in a closed state, the position of the terminal equipment is an area corresponding to the bedroom, and the living room lamp is in an open state.
In a third aspect, an embodiment of the present invention further provides a computer device, including a memory, a processor, and a computer program stored on the memory and executable on the processor, where the processor implements the control method according to any one of the embodiments of the present invention when executing the program.
In a fourth aspect, the embodiment of the present invention further provides a computer-readable storage medium, on which a computer program is stored, and the computer program, when executed by a processor, implements the control method according to any one of the embodiments of the present invention.
The embodiment of the invention acquires the identification and the signal state information of the received signal source when detecting that the terminal equipment is provided with the sleep reminding alarm clock, and determines the position of the terminal equipment according to the identification and the signal state information of the signal source; when the bedroom lamp is in a closed state and the position of the terminal equipment is an area corresponding to the bedroom, judging whether the terminal equipment is in a use state; if not, the sleep reminding alarm clock is controlled to be turned off, so that the reminding alarm clock related to sleep can be automatically turned off when the user is in a sleep state, and the use experience of the user is improved.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings needed to be used in the embodiments will be briefly described below, it should be understood that the following drawings only illustrate some embodiments of the present invention and therefore should not be considered as limiting the scope, and for those skilled in the art, other related drawings can be obtained according to the drawings without inventive efforts.
FIG. 1 is a flow chart of a control method according to a first embodiment of the present invention;
FIG. 2 is a flowchart of a control method according to a second embodiment of the present invention;
fig. 3 is a schematic structural diagram of a control device according to a third embodiment of the present invention;
fig. 4 is a schematic structural diagram of a computer device in the fourth embodiment of the present invention.
Detailed Description
The present invention will be described in further detail with reference to the accompanying drawings and examples. It is to be understood that the specific embodiments described herein are merely illustrative of the invention and are not limiting of the invention. It should be further noted that, for the convenience of description, only some of the structures related to the present invention are shown in the drawings, not all of the structures.
It should be noted that: like reference numbers and letters refer to like items in the following figures, and thus, once an item is defined in one figure, it need not be further defined and explained in subsequent figures. Meanwhile, in the description of the present invention, the terms "first", "second", and the like are used only for distinguishing the description, and are not to be construed as indicating or implying relative importance.
Example one
Fig. 1 is a flowchart of a control method provided in an embodiment of the present invention, where this embodiment is applicable to a control situation, and the method may be executed by a control device in the embodiment of the present invention, and the device may be implemented in a software and/or hardware manner, as shown in fig. 1, the method specifically includes the following steps:
and S110, when the terminal equipment is detected to be provided with the sleep reminding alarm clock, acquiring the received signal source identification and signal state information, and determining the position of the terminal equipment according to the signal source identification and the signal state information.
The terminal device may be a smart phone, a smart watch, a smart band, or other smart wearable devices, which is not limited in this embodiment of the present invention.
The sleep reminding alarm clock is used for reminding a user to sleep, and for example, the sleep reminding alarm clock set by the user is 11:00 in the afternoon, and then the user is reminded that the user should sleep at 11:00 in the afternoon.
Specifically, when the terminal device is detected to be provided with the sleep reminding alarm clock, the reminding time corresponding to the sleep reminding alarm clock is obtained, and the identification and the signal state information of the signal source received in a period before the reminding time are obtained.
The signal source is a device capable of transmitting wireless signals, such as a WiFi hotspot and a bluetooth device providing WiFi access. The identifier of the signal source may be a WiFi identifier of a signal source transmitting WiFi, or may also be a bluetooth identifier of a signal source transmitting bluetooth, and the like, which is not limited in this embodiment. The signal state information is a parameter that can characterize the state of the wireless signal at the current location, typically signal state in terms of signal strength.
Optionally, before acquiring the identifier and the signal status information of the received signal source and determining the location of the terminal device according to the identifier and the signal status information of the signal source, the method further includes:
and establishing Bluetooth connection between the terminal equipment and the bedroom lamp, the living room lamp, the kitchen lamp and the bathroom lamp in advance.
The bedroom lamp, the living room lamp, the kitchen lamp and the bathroom lamp are provided with a Bluetooth connection function. It should be noted that only bluetooth connections between the terminal device and the bedroom light and the living room light may be established. Specifically, which lamps and terminal devices are connected through bluetooth may be set manually by a user, which is not limited in the embodiment of the present invention.
Optionally, the identifier of the signal source includes: the identification of the signal source corresponding to the bedroom lamp, the identification of the signal source corresponding to the living room lamp, the identification of the signal source corresponding to the kitchen lamp and the identification of the signal source corresponding to the bathroom lamp.
The identifier of the signal source corresponding to the bedroom lamp may be a bluetooth identifier preset by a user, or may be an initial bluetooth identifier that is not changed, which is not limited in this embodiment of the present invention.
The identifier of the signal source corresponding to the hall lantern may be a bluetooth identifier preset by a user, or may be an initial bluetooth identifier that is not changed, which is not limited in this embodiment of the present invention.
The identifier of the signal source corresponding to the kitchen lamp may be a bluetooth identifier preset by a user, or may be an initial bluetooth identifier that is not changed, which is not limited in the embodiment of the present invention.
The identifier of the signal source corresponding to the toilet lamp may be a bluetooth identifier preset by a user, or may also be an initial bluetooth identifier that is not changed, which is not limited in this embodiment of the present invention.
In a specific example, the bluetooth connection between the terminal device and the bedroom lamp, the living room lamp, the kitchen lamp and the bathroom lamp is pre-established, the terminal device obtains a bluetooth signal of the bedroom lamp, the identifier of the bluetooth signal is the bedroom lamp, and the signal state information is the bluetooth signal intensity of the bedroom lamp; acquiring a Bluetooth signal of the hall lamp, wherein the identifier of the Bluetooth signal is the hall lamp, and the signal state information is the Bluetooth signal intensity of the hall lamp; the Bluetooth signal who acquires the kitchen lamp, Bluetooth signal's sign is the kitchen lamp, and signal status information is the Bluetooth signal intensity of kitchen lamp, acquires the Bluetooth signal of bathroom lamp, and Bluetooth signal's sign is the bathroom lamp, and signal status information is the Bluetooth signal intensity of bathroom lamp.
Specifically, when the terminal equipment is detected to be provided with the sleep reminding alarm clock, the received signal source identification and signal state information are obtained, and the position of the terminal equipment is determined according to the signal source identification and the signal state information. For example, the position of the terminal device may be determined according to the identifier of the signal source corresponding to the bedroom lamp, the identifier of the signal source corresponding to the living room lamp, the identifier of the signal source corresponding to the kitchen lamp, the identifier of the signal source corresponding to the toilet lamp, the signal state information corresponding to the bedroom lamp, the signal state information corresponding to the living room lamp, the signal state information corresponding to the kitchen lamp, and the signal state information corresponding to the toilet lamp, when the terminal device is detected to be provided with the sleep reminding alarm clock of 11:00 pm.
S120, when the bedroom lamp is in the closed state and the position of the terminal device is the area corresponding to the bedroom, judging whether the terminal device is in the use state; if yes, go to S130, otherwise go to S140.
The terminal device knows that the current state of the bedroom lamp is the closed state by establishing Bluetooth connection with the bedroom lamp; or actively sending feedback information to the terminal equipment when the bedroom lamp is in the off state. The embodiments of the present invention are not limited in this regard.
And the position of the terminal equipment is determined according to the identification of the signal source and the signal state information.
Specifically, when the bedroom lamp is in the off state and the position of the terminal device is the area corresponding to the bedroom, whether the terminal device is in the use state is judged, for example, the state of the bedroom lamp is determined in advance, and if the bedroom lamp is in the off state and the position of the terminal device is determined to be the area corresponding to the bedroom according to the identification of the signal source and the signal state information, whether the terminal device is in the use state is judged.
And S130, keeping the sleep reminding alarm clock on.
Specifically, the sleep reminding alarm clock is kept on, namely other operations are not performed, and the original alarm clock is kept unchanged.
And S140, controlling the sleep reminding alarm clock to be turned off.
Specifically, the mode of controlling the sleep reminding alarm clock to be turned off may be that an instruction for turning off the sleep reminding alarm clock is generated, and the terminal device turns off the sleep reminding alarm clock according to the instruction for turning off the sleep reminding alarm clock.
According to the technical scheme of the embodiment, when the fact that the terminal equipment is provided with the sleep reminding alarm clock is detected, the received signal source identification and signal state information are obtained, and the position of the terminal equipment is determined according to the signal source identification and the signal state information; when the bedroom lamp is in a closed state and the position of the terminal equipment is an area corresponding to the bedroom, judging whether the terminal equipment is in a use state; if not, the sleep reminding alarm clock is controlled to be turned off, so that the reminding alarm clock related to sleep can be automatically turned off when the user is in a sleep state, and the use experience of the user is improved.
Example two
Fig. 2 is a flowchart of a control method in a second embodiment of the present invention, which is optimized based on the above embodiment, and in this embodiment, the method further includes: and when the bedroom lamp is in a closed state, the position of the terminal equipment is the area corresponding to the bedroom, and the living room lamp is in an open state, controlling the living room lamp to be closed.
As shown in fig. 2, the method of this embodiment specifically includes the following steps:
s210, when the fact that the terminal equipment is provided with the sleep reminding alarm clock is detected, the received signal source identification and signal state information are obtained, and the position of the terminal equipment is determined according to the signal source identification and the signal state information.
S220, when the bedroom lamp is in the closed state and the position of the terminal device is the area corresponding to the bedroom, judging whether the terminal device is in the use state; if yes, go to S130, otherwise go to S140.
And S230, keeping the sleep reminding alarm clock on.
And S240, controlling the sleep reminding alarm clock to be turned off.
And S250, when the bedroom lamp is in a closed state, the position of the terminal device is an area corresponding to the bedroom, and the living room lamp is in an open state, controlling the living room lamp to be closed.
The state of the hall lantern can be that the terminal device knows that the current state of the hall lantern is an open state through establishing Bluetooth connection with the hall lantern; or, when the living room lamp is in the on state, the feedback information may be periodically sent to the terminal device. The embodiments of the present invention are not limited in this regard.
The method for controlling the closing of the hall lantern can be used for generating an instruction for closing the hall lantern, and can also be used for sending the current state of the hall lantern to the terminal equipment so as to remind the user to close the hall lantern.
Specifically, when the bedroom lamp is in the off state, the position of the terminal device is the area corresponding to the bedroom, and the living room lamp is in the on state, the living room lamp is controlled to be off.
In a specific example, the alarm on the mobile phone confirms the state of the bedroom lamp through interaction with the bedroom lamp, and when the bedroom lamp is turned off, a lamp turning-off signal is sent to the mobile phone. Through Bluetooth positioning, or device interaction, whether the mobile phone is in a bedroom or a living room is determined. The mobile phone is connected with the lamp to confirm the state of the lamp, and the position of the mobile phone is confirmed to be in a bedroom or a living room through connection with different lamps, so that whether the light of the room is turned off or not is confirmed. When the mobile phone is in a bedroom and is not in a use state, and the lamp in the bedroom is turned off, the user is considered to have slept. If the room has a plurality of people, the judgment is carried out according to the mobile phones of each person, the time of sleeping is up, and if the mobile phones of all people are in the bedroom and the hall lamp is on, the state of the hall lamp is reminded to the user. Alerting the user of the last sleeping device to acknowledge.
According to the technical scheme of the embodiment, when the fact that the terminal equipment is provided with the sleep reminding alarm clock is detected, the received signal source identification and signal state information are obtained, and the position of the terminal equipment is determined according to the signal source identification and the signal state information; when the bedroom lamp is in a closed state and the position of the terminal equipment is an area corresponding to the bedroom, judging whether the terminal equipment is in a use state; if not, the sleep reminding alarm clock is controlled to be turned off, the bedroom lamp is in the turned-off state, the position of the terminal device is the area corresponding to the bedroom, and the living room lamp is controlled to be turned off when being in the turned-on state, so that the sleep reminding alarm clock can be automatically turned off when the user is in the sleep state, and the use experience of the user is improved.
EXAMPLE III
Fig. 3 is a schematic structural diagram of a control device according to a third embodiment of the present invention. The present embodiment may be applicable to the case of control, where the apparatus may be implemented in a software and/or hardware manner, and the apparatus may be integrated in any device that provides a function of control, as shown in fig. 3, where the control apparatus specifically includes: an acquisition module 310, a determination module 320, and a first control module 330.
The acquiring module 310 is configured to acquire the identifier and the signal state information of the received signal source when it is detected that the terminal device is provided with the sleep reminding alarm clock, and determine the position of the terminal device according to the identifier and the signal state information of the signal source;
the judging module 320 is configured to judge whether the terminal device is in a use state when the bedroom lamp is in a turned-off state and the position of the terminal device is in a region corresponding to the bedroom;
and the first control module 330 is configured to control the sleep reminding alarm clock to be turned off if the sleep reminding alarm clock is not turned on.
Optionally, the method further includes:
the establishing module is used for pre-establishing Bluetooth connection between the terminal equipment and the bedroom lamp, the living room lamp, the kitchen lamp and the bathroom lamp before acquiring the received identification and signal state information of the signal source and determining the position of the terminal equipment according to the identification and the signal state information of the signal source.
Optionally, the identifier of the signal source includes: the identification of the signal source corresponding to the bedroom lamp, the identification of the signal source corresponding to the living room lamp, the identification of the signal source corresponding to the kitchen lamp and the identification of the signal source corresponding to the bathroom lamp.
Optionally, the method further includes:
and the second control module is used for controlling the closing of the living room lamp when the bedroom lamp is in a closed state, the position of the terminal equipment is an area corresponding to the bedroom, and the living room lamp is in an open state.
The product can execute the method provided by any embodiment of the invention, and has corresponding functional modules and beneficial effects of the execution method.
According to the technical scheme of the embodiment, when the fact that the terminal equipment is provided with the sleep reminding alarm clock is detected, the received signal source identification and signal state information are obtained, and the position of the terminal equipment is determined according to the signal source identification and the signal state information; when the bedroom lamp is in a closed state and the position of the terminal equipment is an area corresponding to the bedroom, judging whether the terminal equipment is in a use state; if not, the sleep reminding alarm clock is controlled to be turned off, so that the reminding alarm clock related to sleep can be automatically turned off when the user is in a sleep state, and the use experience of the user is improved.
Example four
Fig. 4 is a schematic structural diagram of a computer device in the fourth embodiment of the present invention. FIG. 4 illustrates a block diagram of an exemplary computer device 12 suitable for use in implementing embodiments of the present invention. The computer device 12 shown in FIG. 4 is only one example and should not bring any limitations to the functionality or scope of use of embodiments of the present invention.
As shown in FIG. 4, computer device 12 is in the form of a general purpose computing device. The components of computer device 12 may include, but are not limited to: one or more processors or processing units 16, a system memory 28, and a bus 18 that couples various system components including the system memory 28 and the processing unit 16.
Bus 18 represents one or more of any of several types of bus structures, including a memory bus or memory controller, a peripheral bus, an accelerated graphics port, and a processor or local bus using any of a variety of bus architectures. By way of example, such architectures include, but are not limited to, Industry Standard Architecture (ISA) bus, micro-channel architecture (MAC) bus, enhanced ISA bus, Video Electronics Standards Association (VESA) local bus, and Peripheral Component Interconnect (PCI) bus.
Computer device 12 typically includes a variety of computer system readable media. Such media may be any available media that is accessible by computer device 12 and includes both volatile and nonvolatile media, removable and non-removable media.
The system memory 28 may include computer system readable media in the form of volatile memory, such as Random Access Memory (RAM)30 and/or cache memory 32. Computer device 12 may further include other removable/non-removable, volatile/nonvolatile computer system storage media. By way of example only, storage system 34 may be used to read from and write to non-removable, nonvolatile magnetic media (not shown in FIG. 4, and commonly referred to as a "hard drive"). Although not shown in FIG. 4, a magnetic disk drive for reading from and writing to a removable, nonvolatile magnetic disk (e.g., a "floppy disk") and an optical disk drive for reading from or writing to a removable, nonvolatile optical disk (e.g., a CD-ROM, DVD-ROM, or other optical media) may be provided. In these cases, each drive may be connected to bus 18 by one or more data media interfaces. Memory 28 may include at least one program product having a set (e.g., at least one) of program modules that are configured to carry out the functions of embodiments of the invention.
A program/utility 40 having a set (at least one) of program modules 42 may be stored, for example, in memory 28, such program modules 42 including, but not limited to, an operating system, one or more application programs, other program modules, and program data, each of which examples or some combination thereof may comprise an implementation of a network environment. Program modules 42 generally carry out the functions and/or methodologies of the described embodiments of the invention.
Computer device 12 may also communicate with one or more external devices 14 (e.g., keyboard, pointing device, display 24, etc.), with one or more devices that enable a user to interact with computer device 12, and/or with any devices (e.g., network card, modem, etc.) that enable computer device 12 to communicate with one or more other computing devices. Such communication may be through an input/output (I/O) interface 22. In the computer device 12 of the present embodiment, the display 24 is not provided as a separate body but is embedded in the mirror surface, and when the display surface of the display 24 is not displayed, the display surface of the display 24 and the mirror surface are visually integrated. Also, computer device 12 may communicate with one or more networks (e.g., a Local Area Network (LAN), a Wide Area Network (WAN), and/or a public network such as the Internet) via network adapter 20. As shown, network adapter 20 communicates with the other modules of computer device 12 via bus 18. It should be understood that although not shown in the figures, other hardware and/or software modules may be used in conjunction with computer device 12, including but not limited to: microcode, device drivers, redundant processing units, external disk drive arrays, RAID systems, tape drives, and data backup storage systems, among others.
The processing unit 16 executes various functional applications and data processing by executing programs stored in the system memory 28, for example, to implement the control method provided by the embodiment of the present invention: when detecting that the terminal equipment is provided with a sleep reminding alarm clock, acquiring the identification and the signal state information of a received signal source, and determining the position of the terminal equipment according to the identification and the signal state information of the signal source; when the bedroom lamp is in a closed state and the position of the terminal equipment is an area corresponding to the bedroom, judging whether the terminal equipment is in a use state; if not, controlling the sleep reminding alarm clock to be turned off.
EXAMPLE five
Fifth embodiment of the present invention provides a computer-readable storage medium, on which a computer program is stored, where the computer program, when executed by a processor, implements the control method provided in all the embodiments of the present invention: when detecting that the terminal equipment is provided with a sleep reminding alarm clock, acquiring the identification and the signal state information of a received signal source, and determining the position of the terminal equipment according to the identification and the signal state information of the signal source; when the bedroom lamp is in a closed state and the position of the terminal equipment is an area corresponding to the bedroom, judging whether the terminal equipment is in a use state; if not, controlling the sleep reminding alarm clock to be turned off.
Any combination of one or more computer-readable media may be employed. The computer readable medium may be a computer readable signal medium or a computer readable storage medium. A computer readable storage medium may be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the foregoing. More specific examples (a non-exhaustive list) of the computer readable storage medium would include the following: an electrical connection having one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In the context of this document, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device.
A computer readable signal medium may include a propagated data signal with computer readable program code embodied therein, for example, in baseband or as part of a carrier wave. Such a propagated data signal may take any of a variety of forms, including, but not limited to, electro-magnetic, optical, or any suitable combination thereof. A computer readable signal medium may also be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device.
Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to wireless, wireline, optical fiber cable, RF, etc., or any suitable combination of the foregoing.
Computer program code for carrying out operations for aspects of the present invention may be written in any combination of one or more programming languages, including an object oriented programming language such as Java, Smalltalk, C + + or the like and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any type of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or the connection may be made to an external computer (for example, through the Internet using an Internet service provider).
It is to be noted that the foregoing is only illustrative of the preferred embodiments of the present invention and the technical principles employed. It will be understood by those skilled in the art that the present invention is not limited to the particular embodiments described herein, but is capable of various obvious changes, rearrangements and substitutions as will now become apparent to those skilled in the art without departing from the scope of the invention. Therefore, although the present invention has been described in greater detail by the above embodiments, the present invention is not limited to the above embodiments, and may include other equivalent embodiments without departing from the spirit of the present invention, and the scope of the present invention is determined by the scope of the appended claims.

Claims (4)

1. A control method, comprising:
when detecting that the terminal equipment is provided with a sleep reminding alarm clock, acquiring the identification and the signal state information of a received signal source, and determining the position of the terminal equipment according to the identification and the signal state information of the signal source;
the method comprises the following steps of obtaining the received signal source identification and signal state information, and before determining the position of the terminal device according to the signal source identification and the signal state information, the method also comprises the following steps:
the method comprises the steps that Bluetooth connection between terminal equipment and a bedroom lamp, a living room lamp, a kitchen lamp and a bathroom lamp is established in advance;
the identification of the signal source comprises: the identification of the signal source corresponding to the bedroom lamp, the identification of the signal source corresponding to the living room lamp, the identification of the signal source corresponding to the kitchen lamp and the identification of the signal source corresponding to the toilet lamp;
when the bedroom lamp is in a closed state and the position of the terminal equipment is an area corresponding to the bedroom, judging whether the terminal equipment is in a use state;
if not, controlling the sleep reminding alarm clock to be turned off;
and when the bedroom lamp is in a closed state, the position of the terminal equipment is an area corresponding to the bedroom, and the living room lamp is controlled to be closed when the living room lamp is in an open state.
2. A control device, comprising:
the acquisition module is used for acquiring the received signal source identification and signal state information when the terminal equipment is detected to be provided with the sleep reminding alarm clock, and determining the position of the terminal equipment according to the signal source identification and the signal state information;
the system comprises an establishing module, a signal processing module and a signal processing module, wherein the establishing module is used for pre-establishing Bluetooth connection between the terminal equipment and a bedroom lamp, a living room lamp, a kitchen lamp and a bathroom lamp before acquiring the received identification and signal state information of a signal source and determining the position of the terminal equipment according to the identification and signal state information of the signal source;
the identification of the signal source comprises: the identification of the signal source corresponding to the bedroom lamp, the identification of the signal source corresponding to the living room lamp, the identification of the signal source corresponding to the kitchen lamp and the identification of the signal source corresponding to the toilet lamp;
the judging module is used for judging whether the terminal equipment is in a use state or not when the bedroom lamp is in a closed state and the position of the terminal equipment is an area corresponding to the bedroom;
the first control module is used for controlling the sleep reminding alarm clock to be turned off if the sleep reminding alarm clock is not started;
and the second control module is used for controlling the closing of the living room lamp when the bedroom lamp is in a closed state, the position of the terminal equipment is an area corresponding to the bedroom, and the living room lamp is in an open state.
3. A computer device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, characterized in that the processor implements the method as claimed in claim 1 when executing the program.
4. A computer-readable storage medium, on which a computer program is stored which, when being executed by a processor, carries out the method as claimed in claim 1.
CN201910087964.7A 2019-01-29 2019-01-29 Control method, device, equipment and storage medium Active CN109862186B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910087964.7A CN109862186B (en) 2019-01-29 2019-01-29 Control method, device, equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910087964.7A CN109862186B (en) 2019-01-29 2019-01-29 Control method, device, equipment and storage medium

Publications (2)

Publication Number Publication Date
CN109862186A CN109862186A (en) 2019-06-07
CN109862186B true CN109862186B (en) 2020-12-15

Family

ID=66896801

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910087964.7A Active CN109862186B (en) 2019-01-29 2019-01-29 Control method, device, equipment and storage medium

Country Status (1)

Country Link
CN (1) CN109862186B (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2015200342A1 (en) * 2014-06-23 2015-12-30 Google, Inc. Methods and apparatus for using smart environment devices via application program interfaces
CN105208735A (en) * 2015-10-16 2015-12-30 付参军 Household light control system performing control by using mobile phone and radio frequency remote controller
CN206710818U (en) * 2017-05-09 2017-12-05 青岛理工大学 Intelligent home control system based on ZigBee and cloud computing
CN107786717A (en) * 2016-08-24 2018-03-09 深圳市鼎芯无限科技有限公司 A kind of control method of intelligent lamp
CN108404275A (en) * 2018-02-26 2018-08-17 广东欧珀移动通信有限公司 Training method of sleeping and relevant device

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104198989B (en) * 2014-09-16 2017-10-20 北京邮电大学 A kind of mixed mode indoor locating system based on lighting source and Wi Fi signals
KR20150105622A (en) * 2015-08-31 2015-09-17 한지흠 A curtain controller reacting to specific alarm sound unconsciously
CN105898043A (en) * 2016-03-31 2016-08-24 北京奇虎科技有限公司 Method and device for carrying out prompting service based on user behavior state
CN106950847A (en) * 2017-05-09 2017-07-14 青岛理工大学 Intelligent home control system based on ZigBee and cloud computing
CN107995759A (en) * 2017-12-12 2018-05-04 北京小米移动软件有限公司 The control method and device of Intelligent lamp
CN109041337B (en) * 2018-07-30 2020-04-17 安徽世林照明股份有限公司 Intelligent LED lamp system based on mobile terminal and control method

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2015200342A1 (en) * 2014-06-23 2015-12-30 Google, Inc. Methods and apparatus for using smart environment devices via application program interfaces
CN105208735A (en) * 2015-10-16 2015-12-30 付参军 Household light control system performing control by using mobile phone and radio frequency remote controller
CN107786717A (en) * 2016-08-24 2018-03-09 深圳市鼎芯无限科技有限公司 A kind of control method of intelligent lamp
CN206710818U (en) * 2017-05-09 2017-12-05 青岛理工大学 Intelligent home control system based on ZigBee and cloud computing
CN108404275A (en) * 2018-02-26 2018-08-17 广东欧珀移动通信有限公司 Training method of sleeping and relevant device

Also Published As

Publication number Publication date
CN109862186A (en) 2019-06-07

Similar Documents

Publication Publication Date Title
US10564816B2 (en) Electronic device for inputting sleeping information and method of controlling the same
CN105824772B (en) Method and apparatus for managing data using multiple processors
KR102293660B1 (en) Method for short-range wireless communication and Electronic device using the same
KR102294180B1 (en) Electronic device and method for controlling power in electronic device
JP6533864B2 (en) Method and apparatus for managing an alarm clock, and computer program and computer readable medium
KR102324074B1 (en) Method for controlling sound output and an electronic device thereof
KR20170065228A (en) Device for Performing Wireless Charging and Method thereof
KR20150066083A (en) Multi tasking method of electronic apparatus and electronic apparatus thereof
KR102496058B1 (en) Scan method in wireless local area network and electronic device implementing the same
KR20160105274A (en) Electronic device and applacation controlling method thereof
KR20170109408A (en) Electronic device and method for controlling thereof
KR102457368B1 (en) Method for wireless power emission and Electronic device using the same
KR20170098111A (en) Method for controlling display using sensor data and electronic device thereof
KR20170045662A (en) Electronic device and method for controlling notification
KR102134420B1 (en) Apparatas and method for measuring a charge of location in the way of low power in an electronic device
KR20170025484A (en) Method for charging battery and electronic device implementing the same
KR102366289B1 (en) Method for screen control and electronic device thereof
KR20160094183A (en) Interface apparatus between an electrical device and an outside device using an ear jack of the electriacl device and method therefor
KR20160026341A (en) Method for controlling and an electronic device thereof
KR20180094699A (en) Electronic device for measuring gas and method thereof
KR20180010018A (en) Notification display method and apparatus
CN110430529B (en) Voice assistant reminding method and device
KR20150131697A (en) Method of managing disaster and electronic device thereof
KR20170119948A (en) Electronic device and controlling method thereof
KR102323797B1 (en) Electronic device and method for sharing information of the same

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
TA01 Transfer of patent application right

Effective date of registration: 20200417

Address after: Room 706, Room 1699, South Zuchong Road, Yushan Town, Kunshan City, Suzhou City, Jiangsu Province

Applicant after: Kunshan Pinyuan Intellectual Property Operating Technology Co., Ltd.

Address before: 200233 Shanghai city industry Jinshan District Jinshan Industrial Zone Road No. 218 building 3 layer 2

Applicant before: SHANGHAI YUDE COMMUNICATION TECHNOLOGY Co.,Ltd.

TA01 Transfer of patent application right
GR01 Patent grant
GR01 Patent grant
TR01 Transfer of patent right

Effective date of registration: 20220314

Address after: 226000 Room 102, building 2, No. 109, Yongfu Road, Tangzha Town Street, Chongchuan District, Nantong City, Jiangsu Province

Patentee after: Jiangsu hengzhihe Technology Co.,Ltd.

Address before: Room 706, room 9, 1699 Zuchongzhi South Road, Yushan Town, Kunshan City, Suzhou City, Jiangsu Province

Patentee before: Kunshan Pinyuan Intellectual Property Operating Technology Co.,Ltd.

TR01 Transfer of patent right