[go: up one dir, main page]

WO2019033366A1 - Device control method and apparatus - Google Patents

Device control method and apparatus Download PDF

Info

Publication number
WO2019033366A1
WO2019033366A1 PCT/CN2017/097934 CN2017097934W WO2019033366A1 WO 2019033366 A1 WO2019033366 A1 WO 2019033366A1 CN 2017097934 W CN2017097934 W CN 2017097934W WO 2019033366 A1 WO2019033366 A1 WO 2019033366A1
Authority
WO
WIPO (PCT)
Prior art keywords
communication device
control information
environment
communication
preset condition
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Ceased
Application number
PCT/CN2017/097934
Other languages
French (fr)
Chinese (zh)
Inventor
叶胡星
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shenzhen Youpinyi Electronic Co Ltd
Original Assignee
Shenzhen Youpinyi Electronic Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shenzhen Youpinyi Electronic Co Ltd filed Critical Shenzhen Youpinyi Electronic Co Ltd
Priority to PCT/CN2017/097934 priority Critical patent/WO2019033366A1/en
Publication of WO2019033366A1 publication Critical patent/WO2019033366A1/en
Anticipated expiration legal-status Critical
Ceased legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G01MEASURING; TESTING
    • G01DMEASURING NOT SPECIALLY ADAPTED FOR A SPECIFIC VARIABLE; ARRANGEMENTS FOR MEASURING TWO OR MORE VARIABLES NOT COVERED IN A SINGLE OTHER SUBCLASS; TARIFF METERING APPARATUS; MEASURING OR TESTING NOT OTHERWISE PROVIDED FOR
    • G01D21/00Measuring or testing not otherwise provided for
    • G01D21/02Measuring two or more variables by means not covered by a single other subclass

