Control method and device for ZigBee single fire switch of Internet of things smart home

文档序号:1342318 发布日期:2020-07-17 浏览:24次 中文

阅读说明:本技术 一种物联网智能家居ZigBee单火开关的控制方法及装置 (Control method and device for ZigBee single fire switch of Internet of things smart home ) 是由 陈建江 王志磊 于 2020-06-15 设计创作,主要内容包括:本发明实施例公开了一种物联网智能家居ZigBee单火开关的控制方法、控制装置、控制设备和存储介质。该方法应用于ZigBee单火开关控制系统,所述ZigBee单火开关控制系统包括控制终端、ZigBee单火开关和继电器,所述ZigBee单火开关分别与所述控制终端和所述继电器连接,所述继电器与用电设备连接;所述控制方法包括获取所述ZigBee单火开关的工作阶段;然后根据所述工作阶段控制所述ZigBee单火开关在工作过程中消耗的电流小于所述ZigBee单火开关控制系统的供电电流。本发明实施例提供的技术方案实现了防止ZigBee单火开关控制下的灯具等用电设备发生闪烁现象的效果。(The embodiment of the invention discloses a control method, a control device, control equipment and a storage medium of an Internet of things smart home ZigBee single fire switch. The method is applied to a ZigBee single fire switch control system, the ZigBee single fire switch control system comprises a control terminal, a ZigBee single fire switch and a relay, the ZigBee single fire switch is respectively connected with the control terminal and the relay, and the relay is connected with electric equipment; the control method comprises the steps of obtaining the working phase of the ZigBee single fire switch; and then controlling the current consumed by the ZigBee single live switch in the working process to be smaller than the power supply current of the ZigBee single live switch control system according to the working stage. The technical scheme provided by the embodiment of the invention realizes the effect of preventing electric equipment such as lamps and the like from flickering under the control of the ZigBee single fire switch.)

1. A control method of an Internet of things smart home ZigBee single fire switch is applied to a ZigBee single fire switch control system, the ZigBee single fire switch control system comprises a control terminal, a ZigBee single fire switch and a relay, the ZigBee single fire switch is respectively connected with the control terminal and the relay, and the relay is connected with electric equipment; the control method is characterized by comprising the following steps:

acquiring the working stage of the ZigBee single fire switch;

and controlling the current consumed by the ZigBee single fire switch in the working process to be smaller than the power supply current of the ZigBee single fire switch control system according to the working stage.

2. The control method according to claim 1, wherein the operating phase of the ZigBee single fire switch comprises a ZigBee single fire switch networking operating phase; the ZigBee single fire switch networking working stage comprises a working sub-stage and a dormancy sub-stage;

according to the working phase, the current consumed by the ZigBee single live switch in the working process is controlled to be smaller than the power supply current of the ZigBee single live switch control system, and the method comprises the following steps:

and adjusting the proportion between the duration of the working sub-phase and the duration of the sleep sub-phase to meet a first proportion, so that the electric energy stored by the ZigBee single-fire switch in the sleep sub-phase is greater than or equal to the electric energy consumed by the ZigBee single-fire switch in the next working sub-phase.

3. The control method of claim 2, wherein adjusting the ratio between the duration of the working sub-phase and the duration of the sleep sub-phase to satisfy a first ratio comprises:

adjusting the ratio between the duration of the working sub-phase T1 and the duration of the sleep sub-phase T2 to satisfy 0< T1/T2< 0.438.

4. The control method of claim 3, wherein adjusting the ratio between the duration of the working sub-phase and the duration of the sleep sub-phase to satisfy a first ratio comprises:

adjusting the ratio between the duration of the working sub-phase T1 and the duration of the sleep sub-phase T2 to satisfy 0< T1/T2< 0.23.

5. The control method of claim 1, wherein the operational phase further comprises a relay control phase;

according to the working phase, the current consumed by the ZigBee single live switch in the working process is controlled to be smaller than the power supply current of the ZigBee single live switch control system, and the method comprises the following steps:

sending a relay action execution instruction to the ZigBee one-fire switch, controlling the ZigBee one-fire switch to send an action instruction to the relay according to the relay action execution instruction, wherein the current consumed in the process that the ZigBee one-fire switch sends the action instruction to the relay according to the relay action execution instruction is smaller than the power supply current of the ZigBee one-fire switch control system;

after the first preset time, a relay state reporting instruction is sent to the ZigBee single fire switch, the ZigBee single fire switch is controlled to report the relay state according to the relay state reporting instruction, and the current consumed in the process of reporting the relay state by the ZigBee single fire switch according to the relay state reporting instruction is smaller than the power supply current of the ZigBee single fire switch control system.

