CN107395472B - Control method and device of intelligent household equipment - Google Patents
Control method and device of intelligent household equipment Download PDFInfo
- Publication number
- CN107395472B CN107395472B CN201710625557.8A CN201710625557A CN107395472B CN 107395472 B CN107395472 B CN 107395472B CN 201710625557 A CN201710625557 A CN 201710625557A CN 107395472 B CN107395472 B CN 107395472B
- Authority
- CN
- China
- Prior art keywords
- sensor
- split
- type sensor
- split type
- value
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L12/00—Data switching networks
- H04L12/28—Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
- H04L12/2803—Home automation networks
- H04L12/2823—Reporting information sensed by appliance or service execution status of appliance services in a home automation network
- H04L12/2827—Reporting to a device within the home network; wherein the reception of the information reported automatically triggers the execution of a home appliance functionality
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L12/00—Data switching networks
- H04L12/28—Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
- H04L12/2803—Home automation networks
- H04L12/2816—Controlling appliance services of a home automation network by calling their functionalities
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L12/00—Data switching networks
- H04L12/28—Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
- H04L12/2803—Home automation networks
- H04L12/2823—Reporting information sensed by appliance or service execution status of appliance services in a home automation network
- H04L12/2827—Reporting to a device within the home network; wherein the reception of the information reported automatically triggers the execution of a home appliance functionality
- H04L12/2829—Reporting to a device within the home network; wherein the reception of the information reported automatically triggers the execution of a home appliance functionality involving user profiles according to which the execution of a home appliance functionality is automatically triggered
Landscapes
- Engineering & Computer Science (AREA)
- Automation & Control Theory (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Air Conditioning Control Device (AREA)
- Selective Calling Equipment (AREA)
Abstract
Description
技术领域technical field
本公开涉及通信技术领域,尤其涉及智能家居设备的控制方法及装置。The present disclosure relates to the field of communication technologies, and in particular, to a control method and device for smart home equipment.
背景技术Background technique
随着人们生活水平的日益提高,对生活环境的要求也越来越高,尤其是对家居环境。如何改善家居环境,这是摆在工程师面前的一大难题。在此背景下,智能家居理念应运而生。目前,智能家居设备可以通过设置的传感器获取到环境中的传感器数据,进而根据传感器数据对自身运行进行控制,从而使得家居环境更加安全和舒适。With the increasing improvement of people's living standards, the requirements for the living environment are also getting higher and higher, especially for the home environment. How to improve the home environment is a big problem for engineers. In this context, the concept of smart home came into being. At present, smart home devices can obtain sensor data in the environment through the set sensors, and then control their own operation according to the sensor data, thereby making the home environment safer and more comfortable.
发明内容SUMMARY OF THE INVENTION
为克服相关技术中存在的问题,本公开实施例提供智能家居设备的控制方法及装置。所述技术方案如下:In order to overcome the problems existing in the related art, the embodiments of the present disclosure provide a control method and apparatus for a smart home device. The technical solution is as follows:
根据本公开实施例的第一方面,提供一种分体智能家居设备的控制方法,包括:According to a first aspect of the embodiments of the present disclosure, a method for controlling a split smart home device is provided, including:
通过所述分体式传感器的定位信息确定所述分体式传感器是否处于第一指示状态;Determine whether the split-type sensor is in the first indication state according to the positioning information of the split-type sensor;
当所述分体式传感器处于第一指示状态时,控制智能家居设备使用所述分体式传感器发送的传感器数据对自身运行进行控制。When the split-type sensor is in the first indication state, the smart home device is controlled to use the sensor data sent by the split-type sensor to control its own operation.
本公开的实施例提供的技术方案可以包括以下有益效果:通过分体式传感器的定位信息确定分体式传感器是否处于第一指示状态;当分体式传感器处于第一指示状态时,控制智能家居设备使用分体式传感器发送的传感器数据对自身运行进行控制,此时,智能家居设备便使用分体式传感器发送的传感器数据对自身运行进行控制,从而使得智能家居设备对自身的控制更加的准确,使得家居环境更加安全和舒适,且保护了智能家居设备。The technical solutions provided by the embodiments of the present disclosure may include the following beneficial effects: determining whether the split-type sensor is in the first indication state through the positioning information of the split-type sensor; when the split-type sensor is in the first indication state, controlling the smart home device to use the split-type sensor The sensor data sent by the sensor controls its own operation. At this time, the smart home device uses the sensor data sent by the split sensor to control its own operation, so that the smart home device can control itself more accurately and make the home environment safer. and comfort, while protecting smart home devices.
在一个实施例中,所述当所述分体式传感器处于第一指示状态时,控制智能家居设备使用所述分体式传感器发送的传感器数据对自身运行进行控制,包括:In one embodiment, when the split-type sensor is in the first indication state, controlling the smart home device to use the sensor data sent by the split-type sensor to control its own operation includes:
在检测到满足预设条件,且所述分体式传感器处于第一指示状态时,控制所述智能家居设备使用所述分体式传感器发送的传感器数据对自身运行进行控制;When it is detected that the preset condition is met and the split sensor is in the first indication state, controlling the smart home device to use the sensor data sent by the split sensor to control its own operation;
其中,所述检测到满足预设条件包括以下条件中的至少一条:Wherein, the detecting that the preset condition is met includes at least one of the following conditions:
检测到所述分体式传感器获取到的传感器数据的值与所述智能家居设备的设定目标数值之间的差值大于所述第一预设阈值;It is detected that the difference between the value of the sensor data obtained by the split sensor and the set target value of the smart home device is greater than the first preset threshold;
检测到所述智能家居设备处于稳定运行状态;It is detected that the smart home device is in a stable operation state;
检测接收到指示指令,所述指示指令为用户输入的指示启用所述分体式传感器的指令。It is detected that an instruction instruction is received, and the instruction instruction is an instruction entered by a user to instruct to activate the split sensor.
本公开的实施例提供的技术方案可以包括以下有益效果:当在检测到满足预设条件,且所述分体式传感器处于第一指示状态时,控制所述智能家居设备使用所述分体式传感器发送的传感器数据对自身运行进行控制,从而可以达到更加精确的控制智能家居设备的目的。The technical solutions provided by the embodiments of the present disclosure may include the following beneficial effects: when it is detected that a preset condition is met and the split sensor is in a first indication state, the smart home device is controlled to use the split sensor to send The sensor data of the device controls its own operation, so as to achieve the purpose of more precise control of smart home devices.
在一个实施例中,所述当所述分体式传感器处于第一指示状态时,控制智能家居设备使用所述分体式传感器发送的传感器数据对自身运行进行控制,包括:In one embodiment, when the split-type sensor is in the first indication state, controlling the smart home device to use the sensor data sent by the split-type sensor to control its own operation includes:
获取所述分体式传感器发送的多个传感器数据;acquiring multiple sensor data sent by the split sensor;
确定所述多个传感器数据的平均值;determining an average value of the plurality of sensor data;
控制所述智能家居设备使用所述平均值对自身运行进行控制。The smart home device is controlled to use the average to control its own operation.
本公开的实施例提供的技术方案可以包括以下有益效果:在获取到多个传感器数据的平均值后,控制智能家居设备使用该平均值作为对自身运行进行控制的指导数据,从而使得智能家居设备的运行更为精确。The technical solutions provided by the embodiments of the present disclosure may include the following beneficial effects: after acquiring the average value of multiple sensor data, the smart home device is controlled to use the average value as guidance data for controlling its own operation, so that the smart home device can operation is more precise.
在一个实施例中,所述方法还包括:In one embodiment, the method further includes:
检测所述分体式传感器获取到的传感器数据的值与所述智能家居设备的设定目标数值之间的差值是否大于第二预设阈值;Detecting whether the difference between the value of the sensor data obtained by the split sensor and the set target value of the smart home device is greater than a second preset threshold;
在检测到所述分体式传感器获取到的传感器数据的值与所述智能家居设备的设定目标数值之间的差值大于所述第二预设阈值时,向所述智能家居设备发送修正消息,所述修正消息用于指示所述智能家居设备使用修正数值对自身运行进行控制,其中,所述修正数值通过所述设定目标数值与所述第二预设阈值确定。When it is detected that the difference between the value of the sensor data obtained by the split sensor and the set target value of the smart home device is greater than the second preset threshold, send a correction message to the smart home device , the correction message is used to instruct the smart home device to use a correction value to control its own operation, wherein the correction value is determined by the set target value and the second preset threshold.
本公开的实施例提供的技术方案可以包括以下有益效果:通过修正分体式传感器获取到的传感器数据,可以避免智能家居设备异常工作,有效提升了智能家居设备工作的安全性。The technical solutions provided by the embodiments of the present disclosure may include the following beneficial effects: by correcting the sensor data obtained by the split sensor, abnormal operation of the smart home equipment can be avoided, and the work safety of the smart home equipment can be effectively improved.
在一个实施例中,所述方法还包括:In one embodiment, the method further includes:
确定所述分体式传感器获取到的传感器数据的值与所述智能家居设备的设定目标数值之间的第一差值;determining the first difference between the value of the sensor data obtained by the split sensor and the set target value of the smart home device;
获取所述智能家居设备的设定目标数值与所述第一差值之间的第二差值;obtaining the second difference between the set target value of the smart home device and the first difference;
若所述第二差值小于第三预设阈值,则将所述设定目标数值变更为所述第三预设阈值;If the second difference is smaller than a third preset threshold, changing the set target value to the third preset threshold;
若所述第二差值大于或等于所述第三预设阈值,则将所述设定目标数值变更为所述第二差值。If the second difference is greater than or equal to the third preset threshold, the set target value is changed to the second difference.
本公开的实施例提供的技术方案可以包括以下有益效果:通过修正智能家居设备的设定目标数值,可以避免智能家居设备异常工作,有效提升了智能家居设备工作的安全性。The technical solutions provided by the embodiments of the present disclosure may include the following beneficial effects: by correcting the set target value of the smart home device, abnormal operation of the smart home device can be avoided, and the work safety of the smart home device can be effectively improved.
在一个实施例中,所述方法还包括:In one embodiment, the method further includes:
检测是否接收到退出指令;Detect whether an exit instruction is received;
在检测接收到所述退出指令后,控制所述智能家居设备忽略所述分体式传感器发送的传感器数据;After detecting and receiving the exit instruction, control the smart home device to ignore the sensor data sent by the split sensor;
其中,所述退出指令包括以下指令中的至少一条:Wherein, the exit instruction includes at least one of the following instructions:
指示关闭所述智能家居设备的指令;an instruction to turn off said smart home device;
指示切换所述智能家居设备的运行模式的指令;an instruction instructing to switch the operating mode of the smart home device;
指示在预设时间内未接收到所述分体式传感器发送的传感器数据的指令;an instruction indicating that the sensor data sent by the split sensor has not been received within a preset time;
指示禁止使用所述分体式传感器的指令;an instruction to prohibit the use of said remote sensor;
指示所述智能家居设备发生故障;indicating that the smart home device is malfunctioning;
指示通过所述分体式传感器的定位信息确定所述分体式传感器处于第二指示状态。It is indicated that the split-type sensor is in a second indication state according to the positioning information of the split-type sensor.
本公开的实施例提供的技术方案可以包括以下有益效果:当检测接收到退出指令后,控制智能家居设备忽略分体式传感器发送的传感器数据,从而可以提升智能家居设备工作的准确性。The technical solutions provided by the embodiments of the present disclosure may include the following beneficial effects: after detecting and receiving an exit instruction, the smart home device is controlled to ignore the sensor data sent by the split sensor, thereby improving the working accuracy of the smart home device.
在一个实施例中,所述通过所述分体式传感器的定位信息确定所述分体式传感器是否处于第一指示状态,包括:In one embodiment, the determining whether the separate sensor is in the first indication state according to the positioning information of the separate sensor includes:
在所述分体式传感器被固定在设置于预设位置的固定装置时,打开所述分体式传感器对应的控制开关,在所述控制开关处于打开状态时确定所述分体式传感器处于所述第一指示状态。When the split-type sensor is fixed on the fixing device set at the preset position, the control switch corresponding to the split-type sensor is turned on, and when the control switch is in an open state, it is determined that the split-type sensor is in the first Indicate status.
本公开的实施例提供的技术方案可以包括以下有益效果:当分体式传感器被固定在设置于预设位置的固定装置时,打开分体式传感器对应的控制开关,从而确定分体式传感器处于第一指示状态,此时便控制智能家居设备使用分体式传感器发送的传感器数据对自身运行进行控制,从而使得智能家居设备对自身的控制更加的准确。The technical solutions provided by the embodiments of the present disclosure may include the following beneficial effects: when the split-type sensor is fixed on the fixing device set at the preset position, the control switch corresponding to the split-type sensor is turned on, so as to determine that the split-type sensor is in the first indication state , at this time, the smart home device is controlled to use the sensor data sent by the split sensor to control its own operation, so that the smart home device can control itself more accurately.
在一个实施例中,所述通过所述分体式传感器的定位信息确定所述分体式传感器是否处于第二指示状态,包括:In one embodiment, the determining whether the split-type sensor is in the second indication state by using the positioning information of the split-type sensor includes:
在所述分体式传感器与设置于预设位置的固定装置脱离时,关闭所述分体式传感器对应的控制开关,在所述控制开关处于关闭状态时确定所述分体式传感器处于所述第二指示状态。When the split-type sensor is detached from the fixing device set at the preset position, the control switch corresponding to the split-type sensor is turned off, and when the control switch is in the off state, it is determined that the split-type sensor is in the second indication state.
本公开的实施例提供的技术方案可以包括以下有益效果:当分体式传感器与设置于预设位置的固定装置脱离时,关闭分体式传感器对应的控制开关,从而确定分体式传感器处于第二指示状态,此时便控制智能家居设备忽略分体式传感器发送的传感器数据,从而使得智能家居设备对自身的控制更加的准确。The technical solutions provided by the embodiments of the present disclosure may include the following beneficial effects: when the split-type sensor is detached from the fixing device disposed at the preset position, the control switch corresponding to the split-type sensor is turned off, thereby determining that the split-type sensor is in the second indication state, At this time, the smart home device is controlled to ignore the sensor data sent by the split sensor, so that the smart home device can control itself more accurately.
在一个实施例中,所述固定装置为磁性固定装置,所述控制开关为霍尔开关。In one embodiment, the fixing device is a magnetic fixing device, and the control switch is a Hall switch.
本公开的实施例提供的技术方案可以包括以下有益效果:通过磁性固定装置和霍尔开关的配合,可以控制智能家居设备是否使用分体式传感器采集的传感器数据对自身运行进行控制,从而使得智能家居设备对自身的控制更加的准确。The technical solutions provided by the embodiments of the present disclosure may include the following beneficial effects: through the cooperation of the magnetic fixing device and the Hall switch, it is possible to control whether the smart home device uses the sensor data collected by the split sensor to control its own operation, so that the smart home device can control its own operation. The device controls itself more accurately.
根据本公开实施例的第二方面,提供一种智能家居设备的控制装置,包括:According to a second aspect of the embodiments of the present disclosure, there is provided a control device for a smart home device, including:
第一确定模块,用于通过所述分体式传感器的定位信息确定所述分体式传感器是否处于第一指示状态;a first determining module, configured to determine whether the split-type sensor is in a first indication state through the positioning information of the split-type sensor;
第一控制模块,用于当所述第一确定模块确定所述分体式传感器处于第一指示状态时,控制智能家居设备使用所述分体式传感器发送的传感器数据对自身运行进行控制。The first control module is configured to control the smart home device to use the sensor data sent by the split sensor to control its own operation when the first determination module determines that the split sensor is in the first indication state.
在一个实施例中,所述第一控制模块包括:检测子模块和第一控制子模块;In one embodiment, the first control module includes: a detection sub-module and a first control sub-module;
所述检测子模块,用于检测是否满足预设条件;The detection submodule is used to detect whether a preset condition is met;
所述第一控制子模块,用于在所述检测子模块检测到满足预设条件,且所述分体式传感器处于第一指示状态时,控制所述智能家居设备使用所述分体式传感器发送的传感器数据对自身运行进行控制;The first control sub-module is configured to control the smart home device to use the data sent by the split sensor when the detection sub-module detects that a preset condition is met and the split sensor is in the first indication state. Sensor data controls its own operation;
其中,所述检测到满足预设条件包括以下条件中的至少一条:Wherein, the detecting that the preset condition is met includes at least one of the following conditions:
检测到所述分体式传感器获取到的传感器数据的值与所述智能家居设备的设定目标数值之间的差值大于所述第一预设阈值;It is detected that the difference between the value of the sensor data obtained by the split sensor and the set target value of the smart home device is greater than the first preset threshold;
检测到所述智能家居设备处于稳定运行状态;It is detected that the smart home device is in a stable operation state;
检测接收到指示指令,所述指示指令为用户输入的指示启用所述分体式传感器的指令。It is detected that an instruction instruction is received, and the instruction instruction is an instruction entered by a user to instruct to activate the split sensor.
在一个实施例中,所述第一控制模块包括:获取子模块、确定子模块和第二控制子模块;In one embodiment, the first control module includes: an acquisition sub-module, a determination sub-module and a second control sub-module;
所述获取子模块,用于获取所述分体式传感器发送的多个传感器数据;The acquisition submodule is used to acquire multiple sensor data sent by the split sensor;
所述确定子模块,用于确定所述获取子模块获取的所述多个传感器数据的平均值;The determining submodule is configured to determine the average value of the plurality of sensor data acquired by the acquiring submodule;
所述第二控制子模块,用于控制所述智能家居设备使用所述确定子模块确定的所述平均值对自身运行进行控制。The second control sub-module is configured to control the smart home device to use the average value determined by the determination sub-module to control its own operation.
在一个实施例中,所述装置还包括:第一检测模块和发送模块;In one embodiment, the apparatus further includes: a first detection module and a transmission module;
所述第一检测模块,用于检测所述分体式传感器获取到的传感器数据的值与所述智能家居设备的设定目标数值之间的差值是否大于第二预设阈值;The first detection module is used to detect whether the difference between the value of the sensor data obtained by the split sensor and the set target value of the smart home device is greater than a second preset threshold;
所述发送模块,用于在所述第一检测模块检测到所述分体式传感器获取到的传感器数据的值与所述智能家居设备的设定目标数值之间的差值大于所述第二预设阈值时,向所述智能家居设备发送修正消息,所述修正消息用于指示所述智能家居设备使用修正数值对自身运行进行控制,其中,所述修正数值通过所述设定目标数值与所述第二预设阈值确定。The sending module is configured to detect that the first detection module detects that the difference between the value of the sensor data obtained by the split sensor and the set target value of the smart home device is greater than the second preset value. When the threshold is set, a correction message is sent to the smart home device, and the correction message is used to instruct the smart home device to use the correction value to control its own operation, wherein the correction value is determined by the set target value and the set value. The second preset threshold is determined.
在一个实施例中,所述装置还包括:第二确定模块、第二获取模块、判断模块、第一变更模块和第二变更模块;In one embodiment, the apparatus further includes: a second determining module, a second obtaining module, a judging module, a first changing module, and a second changing module;
所述第二确定模块,用于确定所述分体式传感器获取到的传感器数据的值与所述智能家居设备的设定目标数值之间的第一差值;The second determination module is used to determine the first difference between the value of the sensor data obtained by the split sensor and the set target value of the smart home device;
所述第二获取模块,用于获取所述智能家居设备的设定目标数值与所述第二确定模块确定的所述第一差值之间的第二差值;The second acquisition module is used to acquire the second difference between the set target value of the smart home device and the first difference determined by the second determination module;
所述判断模块,用于判断所述第二获取模块获取的所述第二差值是否小于第三预设阈值;the judging module for judging whether the second difference obtained by the second obtaining module is less than a third preset threshold;
所述第一变更模块,用于当所述判断模块判断所述第二差值小于第三预设阈值时,将所述设定目标数值变更为所述第三预设阈值;The first change module is configured to change the set target value to the third preset threshold when the judgment module judges that the second difference is less than a third preset threshold;
所述第二变更模块,用于当所述判断模块判断所述第二差值大于或等于所述第三预设阈值时,将所述设定目标数值变更为所述第二差值。The second change module is configured to change the set target value to the second difference when the judgment module judges that the second difference is greater than or equal to the third preset threshold.
在一个实施例中,所述装置还包括:第二检测模块和第二控制模块;In one embodiment, the apparatus further includes: a second detection module and a second control module;
所述第二检测模块,用于检测是否接收到退出指令;The second detection module is used to detect whether an exit instruction is received;
所述第二控制模块,用于在所述第二检测模块检测接收到所述退出指令后,控制所述智能家居设备忽略所述分体式传感器发送的传感器数据;the second control module, configured to control the smart home device to ignore the sensor data sent by the split sensor after the second detection module detects and receives the exit instruction;
其中,所述退出指令包括以下指令中的至少一条:Wherein, the exit instruction includes at least one of the following instructions:
指示关闭所述智能家居设备的指令;an instruction to turn off said smart home device;
指示切换所述智能家居设备的运行模式的指令;an instruction instructing to switch the operating mode of the smart home device;
指示在预设时间内未接收到所述分体式传感器发送的传感器数据的指令;an instruction indicating that the sensor data sent by the split sensor has not been received within a preset time;
指示禁止使用所述分体式传感器的指令;an instruction to prohibit the use of said remote sensor;
指示所述智能家居设备发生故障;indicating that the smart home device is malfunctioning;
指示通过所述分体式传感器的定位信息确定所述分体式传感器处于第二指示状态。It is indicated that the split-type sensor is in a second indication state according to the positioning information of the split-type sensor.
在一个实施例中,所述第一确定模块包括:第一确定子模块;In one embodiment, the first determining module includes: a first determining sub-module;
所述第一确定子模块,用于在所述分体式传感器被固定在设置于预设位置的固定装置时,打开所述分体式传感器对应的控制开关,在所述控制开关处于打开状态时确定所述分体式传感器处于所述第一指示状态。The first determination sub-module is configured to open the control switch corresponding to the split sensor when the split sensor is fixed on the fixing device set at the preset position, and determine when the control switch is in an open state The split sensor is in the first indication state.
在一个实施例中,所述通过所述分体式传感器的定位信息确定所述分体式传感器是否处于第二指示状态,包括:In one embodiment, the determining whether the split-type sensor is in the second indication state by using the positioning information of the split-type sensor includes:
在所述分体式传感器与设置于预设位置的固定装置脱离时,关闭所述分体式传感器对应的控制开关,在所述控制开关处于关闭状态时确定所述分体式传感器处于所述第二指示状态。When the split-type sensor is detached from the fixing device set at the preset position, the control switch corresponding to the split-type sensor is turned off, and when the control switch is in the off state, it is determined that the split-type sensor is in the second indication state.
在一个实施例中,所述固定装置为磁性固定装置,所述控制开关为霍尔开关。In one embodiment, the fixing device is a magnetic fixing device, and the control switch is a Hall switch.
根据本公开实施例的第三方面,提供一种智能家居设备的控制装置,包括:According to a third aspect of the embodiments of the present disclosure, a control device for a smart home device is provided, including:
处理器;processor;
用于存储处理器可执行指令的存储器;memory for storing processor-executable instructions;
其中,所述处理器被配置为:wherein the processor is configured to:
通过所述分体式传感器的定位信息确定所述分体式传感器是否处于第一指示状态;Determine whether the split-type sensor is in the first indication state according to the positioning information of the split-type sensor;
当所述分体式传感器处于第一指示状态时,控制智能家居设备使用所述分体式传感器发送的传感器数据对自身运行进行控制。When the split-type sensor is in the first indication state, the smart home device is controlled to use the sensor data sent by the split-type sensor to control its own operation.
根据本公开实施例的第四方面,提供一种计算机可读存储介质,其上存储有计算机指令,该指令被处理器执行时实现以下步骤:According to a fourth aspect of the embodiments of the present disclosure, there is provided a computer-readable storage medium on which computer instructions are stored, and when the instructions are executed by a processor, the following steps are implemented:
通过所述分体式传感器的定位信息确定所述分体式传感器是否处于第一指示状态;Determine whether the split-type sensor is in the first indication state according to the positioning information of the split-type sensor;
当所述分体式传感器处于第一指示状态时,控制智能家居设备使用所述分体式传感器发送的传感器数据对自身运行进行控制。When the split-type sensor is in the first indication state, the smart home device is controlled to use the sensor data sent by the split-type sensor to control its own operation.
应当理解的是,以上的一般描述和后文的细节描述仅是示例性和解释性的,并不能限制本公开。It is to be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the present disclosure.
附图说明Description of drawings
此处的附图被并入说明书中并构成本说明书的一部分,示出了符合本公开的实施例,并与说明书一起用于解释本公开的原理。The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the disclosure and together with the description serve to explain the principles of the disclosure.
图1是根据一示例性实施例一示出的智能家居设备的控制方法的流程图。Fig. 1 is a flowchart of a control method of a smart home device according to an exemplary embodiment 1.
图2是根据一示例性实施例示出的智能家居设备的控制方法中步骤S102的流程图。FIG. 2 is a flowchart of step S102 in a method for controlling a smart home device according to an exemplary embodiment.
图3是根据一示例性实施例二示出的智能家居设备的控制方法的流程图。Fig. 3 is a flowchart of a method for controlling a smart home device according to an exemplary embodiment 2.
图4是根据一示例性实施例三示出的智能家居设备的控制方法的流程图。Fig. 4 is a flowchart of a control method for a smart home device according to an exemplary embodiment 3.
图5是根据一示例性实施例四示出的智能家居设备的控制方法的流程图。Fig. 5 is a flowchart of a control method for a smart home device according to an exemplary embodiment 4.
图6是根据一示例性实施例示出的传感器数据获取装置的示意图。FIG. 6 is a schematic diagram of an apparatus for acquiring sensor data according to an exemplary embodiment.
图7是根据一示例性实施例一示出的本公开方法的应用场景示意图。Fig. 7 is a schematic diagram of an application scenario of the method of the present disclosure according to an exemplary embodiment 1.
图8是根据一示例性实施例二示出的本公开方法的应用场景示意图。FIG. 8 is a schematic diagram of an application scenario of the method of the present disclosure according to an exemplary embodiment 2. FIG.
图9是根据一示例性实施例一示出的智能家居设备的控制装置的框图。Fig. 9 is a block diagram of a control apparatus of a smart home device according to an exemplary embodiment 1.
图10是根据一示例性实施例一示出的智能家居设备的控制装置中第一控制模块12的框图。FIG. 10 is a block diagram of a first control module 12 in a control apparatus of a smart home device according to an exemplary embodiment 1.
图11是根据一示例性实施例二示出的智能家居设备的控制装置中第一控制模块12的框图。FIG. 11 is a block diagram of a first control module 12 in a control apparatus for a smart home device according to an exemplary embodiment 2. As shown in FIG.
图12是根据一示例性实施例二示出的智能家居设备的控制装置的框图。Fig. 12 is a block diagram of a control apparatus of a smart home device according to an exemplary embodiment 2.
图13是根据一示例性实施例三示出的智能家居设备的控制装置的框图。Fig. 13 is a block diagram of a control device of a smart home device according to an exemplary embodiment 3.
图14是根据一示例性实施例四示出的智能家居设备的控制装置的框图。Fig. 14 is a block diagram of a control apparatus of a smart home device according to an exemplary embodiment 4.
图15是根据一示例性实施例示出的智能家居设备的控制装置中第一确定模块11的框图。FIG. 15 is a block diagram of a first determination module 11 in a control apparatus of a smart home device according to an exemplary embodiment.
图16是根据一示例性实施例示出的一种用于智能家居设备的控制装置80的框图。FIG. 16 is a block diagram of a
具体实施方式Detailed ways
这里将详细地对示例性实施例进行说明,其示例表示在附图中。下面的描述涉及附图时,除非另有表示,不同附图中的相同数字表示相同或相似的要素。以下示例性实施例中所描述的实施方式并不代表与本公开相一致的所有实施方式。相反,它们仅是与如所附权利要求书中所详述的、本公开的一些方面相一致的装置和方法的例子。Exemplary embodiments will be described in detail herein, examples of which are illustrated in the accompanying drawings. Where the following description refers to the drawings, the same numerals in different drawings refer to the same or similar elements unless otherwise indicated. The implementations described in the illustrative examples below are not intended to represent all implementations consistent with this disclosure. Rather, they are merely examples of apparatus and methods consistent with some aspects of the present disclosure as recited in the appended claims.
智能家居设备获取到的传感器数据可以有两种来源,一种是通过智能家居设备自身设置的传感器(一体式的传感器)获取传感器数据,另一种是通过分体式传感器获取传感器数据。The sensor data obtained by the smart home device can come from two sources, one is to obtain the sensor data through the sensor (integrated sensor) set by the smart home device itself, and the other is to obtain the sensor data through the split sensor.
在智能家居设备从分体式传感器获取传感器数据时,由于分体式传感器是持续的采集传感器数据的,也即无论分体式传感器正常运行还是异常运行,其都会采集传感器数据,并会将采集到的传感器数据发送给智能家居设备。而如果分体式传感器异常运行或被损坏,那么,此时分体式传感器采集到的传感器数据就会有误,但智能家居设备并不知道分体式传感器发送固定传感器数据有误,从而使得智能家居设备对自身进行了错误的控制,导致用户体验差,且有可能导致智能家居设备的损坏。When a smart home device obtains sensor data from a split sensor, since the split sensor continuously collects sensor data, that is, regardless of whether the split sensor operates normally or abnormally, it will collect the sensor data, and will collect the collected sensor data. Data is sent to smart home devices. If the split sensor operates abnormally or is damaged, then the sensor data collected by the split sensor will be wrong, but the smart home device does not know that the fixed sensor data sent by the split sensor is wrong. The wrong control is carried out by itself, resulting in poor user experience and possible damage to smart home equipment.
本公开通过通知智能家居设备何时可以使用分体式传感器发送的传感器数据对自身运行进行控制,从而使得智能家居设备对自身的控制更加的准确,有效提升了用户体验,使得家居环境更加安全和舒适,且保护了智能家居设备。The present disclosure informs the smart home device when it can use the sensor data sent by the split sensor to control its own operation, so that the smart home device can control itself more accurately, effectively improve the user experience, and make the home environment safer and more comfortable , and protect smart home devices.
图1是根据一示例性实施例一示出的智能家居设备的控制方法的流程图,如图1所示,该方法包括以下步骤:Fig. 1 is a flowchart of a method for controlling a smart home device according to an exemplary embodiment 1. As shown in Fig. 1 , the method includes the following steps:
在步骤S101中,通过分体式传感器的定位信息确定分体式传感器是否处于第一指示状态。In step S101, it is determined whether the split-type sensor is in the first indication state according to the positioning information of the split-type sensor.
在步骤S102中,当分体式传感器处于第一指示状态时,控制智能家居设备使用分体式传感器发送的传感器数据对自身运行进行控制。In step S102, when the split-type sensor is in the first indication state, the smart home device is controlled to use the sensor data sent by the split-type sensor to control its own operation.
当分体式传感器可以正常使用时,为了控制智能家居设备可以使用分体式传感器采集到的传感器数据对自身运行进行控制,此时,可以通过分体式传感器的定位信息确定分体式传感器是否处于第一指示状态,在检测到分体式传感器处于第一指示状态时,控制与分体式传感器绑定的智能家居设备使用分体式传感器发送的传感器数据对自身运行进行控制。When the split sensor can be used normally, in order to control the smart home device, the sensor data collected by the split sensor can be used to control its own operation. At this time, the positioning information of the split sensor can be used to determine whether the split sensor is in the first indication state , when it is detected that the split sensor is in the first indication state, the smart home device bound to the split sensor is controlled to use the sensor data sent by the split sensor to control its own operation.
示例的,智能家居设备使用分体式传感器发送的传感器数据对自身运行进行控制包括:智能家居设备按照分体式传感器发送的传感器数据设定自身的运行目标,或者,智能家居设备已经预设运行目标,此时智能家居设备使用分体式传感器发送的传感器数据设定如何运行至该预设运行目标。For example, the smart home device using the sensor data sent by the split sensor to control its own operation includes: the smart home device sets its own running target according to the sensor data sent by the split sensor, or the smart home device has preset the running target, At this time, the smart home device uses the sensor data sent by the split sensor to set how to run to the preset running target.
其中,智能家居设备已经预设运行目标,此时智能家居设备使用分体式传感器发送的传感器数据设定如何运行至该预设运行目标包括但不限于:智能家居设备使用分体式传感器发送的传感器数据以最短的时间运行至该预设运行目标;智能家居设备使用分体式传感器发送的传感器数据以最节能的方式运行至该预设运行目标。The smart home device has a preset running target, and at this time, the smart home device uses the sensor data sent by the split sensor to set how to run to the preset running target, including but not limited to: the smart home device uses the sensor data sent by the split sensor Run to the preset running target in the shortest time; the smart home device uses the sensor data sent by the split sensor to run to the preset running target in the most energy-efficient way.
以智能家居设备为空调为例进行说明,此时,分体式传感器获取到的传感器数据为室内温度值,智能家居设备的设定目标数值为空调设定的目标温度值,此时,智能家居设备使用分体式传感器发送的传感器数据对自身运行进行控制包括:空调使用分体式传感器发送的室内温度值设定自身的目标温度值,或者,空调已经预设目标温度值,此时空调使用分体式传感器发送的室内温度值设定如何运行至该目标温度值。Taking the smart home device as an air conditioner as an example, at this time, the sensor data obtained by the split sensor is the indoor temperature value, and the set target value of the smart home device is the target temperature value set by the air conditioner. At this time, the smart home device Using the sensor data sent by the split sensor to control its own operation includes: the air conditioner uses the indoor temperature value sent by the split sensor to set its own target temperature value, or the air conditioner has preset the target temperature value, and the air conditioner uses the split sensor at this time. The sent room temperature value sets how to operate to this target temperature value.
其中,空调已经预设目标温度值,此时空调使用分体式传感器发送的室内温度值设定如何运行至该目标温度值包括但不限于:空调使用分体式传感器发送的室内温度值如何以最短的时间使得室内温度达到该目标温度值;或者,空调使用分体式传感器发送的室内温度值如何以最节能的方式使得室内温度达到该目标温度值;或者,空调使用分体式传感器发送的室内温度值如何以最短的时间和最节能的方式使得室内温度达到该目标温度值。Wherein, the air conditioner has preset a target temperature value. At this time, the air conditioner uses the indoor temperature value sent by the split sensor to set how to run to the target temperature value, including but not limited to: how to use the indoor temperature value sent by the air conditioner using the split sensor in the shortest possible way. Time to make the indoor temperature reach the target temperature value; or, how the indoor temperature value sent by the air conditioner using the split sensor can make the indoor temperature reach the target temperature value in the most energy-efficient way; or how the indoor temperature value sent by the air conditioner using the split sensor Make the indoor temperature reach the target temperature value in the shortest time and the most energy-efficient way.
本公开实施例提供一种分体式传感器的控制方法,包括:通过分体式传感器的定位信息确定分体式传感器是否处于第一指示状态;当分体式传感器处于第一指示状态时,控制智能家居设备使用分体式传感器发送的传感器数据对自身运行进行控制,此时,智能家居设备便使用分体式传感器发送的传感器数据对自身运行进行控制,从而使得智能家居设备对自身的控制更加的准确,使得家居环境更加安全和舒适,且保护了智能家居设备。An embodiment of the present disclosure provides a method for controlling a split sensor, including: determining whether the split sensor is in a first indication state according to positioning information of the split sensor; when the split sensor is in the first indication state, controlling a smart home device to use the split sensor The sensor data sent by the integrated sensor controls its own operation. At this time, the smart home device uses the sensor data sent by the split sensor to control its own operation, so that the smart home device can control itself more accurately and make the home environment more accurate. Safety, comfort, and protection of smart home devices.
为了更加精确的对智能家居设备进行控制,在一个实施例中,上述的步骤S102还可实施为:在检测到满足预设条件,且分体式传感器处于第一指示状态时,控制智能家居设备使用分体式传感器发送的传感器数据对自身运行进行控制。In order to control the smart home equipment more accurately, in one embodiment, the above step S102 may also be implemented as: when it is detected that the preset condition is met and the split sensor is in the first indication state, control the smart home equipment to use The sensor data sent by the split sensor controls its own operation.
其中,检测到满足预设条件至少包括以下条件A-G中的任一项:Wherein, it is detected that the preset conditions are met at least including any one of the following conditions A-G:
A、检测到分体式传感器获取到的传感器数据的值与智能家居设备的设定目标数值之间的差值大于第一预设阈值。A. It is detected that the difference between the value of the sensor data obtained by the split sensor and the set target value of the smart home device is greater than the first preset threshold.
以智能家居设备为空调为例进行说明,此时,分体式传感器获取到的传感器数据为室内温度值,智能家居设备的设定目标数值为空调设定的目标温度值,当分体式传感器获取到的室内温度值与空调设定的目标温度值之间的差值大于第一预设阈值,则确定满足预设条件。Taking the smart home device as an air conditioner as an example, at this time, the sensor data obtained by the split sensor is the indoor temperature value, and the set target value of the smart home device is the target temperature value set by the air conditioner. If the difference between the indoor temperature value and the target temperature value set by the air conditioner is greater than the first preset threshold, it is determined that the preset condition is satisfied.
例如:空调为制冷模块时,第一预设阈值为2℃,空调设定的目标温度值为27℃,分体式传感器获取到的室内温度值为24℃,此时,分体式传感器获取到的室内温度值24℃与空调设定的目标温度值27℃之间的差值为-3℃,该差值-3℃小于第一预设阈值为2℃,则确定不满足预设条件,由上述的温度值也可以看出,可能此时分体式传感器出现了故障(获取到的室内温度值小于空调设定的目标温度值),如果此时确定满足预设条件,而如果分体式传感器处于第一指示状态,那么就会使得空调使用分体式传感器获取到的室内温度值对自身运行进行控制,由于室内温度值为24℃小于空调设定的目标温度值为27℃,就会导致空调停止运转,从而阻止了空调的正常运行,且无法使得室内温度达到空调设定的目标温度值为27℃,用户体验较差。For example: when the air conditioner is a refrigeration module, the first preset threshold is 2°C, the target temperature set by the air conditioner is 27°C, and the indoor temperature obtained by the split sensor is 24°C. The difference between the indoor temperature value of 24°C and the target temperature value set by the air conditioner of 27°C is -3°C, and the difference -3°C is less than the first preset threshold value of 2°C, then it is determined that the preset condition is not met, and the It can also be seen from the above temperature values that the split sensor may be faulty at this time (the obtained indoor temperature value is less than the target temperature value set by the air conditioner). Once the status is indicated, the air conditioner will use the indoor temperature value obtained by the split sensor to control its own operation. Since the indoor temperature value of 24°C is lower than the target temperature value set by the air conditioner of 27°C, the air conditioner will stop running. , thereby preventing the normal operation of the air conditioner, and cannot make the indoor temperature reach the target temperature value set by the air conditioner of 27°C, resulting in poor user experience.
再例如:空调为制冷模块时,第一预设阈值为2℃,空调设定的目标温度值为27℃,分体式传感器获取到的室内温度值为30℃,此时,分体式传感器获取到的室内温度值24℃与空调设定的目标温度值27℃之间的差值为3℃,该差值3℃大于第一预设阈值为2℃,则确定满足预设条件。Another example: when the air conditioner is a refrigeration module, the first preset threshold is 2°C, the target temperature set by the air conditioner is 27°C, and the indoor temperature obtained by the split sensor is 30°C. The difference between the indoor temperature value of 24°C and the target temperature value 27°C set by the air conditioner is 3°C, if the difference 3°C is greater than the first preset threshold value of 2°C, it is determined that the preset condition is met.
也即,当空调为制冷模式时,分体式传感器获取到的室内温度值比空调设定的目标温度值高2度。That is, when the air conditioner is in the cooling mode, the indoor temperature value acquired by the separate sensor is 2 degrees higher than the target temperature value set by the air conditioner.
同理,当空调为制热模式时,分体式传感器获取到的室内温度值比空调设定的目标温度值低2度。Similarly, when the air conditioner is in the heating mode, the indoor temperature value obtained by the split sensor is 2 degrees lower than the target temperature value set by the air conditioner.
上述的第一预设阈值可以预设,也可以用户设置,本公开不对第一预设阈值的设定方法和设定的具体数值加以限制。The above-mentioned first preset threshold may be preset or set by the user, and the present disclosure does not limit the setting method and specific value of the first preset threshold.
B、检测到智能家居设备处于稳定运行状态。B. It is detected that the smart home equipment is in a stable operation state.
继续以智能家居设备为空调为例进行说明,上述智能家居设备处于稳定运行状态包括但不限于以下①-③中至少一种状态:Continue to take the smart home device as an air conditioner as an example to illustrate, the above-mentioned smart home device is in a stable operation state, including but not limited to at least one of the following ①-③ states:
①在制冷模式时,回风口温度小于或者等于空调设定的目标温度值,或者在制热模式时,回风口温度大于或者等于空调设定的目标温度值。① In cooling mode, the temperature of the return air outlet is less than or equal to the target temperature set by the air conditioner, or in the heating mode, the temperature of the return air outlet is greater than or equal to the target temperature value set by the air conditioner.
②压缩机频率在预设时间段内没有发生变化,例如:压缩机频率连续3分钟没有发生变化。②The compressor frequency does not change within the preset time period, for example: the compressor frequency does not change for 3 minutes in a row.
③空调的当前状态没有发生故障或者保护。③ The current state of the air conditioner is not faulty or protected.
C、检测接收到指示指令,指示指令为用户输入的指示启用分体式传感器的指令。C. It is detected that an instruction instruction is received, and the instruction instruction is an instruction input by the user to enable the split sensor.
为了进一步的提升用户体验,还可以根据用户的指示来确定是否满足预设条件,当用户想要启用分体式传感器,也即,用户想要使用分体式传感器获取到的传感器数据来控制智能家居设备,此时,用户可以通过人机交互界面发送一指示指令。In order to further improve the user experience, it is also possible to determine whether the preset conditions are met according to the user's instructions. When the user wants to enable the split sensor, that is, the user wants to use the sensor data obtained by the split sensor to control the smart home device , at this time, the user can send an instruction instruction through the human-computer interaction interface.
D、检测到分体式传感器获取到的传感器数据的值与智能家居设备的设定目标数值之间的差值大于第一预设阈值,且检测到智能家居设备处于稳定运行状态。D. It is detected that the difference between the value of the sensor data obtained by the split sensor and the set target value of the smart home device is greater than the first preset threshold, and it is detected that the smart home device is in a stable operation state.
E、检测到分体式传感器获取到的传感器数据的值与智能家居设备的设定目标数值之间的差值大于第一预设阈值,且检测接收到指示指令,该指示指令为用户输入的指示启用分体式传感器的指令。E. It is detected that the difference between the value of the sensor data obtained by the split sensor and the set target value of the smart home device is greater than the first preset threshold, and an instruction instruction is detected, and the instruction instruction is an instruction input by the user Command to enable remote sensor.
F、检测到智能家居设备处于稳定运行状态,且检测接收到指示指令,该指示指令为用户输入的指示启用分体式传感器的指令。F. It is detected that the smart home equipment is in a stable operation state, and an instruction instruction is detected, and the instruction instruction is an instruction entered by the user to instruct to activate the split sensor.
G、检测到分体式传感器获取到的传感器数据的值与智能家居设备的设定目标数值之间的差值大于第一预设阈值,且检测到智能家居设备处于稳定运行状态,且检测接收到指示指令,该指示指令为用户输入的指示启用分体式传感器的指令。G. It is detected that the difference between the value of the sensor data obtained by the split sensor and the set target value of the smart home device is greater than the first preset threshold, and it is detected that the smart home device is in a stable operation state, and the received An instruction instruction, which is an instruction entered by the user to instruct the split sensor to be enabled.
在D、E、F和G中,如果任一个条件不满足,则确定不满足预设条件,而各个条件检测的前后顺序可以根据实际情况进行调整,并不以上述描述中的顺序为限。In D, E, F and G, if any one of the conditions is not satisfied, it is determined that the preset condition is not satisfied, and the sequence of detection of each condition can be adjusted according to the actual situation, and is not limited to the sequence in the above description.
以F为例:首先,检测到分体式传感器处于第一指示状态,进而检测到智能家居设备处于稳定运行状态,如果进一步的检测到未接收到指示指令,那么,就不控制智能家居设备使用所述分体式传感器发送的传感器数据对自身运行进行控制。Take F as an example: first, it is detected that the split sensor is in the first indication state, and then it is detected that the smart home equipment is in a stable operation state. The sensor data sent by the split sensor controls its own operation.
检测到智能家居设备处于稳定运行状态,且检测接收到指示指令,该指示指令为用户输入的指示启用分体式传感器的指令。It is detected that the smart home device is in a stable operation state, and an instruction instruction is detected, and the instruction instruction is an instruction input by the user to instruct to activate the split sensor.
本公开的实施例提供的技术方案可以包括以下有益效果:当在检测到满足预设条件,且所述分体式传感器处于第一指示状态时,控制所述智能家居设备使用所述分体式传感器发送的传感器数据对自身运行进行控制,从而可以达到更加精确的控制智能家居设备的目的。The technical solutions provided by the embodiments of the present disclosure may include the following beneficial effects: when it is detected that a preset condition is met and the split sensor is in a first indication state, the smart home device is controlled to use the split sensor to send The sensor data of the device controls its own operation, so as to achieve the purpose of more precise control of smart home devices.
在一种可实现方式中,由于分体式传感器获取到的传感器数据可能会产生波动,因此,为了更精确的控制智能家居设备,如图2所示,上述步骤S102可以实施为以下步骤S1021-S1023:In an achievable manner, since the sensor data obtained by the split sensor may fluctuate, in order to control the smart home device more accurately, as shown in FIG. 2 , the above step S102 can be implemented as the following steps S1021-S1023 :
在步骤S1021中,获取分体式传感器发送的多个传感器数据。In step S1021, multiple sensor data sent by the split sensor are acquired.
在步骤S1022中,确定多个传感器数据的平均值。In step S1022, an average value of a plurality of sensor data is determined.
示例的,可以在连续获取了预设数值个传感器数据后,对该些传感器数据求平均值;也可以在预设时间段内获取多个传感器数据,进而对该预设时间段内获取多个传感器数据求平均值,使用该平均值作为智能家居设备运行的指导数据。For example, after continuously acquiring a preset number of sensor data, the average value of these sensor data can be calculated; it is also possible to acquire multiple sensor data within a preset time period, and then acquire multiple sensor data within the preset time period. The sensor data is averaged and the average is used as guide data for the operation of the smart home device.
示例的,还可以是连续获取分体式传感器发送的30个传感器数据,进而去掉传感器数据的值最高的3个传感器数据,以及最低的3个传感器数据,中间24个传感器数据求平均值,使用该平均值作为智能家居设备运行的指导数据。For example, it can also continuously acquire 30 sensor data sent by the split sensor, and then remove the 3 sensor data with the highest value of the sensor data and the lowest 3 sensor data, and average the 24 sensor data in the middle. The average serves as a guideline for the operation of smart home devices.
值得注意的是,上述的示例中的传感器数据的个数只是一种举例,在实际应用中并不以此为限制。It is worth noting that the number of sensor data in the above example is only an example, and is not limited in practical applications.
在步骤S1023中,控制智能家居设备使用平均值对自身运行进行控制。In step S1023, the smart home device is controlled to use the average value to control its own operation.
本公开的实施例提供的技术方案可以包括以下有益效果:在获取到多个传感器数据的平均值后,控制智能家居设备使用该平均值作为对自身运行进行控制的指导数据,从而使得智能家居设备的运行更为精确。The technical solutions provided by the embodiments of the present disclosure may include the following beneficial effects: after acquiring the average value of multiple sensor data, the smart home device is controlled to use the average value as guidance data for controlling its own operation, so that the smart home device can operation is more precise.
在一个实施例中,如图3所示,上述方法还包括以下步骤S103-S105:In one embodiment, as shown in FIG. 3, the above method further includes the following steps S103-S105:
在步骤S103中,检测分体式传感器获取到的传感器数据的值与智能家居设备的设定目标数值之间的差值是否大于第二预设阈值,在检测到分体式传感器获取到的传感器数据的值与智能家居设备的设定目标数值之间的差值大于第二预设阈值时,执行步骤S104;在检测到分体式传感器获取到的传感器数据的值与智能家居设备的设定目标数值之间的差值小于或等于第二预设阈值时,执行步骤S105;In step S103, it is detected whether the difference between the value of the sensor data obtained by the split sensor and the set target value of the smart home device is greater than a second preset threshold, and when the sensor data obtained by the split sensor is detected When the difference between the value and the set target value of the smart home equipment is greater than the second preset threshold, step S104 is performed; after detecting the difference between the value of the sensor data obtained by the split sensor and the set target value of the smart home equipment When the difference between the two is less than or equal to the second preset threshold, step S105 is performed;
在步骤S104中,向智能家居设备发送修正消息,该修正消息用于指示智能家居设备使用修正数值对自身运行进行控制,其中,修正数值通过设定目标数值与第二预设阈值确定。In step S104, a correction message is sent to the smart home device, the correction message is used to instruct the smart home device to use the correction value to control its own operation, wherein the correction value is determined by setting the target value and the second preset threshold.
在步骤S105中,控制智能家居设备使用分体式传感器获取到的传感器数据对自身运行进行控制。In step S105, the smart home device is controlled to use the sensor data obtained by the split sensor to control its own operation.
在检测到分体式传感器获取到的传感器数据的值与智能家居设备的设定目标数值之间的差值小于或等于第二预设阈值时,该传感器数据不会对智能家居设备的正常运行造成干扰,而在检测到分体式传感器获取到的传感器数据的值与智能家居设备的设定目标数值之间的差值大于第二预设阈值时,此时,传感器数据就会对智能家居设备的正常运行造成干扰,造成智能家具设备工作异常,此时,就需要对传感器数据进行修正,进而将修正后的传感器数据发送给智能家居设备,从而保证空调的正常运行。When it is detected that the difference between the value of the sensor data obtained by the split sensor and the set target value of the smart home device is less than or equal to the second preset threshold, the sensor data will not affect the normal operation of the smart home device. When it is detected that the difference between the value of the sensor data obtained by the split sensor and the set target value of the smart home device is greater than the second preset threshold, the sensor data will affect the smart home device. The normal operation causes interference and causes the smart furniture equipment to work abnormally. At this time, the sensor data needs to be corrected, and then the corrected sensor data is sent to the smart home equipment to ensure the normal operation of the air conditioner.
示例的,可以通过设定目标数值与第二预设阈值确定修正数值,例如:将设定目标数值和第二预设阈值的和作为修正数值,或者,将设定目标数值与第二预设阈值的差作为修正数值。Exemplarily, the correction value can be determined by setting the target value and the second preset threshold, for example: the sum of the set target value and the second preset threshold is used as the correction value, or, the set target value and the second preset The difference between the thresholds is used as a correction value.
其中,第二预设阈值可以预设,也可以通过人机交互界面让用户自己设置,本公开不对第二预设阈值的设置方法和第二预设阈值的具体数值加以限制。The second preset threshold may be preset or set by the user through a human-computer interaction interface. The present disclosure does not limit the setting method of the second preset threshold and the specific value of the second preset threshold.
继续以智能家居设备为空调为例进行说明,如果分体式传感器获取到的室内温度值与空调设定的目标温度值之间的温差过大,会导致空调工作异常。Continue to take the smart home device as an air conditioner as an example. If the temperature difference between the indoor temperature value obtained by the split sensor and the target temperature value set by the air conditioner is too large, the air conditioner will work abnormally.
例如:分体式传感器获取到的室内温度值与空调设定的目标温度值之间的温差大于第二预设阈值5℃时,会导致空调工作异常。制冷的时候,分体式传感器获取到的室内温度值为32℃,空调设定的目标温度值为26℃,当空调接收到分体式传感器获取到的室内温度值为32℃时,确定室内温度值与目标温度值之间的差值为6℃,就会导致空调工作异常。For example, when the temperature difference between the indoor temperature value obtained by the split sensor and the target temperature value set by the air conditioner is greater than the second preset threshold of 5°C, the air conditioner will work abnormally. When cooling, the indoor temperature value obtained by the split sensor is 32°C, and the target temperature value set by the air conditioner is 26°C. When the air conditioner receives the indoor temperature value obtained by the split sensor is 32°C, the indoor temperature value is determined. A difference of 6°C from the target temperature value will cause the air conditioner to work abnormally.
此时就需要修正分体式传感器获取到的室内温度值,当空调处于制冷模式时,将设定目标数值26℃和第二预设阈值5℃的和作为修正数值,也即,此时修正数值为31℃。而当空调处于制热模式时,将设定目标数值和第二预设阈值的差值作为修正数值。At this time, it is necessary to correct the indoor temperature value obtained by the split sensor. When the air conditioner is in the cooling mode, the sum of the set target value of 26°C and the second preset threshold of 5°C is used as the correction value, that is, the correction value at this time. is 31°C. When the air conditioner is in the heating mode, the difference between the set target value and the second preset threshold is used as the correction value.
本公开的实施例提供的技术方案可以包括以下有益效果:通过修正分体式传感器获取到的传感器数据,可以避免智能家居设备异常工作,有效提升了智能家居设备工作的安全性。The technical solutions provided by the embodiments of the present disclosure may include the following beneficial effects: by correcting the sensor data obtained by the split sensor, abnormal operation of the smart home equipment can be avoided, and the work safety of the smart home equipment can be effectively improved.
在一个实施例中,如图4所示,上述的方法还包括以下步骤S106-步骤S109:In one embodiment, as shown in FIG. 4 , the above method further includes the following steps S106-S109:
在步骤S106中,确定分体式传感器获取到的传感器数据的值与智能家居设备的设定目标数值之间的第一差值。In step S106, a first difference between the value of the sensor data obtained by the split sensor and the set target value of the smart home device is determined.
在步骤S107中,获取智能家居设备的设定目标数值与第一差值之间的第二差值。In step S107, a second difference between the set target value of the smart home device and the first difference is obtained.
智能家居设备如果要将分体式传感器所在位置的传感器数据的值调整为智能家居设备的设定目标数值,此时,获取到的第二差值便是智能家居设备的设定目标数值变更后的数值,当智能家居设备将设定目标数值变更为第二差值后,才可能使得分体式传感器所在位置的传感器数据的值调整为智能家居设备的之前设定目标数值。If the smart home device needs to adjust the value of the sensor data at the location of the split sensor to the set target value of the smart home device, at this time, the obtained second difference is the set target value of the smart home device after the change. When the smart home device changes the set target value to the second difference value, it is possible to adjust the value of the sensor data at the location of the split sensor to the previously set target value of the smart home device.
在步骤S108中,若第二差值小于第三预设阈值,则将设定目标数值变更为第三预设阈值。In step S108, if the second difference is smaller than the third preset threshold, the set target value is changed to the third preset threshold.
当上述的第二差值不在智能家居设备的工作范围内时,将设定目标数值变更为智能家居设备的工作范围内的极限值。When the above-mentioned second difference is not within the working range of the smart home device, the set target value is changed to a limit value within the working range of the smart home device.
在步骤S109中,若第二差值大于或等于第三预设阈值,则将设定目标数值变更为第二差值。In step S109, if the second difference is greater than or equal to the third preset threshold, the set target value is changed to the second difference.
当上述的第二差值在智能家居设备的工作范围内,那么,将设定目标数值变更为第二差值。When the above-mentioned second difference is within the working range of the smart home device, the set target value is changed to the second difference.
继续以智能家居设备为空调为例进行说明,假设空调处于制冷模式,空调的设定目标数值为18℃;当空调对室内进行制冷时,可能室内温度下降的速度并不相同,比如,当空调回风口附近的温度已经达到空调的设定目标数值18℃时,而离空调较远的位置的温度可能并没有达到空调的设定目标数值18℃,而是会高于18℃。如果分体式传感器位于离空调较远的位置,假设分体式传感器获取到的室内温度值为24℃,如果控制空调根据该24℃对自身运行进行控制,那么,为了使得分体式传感器所在的位置的室内温度也达到空调的设定目标数值18℃,由于24℃与18℃之间的温差为第一差值6℃,此时,空调需要将设定目标数值从18℃降低6℃变更为第二差值12℃,也即,空调需要将设定目标数值变更为12℃,才能保证分体式传感器所在的位置的室内温度变为18℃,但是,空调在制冷模式时的制冷极限温度为第三预设阈值16℃,很显然第二差值12℃远远低于第三预设阈值16℃,此时,有可能造成空调工作异常,那么,为了保证空调的正常运行,会将空调的设定目标数值变更为第三预设阈值16℃。Continue to take the smart home device as an air conditioner as an example. Assuming that the air conditioner is in cooling mode, the set target value of the air conditioner is 18°C; when the air conditioner cools the room, the speed of the indoor temperature drop may not be the same. When the temperature near the return air outlet has reached the set target value of the air conditioner of 18°C, the temperature at a location farther away from the air conditioner may not reach the set target value of the air conditioner of 18°C, but will be higher than 18°C. If the split-type sensor is located far away from the air conditioner, assuming that the indoor temperature value obtained by the split-type sensor is 24°C, and if the air conditioner controls its own operation according to the 24°C, then, in order to make the position where the split-type sensor is located, the temperature is 24°C. The indoor temperature also reaches the set target value of the air conditioner of 18°C. Since the temperature difference between 24°C and 18°C is the first difference of 6°C, at this time, the air conditioner needs to reduce the set target value from 18°C by 6°C to the first. The second difference is 12°C, that is, the air conditioner needs to change the set target value to 12°C to ensure that the indoor temperature where the split sensor is located becomes 18°C, but the cooling limit temperature of the air conditioner in the cooling mode is the first The three preset thresholds are 16°C. Obviously, the second difference of 12°C is far lower than the third preset threshold of 16°C. At this time, it may cause the air conditioner to work abnormally. Then, in order to ensure the normal operation of the air conditioner, the The set target value is changed to the third preset threshold value of 16°C.
上述的第三预设阈值可以预设,也可以用户设置,本公开不对第三预设阈值的设定方法和设定的具体数值加以限制。The above-mentioned third preset threshold may be preset or set by the user, and the present disclosure does not limit the setting method and specific value of the third preset threshold.
本公开的实施例提供的技术方案可以包括以下有益效果:通过修正智能家居设备的设定目标数值,可以避免智能家居设备异常工作,有效提升了智能家居设备工作的安全性。The technical solutions provided by the embodiments of the present disclosure may include the following beneficial effects: by correcting the set target value of the smart home device, abnormal operation of the smart home device can be avoided, and the work safety of the smart home device can be effectively improved.
在一个实施例中,如图5所示,上述方法还包括以下步骤S1010-S1011:In one embodiment, as shown in FIG. 5 , the above method further includes the following steps S1010-S1011:
在步骤S1010中,检测是否接收到退出指令。In step S1010, it is detected whether an exit instruction is received.
在步骤S1011中,在检测接收到退出指令后,控制智能家居设备忽略分体式传感器发送的传感器数据。In step S1011, after detecting and receiving the exit instruction, the smart home device is controlled to ignore the sensor data sent by the split sensor.
其中,退出指令包括以下指令A-F中的至少一条:Wherein, the exit instruction includes at least one of the following instructions A-F:
A、指示关闭智能家居设备的指令。A. Instructions to turn off smart home devices.
此指令可以为用户通过人机交互的方式关闭智能家居设备,也可以为智能家居设备到达了运行设定的时间而主动关闭。This instruction can turn off the smart home device for the user through human-computer interaction, or automatically turn off the smart home device when it reaches the set time for running.
B、指示切换智能家居设备的运行模式的指令。B. An instruction instructing to switch the operation mode of the smart home device.
此指令用于指示智能家居设备的运行模式被变更。This command is used to indicate that the operating mode of the smart home device is changed.
C、指示在预设时间内未接收到分体式传感器发送的传感器数据的指令。C. An instruction indicating that the sensor data sent by the split sensor is not received within a preset time.
当分体式传感器损坏或者电池电量耗尽时,分体式传感器有可能不会继续采集传感器数据,与此同时,智能家居设备也就无法接收到分体式传感器采集的传感器数据,因此当预设时间内未接收到分体式传感器发送的传感器数据后,就需要控制智能家居设备忽略分体式传感器发送的传感器数据,从而避免智能家居设备一直等待分体式传感器的传感器数据,而造成智能家居设备工作异常。When the split-type sensor is damaged or the battery is exhausted, the split-type sensor may not continue to collect sensor data. At the same time, the smart home device cannot receive the sensor data collected by the split-type sensor. After receiving the sensor data sent by the split sensor, it is necessary to control the smart home device to ignore the sensor data sent by the split sensor, so as to prevent the smart home device from waiting for the sensor data of the split sensor, causing the smart home device to work abnormally.
D、指示禁止使用分体式传感器的指令。D. Instructions prohibiting the use of split sensors.
E、指示智能家居设备发生故障。E. Indicates that the smart home equipment is malfunctioning.
F、指示通过分体式传感器的定位信息确定分体式传感器处于第二指示状态。F. Instructing that the split-type sensor is in the second indication state according to the positioning information of the split-type sensor.
也即,退出指令可以为指令A-F的任意组合,而当退出指令包括至少两条指令时,在检测是否接收到退出指令的过程中,不对检测指令的顺序加以限制。以退出指令包括A和B为例,此时的退出指令为:指示关闭所述智能家居设备的指令和指示切换所述智能家居设备的运行模式的指令,那么在检测是否接收到退出指令的过程中,可以先检测是否接收到指示关闭所述智能家居设备的指令,然后检测是否接收到指示切换所述智能家居设备的运行模式的指令;也可以先检测是否接收到指示切换所述智能家居设备的运行模式的指令,然后检测是否接收到指示切换所述智能家居设备的运行模式的指令。That is, the exit instruction can be any combination of instructions A-F, and when the exit instruction includes at least two instructions, in the process of detecting whether the exit instruction is received, the order of the detection instructions is not limited. Taking the exit instruction including A and B as an example, the exit instruction at this time is: an instruction instructing to close the smart home equipment and an instruction to switch the operation mode of the smart home equipment, then in the process of detecting whether an exit instruction is received , you can first detect whether an instruction instructing to turn off the smart home device is received, and then detect whether an instruction instructing to switch the operating mode of the smart home device is received; you can also first detect whether you receive an instruction to switch the smart home device. and then detect whether an instruction instructing to switch the operation mode of the smart home device is received.
本公开的实施例提供的技术方案可以包括以下有益效果:当检测接收到退出指令后,控制智能家居设备忽略分体式传感器发送的传感器数据,从而可以提升智能家居设备工作的准确性。The technical solutions provided by the embodiments of the present disclosure may include the following beneficial effects: after detecting and receiving an exit instruction, the smart home device is controlled to ignore the sensor data sent by the split sensor, thereby improving the working accuracy of the smart home device.
示例的,可以在预设位置放置一固定装置,该固定装置用于固定分体式传感器,此时,分体式传感器的定位信息即为:分体式传感器被固定在设置于预设位置的固定装置,或,分体式传感器与固定在预设位置的固定装置脱离。For example, a fixing device may be placed at a preset position, and the fixing device is used to fix the split-type sensor. At this time, the positioning information of the split-type sensor is: the split-type sensor is fixed on the fixing device set at the preset position, Or, the split sensor is disengaged from the fixing device fixed in the preset position.
在一个实施例中,当分体式传感器被固定在设置于预设位置的固定装置时,则确定分体式传感器处于第一指示状态。In one embodiment, when the split-type sensor is fixed on the fixing device provided at the preset position, it is determined that the split-type sensor is in the first indication state.
示例的,当分体式传感器可以正常使用时,控制智能家居设备可以使用分体式传感器采集到的传感器数据对智能家居设备的运行进行控制,那么就可以将分体式传感器固定在该固定装置上,而当分体式传感器被固定在该固定装置上时,分体式传感器对应的控制开关便被打开了,此时便确定分体式传感器处于第一指示状态,进而控制智能家居设备使用所述分体式传感器发送的传感器数据对自身运行进行控制。For example, when the split sensor can be used normally, the control smart home device can use the sensor data collected by the split sensor to control the operation of the smart home device, then the split sensor can be fixed on the fixture, and when the split sensor is used When the integrated sensor is fixed on the fixture, the control switch corresponding to the split sensor is turned on. At this time, it is determined that the split sensor is in the first indication state, and then the smart home device is controlled to use the sensor sent by the split sensor. Data controls its own operation.
本公开的实施例提供的技术方案可以包括以下有益效果:当分体式传感器被固定在设置于预设位置的固定装置时,打开分体式传感器对应的控制开关,从而确定分体式传感器处于第一指示状态,此时便控制智能家居设备使用所述分体式传感器发送的传感器数据对自身运行进行控制,从而使得智能家居设备对自身的控制更加的准确。The technical solutions provided by the embodiments of the present disclosure may include the following beneficial effects: when the split-type sensor is fixed on the fixing device set at the preset position, the control switch corresponding to the split-type sensor is turned on, so as to determine that the split-type sensor is in the first indication state At this time, the smart home device is controlled to use the sensor data sent by the split sensor to control its own operation, so that the smart home device can control itself more accurately.
在另一个实施例中,当分体式传感器与设置于预设位置的固定装置脱离时,则确定分体式传感器处于第二指示状态。In another embodiment, when the split-type sensor is disengaged from the fixing device disposed at the preset position, it is determined that the split-type sensor is in the second indication state.
示例的,可以将分体式传感器与该固定装置脱离,而当分体式传感器与该固定装置脱离时,分体式传感器对应的控制开关便被关闭了,此时便确定分体式传感器处于第二指示状态。For example, the split-type sensor can be detached from the fixing device, and when the split-type sensor is detached from the fixing device, the control switch corresponding to the split-type sensor is turned off, and at this time, it is determined that the split-type sensor is in the second indication state.
本公开的实施例提供的技术方案可以包括以下有益效果:当分体式传感器与设置于预设位置的固定装置脱离时,关闭分体式传感器对应的控制开关,从而确定分体式传感器处于第二指示状态,从而使得智能家居设备对自身的控制更加的准确。The technical solutions provided by the embodiments of the present disclosure may include the following beneficial effects: when the split-type sensor is detached from the fixing device disposed at the preset position, the control switch corresponding to the split-type sensor is turned off, thereby determining that the split-type sensor is in the second indication state, Thus, the smart home device can control itself more accurately.
上述各个实施例中的预设位置可以根据分体式传感器与智能家居设备之间进行数据传输所需的距离设定,也可以根据用户的喜好设定,本公开不对固定装置的预设位置加以限制。The preset position in each of the above embodiments can be set according to the distance required for data transmission between the split sensor and the smart home device, or according to the user's preference, and the present disclosure does not limit the preset position of the fixed device .
在一种可实现方式中,上述各个实施例中的固定装置可以为磁性固定装置,例如:磁铁;此时上述各个实施例中的控制开关可以为霍尔开关。In an implementation manner, the fixing device in each of the foregoing embodiments may be a magnetic fixing device, such as a magnet; in this case, the control switch in each of the foregoing embodiments may be a Hall switch.
例如:当分体式传感器被固定在磁铁上时,分体式传感器对应的霍尔开关便被打开了,此时便确定分体式传感器处于第一指示状态。For example, when the split-type sensor is fixed on the magnet, the Hall switch corresponding to the split-type sensor is turned on, and at this time, it is determined that the split-type sensor is in the first indication state.
又例如:当分体式传感器脱离磁铁时,分体式传感器对应的霍尔开关便被关闭了,此时便确定分体式传感器处于第二指示状态。Another example: when the split-type sensor is separated from the magnet, the Hall switch corresponding to the split-type sensor is turned off, and at this time, it is determined that the split-type sensor is in the second indication state.
本公开的实施例提供的技术方案可以包括以下有益效果:通过磁性固定装置和霍尔开关的配合,使得智能家居设备对自身的控制更加的准确。The technical solutions provided by the embodiments of the present disclosure may include the following beneficial effects: through the cooperation of the magnetic fixing device and the Hall switch, the smart home device can control itself more accurately.
值得注意的是,上述的磁性固定装置以及霍尔开关仅仅是对固定装置和控制开关的一种举例,在实际应用中并不局限于此。It is worth noting that the above-mentioned magnetic fixing device and Hall switch are only examples of the fixing device and the control switch, and are not limited to this in practical applications.
在一个实施例中,还需要将分体式传感器与智能家居设备进行绑定。In one embodiment, it is also necessary to bind the split sensor with the smart home device.
示例的,可以通过蓝牙的方式将分体式传感器与智能家居设备进行绑定,也可以通过无线保真(Wireless Fidelity,简称为:wifi)的方式绑定。For example, the split sensor can be bound to the smart home device by means of Bluetooth, or can be bound by means of wireless fidelity (Wireless Fidelity, wifi for short).
图6是根据一示例性实施例示出的传感器数据获取装置的示意图,如图3所示,该传感器数据获取装置200包括:分体式传感器201和磁铁202,其中磁铁202通过墙贴203固定在墙壁上,而分体式传感器201面对固定装置的一面设备有霍尔开关。FIG. 6 is a schematic diagram of a sensor data acquisition device according to an exemplary embodiment. As shown in FIG. 3 , the sensor
在使用时,首先将墙贴203贴在墙上,然后将分体式传感器201固定在固定装置上(例如:通过吸附在磁铁202上),此时分体式传感器201上设置的霍尔开关受到磁铁的作用而打开,在霍尔开关受到磁铁的作用而打开时,便确定分体式传感器201处于第一指示状态。When in use, first stick the
而当将分体式传感器201从磁铁202上脱离时,此时分体式传感器201上设置的霍尔开关关闭,在霍尔开关受到磁铁的作用而关闭时,便确定分体式传感器201处于第二指示状态。When the
图7是根据一示例性实施例一示出的本公开方法的应用场景示意图,如图7所示,该应用场景中的智能家居设备为空调,该分体式传感器为温度传感器,该应用场景中包括:空调301和传感器数据获取装置302;其中,传感器数据获取装置302包括温度传感器3021和固定装置3022,温度传感器靠近固定装置3022的一侧设置一霍尔开关;固定装置3022设置在墙壁上,且固定装置上设置一磁铁;空调301的回风口处也设置一温度传感器;在该应用场景中控制空调301使用温度传感器3021采集到的温度数据对空调301的输出温度进行控制。FIG. 7 is a schematic diagram of an application scenario of the method of the present disclosure according to an exemplary embodiment 1. As shown in FIG. 7 , the smart home device in this application scenario is an air conditioner, the split sensor is a temperature sensor, and in this application scenario Including: an
首先,将温度传感器3021通过蓝牙方式与空调301进行绑定,如果想要使用温度传感器3021采集到的温度数据对空调301的输出温度进行控制,则将温度传感器3021固定在固定装置3022上,由于固定装置3022上设置有磁铁,那么此时,温度传感器3021上设置的霍尔开关打开,在霍尔开关受到磁铁的作用而打开时,便确定温度传感器3021处于第一指示状态,则此时控制空调301使用温度传感器3021发送的温度数据对自身运行进行控制。First, bind the
在图7的基础上,图8是根据一示例性实施例二示出的本公开方法的应用场景示意图,在该应用场景中温度传感器异常3021,则此时需要控制空调301忽略温度传感器3021采集到的温度数据对空调301的输出温度进行控制。On the basis of FIG. 7 , FIG. 8 is a schematic diagram of an application scenario of the method of the present disclosure according to an exemplary embodiment 2. In this application scenario, the
此时,便可以将温度传感器3021与固定装置3022脱离,由于固定装置3022上设置有磁铁,那么此时,温度传感器3021上设置的霍尔开关关闭,在霍尔开关受到磁铁的作用而关闭时,便确定温度传感器3021处于第二指示状态,则此时控制空调301忽略温度传感器3021采集到的温度数据,而使用空调301的回风口处设置的温度传感器获取到的温度数据对输出温度进行控制。At this time, the
通过以下实施例介绍智能家居设备的控制方法:The control method of smart home equipment is introduced through the following embodiments:
首先检测是否满足以下条件:First check whether the following conditions are met:
1、当空调处于制冷模式时,回风口温度小于等于第一预设温度值,或者当空调处于制热模式时,回风口温度大于等于第二预设温度值;1. When the air conditioner is in the cooling mode, the temperature of the return air outlet is less than or equal to the first preset temperature value, or when the air conditioner is in the heating mode, the temperature of the return air outlet is greater than or equal to the second preset temperature value;
例如,第二预设温度值可以为空调的目标温度值加3度。For example, the second preset temperature value may be the target temperature value of the air conditioner plus 3 degrees.
2、检测到空调处于稳定运行状态。2. It is detected that the air conditioner is in a stable operation state.
例如:空调的压缩机频率连续3分钟没有变化;以及空调的当前状态没有发生故障或者保护。For example: the compressor frequency of the air conditioner does not change for 3 consecutive minutes; and the current state of the air conditioner is not faulty or protected.
3、检测接收到指示指令,该指示指令为用户输入的指示启用分体式传感器的指令。3. Detecting that an instruction instruction is received, the instruction instruction is an instruction entered by the user to instruct to activate the split sensor.
此时,用户设置启用分体传感器。At this point, the user settings enable the split sensor.
5、分体式传感器处于第一指示状态。5. The split sensor is in the first indication state.
6、当空调处于制冷模式时,分体式传感器获取到的传感器数据的值与空调的设定目标数值之间的差值大于第一预设阈值;或者当空调处于制热模式时,分体式传感器获取到的传感器数据的值与空调的设定目标数值之间的差值小于第一预设阈值。6. When the air conditioner is in the cooling mode, the difference between the value of the sensor data obtained by the split sensor and the set target value of the air conditioner is greater than the first preset threshold; or when the air conditioner is in the heating mode, the split sensor The difference between the acquired sensor data value and the set target value of the air conditioner is smaller than the first preset threshold.
第一预设阈值可以预设,例如:第一预设阈值为2℃。The first preset threshold may be preset, for example, the first preset threshold is 2°C.
当检测的满足上述的1-5所示的条件后,继续检测条件6,如果不满足条件6,则控制空调不使用分体式传感器发送的传感器数据对空调运行进行控制;如果满足条件6,则控制空调使用分体式传感器发送的传感器数据对空调运行进行控制。When the detected conditions shown in 1-5 above are met, continue to detect condition 6. If condition 6 is not met, control the air conditioner without using the sensor data sent by the split sensor to control the operation of the air conditioner; if condition 6 is met, then Controlling the air conditioner uses the sensor data sent by the remote sensor to control the operation of the air conditioner.
下述为本公开装置实施例,可以用于执行本公开方法实施例。The following are the apparatus embodiments of the present disclosure, which can be used to execute the method embodiments of the present disclosure.
图9是根据一示例性实施例一示出的智能家居设备的控制装置的框图。如图9所示,该智能家居设备的控制装置包括:Fig. 9 is a block diagram of a control apparatus of a smart home device according to an exemplary embodiment 1. As shown in Figure 9, the control device of the smart home equipment includes:
第一确定模块11,用于通过所述分体式传感器的定位信息确定所述分体式传感器是否处于第一指示状态;a first determination module 11, configured to determine whether the split sensor is in a first indication state through the positioning information of the split sensor;
第一控制模块12,用于当所述第一确定模块11确定所述分体式传感器处于第一指示状态时,控制智能家居设备使用所述分体式传感器发送的传感器数据对自身运行进行控制。The first control module 12 is configured to control the smart home device to use the sensor data sent by the split sensor to control its own operation when the first determination module 11 determines that the split sensor is in the first indication state.
在一个实施例中,如图10所示,所述第一控制模块12包括:检测子模块121和第一控制子模块122;In one embodiment, as shown in FIG. 10 , the first control module 12 includes: a detection sub-module 121 and a first control sub-module 122;
所述检测子模块121,用于检测是否满足预设条件;The detection sub-module 121 is used to detect whether a preset condition is met;
所述第一控制子模块122,用于在所述检测子模块121检测到满足预设条件,且所述分体式传感器处于第一指示状态时,控制所述智能家居设备使用所述分体式传感器发送的传感器数据对自身运行进行控制;The first control sub-module 122 is configured to control the smart home device to use the split-type sensor when the detection sub-module 121 detects that a preset condition is met and the split-type sensor is in the first indication state Send sensor data to control its own operation;
其中,所述检测到满足预设条件包括以下条件中的至少一条:Wherein, the detecting that the preset condition is met includes at least one of the following conditions:
检测到所述分体式传感器获取到的传感器数据的值与所述智能家居设备的设定目标数值之间的差值大于所述第一预设阈值;It is detected that the difference between the value of the sensor data obtained by the split sensor and the set target value of the smart home device is greater than the first preset threshold;
检测到所述智能家居设备处于稳定运行状态;It is detected that the smart home device is in a stable operation state;
检测接收到指示指令,所述指示指令为用户输入的指示启用所述分体式传感器的指令。It is detected that an instruction instruction is received, and the instruction instruction is an instruction entered by a user to instruct to activate the split sensor.
在一个实施例中,如图11所示,所述第一控制模块12包括:获取子模块123、确定子模块124和第二控制子模块125;In one embodiment, as shown in FIG. 11 , the first control module 12 includes: an acquisition sub-module 123, a determination sub-module 124 and a second control sub-module 125;
所述获取子模块123,用于获取所述分体式传感器发送的多个传感器数据;The acquisition sub-module 123 is configured to acquire multiple sensor data sent by the split sensor;
所述确定子模块124,用于确定所述获取子模块123获取的所述多个传感器数据的平均值;the determining sub-module 124 is configured to determine the average value of the plurality of sensor data acquired by the acquiring sub-module 123;
所述第二控制子模块125,用于控制所述智能家居设备使用所述确定子模块124确定的所述平均值对自身运行进行控制。The second control sub-module 125 is configured to control the smart home device to use the average value determined by the determination sub-module 124 to control its own operation.
在一个实施例中,如图12所示,所述装置还包括:第一检测模块13和发送模块14;In one embodiment, as shown in FIG. 12 , the apparatus further includes: a first detection module 13 and a transmission module 14;
所述第一检测模块13,用于检测所述分体式传感器获取到的传感器数据的值与所述智能家居设备的设定目标数值之间的差值是否大于第二预设阈值;The first detection module 13 is used to detect whether the difference between the value of the sensor data obtained by the split sensor and the set target value of the smart home device is greater than a second preset threshold;
所述发送模块14,用于在所述第一检测模块13检测到所述分体式传感器获取到的传感器数据的值与所述智能家居设备的设定目标数值之间的差值大于所述第二预设阈值时,向所述智能家居设备发送修正消息,所述修正消息用于指示所述智能家居设备使用修正数值对自身运行进行控制,其中,所述修正数值通过所述设定目标数值与所述第二预设阈值确定。The sending module 14 is used to detect that the first detection module 13 detects that the difference between the value of the sensor data obtained by the split sensor and the set target value of the smart home device is greater than the first value. When there are two preset thresholds, a correction message is sent to the smart home device, and the correction message is used to instruct the smart home device to use the correction value to control its own operation, wherein the correction value is determined by the set target value. determined with the second preset threshold.
在一个实施例中,如图13所示,所述装置还包括:第二确定模块15、第二获取模块16、判断模块17、第一变更模块18和第二变更模块19;In one embodiment, as shown in FIG. 13 , the apparatus further includes: a second determination module 15 , a second acquisition module 16 , a judgment module 17 , a first change module 18 and a second change module 19 ;
所述第二确定模块15,用于确定所述分体式传感器获取到的传感器数据的值与所述智能家居设备的设定目标数值之间的第一差值;The second determination module 15 is used to determine the first difference between the value of the sensor data obtained by the split sensor and the set target value of the smart home device;
所述第二获取模块16,用于获取所述智能家居设备的设定目标数值与所述第二确定模块15确定的所述第一差值之间的第二差值;The second acquisition module 16 is configured to acquire the second difference between the set target value of the smart home device and the first difference determined by the second determination module 15;
所述判断模块17,用于判断所述第二获取模块16获取的所述第二差值是否小于第三预设阈值;The judging module 17 is configured to judge whether the second difference obtained by the second obtaining module 16 is less than a third preset threshold;
所述第一变更模块18,用于当所述判断模块17判断所述第二差值小于第三预设阈值时,将所述设定目标数值变更为所述第三预设阈值;The first change module 18 is configured to change the set target value to the third preset threshold when the judgment module 17 judges that the second difference is smaller than the third preset threshold;
所述第二变更模块19,用于当所述判断模块17判断所述第二差值大于或等于所述第三预设阈值时,将所述设定目标数值变更为所述第二差值。The second change module 19 is configured to change the set target value to the second difference when the judgment module 17 judges that the second difference is greater than or equal to the third preset threshold .
在一个实施例中,如图14所示,所述装置还包括:第二检测模块110和第二控制模块111;In one embodiment, as shown in FIG. 14 , the apparatus further includes: a second detection module 110 and a second control module 111;
所述第二检测模块110,用于检测是否接收到退出指令;The second detection module 110 is used to detect whether an exit instruction is received;
所述第二控制模块111,用于在所述第二检测模块110检测接收到所述退出指令后,控制所述智能家居设备忽略所述分体式传感器发送的传感器数据;The second control module 111 is configured to control the smart home device to ignore the sensor data sent by the split sensor after the second detection module 110 detects and receives the exit instruction;
其中,所述退出指令包括以下指令中的至少一条:Wherein, the exit instruction includes at least one of the following instructions:
指示关闭所述智能家居设备的指令;an instruction to turn off said smart home device;
指示切换所述智能家居设备的运行模式的指令;an instruction instructing to switch the operating mode of the smart home device;
指示在预设时间内未接收到所述分体式传感器发送的传感器数据的指令;an instruction indicating that the sensor data sent by the split sensor has not been received within a preset time;
指示禁止使用所述分体式传感器的指令;an instruction to prohibit the use of said remote sensor;
指示所述智能家居设备发生故障;indicating that the smart home device is malfunctioning;
指示通过所述分体式传感器的定位信息确定所述分体式传感器处于第二指示状态。It is indicated that the split-type sensor is in a second indication state according to the positioning information of the split-type sensor.
在一个实施例中,如图15所示,所述第一确定模块11包括:第一确定子模块11a;In one embodiment, as shown in FIG. 15 , the first determination module 11 includes: a first determination sub-module 11a;
所述第一确定子模块11a,用于在所述分体式传感器被固定在设置于预设位置的固定装置时,打开所述分体式传感器对应的控制开关,在所述控制开关处于打开状态时确定所述分体式传感器处于所述第一指示状态。The first determination sub-module 11a is used to turn on the control switch corresponding to the split sensor when the split sensor is fixed on the fixing device set at the preset position, and when the control switch is in the open state It is determined that the split sensor is in the first indication state.
在一个实施例中,所述通过所述分体式传感器的定位信息确定所述分体式传感器是否处于第二指示状态,包括:In one embodiment, the determining whether the split-type sensor is in the second indication state by using the positioning information of the split-type sensor includes:
在所述分体式传感器与设置于预设位置的固定装置脱离时,关闭所述分体式传感器对应的控制开关,在所述控制开关处于关闭状态时确定所述分体式传感器处于所述第二指示状态。When the split-type sensor is detached from the fixing device set at the preset position, the control switch corresponding to the split-type sensor is turned off, and when the control switch is in the off state, it is determined that the split-type sensor is in the second indication state.
在一个实施例中,所述固定装置为磁性固定装置,所述控制开关为霍尔开关。In one embodiment, the fixing device is a magnetic fixing device, and the control switch is a Hall switch.
根据本公开实施例的第三方面,提供一种智能家居设备的控制装置,包括:According to a third aspect of the embodiments of the present disclosure, a control device for a smart home device is provided, including:
处理器;processor;
用于存储处理器可执行指令的存储器;memory for storing processor-executable instructions;
其中,所述处理器被配置为:wherein the processor is configured to:
通过所述分体式传感器的定位信息确定所述分体式传感器是否处于第一指示状态;Determine whether the split-type sensor is in the first indication state according to the positioning information of the split-type sensor;
当所述分体式传感器处于第一指示状态时,控制智能家居设备使用所述分体式传感器发送的传感器数据对自身运行进行控制。When the split-type sensor is in the first indication state, the smart home device is controlled to use the sensor data sent by the split-type sensor to control its own operation.
上述处理器还可被配置为:The above processor can also be configured to:
所述当所述分体式传感器处于第一指示状态时,控制智能家居设备使用所述分体式传感器发送的传感器数据对自身运行进行控制,包括:When the split-type sensor is in the first indication state, controlling the smart home device to use the sensor data sent by the split-type sensor to control its own operation includes:
在检测到满足预设条件,且所述分体式传感器处于第一指示状态时,控制所述智能家居设备使用所述分体式传感器发送的传感器数据对自身运行进行控制;When it is detected that the preset condition is met and the split sensor is in the first indication state, controlling the smart home device to use the sensor data sent by the split sensor to control its own operation;
其中,所述检测到满足预设条件包括以下条件中的至少一条:Wherein, the detecting that the preset condition is met includes at least one of the following conditions:
检测到所述分体式传感器获取到的传感器数据的值与所述智能家居设备的设定目标数值之间的差值大于所述第一预设阈值;It is detected that the difference between the value of the sensor data obtained by the split sensor and the set target value of the smart home device is greater than the first preset threshold;
检测到所述智能家居设备处于稳定运行状态;It is detected that the smart home device is in a stable operation state;
检测接收到指示指令,所述指示指令为用户输入的指示启用所述分体式传感器的指令。It is detected that an instruction instruction is received, and the instruction instruction is an instruction entered by a user to instruct to activate the split sensor.
所述当所述分体式传感器处于第一指示状态时,控制智能家居设备使用所述分体式传感器发送的传感器数据对自身运行进行控制,包括:When the split-type sensor is in the first indication state, controlling the smart home device to use the sensor data sent by the split-type sensor to control its own operation includes:
获取所述分体式传感器发送的多个传感器数据;acquiring multiple sensor data sent by the split sensor;
确定所述多个传感器数据的平均值;determining an average value of the plurality of sensor data;
控制所述智能家居设备使用所述平均值对自身运行进行控制。The smart home device is controlled to use the average to control its own operation.
所述方法还包括:The method also includes:
检测所述分体式传感器获取到的传感器数据的值与所述智能家居设备的设定目标数值之间的差值是否大于第二预设阈值;Detecting whether the difference between the value of the sensor data obtained by the split sensor and the set target value of the smart home device is greater than a second preset threshold;
在检测到所述分体式传感器获取到的传感器数据的值与所述智能家居设备的设定目标数值之间的差值大于所述第二预设阈值时,向所述智能家居设备发送修正消息,所述修正消息用于指示所述智能家居设备使用修正数值对自身运行进行控制,其中,所述修正数值通过所述设定目标数值与所述第二预设阈值确定。When it is detected that the difference between the value of the sensor data obtained by the split sensor and the set target value of the smart home device is greater than the second preset threshold, send a correction message to the smart home device , the correction message is used to instruct the smart home device to use a correction value to control its own operation, wherein the correction value is determined by the set target value and the second preset threshold.
所述方法还包括:The method also includes:
确定所述分体式传感器获取到的传感器数据的值与所述智能家居设备的设定目标数值之间的第一差值;determining the first difference between the value of the sensor data obtained by the split sensor and the set target value of the smart home device;
获取所述智能家居设备的设定目标数值与所述第一差值之间的第二差值;obtaining the second difference between the set target value of the smart home device and the first difference;
若所述第二差值小于第三预设阈值,则将所述设定目标数值变更为所述第三预设阈值;If the second difference is smaller than a third preset threshold, changing the set target value to the third preset threshold;
若所述第二差值大于或等于所述第三预设阈值,则将所述设定目标数值变更为所述第二差值。If the second difference is greater than or equal to the third preset threshold, the set target value is changed to the second difference.
所述方法还包括:The method also includes:
检测是否接收到退出指令;Detect whether an exit instruction is received;
在检测接收到所述退出指令后,控制所述智能家居设备忽略所述分体式传感器发送的传感器数据;After detecting and receiving the exit instruction, control the smart home device to ignore the sensor data sent by the split sensor;
其中,所述退出指令包括以下指令中的至少一条:Wherein, the exit instruction includes at least one of the following instructions:
指示关闭所述智能家居设备的指令;an instruction to turn off said smart home device;
指示切换所述智能家居设备的运行模式的指令;an instruction instructing to switch the operating mode of the smart home device;
指示在预设时间内未接收到所述分体式传感器发送的传感器数据的指令;an instruction indicating that the sensor data sent by the split sensor has not been received within a preset time;
指示禁止使用所述分体式传感器的指令;an instruction to prohibit the use of said remote sensor;
指示所述智能家居设备发生故障;indicating that the smart home device is malfunctioning;
指示通过所述分体式传感器的定位信息确定所述分体式传感器处于第二指示状态。It is indicated that the split-type sensor is in a second indication state according to the positioning information of the split-type sensor.
所述通过所述分体式传感器的定位信息确定所述分体式传感器是否处于第一指示状态,包括:The determining whether the split-type sensor is in the first indication state according to the positioning information of the split-type sensor includes:
在所述分体式传感器被固定在设置于预设位置的固定装置时,打开所述分体式传感器对应的控制开关,在所述控制开关处于打开状态时确定所述分体式传感器处于所述第一指示状态。When the split-type sensor is fixed on the fixing device set at the preset position, the control switch corresponding to the split-type sensor is turned on, and when the control switch is in an open state, it is determined that the split-type sensor is in the first Indicate status.
所述通过所述分体式传感器的定位信息确定所述分体式传感器是否处于第二指示状态,包括:The determining whether the split-type sensor is in the second indication state by using the positioning information of the split-type sensor includes:
在所述分体式传感器与设置于预设位置的固定装置脱离时,关闭所述分体式传感器对应的控制开关,在所述控制开关处于关闭状态时确定所述分体式传感器处于所述第二指示状态。When the split-type sensor is detached from the fixing device set at the preset position, the control switch corresponding to the split-type sensor is turned off, and when the control switch is in the off state, it is determined that the split-type sensor is in the second indication state.
所述固定装置为磁性固定装置,所述控制开关为霍尔开关。The fixing device is a magnetic fixing device, and the control switch is a Hall switch.
关于上述实施例中的装置,其中各个模块执行操作的具体方式已经在有关该方法的实施例中进行了详细描述,此处将不做详细阐述说明。Regarding the apparatus in the above-mentioned embodiment, the specific manner in which each module performs operations has been described in detail in the embodiment of the method, and will not be described in detail here.
图16是根据一示例性实施例示出的一种用于智能家居设备的控制装置80的框图。FIG. 16 is a block diagram of a
装置80可以包括以下一个或多个组件:处理组件802,存储器804,电源组件806,多媒体组件808,音频组件810,输入/输出(I/O)的接口812,传感器组件814,以及通信组件816。
处理组件802通常控制装置80的整体操作,诸如与显示,电话呼叫,数据通信,相机操作和记录操作相关联的操作。处理组件802可以包括一个或多个处理器820来执行指令,以完成上述的方法的全部或部分步骤。此外,处理组件802可以包括一个或多个模块,便于处理组件802和其他组件之间的交互。例如,处理组件802可以包括多媒体模块,以方便多媒体组件808和处理组件802之间的交互。The
存储器804被配置为存储各种类型的数据以支持在装置80的操作。这些数据的示例包括用于在装置80上操作的任何应用程序或方法的指令,联系人数据,电话簿数据,消息,图片,视频等。存储器804可以由任何类型的易失性或非易失性存储设备或者它们的组合实现,如静态随机存取存储器(SRAM),电可擦除可编程只读存储器(EEPROM),可擦除可编程只读存储器(EPROM),可编程只读存储器(PROM),只读存储器(ROM),磁存储器,快闪存储器,磁盘或光盘。
电源组件806为装置80的各种组件提供电力。电源组件806可以包括电源管理系统,一个或多个电源,及其他与为装置80生成、管理和分配电力相关联的组件。
多媒体组件808包括在所述装置80和用户之间的提供一个输出接口的屏幕。在一些实施例中,屏幕可以包括液晶显示器(LCD)和触摸面板(TP)。如果屏幕包括触摸面板,屏幕可以被实现为触摸屏,以接收来自用户的输入信号。触摸面板包括一个或多个触摸传感器以感测触摸、滑动和触摸面板上的手势。所述触摸传感器可以不仅感测触摸或滑动动作的边界,而且还检测与所述触摸或滑动操作相关的持续时间和压力。在一些实施例中,多媒体组件808包括一个前置摄像头和/或后置摄像头。当装置80处于操作模式,如拍摄模式或视频模式时,前置摄像头和/或后置摄像头可以接收外部的多媒体数据。每个前置摄像头和后置摄像头可以是一个固定的光学透镜系统或具有焦距和光学变焦能力。
音频组件810被配置为输出和/或输入音频信号。例如,音频组件810包括一个麦克风(MIC),当装置80处于操作模式,如呼叫模式、记录模式和语音识别模式时,麦克风被配置为接收外部音频信号。所接收的音频信号可以被进一步存储在存储器804或经由通信组件816发送。在一些实施例中,音频组件810还包括一个扬声器,用于输出音频信号。
I/O接口812为处理组件802和外围接口模块之间提供接口,上述外围接口模块可以是键盘,点击轮,按钮等。这些按钮可包括但不限于:主页按钮、音量按钮、启动按钮和锁定按钮。The I/
传感器组件814包括一个或多个传感器,用于为装置80提供各个方面的状态评估。例如,传感器组件814可以检测到装置80的打开/关闭状态,组件的相对定位,例如所述组件为装置80的显示器和小键盘,传感器组件814还可以检测装置80或装置80一个组件的位置改变,用户与装置80接触的存在或不存在,装置80方位或加速/减速和装置80的温度变化。传感器组件814可以包括接近传感器,被配置用来在没有任何的物理接触时检测附近物体的存在。传感器组件814还可以包括光传感器,如CMOS或CCD图像传感器,用于在成像应用中使用。在一些实施例中,该传感器组件814还可以包括加速度传感器,陀螺仪传感器,磁传感器,压力传感器或温度传感器。
通信组件816被配置为便于装置80和其他设备之间有线或无线方式的通信。装置80可以接入基于通信标准的无线网络,如WiFi,2G或3G,或它们的组合。在一个示例性实施例中,通信组件816经由广播信道接收来自外部广播管理系统的广播信号或广播相关信息。在一个示例性实施例中,所述通信组件816还包括近场通信(NFC)模块,以促进短程通信。例如,在NFC模块可基于射频识别(RFID)技术,红外数据协会(IrDA)技术,超宽带(UWB)技术,蓝牙(BT)技术和其他技术来实现。
在示例性实施例中,装置80可以被一个或多个应用专用集成电路(ASIC)、数字信号处理器(DSP)、数字信号处理设备(DSPD)、可编程逻辑器件(PLD)、现场可编程门阵列(FPGA)、控制器、微控制器、微处理器或其他电子组件实现,用于执行上述方法。In an exemplary embodiment,
在示例性实施例中,还提供了一种包括指令的非临时性计算机可读存储介质,例如包括指令的存储器804,上述指令可由装置80的处理器820执行以完成上述方法。例如,所述非临时性计算机可读存储介质可以是ROM、随机存取存储器(RAM)、CD-ROM、磁带、软盘和光数据存储设备等。In an exemplary embodiment, there is also provided a non-transitory computer-readable storage medium including instructions, such as
一种非临时性计算机可读存储介质,当所述存储介质中的指令由装置80的处理器执行时,使得装置80能够执行上述智能家居设备的控制方法,所述方法包括:A non-transitory computer-readable storage medium, when the instructions in the storage medium are executed by the processor of the
通过所述分体式传感器的定位信息确定所述分体式传感器是否处于第一指示状态;Determine whether the split-type sensor is in the first indication state according to the positioning information of the split-type sensor;
当所述分体式传感器处于第一指示状态时,控制智能家居设备使用所述分体式传感器发送的传感器数据对自身运行进行控制。When the split-type sensor is in the first indication state, the smart home device is controlled to use the sensor data sent by the split-type sensor to control its own operation.
所述当所述分体式传感器处于第一指示状态时,控制智能家居设备使用所述分体式传感器发送的传感器数据对自身运行进行控制,包括:When the split-type sensor is in the first indication state, controlling the smart home device to use the sensor data sent by the split-type sensor to control its own operation includes:
在检测到满足预设条件,且所述分体式传感器处于第一指示状态时,控制所述智能家居设备使用所述分体式传感器发送的传感器数据对自身运行进行控制;When it is detected that the preset condition is met and the split sensor is in the first indication state, controlling the smart home device to use the sensor data sent by the split sensor to control its own operation;
其中,所述检测到满足预设条件包括以下条件中的至少一条:Wherein, the detecting that the preset condition is met includes at least one of the following conditions:
检测到所述分体式传感器获取到的传感器数据的值与所述智能家居设备的设定目标数值之间的差值大于所述第一预设阈值;It is detected that the difference between the value of the sensor data obtained by the split sensor and the set target value of the smart home device is greater than the first preset threshold;
检测到所述智能家居设备处于稳定运行状态;It is detected that the smart home device is in a stable operation state;
检测接收到指示指令,所述指示指令为用户输入的指示启用所述分体式传感器的指令。It is detected that an instruction instruction is received, and the instruction instruction is an instruction entered by a user to instruct to activate the split sensor.
所述当所述分体式传感器处于第一指示状态时,控制智能家居设备使用所述分体式传感器发送的传感器数据对自身运行进行控制,包括:When the split-type sensor is in the first indication state, controlling the smart home device to use the sensor data sent by the split-type sensor to control its own operation includes:
获取所述分体式传感器发送的多个传感器数据;acquiring multiple sensor data sent by the split sensor;
确定所述多个传感器数据的平均值;determining an average value of the plurality of sensor data;
控制所述智能家居设备使用所述平均值对自身运行进行控制。The smart home device is controlled to use the average to control its own operation.
所述方法还包括:The method also includes:
检测所述分体式传感器获取到的传感器数据的值与所述智能家居设备的设定目标数值之间的差值是否大于第二预设阈值;Detecting whether the difference between the value of the sensor data obtained by the split sensor and the set target value of the smart home device is greater than a second preset threshold;
在检测到所述分体式传感器获取到的传感器数据的值与所述智能家居设备的设定目标数值之间的差值大于所述第二预设阈值时,向所述智能家居设备发送修正消息,所述修正消息用于指示所述智能家居设备使用修正数值对自身运行进行控制,其中,所述修正数值通过所述设定目标数值与所述第二预设阈值确定。When it is detected that the difference between the value of the sensor data obtained by the split sensor and the set target value of the smart home device is greater than the second preset threshold, send a correction message to the smart home device , the correction message is used to instruct the smart home device to use a correction value to control its own operation, wherein the correction value is determined by the set target value and the second preset threshold.
所述方法还包括:The method also includes:
确定所述分体式传感器获取到的传感器数据的值与所述智能家居设备的设定目标数值之间的第一差值;determining the first difference between the value of the sensor data obtained by the split sensor and the set target value of the smart home device;
获取所述智能家居设备的设定目标数值与所述第一差值之间的第二差值;obtaining the second difference between the set target value of the smart home device and the first difference;
若所述第二差值小于第三预设阈值,则将所述设定目标数值变更为所述第三预设阈值;If the second difference is smaller than a third preset threshold, changing the set target value to the third preset threshold;
若所述第二差值大于或等于所述第三预设阈值,则将所述设定目标数值变更为所述第二差值。If the second difference is greater than or equal to the third preset threshold, the set target value is changed to the second difference.
所述方法还包括:The method also includes:
检测是否接收到退出指令;Detect whether an exit instruction is received;
在检测接收到所述退出指令后,控制所述智能家居设备忽略所述分体式传感器发送的传感器数据;After detecting and receiving the exit instruction, control the smart home device to ignore the sensor data sent by the split sensor;
其中,所述退出指令包括以下指令中的至少一条:Wherein, the exit instruction includes at least one of the following instructions:
指示关闭所述智能家居设备的指令;an instruction to turn off said smart home device;
指示切换所述智能家居设备的运行模式的指令;an instruction instructing to switch the operating mode of the smart home device;
指示在预设时间内未接收到所述分体式传感器发送的传感器数据的指令;an instruction indicating that the sensor data sent by the split sensor has not been received within a preset time;
指示禁止使用所述分体式传感器的指令;an instruction to prohibit the use of said remote sensor;
指示所述智能家居设备发生故障;indicating that the smart home device is malfunctioning;
指示通过所述分体式传感器的定位信息确定所述分体式传感器处于第二指示状态。It is indicated that the split-type sensor is in a second indication state according to the positioning information of the split-type sensor.
所述通过所述分体式传感器的定位信息确定所述分体式传感器是否处于第一指示状态,包括:The determining whether the split-type sensor is in the first indication state according to the positioning information of the split-type sensor includes:
在所述分体式传感器被固定在设置于预设位置的固定装置时,打开所述分体式传感器对应的控制开关,在所述控制开关处于打开状态时确定所述分体式传感器处于所述第一指示状态。When the split-type sensor is fixed on the fixing device set at the preset position, the control switch corresponding to the split-type sensor is turned on, and when the control switch is in an open state, it is determined that the split-type sensor is in the first Indicate status.
所述通过所述分体式传感器的定位信息确定所述分体式传感器是否处于第二指示状态,包括:The determining whether the split-type sensor is in the second indication state by using the positioning information of the split-type sensor includes:
在所述分体式传感器与设置于预设位置的固定装置脱离时,关闭所述分体式传感器对应的控制开关,在所述控制开关处于关闭状态时确定所述分体式传感器处于所述第二指示状态。When the split-type sensor is detached from the fixing device set at the preset position, the control switch corresponding to the split-type sensor is turned off, and when the control switch is in the off state, it is determined that the split-type sensor is in the second indication state.
所述固定装置为磁性固定装置,所述控制开关为霍尔开关。The fixing device is a magnetic fixing device, and the control switch is a Hall switch.
本领域技术人员在考虑说明书及实践这里公开的公开后,将容易想到本公开的其它实施方案。本申请旨在涵盖本公开的任何变型、用途或者适应性变化,这些变型、用途或者适应性变化遵循本公开的一般性原理并包括本公开未公开的本技术领域中的公知常识或惯用技术手段。说明书和实施例仅被视为示例性的,本公开的真正范围和精神由下面的权利要求指出。Other embodiments of the present disclosure will readily occur to those skilled in the art upon consideration of the specification and practice of the disclosure disclosed herein. This application is intended to cover any variations, uses, or adaptations of the present disclosure that follow the general principles of the present disclosure and include common knowledge or techniques in the technical field not disclosed by the present disclosure . The specification and examples are to be regarded as exemplary only, with the true scope and spirit of the disclosure being indicated by the following claims.
应当理解的是,本公开并不局限于上面已经描述并在附图中示出的精确结构,并且可以在不脱离其范围进行各种修改和改变。本公开的范围仅由所附的权利要求来限制。It is to be understood that the present disclosure is not limited to the precise structures described above and illustrated in the accompanying drawings, and that various modifications and changes may be made without departing from the scope thereof. The scope of the present disclosure is limited only by the appended claims.
Claims (18)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710625557.8A CN107395472B (en) | 2017-07-27 | 2017-07-27 | Control method and device of intelligent household equipment |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710625557.8A CN107395472B (en) | 2017-07-27 | 2017-07-27 | Control method and device of intelligent household equipment |
Publications (2)
Publication Number | Publication Date |
---|---|
CN107395472A CN107395472A (en) | 2017-11-24 |
CN107395472B true CN107395472B (en) | 2020-06-19 |
Family
ID=60341576
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201710625557.8A Active CN107395472B (en) | 2017-07-27 | 2017-07-27 | Control method and device of intelligent household equipment |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN107395472B (en) |
Family Cites Families (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102546324B (en) * | 2011-10-19 | 2015-09-23 | 无锡物联网产业研究院 | A kind of Internet of things intelligent home system and method |
CN104121663A (en) * | 2014-07-24 | 2014-10-29 | 海信集团有限公司 | Method and equipment for controlling intelligent air conditioner |
US20160165387A1 (en) * | 2014-08-26 | 2016-06-09 | Hoang Nhu | Smart home platform with data analytics for monitoring and related methods |
CN105674490A (en) * | 2016-01-27 | 2016-06-15 | 珠海格力电器股份有限公司 | Control method, device and system for operating parameters of air conditioner |
CN206162091U (en) * | 2016-06-22 | 2017-05-10 | 浙江万邦智能科技股份有限公司 | Intelligent housing system |
CN106302041A (en) * | 2016-08-05 | 2017-01-04 | 深圳博科智能科技有限公司 | A kind of intelligent home equipment control method and device |
CN106453001A (en) * | 2016-10-10 | 2017-02-22 | 深圳万发创新进出口贸易有限公司 | Smart home system based on Internet of things |
-
2017
- 2017-07-27 CN CN201710625557.8A patent/CN107395472B/en active Active
Also Published As
Publication number | Publication date |
---|---|
CN107395472A (en) | 2017-11-24 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
EP3145125B1 (en) | Method and apparatus for controlling devices | |
EP3131315A1 (en) | Working method and working device of intelligent electric apparatus | |
RU2658194C2 (en) | Apparatus control method and device | |
EP3316232B1 (en) | Method, apparatus and storage medium for controlling target device | |
US9674284B2 (en) | Method and device for detecting state of networking channel | |
US20170045866A1 (en) | Methods and apparatuses for operating an appliance | |
US9928725B2 (en) | Method and device for reminding user | |
WO2017071093A1 (en) | Electronic device control method and apparatus | |
EP2940523B1 (en) | Method and device for configuring photographing parameters | |
EP3099017B1 (en) | A method and a device for controlling a smart home power supply | |
EP3125152B1 (en) | Method and device for collecting sounds corresponding to surveillance images | |
US11011124B2 (en) | Method and device for adjusting current of backlight, and storage medium | |
RU2673070C2 (en) | Method and device for controlling switch of socket | |
US11188102B2 (en) | Method, apparatus and storage medium for controlling drainage of equipment | |
EP3225510B1 (en) | Methods and devices for controlling self-balanced vehicle to park | |
CN106034323A (en) | Wireless-terminal-based automatic recovery method and relevant apparatus for data connection | |
US9865161B2 (en) | Method, remote controller and electrical applicance for releasing a binding of a remote controller | |
CN107395472B (en) | Control method and device of intelligent household equipment | |
US12132335B2 (en) | Charging method and device, and device | |
CN120176222A (en) | Air conditioning control method, device, electronic equipment, air conditioning and storage medium | |
WO2023216192A1 (en) | Method and apparatus for determining state of battery, and storage medium | |
CN115695650A (en) | Indoor and outdoor scene switching identification method, device, equipment and storage medium |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |