WO2019010795A1 - Internet of things based control method and internet of things server - Google Patents

Internet of things based control method and internet of things server Download PDF

Info

Publication number
WO2019010795A1
WO2019010795A1 PCT/CN2017/100765 CN2017100765W WO2019010795A1 WO 2019010795 A1 WO2019010795 A1 WO 2019010795A1 CN 2017100765 W CN2017100765 W CN 2017100765W WO 2019010795 A1 WO2019010795 A1 WO 2019010795A1
Authority
WO
WIPO (PCT)
Prior art keywords
volume
power
internet
light
smart
Prior art date
Application number
PCT/CN2017/100765
Other languages
French (fr)
Chinese (zh)
Inventor
杜光东
Original Assignee
深圳市盛路物联通讯技术有限公司
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 深圳市盛路物联通讯技术有限公司 filed Critical 深圳市盛路物联通讯技术有限公司
Publication of WO2019010795A1 publication Critical patent/WO2019010795A1/en

Links

Images

Classifications

    • HELECTRICITY
    • H05ELECTRIC TECHNIQUES NOT OTHERWISE PROVIDED FOR
    • H05BELECTRIC HEATING; ELECTRIC LIGHT SOURCES NOT OTHERWISE PROVIDED FOR; CIRCUIT ARRANGEMENTS FOR ELECTRIC LIGHT SOURCES, IN GENERAL
    • H05B47/00Circuit arrangements for operating light sources in general, i.e. where the type of light source is not relevant
    • H05B47/10Controlling the light source
    • H05B47/105Controlling the light source in response to determined parameters
    • H05B47/11Controlling the light source in response to determined parameters by determining the brightness or colour temperature of ambient light
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/28Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
    • H04L12/2803Home automation networks
    • H04L12/2816Controlling appliance services of a home automation network by calling their functionalities
    • H04L12/282Controlling appliance services of a home automation network by calling their functionalities based on user interaction within the home
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/12Protocols specially adapted for proprietary or special-purpose networking environments, e.g. medical networks, sensor networks, networks in vehicles or remote metering networks
    • H04L67/125Protocols specially adapted for proprietary or special-purpose networking environments, e.g. medical networks, sensor networks, networks in vehicles or remote metering networks involving control of end-device applications over a network
    • HELECTRICITY
    • H05ELECTRIC TECHNIQUES NOT OTHERWISE PROVIDED FOR
    • H05BELECTRIC HEATING; ELECTRIC LIGHT SOURCES NOT OTHERWISE PROVIDED FOR; CIRCUIT ARRANGEMENTS FOR ELECTRIC LIGHT SOURCES, IN GENERAL
    • H05B47/00Circuit arrangements for operating light sources in general, i.e. where the type of light source is not relevant
    • H05B47/10Controlling the light source
    • H05B47/105Controlling the light source in response to determined parameters
    • H05B47/115Controlling the light source in response to determined parameters by determining the presence or movement of objects or living beings
    • H05B47/12Controlling the light source in response to determined parameters by determining the presence or movement of objects or living beings by detecting audible sound
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02BCLIMATE CHANGE MITIGATION TECHNOLOGIES RELATED TO BUILDINGS, e.g. HOUSING, HOUSE APPLIANCES OR RELATED END-USER APPLICATIONS
    • Y02B20/00Energy efficient lighting technologies, e.g. halogen lamps or gas discharge lamps
    • Y02B20/40Control techniques providing energy savings, e.g. smart controller or presence detection