6. The control method according to claim 5, characterized in that the first preset time T satisfies 500ms ≦ T ≦ 1 s.

7. The control method according to claim 5, wherein after a first preset time, sending a relay state reporting instruction to the ZigBee single fire switch, and controlling the ZigBee single fire switch to report the relay state according to the relay state reporting instruction comprises:

after the first preset time, a relay state reporting instruction is sent to the ZigBee single fire switch, and the ZigBee single fire switch is controlled to report the relay state to a ZigBee networking gateway or a user using program according to the relay state reporting instruction.

8. Control device of thing networking intelligence house zigBee single fire switch, its characterized in that includes

The working phase acquisition module: the working stage is used for acquiring the ZigBee single fire switch;

a consumption current control module: and the power supply control circuit is used for controlling the current consumed by the ZigBee single live switch in the working process to be smaller than the power supply current of the ZigBee single live switch control system according to the working stage.

9. The utility model provides a controlgear of thing networking intelligence house zigBee single fire switch which characterized in that, equipment includes:

one or more processors;

a storage device for storing one or more programs,

when the one or more programs are executed by the one or more processors, the one or more processors are enabled to realize the control method of the Internet of things smart home ZigBee single fire switch as claimed in any one of claims 1-7.

10. A computer-readable storage medium, on which a computer program is stored, characterized in that the program, when executed by a processor, implements the method for controlling an internet of things smart home ZigBee one fire switch as claimed in any one of claims 1-7.

Technical Field

The embodiment of the invention relates to the technology of intelligent lamps, in particular to a control method, a control device, control equipment and a storage medium of an Internet of things intelligent home ZigBee single fire switch.

Background

Most of intelligent switches in the current market are ZigBee zero-fire switches, and intelligent lamp flicker does not exist in the intelligent ZigBee switches of the zero-fire version. In actual home users, most families only have a live wire in decoration switch panel department, do not reserve the zero line, if need realize that light zero live wire switch is wireless to be controlled, must pull a zero line through the heavy construction work of punching a hole through the wall, the house that decorates like this is inconvenient installation intelligence switch.

The intelligent ZigBee switch with single fire also appears in the current market, but the intelligent ZigBee switch with single fire has the problem of lamp flickering. The reason for causing the twinkling problem of the intelligent ZigBee single fire switch panel is as follows: in order to realize remote control, the intelligent ZigBee single fire switch is required to be kept to work uninterruptedly, and the intelligent ZigBee single fire switch panel is insufficient in power supply, so that the problem of lamp flickering under the control of the intelligent ZigBee single fire switch is often caused. For example, the intelligent ZigBee single fire switch panel can consume a large amount of current in the ZigBee networking process, and this can lead to the lamp to flicker incessantly.

Therefore, the problem of continuous flicker of the intelligent lamp under the control of the ZigBee single fire switch panel is solved, and the problem is mainly solved by the intelligent ZigBee single fire switch panel.

Disclosure of Invention

The embodiment of the invention provides a control method, a control device, control equipment and a storage medium of an Internet of things smart home ZigBee single fire switch. The effect of preventing electric equipment such as lamps and lanterns under the control of zigBee single fire switch from flickering is achieved.

In a first aspect, the embodiment of the invention provides a control method of a ZigBee single fire switch of an Internet of things smart home, which is applied to a ZigBee single fire switch control system, wherein the ZigBee single fire switch control system comprises a control terminal, a ZigBee single fire switch and a relay, the ZigBee single fire switch is respectively connected with the control terminal and the relay, and the relay is connected with an electric device; the control method comprises the following steps:

acquiring the working stage of the ZigBee single fire switch;

and controlling the current consumed by the ZigBee single fire switch in the working process to be smaller than the power supply current of the ZigBee single fire switch control system according to the working stage.

Optionally, the working phase of the ZigBee single fire switch comprises a networking working phase of the ZigBee single fire switch; the ZigBee single fire switch networking working stage comprises a working sub-stage and a dormancy sub-stage;

according to the working phase, the current consumed by the ZigBee single live switch in the working process is controlled to be smaller than the power supply current of the ZigBee single live switch control system, and the method comprises the following steps:

and adjusting the proportion between the duration of the working sub-phase and the duration of the sleep sub-phase to meet a first proportion so that the electric energy stored by the ZigBee single-fire switch in the sleep sub-phase is greater than or equal to the electric energy consumed by the ZigBee single-fire switch in the next working sub-phase.

Optionally, adjusting a ratio between the duration of the working sub-phase and the duration of the sleep sub-phase to satisfy a first ratio includes:

adjusting the ratio between the duration of the working sub-phase T1 and the duration of the sleep sub-phase T2 to satisfy 0< T1/T2< 0.438.

