WO2019227392A1 - 一种报警的方法、装置和计算机可读介质 - Google Patents

一种报警的方法、装置和计算机可读介质 Download PDF

Info

Publication number
WO2019227392A1
WO2019227392A1 PCT/CN2018/089256 CN2018089256W WO2019227392A1 WO 2019227392 A1 WO2019227392 A1 WO 2019227392A1 CN 2018089256 W CN2018089256 W CN 2018089256W WO 2019227392 A1 WO2019227392 A1 WO 2019227392A1
Authority
WO
WIPO (PCT)
Prior art keywords
alarm
controller
information
action
smart
Prior art date
Application number
PCT/CN2018/089256
Other languages
English (en)
French (fr)
Inventor
彭灵
陈辉萍
范高如
李鑫
姚化桥
俞伟良
朱荆莲
钟城广
盘国权
陈清泉
黄立旺
王增均
李文彬
陈海裕
杨金桂
李文和
李国凯
郭飞锋
Original Assignee
深圳市蚂蚁雄兵物联技术有限公司
深圳佳比泰智能照明股份有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 深圳市蚂蚁雄兵物联技术有限公司, 深圳佳比泰智能照明股份有限公司 filed Critical 深圳市蚂蚁雄兵物联技术有限公司
Priority to CN201880000640.9A priority Critical patent/CN110881278A/zh
Priority to PCT/CN2018/089256 priority patent/WO2019227392A1/zh
Publication of WO2019227392A1 publication Critical patent/WO2019227392A1/zh

Links

Images

Classifications

    • GPHYSICS
    • G08SIGNALLING
    • G08BSIGNALLING OR CALLING SYSTEMS; ORDER TELEGRAPHS; ALARM SYSTEMS
    • G08B7/00Signalling systems according to more than one of groups G08B3/00 - G08B6/00; Personal calling systems according to more than one of groups G08B3/00 - G08B6/00
    • G08B7/06Signalling systems according to more than one of groups G08B3/00 - G08B6/00; Personal calling systems according to more than one of groups G08B3/00 - G08B6/00 using electric transmission, e.g. involving audible and visible signalling through the use of sound and light sources
    • GPHYSICS
    • G08SIGNALLING
    • G08BSIGNALLING OR CALLING SYSTEMS; ORDER TELEGRAPHS; ALARM SYSTEMS
    • G08B21/00Alarms responsive to a single specified undesired or abnormal condition and not otherwise provided for
    • G08B21/02Alarms for ensuring the safety of persons
    • G08B21/12Alarms for ensuring the safety of persons responsive to undesired emission of substances, e.g. pollution alarms
    • G08B21/14Toxic gas alarms
    • GPHYSICS
    • G08SIGNALLING
    • G08BSIGNALLING OR CALLING SYSTEMS; ORDER TELEGRAPHS; ALARM SYSTEMS
    • G08B21/00Alarms responsive to a single specified undesired or abnormal condition and not otherwise provided for
    • G08B21/18Status alarms
    • GPHYSICS
    • G08SIGNALLING
    • G08BSIGNALLING OR CALLING SYSTEMS; ORDER TELEGRAPHS; ALARM SYSTEMS
    • G08B21/00Alarms responsive to a single specified undesired or abnormal condition and not otherwise provided for
    • G08B21/18Status alarms
    • G08B21/182Level alarms, e.g. alarms responsive to variables exceeding a threshold
    • GPHYSICS
    • G08SIGNALLING
    • G08BSIGNALLING OR CALLING SYSTEMS; ORDER TELEGRAPHS; ALARM SYSTEMS
    • G08B21/00Alarms responsive to a single specified undesired or abnormal condition and not otherwise provided for
    • G08B21/18Status alarms
    • G08B21/185Electrical failure alarms
    • GPHYSICS
    • G08SIGNALLING
    • G08BSIGNALLING OR CALLING SYSTEMS; ORDER TELEGRAPHS; ALARM SYSTEMS
    • G08B21/00Alarms responsive to a single specified undesired or abnormal condition and not otherwise provided for
    • G08B21/18Status alarms
    • G08B21/187Machine fault alarms
    • GPHYSICS
    • G08SIGNALLING
    • G08BSIGNALLING OR CALLING SYSTEMS; ORDER TELEGRAPHS; ALARM SYSTEMS
    • G08B21/00Alarms responsive to a single specified undesired or abnormal condition and not otherwise provided for
    • G08B21/18Status alarms
    • G08B21/24Reminder alarms, e.g. anti-loss alarms

Definitions

  • the present application relates to the technical field of intelligent control, and in particular, to an alarm method, device, and computer-readable medium.
  • Smart home devices can facilitate users to control smart home devices. For example, a user can remotely control a smart home device through a client installed on a terminal device.
  • a user can control a smart home device through a terminal device at home, for example, controlling home devices such as air conditioners, refrigerators, curtains, and televisions at home.
  • the user can also control the smart home equipment through the terminal device before arriving at the home, for example, controlling the water heater to be turned on, or the air conditioner to be turned on, etc. before arriving at the house.
  • the purpose of the present application includes providing an alarm method, device, and computer-readable medium to alleviate the technical problem that the existing smart home equipment cannot achieve linkage control with the alarm detection device.
  • an embodiment of the present application provides an alarm method, which is applied to a controller of a smart home device.
  • the method includes: the controller acquires a gas concentration of a gas to be detected collected by a sensing device; The controller analyzes the gas concentration and generates alarm information when the gas concentration is greater than or equal to a preset threshold, where the alarm information includes: the type of the sensing device and the Alarm level; the controller sends a control signal to the smart home device based on the alarm information, so that the smart home device performs an alarm action based on the control signal.
  • the controller sending a control signal to the smart home device based on the alarm information includes: the controller inquires an alarm action corresponding to the alarm information from a target mapping table, wherein the target mapping table The corresponding relationship between the alarm information and the alarm action of the smart home device is included; the controller generates the control signal based on the corresponding alarm action, and sends the control signal to the smart home device.
  • the method further includes: obtaining configuration information sent by a user through a terminal, wherein the configuration information is information for configuring a correspondence between alarm information and alarm actions of the smart home device; based on the configuration The information updates the target mapping table.
  • the smart home device includes a smart light; the controller sending a control signal to the smart home device based on the alarm information further includes: the controller determines, based on the alarm information, that the smart home device matches the smart light.
  • a first alarm action wherein the first alarm action is determined by at least one of the following parameters: the color of the smart light, the brightness of the smart light, and the flashing frequency of the smart light; and the controller generates A first control signal, and sending the first control signal to the smart light, so that the smart light performs the first alarm action.
  • the controller determining the first alarm action matching the smart light based on the alarm information includes: the controller determining an alarm color of the smart light based on the alarm information; the controller Determining the alarm brightness of the smart light based on the alarm information; the controller determining an alarm flashing frequency of the smart light based on the alarm information; determining the alarm brightness and the alarm flashing frequency based on the alarm color The first alarm action.
  • the smart home device includes an alarm buzzer
  • the controller sending a control signal to the smart home device based on the alarm information includes: the controller determining the alarm buzzer based on the alarm information A matching second alarm action, wherein the second alarm action is determined by at least one of the following parameters: the sound intensity of the alarm buzzer, the frequency of the alarm buzzer, and the alarm interval of the alarm buzzer;
  • the controller generates a second control signal based on the second alarm action, and sends the second control signal to the alarm buzzer, so that the alarm buzzer performs the second alarm action.
  • the controller determining a second alarm action matching the alarm buzzer based on the alarm information includes: the controller determining an alarm sound intensity of the alarm buzzer based on the alarm information The controller determines an alarm frequency of the alarm buzzer based on the alarm information; the controller determines an alarm interval of the alarm buzzer based on the alarm information; based on the alarm sound intensity, the The alarm frequency and the alarm interval determine the second alarm action.
  • the method further includes: sending a first One byte and a second byte; wherein the first byte is used to characterize the type of the sensing device in the alarm information, and each bit in the first byte corresponds to a sensing device The second byte is used to characterize the alarm level of the sensing device in the alarm information, and each bit in the second byte corresponds to the alarm level of a sensing device.
  • an embodiment of the present application further provides an alarm system, including: a sensing device and a controller of a smart home device; the sensing device is configured to collect a gas concentration of a gas to be detected; and the controller is configured To obtain the gas concentration of the gas to be detected collected by the sensing device; the controller is further configured to analyze the gas concentration and generate an alarm if the gas concentration is greater than or equal to a preset threshold Information, wherein the alarm information includes: a type of the sensing device and an alarm level of the sensing device; the controller is further configured to send a control signal to the smart home device based on the alarm information, so that the smart home device An alarm action is performed based on the control signal.
  • an alarm system including: a sensing device and a controller of a smart home device; the sensing device is configured to collect a gas concentration of a gas to be detected; and the controller is configured To obtain the gas concentration of the gas to be detected collected by the sensing device; the controller is further configured to analyze the gas concentration and generate an alarm if the
  • the controller includes a query module configured to query an alarm action corresponding to the alarm information from a target mapping table, wherein the target mapping table includes alarm information and alarm actions of the smart home device. A corresponding relationship between them; a first generating module configured to generate the control signal based on the corresponding alarm action, and send the control signal to the smart home device.
  • the controller further includes: an obtaining module configured to obtain configuration information sent by a user through a terminal, wherein the configuration information is configured to configure a correspondence between alarm information and alarm actions of the smart home device. Information; an update module configured to update the target mapping table based on the configuration information.
  • the smart home device includes a smart light; the controller further includes: a first determination module configured to determine a first alarm action matching the smart light based on the alarm information, wherein the The first alarm action is determined by at least one of the following parameters: the color of the smart light, the brightness of the smart light, and the flashing frequency of the smart light; a second generation module configured to generate a first control signal based on the first alarm action, and Sending the first control signal to the smart light, so that the smart light performs the first alarm action.
  • a first determination module configured to determine a first alarm action matching the smart light based on the alarm information, wherein the The first alarm action is determined by at least one of the following parameters: the color of the smart light, the brightness of the smart light, and the flashing frequency of the smart light
  • a second generation module configured to generate a first control signal based on the first alarm action, and Sending the first control signal to the smart light, so that the smart light performs the first alarm action.
  • the first determining module is further configured to: the controller determines an alarm color of the smart light based on the alarm information; and the controller determines an alarm brightness of the smart light based on the alarm information; The controller determines an alarm blink frequency of the smart light based on the alarm information; and determines the first alarm action based on the alarm color, the alarm brightness, and the alarm blink frequency.
  • the smart home device includes an alarm buzzer; the controller further includes: a second determination module configured to determine a second alarm action matching the alarm buzzer based on the alarm information, The second alarm action is determined by at least one of the following parameters: the sound intensity of the alarm buzzer, the frequency of the alarm buzzer, and the alarm interval of the alarm buzzer; a third generation module configured to be based on the The second alarm action generates a second control signal, and sends the second control signal to the alarm buzzer, so that the alarm buzzer performs the second alarm action.
  • a second determination module configured to determine a second alarm action matching the alarm buzzer based on the alarm information, The second alarm action is determined by at least one of the following parameters: the sound intensity of the alarm buzzer, the frequency of the alarm buzzer, and the alarm interval of the alarm buzzer
  • a third generation module configured to be based on the The second alarm action generates a second control signal, and sends the second control signal to the alarm buzzer, so that the alarm buzzer performs the second alarm action.
  • an embodiment of the present application further provides a computer-readable medium having a processor-executable non-volatile program code, where the program code causes the processor to perform any one of the foregoing methods.
  • the controller first obtains the gas concentration of the gas to be detected collected by the sensing device, wherein the type of the sensing device is at least one, and each sensing device is configured to collect at least one gas to be detected ; After that, the controller analyzes the gas concentration and generates alarm information when the analyzed gas concentration is greater than or equal to a preset threshold, wherein the alarm information includes: the type of the sensing device and the alarm level of the sensing device; Finally, the controller sends a control signal to the smart home device based on the alarm information, so that the smart home device performs an alarm action based on the control signal.
  • the method provided in this embodiment can be used to implement the linkage control between the smart home device and the alarm detection device, so that the smart home device can perform the alarm action, and It is not only controlled by the user, thereby alleviating the technical problem that the existing smart home equipment cannot achieve the linkage control with the alarm detection device.
  • FIG. 1 is a flowchart of an alarm method according to an embodiment of the present application
  • FIG. 2 is a flowchart of sending an optional control signal to a smart home device based on alarm information according to an embodiment of the present application
  • FIG. 3 is a flowchart of sending an optional control signal to a smart home device based on alarm information according to an embodiment of the present application
  • FIG. 4 is a schematic diagram of an alarm system according to an embodiment of the present application.
  • an embodiment of an alarm method is provided. It should be noted that the steps shown in the flowchart of the accompanying drawings can be executed in a computer system such as a set of computer-executable instructions. The logical order is shown in the flowchart, but in some cases the steps shown or described may be performed in a different order than here.
  • FIG. 1 is a flowchart of an alarm method according to an embodiment of the present application. As shown in FIG. 1, the method is applied to a controller of a smart home device, and the method includes the following steps:
  • step S102 the controller obtains the gas concentration of the gas to be detected collected by the sensing device, wherein the type of the sensing device is at least one, and each sensing device is configured to collect at least one gas to be detected;
  • step S104 the controller analyzes the gas concentration, and generates an alarm message when it is analyzed that the gas concentration is greater than or equal to a preset threshold, wherein the alarm message includes the type of the sensing device. And the alarm level of the sensing device;
  • Step S106 The controller sends a control signal to the smart home device based on the alarm information, so that the smart home device performs an alarm action based on the control signal.
  • the method provided in this embodiment can be used to implement the linkage control between the smart home device and the alarm detection device, so that the smart home device can perform the alarm action, and It is not only controlled by the user, thereby alleviating the technical problem that the existing smart home equipment cannot achieve the linkage control with the alarm detection device.
  • a plurality of sensing devices may be placed in a home, and the sensing devices are sensors for detecting the concentration of the gas to be detected.
  • the sensing devices are sensors for detecting the concentration of the gas to be detected.
  • sensors for detecting combustible gases sensors for detecting carbon dioxide gas
  • sensors for detecting formaldehyde sensors for detecting formaldehyde, and the like.
  • the above-mentioned multiple sensing devices can be set in various corners of the home, and each sensor device is wirelessly connected with the controller of the smart home device.
  • the gas concentration of the gas to be detected may be collected by a sensing device. After detecting the gas concentration, the gas concentration is sent to the controller of the smart home device through the wireless connection module. After obtaining the gas concentration, the controller analyzes the gas concentration to determine whether the gas concentration is greater than or equal to a preset threshold. If it is judged yes, generate alarm information, and send a control signal to the smart home device based on the alarm information, so that the smart home device performs an alarm action based on the control signal.
  • the gas concentrations of multiple gas to be detected will be obtained, and further, multiple gas concentrations will be obtained. If it is determined that at least one of the plurality of gas concentrations exceeds a preset threshold value (the preset threshold value corresponds to the concentration threshold value of the gas concentration), an alarm message is generated.
  • preset thresholds corresponding to each gas to be detected may be the same or different, and may be specifically set according to actual needs.
  • the preset threshold value for the combustible gas is A1
  • the preset threshold value for the carbon dioxide gas is A2
  • the preset threshold value for the formaldehyde is A3. If the analysis meets at least one of the following conditions, an alarm message is generated: the gas concentration of the combustible gas is greater than or equal to the preset threshold A1, the gas concentration of the carbon dioxide gas is greater than or equal to the preset threshold A2, and the formaldehyde gas concentration is greater than or equal to the preset threshold A3.
  • step S106 the controller sends a control signal to the smart home device based on the alarm, and the information includes the following steps:
  • Step S1061 the controller queries an alarm action corresponding to the alarm information from a target mapping table, where the target mapping table includes a correspondence between the alarm information of the smart home device and the alarm action;
  • Step S1062 the controller generates the control signal based on the corresponding alarm action, and sends the control signal to the smart home device.
  • the controller generates alarm information after analyzing that the gas concentration of the gas to be detected is greater than a preset threshold, wherein the alarm information includes the type of the sensing device and the alarm level of the sensing device.
  • the alarm level can be determined according to the size of the gas concentration.
  • the target mapping table includes a correspondence relationship between the alarm information of the smart home device and the alarm action.
  • the controller can generate a control signal based on the corresponding alarm action to control the smart home device to perform the alarm action.
  • the sensing device when it is in a state of insufficient power, it also sends a signal of insufficient power to the controller. After the controller obtains the signal, it generates an alarm message.
  • the alarm information at this time includes: the type of the sensing device with insufficient power, and identification information that the sensing device is in a state of insufficient power.
  • the controller After acquiring the alarm information, the controller can also query the corresponding alarm action from the target mapping table, generate a control signal based on the corresponding alarm action, and send the control signal to the smart home device.
  • the sensing device when the sensing device is damaged, if the sensing device can send a signal to the controller, the sensing device will send a signal to the controller that the sensing device is damaged. After the controller obtains the signal, it generates an alarm message, which is used to remind the user of the damage of the sensing device.
  • the alarm information includes: the type of the damaged sensing device, and the sensing device is damaged. Status identification information. After acquiring the alarm information, the controller can also query the corresponding alarm action from the target mapping table, generate a control signal based on the corresponding alarm action, and send the control signal to the smart home device.
  • the user may modify the foregoing target mapping table.
  • the controller may obtain configuration information sent by the user through the terminal, where the configuration information is information for configuring a correspondence relationship between the alarm information and the alarm action of the smart home device; and then, based on the configuration information, The target mapping table is updated.
  • a user can set an alarm action corresponding to each type of alarm information through a client, thereby implementing personalized configuration of the alarm action.
  • step S106 the controller sends a control signal to the smart home device based on the alarm information, and further includes the following steps:
  • Step S201 The controller determines a first alarm action matching the smart light based on the alarm information, wherein the first alarm action is determined by at least one of the following parameters: the color of the smart light, and the brightness of the smart light And the flashing frequency of smart lights;
  • the controller determining the first alarm action matching the smart light based on the alarm information includes: the controller determining an alarm color of the smart light based on the alarm information; the controller based on the alarm information
  • the alarm information determines an alarm brightness of the smart light; the controller determines an alarm blink frequency of the smart light based on the alarm information; and determines the alarm brightness and the alarm blink frequency based on the alarm color.
  • the first alarm action includes: the controller determining an alarm color of the smart light based on the alarm information; the controller based on the alarm information The alarm information determines an alarm brightness of the smart light; the controller determines an alarm blink frequency of the smart light based on the alarm information; and determines the alarm brightness and the alarm blink frequency based on the alarm color.
  • Step S202 The controller generates a first control signal based on the first alarm action, and sends the first control signal to the smart light, so that the smart light performs the first alarm action.
  • the controller may determine a first alarm action matching the smart light from the target mapping table after acquiring the alarm information. For example, you can determine the alarm color of the smart light, the alarm brightness of the smart light, and the alarm flashing frequency of the smart light. Finally, the first alarm action is determined based on the alarm color, the alarm brightness and the alarm blink frequency.
  • a first control signal may be generated based on the first alarm action, and the first control signal may be sent to the smart light, so that the smart light performs the first alarm action.
  • step S106 the controller sending a control signal to the smart home device based on the alarm information includes the following steps:
  • Step S301 the controller determines a second alarm action matching the alarm buzzer based on the alarm information, wherein the second alarm action is determined by at least one of the following parameters: the sound intensity of the alarm buzzer , The frequency of the alarm buzzer and the alarm interval of the alarm buzzer;
  • the controller determining the second alarm action matching the alarm buzzer based on the alarm information includes: the controller determining an alarm sound intensity of the alarm buzzer based on the alarm information; The controller determines an alarm frequency of the alarm buzzer based on the alarm information; the controller determines an alarm interval of the alarm buzzer based on the alarm information; based on the alarm sound intensity and the alarm frequency And the alarm interval to determine the second alarm action.
  • Step S302 The controller generates a second control signal based on the second alarm action, and sends the second control signal to the alarm buzzer, so that the alarm buzzer performs the second alarm action.
  • the controller may determine a second alarm action matching the alarm buzzer from the target mapping table after acquiring the alarm information. For example, you can determine the alarm sound intensity of the alarm buzzer, the alarm frequency of the alarm buzzer, and the alarm interval of the alarm buzzer. Finally, the second alarm action is determined based on the alarm sound intensity, the alarm frequency and the alarm interval.
  • a second control signal may be generated based on the second alarm action, and the second control signal may be sent to the alarm buzzer, so that the alarm buzzer performs the first alarm action.
  • the sensing device is directly linked with the smart home device, for example, it is directly connected with the smart light in the home or other devices that can perform alarms, and then the data is analyzed by the controller inside the smart light.
  • the controller inside the smart light.
  • the client APP is not required to participate, but the definition of the lamp can be achieved through the APP. For example, if it is a first-level alarm, what color should the lamp appear, after the definition, the lamp is executed in the later stage. During the process, it executes according to the defined color.
  • the method further includes:
  • the first byte is used to characterize the type of the sensing device in the alarm information, and each bit in the first byte corresponds to the type of a sensing device; the second byte It is used to characterize the alarm level of the sensing device in the alarm information, and each bit in the second byte corresponds to the alarm level of a sensing device.
  • the signal is at least two bytes, one of which indicates a sensor type, for example, the sensor type is a carbon dioxide sensor, and the other byte indicates an alarm type.
  • a byte includes 8 bits, each bit can be defined as a type, and the alarm type is set in different levels.
  • the upper 4 bits of the 8 bits correspond to the first-level alarm, of which the first-level alarm is divided into 4 levels, each level corresponds to a different gas concentration; the lower 4 bits of the 8-bit correspond to the second-level alarm and third-level alarm respectively.
  • Alarms and fourth-level alarms, etc. the second-level alarm is that the sensing device has insufficient power, the third-level alarm is that the detection device is damaged, and the fourth-level alarm is that the detection device is abnormal.
  • An embodiment of the present application further provides an alarm system.
  • the alarm system is mainly used to execute the alarm method provided in the foregoing content of the embodiments of the present application.
  • the alarm system provided by the embodiments of the present application will be specifically described below.
  • FIG. 4 is a schematic diagram of an alarm system according to an embodiment of the present application.
  • the alarm system mainly includes a sensing device 10 and a controller 20 of a smart home device, wherein:
  • the sensing device is configured to collect a gas concentration of a gas to be detected
  • the controller is configured to obtain a gas concentration of a gas to be detected collected by a sensing device, the type of the sensing device is at least one, and each sensing device is configured to collect at least one gas to be detected;
  • the controller is further configured to analyze the gas concentration and generate an alarm message when it is analyzed that the gas concentration is greater than or equal to a preset threshold, wherein the alarm message includes a type of a sensing device And the alarm level of the sensing device;
  • the controller is further configured to send a control signal to the smart home device based on the alarm information, so that the smart home device performs an alarm action based on the control signal.
  • the method provided in this embodiment can be used in the controller of the smart home device to implement the linkage control between the smart home device and the alarm detection device, thereby realizing that the smart home device can perform the alarm action, not only It is controlled by the user, thereby alleviating the technical problem that the existing smart home equipment cannot achieve the linkage control with the alarm detection device.
  • the controller includes a query module configured to query an alarm action corresponding to the alarm information from a target mapping table, wherein the target mapping table includes alarm information and alarm actions of the smart home device. A corresponding relationship between them; a first generating module configured to generate the control signal based on the corresponding alarm action, and send the control signal to the smart home device.
  • the controller further includes: an obtaining module configured to obtain configuration information sent by a user through a terminal, wherein the configuration information is configured to configure a correspondence between alarm information and alarm actions of the smart home device. Information; an update module configured to update the target mapping table based on the configuration information.
  • the smart home device includes a smart light; the controller further includes: a first determination module configured to determine a first alarm action matching the smart light based on the alarm information, wherein the The first alarm action is determined by at least one of the following parameters: the color of the smart light, the brightness of the smart light, and the flashing frequency of the smart light; a second generation module configured to generate a first control signal based on the first alarm action, and Sending the first control signal to the smart light, so that the smart light performs the first alarm action.
  • a first determination module configured to determine a first alarm action matching the smart light based on the alarm information, wherein the The first alarm action is determined by at least one of the following parameters: the color of the smart light, the brightness of the smart light, and the flashing frequency of the smart light
  • a second generation module configured to generate a first control signal based on the first alarm action, and Sending the first control signal to the smart light, so that the smart light performs the first alarm action.
  • the first determining module is further configured to: determine an alarm color of the smart light based on the alarm information; determine an alarm brightness of the smart light based on the alarm information; and the controller is based on the alarm The information determines the alarm flashing frequency of the smart light; based on the alarm color, the alarm brightness and the alarm flashing frequency determine the first alarm action.
  • the smart home device includes an alarm buzzer; the controller further includes: a second determination module configured to determine a second alarm action matching the alarm buzzer based on the alarm information, The second alarm action is determined by at least one of the following parameters: the sound intensity of the alarm buzzer, the frequency of the alarm buzzer, and the alarm interval of the alarm buzzer; a third generation module configured to be based on the The second alarm action generates a second control signal, and sends the second control signal to the alarm buzzer, so that the alarm buzzer performs the second alarm action.
  • a second determination module configured to determine a second alarm action matching the alarm buzzer based on the alarm information, The second alarm action is determined by at least one of the following parameters: the sound intensity of the alarm buzzer, the frequency of the alarm buzzer, and the alarm interval of the alarm buzzer
  • a third generation module configured to be based on the The second alarm action generates a second control signal, and sends the second control signal to the alarm buzzer, so that the alarm buzzer performs the second alarm action.
  • the second determination module is further configured to determine an alarm sound intensity of the alarm buzzer based on the alarm information; determine an alarm frequency of the alarm buzzer based on the alarm information; and based on the alarm information
  • the alarm information determines an alarm interval of the alarm buzzer; and determines the second alarm action based on the alarm sound intensity, the alarm frequency, and the alarm interval.
  • the controller is further configured to: after analyzing the gas concentration and analyzing that the gas concentration is greater than or equal to a preset threshold, generate an alarm message and send it to the client on the terminal A first byte and a second byte; wherein the first byte is used to characterize the type of the sensing device in the alarm information, and each bit in the first byte corresponds to a type of sensing The type of device; the second byte is used to characterize the alarm level of the sensing device in the alarm information, and each bit in the second byte corresponds to the alarm level of a sensing device.
  • a computer-readable medium having a processor-executable non-volatile program code is also provided.
  • the program code causes the processor to execute any one of the alarm methods described above.
  • the terms “installation”, “connected”, and “connected” should be understood in a broad sense unless otherwise specified and limited. For example, they may be fixed connections or detachable connections. , Or integrally connected; it can be mechanical or electrical; it can be directly connected, or it can be indirectly connected through an intermediate medium, and it can be the internal communication of two elements.
  • installation should be understood in a broad sense unless otherwise specified and limited. For example, they may be fixed connections or detachable connections. , Or integrally connected; it can be mechanical or electrical; it can be directly connected, or it can be indirectly connected through an intermediate medium, and it can be the internal communication of two elements.
  • the specific meanings of the above terms in this application can be understood in specific situations.
  • the disclosed systems, devices, and methods may be implemented in other ways.
  • the device embodiments described above are only schematic.
  • the division of the units is only a logical function division.
  • multiple units or components may be combined or Can be integrated into another system, or some features can be ignored or not implemented.
  • the displayed or discussed mutual coupling or direct coupling or communication connection may be through some communication interfaces, indirect coupling or communication connection of the device or unit, and may be electrical, mechanical or other forms.
  • the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, may be located in one place, or may be distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the objective of the solution of this embodiment.
  • each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist separately physically, or two or more units may be integrated into one unit.
  • the functions are implemented in the form of software functional units and sold or used as independent products, they can be stored in a non-volatile computer-readable storage medium executable by a processor.
  • the technical solution of the present application is essentially a part that contributes to the existing technology or a part of the technical solution can be embodied in the form of a software product.
  • the computer software product is stored in a storage medium, including Several instructions are used to cause a computer device (which may be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the method described in the embodiments of the present application.
  • the foregoing storage media include: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), magnetic disks or optical disks and other media that can store program codes .
  • the alarm method, device, and computer-readable medium provided in the embodiments of the present application can be applied to the controller of each smart home device. It can realize the linkage control between the smart home equipment and the alarm detection device, so that the smart home device can perform the alarm action, not only controlled by the user, making the functions of the smart home device more diversified.

Landscapes

  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Business, Economics & Management (AREA)
  • Emergency Management (AREA)
  • Health & Medical Sciences (AREA)
  • General Health & Medical Sciences (AREA)
  • Toxicology (AREA)
  • Engineering & Computer Science (AREA)
  • Environmental & Geological Engineering (AREA)
  • Emergency Alarm Devices (AREA)

Abstract

一种报警的方法、装置和计算机可读介质,涉及智能控制的技术领域,该方法包括控制器(20)获取传感装置(10)采集到的待检测气体的气体浓度(S102),传感装置(10)的种类至少为一种,每种传感装置(10)配置成采集至少一种待检测气体;控制器(20)对气体浓度进行分析,并在分析出气体浓度大于或者等于预设阈值的情况下,生成报警信息,其中,报警信息包括:传感装置(10)的种类和传感装置(10)的报警等级(S104);控制器(20)基于报警信息向智能家居设备发送控制信号,以使智能家居设备基于控制信号执行报警动作(S106),由此缓解了现有的智能家居设备无法实现与报警检测装置之间的联动控制的技术问题。

Description

一种报警的方法、装置和计算机可读介质 技术领域
本申请涉及智能控制的技术领域,尤其是涉及一种报警的方法、装置和计算机可读介质。
背景技术
随着智能控制技术的快速发展,智能设备也越来越多,例如,智能空调,智能冰箱,智能电饭锅等等,智能设备已经逐渐进入到千家万户。随之发展的智能家居设备也逐渐进入到人们的生活中。智能家居设备能够方便用户对智能家居设备进行控制。例如,用户可以通过在终端设备上安装的客户端来对智能家居设备进行远程控制。
在现有技术中,用户在家中可以通过终端设备对智能家居设备进行控制,例如,在家中对空调、冰箱、窗帘、电视等家居设备进行控制。用户还可以在到家之前,通过终端设备对智能家居设备进行控制,例如,在到家之前,控制热水器开启,或者控制空调开启等等。
但是,针对现有的智能家居设备,用户只能对其进行控制,但是,智能家居设备无法做到与家中的其他电器设备实现联动。例如,在家中安装一个报警检测装置时,该报警检测装置一般将报警信息发送到用户的终端设备上,以提醒用户。但是,现有的报警检测装置还无法实现与智能家居设备之间的联动。
发明内容
有鉴于此,本申请的目的包括,提供一种报警的方法、装置和计算机可读介质,以缓解了现有的智能家居设备无法实现与报警检测装置之间的联动控制的技术问题。
第一方面,本申请实施例提供了一种报警的方法,应用于智能家居设备的控制器,所述方法包括:所述控制器获取传感装置采集到的待检测气体的气体浓度;所述控制器对所述气体浓度进行分析,并在分析出所述气体浓度大于或者等于预设阈值的情况下,生成报警信息,其中,所述报警信息包括:传感装置的种类和传感装置的报警等级;所述控制器基于所述报警信息向智能家居设备发送控制信号,以使所述智能家居设备基于所述控制信号执行报警动作。
可选地,所述控制器基于所述报警信息向智能家居设备发送控制信号包括:所述控制器从目标映射表中查询与所述报警信息相对应的报警动作,其中,所述目标映射表中包括智能家居设备的报警信息和报警动作之间的对应关系;所述控制器基于所述相对应的报警动作生成所述控制信号,并向所述智能家居设备发送所述控制信号。
可选地,所述方法还包括:获取用户通过终端发送的配置信息,其中,所述配置信息为配置所述智能家居设备的报警信息和报警动作之间的对应关系的信息;基于所述配置信 息对所述目标映射表进行更新。
可选地,所述智能家居设备包括智能灯;所述控制器基于所述报警信息向智能家居设备发送控制信号还包括:所述控制器基于所述报警信息确定与所述智能灯相匹配的第一报警动作,其中,所述第一报警动作是通过以下至少一个参数确定的:智能灯的颜色,智能灯的亮度和智能灯的闪烁频率;所述控制器基于所述第一报警动作生成第一控制信号,并向所述智能灯发送所述第一控制信号,以使所述智能灯执行所述第一报警动作。
可选地,所述控制器基于所述报警信息确定与所述智能灯相匹配的第一报警动作包括:所述控制器基于所述报警信息确定所述智能灯的报警颜色;所述控制器基于所述报警信息确定所述智能灯的报警亮度;所述控制器基于所述报警信息确定所述智能灯的报警闪烁频率;基于所述报警颜色,所述报警亮度和所述报警闪烁频率确定所述第一报警动作。
可选地,所述智能家居设备包括报警蜂鸣器;所述控制器基于所述报警信息向智能家居设备发送控制信号包括:所述控制器基于所述报警信息确定与所述报警蜂鸣器相匹配的第二报警动作,其中,所述第二报警动作是通过以下至少一个参数确定的:报警蜂鸣器的声音强度,报警蜂鸣器的频率和报警蜂鸣器的报警间隔;所述控制器基于所述第二报警动作生成第二控制信号,并向所述报警蜂鸣器发送所述第二控制信号,以使所述报警蜂鸣器执行所述第二报警动作。
可选地,所述控制器基于所述报警信息确定与所述报警蜂鸣器相匹配的第二报警动作包括:所述控制器基于所述报警信息确定所述报警蜂鸣器的报警声音强度;所述控制器基于所述报警信息确定所述报警蜂鸣器的报警频率;所述控制器基于所述报警信息确定所述报警蜂鸣器的报警间隔;基于所述报警声音强度、所述报警频率和所述报警间隔确定所述第二报警动作。
可选地,在对所述气体浓度进行分析,并在分析出所述气体浓度大于或者等于预设阈值的情况下,生成报警信息之后,所述方法还包括:向终端上的客户端发送第一字节和第二字节;其中,所述第一字节用于表征所述报警信息中的传感装置的种类,且所述第一字节中的每一位对应一种传感装置的种类;所述第二字节用于表征所述报警信息中的传感装置的报警等级,且所述第二字节中的每一位对应一个传感装置的报警等级。
第二方面,本申请实施例还提供了一种报警的系统,包括:传感装置和智能家居设备的控制器;所述传感装置配置成采集待检测气体的气体浓度;所述控制器配置成获取传感装置采集到的待检测气体的气体浓度;所述控制器还配置成对所述气体浓度进行分析,并在分析出所述气体浓度大于或者等于预设阈值的情况下,生成报警信息,其中,所述报警信息包括:传感装置的种类和传感装置的报警等级;所述控制器还配置成基于所述报警信息向智能家居设备发送控制信号,以使所述智能家居设备基于所述控制信号执行报警动作。
可选地,所述控制器包括:查询模块,配置成从目标映射表中查询与所述报警信息相对应的报警动作,其中,所述目标映射表中包括智能家居设备的报警信息和报警动作之间的对应关系;第一生成模块,配置成基于所述相对应的报警动作生成所述控制信号,并向所述智能家居设备发送所述控制信号。
可选地,所述控制器还包括:获取模块,配置成获取用户通过终端发送的配置信息,其中,所述配置信息为配置所述智能家居设备的报警信息和报警动作之间的对应关系的信息;更新模块,配置成基于所述配置信息对所述目标映射表进行更新。
可选地,所述智能家居设备包括智能灯;所述控制器还包括:第一确定模块,配置成基于所述报警信息确定与所述智能灯相匹配的第一报警动作,其中,所述第一报警动作是通过以下至少一个参数确定的:智能灯的颜色,智能灯的亮度和智能灯的闪烁频率;第二生成模块,配置成基于所述第一报警动作生成第一控制信号,并向所述智能灯发送所述第一控制信号,以使所述智能灯执行所述第一报警动作。
可选地,所述第一确定模块还配置成:所述控制器基于所述报警信息确定所述智能灯的报警颜色;所述控制器基于所述报警信息确定所述智能灯的报警亮度;所述控制器基于所述报警信息确定所述智能灯的报警闪烁频率;基于所述报警颜色,所述报警亮度和所述报警闪烁频率确定所述第一报警动作。
可选地,所述智能家居设备包括报警蜂鸣器;所述控制器还包括:第二确定模块,配置成基于所述报警信息确定与所述报警蜂鸣器相匹配的第二报警动作,其中,所述第二报警动作是通过以下至少一个参数确定的:报警蜂鸣器的声音强度,报警蜂鸣器的频率和报警蜂鸣器的报警间隔;第三生成模块,配置成基于所述第二报警动作生成第二控制信号,并向所述报警蜂鸣器发送所述第二控制信号,以使所述报警蜂鸣器执行所述第二报警动作。
第三方面,本申请实施例还提供了一种具有处理器可执行的非易失的程序代码的计算机可读介质,所述程序代码使所述处理器执行上述任一所述方法。
在本申请实施例中,控制器首先获取传感装置采集到的待检测气体的气体浓度,其中,传感装置的种类至少为一种,每种传感装置配置成采集至少一种待检测气体;之后,控制器对气体浓度进行分析,并在分析出气体浓度大于或者等于预设阈值的情况下,生成报警信息,其中,报警信息包括:传感装置的种类和传感装置的报警等级;最后,控制器基于报警信息向智能家居设备发送控制信号,以使智能家居设备基于控制信号执行报警动作。
通过上述描述可知,在智能家居设备的控制器中,采用本实施例所提供的方法,能够实现智能家居设备与报警检测装置之间的联动控制,从而实现通过智能家居设备能够执行报警动作,而不仅仅是被用户所控制,进而缓解了现有的智能家居设备无法实现与报警检测装置之间的联动控制的技术问题。
本申请的其他特征和优点将在随后的说明书中阐述,并且,部分地从说明书中变得显而易见,或者通过实施本申请而了解。本申请的目的和其他优点在说明书、权利要求书以及附图中所特别指出的结构来实现和获得。
为使本申请的上述目的、特征和优点能更明显易懂,下文特举较佳实施例,并配合所附附图,作详细说明如下。
附图说明
为了更清楚地说明本申请具体实施方式或现有技术中的技术方案,下面将对具体实施方式或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图是本申请的一些实施方式,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。
图1是根据本申请实施例的一种报警的方法的流程图;
图2是根据本申请实施例的一种可选的基于报警信息向智能家居设备发送控制信号的流程图;
图3是根据本申请实施例的另一种可选的基于报警信息向智能家居设备发送控制信号的流程图;
图4是根据本申请实施例的一种报警的系统的示意图。
具体实施方式
为使本申请实施例的目的、技术方案和优点更加清楚,下面将结合附图对本申请的技术方案进行清楚、完整地描述,显然,所描述的实施例是本申请一部分实施例,而不是全部的实施例。基于本申请中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都属于本申请保护的范围。
根据本申请实施例,提供了一种报警的方法的实施例,需要说明的是,在附图的流程图示出的步骤可以在诸如一组计算机可执行指令的计算机系统中执行,并且,虽然在流程图中示出了逻辑顺序,但是在某些情况下,可以以不同于此处的顺序执行所示出或描述的步骤。
图1是根据本申请实施例的一种报警的方法的流程图,如图1所示,该方法应用于智能家居设备的控制器,该方法包括如下步骤:
步骤S102,所述控制器获取传感装置采集到的待检测气体的气体浓度,其中,所述传感装置的种类至少为一种,每种传感装置配置成采集至少一种待检测气体;
步骤S104,所述控制器对所述气体浓度进行分析,并在分析出所述气体浓度大于或者等于预设阈值的情况下,生成报警信息,其中,所述报警信息包括:传感装置的种类和传感装置的报警等级;
步骤S106,所述控制器基于所述报警信息向智能家居设备发送控制信号,以使所述智能家居设备基于所述控制信号执行报警动作。
通过上述描述可知,在智能家居设备的控制器中,采用本实施例所提供的方法,能够实现智能家居设备与报警检测装置之间的联动控制,从而实现通过智能家居设备能够执行报警动作,而不仅仅是被用户所控制,进而缓解了现有的智能家居设备无法实现与报警检测装置之间的联动控制的技术问题。
在本实施例中,可以在家中放置有多个传感装置(即,多个传感器),传感装置为对待检测气体进行浓度检测的传感器。例如,用于检测可燃气体的传感器,检测二氧化碳气体的传感器,检测甲醛的传感器等等。上述多个传感装置可以设置在家中各个角落,且每个传感器装置与智能家居设备的控制器无线连接。
在本申请实施例中,可以通过传感装置采集待检测气体的气体浓度。在检测到气体浓度之后,通过无线连接模块将该气体浓度发送至智能家居设备的控制器中。该控制器在获取到气体浓度之后,对气体浓度进行分析,以确定气体浓度是否大于或者等于预设阈值。如果判断出是,则生成报警信息,并基于报警信息向智能家居设备发送控制信号,以使智能家居设备基于该控制信号执行报警动作。
需要说明的是,在本申请实施例中,由于待检测气体的种类可以为多种,在此情况下,将得到多种待检测气体的气体浓度,进而,得到多个气体浓度。如果判断出多个气体浓度中至少有一个气体浓度超过预设阈值(该预设阈值该气体浓度所对应的浓度阈值),则生成报警信息。
进一步需要说明的是,每个待检测气体所对应的预设阈值可以相同,还可以不同,具体可以根据实际需要来进行设定。
例如,为可燃气体设置的预设阈值为A1,为二氧化碳气体设置的预设阈值为A2,为甲醛设置的预设阈值为A3。如果分析出满足以下至少一个条件,则生成报警信息:可燃气体的气体浓度大于或者等于预设阈值A1,二氧化碳气体的气体浓度大于或者等于预设阈值A2,甲醛的气体浓度大于或者等于预设阈值A3。
在本实施例的一个可选的实施方式中,步骤S106,所述控制器基于所述报警,信息向智能家居设备发送控制信号包括如下步骤:
步骤S1061,所述控制器从目标映射表中查询与所述报警信息相对应的报警动作,其中,所述目标映射表中包括智能家居设备的报警信息和报警动作之间的对应关系;
步骤S1062,所述控制器基于所述相对应的报警动作生成所述控制信号,并向所述智能家居设备发送所述控制信号。
在本实施例中,控制器在分析出待检测气体的气体浓度大于预设阈值之后,生成报警 信息,其中,报警信息包括传感装置的种类和传感装置的报警等级,该传感装置的报警等级可以根据气体浓度的大小来进行确定。
在生成报警信息之后,就可以从目标映射表中查询与该报警信息相对应的报警动作。其中,在该目标映射表中包括智能家居设备的报警信息与报警动作之间的对应关系。
在查询到报警动作之后,控制器就可以基于相对应的报警动作生成控制信号,以控制智能家居设备执行报警动作。
需要说明的是,在本实施例中,在传感装置处于电量不足的状态时,也会向控制器发送电量不足的信号,控制器在获取到该信号之后,生成报警信息,该报警信息用于提醒用户传感装置的电量不足,此时的报警信息中包括:电量不足的传感装置的种类,以及该传感装置处于电量不足状态的标识信息。控制器在获取到该报警信息,同样可以从目标映射表中查询相应的报警动作,并基于相对应的报警动作生成控制信号,并向智能家居设备发送该控制信号。
进一步需要说明的是,在本实施例中,在传感装置被损坏时,如果该传感装置能够向控制器发送信号,那么该传感装置将向控制器发送传感装置被损坏的信号,控制器在获取到该信号之后,生成报警信息,该报警信息用于提醒用户传感装置的损坏,此时的报警信息中包括:被损坏的传感装置的种类,以及该传感装置处于损坏状态的标识信息。控制器在获取到该报警信息,同样可以从目标映射表中查询相应的报警动作,并基于相对应的报警动作生成控制信号,并向智能家居设备发送该控制信号。
在另一个可选的实施方式中,用户可以修改上述目标映射表。
具体地,控制器可以获取用户通过终端发送的配置信息,其中,所述配置信息为配置所述智能家居设备的报警信息和报警动作之间的对应关系的信息;然后,基于所述配置信息对所述目标映射表进行更新。
在本实施例中,用户可以通过客户端设置与每种报警信息相对应的报警动作,从而实现报警动作的个性化配置。
在另一个可选的实施方式中,如图2所示,如果智能家居设备包括智能灯;那么步骤S106,控制器基于所述报警信息向智能家居设备发送控制信号还包括如下步骤:
步骤S201,控制器基于所述报警信息确定与所述智能灯相匹配的第一报警动作,其中,所述第一报警动作是通过以下至少一个参数确定的:智能灯的颜色,智能灯的亮度和智能灯的闪烁频率;
可选地,控制器基于所述报警信息确定与所述智能灯相匹配的第一报警动作包括:所述控制器基于所述报警信息确定所述智能灯的报警颜色;所述控制器基于所述报警信息确定所述智能灯的报警亮度;所述控制器基于所述报警信息确定所述智能灯的报警闪烁频率; 基于所述报警颜色,所述报警亮度和所述报警闪烁频率确定所述第一报警动作。
步骤S202,所述控制器基于所述第一报警动作生成第一控制信号,并向所述智能灯发送所述第一控制信号,以使所述智能灯执行所述第一报警动作。
在本实施例中,如果智能家居设备为智能灯,那么控制器在获取报警信息之后,可以从目标映射表中确定与该智能灯相匹配的第一报警动作。例如,可以确定智能灯的报警颜色,智能灯的报警亮度,智能灯的报警闪烁频率。最后,基于所述报警颜色,所述报警亮度和所述报警闪烁频率确定所述第一报警动作。
在确定第一报警动作之后,就可以基于第一报警动作生成第一控制信号,并向智能灯发送该第一控制信号,以使智能灯执行第一报警动作。
通过上述描述可知,在本实施例中,针对不同的报警信息设置对应的报警动作,能够让用户更加直观的确定报警的传感装置,以及该传感装置的报警等级,而无需再从终端设备的客户端上进行查看。
在另一个可选的实施方式中,如图3所示,如果智能家居设备包括报警蜂鸣器;那么步骤S106,控制器基于所述报警信息向智能家居设备发送控制信号包括如下步骤:
步骤S301,控制器基于所述报警信息确定与所述报警蜂鸣器相匹配的第二报警动作,其中,所述第二报警动作是通过以下至少一个参数确定的:报警蜂鸣器的声音强度,报警蜂鸣器的频率和报警蜂鸣器的报警间隔;
可选地,控制器基于所述报警信息确定与所述报警蜂鸣器相匹配的第二报警动作包括:所述控制器基于所述报警信息确定所述报警蜂鸣器的报警声音强度;所述控制器基于所述报警信息确定所述报警蜂鸣器的报警频率;所述控制器基于所述报警信息确定所述报警蜂鸣器的报警间隔;基于所述报警声音强度、所述报警频率和所述报警间隔确定所述第二报警动作。
步骤S302,控制器基于所述第二报警动作生成第二控制信号,并向所述报警蜂鸣器发送所述第二控制信号,以使所述报警蜂鸣器执行所述第二报警动作。
在本实施例中,如果智能家居设备为报警蜂鸣器,那么控制器在获取报警信息之后,可以从目标映射表中确定与该报警蜂鸣器相匹配的第二报警动作。例如,可以确定报警蜂鸣器的报警声音强度,报警蜂鸣器的报警频率,报警蜂鸣器的报警间隔。最后,基于所述报警声音强度、所述报警频率和所述报警间隔确定所述第二报警动作。
在确定第二报警动作之后,就可以基于第二报警动作生成第二控制信号,并向报警蜂鸣器发送该第二控制信号,以使报警蜂鸣器执行第一报警动作。
通过上述描述可知,在本实施例中,针对不同的报警信息设置对应的报警动作,能够让用户更加直观的确定报警的传感装置,以及该传感装置的报警等级,而无需再从终端设 备的客户端上进行查看。
通过上述描述可知,在本实施例中,传感装置与智能家居设备直接联动,例如,与家中的智能灯或其他可进行报警的设备直接连接,然后通过智能灯内部的控制器对数据进行解析,同时按不同等级对灯进行颜色、亮度、闪烁频率等方式的控制,实现智能家居的联动。或者控制家中的报警器按不同声音大小、频率以及间隔进行报警。
需要说明的是,在整个过程中,无需客户端APP的参与,但可通过APP实现对灯的定义,例如定义若为一级报警,则灯该出现什么颜色,在定义后,灯后期在执行过程中,则按定义的颜色进行执行。
在本实施例中,在对所述气体浓度进行分析,并在分析出所述气体浓度大于或者等于预设阈值的情况下,生成报警信息之后,所述方法还包括:
向终端上的客户端发送第一字节和第二字节;
其中,所述第一字节用于表征所述报警信息中的传感装置的种类,且所述第一字节中的每一位对应一种传感装置的种类;所述第二字节用于表征所述报警信息中的传感装置的报警等级,且所述第二字节中的每一位对应一个传感装置的报警等级。
当某个或多个传感装置检测到待检测气体的气体浓度超标时,向客户端APP发送信号。在本申请中,信号为至少两个字节,其中一个字节表示传感器类别,例如,传感器类别为二氧化碳传感器,另一个字节表示报警种类。
其中,一个字节包括8位,每一位可定义为一个种类,报警种类分等级设置。例如,8位中的高4位对应一级报警,其中,一级报警又分为4个等级,每个等级对应不同的气体浓度;8位中的低4位分别对应二级报警,三级报警和四级报警等,其中,二级报警为传感装置的电量不足,三级报警为检测装置被损坏,四级报警为传感装置检测异常。
在本实施例中,通过该设置方式,在实现传感装置与智能家居设备之间的联动的同时,还能够及时通过用户传感装置的工作情况,以及家中待检测气体的浓度情况。
本申请实施例还提供了一种报警的系统,该报警的系统主要用于执行本申请实施例上述内容所提供的报警的方法,以下对本申请实施例提供的报警的系统做具体介绍。
图4是根据本申请实施例的一种报警的系统的示意图,如图4所示,该报警的系统主要包括传感装置10和智能家居设备的控制器20,其中:
所述传感装置配置成采集待检测气体的气体浓度;
所述控制器配置成获取传感装置采集到的待检测气体的气体浓度,所述传感装置的种类至少为一种,每种传感装置配置成采集至少一种待检测气体;
所述控制器还配置成对所述气体浓度进行分析,并在分析出所述气体浓度大于或者等 于预设阈值的情况下,生成报警信息,其中,所述报警信息包括:传感装置的种类和传感装置的报警等级;
所述控制器还配置成基于所述报警信息向智能家居设备发送控制信号,以使所述智能家居设备基于所述控制信号执行报警动作。
通过上述描述可知,在智能家居设备的控制器采用本实施例所提供的方法,能够实现智能家居设备与报警检测装置之间的联动控制,从而实现通过智能家居设备能够执行报警动作,而不仅仅是被用户所控制,进而缓解了现有的智能家居设备无法实现与报警检测装置之间的联动控制的技术问题。
可选地,所述控制器包括:查询模块,配置成从目标映射表中查询与所述报警信息相对应的报警动作,其中,所述目标映射表中包括智能家居设备的报警信息和报警动作之间的对应关系;第一生成模块,配置成基于所述相对应的报警动作生成所述控制信号,并向所述智能家居设备发送所述控制信号。
可选地,所述控制器还包括:获取模块,配置成获取用户通过终端发送的配置信息,其中,所述配置信息为配置所述智能家居设备的报警信息和报警动作之间的对应关系的信息;更新模块,配置成基于所述配置信息对所述目标映射表进行更新。
可选地,所述智能家居设备包括智能灯;所述控制器还包括:第一确定模块,配置成基于所述报警信息确定与所述智能灯相匹配的第一报警动作,其中,所述第一报警动作是通过以下至少一个参数确定的:智能灯的颜色,智能灯的亮度和智能灯的闪烁频率;第二生成模块,配置成基于所述第一报警动作生成第一控制信号,并向所述智能灯发送所述第一控制信号,以使所述智能灯执行所述第一报警动作。
可选地,所述第一确定模块还配置成:基于所述报警信息确定所述智能灯的报警颜色;基于所述报警信息确定所述智能灯的报警亮度;所述控制器基于所述报警信息确定所述智能灯的报警闪烁频率;基于所述报警颜色,所述报警亮度和所述报警闪烁频率确定所述第一报警动作。
可选地,所述智能家居设备包括报警蜂鸣器;所述控制器还包括:第二确定模块,配置成基于所述报警信息确定与所述报警蜂鸣器相匹配的第二报警动作,其中,所述第二报警动作是通过以下至少一个参数确定的:报警蜂鸣器的声音强度,报警蜂鸣器的频率和报警蜂鸣器的报警间隔;第三生成模块,配置成基于所述第二报警动作生成第二控制信号,并向所述报警蜂鸣器发送所述第二控制信号,以使所述报警蜂鸣器执行所述第二报警动作。
可选地,所述第二确定模块还配置成:基于所述报警信息确定所述报警蜂鸣器的报警声音强度;基于所述报警信息确定所述报警蜂鸣器的报警频率;基于所述报警信息确定所述报警蜂鸣器的报警间隔;基于所述报警声音强度、所述报警频率和所述报警间隔确定所 述第二报警动作。
可选地,该控制器还配置成:在对所述气体浓度进行分析,并在分析出所述气体浓度大于或者等于预设阈值的情况下,生成报警信息之后,向终端上的客户端发送第一字节和第二字节;其中,所述第一字节用于表征所述报警信息中的传感装置的种类,且所述第一字节中的每一位对应一种传感装置的种类;所述第二字节用于表征所述报警信息中的传感装置的报警等级,且所述第二字节中的每一位对应一个传感装置的报警等级。
本申请实施例所提供的系统,其实现原理及产生的技术效果和前述方法实施例相同,为简要描述,装置实施例部分未提及之处,可参考前述方法实施例中相应内容。
在本实施例中,还提供了一种具有处理器可执行的非易失的程序代码的计算机可读介质,所述程序代码使所述处理器执行上述任一所述的报警的方法。
另外,在本申请实施例的描述中,除非另有明确的规定和限定,术语“安装”、“相连”、“连接”应做广义理解,例如,可以是固定连接,也可以是可拆卸连接,或一体地连接;可以是机械连接,也可以是电连接;可以是直接相连,也可以通过中间媒介间接相连,可以是两个元件内部的连通。对于本领域的普通技术人员而言,可以具体情况理解上述术语在本申请中的具体含义。
在本申请的描述中,需要说明的是,术语“中心”、“上”、“下”、“左”、“右”、“竖直”、“水平”、“内”、“外”等指示的方位或位置关系为基于附图所示的方位或位置关系,仅是为了便于描述本申请和简化描述,而不是指示或暗示所指的装置或元件必须具有特定的方位、以特定的方位构造和操作,因此不能理解为对本申请的限制。此外,术语“第一”、“第二”、“第三”仅用于描述目的,而不能理解为指示或暗示相对重要性。
所属领域的技术人员可以清楚地了解到,为描述的方便和简洁,上述描述的系统、装置和单元的具体工作过程,可以参考前述方法实施例中的对应过程,在此不再赘述。
在本申请所提供的几个实施例中,应该理解到,所揭露的系统、装置和方法,可以通过其它的方式实现。以上所描述的装置实施例仅仅是示意性的,例如,所述单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,又例如,多个单元或组件可以结合或者可以集成到另一个系统,或一些特征可以忽略,或不执行。另一点,所显示或讨论的相互之间的耦合或直接耦合或通信连接可以是通过一些通信接口,装置或单元的间接耦合或通信连接,可以是电性,机械或其它的形式。
所述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部单元来实现本实施例方案的目的。
另外,在本申请各个实施例中的各功能单元可以集成在一个处理单元中,也可以是各 个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中。
所述功能如果以软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个处理器可执行的非易失的计算机可读取存储介质中。基于这样的理解,本申请的技术方案本质上或者说对现有技术做出贡献的部分或者该技术方案的部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质中,包括若干指令用以使得一台计算机设备(可以是个人计算机,服务器,或者网络设备等)执行本申请各个实施例所述方法的全部或部分步骤。而前述的存储介质包括:U盘、移动硬盘、只读存储器(ROM,Read-Only Memory)、随机存取存储器(RAM,Random Access Memory)、磁碟或者光盘等各种可以存储程序代码的介质。
最后应说明的是:以上所述实施例,仅为本申请的具体实施方式,用以说明本申请的技术方案,而非对其限制,本申请的保护范围并不局限于此,尽管参照前述实施例对本申请进行了详细的说明,本领域的普通技术人员应当理解:任何熟悉本技术领域的技术人员在本申请揭露的技术范围内,其依然可以对前述实施例所记载的技术方案进行修改或可轻易想到变化,或者对其中部分技术特征进行等同替换;而这些修改、变化或者替换,并不使相应技术方案的本质脱离本申请实施例技术方案的精神和范围,都应涵盖在本申请的保护范围之内。因此,本申请的保护范围应所述以权利要求的保护范围为准。
工业实用性
本申请实施例提供的报警的方法、装置和计算机可读介质,可以应用于各个智能家居设备的控制器中。能够实现智能家居设备与报警检测装置之间的联动控制,从而实现通过智能家居设备能够执行报警动作,而不仅仅是被用户所控制,使得智能家居设备的功能更加多元化。

Claims (15)

  1. 一种报警的方法,其特征在于,应用于智能家居设备的控制器,所述方法包括:
    所述控制器获取传感装置采集到的待检测气体的气体浓度;
    所述控制器对所述气体浓度进行分析,并在分析出所述气体浓度大于或者等于预设阈值的情况下,生成报警信息,其中,所述报警信息包括:传感装置的种类和传感装置的报警等级;
    所述控制器基于所述报警信息向智能家居设备发送控制信号,以使所述智能家居设备基于所述控制信号执行报警动作。
  2. 根据权利要求1所述的方法,其特征在于,所述控制器基于所述报警信息向智能家居设备发送控制信号包括:
    所述控制器从目标映射表中查询与所述报警信息相对应的报警动作,其中,所述目标映射表中包括智能家居设备的报警信息和报警动作之间的对应关系;
    所述控制器基于所述相对应的报警动作生成所述控制信号,并向所述智能家居设备发送所述控制信号。
  3. 根据权利要求2所述的方法,其特征在于,所述方法还包括:
    获取用户通过终端发送的配置信息,其中,所述配置信息为配置所述智能家居设备的报警信息和报警动作之间的对应关系的信息;
    基于所述配置信息对所述目标映射表进行更新。
  4. 根据权利要求1至3中任一项所述的方法,其特征在于,所述智能家居设备包括智能灯;
    所述控制器基于所述报警信息向智能家居设备发送控制信号还包括:
    所述控制器基于所述报警信息确定与所述智能灯相匹配的第一报警动作,其中,所述第一报警动作是通过以下至少一个参数确定的:智能灯的颜色,智能灯的亮度和智能灯的闪烁频率;
    所述控制器基于所述第一报警动作生成第一控制信号,并向所述智能灯发送所述第一控制信号,以使所述智能灯执行所述第一报警动作。
  5. 根据权利要求4所述的方法,其特征在于,所述控制器基于所述报警信息确定与所述智能灯相匹配的第一报警动作包括:
    所述控制器基于所述报警信息确定所述智能灯的报警颜色;
    所述控制器基于所述报警信息确定所述智能灯的报警亮度;
    所述控制器基于所述报警信息确定所述智能灯的报警闪烁频率;
    基于所述报警颜色,所述报警亮度和所述报警闪烁频率确定所述第一报警动作。
  6. 根据权利要求1至5中任一项所述的方法,其特征在于,所述智能家居设备包括报警蜂鸣器;
    所述控制器基于所述报警信息向智能家居设备发送控制信号包括:
    所述控制器基于所述报警信息确定与所述报警蜂鸣器相匹配的第二报警动作,其中,所述第二报警动作是通过以下至少一个参数确定的:报警蜂鸣器的声音强度,报警蜂鸣器的频率和报警蜂鸣器的报警间隔;
    所述控制器基于所述第二报警动作生成第二控制信号,并向所述报警蜂鸣器发送所述第二控制信号,以使所述报警蜂鸣器执行所述第二报警动作。
  7. 根据权利要求6所述的方法,其特征在于,所述控制器基于所述报警信息确定与所述报警蜂鸣器相匹配的第二报警动作包括:
    所述控制器基于所述报警信息确定所述报警蜂鸣器的报警声音强度;
    所述控制器基于所述报警信息确定所述报警蜂鸣器的报警频率;
    所述控制器基于所述报警信息确定所述报警蜂鸣器的报警间隔;
    基于所述报警声音强度、所述报警频率和所述报警间隔确定所述第二报警动作。
  8. 根据权利要求1至7中任一项所述的方法,其特征在于,在对所述气体浓度进行分析,并在分析出所述气体浓度大于或者等于预设阈值的情况下,生成报警信息之后,所述方法还包括:
    向终端上的客户端发送第一字节和第二字节;
    其中,所述第一字节用于表征所述报警信息中的传感装置的种类,且所述第一字节中的每一位对应一种传感装置的种类;所述第二字节用于表征所述报警信息中的传感装置的报警等级,且所述第二字节中的每一位对应一个传感装置的报警等级。
  9. 一种报警的系统,其特征在于,包括:传感装置和智能家居设备的控制器;
    所述传感装置配置成采集待检测气体的气体浓度;
    所述控制器配置成获取传感装置采集到的待检测气体的气体浓度;
    所述控制器还配置成对所述气体浓度进行分析,并在分析出所述气体浓度大于或者等于预设阈值的情况下,生成报警信息,其中,所述报警信息包括:传感装置的种类和传感装置的报警等级;
    所述控制器还配置成基于所述报警信息向智能家居设备发送控制信号,以使所述智能家居设备基于所述控制信号执行报警动作。
  10. 根据权利要求9所述的系统,其特征在于,所述控制器包括:
    查询模块,配置成从目标映射表中查询与所述报警信息相对应的报警动作,其中,所述目标映射表中包括智能家居设备的报警信息和报警动作之间的对应关系;
    第一生成模块,配置成基于所述相对应的报警动作生成所述控制信号,并向所述智能家居设备发送所述控制信号。
  11. 根据权利要求10所述的系统,其特征在于,所述控制器还包括:
    获取模块,配置成获取用户通过终端发送的配置信息,其中,所述配置信息为配置所述智能家居设备的报警信息和报警动作之间的对应关系的信息;
    更新模块,配置成基于所述配置信息对所述目标映射表进行更新。
  12. 根据权利要求9至11中任一项所述的系统,其特征在于,所述智能家居设备包括智能灯;所述控制器还包括:
    第一确定模块,配置成基于所述报警信息确定与所述智能灯相匹配的第一报警动作,其中,所述第一报警动作是通过以下至少一个参数确定的:智能灯的颜色,智能灯的亮度和智能灯的闪烁频率;
    第二生成模块,配置成基于所述第一报警动作生成第一控制信号,并向所述智能灯发送所述第一控制信号,以使所述智能灯执行所述第一报警动作。
  13. 根据权利要求12所述的系统,其特征在于,所述第一确定模块还配置成:
    基于所述报警信息确定所述智能灯的报警颜色;
    基于所述报警信息确定所述智能灯的报警亮度;
    基于所述报警信息确定所述智能灯的报警闪烁频率;
    基于所述报警颜色,所述报警亮度和所述报警闪烁频率确定所述第一报警动作。
  14. 根据权利要求9至13中任一项所述的系统,其特征在于,所述智能家居设备包括报警蜂鸣器;所述控制器还包括:
    第二确定模块,配置成基于所述报警信息确定与所述报警蜂鸣器相匹配的第二报警动作,其中,所述第二报警动作是通过以下至少一个参数确定的:报警蜂鸣器的声音强度,报警蜂鸣器的频率和报警蜂鸣器的报警间隔;
    第三生成模块,配置成基于所述第二报警动作生成第二控制信号,并向所述报警蜂鸣器发送所述第二控制信号,以使所述报警蜂鸣器执行所述第二报警动作。
  15. 一种具有处理器可执行的非易失的程序代码的计算机可读介质,其特征在于,所述程序代码使所述处理器执行上述权利要求1-8中任一所述方法。