Definitions

  • the present invention relates to the field of communications technologies, and in particular, to a device control method and apparatus.
  • communication devices such as doors, doors, windows, curtains, etc.
  • manual shutdown or opening by the user which is cumbersome and poses a safety hazard to a certain extent.
  • the user forgets to close the door when leaving, the property in the room is easily stolen.
  • the door and window are open. If the rain or shower occurs, the items in the room are easily wetted and damaged.
  • the curtain is in the open state, the sunlight is directed into the room. In order to prevent the contents from being exposed to the sun, the user needs to manually close the curtain.
  • the embodiment of the invention provides a device control method and device, which is convenient to operate and can improve the safety factor.
  • an embodiment of the present invention provides a device control method, including:
  • the micro server detects an environmental parameter of an environment in which the communication device is currently located
  • the micro server sends control information to the communication device by using a communication connection with the communication device, so that the communication device controls the message according to the control information.
  • the communication device is off.
  • the environmental parameter includes a temperature
  • the sending, by the micro server, the control information to the communication device by using a communication connection with the communication device, when the environment parameter meets the preset condition includes:
  • the micro server determines that the preset condition is met
  • the microserver transmits control information to the communication device through a communication connection with the communication device.
  • the environmental parameter includes brightness
  • the micro server passes through the communication device when the environmental parameter meets a preset condition A communication connection between the two, the control information is sent to the communication device, including:
  • the micro server determines that the preset condition is met
  • the microserver transmits control information to the communication device through a communication connection with the communication device.
  • the environmental parameter includes a wind speed
  • the sending, by the micro server, the control information to the communication device by using a communication connection with the communication device, when the environment parameter meets the preset condition includes:
  • the micro server determines that the preset condition is met;
  • the microserver transmits control information to the communication device through a communication connection with the communication device.
  • the method before the detecting, by the micro server, the environment parameter of the current environment of the communication device, the method further includes:
  • the micro server acquires setting information of the communication device
  • the micro server is triggered to detect an environment parameter of an environment in which the communication device is currently located.
  • connection establishment module configured to establish a communication connection with the communication device
  • An environmental parameter detecting module configured to detect an environmental parameter of an environment in which the communication device is currently located
  • control information sending module configured to send, by the communication connection with the communication device, control information to the communication device when the environment parameter meets a preset condition, so that the communication device is configured according to the control information Controlling the communication device to be in an off state.
  • the environmental parameter includes a temperature
  • the control information sending module is specifically configured to:
  • Control information is transmitted to the communication device through a communication connection with the communication device.
  • the environmental parameter includes brightness
  • Control information is transmitted to the communication device through a communication connection with the communication device.
  • the environmental parameter includes a wind speed
  • the control information sending module is specifically configured to:
  • Control information is transmitted to the communication device through a communication connection with the communication device.
  • the device further includes:
  • a setting information obtaining module configured to acquire setting information of the communication device before the environment parameter detecting module detects an environment parameter of an environment in which the communication device is currently located;
  • the environment parameter detecting module is further configured to trigger an environment parameter that detects an environment in which the communication device is currently located when the setting information is used to indicate that the communication device is controlled.
  • an embodiment of the present invention provides a micro server, including a processor, an input device, an output device, and a memory, where the processor, the input device, the output device, and the memory are connected to each other, wherein the The memory is for storing a computer program, the computer program comprising program instructions, the processor being configured to invoke the program instructions to perform the method of the first aspect.
  • an embodiment of the present invention provides a computer readable storage medium, wherein the computer storage medium stores a computer program, where the computer program includes program instructions, when the program instructions are executed by a processor.
  • the processor is caused to perform the method as described in the first aspect.
  • a micro-server establishes a communication connection with the communication device; the micro-server detects an environment parameter of an environment in which the communication device is currently located; and when the environment parameter meets a preset condition, the micro-server passes And a communication connection with the communication device, sending control information to the communication device, so that the communication device controls the communication device to be in a closed state according to the control information, and the operation is convenient, and the safety factor can be improved.
  • FIG. 1 is a schematic flowchart of a device control method according to an embodiment of the present invention.
  • FIG. 2 is a schematic structural diagram of a device control apparatus according to an embodiment of the present invention.
  • FIG. 3 is a schematic structural diagram of a micro server according to an embodiment of the present invention.
  • FIG. 4 is a schematic structural diagram of a device control system according to an embodiment of the present invention.
  • FIG. 1 is a schematic flowchart of a device control method according to an embodiment of the present invention. As shown in FIG. 1 , the method includes the following steps:
  • Step 101 Establish a communication connection between the micro server and the communication device.
  • a communication connection such as Bluetooth, infrared or Wi-Fi can be established between the micro server and the communication device.
  • Communication devices may include doors, doors, windows or curtains, and the like.
  • Step 102 The micro server detects an environment parameter of an environment in which the communication device is currently located.
  • the environmental parameters may include temperature, brightness, or wind speed.
  • the micro server can detect the temperature of the current environment of the communication device through the temperature sensor.
  • the micro server can detect the brightness of the current environment of the communication device by using the brightness sensor.
  • the micro server can detect the wind speed of the current environment of the communication device by using an anemometer.
  • the setting information of the communication device may be acquired; when the setting information is used to indicate that the communication device is controlled, the The microserver detects environmental parameters of the environment in which the communication device is currently located.
  • Step 103 When the environment parameter meets a preset condition, the micro server sends control information to the communication device by using a communication connection with the communication device, so that the communication device according to the control information Controlling the communication device to be in an off state.
  • the micro The server may determine that the preset condition is met; the micro server transmits control information to the communication device through a communication connection with the communication device.
  • the micro server may determine that the preset condition is met; and the micro server communicates with the communication device. Connected to send control information to the communication device.
  • a micro-server establishes a communication connection with the communication device; the micro-server detects an environment parameter of an environment in which the communication device is currently located; and when the environment parameter meets a preset condition, the micro-server passes And a communication connection with the communication device, sending control information to the communication device, so that the communication device controls the communication device to be in a closed state according to the control information, and the operation is convenient, and the safety factor can be improved.
  • FIG. 2 is a schematic structural diagram of a device control apparatus according to an embodiment of the present invention. As shown in FIG. 2, the method includes:
  • connection establishing module 201 configured to establish a communication connection with the communication device
  • the control information sending module 203 is configured to: when the environment parameter meets the preset condition, send control information to the communication device by using a communication connection with the communication device, so that the communication device is controlled according to the control device The information controls the communication device to be in an off state.
  • the control information sending module 203 is specifically configured to:
  • Control information is transmitted to the communication device through a communication connection with the communication device.
  • the control information sending module 203 is specifically configured to:
  • Control information is transmitted to the communication device through a communication connection with the communication device.
  • the environmental parameter includes a wind speed
  • the control information sending module 203 is specifically configured to:
  • Control information is transmitted to the communication device through a communication connection with the communication device.
  • the device further includes:
  • the setting information obtaining module 204 is configured to acquire setting information of the communication device before the environment parameter detecting module 201 detects the environment parameter of the current environment of the communication device;
  • the environment parameter detecting module 201 is further configured to trigger an environment parameter that detects an environment in which the communication device is currently located when the setting information is used to indicate that the communication device is controlled.
  • the connection establishing module 201 establishes a communication connection with the communication device; the environment parameter detecting module 202 detects the environment parameter of the current environment of the communication device; and the control information sending module 203 satisfies the preset in the environment parameter. And in the case of a communication connection with the communication device, transmitting control information to the communication device, so that the communication device controls the communication device to be in a closed state according to the control information, and the operation is convenient and the security can be improved. coefficient.
  • FIG. 3 is a structural diagram of a micro server according to an embodiment of the present invention.
  • the micro server includes a processor 301, a memory 302, a network interface 304, and a user interface 303.
  • the various components in the microserver are coupled together by a bus system 305.
  • the bus system 305 includes a power bus, a control bus, and a status signal bus in addition to the data bus.
  • various buses are labeled as bus system 305 in FIG.
  • the user interface 303 may include a display, a keyboard, or a pointing device (eg, a mouse, a track ball, a touch pad, or a touch screen, etc.).
  • a pointing device eg, a mouse, a track ball, a touch pad, or a touch screen, etc.
  • the memory 302 in the embodiments of the present invention may be a volatile memory or a non-volatile memory, or may include both volatile and non-volatile memory.
  • the non-volatile memory may be a read-only memory (ROM), a programmable read only memory (PROM), an erasable programmable read only memory (Erasable PROM, EPROM), or an electric Erase programmable read only memory (EEPROM) or flash memory.
  • the volatile memory can be a Random Access Memory (RAM) that acts as an external cache.
  • RAM Random Access Memory
  • many forms of RAM are available, such as static random access memory.
  • SRAM Stable Random Access Memory
  • DRAM Dynamic Random Access Memory
  • SDRAM Synchronous DRAM
  • SDRAM Double Data Rate Synchronous Dynamic Random Access Memory
  • Double Data Rate SDRAM DDRSDRAM
  • ESDRAM Enhanced Synchronous Dynamic Random Access Memory
  • SDRAM Synchronous Connection Dynamic Random Access Memory
  • DRRAM Direct Memory Bus Random Memory
  • memory 302 stores elements, executable modules or data structures, or a subset thereof, or their extended set: operating system 3021 and application 3022.
  • the operating system 3021 includes various system programs, such as a framework layer, a core library layer, a driver layer, and the like, for implementing various basic services and processing hardware-based tasks.
  • the application 3022 includes various applications, such as a media player (Media Player), a browser, and the like, for implementing various application services.
  • a program implementing the method of the embodiment of the present invention may be included in the application 3022.
  • the program or instruction stored in the memory 302 is specifically a program or an instruction stored in the application 3022.
  • the processor 301 is configured to:
  • the environmental parameter includes a temperature
  • the processor 301 sends the control information to the communication device by using a communication connection with the communication device, including:
  • Control information is transmitted to the communication device through a communication connection with the communication device.
  • the environmental parameter includes brightness
  • the processor 301 sends the control information to the communication device by using a communication connection with the communication device, including:
  • Control information is transmitted to the communication device through a communication connection with the communication device.
  • the environmental parameter includes a wind speed
  • the processor 301 sends the control information to the communication device by using a communication connection with the communication device, including:
  • Control information is transmitted to the communication device through a communication connection with the communication device.
  • the method further includes:
  • the setting information When the setting information is used to indicate that the communication device is controlled, triggering detecting an environmental parameter of an environment in which the communication device is currently located.
  • Processor 301 may be an integrated circuit chip with signal processing capabilities. In the implementation process, each step of the foregoing method may be completed by an integrated logic circuit of hardware in the processor 301 or an instruction in a form of software.
  • the processor 301 may be a general-purpose processor, a digital signal processor (DSP), an application specific integrated circuit (ASIC), a field programmable gate array (FPGA), or the like. Programmable logic devices, discrete gates or transistor logic devices, discrete hardware components.
  • DSP digital signal processor
  • ASIC application specific integrated circuit
  • FPGA field programmable gate array
  • the general purpose processor may be a microprocessor or the processor or any conventional processor or the like.
  • the steps of the method disclosed in the embodiments of the present invention may be directly implemented by the hardware decoding processor, or may be performed by a combination of hardware and software modules in the decoding processor.
  • the software module can be located in a conventional storage medium such as random access memory, flash memory, read only memory, programmable read only memory or electrically erasable programmable memory, registers, and the like.
  • the storage medium is located in the memory 302, and the processor 301 reads the information in the memory 302 and completes the steps of the above method in combination with its hardware.
  • the embodiments described herein can be implemented in hardware, software, firmware, middleware, microcode, or a combination thereof.
  • the processing unit can be implemented in one or more Application Specific Integrated Circuits (ASICs), digital signal processors (Digital Signal Processing, DSP), DSP Device (DSPD), Programmable Logic Device (PLD), Field-Programmable Gate Array (FPGA), General Purpose Processor, Controller , a microcontroller, a microprocessor, other electronic units for performing the functions described herein, or a combination thereof.
  • ASICs Application Specific Integrated Circuits
  • DSP Digital Signal Processing
  • DSPD DSP Device
  • PLD Programmable Logic Device
  • FPGA Field-Programmable Gate Array
  • Controller a microcontroller, a microprocessor, other electronic units for performing the functions described herein, or a combination thereof.
  • the techniques described herein can be implemented by modules (eg, procedures, functions, and so on) that perform the functions described herein.
  • the software code can be stored in memory and executed by the processor.
  • the memory can be implemented in the processor or external to the processor.
  • FIG. 4 is a schematic block diagram of a device control system according to an embodiment of the present invention.
  • the micro server 401 detects an environmental parameter of an environment in which the communication device 402 is currently located;
  • the micro server 401 sends control information to the communication device 402 through a communication connection with the communication device 402;
  • the communication device 402 controls the communication device 402 to be in an off state according to the control information.
  • the environmental parameter includes a temperature
  • the micro server 401 sends the control information to the communication device 402 by using a communication connection with the communication device 402, including:
  • the micro server 401 determines that the preset condition is met;
  • the microserver 401 transmits control information to the communication device 402 over a communication connection with the communication device 402.
  • the environmental parameter includes brightness
  • the micro server 401 determines that the preset condition is satisfied
  • the micro server 401 communicates to the communication device through a communication connection with the communication device 402 Device 402 sends control information.
  • the micro server 401 determines that the preset condition is met;
  • the microserver 401 transmits control information to the communication device 402 over a communication connection with the communication device 402.
  • the method before the detecting, by the micro server 401, the environment parameter of the current environment of the communication device 402, the method further includes:
  • the micro server 401 acquires setting information of the communication device 402;
  • 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 functions may be stored in a computer readable storage medium if implemented in the form of a software functional unit and sold or used as a standalone product.
  • the technical solution of the present invention which is essential or contributes to the prior art, or a part of the technical solution, may be embodied in the form of a software product, which is stored in a storage medium, including
  • the instructions are used to cause a computer device (which may be a personal computer, server, or network device, etc.) to perform all or part of the steps of the methods described in various embodiments of the present invention.
  • the foregoing storage medium includes various media that can store program codes, such as a USB flash drive, a mobile hard disk, a ROM, a RAM, a magnetic disk, or an optical disk.

Landscapes

  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Telephone Function (AREA)

Abstract