Optionally, adjusting a ratio between the duration of the working sub-phase and the duration of the sleep sub-phase to satisfy a first ratio includes:

adjusting the ratio between the duration of the working sub-phase T1 and the duration of the sleep sub-phase T2 to satisfy 0< T1/T2< 0.23.

Optionally, the working phase further includes a relay control phase;

according to the working phase, the current consumed by the ZigBee single live switch in the working process is controlled to be smaller than the power supply current of the ZigBee single live switch control system, and the method comprises the following steps:

sending a relay action execution instruction to the ZigBee one-fire switch, controlling the ZigBee one-fire switch to send an action instruction to the relay according to the relay action execution instruction, wherein the current consumed in the process that the ZigBee one-fire switch sends the action instruction to the relay according to the relay action execution instruction is smaller than the power supply current of the ZigBee one-fire switch control system;

after the first preset time, a relay state reporting instruction is sent to the ZigBee single fire switch, the ZigBee single fire switch is controlled to report the relay state according to the relay state reporting instruction, and the current consumed in the process of reporting the relay state by the ZigBee single fire switch according to the relay state reporting instruction is smaller than the power supply current of the ZigBee single fire switch control system.

Optionally, the first preset time T is greater than or equal to 500ms and less than or equal to 1 s.

Optionally, after a first preset time, sending a relay state reporting instruction to the ZigBee single fire switch, and controlling the ZigBee single fire switch to report the relay state according to the relay state reporting instruction includes:

after the first preset time, a relay state reporting instruction is sent to the ZigBee single fire switch, and the ZigBee single fire switch is controlled to report the relay state to a ZigBee networking gateway or a user using program according to the relay state reporting instruction.

In a second aspect, an embodiment of the present invention further provides a control device for a ZigBee single fire switch of an internet of things smart home, where the control device includes:

the working phase acquisition module: the working stage is used for acquiring the ZigBee single fire switch;

a consumption current control module: and the power supply control circuit is used for controlling the current consumed by the ZigBee single live switch in the working process to be smaller than the power supply current of the ZigBee single live switch control system according to the working stage.

In a third aspect, an embodiment of the present invention further provides a control device for a ZigBee single fire switch of an internet of things smart home, where the device includes:

one or more processors;

a storage device for storing one or more programs,

when the one or more programs are executed by the one or more processors, the one or more processors are enabled to realize the control method of the Internet of things smart home ZigBee single fire switch as claimed in any one of claims 1-7.

In a fourth aspect, an embodiment of the present invention further provides a computer-readable storage medium, on which a computer program is stored, where the computer program is executed by a processor to implement the method for controlling an internet of things smart home ZigBee single fire switch as described in the first aspect.

The control method of the ZigBee single fire switch in the embodiment of the invention is applied to a ZigBee single fire switch control system, the ZigBee single fire switch control system comprises a control terminal, the ZigBee single fire switch and a relay, the ZigBee single fire switch is respectively connected with the control terminal and the relay, and the relay is connected with electric equipment. According to the technical scheme, the working stage of the ZigBee single fire switch is obtained; and then controlling the current consumed by the ZigBee single fire switch in the working process to be smaller than the power supply current of the ZigBee single fire switch control system according to the working stage, namely, controlling the current consumed by the ZigBee single fire switch in the working process to be reduced as much as possible to meet the normal working voltage of the ZigBee single fire switch so as to prevent the lamps under the control of the ZigBee single fire switch from flickering, and solving the problem that the lamps under the control of the ZigBee single fire switch flicker caused by the fact that the ZigBee single fire switch is switched off due to insufficient power supply of the ZigBee single fire switch in the prior art.

Drawings

Fig. 1 is a flowchart of a control method of an internet of things smart home ZigBee single fire switch according to an embodiment of the present invention;

FIG. 2 is a flowchart of a control method of an Internet of things smart home ZigBee single fire switch provided by the second embodiment of the invention;

fig. 3 is a schematic structural diagram of a control device of an internet of things smart home ZigBee single fire switch according to a third embodiment of the present invention;

fig. 4 is a schematic structural diagram of a control device of an internet of things smart home ZigBee single fire switch according to a fourth embodiment of the present invention.

Detailed Description

The present invention will be described in further detail with reference to the accompanying drawings and examples. It is to be understood that the specific embodiments described herein are merely illustrative of the invention and are not limiting of the invention. It should be further noted that, for the convenience of description, only some of the structures related to the present invention are shown in the drawings, not all of the structures.

12页详细技术资料下载
上一篇:一种医用注射器针头装配设备
下一篇:一种印刷除静电装置

网友询问留言

已有0条留言

还没有人留言评论。精彩留言会获得点赞!

精彩留言,会给你点赞!