PCT/CN2018/089256 2018-05-31 2018-05-31 一种报警的方法、装置和计算机可读介质 WO2019227392A1 (zh)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201880000640.9A CN110881278A (zh) 2018-05-31 2018-05-31 一种报警的方法、装置和计算机可读介质
PCT/CN2018/089256 WO2019227392A1 (zh) 2018-05-31 2018-05-31 一种报警的方法、装置和计算机可读介质

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2018/089256 WO2019227392A1 (zh) 2018-05-31 2018-05-31 一种报警的方法、装置和计算机可读介质

Publications (1)

Publication Number Publication Date
WO2019227392A1 true WO2019227392A1 (zh) 2019-12-05

Family

ID=68697238

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2018/089256 WO2019227392A1 (zh) 2018-05-31 2018-05-31 一种报警的方法、装置和计算机可读介质

Country Status (2)

Country Link
CN (1) CN110881278A (zh)
WO (1) WO2019227392A1 (zh)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113593192A (zh) * 2021-06-27 2021-11-02 广州智特信息科技有限公司 一种燃气安全联动控制方法、装置、设备及存储介质

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114038137A (zh) * 2021-10-30 2022-02-11 深圳市艾美迪电子科技有限公司 下肢骨折康复护理方法、系统、终端以及存储介质
CN114241735B (zh) * 2021-12-24 2023-10-24 长春昆仑建设股份有限公司 传感数据加载ip地址在模型中高风险定位的方法和系统

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2010267244A (ja) * 2009-04-15 2010-11-25 Yazaki Corp ガス警報器
CN203164721U (zh) * 2013-03-13 2013-08-28 安徽工程大学 室内环境监控装置
CN205508022U (zh) * 2016-03-04 2016-08-24 深圳万慧通自动化有限公司 一种智能声光报警器
CN106124703A (zh) * 2016-07-06 2016-11-16 中山市森灿光电科技有限公司 智能室内空气检测管理系统
CN107918998A (zh) * 2017-11-30 2018-04-17 孟笛 一种家用煤气泄漏监测预警系统及方法