The embodiments of the present invention provide a device control method and apparatus, said method comprising: establishing a communications connection between a micro-server and a communications device; said micro-server detecting environmental parameters of the environment in which said communications device is currently located; if said environmental parameters satisfy preset conditions, then the micro-server, by means of the communications connection between it and the communications device, sending control information to the communications device such that the communications device controls, according to said control information, the communications device to be in a turned-off state. Using the embodiments of the present invention, operation is convenient and the factor of safety is improved.

Description

设备控制方法及装置Device control method and device 技术领域Technical field

本发明涉及通信技术领域,尤其涉及设备控制方法及装置。The present invention relates to the field of communications technologies, and in particular, to a device control method and apparatus.

背景技术Background technique

在日常生活中,通信设备(例如门、门窗或者窗帘等)均需要用户手动关闭或者开启,操作繁琐,且在一定程度上造成了安全隐患。例如,当用户离开时忘记关门,则房中的财物容易被盗窃。又如,用户离开时门窗处于开启状态,若此时下暴雨或者阵雨,则房中的物品容易被淋湿,导致损坏。又如,窗帘处于开启状态时,阳光直射房内,为了避免房内物品被暴晒,用户需要手动关闭窗帘。In daily life, communication devices (such as doors, doors, windows, curtains, etc.) require manual shutdown or opening by the user, which is cumbersome and poses a safety hazard to a certain extent. For example, when the user forgets to close the door when leaving, the property in the room is easily stolen. For example, when the user leaves, the door and window are open. If the rain or shower occurs, the items in the room are easily wetted and damaged. Another example is that when the curtain is in the open state, the sunlight is directed into the room. In order to prevent the contents from being exposed to the sun, the user needs to manually close the curtain.

发明内容Summary of the invention

本发明实施例提供设备控制方法及装置,操作便捷,可提高安全系数。The embodiment of the invention provides a device control method and device, which is convenient to operate and can improve the safety factor.

第一方面,本发明实施例提供一种设备控制方法,包括:In a first aspect, an embodiment of the present invention provides a device control method, including:

微服务器与通信设备之间建立通信连接;Establishing a communication connection between the micro server and the communication device;

所述微服务器检测所述通信设备当前所处环境的环境参数;The micro server detects an environmental parameter of an environment in which the communication device is currently located;

在所述环境参数满足预设条件时,所述微服务器通过与所述通信设备之间的通信连接,向所述通信设备发送控制信息,以使所述通信设备根据所述控制信息控制所述通信设备处于关闭状态。And when the environment parameter meets a preset condition, the micro server sends control information to the communication device by using a communication connection with the communication device, so that the communication device controls the message according to the control information. The communication device is off.

可选的,所述环境参数包括温度;Optionally, the environmental parameter includes a temperature;

所述在所述环境参数满足预设条件时,所述微服务器通过与所述通信设备之间的通信连接,向所述通信设备发送控制信息,包括:The sending, by the micro server, the control information to the communication device by using a communication connection with the communication device, when the environment parameter meets the preset condition, includes:

在所述温度超过预设温度阈值时,所述微服务器确定满足所述预设条件;When the temperature exceeds a preset temperature threshold, the micro server determines that the preset condition is met;

所述微服务器通过与所述通信设备之间的通信连接,向所述通信设备发送控制信息。The microserver transmits control information to the communication device through a communication connection with the communication device.

可选的,所述环境参数包括亮度;Optionally, the environmental parameter includes brightness;

所述在所述环境参数满足预设条件时,所述微服务器通过与所述通信设备 之间的通信连接,向所述通信设备发送控制信息,包括:The micro server passes through the communication device when the environmental parameter meets a preset condition A communication connection between the two, the control information is sent to the communication device, including:

在所述亮度低于预设亮度阈值时,所述微服务器确定满足所述预设条件;When the brightness is lower than a preset brightness threshold, the micro server determines that the preset condition is met;

所述微服务器通过与所述通信设备之间的通信连接,向所述通信设备发送控制信息。The microserver transmits control information to the communication device through a communication connection with the communication device.

可选的,所述环境参数包括风速;Optionally, the environmental parameter includes a wind speed;

所述在所述环境参数满足预设条件时,所述微服务器通过与所述通信设备之间的通信连接,向所述通信设备发送控制信息,包括:The sending, by the micro server, the control information to the communication device by using a communication connection with the communication device, when the environment parameter meets the preset condition, includes:

在所述风速超过预设速率阈值时,所述微服务器确定满足所述预设条件;When the wind speed exceeds a preset rate threshold, the micro server determines that the preset condition is met;

所述微服务器通过与所述通信设备之间的通信连接,向所述通信设备发送控制信息。The microserver transmits control information to the communication device through a communication connection with the communication device.

可选的,所述微服务器检测所述通信设备当前所处环境的环境参数之前,还包括:Optionally, before the detecting, by the micro server, the environment parameter of the current environment of the communication device, the method further includes:

所述微服务器获取所述通信设备的设置信息;The micro server acquires setting information of the communication device;

当所述设置信息用于指示对所述通信设备进行控制时,触发所述微服务器检测所述通信设备当前所处环境的环境参数。When the setting information is used to indicate that the communication device is controlled, the micro server is triggered to detect an environment parameter of an environment in which the communication device is currently located.

第二方面,本发明实施例提供一种设备控制装置,所述装置包括:In a second aspect, an embodiment of the present invention provides a device control apparatus, where the apparatus includes:

连接建立模块,用于与通信设备之间建立通信连接;a connection establishment module, configured to establish a communication connection with the communication device;

环境参数检测模块,用于检测所述通信设备当前所处环境的环境参数;An environmental parameter detecting module, configured to detect an environmental parameter of an environment in which the communication device is currently located;

控制信息发送模块,用于在所述环境参数满足预设条件时,通过与所述通信设备之间的通信连接,向所述通信设备发送控制信息,以使所述通信设备根据所述控制信息控制所述通信设备处于关闭状态。a control information sending module, configured to send, by the communication connection with the communication device, control information to the communication device when the environment parameter meets a preset condition, so that the communication device is configured according to the control information Controlling the communication device to be in an off state.

可选的,所述环境参数包括温度;Optionally, the environmental parameter includes a temperature;

所述控制信息发送模块,具体用于:The control information sending module is specifically configured to:

在所述温度超过预设温度阈值时,确定满足所述预设条件;When the temperature exceeds a preset temperature threshold, determining that the preset condition is met;

通过与所述通信设备之间的通信连接,向所述通信设备发送控制信息。Control information is transmitted to the communication device through a communication connection with the communication device.

可选的,所述环境参数包括亮度;Optionally, the environmental parameter includes brightness;

所述控制信息发送模块,具体用于: The control information sending module is specifically configured to:

在所述亮度低于预设亮度阈值时,确定满足所述预设条件;When the brightness is lower than a preset brightness threshold, determining that the preset condition is met;

通过与所述通信设备之间的通信连接,向所述通信设备发送控制信息。Control information is transmitted to the communication device through a communication connection with the communication device.

可选的,所述环境参数包括风速;Optionally, the environmental parameter includes a wind speed;

所述控制信息发送模块,具体用于:The control information sending module is specifically configured to:

在所述风速超过预设速率阈值时,确定满足所述预设条件;Determining that the preset condition is met when the wind speed exceeds a preset rate threshold;

通过与所述通信设备之间的通信连接,向所述通信设备发送控制信息。Control information is transmitted to the communication device through a communication connection with the communication device.

可选的,所述装置还包括:Optionally, the device further includes:

设置信息获取模块,用于所述环境参数检测模块检测所述通信设备当前所处环境的环境参数之前,获取所述通信设备的设置信息;a setting information obtaining module, configured to acquire setting information of the communication device before the environment parameter detecting module detects an environment parameter of an environment in which the communication device is currently located;

所述环境参数检测模块,还用于当所述设置信息用于指示对所述通信设备进行控制时,触发检测所述通信设备当前所处环境的环境参数。The environment parameter detecting module is further configured to trigger an environment parameter that detects an environment in which the communication device is currently located when the setting information is used to indicate that the communication device is controlled.