Definitions

  • the present invention relates to the field of Internet of Things technologies, and in particular, to a method for controlling an Internet of Things and an Internet of Things server.
  • Embodiments of the present invention provide a method for controlling an Internet of Things and an Internet of Things server for adjusting the brightness of a light according to a current situation of a user.
  • an embodiment of the present invention provides a lighting control method based on the Internet of Things, which is applicable to a smart home system, where the smart home system includes an Internet of Things server, a smart light, a brightness detector, and a volume detector, including:
  • the Internet of Things server acquires a plurality of lightness brightness data continuously detected by the light brightness detector
  • the Internet of Things server determines the first power of the smart lamp according to the plurality of light brightness data
  • the IoT server controls the smart light to initiate illumination in accordance with the first power.
  • the method further includes:
  • the IoT server controls the smart light to turn off the illumination when the plurality of second volume data continuously detected by the volume detector is less than the first volume.
  • the IoT server controls the smart light to start lighting according to the first power, including:
  • the IoT server controls the smart light to start illumination according to the first power within a preset time period, and the preset duration is determined based on the preset time range.
  • the method further includes:
  • the IoT server controls the smart light to illuminate according to a second power, and the second power is greater than the first power.
  • the method further includes:
  • the IoT server controls the smart light to start illumination according to a third power, and the second volume is greater than or equal to
  • the first volume* is a preset threshold, and the third power is greater than the first power.
  • the smart home system further includes a terminal device, and the method further includes:
  • the IoT server sends, to the terminal device, first voice information for prompting the user to turn off the smart light, so that the terminal device plays the first voice information when receiving the voice information;
  • the second voice information sent by the Internet of Things server is received by the terminal device, and the second voice information is voice information collected by the terminal device;
  • the IoT server parses the second voice information to obtain N keywords;
  • the IoT server controls the smart light to turn off the illumination. It can be seen that the Internet of Things server can further prompt the user to turn off the smart light through the terminal device, thereby further improving the user experience.
  • the specific method for the IoT server to send the first voice information for prompting the user to turn off the smart light to the terminal device is: the current system time is later than the preset time. And sending, by the IoT server, the first voice information for prompting the user whether to turn off the smart light to the terminal device, where the preset time is a user-defined time for rest point. It can be seen that when a break is needed, the IoT server can prompt the user whether to turn off the light, which not only embodies the smart switch light, but also plays a role in reminding the user to rest normally.
  • an embodiment of the present invention provides an Internet of Things server, which is applicable to a smart home system, where the smart home system includes an Internet of Things server, a smart light, a brightness detector, and a volume detector, including:
  • An acquiring module configured to acquire, after the plurality of first volume data continuously detected by the volume detector is greater than or equal to the first volume, the plurality of lightness brightness data continuously detected by the light brightness detector;
  • a determining module configured to determine a first power of the smart light according to the plurality of light brightness data when the plurality of light brightness data is less than a preset light brightness
  • a first control module configured to control the smart light to start illumination according to the first power.
  • the first control module is further configured to: when the plurality of second volume data continuously detected by the volume detector is smaller than the first volume, control the smart light to be turned off. illumination.
  • the first control module is specifically configured to control the smart light to start illumination according to the first power within a preset time period, where the preset duration is based on the preset time range. definite.
  • the Internet of Things server further includes:
  • the second control module is configured to control, after the preset duration, that the smart light is illuminated according to a second power, where the second power is greater than the first power.
  • the Internet of Things server further includes:
  • a third control module configured to: when the plurality of third volume data continuously detected by the volume detector is greater than or equal to the second volume, control the smart light to start illumination according to the third power, where the second volume is greater than Or equal to the first volume* preset threshold, the third power being greater than the first power.
  • the present invention provides an Internet of Things server, the IoT server including a processor configured to support the IoT server to perform a corresponding one of the Internet of Things-based lighting control methods provided by the first aspect Features.
  • the IoT server can also include a memory for coupling with the processor that holds the program instructions and data necessary for the IoT server.
  • the Internet of Things service The device can also include a communication interface for the IoT server to communicate with other devices or communication networks.
  • an embodiment of the present invention provides a computer readable storage medium, wherein the computer readable storage medium stores a computer program for electronic data exchange, wherein the computer program causes the computer to execute the embodiment of the present invention.
  • the computer includes an Internet of Things server.
  • an embodiment of the present invention provides a computer program product, wherein the computer program product comprises a non-transitory computer readable storage medium storing a computer program, the computer program being operative to cause a computer to perform the implementation of the present invention.
  • the computer program product can be a software installation package, and the computer includes an Internet of Things server.
  • the solution provided by the present invention places a lightness detector and a volume detector through the home.
  • the volume detector continuously detects that the plurality of first volume data exceeds the first volume, the user is raised to act.
  • a plurality of light brightness data continuously detected by the light brightness detector are obtained, and when the plurality of light brightness data exceeds the preset light brightness, the brightness of the current environment is dark. It can be seen that the current user is in a relatively dark environment, in order to avoid the momentary lighting to stimulate the user's eyes, in this case, the power of the intelligent light point is adjusted according to the plurality of light brightness data detected by the lightness detector, and the adjustment intelligent light is emitted. The brightness of the light enhances the user experience.
  • FIG. 1 is a schematic diagram of an Internet of Things network architecture according to an embodiment of the present invention.
  • FIG. 2 is a flowchart of a method for controlling lighting based on an Internet of Things according to an embodiment of the present invention
  • FIG. 3 is a schematic diagram showing an example of an embodiment of the present invention.
  • FIG. 4 is a flowchart of a method for controlling lighting based on an Internet of Things according to an embodiment of the present invention
  • FIG. 5 is a schematic structural diagram of an Internet of Things server according to an embodiment of the present invention.
  • FIG. 6 is a schematic structural diagram of an Internet of Things server according to an embodiment of the present invention.
  • references to "an embodiment” herein mean that a particular feature, structure, or characteristic described in connection with the embodiments can be included in at least one embodiment of the invention.
  • the appearances of the phrases in various places in the specification are not necessarily referring to the same embodiments, and are not exclusive or alternative embodiments that are mutually exclusive. Those skilled in the art will understand and implicitly understand that the embodiments described herein can be combined with other embodiments.
  • an Internet of Things-based lighting control method is provided.
  • the method is applied to the IoT network architecture shown in FIG. 1.
  • the IoT network architecture includes an Internet of Things server 10, a smart light 20, a brightness detector 30, a volume detector 40, and The terminal device 50, wherein the smart light 20, the lightness detector 30 and the volume detector 40 are wirelessly connected to the Internet of Things server 10, and the Internet of Things server 10 communicates with the terminal device via the Internet or the mobile network.
  • the above wireless methods include but are not limited to: Bluetooth, WIFI, ZigBee, GPRS, 3G, 4G, Wimax and the like.
  • the Internet of Things server 10 can be a gateway or an Internet of Things access point.
  • Gateway the English name is: "Gateway”
  • gateway Gateway
  • the gateway implements network interconnection above the network layer. It is the most complex network interconnection device and is only used for different network interconnections of two high-level protocols. Gateways can be used for both WAN and LAN interconnections.
  • a gateway is a computer system or device that acts as a conversion.
  • the gateway is a translator between two systems that use different communication protocols, data formats or languages, or even completely different architectures. Unlike bridges that simply convey information, the gateway repackages the received information to suit the needs of the destination system.
  • the Internet of Things access point refers to an intelligent information receiving and transmitting device that integrates a wireless network access point and an RFID access point.
  • the Internet of Things access point can simultaneously receive and transmit WIFI signals and RFID signals.
  • the number of the smart lamps 20 may be one or plural, and the present invention is not limited thereto. For example, install a smart light in each room in your home. Another example is to install a smart light in the living room at home.
  • the brightness detector is a test instrument for measuring the brightness of light.
  • the brightness detector 30 may be one or plural, and is not limited in the present invention.
  • a brightness detector is installed in each room in the home.
  • Another example is to install a light detector in the living room at home.
  • the lightness detector periodically transmits the detected volume data to the IoT server periodically (for example, every 1 s, every 2 s, every 5 s, every 6 s, or other values).
  • the volume detector 40 may be one or plural, and the present invention is not limited thereto.
  • a volume detector is installed in each room in the home.
  • Another example is to install a volume detector in the living room at home.
  • the volume detector periodically sends the detected volume data to the IoT server periodically (for example, every 1 s, every 2 s, every 5 s, every 6 s, or other values).
  • the terminal device 50 also referred to as a User Equipment (UE) is a device that provides voice and/or data connectivity to a user, for example, a handheld device with a wireless connection function, an in-vehicle device, and the like.
  • UE User Equipment
  • Common terminals include, for example, mobile phones, tablets, notebook computers, PDAs, mobile internet devices (MIDs), wearable devices such as smart watches, smart bracelets, pedometers, and the like.
  • the IoT-based lighting control method provided by the embodiment of the present invention will be described in detail below with reference to the Internet of Things network architecture shown in FIG.
  • FIG. 2 is a schematic flowchart of a method for controlling lighting based on an Internet of Things according to an embodiment of the present invention, including the following steps:
  • the Internet of Things server acquires a plurality of lightness brightness data continuously detected by the light brightness detector.
  • the first volume can be set to one of the ranges of 40db ⁇ 70db, assuming the first volume is 55db, when the volume detector continuously detects multiple When the volume data is greater than or equal to 55db, it means that the user is currently in the action state.
  • the IoT server determines the first power of the smart lamp according to the plurality of brightness data.
  • the brightness of the room is usually around 0.03 ⁇ 0.3lux, so the preset brightness can be set in the range of 0.03 ⁇ 0.3lux.
  • One plus a threshold which may for example be equal to 0.05 lux, 0.1 lux, 0.2 lux or other values.
  • the preset brightness is 0.35 lux, when the brightness data detected by the brightness detector is less than 0.35 lux, it means that the current environment of the user is a dark environment. In order not to irritate the user's eyes, the first power determined at this time will be relatively small.
  • the IoT server stores multiple powers of the smart light, and different powers correspond to different light brightness ranges.
  • the brightness is between 0.03 and 0.3 lux, corresponding to one power
  • the brightness is between 3 and 10 lux, corresponding to another power.
  • the specific implementation manner of the IoT server determining the first power of the smart light according to the plurality of light brightness data is: the Internet of Things server selects one of the light brightness data from the plurality of light brightness data, and according to The one of the brightness data determines a first power of the smart light.
  • the IoT server determines an average lightness of the plurality of lightness data, and determines a first power of the smart light according to the average brightness.
  • the IoT server controls the smart light to start illumination according to the first power.
  • the specific implementation manner of the IOT server controlling the smart light to start the illumination according to the first power in the step S203 is: the Internet of Things server control office The smart light starts illumination according to the first power within a preset time period, and the preset time length is determined based on the preset time range.
  • the IoT server controls the smart light to illuminate according to a second power, and the second power is greater than the first power.
  • the preset time range may be, for example, 7:30 to 8:00, 8:00 to 9:00, 8:30 to 9:00, 8:30 to 9:30, or other values.
  • the preset duration may be, for example, 1 minute, 1 minute and a half, 2 minutes, 3 minutes, or other values.
  • the preset duration is determined based on the preset time range. That is, different time ranges correspond to different durations. For example, the preset duration corresponding to 7:30 to 8:00 is 2 minutes, and the preset duration corresponding to 8:00 to 9:00 is 3 minutes.
  • the preset time range is 7:30-8:00
  • the preset duration is 2 minutes. It can be seen that the time is the time people wake up in the morning. People wake up and turn on the lights first, but people just wake up. If the light is too strong, it will irritate people's eyes. In order to avoid irritating people's eyes, the Internet of Things can control the smart lights to light up for 2 minutes according to low power. After 2 minutes, people's eyes are slowly adapting to the light environment. At this time, the power of the smart lights is turned up to illuminate the house. .
  • the method further includes:
  • the IoT server controls the smart light to turn off the illumination when the plurality of second volume data continuously detected by the volume detector is less than the first volume.
  • the IoT server can control the smart light at this time. Turn off the lighting.
  • the smart home system further includes a terminal device
  • the method further includes: the IoT server transmitting, to the terminal device, first voice information for prompting a user whether to turn off the smart light, And causing the terminal device to play the first voice information when receiving the voice information; and the second voice sent by the Internet of Things server to receive the first voice information of the terminal device Information, the second voice information is voice information collected by the terminal device; the Internet of Things server parses the second voice information to obtain N keywords; when at least one of the N keywords exists The keyword matches the pre-stored keyword, and the IoT server controls the smart light to turn off the illumination.
  • the preset keywords may be, for example, off, yes, um, turn off, off, and the like.
  • the keywords obtained by the Internet of Things server are: closed, smart lights, visible, parsed keywords “Off” matches the pre-stored keyword “Off”, at which point the IoT server controls the smart light to turn off the illumination.
  • the specific method for the IoT server to send the first voice information for prompting the user to turn off the smart light to the terminal device is: when the current system time is later than the preset time, The IoT server sends the first voice information for prompting the user to turn off the smart light to the terminal device, where the preset time is a user-defined time point that needs to rest. It can be seen that when a break is needed, the IoT server can prompt the user whether to turn off the light, which not only embodies the smart switch light, but also plays a role in reminding the user to rest normally.
  • the IoT server controls the smart light to start illumination according to the third power
  • the second volume is greater than or equal to the first volume* preset threshold
  • the third power is greater than the first power.
  • the preset threshold may be 2, 2.5, 2.3, 3, 4 or other values. It can be seen that when the user does not want to turn on the light directly through the switch, the user controls the smart light to directly start the illumination by emitting a relatively large sound (such as a loud cough and a two-handed shot).
  • the solution provided by the present invention places a lightness detector and a volume detector through the home.
  • the volume detector continuously detects that the plurality of first volume data exceeds the first volume, the user is raised to act.
  • a plurality of light brightness data continuously detected by the light brightness detector are obtained, and when the plurality of light brightness data exceeds the preset light brightness, the brightness of the current environment is dark.
  • the power of the intelligent light point is adjusted according to the plurality of light brightness data detected by the lightness detector, and the adjustment intelligent light is emitted.
  • the brightness of the light enhances the user experience.
  • FIG. 3 is a schematic diagram of an example according to an embodiment of the present invention.
  • the brightness detector and the volume detector send the light brightness data and volume data detected by themselves to the Internet of Things server, and the IoT server performs data processing operations based on the received data, and then the IoT server output control.
  • the command is given to the smart light, and the smart light performs corresponding operations based on the control command. For example, suppose the first volume is 55db, the preset brightness is 0.35lux, and the power corresponding to 0.1lux to 0.35lux is 10w.
  • the volume data continuously sent by the volume detector to the Internet of Things server are: 51db, 40db, 42db, 50db, 52db, 45db, 48db, 50db, 43db, 42db.
  • the 10 brightness data that the brightness detector continuously sends to the IoT server are: 0.1 lux, 0.15 lux, 0.2 lux, 0.3 lux, 0.1 lux, 0.1 lux, 0.15 lux, 0.15 lux, 0.2 lux, 0.15 lux. It can be seen that 10 volume data are larger than 55db, and 10 brightness data are less than 0.35lux, which means that the user is currently in the action state, and the user's current environment is relatively dark.
  • the power corresponding to the 10 brightness data is 10w, then the IoT server sends a start lighting control command to the smart light, the control command carries power (10w), so that the smart light is illuminated according to 10w.
  • Another embodiment of the present invention further provides a more detailed method flow, as shown in FIG. 4, including:
  • the IoT server acquires a plurality of first volume data continuously detected by the volume detector.
  • the Internet of Things server acquires a plurality of lightness data continuously detected by the lightness detector.
  • the IoT server determines the first power of the smart lamp according to the plurality of brightness data.
  • the IoT server sends a lighting instruction to the smart light, where the lighting instruction carries the first power and a preset duration.
  • the illumination command is configured to instruct the smart light to start illumination according to the first power within a preset time period, and after the preset time length, perform illumination according to a second power, where the second power is greater than the first
  • the preset duration is determined based on the preset time range.
  • the smart light receives the lighting instruction, and performs corresponding operation according to the lighting instruction. Work.
  • the IoT server acquires a plurality of second volume data continuously detected by the volume detector.
  • the IoT server sends a shutdown illumination command to the smart light, where the shutdown illumination command is used to instruct the smart light to turn off the illumination.
  • the smart light receives the turning off lighting instruction and turns off the lighting.
  • the embodiment of the present invention further provides an Internet of Things server 500, which is applicable to a smart home system.
  • the smart home system includes an Internet of Things server, a smart light, a brightness detector, and a volume detector. As shown in FIG. 5, the method includes:
  • the obtaining module 501 is configured to acquire, when the plurality of first volume data continuously detected by the volume detector is greater than or equal to the first volume, the plurality of lightness data continuously detected by the lightness detector.
  • the determining module 502 is configured to determine a first power of the smart light according to the plurality of light brightness data when the plurality of light brightness data is less than a preset light brightness.
  • the first control module 503 is configured to control the smart light to start illumination according to the first power.
  • the first control module 503 is further configured to control the smart light to turn off the illumination when the plurality of second volume data continuously detected by the volume detector is less than the first volume.
  • the first control module 503 is specifically configured to control the smart light to start illumination according to the first power within a preset time period, where the preset duration is determined based on the preset time range.
  • the IoT server further includes:
  • the second control module 504 is configured to control, after the preset duration, that the smart light is illuminated according to a second power, where the second power is greater than the first power.
  • the IoT server further includes:
  • a third control module 505 configured to continuously detect the plurality of third volume numbers in the volume detector The smart light is controlled to start illumination according to the third power when the second volume is greater than or equal to the second volume, the second volume is greater than or equal to the first volume* preset threshold, and the third power is greater than the first power.
  • each of the above modules acquisition module 501, determination module 502, first control module 503, second control module 504, third control module 505) is used to perform the relevant steps of the above method.
  • the obtaining module 501 is configured to perform the above step S201
  • the determining module 502 is configured to perform the above step S202
  • the first control module 503 is configured to perform the above step S202, and the like.
  • the Internet of Things server 500 is presented in the form of a module.
  • a “module” herein may refer to an application-specific integrated circuit (ASIC), a processor and memory that executes one or more software or firmware programs, integrated logic circuits, and/or other devices that provide the above functionality.
  • ASIC application-specific integrated circuit
  • the above obtaining module 501, determining module 502, first control module 503, second control module 504, and third control module 505 can be implemented by the processor 601 of the Internet of Things server shown in FIG. 6.
  • the Internet of Things server 600 can be implemented in the structure of FIG. 6, which includes at least one processor 601, at least one memory 602, and at least one communication interface 603.
  • the processor 601, the memory 602, and the communication interface 603 are connected by the communication bus and complete communication with each other.
  • the processor 601 can be a general purpose central processing unit (CPU), a microprocessor, an application-specific integrated circuit (ASIC), or one or more integrated circuits for controlling the execution of the above program.
  • CPU central processing unit
  • ASIC application-specific integrated circuit
  • the communication interface 603 is configured to communicate with other devices or communication networks, such as Ethernet, Radio Access Network (RAN), Wireless Local Area Networks (WLAN), and the like.
  • RAN Radio Access Network
  • WLAN Wireless Local Area Networks
  • the memory 602 can be a read-only memory (ROM) or other type of static storage device that can store static information and instructions, a random access memory (RAM) or other type that can store information and instructions.
  • the dynamic storage device can also be an Electrically Erasable Programmable Read-Only Memory (EEPROM), a Compact Disc Read-Only Memory (CD-ROM) or other optical disc storage, and a disc storage device. (including compact discs, laser discs, compact discs, digital versatile discs, Blu-ray discs, etc., disk storage media or other magnetic storage devices, or any other medium that can be used to carry or store desired program code in the form of instructions or data structures and that can be accessed by a computer, but is not limited thereto.
  • the memory can exist independently and be connected to the processor via a bus.
  • the memory can also be integrated with the processor.
  • the memory 602 is configured to store application code that executes the above solution, and is controlled by the processor 601 for execution.
  • the processor 601 is configured to execute application code stored in the memory 602.
  • the code stored in the memory 602 may perform the above-described Internet of Things-based lighting control method performed by the terminal device provided above, such as when the plurality of first volume data continuously detected by the volume detector are greater than or equal to the first volume, Obtaining, by the Internet of Things server, a plurality of light brightness data continuously detected by the light brightness detector; when the plurality of light brightness data is less than a preset light brightness, the Internet of Things server determines according to the plurality of light brightness data a first power of the smart light; the Internet of Things server controls the smart light to initiate illumination in accordance with the first power.
  • the embodiment of the present invention further provides a computer storage medium, wherein the computer storage medium stores a computer program for electronic data exchange, the computer program causing the computer to perform some or all of the steps of any of the methods described in the foregoing method embodiments.
  • the computer includes an Internet of Things server.
  • Embodiments of the present invention also provide a computer program product comprising a non-transitory computer readable storage medium storing a computer program, the computer program being operative to cause a computer to perform the operations as recited in the above method embodiments Part or all of the steps of either method.
  • the computer program product can be a software installation package that includes an IoT server.
  • the disclosed apparatus may be implemented in other ways.
  • the device embodiments described above are merely illustrative.
  • the division of the unit is only a logical function division.
  • there may be another division manner for example, multiple units or components may be combined or may be Integrate into another system, or some features can be ignored or not executed.
  • the mutual coupling or direct coupling or communication connection shown or discussed may be an indirect coupling or communication connection through some interface, device or unit, and may be electrical or otherwise.
  • the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, may be located in one place, or may be distributed to multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of the embodiment.
  • each functional unit in each embodiment of the present invention may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit.
  • the above integrated unit can be implemented in the form of hardware or in the form of a software functional unit.
  • the integrated unit if implemented in the form of a software functional unit and sold or used as a standalone product, may be stored in a computer readable memory. Based on such understanding, the technical solution of the present invention may contribute to the prior art or all or part of the technical solution may be embodied in the form of a software product stored in a memory.
  • a number of instructions are included to cause a computer device (which may be a personal computer, an Internet of Things server, or a network device, etc.) to perform all or part of the steps of the methods described in various embodiments of the present invention.
  • the foregoing memory includes: a U disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a removable hard disk, a magnetic disk, or an optical disk, and the like, which can store program codes.

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Health & Medical Sciences (AREA)
  • Computing Systems (AREA)
  • General Health & Medical Sciences (AREA)
  • Medical Informatics (AREA)
  • Human Computer Interaction (AREA)
  • Automation & Control Theory (AREA)
  • Circuit Arrangement For Electric Light Sources In General (AREA)

Abstract

Disclosed in the present invention is an Internet of things based control method, which is applicable to a smart home system, the smart home system comprising an Internet of things server, a smart lamp, a light luminance detector and a sound volume detector. The method comprises: when a plurality of pieces of first sound volume data consecutively detected by the sound volume detector are equal to or greater than a first sound volume, the Internet of things server acquiring a plurality of pieces of light luminance data consecutively detected by the light luminance detector; when the plurality of pieces of light luminance data are less than preset light luminance, the Internet of things server determining a first power of the smart lamp according to the plurality of pieces of light luminance data; and the Internet of things server controlling the smart lamp to illuminate according to the first power. The embodiments of the present invention further provide an Internet of Things server. The embodiments of the present invention can be used to adjust the luminance of a lamp according to the current situation of the user.

Description

一种基于物联网的控制方法及物联网服务器IoT-based control method and Internet of Things server 技术领域Technical field
本发明涉及物联网技术领域,尤其涉及一种基于物联网的控制方法及物联网服务器。The present invention relates to the field of Internet of Things technologies, and in particular, to a method for controlling an Internet of Things and an Internet of Things server.
背景技术Background technique
通常人们晚上睡觉会将屋里的灯全部关闭,但是有时候人们会在半夜起来上洗手间或是起来喝水,此时,人们从卧室移动到洗手间或是客厅时,需要打开某些灯照亮周围的环境。但是人们从较暗的环境瞬间开灯,会刺激人们的眼睛,并且会影响到其他家人的休息,因此如何根据用户当前情况调节灯光的亮度是很有必要的。Usually people sleep at night to turn off the lights in the house, but sometimes people will go up to the bathroom in the middle of the night or get up and drink. At this time, when people move from the bedroom to the bathroom or the living room, they need to turn on some lights. The surrounding environment. But when people turn on the lights from a darker environment, it will irritate people's eyes and affect the rest of other family members. Therefore, it is necessary to adjust the brightness of the lights according to the user's current situation.
发明内容Summary of the invention
本发明实施例提供一种基于物联网的控制方法及物联网服务器,用于根据用户当前情况调节灯光的亮度。Embodiments of the present invention provide a method for controlling an Internet of Things and an Internet of Things server for adjusting the brightness of a light according to a current situation of a user.
第一方面,本发明实施例提供一种基于物联网的照明控制方法,适用于智能家居系统,所述智能家居系统包括物联网服务器、智能灯、光亮度检测器和音量检测器,包括:In a first aspect, an embodiment of the present invention provides a lighting control method based on the Internet of Things, which is applicable to a smart home system, where the smart home system includes an Internet of Things server, a smart light, a brightness detector, and a volume detector, including:
当所述音量检测器连续检测到的多个第一音量数据均大于或等于第一音量时,所述物联网服务器获取所述光亮度检测器连续检测到的多个光亮度数据;When the plurality of first volume data continuously detected by the volume detector is greater than or equal to the first volume, the Internet of Things server acquires a plurality of lightness brightness data continuously detected by the light brightness detector;
当所述多个光亮度数据小于预设光亮度时,所述物联网服务器根据所述多个光亮度数据确定所述智能灯的第一功率;When the plurality of brightness data is less than the preset brightness, the Internet of Things server determines the first power of the smart lamp according to the plurality of light brightness data;
所述物联网服务器控制所述智能灯按照所述第一功率启动照明。The IoT server controls the smart light to initiate illumination in accordance with the first power.
在一种可行的实施例中,所述物联网服务器控制所述智能灯按照所述第一功率启动照明之后,所述方法还包括: In a possible embodiment, after the IoT server controls the smart light to start illumination according to the first power, the method further includes:
当所述音量检测器连续检测到的多个第二音量数据均小于所述第一音量时,所述物联网服务器控制所述智能灯关闭照明。The IoT server controls the smart light to turn off the illumination when the plurality of second volume data continuously detected by the volume detector is less than the first volume.
在一种可行的实施例中,若当前系统时间处于预设时间范围,所述物联网服务器控制所述智能灯按照所述第一功率启动照明,包括:In a possible embodiment, if the current system time is in a preset time range, the IoT server controls the smart light to start lighting according to the first power, including:
所述物联网服务器控制所述智能灯在预设时长内按照所述第一功率启动照明,所述预设时长是基于所述预设时间范围确定的。The IoT server controls the smart light to start illumination according to the first power within a preset time period, and the preset duration is determined based on the preset time range.
在一种可行的实施例中,所述方法还包括:In a possible embodiment, the method further includes:
在所述预设时长后,所述物联网服务器控制所述智能灯按照第二功率进行照明,所述第二功率大于所述第一功率。After the preset duration, the IoT server controls the smart light to illuminate according to a second power, and the second power is greater than the first power.
在一种可行的实施例中,所述方法还包括:In a possible embodiment, the method further includes:
在所述音量检测器连续检测到的多个第三音量数据均大于或等于第二音量时,所述物联网服务器控制所述智能灯按照第三功率启动照明,所述第二音量大于或等于所述第一音量*预设阈值,所述第三功率大于所述第一功率。When the plurality of third volume data continuously detected by the volume detector is greater than or equal to the second volume, the IoT server controls the smart light to start illumination according to a third power, and the second volume is greater than or equal to The first volume* is a preset threshold, and the third power is greater than the first power.
在一种可行的实施例中,所述智能家居系统还包括终端设备,所述方法还包括:In a possible embodiment, the smart home system further includes a terminal device, and the method further includes:
所述物联网服务器向所述终端设备发送用于提示用户是否关闭所述智能灯的第一语音信息,以使得所述终端设备接收到所述语音信息时播放所述第一语音信息;The IoT server sends, to the terminal device, first voice information for prompting the user to turn off the smart light, so that the terminal device plays the first voice information when receiving the voice information;
所述物联网服务器接收所述终端设备所述第一语音信息而发送的第二语音信息,所述第二语音信息是所述终端设备采集到的语音信息;The second voice information sent by the Internet of Things server is received by the terminal device, and the second voice information is voice information collected by the terminal device;
所述物联网服务器解析所述第二语音信息,以得到N个关键词;The IoT server parses the second voice information to obtain N keywords;
当所述N个关键词中存在至少一个关键词与预存关键词匹配,则所述物联网服务器控制所述智能灯关闭照明。可见,物联网服务器可通过终端设备提示用户是否关闭智能灯,进一步提高了用户体验。When at least one of the N keywords matches the pre-stored keyword, the IoT server controls the smart light to turn off the illumination. It can be seen that the Internet of Things server can further prompt the user to turn off the smart light through the terminal device, thereby further improving the user experience.
在一种可行的实施例中,所述物联网服务器向所述终端设备发送用于提示用户是否关闭所述智能灯的第一语音信息的具体实施方式有:在当前系统时间晚于预设时间时,所述物联网服务器向所述终端设备发送用于提示用户是否关闭所述智能灯的第一语音信息,所述预设时间是用户自定义的需要休息的时间 点。可见,在需要休息时,物联网服务器可提示用户是否需要关灯,这样不仅既能体现了智能开关灯,还起到了提醒用户正常休息的作用。In a possible embodiment, the specific method for the IoT server to send the first voice information for prompting the user to turn off the smart light to the terminal device is: the current system time is later than the preset time. And sending, by the IoT server, the first voice information for prompting the user whether to turn off the smart light to the terminal device, where the preset time is a user-defined time for rest point. It can be seen that when a break is needed, the IoT server can prompt the user whether to turn off the light, which not only embodies the smart switch light, but also plays a role in reminding the user to rest normally.
第二方面,本发明实施例提供一种物联网服务器,适用于智能家居系统,所述智能家居系统包括物联网服务器、智能灯、光亮度检测器和音量检测器,包括:In a second aspect, an embodiment of the present invention provides an Internet of Things server, which is applicable to a smart home system, where the smart home system includes an Internet of Things server, a smart light, a brightness detector, and a volume detector, including:
获取模块,用于当所述音量检测器连续检测到的多个第一音量数据均大于或等于第一音量时,获取所述光亮度检测器连续检测到的多个光亮度数据;An acquiring module, configured to acquire, after the plurality of first volume data continuously detected by the volume detector is greater than or equal to the first volume, the plurality of lightness brightness data continuously detected by the light brightness detector;
确定模块,用于当所述多个光亮度数据小于预设光亮度时,根据所述多个光亮度数据确定所述智能灯的第一功率;a determining module, configured to determine a first power of the smart light according to the plurality of light brightness data when the plurality of light brightness data is less than a preset light brightness;
第一控制模块,用于控制所述智能灯按照所述第一功率启动照明。And a first control module, configured to control the smart light to start illumination according to the first power.
在一种可行的实施例中,所述第一控制模块,还用于当所述音量检测器连续检测到的多个第二音量数据均小于所述第一音量时,控制所述智能灯关闭照明。In a possible embodiment, the first control module is further configured to: when the plurality of second volume data continuously detected by the volume detector is smaller than the first volume, control the smart light to be turned off. illumination.
在一种可行的实施例中,所述第一控制模块具体用于控制所述智能灯在预设时长内按照所述第一功率启动照明,所述预设时长是基于所述预设时间范围确定的。In a possible embodiment, the first control module is specifically configured to control the smart light to start illumination according to the first power within a preset time period, where the preset duration is based on the preset time range. definite.
在一种可行的实施例中,所述物联网服务器还包括:In a possible embodiment, the Internet of Things server further includes:
第二控制模块,用于在所述预设时长后,控制所述智能灯按照第二功率进行照明,所述第二功率大于所述第一功率。The second control module is configured to control, after the preset duration, that the smart light is illuminated according to a second power, where the second power is greater than the first power.
在一种可行的实施例中,所述物联网服务器还包括:In a possible embodiment, the Internet of Things server further includes:
第三控制模块,用于在所述音量检测器连续检测到的多个第三音量数据均大于或等于第二音量时,控制所述智能灯按照第三功率启动照明,所述第二音量大于或等于所述第一音量*预设阈值,所述第三功率大于所述第一功率。a third control module, configured to: when the plurality of third volume data continuously detected by the volume detector is greater than or equal to the second volume, control the smart light to start illumination according to the third power, where the second volume is greater than Or equal to the first volume* preset threshold, the third power being greater than the first power.
第三方面,本发明提供一种物联网服务器,该物联网服务器中包括处理器,处理器被配置为支持该物联网服务器执行第一方面提供的一种基于物联网的照明控制方法中相应的功能。该物联网服务器还可以包括存储器,存储器用于与处理器耦合,其保存该物联网服务器必要的程序指令和数据。该物联网服务 器还可以包括通信接口,用于该物联网服务器与其他设备或通信网络通信。In a third aspect, the present invention provides an Internet of Things server, the IoT server including a processor configured to support the IoT server to perform a corresponding one of the Internet of Things-based lighting control methods provided by the first aspect Features. The IoT server can also include a memory for coupling with the processor that holds the program instructions and data necessary for the IoT server. The Internet of Things service The device can also include a communication interface for the IoT server to communicate with other devices or communication networks.
第四方面,本发明实施例提供了一种计算机可读存储介质,其中,上述计算机可读存储介质存储用于电子数据交换的计算机程序,其中,上述计算机程序使得计算机执行如本发明实施例第一方面所描述的部分或全部步骤,上述计算机包括物联网服务器。In a fourth aspect, an embodiment of the present invention provides a computer readable storage medium, wherein the computer readable storage medium stores a computer program for electronic data exchange, wherein the computer program causes the computer to execute the embodiment of the present invention. In some or all of the steps described on the one hand, the computer includes an Internet of Things server.
第五方面,本发明实施例提供了一种计算机程序产品,其中,上述计算机程序产品包括存储了计算机程序的非瞬时性计算机可读存储介质,上述计算机程序可操作来使计算机执行如本发明实施例第一方面所描述的部分或全部步骤。该计算机程序产品可以为一个软件安装包,上述计算机包括物联网服务器。In a fifth aspect, an embodiment of the present invention provides a computer program product, wherein the computer program product comprises a non-transitory computer readable storage medium storing a computer program, the computer program being operative to cause a computer to perform the implementation of the present invention. Some or all of the steps described in the first aspect of the example. The computer program product can be a software installation package, and the computer includes an Internet of Things server.
本发明提供的方案通过在家中安置光亮度检测器和音量检测器。当音量检测器连续检测到多个第一音量数据均超过第一音量时,代表用户起身行动。此时获取光亮度检测器连续检测到的多个光亮度数据,当多个光亮度数据均为超过预设光亮度,代表当前环境亮度较暗。可见当前用户处于一个比较暗的环境,为了避免瞬间开灯刺激用户的眼睛,该种情况下,根据光亮度检测器检测到的多个光亮度数据调节智能灯点的功率,达到调节智能灯发出的光亮度,进而提高用户体验。The solution provided by the present invention places a lightness detector and a volume detector through the home. When the volume detector continuously detects that the plurality of first volume data exceeds the first volume, the user is raised to act. At this time, a plurality of light brightness data continuously detected by the light brightness detector are obtained, and when the plurality of light brightness data exceeds the preset light brightness, the brightness of the current environment is dark. It can be seen that the current user is in a relatively dark environment, in order to avoid the momentary lighting to stimulate the user's eyes, in this case, the power of the intelligent light point is adjusted according to the plurality of light brightness data detected by the lightness detector, and the adjustment intelligent light is emitted. The brightness of the light enhances the user experience.
本发明的这些方面或其他方面在以下实施例的描述中会更加简明易懂。These and other aspects of the invention will be more apparent from the following description of the embodiments.
附图说明DRAWINGS
为了更清楚地说明本发明实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the embodiments or the description of the prior art will be briefly described below. Obviously, the drawings in the following description are only It is a certain embodiment of the present invention, and other drawings can be obtained from those skilled in the art without any creative work.
图1为本发明一实施例提供的一种物联网网络构架的示意图;1 is a schematic diagram of an Internet of Things network architecture according to an embodiment of the present invention;
图2为本发明一实施例提供的一种基于物联网的照明控制方法的流程图;2 is a flowchart of a method for controlling lighting based on an Internet of Things according to an embodiment of the present invention;
图3为本发明一实施例提供的一种示例示意图; FIG. 3 is a schematic diagram showing an example of an embodiment of the present invention;
图4为本发明一实施例提供的一种基于物联网的照明控制方法的流程图;FIG. 4 is a flowchart of a method for controlling lighting based on an Internet of Things according to an embodiment of the present invention; FIG.
图5为本发明一实施例提供的一种物联网服务器的结构示意图;FIG. 5 is a schematic structural diagram of an Internet of Things server according to an embodiment of the present invention;
图6为本发明一实施例提供的一种物联网服务器的结构示意图。FIG. 6 is a schematic structural diagram of an Internet of Things server according to an embodiment of the present invention.
具体实施方式Detailed ways
为了使本技术领域的人员更好地理解本发明方案,下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本发明一部分的实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都应当属于本发明保护的范围。The technical solutions in the embodiments of the present invention are clearly and completely described in the following with reference to the accompanying drawings in the embodiments of the present invention. It is an embodiment of the invention, but not all of the embodiments. All other embodiments obtained by those skilled in the art based on the embodiments of the present invention without creative efforts shall fall within the scope of the present invention.
以下分别进行详细说明。The details are described below separately.
本发明的说明书和权利要求书及所述附图中的术语“第一”、“第二”、“第三”和“第四”等是用于区别不同对象,而不是用于描述特定顺序。此外,术语“包括”和“具有”以及它们任何变形,意图在于覆盖不排他的包含。例如包含了一系列步骤或单元的过程、方法、系统、产品或设备没有限定于已列出的步骤或单元,而是可选地还包括没有列出的步骤或单元,或可选地还包括对于这些过程、方法、产品或设备固有的其它步骤或单元。The terms "first", "second", "third", and "fourth" and the like in the specification and claims of the present invention are used to distinguish different objects, and are not intended to describe a specific order. . Furthermore, the terms "comprises" and "comprising" and "comprising" are intended to cover a non-exclusive inclusion. For example, a process, method, system, product, or device that comprises a series of steps or units is not limited to the listed steps or units, but optionally also includes steps or units not listed, or, optionally, Other steps or units inherent to these processes, methods, products or equipment.
在本文中提及“实施例”意味着,结合实施例描述的特定特征、结构或特性可以包含在本发明的至少一个实施例中。在说明书中的各个位置出现该短语并不一定均是指相同的实施例,也不是与其它实施例互斥的独立的或备选的实施例。本领域技术人员显式地和隐式地理解的是,本文所描述的实施例可以与其它实施例相结合。References to "an embodiment" herein mean that a particular feature, structure, or characteristic described in connection with the embodiments can be included in at least one embodiment of the invention. The appearances of the phrases in various places in the specification are not necessarily referring to the same embodiments, and are not exclusive or alternative embodiments that are mutually exclusive. Those skilled in the art will understand and implicitly understand that the embodiments described herein can be combined with other embodiments.
下面结合附图对本申请的实施例进行描述。Embodiments of the present application will be described below with reference to the accompanying drawings.
根据本发明的一个方面,提供了一种基于物联网的照明控制方法。其中,该方法应用在如图1所示的物联网网络构架中,如图1所示,该物联网网络构架包括物联网服务器10、智能灯20、光亮度检测器30、音量检测器40和终端设备50,其中,智能灯20、光亮度检测器30和音量检测器40通过无线方式与物联网服务器10连接,物联网服务器10通过互联网或移动网跟终端设备 50连接,上述无线方式包括但不限于:蓝牙、WIFI、ZigBee、GPRS、3G、4G、Wimax等方式。According to an aspect of the present invention, an Internet of Things-based lighting control method is provided. The method is applied to the IoT network architecture shown in FIG. 1. As shown in FIG. 1, the IoT network architecture includes an Internet of Things server 10, a smart light 20, a brightness detector 30, a volume detector 40, and The terminal device 50, wherein the smart light 20, the lightness detector 30 and the volume detector 40 are wirelessly connected to the Internet of Things server 10, and the Internet of Things server 10 communicates with the terminal device via the Internet or the mobile network. 50 connections, the above wireless methods include but are not limited to: Bluetooth, WIFI, ZigBee, GPRS, 3G, 4G, Wimax and the like.
物联网服务器10可以是网关,也可以是物联网接入点。网关,英文名是:“Gateway”,网关(Gateway)又称网间连接器、协议转换器。网关在网络层以上实现网络互连,是最复杂的网络互连设备,仅用于两个高层协议不同的网络互连。网关既可以用于广域网互连,也可以用于局域网互连。网关是一种充当转换重任的计算机系统或设备。使用在不同的通信协议、数据格式或语言,甚至体系结构完全不同的两种系统之间,网关是一个翻译器。与网桥只是简单地传达信息不同,网关对收到的信息要重新打包,以适应目的系统的需求。物联网接入点是指整合了无线网接入点和RFID接入点为一体的智能信息接收和发送设备,物联网接入点可以同时接收和发送WIFI信号和RFID信号。The Internet of Things server 10 can be a gateway or an Internet of Things access point. Gateway, the English name is: "Gateway", gateway (Gateway) is also known as the network connector, protocol converter. The gateway implements network interconnection above the network layer. It is the most complex network interconnection device and is only used for different network interconnections of two high-level protocols. Gateways can be used for both WAN and LAN interconnections. A gateway is a computer system or device that acts as a conversion. The gateway is a translator between two systems that use different communication protocols, data formats or languages, or even completely different architectures. Unlike bridges that simply convey information, the gateway repackages the received information to suit the needs of the destination system. The Internet of Things access point refers to an intelligent information receiving and transmitting device that integrates a wireless network access point and an RFID access point. The Internet of Things access point can simultaneously receive and transmit WIFI signals and RFID signals.
智能灯20的数量可以是1个,也可以是多个,本发明不作限定。比如,在家中的每个房间里各安装一个智能灯。又如,只是在家中的客厅安装一个智能灯。The number of the smart lamps 20 may be one or plural, and the present invention is not limited thereto. For example, install a smart light in each room in your home. Another example is to install a smart light in the living room at home.
光亮度检测器是用于测量光亮度的测试仪器。光亮度检测器30可以是1个,也可以是多个,本发明不作限定。比如,在家中的每个房间里各安装一个光亮度检测器。又如,只是在家中的客厅安装一个光亮度检测器。其中,光亮度检测器是周期性(比如每1s、每2s、每5s、每6s或是其他值)将检测到的音量数据发送给物联网服务器的。The brightness detector is a test instrument for measuring the brightness of light. The brightness detector 30 may be one or plural, and is not limited in the present invention. For example, a brightness detector is installed in each room in the home. Another example is to install a light detector in the living room at home. The lightness detector periodically transmits the detected volume data to the IoT server periodically (for example, every 1 s, every 2 s, every 5 s, every 6 s, or other values).
音量检测器40可以是1个,也可以是多个,本发明不作限定。比如,在家中的每个房间里各安装一个音量检测器。又如,只是在家中的客厅安装一个音量检测器。其中,音量检测器是周期性(比如每1s、每2s、每5s、每6s或是其他值)将检测到的音量数据发送给物联网服务器的。The volume detector 40 may be one or plural, and the present invention is not limited thereto. For example, a volume detector is installed in each room in the home. Another example is to install a volume detector in the living room at home. The volume detector periodically sends the detected volume data to the IoT server periodically (for example, every 1 s, every 2 s, every 5 s, every 6 s, or other values).
终端设备50,又称之为用户设备(User Equipment,UE),是一种向用户提供语音和/或数据连通性的设备,例如,具有无线连接功能的手持式设备、车载设备等。常见的终端例如包括:手机、平板电脑、笔记本电脑、掌上电脑、移动互联网设备(mobile internet device,MID)、可穿戴设备,例如智能手表、智能手环、计步器等。 The terminal device 50, also referred to as a User Equipment (UE), is a device that provides voice and/or data connectivity to a user, for example, a handheld device with a wireless connection function, an in-vehicle device, and the like. Common terminals include, for example, mobile phones, tablets, notebook computers, PDAs, mobile internet devices (MIDs), wearable devices such as smart watches, smart bracelets, pedometers, and the like.
下面结合图1所示的物联网网络构架对本发明实施例提供的基于物联网的照明控制方法进行详细说明。The IoT-based lighting control method provided by the embodiment of the present invention will be described in detail below with reference to the Internet of Things network architecture shown in FIG.
请参见图2,图2为本发明实施例提供的一种基于物联网的照明控制方法的流程示意图,包括以下步骤:Referring to FIG. 2, FIG. 2 is a schematic flowchart of a method for controlling lighting based on an Internet of Things according to an embodiment of the present invention, including the following steps:
S201、当所述音量检测器连续检测到的多个第一音量数据均大于或等于第一音量时,所述物联网服务器获取所述光亮度检测器连续检测到的多个光亮度数据。S201. When the plurality of first volume data continuously detected by the volume detector is greater than or equal to the first volume, the Internet of Things server acquires a plurality of lightness brightness data continuously detected by the light brightness detector.
其中,由于用户的行动分贝大概在40db~70db左右,因此第一音量可以设为40db~70db这个范围中的其中一个值,假设第一音量为55db,当音量检测器连续检测到的多个第一音量数据均大于或等于55db时,代表用户当前处于行动状态。Among them, since the user's action decibel is about 40db~70db, the first volume can be set to one of the ranges of 40db~70db, assuming the first volume is 55db, when the volume detector continuously detects multiple When the volume data is greater than or equal to 55db, it means that the user is currently in the action state.
S202、当所述多个光亮度数据小于预设光亮度时,所述物联网服务器根据所述多个光亮度数据确定所述智能灯的第一功率。S202. When the plurality of brightness data is less than the preset brightness, the IoT server determines the first power of the smart lamp according to the plurality of brightness data.
其中,夜晚光灯睡觉,或白天拉窗帘(遮光效果很好)睡觉时,屋内的光亮度通常是在0.03~0.3lux左右,因此预设光亮度可以设为0.03~0.3lux这个范围中的其中一个加上一个阈值,这个阈值例如可以等于0.05lux、0.1lux、0.2lux或是其他值。假设预设光亮度为0.35lux,当光亮度检测器连续检测到的多个光亮度数据均小于0.35lux时,代表用户当前处于的环境是灯光比较暗的环境。为了不刺激用户眼睛,此时确定得到的第一功率会比较小。Among them, the night light sleeps, or the curtains are pulled during the day (the shading effect is very good). When sleeping, the brightness of the room is usually around 0.03~0.3lux, so the preset brightness can be set in the range of 0.03~0.3lux. One plus a threshold, which may for example be equal to 0.05 lux, 0.1 lux, 0.2 lux or other values. Assuming that the preset brightness is 0.35 lux, when the brightness data detected by the brightness detector is less than 0.35 lux, it means that the current environment of the user is a dark environment. In order not to irritate the user's eyes, the first power determined at this time will be relatively small.
其中,物联网服务器中存储有智能灯的多个功率,不同的功率对应不同的光亮度范围。比如,光亮度在0.03~0.3lux,对应一个功率,光亮度在3~10lux,对应另一个功率。所述物联网服务器根据所述多个光亮度数据确定所述智能灯的第一功率的具体实施方式为:所述物联网服务器从所述多个光亮度数据选取其中一个光亮度数据,以及根据所述其中一个光亮度数据确定所述智能灯的第一功率。或者,所述物联网服务器确定所述多个光亮度数据的平均光亮度,以及根据所述平均光亮确定所述智能灯的第一功率。The IoT server stores multiple powers of the smart light, and different powers correspond to different light brightness ranges. For example, the brightness is between 0.03 and 0.3 lux, corresponding to one power, and the brightness is between 3 and 10 lux, corresponding to another power. The specific implementation manner of the IoT server determining the first power of the smart light according to the plurality of light brightness data is: the Internet of Things server selects one of the light brightness data from the plurality of light brightness data, and according to The one of the brightness data determines a first power of the smart light. Alternatively, the IoT server determines an average lightness of the plurality of lightness data, and determines a first power of the smart light according to the average brightness.
S203、所述物联网服务器控制所述智能灯按照所述第一功率启动照明。 S203. The IoT server controls the smart light to start illumination according to the first power.
在一实施例中,若当前系统时间处于预设时间范围,以上步骤S203所述物联网服务器控制所述智能灯按照所述第一功率启动照明的具体实施方式为:所述物联网服务器控制所述智能灯在预设时长内按照所述第一功率启动照明,所述预设时长是基于所述预设时间范围确定的。In an embodiment, if the current system time is in the preset time range, the specific implementation manner of the IOT server controlling the smart light to start the illumination according to the first power in the step S203 is: the Internet of Things server control office The smart light starts illumination according to the first power within a preset time period, and the preset time length is determined based on the preset time range.
在一实施例中,在所述预设时长后,所述物联网服务器控制所述智能灯按照第二功率进行照明,所述第二功率大于所述第一功率。In an embodiment, after the preset duration, the IoT server controls the smart light to illuminate according to a second power, and the second power is greater than the first power.
其中,预设时间范围例如可以是7:30~8:00、8:00~9:00,8:30~9:00、8:30~9:30或是其他值。The preset time range may be, for example, 7:30 to 8:00, 8:00 to 9:00, 8:30 to 9:00, 8:30 to 9:30, or other values.
其中,预设时长例如可以是1分钟、1分钟半、2分钟、3分钟或是其他值。所述预设时长是基于所述预设时间范围确定的。即不同的时间范围对应不同的时长。比如,7:30~8:00对应的预设时长为2分钟、8:00~9:00对应的预设时长3分钟。The preset duration may be, for example, 1 minute, 1 minute and a half, 2 minutes, 3 minutes, or other values. The preset duration is determined based on the preset time range. That is, different time ranges correspond to different durations. For example, the preset duration corresponding to 7:30 to 8:00 is 2 minutes, and the preset duration corresponding to 8:00 to 9:00 is 3 minutes.
举例来说,假设预设时间范围为7:30~8:00,预设时长为2分钟,可见该时间点是人们早上起床的时间,人们起床后会先去开灯,但是人们刚睡醒如果灯光太强会刺激人们眼睛。为了避免刺激人们眼睛,物联网可控制智能灯先按照低功率点亮2分钟,2分钟后人们眼睛也慢慢适应了有光的环境,这时候将智能灯的功率调高,以照亮屋子。For example, suppose the preset time range is 7:30-8:00, and the preset duration is 2 minutes. It can be seen that the time is the time people wake up in the morning. People wake up and turn on the lights first, but people just wake up. If the light is too strong, it will irritate people's eyes. In order to avoid irritating people's eyes, the Internet of Things can control the smart lights to light up for 2 minutes according to low power. After 2 minutes, people's eyes are slowly adapting to the light environment. At this time, the power of the smart lights is turned up to illuminate the house. .
在一实施例中,以上步骤S203所述物联网服务器控制所述智能灯按照所述第一功率启动照明之后,所述方法还包括:In an embodiment, after the IoT server controls the smart light to start the illumination according to the first power, the method further includes:
当所述音量检测器连续检测到的多个第二音量数据均小于所述第一音量时,所述物联网服务器控制所述智能灯关闭照明。The IoT server controls the smart light to turn off the illumination when the plurality of second volume data continuously detected by the volume detector is less than the first volume.
举例来说,假设第一音量为55db,当音量检测器连续检测到的多个第一音量数据均小于55db时,代表用户当前静止状态,比如用户躺着,此时物联网服务器可以控制智能灯关闭照明。For example, assuming that the first volume is 55 db, when the plurality of first volume data continuously detected by the volume detector is less than 55 db, representing the current stationary state of the user, such as the user lying down, the IoT server can control the smart light at this time. Turn off the lighting.
在一实施例中,所述智能家居系统还包括终端设备,所述方法还包括:所述物联网服务器向所述终端设备发送用于提示用户是否关闭所述智能灯的第一语音信息,以使得所述终端设备接收到所述语音信息时播放所述第一语音信息;所述物联网服务器接收所述终端设备所述第一语音信息而发送的第二语音 信息,所述第二语音信息是所述终端设备采集到的语音信息;所述物联网服务器解析所述第二语音信息,以得到N个关键词;当所述N个关键词中存在至少一个关键词与预存关键词匹配,则所述物联网服务器控制所述智能灯关闭照明。In an embodiment, the smart home system further includes a terminal device, the method further includes: the IoT server transmitting, to the terminal device, first voice information for prompting a user whether to turn off the smart light, And causing the terminal device to play the first voice information when receiving the voice information; and the second voice sent by the Internet of Things server to receive the first voice information of the terminal device Information, the second voice information is voice information collected by the terminal device; the Internet of Things server parses the second voice information to obtain N keywords; when at least one of the N keywords exists The keyword matches the pre-stored keyword, and the IoT server controls the smart light to turn off the illumination.
其中,预设关键词例如可以是关闭、是、嗯、turn off、关等等。The preset keywords may be, for example, off, yes, um, turn off, off, and the like.
举例来说,假设第一语音信息为“是否关闭智能灯”,第二语音信息为“关闭智能灯”,物联网服务器解析得到的关键词有:关闭、智能灯,可见,解析得到的关键词“关闭”与预存关键词“关闭”相匹配,此时物联网服务器控制智能灯关闭照明。For example, suppose the first voice information is “whether to turn off the smart light”, and the second voice information is “turn off the smart light”, and the keywords obtained by the Internet of Things server are: closed, smart lights, visible, parsed keywords "Off" matches the pre-stored keyword "Off", at which point the IoT server controls the smart light to turn off the illumination.
在一实施例中,所述物联网服务器向所述终端设备发送用于提示用户是否关闭所述智能灯的第一语音信息的具体实施方式有:在当前系统时间晚于预设时间时,所述物联网服务器向所述终端设备发送用于提示用户是否关闭所述智能灯的第一语音信息,所述预设时间是用户自定义的需要休息的时间点。可见,在需要休息时,物联网服务器可提示用户是否需要关灯,这样不仅既能体现了智能开关灯,还起到了提醒用户正常休息的作用。In an embodiment, the specific method for the IoT server to send the first voice information for prompting the user to turn off the smart light to the terminal device is: when the current system time is later than the preset time, The IoT server sends the first voice information for prompting the user to turn off the smart light to the terminal device, where the preset time is a user-defined time point that needs to rest. It can be seen that when a break is needed, the IoT server can prompt the user whether to turn off the light, which not only embodies the smart switch light, but also plays a role in reminding the user to rest normally.
在一实施例中,在所述音量检测器连续检测到的多个第三音量数据均大于或等于第二音量时,所述物联网服务器控制所述智能灯按照第三功率启动照明,所述第二音量大于或等于所述第一音量*预设阈值,所述第三功率大于所述第一功率。其中,预设阈值可以是2、2.5、2.3、3、4或是其他值。可见,用户不想直接通过开关开灯时,用户通过发出一个比较大的声音(比如大声咳嗽、双手拍一下)控制智能灯直接启动照明。In an embodiment, when the plurality of third volume data continuously detected by the volume detector is greater than or equal to the second volume, the IoT server controls the smart light to start illumination according to the third power, The second volume is greater than or equal to the first volume* preset threshold, and the third power is greater than the first power. The preset threshold may be 2, 2.5, 2.3, 3, 4 or other values. It can be seen that when the user does not want to turn on the light directly through the switch, the user controls the smart light to directly start the illumination by emitting a relatively large sound (such as a loud cough and a two-handed shot).
可见,本发明提供的方案通过在家中安置光亮度检测器和音量检测器。当音量检测器连续检测到多个第一音量数据均超过第一音量时,代表用户起身行动。此时获取光亮度检测器连续检测到的多个光亮度数据,当多个光亮度数据均为超过预设光亮度,代表当前环境亮度较暗。可见当前用户处于一个比较暗的环境,为了避免瞬间开灯刺激用户的眼睛,该种情况下,根据光亮度检测器检测到的多个光亮度数据调节智能灯点的功率,达到调节智能灯发出的光亮度,进而提高用户体验。 It can be seen that the solution provided by the present invention places a lightness detector and a volume detector through the home. When the volume detector continuously detects that the plurality of first volume data exceeds the first volume, the user is raised to act. At this time, a plurality of light brightness data continuously detected by the light brightness detector are obtained, and when the plurality of light brightness data exceeds the preset light brightness, the brightness of the current environment is dark. It can be seen that the current user is in a relatively dark environment, in order to avoid the momentary lighting to stimulate the user's eyes, in this case, the power of the intelligent light point is adjusted according to the plurality of light brightness data detected by the lightness detector, and the adjustment intelligent light is emitted. The brightness of the light enhances the user experience.
举例来说,请参见图3,图3为本发明实施例提供的一种示例示意图。如图3所示,光亮度检测器和音量检测器将自身检测到的光亮度数据和音量数据发送给物联网服务器,物联网服务器基于接收到的数据进行数据处理操作,然后物联网服务器输出控制指令给智能灯,智能灯基于控制指令进行相应的操作。比如,假设第一音量为55db,预设光亮度为0.35lux,0.1lux~0.35lux对应的功率为10w。其中,音量检测器连续向物联网服务器发送的10个音量数据有:51db、40db、42db、50db、52db、45db、48db、50db、43db、42db。光亮度检测器连续向物联网服务器发送的10个光亮度数据有:0.1lux、0.15lux、0.2lux、0.3lux、0.1lux、0.1lux、0.15lux、0.15lux、0.2lux、0.15lux。可见,10个音量数据均大于55db,10个光亮度数据均小于0.35lux,代表用户当前处于行动状态,且用户当前的环境比较黑。10个光亮度数据对应的功率为10w,那么物联网服务器向智能灯发送启动照明控制指令,该控制指令携带功率(10w),以使得智能灯按照10w进行照明。For example, please refer to FIG. 3, which is a schematic diagram of an example according to an embodiment of the present invention. As shown in FIG. 3, the brightness detector and the volume detector send the light brightness data and volume data detected by themselves to the Internet of Things server, and the IoT server performs data processing operations based on the received data, and then the IoT server output control. The command is given to the smart light, and the smart light performs corresponding operations based on the control command. For example, suppose the first volume is 55db, the preset brightness is 0.35lux, and the power corresponding to 0.1lux to 0.35lux is 10w. Among them, the volume data continuously sent by the volume detector to the Internet of Things server are: 51db, 40db, 42db, 50db, 52db, 45db, 48db, 50db, 43db, 42db. The 10 brightness data that the brightness detector continuously sends to the IoT server are: 0.1 lux, 0.15 lux, 0.2 lux, 0.3 lux, 0.1 lux, 0.1 lux, 0.15 lux, 0.15 lux, 0.2 lux, 0.15 lux. It can be seen that 10 volume data are larger than 55db, and 10 brightness data are less than 0.35lux, which means that the user is currently in the action state, and the user's current environment is relatively dark. The power corresponding to the 10 brightness data is 10w, then the IoT server sends a start lighting control command to the smart light, the control command carries power (10w), so that the smart light is illuminated according to 10w.
本发明实施例还提供了另一更为详细的方法流程,如图4所示,包括:Another embodiment of the present invention further provides a more detailed method flow, as shown in FIG. 4, including:
S401、所述物联网服务器获取所述音量检测器连续检测到的多个第一音量数据。S401. The IoT server acquires a plurality of first volume data continuously detected by the volume detector.
S402、当所述多个第一音量数据均大于或等于第一音量时,所述物联网服务器获取所述光亮度检测器连续检测到的多个光亮度数据。S402. When the plurality of first volume data are greater than or equal to the first volume, the Internet of Things server acquires a plurality of lightness data continuously detected by the lightness detector.
S403、当所述多个光亮度数据小于预设光亮度时,所述物联网服务器根据所述多个光亮度数据确定所述智能灯的第一功率。S403. When the plurality of brightness data is less than the preset brightness, the IoT server determines the first power of the smart lamp according to the plurality of brightness data.
S404、若当前系统时间处于预设时间范围,所述物联网服务器向所述智能灯发送照明指令,所述照明指令携带所述第一功率和预设时长。所述照明指令用于指示所述智能灯在预设时长内按照所述第一功率启动照明,以及在所述预设时长后,按照第二功率进行照明,所述第二功率大于所述第一功率,所述预设时长是基于所述预设时间范围确定的。S404. If the current system time is in a preset time range, the IoT server sends a lighting instruction to the smart light, where the lighting instruction carries the first power and a preset duration. The illumination command is configured to instruct the smart light to start illumination according to the first power within a preset time period, and after the preset time length, perform illumination according to a second power, where the second power is greater than the first For a power, the preset duration is determined based on the preset time range.
S405、所述智能灯接收所述照明指令,以及根据所述照明指令执行相应操 作。S405. The smart light receives the lighting instruction, and performs corresponding operation according to the lighting instruction. Work.
S406、所述物联网服务器获取所述音量检测器连续检测到的多个第二音量数据。S406. The IoT server acquires a plurality of second volume data continuously detected by the volume detector.
S407、当所述多个第二音量数据均小于所述第一音量时,所述物联网服务器向智能灯发送关闭照明指令,所述关闭照明指令用于指示所述智能灯关闭照明。S407. When the plurality of second volume data are all smaller than the first volume, the IoT server sends a shutdown illumination command to the smart light, where the shutdown illumination command is used to instruct the smart light to turn off the illumination.
S408、所述智能灯接收所述关闭照明指令,以及关闭照明。S408. The smart light receives the turning off lighting instruction and turns off the lighting.
需要说明的是,图4所示的方法的各个步骤的具体实现过程可参见上述方法所述的具体实现过程,在此不再叙述。It should be noted that the specific implementation process of each step of the method shown in FIG. 4 can be referred to the specific implementation process described in the foregoing method, and is not described herein.
本发明实施例还提供了一种物联网服务器500,适用于智能家居系统,所述智能家居系统包括物联网服务器、智能灯、光亮度检测器和音量检测器,如图5所示,包括:The embodiment of the present invention further provides an Internet of Things server 500, which is applicable to a smart home system. The smart home system includes an Internet of Things server, a smart light, a brightness detector, and a volume detector. As shown in FIG. 5, the method includes:
获取模块501,用于当所述音量检测器连续检测到的多个第一音量数据均大于或等于第一音量时,获取所述光亮度检测器连续检测到的多个光亮度数据。The obtaining module 501 is configured to acquire, when the plurality of first volume data continuously detected by the volume detector is greater than or equal to the first volume, the plurality of lightness data continuously detected by the lightness detector.
确定模块502,用于当所述多个光亮度数据小于预设光亮度时,根据所述多个光亮度数据确定所述智能灯的第一功率。The determining module 502 is configured to determine a first power of the smart light according to the plurality of light brightness data when the plurality of light brightness data is less than a preset light brightness.
第一控制模块503,用于控制所述智能灯按照所述第一功率启动照明。The first control module 503 is configured to control the smart light to start illumination according to the first power.
可选地,所述第一控制模块503,还用于当所述音量检测器连续检测到的多个第二音量数据均小于所述第一音量时,控制所述智能灯关闭照明。Optionally, the first control module 503 is further configured to control the smart light to turn off the illumination when the plurality of second volume data continuously detected by the volume detector is less than the first volume.
可选地,所述第一控制模块503具体用于控制所述智能灯在预设时长内按照所述第一功率启动照明,所述预设时长是基于所述预设时间范围确定的。Optionally, the first control module 503 is specifically configured to control the smart light to start illumination according to the first power within a preset time period, where the preset duration is determined based on the preset time range.
可选地,所述物联网服务器还包括:Optionally, the IoT server further includes:
第二控制模块504,用于在所述预设时长后,控制所述智能灯按照第二功率进行照明,所述第二功率大于所述第一功率。The second control module 504 is configured to control, after the preset duration, that the smart light is illuminated according to a second power, where the second power is greater than the first power.
可选地,所述物联网服务器还包括:Optionally, the IoT server further includes:
第三控制模块505,用于在所述音量检测器连续检测到的多个第三音量数 据均大于或等于第二音量时,控制所述智能灯按照第三功率启动照明,所述第二音量大于或等于所述第一音量*预设阈值,所述第三功率大于所述第一功率。a third control module 505, configured to continuously detect the plurality of third volume numbers in the volume detector The smart light is controlled to start illumination according to the third power when the second volume is greater than or equal to the second volume, the second volume is greater than or equal to the first volume* preset threshold, and the third power is greater than the first power.
需要说明的是,上述各模块(获取模块501、确定模块502、第一控制模块503、第二控制模块504、第三控制模块505)用于执行上述方法的相关步骤。比如获取模块501用于执行以上步骤S201、确定模块502用于执行以上步骤S202、第一控制模块503用于执行以上步骤S202等等。It should be noted that each of the above modules (acquisition module 501, determination module 502, first control module 503, second control module 504, third control module 505) is used to perform the relevant steps of the above method. For example, the obtaining module 501 is configured to perform the above step S201, the determining module 502 is configured to perform the above step S202, the first control module 503 is configured to perform the above step S202, and the like.
在本实施例中,物联网服务器500是以模块的形式来呈现。这里的“模块”可以指特定应用集成电路(application-specific integrated circuit,ASIC),执行一个或多个软件或固件程序的处理器和存储器,集成逻辑电路,和/或其他可以提供上述功能的器件。此外,以上获取模块501、确定模块502、第一控制模块503、第二控制模块504、第三控制模块505可通过图6所示的物联网服务器的处理器601来实现。In the present embodiment, the Internet of Things server 500 is presented in the form of a module. A "module" herein may refer to an application-specific integrated circuit (ASIC), a processor and memory that executes one or more software or firmware programs, integrated logic circuits, and/or other devices that provide the above functionality. . In addition, the above obtaining module 501, determining module 502, first control module 503, second control module 504, and third control module 505 can be implemented by the processor 601 of the Internet of Things server shown in FIG. 6.
如图6所示,物联网服务器600可以以图6中的结构来实现,该物联网服务器600包括至少一个处理器601,至少一个存储器602以及至少一个通信接口603。所述处理器601、所述存储器602和所述通信接口603通过所述通信总线连接并完成相互间的通信。As shown in FIG. 6, the Internet of Things server 600 can be implemented in the structure of FIG. 6, which includes at least one processor 601, at least one memory 602, and at least one communication interface 603. The processor 601, the memory 602, and the communication interface 603 are connected by the communication bus and complete communication with each other.
处理器601可以是通用中央处理器(CPU),微处理器,特定应用集成电路(application-specific integrated circuit,ASIC),或一个或多个用于控制以上方案程序执行的集成电路。The processor 601 can be a general purpose central processing unit (CPU), a microprocessor, an application-specific integrated circuit (ASIC), or one or more integrated circuits for controlling the execution of the above program.
通信接口603,用于与其他设备或通信网络通信,如以太网,无线接入网(RAN),无线局域网(Wireless Local Area Networks,WLAN)等。The communication interface 603 is configured to communicate with other devices or communication networks, such as Ethernet, Radio Access Network (RAN), Wireless Local Area Networks (WLAN), and the like.
存储器602可以是只读存储器(read-only memory,ROM)或可存储静态信息和指令的其他类型的静态存储设备,随机存取存储器(random access memory,RAM)或者可存储信息和指令的其他类型的动态存储设备,也可以是电可擦可编程只读存储器(Electrically Erasable Programmable Read-Only Memory,EEPROM)、只读光盘(Compact Disc Read-Only Memory,CD-ROM)或其他光盘存储、光碟存储(包括压缩光碟、激光碟、光碟、数字通用光碟、 蓝光光碟等)、磁盘存储介质或者其他磁存储设备、或者能够用于携带或存储具有指令或数据结构形式的期望的程序代码并能够由计算机存取的任何其他介质,但不限于此。存储器可以是独立存在,通过总线与处理器相连接。存储器也可以和处理器集成在一起。The memory 602 can be a read-only memory (ROM) or other type of static storage device that can store static information and instructions, a random access memory (RAM) or other type that can store information and instructions. The dynamic storage device can also be an Electrically Erasable Programmable Read-Only Memory (EEPROM), a Compact Disc Read-Only Memory (CD-ROM) or other optical disc storage, and a disc storage device. (including compact discs, laser discs, compact discs, digital versatile discs, Blu-ray discs, etc., disk storage media or other magnetic storage devices, or any other medium that can be used to carry or store desired program code in the form of instructions or data structures and that can be accessed by a computer, but is not limited thereto. The memory can exist independently and be connected to the processor via a bus. The memory can also be integrated with the processor.
其中,所述存储器602用于存储执行以上方案的应用程序代码,并由处理器601来控制执行。所述处理器601用于执行所述存储器602中存储的应用程序代码。The memory 602 is configured to store application code that executes the above solution, and is controlled by the processor 601 for execution. The processor 601 is configured to execute application code stored in the memory 602.
存储器602存储的代码可执行以上提供的终端设备执行的上述基于物联网的照明控制方法,比如当所述音量检测器连续检测到的多个第一音量数据均大于或等于第一音量时,所述物联网服务器获取所述光亮度检测器连续检测到的多个光亮度数据;当所述多个光亮度数据小于预设光亮度时,所述物联网服务器根据所述多个光亮度数据确定所述智能灯的第一功率;所述物联网服务器控制所述智能灯按照所述第一功率启动照明。The code stored in the memory 602 may perform the above-described Internet of Things-based lighting control method performed by the terminal device provided above, such as when the plurality of first volume data continuously detected by the volume detector are greater than or equal to the first volume, Obtaining, by the Internet of Things server, a plurality of light brightness data continuously detected by the light brightness detector; when the plurality of light brightness data is less than a preset light brightness, the Internet of Things server determines according to the plurality of light brightness data a first power of the smart light; the Internet of Things server controls the smart light to initiate illumination in accordance with the first power.
本发明实施例还提供一种计算机存储介质,其中,该计算机存储介质存储用于电子数据交换的计算机程序,该计算机程序使得计算机执行如上述方法实施例中记载的任一方法的部分或全部步骤,所述计算机包括物联网服务器。The embodiment of the present invention further provides a computer storage medium, wherein the computer storage medium stores a computer program for electronic data exchange, the computer program causing the computer to perform some or all of the steps of any of the methods described in the foregoing method embodiments. The computer includes an Internet of Things server.
本发明实施例还提供一种计算机程序产品,所述计算机程序产品包括存储了计算机程序的非瞬时性计算机可读存储介质,所述计算机程序可操作来使计算机执行如上述方法实施例中记载的任一方法的部分或全部步骤。该计算机程序产品可以为一个软件安装包,所述计算机包括物联网服务器。Embodiments of the present invention also provide a computer program product comprising a non-transitory computer readable storage medium storing a computer program, the computer program being operative to cause a computer to perform the operations as recited in the above method embodiments Part or all of the steps of either method. The computer program product can be a software installation package that includes an IoT server.
需要说明的是,对于前述的各方法实施例,为了简单描述,故将其都表述为一系列的动作组合,但是本领域技术人员应该知悉,本发明并不受所描述的动作顺序的限制,因为依据本发明,某些步骤可以采用其他顺序或者同时进行。其次,本领域技术人员也应该知悉,说明书中所描述的实施例均属于优选实施例,所涉及的动作和模块并不一定是本发明所必须的。It should be noted that, for the foregoing method embodiments, for the sake of simple description, they are all expressed as a series of action combinations, but those skilled in the art should understand that the present invention is not limited by the described action sequence. Because certain steps may be performed in other sequences or concurrently in accordance with the present invention. In the following, those skilled in the art should also understand that the embodiments described in the specification are all preferred embodiments, and the actions and modules involved are not necessarily required by the present invention.
在上述实施例中,对各个实施例的描述都各有侧重,某个实施例中没有详述的部分,可以参见其他实施例的相关描述。 In the above embodiments, the descriptions of the various embodiments are different, and the details that are not detailed in a certain embodiment can be referred to the related descriptions of other embodiments.
在本申请所提供的几个实施例中,应该理解到,所揭露的装置,可通过其它的方式实现。例如,以上所描述的装置实施例仅仅是示意性的,例如所述单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如多个单元或组件可以结合或者可以集成到另一个系统,或一些特征可以忽略,或不执行。另一点,所显示或讨论的相互之间的耦合或直接耦合或通信连接可以是通过一些接口,装置或单元的间接耦合或通信连接,可以是电性或其它的形式。In the several embodiments provided herein, it should be understood that the disclosed apparatus may be implemented in other ways. For example, the device embodiments described above are merely illustrative. For example, the division of the unit is only a logical function division. In actual implementation, there may be another division manner, for example, multiple units or components may be combined or may be Integrate into another system, or some features can be ignored or not executed. In addition, the mutual coupling or direct coupling or communication connection shown or discussed may be an indirect coupling or communication connection through some interface, device or unit, and may be electrical or otherwise.
所述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部单元来实现本实施例方案的目的。The units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, may be located in one place, or may be distributed to multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of the embodiment.
另外,在本发明各个实施例中的各功能单元可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中。上述集成的单元既可以采用硬件的形式实现,也可以采用软件功能单元的形式实现。In addition, each functional unit in each embodiment of the present invention may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above integrated unit can be implemented in the form of hardware or in the form of a software functional unit.
所述集成的单元如果以软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储器中。基于这样的理解,本发明的技术方案本质上或者说对现有技术做出贡献的部分或者该技术方案的全部或部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储器中,包括若干指令用以使得一台计算机设备(可为个人计算机、物联网服务器或者网络设备等)执行本发明各个实施例所述方法的全部或部分步骤。而前述的存储器包括:U盘、只读存储器(ROM,Read-Only Memory)、随机存取存储器(RAM,Random Access Memory)、移动硬盘、磁碟或者光盘等各种可以存储程序代码的介质。The integrated unit, if implemented in the form of a software functional unit and sold or used as a standalone product, may be stored in a computer readable memory. Based on such understanding, the technical solution of the present invention may contribute to the prior art or all or part of the technical solution may be embodied in the form of a software product stored in a memory. A number of instructions are included to cause a computer device (which may be a personal computer, an Internet of Things server, or a network device, etc.) to perform all or part of the steps of the methods described in various embodiments of the present invention. The foregoing memory includes: a U disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a removable hard disk, a magnetic disk, or an optical disk, and the like, which can store program codes.
本领域普通技术人员可以理解上述实施例的各种方法中的全部或部分步骤是可以通过程序来指令相关的硬件来完成,该程序可以存储于一计算机可读存储器中,存储器可以包括:闪存盘、只读存储器(英文:Read-Only Memory,简称:ROM)、随机存取器(英文:Random Access Memory,简称:RAM)、 磁盘或光盘等。A person skilled in the art can understand that all or part of the steps of the foregoing embodiments can be completed by a program to instruct related hardware, and the program can be stored in a computer readable memory, and the memory can include: a flash drive , read-only memory (English: Read-Only Memory, referred to as: ROM), random accessor (English: Random Access Memory, referred to as: RAM), Disk or disc, etc.
以上对本发明实施例进行了详细介绍,本文中应用了具体个例对本发明的原理及实施方式进行了阐述,以上实施例的说明只是用于帮助理解本发明的方法及其核心思想;同时,对于本领域的一般技术人员,依据本发明的思想,在具体实施方式及应用范围上均会有改变之处,综上上述,本说明书内容不应理解为对本发明的限制。 The embodiments of the present invention have been described in detail above, and the principles and implementations of the present invention are described in detail herein. The description of the above embodiments is only for helping to understand the method of the present invention and its core ideas; A person of ordinary skill in the art, in light of the above, the present invention is not limited by the scope of the present invention.

Claims (10)

  1. 一种基于物联网的照明控制方法,其特征在于,适用于智能家居系统,所述智能家居系统包括物联网服务器、智能灯、光亮度检测器和音量检测器,包括:An Internet of Things-based lighting control method is characterized in that it is suitable for a smart home system, and the smart home system includes an Internet of Things server, a smart light, a brightness detector, and a volume detector, including:
    当所述音量检测器连续检测到的多个第一音量数据均大于或等于第一音量时,所述物联网服务器获取所述光亮度检测器连续检测到的多个光亮度数据;When the plurality of first volume data continuously detected by the volume detector is greater than or equal to the first volume, the Internet of Things server acquires a plurality of lightness brightness data continuously detected by the light brightness detector;
    当所述多个光亮度数据小于预设光亮度时,所述物联网服务器根据所述多个光亮度数据确定所述智能灯的第一功率;When the plurality of brightness data is less than the preset brightness, the Internet of Things server determines the first power of the smart lamp according to the plurality of light brightness data;
    所述物联网服务器控制所述智能灯按照所述第一功率启动照明。The IoT server controls the smart light to initiate illumination in accordance with the first power.
  2. 根据权利要求1所述的方法,其特征在于,所述物联网服务器控制所述智能灯按照所述第一功率启动照明之后,所述方法还包括:The method according to claim 1, wherein after the IoT server controls the smart light to start illumination according to the first power, the method further comprises:
    当所述音量检测器连续检测到的多个第二音量数据均小于所述第一音量时,所述物联网服务器控制所述智能灯关闭照明。The IoT server controls the smart light to turn off the illumination when the plurality of second volume data continuously detected by the volume detector is less than the first volume.
  3. 根据权利要求1或2所述的方法,其特征在于,若当前系统时间处于预设时间范围,所述物联网服务器控制所述智能灯按照所述第一功率启动照明,包括:The method according to claim 1 or 2, wherein if the current system time is in a preset time range, the IoT server controls the smart light to start lighting according to the first power, including:
    所述物联网服务器控制所述智能灯在预设时长内按照所述第一功率启动照明,所述预设时长是基于所述预设时间范围确定的。The IoT server controls the smart light to start illumination according to the first power within a preset time period, and the preset duration is determined based on the preset time range.
  4. 根据权利要求3所述的方法,其特征在于,所述方法还包括:The method of claim 3, wherein the method further comprises:
    在所述预设时长后,所述物联网服务器控制所述智能灯按照第二功率进行照明,所述第二功率大于所述第一功率。After the preset duration, the IoT server controls the smart light to illuminate according to a second power, and the second power is greater than the first power.
  5. 根据权利要求1-4任一项所述的方法,其特征在于,所述方法还包括: The method according to any one of claims 1 to 4, wherein the method further comprises:
    在所述音量检测器连续检测到的多个第三音量数据均大于或等于第二音量时,所述物联网服务器控制所述智能灯按照第三功率启动照明,所述第二音量大于或等于所述第一音量*预设阈值,所述第三功率大于所述第一功率。When the plurality of third volume data continuously detected by the volume detector is greater than or equal to the second volume, the IoT server controls the smart light to start illumination according to a third power, and the second volume is greater than or equal to The first volume* is a preset threshold, and the third power is greater than the first power.
  6. 一种物联网服务器,其特征在于,适用于智能家居系统,所述智能家居系统包括物联网服务器、智能灯、光亮度检测器和音量检测器,包括:An Internet of Things server is characterized in that it is suitable for a smart home system, and the smart home system includes an Internet of Things server, a smart light, a brightness detector, and a volume detector, including:
    获取模块,用于当所述音量检测器连续检测到的多个第一音量数据均大于或等于第一音量时,获取所述光亮度检测器连续检测到的多个光亮度数据;An acquiring module, configured to acquire, after the plurality of first volume data continuously detected by the volume detector is greater than or equal to the first volume, the plurality of lightness brightness data continuously detected by the light brightness detector;
    确定模块,用于当所述多个光亮度数据小于预设光亮度时,根据所述多个光亮度数据确定所述智能灯的第一功率;a determining module, configured to determine a first power of the smart light according to the plurality of light brightness data when the plurality of light brightness data is less than a preset light brightness;
    第一控制模块,用于控制所述智能灯按照所述第一功率启动照明。And a first control module, configured to control the smart light to start illumination according to the first power.
  7. 根据权利要求6所述的物联网服务器,其特征在于,所述第一控制模块,还用于当所述音量检测器连续检测到的多个第二音量数据均小于所述第一音量时,控制所述智能灯关闭照明。The IoT server according to claim 6, wherein the first control module is further configured to: when the plurality of second volume data continuously detected by the volume detector are smaller than the first volume, The smart light is controlled to turn off the illumination.
  8. 根据权利要求6或7所述的物联网服务器,其特征在于,所述第一控制模块具体用于控制所述智能灯在预设时长内按照所述第一功率启动照明,所述预设时长是基于所述预设时间范围确定的。The IoT server according to claim 6 or 7, wherein the first control module is specifically configured to control the smart light to start lighting according to the first power within a preset time period, the preset duration It is determined based on the preset time range.
  9. 根据权利要求8所述的物联网服务器,其特征在于,所述物联网服务器还包括:The Internet of Things server according to claim 8, wherein the Internet of Things server further comprises:
    第二控制模块,用于在所述预设时长后,控制所述智能灯按照第二功率进行照明,所述第二功率大于所述第一功率。The second control module is configured to control, after the preset duration, that the smart light is illuminated according to a second power, where the second power is greater than the first power.
  10. 根据权利要求1-4任一项所述的物联网服务器,其特征在于,所述物联网服务器还包括:The Internet of Things server according to any one of claims 1 to 4, wherein the Internet of Things server further comprises:
    第三控制模块,用于在所述音量检测器连续检测到的多个第三音量数据均 大于或等于第二音量时,控制所述智能灯按照第三功率启动照明,所述第二音量大于或等于所述第一音量*预设阈值,所述第三功率大于所述第一功率。 a third control module, configured to continuously detect, by the volume detector, a plurality of third volume data When the second volume is greater than or equal to the second volume, the smart light is controlled to start illumination according to the third power, the second volume is greater than or equal to the first volume* preset threshold, and the third power is greater than the first power.
PCT/CN2017/100765 2017-07-13 2017-09-06 Internet of things based control method and internet of things server WO2019010795A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201710574717.0 2017-07-13
CN201710574717.0A CN107333368A (en) 2017-07-13 2017-07-13 A kind of control method and Internet of Things server based on Internet of Things

Publications (1)

Publication Number Publication Date
WO2019010795A1 true WO2019010795A1 (en) 2019-01-17

Family

ID=60226753

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2017/100765 WO2019010795A1 (en) 2017-07-13 2017-09-06 Internet of things based control method and internet of things server

Country Status (2)

Country Link
CN (1) CN107333368A (en)
WO (1) WO2019010795A1 (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108882446A (en) * 2018-06-19 2018-11-23 中南林业科技大学 A kind of lighting system based on Internet of Things
CN109979449A (en) * 2019-02-15 2019-07-05 江门市汉的电气科技有限公司 A kind of sound control method of Intelligent lamp, device, equipment and storage medium
CN110703615A (en) * 2019-09-16 2020-01-17 北京方研矩行科技有限公司 Data-driven scene method and device based on Internet of things

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103152917A (en) * 2013-02-01 2013-06-12 健雄职业技术学院 Stadium energy-saving control system based on Internet of things and control method thereof
CN104254164A (en) * 2013-06-28 2014-12-31 青岛联合创新技术服务平台有限公司 Home lighting control system
CN104869696A (en) * 2015-03-31 2015-08-26 繁昌县博通电子商务有限公司 Intelligent energy-saving household illuminating lamp
CN105451421A (en) * 2015-12-25 2016-03-30 石永丽 Internet-of-things-based intelligent building lighting system
CN106211521A (en) * 2016-08-31 2016-12-07 广州星辰热能股份有限公司 A kind of intelligent power saving light-emitting device and control method thereof
CN106297144A (en) * 2016-08-28 2017-01-04 姜俊 A kind of Intelligent underground parking lot safety-protection system
CN106413224A (en) * 2016-09-22 2017-02-15 惠州Tcl移动通信有限公司 Intelligent indoor illumination control method and system
CN206024204U (en) * 2016-08-31 2017-03-15 广州星辰热能股份有限公司 A kind of intelligent power saving light-emitting device

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN202327750U (en) * 2011-11-25 2012-07-11 苏利雄 LED illumination alarm lamp
CN103763828B (en) * 2014-01-16 2016-08-17 步步高教育电子有限公司 A kind of eye-protecting desk lamp being provided with alarm clock and control method thereof
CN105392257B (en) * 2015-12-04 2018-07-06 小米科技有限责任公司 Control the method and device of intelligent lamp
CN205847675U (en) * 2016-07-21 2016-12-28 天津市欣然市政工程有限公司 A kind of intelligent building illuminator
CN106912150B (en) * 2017-03-17 2019-06-21 青岛亿联客信息技术有限公司 Automatically according to method, the system of the use habit illumination of user
CN106895358B (en) * 2017-04-12 2023-04-18 安徽朗越能源股份有限公司 Lithium-electricity solar internet-of-things lamp system

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103152917A (en) * 2013-02-01 2013-06-12 健雄职业技术学院 Stadium energy-saving control system based on Internet of things and control method thereof
CN104254164A (en) * 2013-06-28 2014-12-31 青岛联合创新技术服务平台有限公司 Home lighting control system
CN104869696A (en) * 2015-03-31 2015-08-26 繁昌县博通电子商务有限公司 Intelligent energy-saving household illuminating lamp
CN105451421A (en) * 2015-12-25 2016-03-30 石永丽 Internet-of-things-based intelligent building lighting system
CN106297144A (en) * 2016-08-28 2017-01-04 姜俊 A kind of Intelligent underground parking lot safety-protection system
CN106211521A (en) * 2016-08-31 2016-12-07 广州星辰热能股份有限公司 A kind of intelligent power saving light-emitting device and control method thereof
CN206024204U (en) * 2016-08-31 2017-03-15 广州星辰热能股份有限公司 A kind of intelligent power saving light-emitting device
CN106413224A (en) * 2016-09-22 2017-02-15 惠州Tcl移动通信有限公司 Intelligent indoor illumination control method and system

Also Published As

Publication number Publication date
CN107333368A (en) 2017-11-07

Similar Documents

Publication Publication Date Title
US9913352B2 (en) System and method for light socket adaptation
US9990175B2 (en) Lighting device and voice broadcasting system and method thereof
WO2019010795A1 (en) Internet of things based control method and internet of things server
WO2022042312A1 (en) Control method for lighting device, and wearable device
US10143066B2 (en) Sensor with wireless device for controlling a light source
US20190387314A1 (en) Lighting System With Remote Microphone
WO2016091096A1 (en) Light induction sound box, and control method and device therefor
US11310594B2 (en) Portable smart speaker power control
US11595889B2 (en) Determining a duty schedule for a group of lighting devices providing a similar lighting service
WO2022252695A1 (en) Air conditioner control method and system, and air conditioner
JP2009017267A (en) Lighting system, lighting control device, and radio communication apparatus
CN113572886A (en) Router control method, router control device and storage medium
CN114265344A (en) Batch control method, system and equipment based on virtual equipment group creation
CN106710197B (en) Remote control method and device
US20180315567A1 (en) Soft switch relay circuit
CN107211363B (en) Bluetooth switch control method, smart bracelet and mobile terminal
US11818820B2 (en) Adapting a lighting control interface based on an analysis of conversational input
CN113940143A (en) Providing notification for lighting devices without user-specified power switching behavior
CN205447375U (en) Lighting device
CN104320316B (en) System for prompting and method
CN115220356A (en) Intelligent device control method and device, storage medium and device
CN112997453B (en) Selecting a destination for a sensor signal based on an activated light setting
CN217307927U (en) Lamp strip control device supporting multiple control modes
JP2017033840A (en) Home communication device
CN106332389A (en) Device for automatically turning on/off lamp during sleep, and application method thereof

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 17917794

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

32PN Ep: public notification in the ep bulletin as address of the adressee cannot be established

Free format text: NOTING OF LOSS OF RIGHTS PURSUANT TO RULE 112(1) EPC (EPO FORM 1205A DATED 27/05/2020)

122 Ep: pct application non-entry in european phase

Ref document number: 17917794

Country of ref document: EP

Kind code of ref document: A1