Family Cites Families (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN201387414Y (zh) * 2008-12-20 2010-01-20 杜向阳 室内空气环境监控仪
CN102521947A (zh) * 2011-12-28 2012-06-27 河南汉威电子股份有限公司 一种co2浓度报警装置及方法
CN102797501B (zh) * 2012-08-07 2015-03-18 哈尔滨东方报警设备开发有限公司 一种无线便携式气体检测报警仪控制方法
CN204557717U (zh) * 2015-04-16 2015-08-12 福建师范大学 一种能自动监测博物馆安全状况的装置
CN105096545B (zh) * 2015-08-28 2018-09-25 广东奥迪威传感科技股份有限公司 智能报警系统及方法
CN105444349B (zh) * 2015-11-27 2019-04-16 小米科技有限责任公司 室内空气净化的方法及装置
CN106127986A (zh) * 2016-08-29 2016-11-16 龙元 一种app控制的窗户防盗远程及本地报警系统
CN106996619A (zh) * 2017-03-28 2017-08-01 深圳市元征科技股份有限公司 一种空气质量检测方法及终端

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2010267244A (ja) * 2009-04-15 2010-11-25 Yazaki Corp ガス警報器
CN203164721U (zh) * 2013-03-13 2013-08-28 安徽工程大学 室内环境监控装置
CN205508022U (zh) * 2016-03-04 2016-08-24 深圳万慧通自动化有限公司 一种智能声光报警器
CN106124703A (zh) * 2016-07-06 2016-11-16 中山市森灿光电科技有限公司 智能室内空气检测管理系统
CN107918998A (zh) * 2017-11-30 2018-04-17 孟笛 一种家用煤气泄漏监测预警系统及方法

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113593192A (zh) * 2021-06-27 2021-11-02 广州智特信息科技有限公司 一种燃气安全联动控制方法、装置、设备及存储介质

Also Published As

Publication number Publication date
CN110881278A (zh) 2020-03-13

Similar Documents

Publication Publication Date Title
JP6803417B2 (ja) 状況に特有の特徴および/または予警報構成を提供するスマートホームハザード検出器
US9883571B2 (en) Systems and methods of controlling light sources according to location
WO2019227392A1 (zh) 一种报警的方法、装置和计算机可读介质
US10637682B2 (en) Smart home learning system including user behavior
WO2016145743A1 (zh) 网络控制装置、智能家居系统及其控制方法
JP2021530196A (ja) スマートプラグの動作のシステムおよび方法
WO2022121298A1 (zh) 空调报警控制方法、装置、电子设备及存储介质
WO2019227388A1 (zh) 智能灯控制方法、装置及系统
CN110278135B (zh) 设备位置查找方法、装置、网关及存储介质
CN111491277B (zh) 无线物联网异常处理方法、智能网关及相关装置
WO2020252703A1 (zh) 设备控制方法、装置、服务器及存储介质
US20180035253A1 (en) Systems and methods for enforcing wireless regulatory compliance
US20220179377A1 (en) Controlled appliance and method for interacting with a remote control device via the ble standard
US10989426B2 (en) Information processing device, electronic apparatus, method, and program
CN110888335A (zh) 一种智能家居控制器及其交互方法、存储介质
CN111108489A (zh) 服务器、信息处理方法、网络系统以及空气净化器
CN113641105A (zh) 一种家电设备控制方法、装置、设备及存储介质
US20240008160A1 (en) Transmitting a notification in dependence on what caused a light source to be on while a user is away
TWM589400U (zh) 智慧家居控制系統
CN117742189A (zh) 设备参数的调整方法、装置、存储介质和处理器
TW202005474A (zh) 電器控制方法及系統

Legal Events

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

Ref document number: 18921185

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 18921185

Country of ref document: EP

Kind code of ref document: A1