第三方面,本发明实施例提供了一种微服务器,其特征在于,包括处理器、输入设备、输出设备和存储器,所述处理器、输入设备、输出设备和存储器相互连接,其中,所述存储器用于存储计算机程序,所述计算机程序包括程序指令,所述处理器被配置用于调用所述程序指令,执行如第一方面所述的方法。In a third aspect, an embodiment of the present invention provides a micro server, including a processor, an input device, an output device, and a memory, where the processor, the input device, the output device, and the memory are connected to each other, wherein the The memory is for storing a computer program, the computer program comprising program instructions, the processor being configured to invoke the program instructions to perform the method of the first aspect.

第四方面,本发明实施例提供了一种计算机可读存储介质,其特征在于,所述计算机存储介质存储有计算机程序,所述计算机程序包括程序指令,所述程序指令当被处理器执行时使所述处理器执行如第一方面所述的方法。In a fourth aspect, an embodiment of the present invention provides a computer readable storage medium, wherein the computer storage medium stores a computer program, where the computer program includes program instructions, when the program instructions are executed by a processor. The processor is caused to perform the method as described in the first aspect.

本发明实施例中,微服务器与通信设备之间建立通信连接;所述微服务器检测所述通信设备当前所处环境的环境参数;在所述环境参数满足预设条件时,所述微服务器通过与所述通信设备之间的通信连接,向所述通信设备发送控制信息,以使所述通信设备根据所述控制信息控制所述通信设备处于关闭状态,操作便捷,可提高安全系数。In the embodiment of the present invention, a micro-server establishes a communication connection with the communication device; the micro-server detects an environment parameter of an environment in which the communication device is currently located; and when the environment parameter meets a preset condition, the micro-server passes And a communication connection with the communication device, sending control information to the communication device, so that the communication device controls the communication device to be in a closed state according to the control information, and the operation is convenient, and the safety factor can be improved.

附图说明DRAWINGS

为了更清楚地说明本发明实施例中的技术方案,下面将对实施例中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本发明的一 些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings to be used in the embodiments will be briefly described below. Obviously, the drawings in the following description are only one of the present invention. For some embodiments, other drawings may be obtained from those skilled in the art without any inventive effort.

图1是本发明实施例提供的一种设备控制方法的流程示意图;1 is a schematic flowchart of a device control method according to an embodiment of the present invention;

图2是本发明实施例提供的一种设备控制装置的结构示意图;2 is a schematic structural diagram of a device control apparatus according to an embodiment of the present invention;

图3是本发明实施例提供的一种微服务器的结构示意图;3 is a schematic structural diagram of a micro server according to an embodiment of the present invention;

图4是本发明实施例提供的一种设备控制系统的结构示意图。FIG. 4 is a schematic structural diagram of a device control system 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 obvious that the described embodiments are a part of the embodiments of the present invention, but not all embodiments. All other embodiments obtained by those skilled in the art based on the embodiments of the present invention without creative efforts are within the scope of the present invention.

请参见图1,图1是本发明实施例提供的一种设备控制方法的流程示意图,如图1所示,包括以下步骤:Referring to FIG. 1 , FIG. 1 is a schematic flowchart of a device control method according to an embodiment of the present invention. As shown in FIG. 1 , the method includes the following steps:

步骤101、微服务器与通信设备之间建立通信连接。Step 101: Establish a communication connection between the micro server and the communication device.

需要说明的是,微服务器与通信设备之间可以建立蓝牙、红外或者Wi-Fi等通信连接。通信设备可以包括门、门窗或者窗帘等。It should be noted that a communication connection such as Bluetooth, infrared or Wi-Fi can be established between the micro server and the communication device. Communication devices may include doors, doors, windows or curtains, and the like.

步骤102、微服务器检测所述通信设备当前所处环境的环境参数。Step 102: The micro server detects an environment parameter of an environment in which the communication device is currently located.

其中,环境参数可以包括温度、亮度或者风速等。The environmental parameters may include temperature, brightness, or wind speed.

可选的,微服务器可以通过温度传感器检测通信设备当前所处环境的温度。Optionally, the micro server can detect the temperature of the current environment of the communication device through the temperature sensor.

可选的,微服务器可以通过亮度传感器检测通信设备当前所处环境的亮度。Optionally, the micro server can detect the brightness of the current environment of the communication device by using the brightness sensor.

可选的,微服务器可以通过风速仪检测通信设备当前所处环境的风速。Optionally, the micro server can detect the wind speed of the current environment of the communication device by using an anemometer.

可选的,微服务器检测所述通信设备当前所处环境的环境参数之前,可以获取所述通信设备的设置信息;当所述设置信息用于指示对所述通信设备进行控制时,触发所述微服务器检测所述通信设备当前所处环境的环境参数。Optionally, before the micro server detects the environment parameter of the current environment of the communication device, the setting information of the communication device may be acquired; when the setting information is used to indicate that the communication device is controlled, the The microserver detects environmental parameters of the environment in which the communication device is currently located.

步骤103、在所述环境参数满足预设条件时,所述微服务器通过与所述通信设备之间的通信连接,向所述通信设备发送控制信息,以使所述通信设备根据所述控制信息控制所述通信设备处于关闭状态。Step 103: When the environment parameter meets a preset condition, the micro server sends control information to the communication device by using a communication connection with the communication device, so that the communication device according to the control information Controlling the communication device to be in an off state.

可选的,当环境参数包括温度,且所述温度超过预设温度阈值时,所述微 服务器可以确定满足所述预设条件;所述微服务器通过与所述通信设备之间的通信连接,向所述通信设备发送控制信息。Optionally, when the environmental parameter includes a temperature, and the temperature exceeds a preset temperature threshold, the micro The server may determine that the preset condition is met; the micro server transmits control information to the communication device through a communication connection with the communication device.

可选的,当所述环境参数包括亮度,且所述亮度低于预设亮度阈值时,所述微服务器可以确定满足所述预设条件;所述微服务器通过与所述通信设备之间的通信连接,向所述通信设备发送控制信息。Optionally, when the environment parameter includes a brightness, and the brightness is lower than a preset brightness threshold, the micro server may determine that the preset condition is met; and the micro server is configured to communicate with the communication device A communication connection that sends control information to the communication device.

可选的,当所述环境参数包括风速,且所述风速超过预设速率阈值时,所述微服务器可以确定满足所述预设条件;所述微服务器通过与所述通信设备之间的通信连接,向所述通信设备发送控制信息。Optionally, when the environment parameter includes a wind speed, and the wind speed exceeds a preset rate threshold, the micro server may determine that the preset condition is met; and the micro server communicates with the communication device. Connected to send control information to the communication device.

本发明实施例中,微服务器与通信设备之间建立通信连接;所述微服务器检测所述通信设备当前所处环境的环境参数;在所述环境参数满足预设条件时,所述微服务器通过与所述通信设备之间的通信连接,向所述通信设备发送控制信息,以使所述通信设备根据所述控制信息控制所述通信设备处于关闭状态,操作便捷,可提高安全系数。In the embodiment of the present invention, a micro-server establishes a communication connection with the communication device; the micro-server detects an environment parameter of an environment in which the communication device is currently located; and when the environment parameter meets a preset condition, the micro-server passes And a communication connection with the communication device, sending control information to the communication device, so that the communication device controls the communication device to be in a closed state according to the control information, and the operation is convenient, and the safety factor can be improved.

请参见图2,图2是本发明实施例提供的一种设备控制装置的结构示意图,如图2所示,包括:Referring to FIG. 2, FIG. 2 is a schematic structural diagram of a device control apparatus according to an embodiment of the present invention. As shown in FIG. 2, the method includes:

连接建立模块201,用于与通信设备之间建立通信连接;a connection establishing module 201, configured to establish a communication connection with the communication device;

环境参数检测模块202,用于检测所述通信设备当前所处环境的环境参数;The environment parameter detecting module 202 is configured to detect an environment parameter of an environment in which the communication device is currently located;

控制信息发送模块203,用于在所述环境参数满足预设条件时,通过与所述通信设备之间的通信连接,向所述通信设备发送控制信息,以使所述通信设备根据所述控制信息控制所述通信设备处于关闭状态。The control information sending module 203 is configured to: when the environment parameter meets the preset condition, send control information to the communication device by using a communication connection with the communication device, so that the communication device is controlled according to the control device The information controls the communication device to be in an off state.

可选的,所述环境参数包括温度;Optionally, the environmental parameter includes a temperature;

所述控制信息发送模块203,具体用于:The control information sending module 203 is specifically configured to:

在所述温度超过预设温度阈值时,确定满足所述预设条件;When the temperature exceeds a preset temperature threshold, determining that the preset condition is met;

通过与所述通信设备之间的通信连接,向所述通信设备发送控制信息。Control information is transmitted to the communication device through a communication connection with the communication device.

可选的,所述环境参数包括亮度;Optionally, the environmental parameter includes brightness;

所述控制信息发送模块203,具体用于:The control information sending module 203 is specifically configured to:

在所述亮度低于预设亮度阈值时,确定满足所述预设条件;When the brightness is lower than a preset brightness threshold, determining that the preset condition is met;

通过与所述通信设备之间的通信连接,向所述通信设备发送控制信息。 Control information is transmitted to the communication device through a communication connection with the communication device.

可选的,所述环境参数包括风速;Optionally, the environmental parameter includes a wind speed;

所述控制信息发送模块203,具体用于:The control information sending module 203 is specifically configured to:

在所述风速超过预设速率阈值时,确定满足所述预设条件;Determining that the preset condition is met when the wind speed exceeds a preset rate threshold;

通过与所述通信设备之间的通信连接,向所述通信设备发送控制信息。Control information is transmitted to the communication device through a communication connection with the communication device.

可选的,所述装置还包括:Optionally, the device further includes:

设置信息获取模块204,用于所述环境参数检测模块201检测所述通信设备当前所处环境的环境参数之前,获取所述通信设备的设置信息;The setting information obtaining module 204 is configured to acquire setting information of the communication device before the environment parameter detecting module 201 detects the environment parameter of the current environment of the communication device;

所述环境参数检测模块201,还用于当所述设置信息用于指示对所述通信设备进行控制时,触发检测所述通信设备当前所处环境的环境参数。The environment parameter detecting module 201 is further configured to trigger an environment parameter that detects an environment in which the communication device is currently located when the setting information is used to indicate that the communication device is controlled.

本发明实施例中,连接建立模块201与通信设备之间建立通信连接;环境参数检测模块202检测所述通信设备当前所处环境的环境参数;控制信息发送模块203在所述环境参数满足预设条件时,通过与所述通信设备之间的通信连接,向所述通信设备发送控制信息,以使所述通信设备根据所述控制信息控制所述通信设备处于关闭状态,操作便捷,可提高安全系数。In the embodiment of the present invention, the connection establishing module 201 establishes a communication connection with the communication device; the environment parameter detecting module 202 detects the environment parameter of the current environment of the communication device; and the control information sending module 203 satisfies the preset in the environment parameter. And in the case of a communication connection with the communication device, transmitting control information to the communication device, so that the communication device controls the communication device to be in a closed state according to the control information, and the operation is convenient and the security can be improved. coefficient.

参见图3,图3是本发明实施例提供的一种微服务器的结构图。如图3所示,微服务器包括:处理器301、存储器302、网络接口304和用户接口303。微服务器中的各个组件通过总线系统305耦合在一起。总线系统305除包括数据总线之外,还包括电源总线、控制总线和状态信号总线。但是为了清楚说明起见,在图3中将各种总线都标为总线系统305。Referring to FIG. 3, FIG. 3 is a structural diagram of a micro server according to an embodiment of the present invention. As shown in FIG. 3, the micro server includes a processor 301, a memory 302, a network interface 304, and a user interface 303. The various components in the microserver are coupled together by a bus system 305. The bus system 305 includes a power bus, a control bus, and a status signal bus in addition to the data bus. However, for clarity of description, various buses are labeled as bus system 305 in FIG.

其中,用户接口303可以包括显示器、键盘或者点击设备(例如,鼠标,轨迹球(track ball)、触感板或者触摸屏等。The user interface 303 may include a display, a keyboard, or a pointing device (eg, a mouse, a track ball, a touch pad, or a touch screen, etc.).

可以理解,本发明实施例中的存储器302可以是易失性存储器或非易失性存储器,或可包括易失性和非易失性存储器两者。其中,非易失性存储器可以是只读存储器(Read-Only Memory,ROM)、可编程只读存储器(Programmable ROM,PROM)、可擦除可编程只读存储器(Erasable PROM,EPROM)、电可擦除可编程只读存储器(Electrically EPROM,EEPROM)或闪存。易失性存储器可以是随机存取存储器(Random Access Memory,RAM),其用作外部高速缓存。通过示例性但不是限制性说明,许多形式的RAM可用,例如静态随机存取存 储器(Static RAM,SRAM)、动态随机存取存储器(Dynamic RAM,DRAM)、同步动态随机存取存储器(Synchronous DRAM,SDRAM)、双倍数据速率同步动态随机存取存储器(Double Data Rate SDRAM,DDRSDRAM)、增强型同步动态随机存取存储器(Enhanced SDRAM,ESDRAM)、同步连接动态随机存取存储器(Synchlink DRAM,SLDRAM)和直接内存总线随机存取存储器(Direct Rambus RAM,DRRAM)。本文描述的系统和方法的存储器302旨在包括但不限于这些和任意其它适合类型的存储器。It is to be understood that the memory 302 in the embodiments of the present invention may be a volatile memory or a non-volatile memory, or may include both volatile and non-volatile memory. The non-volatile memory may be a read-only memory (ROM), a programmable read only memory (PROM), an erasable programmable read only memory (Erasable PROM, EPROM), or an electric Erase programmable read only memory (EEPROM) or flash memory. The volatile memory can be a Random Access Memory (RAM) that acts as an external cache. By way of illustration and not limitation, many forms of RAM are available, such as static random access memory. Memory (SRAM), Dynamic Random Access Memory (DRAM), Synchronous DRAM (SDRAM), Double Data Rate Synchronous Dynamic Random Access Memory (Double Data Rate SDRAM, DDRSDRAM), Enhanced Synchronous Dynamic Random Access Memory (ESDRAM), Synchronous Connection Dynamic Random Access Memory (SDRAM) and Direct Memory Bus Random Memory (DRRAM). The memory 302 of the systems and methods described herein is intended to comprise, without being limited to, these and any other suitable types of memory.

在一些实施方式中,存储器302存储了如下的元素,可执行模块或者数据结构,或者他们的子集,或者他们的扩展集:操作系统3021和应用程序3022。In some embodiments, memory 302 stores elements, executable modules or data structures, or a subset thereof, or their extended set: operating system 3021 and application 3022.

其中,操作系统3021,包含各种系统程序,例如框架层、核心库层、驱动层等,用于实现各种基础业务以及处理基于硬件的任务。应用程序3022,包含各种应用程序,例如媒体播放器(Media Player)、浏览器(Browser)等,用于实现各种应用业务。实现本发明实施例方法的程序可以包含在应用程序3022中。The operating system 3021 includes various system programs, such as a framework layer, a core library layer, a driver layer, and the like, for implementing various basic services and processing hardware-based tasks. The application 3022 includes various applications, such as a media player (Media Player), a browser, and the like, for implementing various application services. A program implementing the method of the embodiment of the present invention may be included in the application 3022.

在本发明实施例中,通过调用存储器302存储的程序或指令,具体的,可以是应用程序3022中存储的程序或指令,处理器301用于:In the embodiment of the present invention, the program or instruction stored in the memory 302 is specifically a program or an instruction stored in the application 3022. The processor 301 is configured to:

与通信设备之间建立通信连接;Establishing a communication connection with the communication device;

检测所述通信设备当前所处环境的环境参数;Detecting an environmental parameter of an environment in which the communication device is currently located;

在所述环境参数满足预设条件时,通过与所述通信设备之间的通信连接,向所述通信设备发送控制信息,以使所述通信设备根据所述控制信息控制所述通信设备处于关闭状态。And when the environmental parameter satisfies a preset condition, transmitting, by the communication connection with the communication device, control information to the communication device, so that the communication device controls the communication device to be closed according to the control information. status.

可选的,所述环境参数包括温度;Optionally, the environmental parameter includes a temperature;

所述在所述环境参数满足预设条件时,处理器301通过与所述通信设备之间的通信连接,向所述通信设备发送控制信息,包括:When the environment parameter meets the preset condition, the processor 301 sends the control information to the communication device by using a communication connection with the communication device, including:

在所述温度超过预设温度阈值时,确定满足所述预设条件;When the temperature exceeds a preset temperature threshold, determining that the preset condition is met;

通过与所述通信设备之间的通信连接,向所述通信设备发送控制信息。Control information is transmitted to the communication device through a communication connection with the communication device.

可选的,所述环境参数包括亮度;Optionally, the environmental parameter includes brightness;

所述在所述环境参数满足预设条件时,处理器301通过与所述通信设备之间的通信连接,向所述通信设备发送控制信息,包括: When the environment parameter meets the preset condition, the processor 301 sends the control information to the communication device by using a communication connection with the communication device, including:

在所述亮度低于预设亮度阈值时,确定满足所述预设条件;When the brightness is lower than a preset brightness threshold, determining that the preset condition is met;

通过与所述通信设备之间的通信连接,向所述通信设备发送控制信息。Control information is transmitted to the communication device through a communication connection with the communication device.

可选的,所述环境参数包括风速;Optionally, the environmental parameter includes a wind speed;

所述在所述环境参数满足预设条件时,处理器301通过与所述通信设备之间的通信连接,向所述通信设备发送控制信息,包括:When the environment parameter meets the preset condition, the processor 301 sends the control information to the communication device by using a communication connection with the communication device, including:

在所述风速超过预设速率阈值时,确定满足所述预设条件;Determining that the preset condition is met when the wind speed exceeds a preset rate threshold;

通过与所述通信设备之间的通信连接,向所述通信设备发送控制信息。Control information is transmitted to the communication device through a communication connection with the communication device.

可选的,处理器301检测所述通信设备当前所处环境的环境参数之前,还包括:Optionally, before the processor 301 detects the environment parameter of the current environment of the communications device, the method further includes:

获取所述通信设备的设置信息;Obtaining setting information of the communication device;

当所述设置信息用于指示对所述通信设备进行控制时,触发检测所述通信设备当前所处环境的环境参数。When the setting information is used to indicate that the communication device is controlled, triggering detecting an environmental parameter of an environment in which the communication device is currently located.

上述本发明实施例揭示的方法可以应用于处理器301中,或者由处理器301实现。处理器301可能是一种集成电路芯片,具有信号的处理能力。在实现过程中,上述方法的各步骤可以通过处理器301中的硬件的集成逻辑电路或者软件形式的指令完成。上述的处理器301可以是通用处理器、数字信号处理器(Digital Signal Processor,DSP)、专用集成电路(Application Specific Integrated Circuit,ASIC)、现成可编程门阵列(Field Programmable Gate Array,FPGA)或者其他可编程逻辑器件、分立门或者晶体管逻辑器件、分立硬件组件。可以实现或者执行本发明实施例中的公开的各方法、步骤及逻辑框图。通用处理器可以是微处理器或者该处理器也可以是任何常规的处理器等。结合本发明实施例所公开的方法的步骤可以直接体现为硬件译码处理器执行完成,或者用译码处理器中的硬件及软件模块组合执行完成。软件模块可以位于随机存储器,闪存、只读存储器,可编程只读存储器或者电可擦写可编程存储器、寄存器等本领域成熟的存储介质中。该存储介质位于存储器302,处理器301读取存储器302中的信息,结合其硬件完成上述方法的步骤。The method disclosed in the foregoing embodiments of the present invention may be applied to the processor 301 or implemented by the processor 301. Processor 301 may be an integrated circuit chip with signal processing capabilities. In the implementation process, each step of the foregoing method may be completed by an integrated logic circuit of hardware in the processor 301 or an instruction in a form of software. The processor 301 may be a general-purpose processor, a digital signal processor (DSP), an application specific integrated circuit (ASIC), a field programmable gate array (FPGA), or the like. Programmable logic devices, discrete gates or transistor logic devices, discrete hardware components. The methods, steps, and logical block diagrams disclosed in the embodiments of the present invention may be implemented or carried out. The general purpose processor may be a microprocessor or the processor or any conventional processor or the like. The steps of the method disclosed in the embodiments of the present invention may be directly implemented by the hardware decoding processor, or may be performed by a combination of hardware and software modules in the decoding processor. The software module can be located in a conventional storage medium such as random access memory, flash memory, read only memory, programmable read only memory or electrically erasable programmable memory, registers, and the like. The storage medium is located in the memory 302, and the processor 301 reads the information in the memory 302 and completes the steps of the above method in combination with its hardware.

可以理解的是,本文描述的这些实施例可以用硬件、软件、固件、中间件、微码或其组合来实现。对于硬件实现,处理单元可以实现在一个或多个专用集成电路(Application Specific Integrated Circuits,ASIC)、数字信号处理器(Digital  Signal Processing,DSP)、数字信号处理设备(DSP Device,DSPD)、可编程逻辑设备(Programmable Logic Device,PLD)、现场可编程门阵列(Field-Programmable Gate Array,FPGA)、通用处理器、控制器、微控制器、微处理器、用于执行本申请所述功能的其它电子单元或其组合中。It will be appreciated that the embodiments described herein can be implemented in hardware, software, firmware, middleware, microcode, or a combination thereof. For hardware implementation, the processing unit can be implemented in one or more Application Specific Integrated Circuits (ASICs), digital signal processors (Digital Signal Processing, DSP), DSP Device (DSPD), Programmable Logic Device (PLD), Field-Programmable Gate Array (FPGA), General Purpose Processor, Controller , a microcontroller, a microprocessor, other electronic units for performing the functions described herein, or a combination thereof.

对于软件实现,可通过执行本文所述功能的模块(例如过程、函数等)来实现本文所述的技术。软件代码可存储在存储器中并通过处理器执行。存储器可以在处理器中或在处理器外部实现。For a software implementation, the techniques described herein can be implemented by modules (eg, procedures, functions, and so on) that perform the functions described herein. The software code can be stored in memory and executed by the processor. The memory can be implemented in the processor or external to the processor.

请参见图4,为本发明实施例提供的设备控制系统的示意性框图。本实施例中所描述的系统,具体的,如图4所示,本发明实施例的所述系统至少包括微服务器401和通信设备402,其中:FIG. 4 is a schematic block diagram of a device control system according to an embodiment of the present invention. The system described in this embodiment, specifically, as shown in FIG. 4, the system of the embodiment of the present invention includes at least a micro server 401 and a communication device 402, where:

微服务器401与通信设备402之间建立通信连接;Establishing a communication connection between the micro server 401 and the communication device 402;

所述微服务器401检测所述通信设备402当前所处环境的环境参数;The micro server 401 detects an environmental parameter of an environment in which the communication device 402 is currently located;

在所述环境参数满足预设条件时,所述微服务器401通过与所述通信设备402之间的通信连接,向所述通信设备402发送控制信息;When the environment parameter meets a preset condition, the micro server 401 sends control information to the communication device 402 through a communication connection with the communication device 402;

所述通信设备402根据所述控制信息控制所述通信设备402处于关闭状态。The communication device 402 controls the communication device 402 to be in an off state according to the control information.

可选的,所述环境参数包括温度;Optionally, the environmental parameter includes a temperature;

所述在所述环境参数满足预设条件时,所述微服务器401通过与所述通信设备402之间的通信连接,向所述通信设备402发送控制信息,包括:When the environment parameter meets the preset condition, the micro server 401 sends the control information to the communication device 402 by using a communication connection with the communication device 402, including:

在所述温度超过预设温度阈值时,所述微服务器401确定满足所述预设条件;When the temperature exceeds a preset temperature threshold, the micro server 401 determines that the preset condition is met;

所述微服务器401通过与所述通信设备402之间的通信连接,向所述通信设备402发送控制信息。The microserver 401 transmits control information to the communication device 402 over a communication connection with the communication device 402.

可选的,所述环境参数包括亮度;Optionally, the environmental parameter includes brightness;

所述在所述环境参数满足预设条件时,所述微服务器401通过与所述通信设备402之间的通信连接,向所述通信设备402发送控制信息,包括:When the environment parameter meets the preset condition, the micro server 401 sends the control information to the communication device 402 by using a communication connection with the communication device 402, including:

在所述亮度低于预设亮度阈值时,所述微服务器401确定满足所述预设条件;When the brightness is lower than a preset brightness threshold, the micro server 401 determines that the preset condition is satisfied;

所述微服务器401通过与所述通信设备402之间的通信连接,向所述通信 设备402发送控制信息。The micro server 401 communicates to the communication device through a communication connection with the communication device 402 Device 402 sends control information.

可选的,所述环境参数包括风速;Optionally, the environmental parameter includes a wind speed;

所述在所述环境参数满足预设条件时,所述微服务器401通过与所述通信设备402之间的通信连接,向所述通信设备402发送控制信息,包括:When the environment parameter meets the preset condition, the micro server 401 sends the control information to the communication device 402 by using a communication connection with the communication device 402, including:

在所述风速超过预设速率阈值时,所述微服务器401确定满足所述预设条件;When the wind speed exceeds a preset rate threshold, the micro server 401 determines that the preset condition is met;

所述微服务器401通过与所述通信设备402之间的通信连接,向所述通信设备402发送控制信息。The microserver 401 transmits control information to the communication device 402 over a communication connection with the communication device 402.

可选的,所述微服务器401检测所述通信设备402当前所处环境的环境参数之前,还包括:Optionally, before the detecting, by the micro server 401, the environment parameter of the current environment of the communication device 402, the method further includes:

所述微服务器401获取所述通信设备402的设置信息;The micro server 401 acquires setting information of the communication device 402;

当所述设置信息用于指示对所述通信设备进行控制时,触发所述微服务器401检测所述通信设备402当前所处环境的环境参数。When the setting information is used to indicate that the communication device is controlled, the micro server 401 is triggered to detect an environment parameter of an environment in which the communication device 402 is currently located.

本领域普通技术人员可以意识到,结合本文中所公开的实施例描述的各示例的单元及算法步骤,能够以电子硬件、或者计算机软件和电子硬件的结合来实现。这些功能究竟以硬件还是软件方式来执行,取决于技术方案的特定应用和设计约束条件。专业技术人员可以对每个特定的应用来使用不同方法来实现所描述的功能,但是这种实现不应认为超出本发明的范围。Those of ordinary skill in the art will appreciate that the elements and algorithm steps of the various examples described in connection with the embodiments disclosed herein can be implemented in electronic hardware or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the solution. A person skilled in the art can use different methods for implementing the described functions for each particular application, but such implementation should not be considered to be beyond the scope of the present invention.

所属领域的技术人员可以清楚地了解到,为描述的方便和简洁,上述描述的系统、装置和单元的具体工作过程,可以参考前述方法实施例中的对应过程,在此不再赘述。A person skilled in the art can clearly understand that for the convenience and brevity of the description, the specific working process of the system, the device and the unit described above can refer to the corresponding process in the foregoing method embodiment, and details are not described herein again.

在本申请所提供的实施例中,应该理解到,所揭露的装置和方法,可以通过其它的方式实现。例如,以上所描述的装置实施例仅仅是示意性的,例如,所述单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如多个单元或组件可以结合或者可以集成到另一个系统,或一些特征可以忽略,或不执行。另一点,所显示或讨论的相互之间的耦合或直接耦合或通信连接可以是通过一些接口,装置或单元的间接耦合或通信连接,可以是电性,机械或其它的形式。In the embodiments provided by the present application, it should be understood that the disclosed apparatus and method may be implemented in other manners. 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 Can be integrated 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 in an electrical, mechanical or other form.

所述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为 单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部单元来实现本发明实施例方案的目的。The units described as separate components may or may not be physically separated as The components displayed by the unit 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 objectives of the embodiments of the present invention.

另外,在本发明各个实施例中的各功能单元可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中。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.

所述功能如果以软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储介质中。基于这样的理解,本发明的技术方案本质上或者说对现有技术做出贡献的部分或者该技术方案的部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质中,包括若干指令用以使得一台计算机设备(可以是个人计算机,服务器,或者网络设备等)执行本发明各个实施例所述方法的全部或部分步骤。而前述的存储介质包括:U盘、移动硬盘、ROM、RAM、磁碟或者光盘等各种可以存储程序代码的介质。The functions may be stored in a computer readable storage medium if implemented in the form of a software functional unit and sold or used as a standalone product. Based on such understanding, the technical solution of the present invention, which is essential or contributes to the prior art, or a part of the technical solution, may be embodied in the form of a software product, which is stored in a storage medium, including The instructions are used to cause a computer device (which may be a personal computer, server, or network device, etc.) to perform all or part of the steps of the methods described in various embodiments of the present invention. The foregoing storage medium includes various media that can store program codes, such as a USB flash drive, a mobile hard disk, a ROM, a RAM, a magnetic disk, or an optical disk.

以上所述,仅为本发明的具体实施方式,但本发明的保护范围并不局限于此,任何熟悉本技术领域的技术人员在本发明揭露的技术范围内,可轻易想到变化或替换,都应涵盖在本发明的保护范围之内。因此,本发明的保护范围应以权利要求的保护范围为准。 The above is only a specific embodiment of the present invention, but the scope of the present invention is not limited thereto, and any person skilled in the art can easily think of changes or substitutions within the technical scope of the present invention. It should be covered by the scope of the present invention. Therefore, the scope of protection of the present invention should be determined by the scope of the claims.

Claims (10)

一种设备控制方法,其特征在于,所述方法包括:A device control method, characterized in that the method comprises: 微服务器与通信设备之间建立通信连接;Establishing a communication connection between the micro server and the communication device; 所述微服务器检测所述通信设备当前所处环境的环境参数;The micro server detects an environmental parameter of an environment in which the communication device is currently located; 在所述环境参数满足预设条件时,所述微服务器通过与所述通信设备之间的通信连接,向所述通信设备发送控制信息,以使所述通信设备根据所述控制信息控制所述通信设备处于关闭状态。And when the environment parameter meets a preset condition, the micro server sends control information to the communication device by using a communication connection with the communication device, so that the communication device controls the message according to the control information. The communication device is off. 根据权利要求1所述的方法,其特征在于,所述环境参数包括温度;The method of claim 1 wherein said environmental parameter comprises a temperature; 所述在所述环境参数满足预设条件时,所述微服务器通过与所述通信设备之间的通信连接,向所述通信设备发送控制信息,包括:The sending, by the micro server, the control information to the communication device by using a communication connection with the communication device, when the environment parameter meets the preset condition, includes: 在所述温度超过预设温度阈值时,所述微服务器确定满足所述预设条件;When the temperature exceeds a preset temperature threshold, the micro server determines that the preset condition is met; 所述微服务器通过与所述通信设备之间的通信连接,向所述通信设备发送控制信息。The microserver transmits control information to the communication device through a communication connection with the communication device. 根据权利要求1所述的方法,其特征在于,所述环境参数包括亮度;The method of claim 1 wherein said environmental parameter comprises brightness; 所述在所述环境参数满足预设条件时,所述微服务器通过与所述通信设备之间的通信连接,向所述通信设备发送控制信息,包括:The sending, by the micro server, the control information to the communication device by using a communication connection with the communication device, when the environment parameter meets the preset condition, includes: 在所述亮度低于预设亮度阈值时,所述微服务器确定满足所述预设条件;When the brightness is lower than a preset brightness threshold, the micro server determines that the preset condition is met; 所述微服务器通过与所述通信设备之间的通信连接,向所述通信设备发送控制信息。The microserver transmits control information to the communication device through a communication connection with the communication device. 根据权利要求1所述的方法,其特征在于,所述环境参数包括风速;The method of claim 1 wherein said environmental parameter comprises a wind speed; 所述在所述环境参数满足预设条件时,所述微服务器通过与所述通信设备之间的通信连接,向所述通信设备发送控制信息,包括:The sending, by the micro server, the control information to the communication device by using a communication connection with the communication device, when the environment parameter meets the preset condition, includes: 在所述风速超过预设速率阈值时,所述微服务器确定满足所述预设条件;When the wind speed exceeds a preset rate threshold, the micro server determines that the preset condition is met; 所述微服务器通过与所述通信设备之间的通信连接,向所述通信设备发送控制信息。 The microserver transmits control information to the communication device through a communication connection with the communication device. 根据权利要求1所述的方法,其特征在于,所述微服务器检测所述通信设备当前所处环境的环境参数之前,还包括:The method according to claim 1, wherein before the micro server detects the environment parameter of the environment in which the communication device is currently located, the method further includes: 所述微服务器获取所述通信设备的设置信息;The micro server acquires setting information of the communication device; 当所述设置信息用于指示对所述通信设备进行控制时,触发所述微服务器检测所述通信设备当前所处环境的环境参数。When the setting information is used to indicate that the communication device is controlled, the micro server is triggered to detect an environment parameter of an environment in which the communication device is currently located. 一种设备控制装置,其特征在于,所述装置包括:A device control device, characterized in that the device comprises: 连接建立模块,用于与通信设备之间建立通信连接;a connection establishment module, configured to establish a communication connection with the communication device; 环境参数检测模块,用于检测所述通信设备当前所处环境的环境参数;An environmental parameter detecting module, configured to detect an environmental parameter of an environment in which the communication device is currently located; 控制信息发送模块,用于在所述环境参数满足预设条件时,通过与所述通信设备之间的通信连接,向所述通信设备发送控制信息,以使所述通信设备根据所述控制信息控制所述通信设备处于关闭状态。a control information sending module, configured to send, by the communication connection with the communication device, control information to the communication device when the environment parameter meets a preset condition, so that the communication device is configured according to the control information Controlling the communication device to be in an off state. 根据权利要求6所述的装置,其特征在于,所述环境参数包括温度;The device of claim 6 wherein said environmental parameter comprises a temperature; 所述控制信息发送模块,具体用于:The control information sending module is specifically configured to: 在所述温度超过预设温度阈值时,确定满足所述预设条件;When the temperature exceeds a preset temperature threshold, determining that the preset condition is met; 通过与所述通信设备之间的通信连接,向所述通信设备发送控制信息。Control information is transmitted to the communication device through a communication connection with the communication device. 根据权利要求6所述的装置,其特征在于,所述环境参数包括亮度;The apparatus of claim 6 wherein said environmental parameter comprises brightness; 所述控制信息发送模块,具体用于:The control information sending module is specifically configured to: 在所述亮度低于预设亮度阈值时,确定满足所述预设条件;When the brightness is lower than a preset brightness threshold, determining that the preset condition is met; 通过与所述通信设备之间的通信连接,向所述通信设备发送控制信息。Control information is transmitted to the communication device through a communication connection with the communication device. 根据权利要求6所述的装置,其特征在于,所述环境参数包括风速;The apparatus of claim 6 wherein said environmental parameter comprises a wind speed; 所述控制信息发送模块,具体用于:The control information sending module is specifically configured to: 在所述风速超过预设速率阈值时,确定满足所述预设条件;Determining that the preset condition is met when the wind speed exceeds a preset rate threshold; 通过与所述通信设备之间的通信连接,向所述通信设备发送控制信息。Control information is transmitted to the communication device through a communication connection with the communication device. 根据权利要求6所述的装置,其特征在于,所述装置还包括: The device according to claim 6, wherein the device further comprises: 设置信息获取模块,用于所述环境参数检测模块检测所述通信设备当前所处环境的环境参数之前,获取所述通信设备的设置信息;a setting information obtaining module, configured to acquire setting information of the communication device before the environment parameter detecting module detects an environment parameter of an environment in which the communication device is currently located; 所述环境参数检测模块,还用于当所述设置信息用于指示对所述通信设备进行控制时,触发检测所述通信设备当前所处环境的环境参数。 The environment parameter detecting module is further configured to trigger an environment parameter that detects an environment in which the communication device is currently located when the setting information is used to indicate that the communication device is controlled.
PCT/CN2017/097934 2017-08-17 2017-08-17 Device control method and apparatus Ceased WO2019033366A1 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
PCT/CN2017/097934 WO2019033366A1 (en) 2017-08-17 2017-08-17 Device control method and apparatus

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2017/097934 WO2019033366A1 (en) 2017-08-17 2017-08-17 Device control method and apparatus

Publications (1)

Publication Number Publication Date
WO2019033366A1 true WO2019033366A1 (en) 2019-02-21

Family

ID=65362017

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2017/097934 Ceased WO2019033366A1 (en) 2017-08-17 2017-08-17 Device control method and apparatus

Country Status (1)

Country Link
WO (1) WO2019033366A1 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110275804A (en) * 2019-05-14 2019-09-24 芯盟科技有限公司 A kind of information processing method, device and computer readable storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2002013039A1 (en) * 2000-08-07 2002-02-14 Pni, Corp. Method and apparatus for a distributed home-automation-control (hac) window
CN103246244A (en) * 2012-02-10 2013-08-14 Abb股份公司 System for controlling a device
CN106453008A (en) * 2016-11-20 2017-02-22 广西大学 Electronic informatization home control system
CN106724705A (en) * 2016-11-29 2017-05-31 青岛盛鑫琴院机电科技有限公司 curtain control device based on cloud server

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2002013039A1 (en) * 2000-08-07 2002-02-14 Pni, Corp. Method and apparatus for a distributed home-automation-control (hac) window
CN103246244A (en) * 2012-02-10 2013-08-14 Abb股份公司 System for controlling a device
CN106453008A (en) * 2016-11-20 2017-02-22 广西大学 Electronic informatization home control system
CN106724705A (en) * 2016-11-29 2017-05-31 青岛盛鑫琴院机电科技有限公司 curtain control device based on cloud server

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110275804A (en) * 2019-05-14 2019-09-24 芯盟科技有限公司 A kind of information processing method, device and computer readable storage medium
CN110275804B (en) * 2019-05-14 2023-08-11 芯盟科技有限公司 Information processing method, device and computer readable storage medium

Similar Documents

Publication Publication Date Title
TWI731023B (en) Door orientation detection circuit and door hardware assembly
BR112016005863B1 (en) METHOD AND DEVICE FOR GENERATING REQUEST MESSAGE
US8321683B2 (en) Electronic control device and method for operating an electric roller shutter
CN104486175A (en) Intelligent household equipment linkage control method and router
CN108319204A (en) Intelligent control method and system
Abu et al. Design and development of home security systems based on internet of things via favoriot platform
US11755750B2 (en) Device lockdown
US11029655B2 (en) Progressive profiling in an automation system
US11023126B2 (en) Touch gesture confirmation
CN104407536A (en) A secure smart window
CN111308921A (en) Method for controlling equipment based on voice and control terminal equipment
WO2019033366A1 (en) Device control method and apparatus
CN106302993B (en) Flashlight control method and mobile terminal
CN107679381A (en) A kind of announcement information processing method and mobile terminal
CN106453956B (en) Method and mobile terminal for setting do-not-disturb mode
CN115616938B (en) Control method and device of electrochromic device, electronic equipment and storage medium
KR101683747B1 (en) Network camera with the plural digital outputs for alarm output and control method thereof
CN107288442B (en) An anti-theft door device for a mobile terminal APP key intelligent control system
CN105468136B (en) A kind of information processing method and electronic equipment
CN105917395B (en) Anti-theft method and device
CN112567892B (en) Transmits sensor signals depending on device orientation
KR102227517B1 (en) System with IP camera based on Internet of Things and control method thereof
CN115016300A (en) Equipment control method and device and electronic equipment
US20210082125A1 (en) Client devices having media manipulation functionalities and related methods
CN114616836A (en) Control system and control method

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: 17921467

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 07.09.2020)

122 Ep: pct application non-entry in european phase

Ref document number: 17921467

Country of ref document: EP

Kind code of ref document: A1