CN115665595A - Wireless switch, its processing method, and control system - Google Patents
Wireless switch, its processing method, and control system Download PDFInfo
- Publication number
- CN115665595A CN115665595A CN202211450260.XA CN202211450260A CN115665595A CN 115665595 A CN115665595 A CN 115665595A CN 202211450260 A CN202211450260 A CN 202211450260A CN 115665595 A CN115665595 A CN 115665595A
- Authority
- CN
- China
- Prior art keywords
- wireless switch
- network
- switch
- message
- control
- 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.)
- Pending
Links
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04Q—SELECTING
- H04Q9/00—Arrangements in telecontrol or telemetry systems for selectively calling a substation from a main station, in which substation desired apparatus is selected for applying a control signal thereto or for obtaining measured values therefrom
-
- G—PHYSICS
- G08—SIGNALLING
- G08C—TRANSMISSION SYSTEMS FOR MEASURED VALUES, CONTROL OR SIMILAR SIGNALS
- G08C17/00—Arrangements for transmitting signals characterised by the use of a wireless electrical link
- G08C17/02—Arrangements for transmitting signals characterised by the use of a wireless electrical link using a radio link
-
- G—PHYSICS
- G08—SIGNALLING
- G08C—TRANSMISSION SYSTEMS FOR MEASURED VALUES, CONTROL OR SIMILAR SIGNALS
- G08C2201/00—Transmission systems of control signals via wireless link
- G08C2201/40—Remote control systems using repeaters, converters, gateways
- G08C2201/41—Remote control of gateways
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04Q—SELECTING
- H04Q2209/00—Arrangements in telecontrol or telemetry systems
- H04Q2209/40—Arrangements in telecontrol or telemetry systems using a wireless architecture
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Selective Calling Equipment (AREA)
- Mobile Radio Communication Systems (AREA)
- Telephone Function (AREA)
Abstract
本发明提供了一种无线开关及其处理方法,以及控制系统,其中的无线开关,包括:核心处理模块、供电模块、至少一个操作件与至少一个操作感应单元;所述核心处理模块用于:在未处于配网模式时,响应于所述操作件的开关配网操作而带来的至少一个触发信号,确定所述无线开关进入配网模式;在处于所述配网模式时,产生并对外发出开关配网报文,配网完成后,响应于所述操作件的施控操作而带来的至少一个触发信号,产生并对外发出施控报文,以使得:所述施控报文所指向的控制结果能够被对应的受控设备执行。
The present invention provides a wireless switch, its processing method, and a control system, wherein the wireless switch includes: a core processing module, a power supply module, at least one operating element, and at least one operation sensing unit; the core processing module is used for: When not in the network distribution mode, determine that the wireless switch enters the network distribution mode in response to at least one trigger signal brought by the switch network distribution operation of the operating member; when in the network distribution mode, generate and externally Send a switch network distribution message, after the network distribution is completed, generate and send a control message to the outside in response to at least one trigger signal brought by the control operation of the operating part, so that: the control message is: The pointed control result can be executed by the corresponding controlled device.
Description
技术领域technical field
本发明涉及领域开关领域,尤其涉及一种无线开关及其处理方法,以及控制系统。The invention relates to the field of field switches, in particular to a wireless switch, a processing method thereof, and a control system.
背景技术Background technique
无线开关,可理解为配置有无线通信电路的开关,无线通信电路通常采用射频信号实现对外的交互。。A wireless switch can be understood as a switch equipped with a wireless communication circuit, and the wireless communication circuit usually uses radio frequency signals to achieve external interaction. .
无线开关实施控制时,将响应于对开关的操作对外发出控制报文,然而,现有相关技术中,无线开关通常只能对配对的接收器进行控制,难以满足多样的控制需求。When the wireless switch implements control, it will send a control message in response to the operation of the switch. However, in the related art, the wireless switch usually can only control the paired receiver, which is difficult to meet various control requirements.
发明内容Contents of the invention
本发明提供一种无线开关及其处理方法,以及控制系统,以解决现有技术中存在的问题。The invention provides a wireless switch, its processing method, and a control system to solve the problems in the prior art.
根据本发明的第一方面,提供了一种无线开关,包括:核心处理模块、供电模块、至少一个操作件与至少一个操作感应单元;According to a first aspect of the present invention, a wireless switch is provided, including: a core processing module, a power supply module, at least one operating element, and at least one operating sensing unit;
所述供电模块电连接所述核心处理模块,以向所述核心处理模块供电;The power supply module is electrically connected to the core processing module to supply power to the core processing module;
所述操作件能够响应于操作而触动对应的操作感应单元;The operating member can touch the corresponding operation sensing unit in response to the operation;
所述操作感应单元电连接所述核心处理模块,以在被触动时向所述核心处理模块传递触发信号;The operation sensing unit is electrically connected to the core processing module, so as to transmit a trigger signal to the core processing module when touched;
所述核心处理模块用于:The core processing module is used for:
在未处于配网模式时,响应于所述操作件的开关配网操作而带来的至少一个触发信号,确定所述无线开关进入配网模式;When it is not in the network distribution mode, it is determined that the wireless switch enters the network distribution mode in response to at least one trigger signal brought by the switch network distribution operation of the operating member;
在处于所述配网模式时,产生并对外发出开关配网报文,以使得:指定设备获取到所述开关配网报文后,指示所述无线开关加入网关对应的网络,以完成配网;所述指定设备包括终端和/或所述网关;其中,完成配网后的无线开关能够通过所述网络与所述网关通信;When in the network distribution mode, generate and send a switch network distribution message to the outside, so that: after the designated device obtains the switch network distribution message, instruct the wireless switch to join the network corresponding to the gateway to complete the network distribution ; The designated device includes a terminal and/or the gateway; wherein, the wireless switch after completing network distribution can communicate with the gateway through the network;
配网完成后,响应于所述操作件的施控操作而带来的至少一个触发信号,产生并对外发出施控报文,以使得:所述施控报文所指向的控制结果能够被对应的受控设备执行。After the network distribution is completed, in response to at least one trigger signal brought by the control operation of the operating element, a control message is generated and sent to the outside, so that: the control result pointed to by the control message can be correspondingly The controlled device executes.
根据本发明的第二方面,提供了一种无线开关的处理方法,包括:According to a second aspect of the present invention, a method for processing a wireless switch is provided, including:
在未处于配网模式时,所述无线开关响应于针对所述无线开关的开关配网操作,进入配网模式;When not in the network distribution mode, the wireless switch enters the network distribution mode in response to a switch network distribution operation for the wireless switch;
在处于所述配网模式时,所述无线开关产生并对外发出开关配网报文,以使得:指定设备获取到所述开关配网报文后,将所述无线开关加入所述指定设备对应的网络,以完成配网;When in the network distribution mode, the wireless switch generates and sends a switch network distribution message to the outside, so that: after the designated device obtains the switch network distribution message, the wireless switch is added to the designated device corresponding network to complete the distribution network;
在处于已配网模式时,所述无线开关响应于针对所述无线开关的施控操作,产生并对外发出施控报文,以使得:所述施控报文所指向的控制结果能够被执行。When in the configured network mode, the wireless switch generates and sends out a control message in response to the control operation of the wireless switch, so that: the control result pointed to by the control message can be executed .
根据本发明的第三方面,提供了一种控制系统,包括第一方面及其可选方案涉及的无线开关、智能控制器、终端与网关;所述网络为所述网关的网络,所述无线开关与所述智能控制器均能够在加入所述网络后与所述网关通信;所述终端能够直接或间接与所述网关通信;According to a third aspect of the present invention, a control system is provided, including the wireless switch, the intelligent controller, the terminal, and the gateway involved in the first aspect and its optional solutions; the network is the network of the gateway, and the wireless Both the switch and the intelligent controller can communicate with the gateway after joining the network; the terminal can directly or indirectly communicate with the gateway;
所述智能控制器作为所述无线开关的所述受控设备时,所述智能控制器能够自所述网关接收第一控制信息,并执行所述第一控制信息所指向的控制结果;所述第一控制信息是基于所述无线开关的一施控报文而产生的。When the intelligent controller is used as the controlled device of the wireless switch, the intelligent controller can receive first control information from the gateway, and execute the control result pointed to by the first control information; The first control information is generated based on a control message of the wireless switch.
本发明提供的无线开关及其处理方法,以及控制系统中,无线开关可通过配网模式下的配网,加入到网关的网络,进而,基于所加入的网络,实现无线开关与网关之间的通信,在此基础上,无线开关的施控报文可不限于发送至所配对的设备(即受控设备将不再局限于所配对的设备),可见,本发明有效扩展了无线开关所能控制的对象,便于满足更多样的控制需求,例如针对加入网络内的其他设备进行控制。In the wireless switch and its processing method provided by the present invention, and in the control system, the wireless switch can be added to the network of the gateway through the distribution network in the distribution network mode, and then, based on the added network, the connection between the wireless switch and the gateway can be realized. Communication, on this basis, the control message of the wireless switch can not be limited to be sent to the paired device (that is, the controlled device will no longer be limited to the paired device), it can be seen that the present invention effectively expands the wireless switch can control objects to meet more diverse control requirements, such as controlling other devices that join the network.
附图说明Description of drawings
为了更清楚地说明本发明实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动性的前提下,还可以根据这些附图获得其他的附图。In order to more clearly illustrate the technical solutions in the embodiments of the present invention or the prior art, the following will briefly introduce the drawings that need to be used in the description of the embodiments or the prior art. Obviously, the accompanying drawings in the following description are only These are some embodiments of the present invention. For those skilled in the art, other drawings can also be obtained according to these drawings without any creative effort.
图1是本发明一实施例中控制系统的构造示意图一;Fig. 1 is a structural schematic diagram 1 of a control system in an embodiment of the present invention;
图2是本发明一实施例中控制系统的构造示意图二;Fig. 2 is a structural schematic diagram II of the control system in an embodiment of the present invention;
图3是本发明一实施例中控制系统的构造示意图三;Fig. 3 is a schematic diagram of the third structure of the control system in an embodiment of the present invention;
图4是本发明一实施例中无线开关的构造示意图一;FIG. 4 is a first structural schematic diagram of a wireless switch in an embodiment of the present invention;
图5是本发明一实施例中无线开关的构造示意图二;Fig. 5 is a schematic diagram of the second structure of the wireless switch in an embodiment of the present invention;
图6是本发明一实施例中无线开关的构造示意图三;Fig. 6 is a schematic diagram of the third structure of the wireless switch in an embodiment of the present invention;
图7是本发明一实施例中无线开关的结构示意图;Fig. 7 is a schematic structural diagram of a wireless switch in an embodiment of the present invention;
图8是本发明一实施例中智能控制器的构造示意图;Fig. 8 is a structural schematic diagram of an intelligent controller in an embodiment of the present invention;
图9是本发明一实施例中智能控制器的结构示意图一;Fig. 9 is a structural schematic diagram 1 of an intelligent controller in an embodiment of the present invention;
图10是本发明一实施例中智能控制器的结构示意图二;Fig. 10 is a structural schematic diagram II of an intelligent controller in an embodiment of the present invention;
图11是本发明一实施例中无线开关的处理方法的流程示意图。Fig. 11 is a schematic flowchart of a processing method of a wireless switch in an embodiment of the present invention.
具体实施方式Detailed ways
下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。The following will clearly and completely describe the technical solutions in the embodiments of the present invention with reference to the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are only some, not all, embodiments of the present invention. Based on the embodiments of the present invention, all other embodiments obtained by persons of ordinary skill in the art without making creative efforts belong to the protection scope of the present invention.
本发明的说明书和权利要求书及上述附图中的术语“第一”、“第二”、“第三”“第四”等(如果存在)是用于区别类似的对象,而不必用于描述特定的顺序或先后次序。应该理解这样使用的数据在适当情况下可以互换,以便这里描述的本发明的实施例能够以除了在这里图示或描述的那些以外的顺序实施。此外,术语“包括”和“具有”以及他们的任何变形,意图在于覆盖不排他的包含,例如,包含了一系列步骤或单元的过程、方法、系统、产品或设备不必限于清楚地列出的那些步骤或单元,而是可包括没有清楚地列出的或对于这些过程、方法、产品或设备固有的其它步骤或单元。The terms "first", "second", "third", "fourth", etc. (if any) in the description and claims of the present invention and the above drawings are used to distinguish similar objects and not necessarily Describe a specific order or sequence. It is to be understood that the data so used are interchangeable under appropriate circumstances such that the embodiments of the invention described herein can be practiced in sequences other than those illustrated or described herein. Furthermore, the terms "comprising" and "having", as well as any variations thereof, are intended to cover a non-exclusive inclusion, for example, a process, method, system, product or device comprising a sequence of steps or elements is not necessarily limited to the expressly listed instead, may include other steps or elements not explicitly listed or inherent to the process, method, product or apparatus.
下面以具体地实施例对本发明的技术方案进行详细说明。下面这几个具体的实施例可以相互结合,对于相同或相似的概念或过程可能在某些实施例不再赘述。The technical solution of the present invention will be described in detail below with specific embodiments. The following specific embodiments may be combined with each other, and the same or similar concepts or processes may not be repeated in some embodiments.
请参考图1至图3,本公开提供了一种控制系统,其中可包括无线开关1、智能控制器2、终端5与网关3。Please refer to FIG. 1 to FIG. 3 , the present disclosure provides a control system, which may include a wireless switch 1 , an
其中的无线开关1,可以为能够基于无线通信而对外通信的任意开关,其中的无线通信可以是射频、蓝牙、Wifi等任意方式,在后文的部分描述中,主要基于蓝牙方式进行描述。The wireless switch 1 can be any switch capable of external communication based on wireless communication, and the wireless communication can be any method such as radio frequency, bluetooth, Wifi, etc. In the following part of the description, it is mainly described based on the bluetooth method.
其中的智能控制器2,可以为任意能够受控实现通断控制的设备或设备的组合,且其设有处理模块(例如处理模块205)等具备数据处理能力的电路,还设有无线通信模块(例如无线通信模块202)等具备无线通信能力的电路,其中一种举例中,其可以为墙壁开关,其他举例中,智能控制器还可能是风扇、灯具、插座、垃圾处理设备等,或者与之连接的设备。智能控制器2对外的通信方式可以包含以下至少之一:射频、蓝牙、Wifi、移动网络等;在后文的部分描述中,主要基于蓝牙方式进行描述。The
其中的终端5,可以为任意具备数据处理能力与对外通信能力的设备或设备的组合,例如其可以为手机、电脑、平板电脑、计算机、车机等。The terminal 5 may be any device or combination of devices with data processing capability and external communication capability, for example, it may be a mobile phone, a computer, a tablet computer, a computer, a vehicle, and the like.
其中的网关3,可以为任意网络的网关,该网络例如可以为Wifi网络、Zigbee网络、蓝牙网络中任意之一;在后文的部分描述中,主要基于蓝牙方式进行描述。进一步的方案中,网关3可接入互联网,从而与接入互联网的其他设备(例如终端5、音箱装置4)实现数据交换。此外,网关3可以为专用于作为网关3的网关设备,也可以是具有网关功能的其他设备(例如可以为具有网关功能的音箱装置、具有网关功能的显示装置、具有网关功能的计算机、主机等等)。The
控制系统,还可包括音箱装置4,该音箱装置可理解为具有声音播放能力的任意设备,其还可具备对外有线或无线通信的能力。部分方案中,该音箱装置4可以为智能语音音箱,进而,其还可具有语音识别能力、协议转换能力等。部分方案中,该音箱装置4可通过加入网关的网络而实现对外的通信,部分方案中,该音箱装置4也可通过加入终端的网络(例如终端的Wifi热点或其所连接的网络)而实现对外的通信,部分方案中,音箱装置4也可以其他方式(例如加入其他Wifi网络)而实现对外的通信。The control system can also include a
若音箱装置4采用具备网关功能的音箱装置,则:可利用音箱装置4作为网关,进而,控制系统可包括具有网关功能的音箱装置4(其也是一种网关),无需同时配置音箱装置4与网关。If the
可见,网关3可以是独立于所述音箱装置4的网关,也可利用所述音箱装置作为所述网关。It can be seen that the
音箱装置4还可具有蓝牙通信能力,进而,在未配网时,音箱装置4可基于蓝牙与终端、网关等通信,例如在配网时,可基于蓝牙发出音箱配网报文,终端或网关可基于音箱配网报文实现配网,进而将其加入到蓝牙网络或Wifi网络。The
部分方案中,控制系统还可包括服务器,网关、终端均可与服务器交互,网关与终端之间的数据交互,可基于服务器实现,音箱装置4也可与服务器交互,进而基于服务器与终端和/或网关交互。部分举例中,服务器可主要起到数据转发的作用,部分举例中,服务器也可起到数据存储、处理的作用。In some schemes, the control system can also include a server, the gateway and the terminal can interact with the server, the data interaction between the gateway and the terminal can be realized based on the server, and the
其中一种实施方式中,若网关3为蓝牙网关,对应的网络为蓝牙网络(例如蓝牙Mesh网络),无线开关1可在配网后加入蓝牙网络,并通过蓝牙信号与网关3(或具有网关功能的音箱装置4)通信。与此同时,无线开关1还可通过蓝牙信号与智能控制器2,进而,无线开关可基于蓝牙信号向网关(或具有网关功能的音箱装置4)发报文,也可基于蓝牙信号向智能控制器2发报文。此外,智能控制器2也可在配网后加入蓝牙网络,并通过蓝牙信号与网关3(或具有网关功能的音箱装置4)通信。进而,无线开关1与终端5间的数据交互、智能控制器2与终端5间的数据交互,均可基于网关3(或具有网关功能的音箱装置4)的转发(转发时也可附带其他验证、转换等处理)。In one of the implementations, if the
其中一种实施方式中,若音箱装置4并非网关3,则:音箱装置4也可在配网后加入网关3的网络。In one of the implementation manners, if the
其中一种实施方式中,音箱装置4可在配网后加入终端的Wifi网络(例如Wifi热点的网络或其所连接的Wifi网络),进而,基于Wifi接入互联网,从而与网关、终端等通信。In one of the implementations, the
以下将对本发明实施例部分方案中的无线开关1进行详细介绍,而本发明实施例的范围也可不限于此。The wireless switch 1 in some solutions of the embodiments of the present invention will be described in detail below, but the scope of the embodiments of the present invention may not be limited thereto.
请参考图4至图7,无线开关1,可以包括:核心处理模块103、供电模块104、至少一个操作件101与至少一个操作感应单元102。Please refer to FIG. 4 to FIG. 7 , the wireless switch 1 may include: a
所述供电模块104电连接所述核心处理模块103,以向所述核心处理模块103供电;其中,供电模块104可供应一种电压,也可供应多种电压。The
其中一种实施方式中,供电模块104包括:电源单元1041与能量缓存单元1042。In one implementation manner, the
其中的电源单元1041,可理解为能够提供电源的任意电路,进一步的举例中,所述电源单元1041包括以下至少之一:动能发电机、太阳能电池板、电池;以图6为例,电源单元1041可以包括电池BAT;其中的电池可以是可充电电池,也可以是不可充电电池,例如,该电池可以为纽扣电池。此外,电源单元1041中还可设有其他稳压、滤波、整流等作用的器件或器件的组合。The
其中的能量缓存单元1042可理解为能够对电源单元1041所提供的电能进行缓存的电路;进一步的举例中,以图6为例,能量缓存单元1042可以包括电容C,其中,电容C的数量为图示的一个,也可以为多个,不同的电容C可输出相同电压,也可输出不同电压,可输出至核心处理模块的不同节点,也可输出至同一节点;此外,电源单元1041中还可设有其他稳压、滤波、整流等作用的器件或器件的组合。The
当电源单元1041采用电池BAT时,电池BAT的输出的电参数(例如电压、电流、功率等)等可能无法准确、稳定地满足核心处理模块103的用电需求,进而,需要使用一个或多个电容C进行电能缓存,从而使得输出至核心处理模块103的供电能够准确、稳定地满足核心处理模块103的需求。When the
其中的核心处理模块103可理解为具有数据处理能力与通信能力的电路模块,在此基础上,核心处理模块103可附加其他任意功能的电路或电路组合。进一步方案中,核心处理模块103也可具有其他检测、转换功能。The
其中一种实施方式中,核心处理模块103包括:处理单元1031、无线通信单元1032,处理单元1031电连接无线通信单元1032;处理单元1031还电连接操作感应单元102、供电模块104(例如其能量缓存单元)。In one embodiment, the
其中,处理单元1031可经无线通信单元1032对外实现无线通信(例如通过无线通信单元与网关、具有网关功能的音箱装置、智能控制器等)通信。处理单元1031与无线通信单元1032可集成在一起,也可以是分立的。无线通信单元1032可以为蓝牙单元、射频单元、Wifi单元、Zigbee单元中任意之一,无线通信单元1032可电连接对应的天线105。Wherein, the
进一步举例中,核心处理模块103还可包括电压采集单元1033,电压采集单元1033电连接处理单元1031,还可电连接供电模块104,例如可电连接于电源单元1041和/或能量缓存单元1042。通过电压采集单元1033,可采集所述供电模块104的电压信息,例如可采集其中的电源单元1041和/或能量缓存单元1042的电压信息,其中,电源单元1041的电压信息可例如为电池BAT的电压信息,能量缓存单元1042的电压信息可例如为电容C的电压信息。电压采集单元1033可采用模数转换的方式将采集到的模拟的电压信息转换为数字的电压信息反馈至处理单元1031,也可通过分压电阻采样电压信息,得到采样电压,进而将采样电压传递至处理单元1031。不论采用何种电压采集方式,均不脱离以上举例的范围。In a further example, the
其中的操作件101可理解为无线开关的按键,也可理解为包括无线开关的按键,以及传动件等可一同运动的部件的组合。所述操作件101能够响应于操作而触动对应的操作感应单元102;其中的触动可以是直接触动,也可以是间接触动(例如经其他传动件传动)。The
其中的操作感应单元102电连接所述核心处理模块,以在被触动时向所述核心处理模块103传递触发信号。进一步举例中,请参考图6,操作感应单元102可以包括开关器件(例如微动开关),进而,一种举例中,当被触动时,触发开关器件导通,此时,可将核心处理模块103(例如其处理单元1031)的相应端口拉到地,使其获悉操作件101发生了下按,当未被触动时或停止触动后,触发开关器件断开,此时,可停止将核心处理模块103(例如其处理单元1031)的相应端口拉到地,使其获悉操作件101发生了释放;其他举例中,开关器件也可在被触动时断开,在未被触动时或停止触动后导通,开关器件可如图所示下拉到地,也可能上拉至指定电位。The
此外,操作件101被下按后,若其被释放(即使其下按的作用力消失之后),操作件101可在操作感应单元102(例如微动开关)和/或其他用于传动、复位的部件的驱动下复位,回到未被下按时的位置。In addition, after the operating
所述核心处理模块103用于:The
响应于所述操作件的施控操作而带来的至少一个触发信号,产生施控报文,并对外发出施控报文。A control message is generated in response to at least one trigger signal brought about by the control operation of the operating element, and the control message is sent to the outside.
通过对施控报文的发出,可使得:施控报文所指向的控制结果能够被对应的受控设备执行。其中的受控设备可以是直接受控的智能控制器,也可以是加入网关网络的设备(例如智能控制器、音箱装置,也可不限于此),还可以是其他可与网关、终端交互的设备(例如加入终端的Wifi热点的音箱装置,也可不限于此),还可以是智能控制器所连接的设备。By sending the control message, the control result pointed to by the control message can be executed by the corresponding controlled device. The controlled devices can be directly controlled smart controllers, or devices that join the gateway network (such as smart controllers, speaker devices, but not limited to this), or other devices that can interact with gateways and terminals (For example, a speaker device added to a Wifi hotspot of the terminal, but not limited thereto), it may also be a device connected to an intelligent controller.
此外,在无线开关与智能控制器配对后,无线开关可直接将施控报文发送至智能控制器,从而使智能控制器或其所连接的设备执行对应的控制结果;在无线开关与网关配网后,无线开关可将施控报文发送至网关,网关基于施控报文向智能控制器或其他设备发送控制信息,也可将其转发至终端或服务器,进而,终端或服务器可基于此控制其他设备执行对应的控制结果。In addition, after the wireless switch is paired with the smart controller, the wireless switch can directly send the control message to the smart controller, so that the smart controller or its connected devices can execute the corresponding control results; After the network, the wireless switch can send the control message to the gateway, and the gateway can send control information to the intelligent controller or other devices based on the control message, and can also forward it to the terminal or server, and then the terminal or server can Control other devices to execute corresponding control results.
无线开关1可具有配网模式与已配网模式,在处于已配网模式时,可执行以上产生、发出施控报文的过程。在配网模式时,可完成无线开关1与网关3的配网。此外,在处于已配网模式时,也可完成无线开关1与智能控制器2的配对。The wireless switch 1 can have a distribution network mode and a distribution network mode. When in the distribution network mode, the above process of generating and sending the control message can be performed. In the network distribution mode, the network distribution of the wireless switch 1 and the
进一步的,无线开关1还可在出厂或被重置后处于未配网模式,此时,可基于开关配网操作触发配网,进而:Furthermore, the wireless switch 1 can also be in the undistributed network mode after leaving the factory or after being reset. At this time, the network distribution can be triggered based on the switch network distribution operation, and then:
所述核心处理模块103在以上产生、发出施控报文的过程之前,可还用于:The
在未处于配网模式时(例如处于未配网模式),响应于所述操作件的开关配网操作而带来的至少一个触发信号,确定所述无线开关进入配网模式;When not in the network distribution mode (for example, in the non-distribution network mode), in response to at least one trigger signal brought by the switch network distribution operation of the operating member, determine that the wireless switch enters the network distribution mode;
在处于所述配网模式时,产生并对外发出开关配网报文,以使得:指定设备获取到所述开关配网报文后,指示所述无线开关加入网关对应的网络,以完成配网;所述指定设备包括终端和/或所述网关;其中,完成配网后的无线开关能够通过所述网络与所述网关通信;When in the network distribution mode, generate and send a switch network distribution message to the outside, so that: after the designated device obtains the switch network distribution message, instruct the wireless switch to join the network corresponding to the gateway to complete the network distribution ; The designated device includes a terminal and/or the gateway; wherein, the wireless switch after completing network distribution can communicate with the gateway through the network;
配网完成后,响应于所述操作件的施控操作而带来的至少一个触发信号,产生并对外发出施控报文,以使得:所述施控报文所指向的控制结果能够被对应的受控设备执行。After the network distribution is completed, in response to at least one trigger signal brought by the control operation of the operating element, a control message is generated and sent to the outside, so that: the control result pointed to by the control message can be correspondingly The controlled device executes.
可见:visible:
其中的已配网模式,可理解为无线开关1在成功配网从而加入网关的网络后,能够与网关进行正常数据传输的一种模式;The configured network mode can be understood as a mode in which the wireless switch 1 can perform normal data transmission with the gateway after the wireless switch 1 is successfully configured to join the network of the gateway;
其中的配网模式,可理解为用于实现无线开关1与网关3间配网的一种模式;The network distribution mode can be understood as a mode for realizing the network distribution between the wireless switch 1 and the
其中的未配网模式,可理解为还未实现无线开关1与网关3的配网,进而,无线开关并未加入网关的网络的一种模式。The unconfigured network mode can be understood as a mode in which the network configuration between the wireless switch 1 and the
无线开关的模式可不限于以上的举例,同时,无线开关可通过相应的标识来标记当前所处的模式,也可不标记,不论是否标记,只要基于以上模式下实现了不同的处理,就可理解为无线开关实现了模式的变化。The mode of the wireless switch is not limited to the above examples. At the same time, the wireless switch can mark the current mode through the corresponding logo, or not. A wireless switch enables the mode change.
其中的施控操作与开关配网操作,可以是相同的操作,也可以是不同的操作,所发出的施控报文,也可以包括一个施控报文,也可以包括多个相同或不同的施控报文,所发出的开关配网报文,可以包括一个开关配网报文,也可以包括多个相同或不同的开关配网报文。The control operation and the switch network distribution operation can be the same operation or different operations, and the control message sent can also include one control message or multiple identical or different The control message, the switch network distribution message sent, may include one switch network distribution message, or may include multiple same or different switch network distribution messages.
其中的施控报文,可以包括:响应到施控操作的无线开关的无线开关信息;无线开关信息可以表征以下至少之一:对应的无线开关、无线开关中响应到操作的操作件、操作件的动作。所述无线开关信息中所表征的动作可例如包括以下至少之一:对操作件的单击、多次点击、长按。The control message may include: the wireless switch information of the wireless switch that responds to the control operation; the wireless switch information may represent at least one of the following: the corresponding wireless switch, the operating part of the wireless switch that responds to the operation, the operating part Actions. The action represented in the wireless switch information may, for example, include at least one of the following: single click, multiple clicks, and long press on the operating element.
在无线开关发出开关配网报文、施控报文后,网关3也可直接或验证后将其转发给相应的设备(例如终端、服务器等)。After the wireless switch sends out the switch network distribution message and the control message, the
进而,一种方案中,终端5可用于:Furthermore, in a scheme, terminal 5 can be used for:
获取到所述开关配网报文(例如自网关3转发而来的开关配网)后,将无线开关(即发出开关配网报文的无线开关)列为可施控的开关;After obtaining the switch distribution network message (such as the switch distribution network forwarded from the gateway 3), the wireless switch (that is, the wireless switch that sends the switch distribution network message) is listed as a switch that can be controlled;
所述终端5或所述网关3还用于:获取到所述开关配网报文后,指示所述无线开关1加入网关3对应的网络(例如蓝牙网络)。The terminal 5 or the
终端5将无线开关列为可施控的开关时,具体可用于:When the terminal 5 lists the wireless switch as a controllable switch, it can be specifically used for:
通过一个界面(例如为一个能对所扫描的设备或无线开关进行显示的扫描结果显示界面)显示所述无线开关;displaying the wireless switch through an interface (for example, a scanning result display interface capable of displaying scanned devices or wireless switches);
响应于针对所述无线开关的开关添加操控(例如针对扫描结果显示界面的触控操控,或对终端5其他可操作部件的操控),绑定所述无线开关(即发出开关配网报文的无线开关)与指定账户,以使所述无线开关作为所述可施控的开关;In response to the switch addition manipulation of the wireless switch (such as touch manipulation for the scan result display interface, or manipulation of other operable components of the terminal 5), bind the wireless switch (that is, send a switch distribution network message) wireless switch) and a designated account, so that the wireless switch can be used as the controllable switch;
在其已作为可施控的开关的情况下,终端可在一个界面(例如无线开关显示界面、施控开关显示界面、开关显示界面、设备显示界面中至少之一)将所述无线开关显示为所述可施控的开关。In the case that it has been used as a switch that can be controlled, the terminal can display the wireless switch as The controllable switch.
以上所提及的界面,可以是同一界面,也可以是不同界面。The interfaces mentioned above may be the same interface or different interfaces.
此外,在完成配网后(例如处于已配网模式时),所述无线开关还用于(即其中的核心处理模块还用于):在所述操作件下按时,向所述网关上报无线开关下按事件;In addition, after the network configuration is completed (for example, when it is in the configured network mode), the wireless switch is also used (that is, the core processing module therein is also used for): when the operating element is pressed, report the wireless switch to the gateway. switch press event;
所述网关还用于:将所述无线开关下按事件反馈至所述终端;The gateway is further configured to: feed back the press event of the wireless switch to the terminal;
所述终端还用于:对外提示所述无线开关下按事件,和/或:根据所述无线开关下按事件更新所述无线开关的历史操作记录。The terminal is further used for: prompting the wireless switch press event to the outside, and/or: updating the historical operation record of the wireless switch according to the wireless switch press event.
具体的,终端(例如手机)中可运行一程序(APP),在APP中可以罗列出无线开关的列表,当无线开关被按下时(即发生无线开关下按事件时),APP中将显示无线开关被按下的事件(即无线开关下按事件)或历史操作记录。APP还可以发送通知提醒用户,和/或:伴随震动、铃声等方式提醒用户。Specifically, a program (APP) can be run in a terminal (such as a mobile phone), and a list of wireless switches can be listed in the APP. When the wireless switch is pressed (that is, when a wireless switch press event occurs), the APP will Display the event that the wireless switch is pressed (that is, the event of pressing the wireless switch) or historical operation records. The APP can also send a notification to remind the user, and/or: remind the user with vibration, ringtone, etc.
终端指示无线开关加入网关的网络的方式,可例如经网关转发或驱使网关向无线开关发送开关配网反馈信息,网关指示无线开关加入网络的方式可例如响应于开关配网报文而主动向无线开关发送开关配网反馈信息,或在终端的驱使下向无线开关发送开关配网反馈信息。The way the terminal instructs the wireless switch to join the network of the gateway can, for example, be forwarded by the gateway or drive the gateway to send the switch configuration feedback information to the wireless switch. The switch sends switch distribution network feedback information, or sends switch distribution network feedback information to the wireless switch under the drive of the terminal.
进而,所述核心处理模块103在对外发出开关配网报文确定所述无线开关进入已配网模式之前,还用于:Furthermore, before the
获取网关或终端发出的开关配网反馈信息,所述开关配网反馈信息包括安全信息,但也可不限于此,例如还可包括网关的标识、地址、网关的设备信息等等。The switch distribution network feedback information sent by the gateway or the terminal is obtained. The switch distribution network feedback information includes security information, but is not limited thereto. For example, it may also include the identification, address, and device information of the gateway.
在已经获取到安全信息的情况下,所述核心处理模块103在外发出施控报文之前,还用于:In the case that the security information has been obtained, before the
基于所述安全信息,对所述施控报文进行加密,以使得:网关或终端在接收到所述施控报文后,能够解密并验证所述施控报文,并在解密并验证通过后,才驱使所述对应的控制结果被执行。Based on the security information, encrypt the control message, so that after receiving the control message, the gateway or terminal can decrypt and verify the control message, and pass the decryption and verification After that, the corresponding control result is driven to be executed.
其中的安全信息可包含加密密钥,无线开关可利用加密密钥对报文进行加密,网关或终端可基于解密密钥对其进行解密,若解密成功,可认为是验证成功,此外,还可结合其他验证手段进行验证,例如,也可在报文中写入验证标识等进行验证,还可对报文的格式、报文中所记载的无线开关信息进行验证。The security information can include an encryption key. The wireless switch can use the encryption key to encrypt the message, and the gateway or terminal can decrypt it based on the decryption key. If the decryption is successful, it can be considered as a successful verification. In addition, Verification can be performed in combination with other verification means. For example, verification identification can also be written in the message, and the format of the message and the wireless switch information recorded in the message can also be verified.
可见,在配网模式下,无线开关发送的报文被终端或网关扫描到之后,接收终端或网关发送的开关配网反馈信息,获得其中的秘钥等安全信息并进行存储。之后在已配网模式下,发送施控报文时,可使用该秘钥进行加密,以便网关或终端设备可以正常解密并验证认可该无线开关发送的报文。It can be seen that in the distribution network mode, after the message sent by the wireless switch is scanned by the terminal or gateway, the switch distribution network feedback information sent by the terminal or gateway is received, and the security information such as the secret key is obtained and stored. Afterwards, in the configured network mode, when sending control messages, the secret key can be used for encryption, so that the gateway or terminal device can normally decrypt and verify and approve the messages sent by the wireless switch.
此外,网关转发至服务器或终端可以是解密后的,也可以是未解密的。In addition, the gateway forwards to the server or terminal may be decrypted or not decrypted.
其中一种实施方式中,所述核心处理模块在对外发出开关配网报文时,具体用于:每间隔一指定的配网间隔时长发送一次所述开关配网报文。In one of the implementation manners, when the core processing module sends the switch network configuration message to the outside, it is specifically configured to: send the switch network configuration message once every specified network distribution interval.
其中的配网间隔时长可根据需求任意配置,其可根据能耗的要求,以及报文处理的需求进行配置。通过该方式,可有助于兼顾开关配网报文的有效发送与能耗。The network distribution interval can be configured arbitrarily according to requirements, and can be configured according to energy consumption requirements and message processing requirements. In this way, it is helpful to take into account the effective transmission of the switch distribution network message and the energy consumption.
其中一种实施方式中,所述核心处理模块还用于:In one of the implementation manners, the core processing module is also used for:
在处于所述已配网模式时,每间隔一指定的心跳间隔时长发送一次心跳报文。When in the configured network mode, a heartbeat message is sent every specified heartbeat interval.
该心跳报文可发送至网关,也可经网关转发至终端,进而可以使得:所述终端5与所述网关3在获取到所述心跳报文后,能够根据所述心跳报文确定所述无线开关当前还在线。The heartbeat message can be sent to the gateway, and can also be forwarded to the terminal via the gateway, so that: after the terminal 5 and the
在此基础上,终端5可用于:在确定无线开关当前还在线时,在相应界面中将可施控的开关显示为在线。On this basis, the terminal 5 can be used to display the switch that can be controlled as online in the corresponding interface when it is determined that the wireless switch is still online.
进一步的方案中,所述心跳报文中记载了所述电源单元1041的电量信息(或可理解为剩余电量信息),该电量信息可表征为电压信息,进而,所述电量信息可以是所述核心处理模块103中的电压采集单元1033采集到的。In a further solution, the heartbeat message records the power information of the power supply unit 1041 (or can be understood as remaining power information), and the power information can be characterized as voltage information, and further, the power information can be the collected by the
对应的,终端5可用于:对外显示所述电量信息。其中,可在app的相应界面中显示出该电量信息。Correspondingly, the terminal 5 can be used to: display the battery information to the outside. Wherein, the power information may be displayed on a corresponding interface of the app.
无线开关所发出的每个报文均通过不同的多个频点至少发送一次(即:通过多个频点分别发该报文,且每个频点至少发送一次),进而,可有效保障报文能够被对应的设备(例如网关、智能控制器等)获取到,一种举例中,多个频点可例如为三个频点,尤其当无线通信单元为蓝牙单元时,所述三个频点可以为:2.402GHz、2.428GHz、2.480GHz。Each message sent by the wireless switch is sent at least once through different multiple frequency points (that is, the message is sent separately through multiple frequency points, and each frequency point is sent at least once), and then, the message can be effectively guaranteed The text can be obtained by corresponding devices (such as gateways, intelligent controllers, etc.). In one example, the multiple frequency points can be, for example, three frequency points. Especially when the wireless communication unit is a Bluetooth unit, the three frequency points Points can be: 2.402GHz, 2.428GHz, 2.480GHz.
无线开关所发出的报文在发出时的数据率大于500Kbps。The data rate of the message sent by the wireless switch is greater than 500Kbps.
其中一种实施方式中,所述核心处理模块103还用于:In one of the implementation manners, the
产生并发送任意报文之前,控制所述无线开关退出低功耗状态;例如:在处于所述配网模式和/或所述已配网模式时,产生并发送任意报文之前,控制所述无线开关退出低功耗状态;Before generating and sending any message, control the wireless switch to exit the low power consumption state; The wireless switch exits the low power consumption state;
产生并发送完任意报文之后,控制所述无线开关进入所述低功耗状态,例如:在处于所述配网模式和/或所述已配网模式时,产生并发送完任意报文之后,控制所述无线开关进入所述低功耗状态;After generating and sending any message, control the wireless switch to enter the low power consumption state, for example: in the distribution network mode and/or the configured network mode, after generating and sending any message , controlling the wireless switch to enter the low power consumption state;
其中,所述低功耗状态可理解为:低功耗状态下所述无线开关的功耗低于产生并发送报文时无线开关的功耗。Wherein, the low power consumption state may be understood as: the power consumption of the wireless switch in the low power consumption state is lower than the power consumption of the wireless switch when generating and sending a message.
一种举例中,所述低功耗状态下所述供电模块104向所述核心处理模块103输出的供电电流小于200微安;进一步的,可小于50微安,即:低功耗状态下的待机电流小于50微安。In one example, the power supply current output by the
发送报文时所述供电模块104向所述核心处理模块103输出的供电电流处于5毫安至100毫安的区间范围内。When sending a message, the power supply current output by the
可见,除了产生并发送报文的时间,其余时间(其余部分或全部时间),无线开关均处于低功耗状态,进而,可有助于有效节约电能,保障无线开关的续航,尤其当无线开关使用电池作为电源单元时,可有效节约电池的电量。It can be seen that except for the time when the message is generated and sent, the wireless switch is in a low power consumption state for the rest of the time (the rest or all of the time), which can help to effectively save power and ensure the battery life of the wireless switch, especially when the wireless switch When the battery is used as the power supply unit, the power of the battery can be effectively saved.
传统的无线开关,采用开关直接接通或断开电源,每次下按开关都是冷启动,启动时间长延迟大,启动时间消耗电能大。本开关采用低功耗休眠,操作开关时再触发处理单元唤醒发送无线开关,且利用大于500KBPS的数据率来发送无线信号,发送时间短,消耗能量小。The traditional wireless switch uses the switch to directly turn on or off the power supply. Every time the switch is pressed, it is a cold start. The start-up time is long and the delay is large, and the start-up time consumes a lot of power. The switch adopts low-power sleep mode, and when the switch is operated, the processing unit is triggered to wake up the wireless switch, and the wireless signal is sent at a data rate greater than 500KBPS, with short sending time and low energy consumption.
同时,采用在3个频点中同时发送报文的数据包,使得其可以避开可能的无线电干扰,同时配合超短的发送时间,降低了与其他无线设备产生碰撞的可能性,提高了通信的可靠性。At the same time, the use of data packets that send messages simultaneously in three frequency points enables it to avoid possible radio interference. At the same time, with the ultra-short sending time, it reduces the possibility of collision with other wireless devices and improves communication. reliability.
此外,不论是针对施控报文、开关配网报文、心跳报文还是与智能控制器间的配对报文,均可满足以上针对功耗与频点的配置。In addition, whether it is for control messages, switch distribution network messages, heartbeat messages or pairing messages with intelligent controllers, the above configurations for power consumption and frequency points can be met.
其中一种实施方式中,所述的无线开关1,还包括发光模块106;In one of the implementation manners, the wireless switch 1 further includes a
所述核心处理模块103还用于:The
在所述供电模块的电压信息高于电能阈值时,控制所述发光模块对外输出第一光信号;When the voltage information of the power supply module is higher than the power threshold, control the light emitting module to output a first light signal;
在所述电压信息低于所述电能阈值时,控制所述发光模块对外输出第二光信号;When the voltage information is lower than the electric energy threshold, control the light emitting module to output a second light signal;
其中,所述电压信息为所述供电模块104中的电源单元1041或能量缓存单元1042的电压信息,具体可以为其中电池BAT、电容C的电压信息。通过电压信息与电能阈值的比较,可及时发现其是否电压较低,进而,可仅在电源单元1041的电压信息较低时通过发光模块106对外提示,也可仅在能量缓存单元1042的电压信息较低时通过发光模块106对外提示,还可在电源单元1041与能量缓存单元1042任意之一电量较低时通过发光模块106对外提示,还可在电源单元1041与能量缓存单元1042均电量较低时通过发光模块106对外提示。此外,电源单元1041对应的电能阈值与能量缓存单元1042对应的电能阈值可以相同,也可以不同。Wherein, the voltage information is the voltage information of the
其中一种实施方式中,所述第一光信号与所述第二光信号的颜色不同,所述发光模块106包括用于发出所述第一光信号的第一发光部与用于发出所述第二光信号的第二发光部。其中的第一发光部与第二发光部可例如是不同颜色的指示灯(也可理解为发光二极管、LED)。In one of the implementation manners, the colors of the first light signal and the second light signal are different, and the
进一步举例中,所述第一光信号的颜色为蓝色、绿色、白色中任意之一;所述第一光信号的发光时长处于1毫秒与1秒之间;In a further example, the color of the first light signal is any one of blue, green, and white; the light-emitting duration of the first light signal is between 1 millisecond and 1 second;
所述第二光信号的颜色为橙色、红色、黄色中任意之一;所述第二光信号的发光时长处于1毫秒与1秒之间。The color of the second light signal is any one of orange, red, and yellow; the light-emitting duration of the second light signal is between 1 millisecond and 1 second.
进而,若电能阈值区2伏,则:Furthermore, if the power threshold area is 2 volts, then:
当电压大于2V时,无线开关点亮蓝色或绿色或白色指示灯,点亮时间介于1ms到1S之间。When the voltage is greater than 2V, the wireless switch lights up a blue or green or white indicator light, and the lighting time is between 1ms and 1s.
当电压小于2V时,无线开关点亮橙色或红色或黄色指示灯,点亮时间介于1ms到1S之间。When the voltage is less than 2V, the wireless switch lights up in orange, red or yellow, and the lighting time is between 1ms and 1s.
此外,一个操作感应单元102还可与发光模块106中的一个或多个指示灯相对应,进而,在对应操作感应单元102被触动时,核心处理模块103还可触发对应的指示灯发光,以对外反馈当前被触动的操作感应单元。In addition, one
以上第一光信号与第二光信号具体可以是在对外反馈当前被触动的操作感应单元是哪个时发出的,即:在需要利用光信号对外指示出当前被触动的操作感应单元时,可实施:在所述电压信息高于电能阈值时,控制所述发光模块对外输出第一光信号;在所述电压信息低于所述电能阈值时,控制所述发光模块对外输出第二光信号。The above first light signal and second light signal can be specifically sent out when the operation sensing unit currently being touched is given external feedback, that is, when it is necessary to use the light signal to indicate to the outside the operation sensing unit currently being touched, it can be implemented : when the voltage information is higher than the electric energy threshold, control the light emitting module to output a first light signal; when the voltage information is lower than the electric energy threshold, control the light emitting module to output a second light signal.
其中一种实施方式中,所述施控操作包括:至少一次下按与至少一次释放;即针对操作件的至少一次下按与至少一次释放;其中的下按指操作件下按并触动对应的操作感应单元,其中的释放指操作件释放从而不触动操作感应单元。In one of the implementations, the control operation includes: at least one press and at least one release; that is, at least one press and at least one release of the operating member; the press down means that the operating member is pressed and touches the corresponding The operation sensing unit, wherein the release refers to the release of the operating member so as not to touch the operation sensing unit.
不同动作的施控操作所产生的施控报文是有区别的;The control messages generated by the control operations of different actions are different;
其中,不同动作的施控操作中,以下至少之一是有区别的:Among them, in the control operations of different actions, at least one of the following is different:
下按、释放的次数;The number of presses and releases;
下按的时长。The duration of the press.
具体的举例中:In specific examples:
若所述施控操作的完整动作为第一动作,则对应所产生的施控报文包括第一施控报文;所述第一动作为所述操作件下按并在第一指定时长内释放;一种举例中,第一动作可例如为:用户下按并在1秒内释放;If the complete action of the control operation is the first action, then the corresponding generated control message includes the first control message; the first action is pressing the operating part and within the first specified time Release; in one example, the first action may be, for example: the user presses down and releases it within 1 second;
若所述施控操作的完整动作为第二动作,则对应所产生的施控报文包括第二施控报文;所述第二动作为所述操作件在第二指定时长内连续多次下按;一种举例中,第二动作可例如为:在2秒内连续按下2次;If the complete action of the control operation is the second action, then the corresponding generated control message includes the second control message; the second action is that the operation member performs multiple consecutive times within the second specified duration Press down; in one example, the second action can be, for example: press down twice within 2 seconds;
若所述施控操作的完整动作为第三动作,则对应所产生的施控报文包括第三施控报文;所述第三动作为所述操作件下按并至少持续第三指定时长;一种举例中,第三动作可例如:用户下按且持续不低于3S。If the complete action of the control operation is the third action, then the corresponding generated control message includes the third control message; the third action is pressing the operating element and lasts at least the third specified duration ; In one example, the third action may be, for example: the user presses the button and it lasts for no less than 3 seconds.
其中的完整动作指具有至少一次下按与至少一次释放,且下按、释放的次数相同的动作。进而,对应所产生的施控报文可包括:响应于所述施控操作的完整动作而产生的完整动作施控报文。The complete action refers to an action that has at least one press and at least one release, and the number of presses and releases is the same. Furthermore, the corresponding generated control message may include: a complete action control message generated in response to the complete action of the control operation.
其中的完整动作施控报文可以是以上第一施控报文、第二施控报文、第三施控报文中任意之一,也可不限于此。同时,第一施控报文、第二施控报文与第三施控报文可以是不同的报文,例如:其中所记载的无线开关信息所表征的动作是不同的。The complete action control message may be any one of the above first control message, second control message, and third control message, and may not be limited thereto. Meanwhile, the first control message, the second control message and the third control message may be different messages, for example, the actions represented by the wireless switch information recorded therein are different.
部分方案中,所述施控报文可包括:In some solutions, the control message may include:
响应于所述施控操作中的下按而产生的下按后施控报文;该报文是响应于下按而产生并发出的,可以并非下按、释放的完整动作;A post-press control message generated in response to the press in the control operation; the message is generated and sent in response to the press, and may not be a complete action of press and release;
所述下按后施控报文用于使得:与所述无线开关配对的智能控制器响应于所述配对施控报文,执行对应的控制结果。The post-press control message is used to make: the intelligent controller paired with the wireless switch executes a corresponding control result in response to the paired control message.
一种举例中,可在用户下按时,发送下按后施控报文,当用户释放或按压持续超过3秒时,完整动作施控报文;其中的施控报文可例如为第一施控报文、第二施控报文、第三施控报文,但也不限于此。In one example, when the user presses down, a post-press control message can be sent, and when the user releases or presses for more than 3 seconds, a complete action control message is sent; the control message can be, for example, the first Control message, second control message, third control message, but not limited thereto.
其中,完整动作施控报文通常是发送至网关的,网关可基于此发出相应的控制信息(例如将控制信息发送至智能控制器),也可将其转发至终端、服务器、音箱装置或其他装置。下按后施控报文通常是直接发送至智能控制器的。Among them, the complete action control message is usually sent to the gateway, and the gateway can send corresponding control information based on this (for example, send the control information to the intelligent controller), or forward it to the terminal, server, speaker device or other device. After the button is pressed, the control message is usually sent directly to the intelligent controller.
进一步的一种举例中,所述下按后施控报文与所述完整动作施控报文不同。In a further example, the post-press control message is different from the complete action control message.
可见,下按后施控报文不与网关或终端通信,而只与智能控制器(例如墙壁开关)通信。完整动作施控报文与网关或终端通信。基于此,可以实现:在没有网关或终端的情况下,无线开关与智能控制器也可以进行基本的配对及控制功能动作。而在有网关的情况下,利用完整动作施控报文,又可以发送丰富的控制数据给网关,进一步转发至服务器时,可以进行更为丰富的控制动作。而两者是无缝切换的。It can be seen that the post-press control message does not communicate with the gateway or the terminal, but only communicates with the intelligent controller (such as a wall switch). The complete action control message communicates with the gateway or terminal. Based on this, it can be realized that without a gateway or a terminal, the wireless switch and the smart controller can also perform basic pairing and control functions. In the case of a gateway, by using the complete action control message, rich control data can be sent to the gateway, and when it is further forwarded to the server, more abundant control actions can be performed. And the two are seamlessly switched.
通过这一设计,可以使得按下时和释放时分别都可以发送信号,还可以识别双击、长按等动作,将这些信息发送至智能控制器(例如墙壁开关)、网关,可以进行丰富的控制动作,实现丰富的控制效果。提升了广大人民的生活体验。Through this design, it is possible to send signals when it is pressed and when it is released, and it can also recognize actions such as double-clicking and long-pressing, and send these information to smart controllers (such as wall switches) and gateways for rich control Actions to achieve rich control effects. Improve the life experience of the majority of people.
请参考图7,以下将对无线开关一种可能的结构进行描述,但也不限于此,所述无线开关1,还包括电路板107、中壳109与底壳108;Please refer to FIG. 7 , a possible structure of the wireless switch will be described below, but it is not limited thereto. The wireless switch 1 also includes a
所述中壳109设于所述底壳108的开口侧,所述操作件101位于所述中壳的背向所述底壳108底面的一侧,所述操作件101可运动地(例如可枢转)地连接于所述中壳109或所述底壳108,所述电路板107设于所述中壳109与所述底壳108之间,所述核心处理模块103与所述操作感应单元102设于所述电路板107,所述操作感应单元102设于所述电路板107的背向所述底壳108底面的一侧。The
进一步的,若电源单元1041采用电池,则:Further, if the
电路板107还可设有供所述供电模块104中的电池嵌入的电池容置部1072,所述中壳109设有用于供所述电池与所述电池容置部穿过的电池孔1091。通过以上电池容置部1072与电池孔1091,可实现电池的固定与空间的节约。The
一种举例中,电路板107还可设有定位孔1071,实现其相对于底壳和/或中壳的定位。In one example, the
一种举例中,底壳108还设有用于卡接中壳109的卡扣1081。In one example, the
一种举例中,操作件101还可设有用于供发光模块106出光的透光部1011,同时,透光部1011与发光模块106之间还可设有导光柱110。In one example, the operating
一种方案中,可基于施控报文实现呼叫,从而使得音箱装置4能够播放指定语音信息,该施控报文也可理解为用于呼叫的施控报文。In one solution, a call can be implemented based on a control message, so that the
进而,所述核心处理模块所发出的一种施控报文(即用于呼叫的施控报文)中,可以使得:所述音箱装置能够播放指定语音信息,即:Furthermore, in a kind of control message (that is, a control message for calling) sent by the core processing module, it can make: the speaker device can play specified voice information, that is:
在所述音箱装置作为所述无线开关的所述受控设备时,所述音箱装置所执行的控制结果为:播放指定语音信息,所述指定语音信息为该施控报文(即用于呼叫的施控报文)中记载的无线开关信息所映射的指定语音信息,其中,各无线开关信息与语音信息的映射关系是在所述终端定义的。When the speaker device is used as the controlled device of the wireless switch, the control result performed by the speaker device is: play specified voice information, and the specified voice information is the control message (that is, for calling The specified voice information mapped to the wireless switch information recorded in the control message), wherein the mapping relationship between each wireless switch information and voice information is defined in the terminal.
可见,终端5可用于:定义映射关系。It can be seen that the terminal 5 can be used for: defining a mapping relationship.
其中的映射关系,可理解为无线开关信息与语音信息的映射关系,进一步的,由于语音信息是音箱装置播放的,该映射关系可进一步为:无线开关信息、语音信息、音箱装置之间的映射关系。此外,单个无线开关信息可映射一个或多个语音信息;若是多个语音信息,其可以是一个音箱装置所需播放的多个语音信息,也可以是多个音箱装置分别所需播放的语音信息。单个语音信息也可能映射于多个无线开关信息,不论如何映射,均可视作此处的映射关系。The mapping relationship can be understood as the mapping relationship between wireless switch information and voice information. Further, since the voice information is played by the speaker device, the mapping relationship can be further: the mapping between wireless switch information, voice information, and speaker devices. relation. In addition, a single wireless switch information can be mapped to one or more voice information; if there are multiple voice information, it can be multiple voice information to be played by a speaker device, or voice information to be played by multiple speaker devices . A single voice information may also be mapped to multiple wireless switch information, no matter how it is mapped, it can be regarded as the mapping relationship here.
在定义映射关系时,例如可以选择无线开关、无线开关的操作件、操作件的动作中至少之一,即至少部分无线开关信息,其所表征的动作可以是单击、双击、长按、多次连击等;When defining the mapping relationship, for example, at least one of the wireless switch, the operation part of the wireless switch, and the action of the operation part can be selected, that is, at least part of the wireless switch information, and the action represented by it can be single click, double click, long press, multiple combos, etc.;
在定义映射关系时,还可选择音箱装置,选择其预设的提示音或输入想要播放的提示音(即语音信息)。When defining the mapping relationship, the speaker device can also be selected, and its preset prompt tone can be selected or the prompt tone (ie, voice information) to be played can be input.
在此基础上,所述指定语音信息是根据一施控报文(即用于呼叫的施控报文)中的无线开关信息,以及所述映射关系确定,具体的,根据无线开关信息与映射关系确定指定语音信息的过程可以是服务器、终端、网关、音箱装置中至少之一实施的,只要播放的装置为音箱装置,发出对应施控报文的装置为无线开关,并基于映射关系确定出了指定语音信息,就不脱离以上描述的范围。On this basis, the specified voice information is determined according to the wireless switch information in a control message (that is, the control message used for calling) and the mapping relationship, specifically, according to the wireless switch information and the mapping The process of determining the specified voice information by the relationship can be implemented by at least one of the server, terminal, gateway, and speaker device, as long as the playing device is a speaker device, and the device that sends the corresponding control message is a wireless switch, and it is determined based on the mapping relationship. In addition to specifying voice information, it does not depart from the scope of the above description.
一种举例中,若指定语音信息是服务器确定的,则:所述服务器用于:In one example, if the specified voice information is determined by the server, then: the server is used to:
自所述终端获取所述映射关系;Obtain the mapping relationship from the terminal;
直接或间接获取施控报文(可理解为用于呼叫的施控报文);例如可自网关接收转发而来的施控报文Obtain the control message directly or indirectly (can be understood as the control message for calling); for example, the control message can be received and forwarded from the gateway
根据所述施控报文中的无线开关信息,以及所述映射关系,确定所述指定语音信息;Determine the specified voice information according to the wireless switch information in the control message and the mapping relationship;
将所述指定语音信息发送至所述音箱装置,以使所述音箱装置播放所述指定语音信息;例如可利用音箱装置所连接的Wifi热点、网关、终端等将指定语音信息发送至音箱装置,若音箱装置作为网关,音箱装置也可直接接收到指定语音信息。The specified voice information is sent to the speaker device, so that the speaker device plays the specified voice information; for example, the specified voice information can be sent to the speaker device by using a Wifi hotspot, gateway, terminal, etc. that the speaker device is connected to, If the speaker device is used as a gateway, the speaker device can also directly receive the designated voice information.
一种举例中,终端5定义映射关系的过程可例如:In one example, the process of terminal 5 defining the mapping relationship may be, for example:
显示映射关系配置界面;Display the mapping relationship configuration interface;
响应于针对所述映射关系配置界面的配置操作,选择无线开关信息与语音信息,确定所述映射关系。In response to the configuration operation on the mapping relationship configuration interface, wireless switch information and voice information are selected to determine the mapping relationship.
其中,在映射关系配置界面中可配置一个或多个无线开关信息与一个或多个语音信息的映射关系。Wherein, the mapping relationship between one or more wireless switch information and one or more voice information can be configured in the mapping relationship configuration interface.
一种举例中,音箱装置4可在配网后接入终端5的Wifi热点,从而满足音箱装置4的通信需求。In one example, the
具体的,所述音箱装置4还用于:响应于针对所述音箱装置4的音箱配网操作,进入配网状态,并在处于所述配网状态时,发出音箱配网报文;Specifically, the
其中的音箱配网操作,可以指直接作用于音箱装置4的,例如音箱装置可配置有相应的开关、按钮或触控屏,通过对开关、按钮或触控屏中界面的操作,可形成音箱配网操作,从而带来音箱配网报文;部分方案中,音箱配网操作还可能是间接作用于音箱装置4的,例如:可在其它设备发生音箱配网操作,进而,该设备可向音箱装置4发送配网指令,从而使得音箱装置进入配网状态。The speaker distribution network operation can refer to the direct action on the
其中,终端对音箱装置的扫描,可以是通过扫描音箱装置发出来的蓝牙广播报文或UDP报文获得的,然后将终端APP所连接的WIFI账户信息,通过蓝牙或TCP/UDP报文形式发送给音箱装置,使其连接上该WIFI热点。Among them, the scanning of the speaker device by the terminal can be obtained by scanning the Bluetooth broadcast message or UDP message sent by the speaker device, and then the WIFI account information connected to the terminal APP is sent in the form of Bluetooth or TCP/UDP message Device the speaker to connect to the WIFI hotspot.
所述终端5还用于:The terminal 5 is also used for:
获取到所述音箱配网报文后,将发出音箱配网报文的音箱装置4列为可受控的音箱。After the speaker network distribution message is obtained, the
进一步的,所述终端5在将所述音箱装置列为可受控的音箱时,具体用于:Further, when the terminal 5 lists the speaker device as a controllable speaker, it is specifically used for:
通过一个界面(例如为一个能对所扫描的设备或音箱装置进行显示的扫描结果显示界面)显示所述音箱装置;此外,显示音箱装置的扫描结果显示界面可以与显示无线开关的扫描结果显示界面相同、相近,也可以是不同的;Display the speaker device through an interface (for example, a scan result display interface that can display the scanned equipment or speaker device); in addition, the scan result display interface that displays the speaker device can be the same as the scan result display interface that displays the wireless switch same, similar, or different;
响应于针对所述音箱装置的音箱添加操控,绑定所述音箱装置与指定账户,以使所述音箱装置作为所述可受控的音箱;Binding the speaker device with a specified account in response to the speaker addition manipulation of the speaker device, so that the speaker device serves as the controllable speaker;
在其已作为可受控的音箱装置的情况下,终端可在一个界面(例如音箱装置显示界面、设备显示界面中至少之一)将所述音箱装置显示为所述可受控的音箱。In the case that it has been used as a controllable speaker device, the terminal may display the speaker device as the controllable speaker device on an interface (for example, at least one of a speaker device display interface and a device display interface).
以上所提及的界面,可以是同一界面,也可以是不同界面。The interfaces mentioned above may be the same interface or different interfaces.
所述终端5还用于:The terminal 5 is also used for:
获取到所述音箱配网报文后,向所述音箱装置发送音箱配网反馈信息,After obtaining the speaker distribution network message, send speaker distribution network feedback information to the speaker device,
所述音箱装置还用于:根据所述Wifi信息,接入所述终端的Wifi网络。The speaker device is further configured to: access the Wifi network of the terminal according to the Wifi information.
其中的音箱配网反馈信息可以包括所述终端的Wifi信息,例如Wifi标识、类型、密码等等,音箱配网反馈信息也可不限于此。其中的Wifi信息可例如为终端的Wifi热点的Wifi信息,部分方案中,终端所连接的Wifi网络的Wifi信息。The speaker distribution network feedback information may include Wifi information of the terminal, such as Wifi ID, type, password, etc., and the speaker distribution network feedback information may not be limited thereto. The Wifi information may be, for example, Wifi information of a Wifi hotspot of the terminal, and in some solutions, Wifi information of a Wifi network to which the terminal is connected.
进而,在利用无线开关进行呼叫的方案中,无线开关可以直接或间接通信连接于音箱装置,通过设置无线开关与音箱装置的映射关系,使得无线开关可以触发语音音箱播放提示音或预设的文字内容,使得无线开关可以作为门铃或呼叫器使用,而无需专门的门铃接收及响铃装置。Furthermore, in the solution of using a wireless switch to make a call, the wireless switch can be directly or indirectly connected to the speaker device through communication. By setting the mapping relationship between the wireless switch and the speaker device, the wireless switch can trigger the voice speaker to play a prompt tone or preset text Content, so that the wireless switch can be used as a doorbell or a pager, without the need for a special doorbell receiving and ringing device.
具体的一种举例中,可通过终端及运行于终端的APP,将无线开关与账户(例如个人账户)建立绑定关系,将无线开关展示于终端的APP,并且,将音箱装置与账户(例如个人账户)建立绑定关系,将音箱装置展示于APP;然后,通过APP,建立无线开关与语音音箱播放提示音(即语音信息)的映射关系;在此基础上,操作无线开关后,可发出一施控报文(即用于呼叫的施控报文)。基于该施控报文,语音音箱可播放提示音(即语音信息)。In a specific example, a binding relationship between the wireless switch and an account (such as a personal account) can be established through the terminal and the APP running on the terminal, the wireless switch is displayed on the APP of the terminal, and the speaker device and the account (such as Personal account) to establish a binding relationship, display the speaker device on the APP; then, through the APP, establish a mapping relationship between the wireless switch and the voice speaker to play the prompt tone (that is, voice information); on this basis, after operating the wireless switch, you can send out A control message (that is, a control message for calling). Based on the control message, the voice speaker can play a prompt tone (that is, voice information).
请参考图8,智能控制器2,包括:取电模块201、输出通断模块204、处理模块205、无线通信模块202、驱动模块203、按键207、按键识别模块206,以及至少两个接线柱。Please refer to FIG. 8 , the
所述至少两个接线柱包括火线输入接线柱(例如接线柱P1)与火线输出接线柱(例如接线柱P2);部分举例中,所述至少两个接线柱5还可包括零线接线柱。The at least two terminals include a live wire input terminal (eg, terminal P1 ) and a live wire output terminal (eg, terminal P2 ); in some examples, the at least two terminals 5 may also include a neutral terminal.
所述输出通断模块204的一端直接或间接电连接所述火线输入接线柱,所述输出通断模块204的另一端直接或间接电连接所述火线输出接线柱。One end of the output on-off
所述取电模块201电连接所述接线柱、所述处理模块205、所述无线通信模块202与所述驱动模块203,以将接入的交流电转换为所需的直流电,并将所述所需的直流电输送至所述处理模块205、所述无线通信模块202与所述驱动模块203;所述无线通信模块202与所述驱动模块203电连接所述处理模块205。The
所述处理模块205可向所述驱动模块203输出驱动信号,对应的,所述驱动模块203用于:接收所述处理模块发出的驱动信号,并根据所接收到的驱动信号驱动所述输出通断模块的通断;The
所述按键识别模块206电连接所述处理模块205;The
所述按键207能够在被下按时触动对应的按键识别模块206;The key 207 can touch the corresponding
所述按键识别模块206能够在被触动时向所述处理模块205传递触动信号。The
智能控制器2中的按键207与按键识别模块206可参照无线开关中的操作件、操作感应单元理解,进而,按键识别模块206也可以为开关器件(例如微动开关)。The
其中的处理模块205,可以为具备数据处理能力的任意电路,例如可以包括处理器,还可包括存储器及其他相关器件。此外,其中处理模块205与无线通信模块202可以为不同的模块,也可集成为一个模块。The
其中的取电模块201,可以为能够自交流电取电并对其进行存储的任意电路,具体的,取电模块201可包括ON态取电电路和/或OFF态取电电路,其中,ON态取电电路可在输出通断模块接通时取电,OFF态取电电路可在输出通断模块关断时取电,本领域任意的ON态取电电路与OFF态取电电路均可作为其中的一种举例。以上方案中,既能够在输出通断模块断开时实现内部的供电,也能够在输出通断模块导通时实现内部的供电。The
其中的触动信号,可理解为能够使得处理模块205确定当前哪个按键被下按的任意信号。该触动信号可以是以下任意之一:高脉冲信号、低脉冲信号、高电平信号、低电平信号。该触动信号也可以是连续或非连续的多个信号。不论采用何种形式,均不脱离以上描述的范围。The touch signal can be understood as any signal that enables the
其中的输出通断模块204可接入相应的线路(例如接线柱之间),进而,可控制线路的通断,所述驱动模块电连接所述输出通断模块的控制端,以响应于处理器的驱动信号,驱动所述输出通断模块的通断。一种举例中,输出通断模块204可以采用继电器,但也不限于该种举例。进而,驱动模块203可以为能够对继电器的通断进行控制的任意电路模块。Wherein the output on-off
其中一种实施方式中,智能控制器2可包括:指示模块208,所述指示模块208电连接所述处理模块205。处理模块205可向指示模块208发出指示信号,进而改变指示模块208的对外指示方式。所述指示模块208的对外指示方式能够随指示信号变化,部分方案中,可通过对外指示体现出输出通断模块的状态和/或所发生的动作,还可通过对外指示体现出智能控制器2当前所处的状态。In one of the implementation manners, the
其中的指示模块208可以为发光指示模块,具体可以包括一个或多个发光指示单元(每个发光指示单元可例如一组指示灯)。The
智能控制器2可作为无线开关1的受控设备,且可直接受控,也可基于网关而受控,智能控制器2也可直接或间接受控于音箱装置4、终端5等。The
其中的一种方案中,所述处理模块205用于:若通过所述无线通信模块202获取到网关发出的控制信息,则根据所述控制信息,向所述驱动模块输出对应的驱动信号。即:智能控制器2能够自网关接收控制信息,并执行控制信息所指向的控制结果。In one solution, the
所述控制信息可例如包括以下至少之一:The control information may, for example, include at least one of the following:
第一控制信息,所述第一控制信息是基于所述无线开关发送至所述网关的一施控报文而产生的;例如:可在网关对施控报文进行解密、验证后,得到第一控制信息,将该第一控制信息转发给智能控制器;The first control information, the first control information is generated based on a control message sent by the wireless switch to the gateway; for example: after the gateway decrypts and verifies the control message, the first control message can be obtained A control information, forwarding the first control information to the intelligent controller;
第二控制信息,所述第二控制信息是基于终端的控制命令而产生的;second control information, where the second control information is generated based on a control command of the terminal;
第三控制信息,所述第三控制信息为音箱装置根据采集到的语音指令而产生的;所述音箱装置独立于所述网关,或者:所述音箱装置作为所述网关。The third control information, the third control information is generated by the speaker device according to the collected voice instructions; the speaker device is independent of the gateway, or: the speaker device functions as the gateway.
针对于第一控制信息,一种举例中,可包含施控报文中的无线开关信息的部分或全部,另一举例中,第一控制信息可包含直接控制智能控制器的输出通断模块接通、关断或翻转(其中的翻转指:若处于接通的状态,则关断;若处于关断的状态,则接通)的命令。For the first control information, in one example, it may include part or all of the wireless switch information in the control message; in another example, the first control information may include directly controlling the output on-off module connection of the intelligent controller. On, off or inversion (the inversion refers to: if it is in the on state, it will be off; if it is in the off state, it will be on).
针对于第二控制信息,其内容可以参照第一控制信息理解。终端可将控制命令发送至服务器、网关,最终送至网关,网关可基于该控制命令发出第二控制信息。具体的,所述终端可用于:通过一界面显示所述智能控制器;响应于对所述界面中特定元素(例如按钮、图标)的操控,产生所述控制命令。For the second control information, its content can be understood with reference to the first control information. The terminal can send the control command to the server, the gateway, and finally to the gateway, and the gateway can send the second control information based on the control command. Specifically, the terminal may be configured to: display the smart controller through an interface; and generate the control command in response to manipulation of specific elements (such as buttons and icons) in the interface.
进一步的举例中,终端中可运行一程序(APP),在APP中可以罗列出智能控制器(例如墙壁开关)的列表,点击APP中的对应的墙壁开关的图标,可以发送命令(即第二控制信息)给智能控制器(例如墙壁开关),对智能控制器(例如墙壁开关)进行打开或关闭动作。In a further example, a program (APP) can be run in the terminal, and a list of intelligent controllers (such as wall switches) can be listed in the APP, and a command can be sent by clicking the icon of the corresponding wall switch in the APP (that is, the first (2) control information) to the intelligent controller (such as a wall switch), and turn on or close the intelligent controller (such as a wall switch).
针对于第三控制信息,其内容可以参照第一控制信息理解,音箱装置可基于语音指令产生第三控制信息,或将语音指令发送至服务器、终端、网关等至少之一,进而,服务器、终端、网关中任意之一可基于语音指令产生第三控制信息,最终,通过网关,可将第三控制信息发给智能控制器。For the third control information, its content can be understood with reference to the first control information, the speaker device can generate the third control information based on the voice command, or send the voice command to at least one of the server, terminal, gateway, etc., and then the server, terminal Any one of the gateways and gateways can generate the third control information based on the voice command, and finally, the third control information can be sent to the intelligent controller through the gateway.
此时,音箱装置为可以识别用户的语音指令的音箱装置,一种应用场景中,可以发出打开客厅开关的语音指令,音箱装置识别后,可以将语音指令直接或间接发送至网关,网关进一步发送命令给智能控制器(例如墙壁开关),对墙壁开关执行打开或关闭的操作。At this time, the speaker device is a speaker device that can recognize the user's voice command. In one application scenario, a voice command to turn on the living room switch can be issued. After the speaker device is recognized, the voice command can be directly or indirectly sent to the gateway, and the gateway further sends Command to a smart controller (such as a wall switch) to turn on or off the wall switch.
其中,网关与智能控制器之间可基于蓝牙信号进行交互,智能控制器可在加入网关的网络后进行控制所需的交互。进而,可实现智能控制器与网关之间的配网。Among them, the gateway and the intelligent controller can interact based on Bluetooth signals, and the intelligent controller can perform the interaction required for control after joining the network of the gateway. Furthermore, the distribution network between the intelligent controller and the gateway can be realized.
其中一种实施方式中,所述处理模块205还用于(即智能控制器2还用于):In one of the implementation manners, the
在所述智能控制器2处于待扫描状态时,产生并对外发出控制器配网报文,以使得:网关或终端获取到所述控制器配网报文后,指示所述智能控制器加入网关对应的网络,以完成配网;When the
在完成配网后,确定所述智能控制器退出所述待扫描状态,其中,完成配网后的智能控制器能够通过所述网络与所述网关通信。After the network distribution is completed, it is determined that the intelligent controller exits the to-be-scanned state, wherein the intelligent controller after completing the network distribution can communicate with the gateway through the network.
智能控制器与网关的配网可发生于未配网时的情况,也可发生于需要重置进行重新进行配网的情况。The network configuration between the intelligent controller and the gateway can occur when the network is not configured, or when it needs to be reset to re-configure the network.
具体的,智能控制器2可发出控制器配网报文,终端5或网关3可用于:获取到所述控制器配网报文后,指示所述智能控制器2加入网关3对应的网络(例如蓝牙网络)。例如:终端5或网关3可发出控制器配网反馈信息,然后,智能控制器可基于控制器配网反馈信息加入网关的网络。Specifically, the
进一步的,终端5还可将智能控制器2列为可受控的智能控制器,具体的,可通过一个界面(例如为一个能对所扫描的设备或智能控制器进行显示的扫描结果显示界面)显示所述无线开关;Further, the terminal 5 can also list the
响应于针对所述智能控制器开关的控制器添加操控(例如针对扫描结果显示界面的触控操控,或对终端5其他可操作部件的操控),绑定所述智能控制器(即发出控制器配网报文的智能控制器)与指定账户,以使所述无线开关作为所述可受控的智能控制器;Responsive to the controller adding manipulation for the switch of the intelligent controller (for example, touch manipulation for the scan result display interface, or manipulation of other operable components of the terminal 5), bind the intelligent controller (that is, issue a controller distribution network message) and a designated account, so that the wireless switch acts as the controllable intelligent controller;
在其已作为可受控的智能控制器的情况下,终端可在一个界面(例如智能控制器显示界面、受控设备显示界面、设备显示界面中至少之一)将所述智能控制器显示为所述可受控的智能控制器。In the case that it has been used as a controllable intelligent controller, the terminal can display the intelligent controller as a The controllable intelligent controller.
以上所提及的界面,可以是同一界面,也可以是不同界面。The interfaces mentioned above may be the same interface or different interfaces.
一种具体的举例中,智能控制器上电后,可自动处于待扫描状态,然后用户可点击终端中的相应图标,终端APP运行,扫描程序;网关或终端扫描智能控制器(例如墙壁开关)所发出的报文信息(即控制器配网报文),并在APP中展示;用户点击图标,终端可执行添加动作;致辞智能控制器与终端或网关建立连接。建立连接之后,此后通过终端APP或语音音箱,即可控制该智能控制器(例如墙壁开关)。In a specific example, after the smart controller is powered on, it can automatically be in the waiting state, and then the user can click the corresponding icon in the terminal, the terminal APP runs, and the scanning program; the gateway or terminal scans the smart controller (such as a wall switch) The message information sent (that is, the controller network distribution message) is displayed in the APP; the user clicks the icon, and the terminal can perform the adding action; the smart controller establishes a connection with the terminal or gateway. After the connection is established, the smart controller (such as a wall switch) can be controlled through the terminal APP or voice speaker.
若配网是基于重置的需求而发生的,则:所述处理模块205还用于:If the network distribution occurs based on the reset requirement, then: the
响应于所述按键的重置操作而带来的至少一个触动信号,确定所述智能控制器进入所述待扫描状态。即:智能控制器2可响应于重置操作而进入待扫描状态。In response to at least one touch signal brought by the reset operation of the key, it is determined that the intelligent controller enters the state to be scanned. That is: the
所述重置操作包括:先在第一时长内下按所述按键指定次数,然后在第二时长内再次下按所述按键并保持第三时长;或者:先在第四时长内下按所述按键并保持第五时长,然后在释放所述按键后,在第六时长内再次下按所述按键并保持第七时长。The reset operation includes: first pressing the button for a specified number of times within the first duration, then pressing the button again within the second duration and keeping it for the third duration; or: first pressing the button within the fourth duration press the key and keep it for the fifth time, and then after releasing the key, press the key again within the sixth time and keep it for the seventh time.
配网操作的一种举例为:先在2秒内快速操作开关2次,然后在接下来的2秒内按下按键且保持3秒以上,则触发重置配网。另一种举例为:先按压按键不放3秒以上,松开,紧接着在3秒内再按下该按键不放3秒以上,则触发重置配网。重置配网后,该智能控制器(例如墙壁开关)将自动回到等待配网状态(即待扫描状态)。An example of network configuration operation is: first quickly operate the switch twice within 2 seconds, then press the button within the next 2 seconds and hold it for more than 3 seconds, then the network configuration reset will be triggered. Another example is: first press the button for more than 3 seconds, release it, and then press the button again within 3 seconds and hold it for more than 3 seconds, then the network configuration reset will be triggered. After resetting the distribution network, the intelligent controller (such as a wall switch) will automatically return to the state of waiting for network distribution (ie, the state of waiting for scanning).
部分方案中,所述处理模块205还用于:In some solutions, the
若检测出所述智能控制器已脱离所述网络,则确定所述智能控制器进入所述待扫描状态;其中,所述智能控制器是在所述网关的控制下脱离所述网络的,所述网关是在接收到所述终端产生的控制器删除指令后,使所述智能控制器脱离所述网络的;所述控制器删除指令是所述终端响应于相应操控(例如控制器删除操控)而产生的。If it is detected that the intelligent controller has left the network, it is determined that the intelligent controller enters the state to be scanned; wherein, the intelligent controller is separated from the network under the control of the gateway, and After the gateway receives the controller deletion instruction generated by the terminal, the intelligent controller is separated from the network; the controller deletion instruction is the terminal responding to the corresponding operation (for example, the controller deletion operation) And produced.
进一步的一种举例中,可在终端中通过APP点击或长按设备图标,再点击删除设备按钮,则将该设备从网络中删除,此时,终端对应可产生控制器删除指令,终端将该控制器删除指令发送至网关,网关可使智能控制器脱离所述网络,删除后,该智能控制器(例如墙壁开关)将自动回到待扫描状态。In a further example, you can click or long press the device icon through the APP in the terminal, and then click the delete device button to delete the device from the network. At this time, the terminal can generate a corresponding controller deletion command, and the terminal will The controller deletion command is sent to the gateway, and the gateway can make the intelligent controller disconnect from the network. After deletion, the intelligent controller (such as a wall switch) will automatically return to the state of waiting for scanning.
其中一种实施方式中,所述处理模块205还用于:In one of the implementation manners, the
若通过所述无线通信模块接收到已配对的无线开关直接发出的配对施控报文,则根据所述配对施控报文,向所述驱动模块输出对应的驱动信号;即:智能控制器2还用于:若接收到已配对的无线开关直接发出的已配对开关施控报文,则可根据所述已配对开关施控报文,向所述驱动模块输出对应的驱动信号。If the pairing control message directly sent by the paired wireless switch is received through the wireless communication module, then according to the pairing control message, a corresponding drive signal is output to the drive module; that is: the
其中的配对施控报文内容,可参照前文中各种施控报文理解。其可以是第一施控报文、第二施控报文、第三施控报文、完整动作施控报文、下按后施控报文中的任意之一,也可不限于此。The content of the paired control message can be understood by referring to the various control messages in the previous article. It can be any one of the first control message, the second control message, the third control message, the complete action control message, and the press control message, and it is not limited thereto.
为实现以上配对后的控制,智能控制器2与无线开关1之间可实现配对过程。In order to realize the above paired control, a pairing process can be implemented between the
所述处理模块205还用于:The
响应于所述按键的配对操作而带来的至少一个触动信号,确定所述智能控制器进入配对状态;即:智能控制器能够响应于配对操作而进入配对状态;与之对应的,无线开关可响应于针对无线开关的配对操作(例如其中操作件的配对操作而带来的至少一个触发信号),进入配对模式;In response to at least one touch signal brought by the pairing operation of the button, it is determined that the intelligent controller enters the pairing state; that is, the intelligent controller can enter the pairing state in response to the pairing operation; correspondingly, the wireless switch can Entering the pairing mode in response to a pairing operation on the wireless switch (for example, at least one trigger signal brought by the pairing operation of the operating element);
在所述智能控制器处于所述配对状态时,与处于配对模式的无线开关进行配对,以确定所述处于配对模式的无线开关作为所述已配对的无线开关。When the smart controller is in the pairing state, perform pairing with the wireless switch in the pairing mode, so as to determine the wireless switch in the pairing mode as the paired wireless switch.
所述处理模块205在与处于配对模式的无线开关进行配对时,具体用于(即智能控制器2用于):When the
控制所述指示模块对外反馈配网指示信号,以对外指示出所述智能控制器正处于所述配对状态;Controlling the indication module to feed back a distribution network indication signal to externally indicate that the intelligent controller is in the pairing state;
接收所述处于配对模式的无线开关发出的配对报文;receiving a pairing message sent by the wireless switch in the pairing mode;
响应于所述配对报文,存储所述配对报文中的无线开关信息,以完成所述配对。In response to the pairing message, storing wireless switch information in the pairing message to complete the pairing.
所述处理模块205在根据所述配对施控报文,向所述驱动模块输出对应的驱动信号时,具体用于(即智能控制器2用于):When the
比对所述配对报文中的无线开关信息与所述配对施控报文中的无线开关信息是否匹配;comparing the wireless switch information in the pairing message with the wireless switch information in the pairing control message;
若匹配,则向所述驱动模块输出对应的驱动信号。If they match, output a corresponding driving signal to the driving module.
进一步的方案中,所述指示模块208可以为发光指示模块,所述处理模块205在控制所述指示模块208对外反馈配网指示信号时,具体用于(即智能控制器2用于):In a further solution, the
控制所述发光指示模块以指定参数对外发光,所述指定参数包括以下至少之一:指定颜色、指定的闪烁频率、指定的发光时长。其中,发光指示模块可包括多组指示灯。The light-emitting indication module is controlled to emit light to the outside with specified parameters, and the specified parameters include at least one of the following: a specified color, a specified blinking frequency, and a specified light-emitting duration. Wherein, the light indicating module may include multiple sets of indicator lights.
进而,为形成不同的发光颜色,可采用不同颜色的发光指示单元(例如指示灯)实现。Furthermore, in order to form different luminous colors, it can be implemented by using luminous indicating units (for example, indicator lights) of different colors.
一种具体的举例中,所述按键的配对操作可例如长按智能控制器(例如墙壁开关)的按键不放3秒钟以上,处理模块205可控制发光指示模块(例如指示灯)闪烁,指示其进入了配对模式。例如:闪烁频率可以为0.5-2HZ。In a specific example, the pairing operation of the button can be, for example, long press the button of the smart controller (such as a wall switch) for more than 3 seconds, and the
然后,用户可操作想要与智能控制器(例如墙壁开关)配对的无线开关,进而,无线开关可发出配对报文(例如通过蓝牙信号发出配对报文),智能控制器(例如墙壁开关)收到无线开关的配对后,可停止闪烁,表示配对成功。配对时,智能控制器(例如墙壁开关)收到无线开关的配对报文之后,智能控制器(例如墙壁开关)的处理模块205将无线开关的至少部分无线开关信息等存储起来,例如存储于存储器中,其中所存储的信息包括表征无线开关的ID、表征操作件和/或其动作的键值等信息。Then, the user can operate the wireless switch that wants to be paired with the smart controller (such as a wall switch), and then the wireless switch can send a pairing message (such as sending a pairing message through a Bluetooth signal), and the smart controller (such as a wall switch) receives a pairing message. After pairing with the wireless switch, it can stop flashing, indicating that the pairing is successful. When pairing, after the smart controller (such as a wall switch) receives the pairing message from the wireless switch, the
配对之后,再操作无线开关,对应的智能控制器(例如墙壁开关)的输出将对应地打开或关闭。其中,智能控制器(例如墙壁开关)收到无线开关的施控报文(即已配对开关施控报文)之后,智能控制器(例如墙壁开关)截取其中的表征无线开关的ID、表征操作件和/或其动作的键值等信息(即至少部分无线开关信息),与存储于存储器中的ID和键值进行比对,如果两者匹配,则控制输出的打开或关闭;如果两者不一致,则不动作。After pairing, operate the wireless switch, and the output of the corresponding smart controller (such as a wall switch) will be turned on or off accordingly. Among them, after the intelligent controller (such as the wall switch) receives the control message of the wireless switch (that is, the control message of the paired switch), the intelligent controller (such as the wall switch) intercepts the ID representing the wireless switch and the characterization operation Information such as the key value of the component and/or its action (that is, at least part of the wireless switch information), is compared with the ID and the key value stored in the memory, and if the two match, the control output is turned on or off; If not, no action will be taken.
其中一种实施方式中,所述处理模块205还用于:响应于所述按键的清除操作而带来的至少一个触动信号,清除所述智能控制器的所有已配对的无线开关。即:智能控制器可响应于清除操作,清除所述智能控制器的所有已配对的无线开关,清除的过程可例如删除已存储的无线开关信息。In one implementation manner, the
进一步的方案中,所述配对操作可以为:对应按键被下按并维持预设的第一阈值时长;所述清除操作为:对应按键被下按并维持预设的第二阈值时长;其中,所述第二阈值时长长于所述第二阈值时长。In a further solution, the pairing operation may be: the corresponding button is pressed and maintained for a preset first threshold duration; the clearing operation is: the corresponding button is pressed and maintained for a preset second threshold duration; wherein, The second threshold duration is longer than the second threshold duration.
一种具体的举例中,长按智能控制器(例如墙壁开关)的按键不放3秒钟以上(即第一阈值时长为3秒),智能控制器(例如墙壁开关)的指示灯进行闪烁,指示其进入了配对模式。然后,继续长按按键不放,合计至少持续6秒钟以上(即第二阈值时长为6秒),智能控制器(例如墙壁开关)的指示灯可闪烁2次,表示已经删除了配对,此时,在上述第3步骤中,还包括:可删除存储于存储器中的无线开关的ID、键值等信息。此后操作已经配对的无线开关,墙壁开关不响应。In a specific example, press and hold the button of the smart controller (such as a wall switch) for more than 3 seconds (that is, the first threshold duration is 3 seconds), and the indicator light of the smart controller (such as a wall switch) will flash. Indicates that it is in pairing mode. Then, continue to press and hold the button for a total of at least 6 seconds (that is, the second threshold duration is 6 seconds), and the indicator light of the smart controller (such as a wall switch) can flash twice, indicating that the pairing has been deleted. In this case, in the third step above, it also includes: information such as the ID and key value of the wireless switch stored in the memory can be deleted. After that, the paired wireless switch is operated, but the wall switch does not respond.
此外,以上方案中,控制发光指示模块(例如指示灯)闪烁的过程,还可替换为:通过输出通断模块对智能控制器所连接的灯具进行控制,使其发生闪烁,进而,控制发光指示模块闪烁的过程均可应用于利用输出通断模块控制灯具闪烁。In addition, in the above solution, the process of controlling the flickering of the light-emitting indicating module (such as an indicator light) can also be replaced by: controlling the lamp connected to the intelligent controller through the output on-off module to make it flicker, and then controlling the light-emitting indicating The process of module flickering can be applied to use the output on-off module to control the flickering of lamps.
除了对模式进行指示,指示模块(例如发光指示模块)还可对按键的下按情况进行表征,其中,每个发光指示单元与一个按键对应;In addition to indicating the mode, the indicating module (such as a light-emitting indicating module) can also characterize the pressing of the key, wherein each light-emitting indicating unit corresponds to a key;
所述处理模块205还用于:The
响应于所述按键的通断控制操作而带来的至少一个触动信号,向所述驱动模块输出对应的驱动信号;Outputting a corresponding drive signal to the drive module in response to at least one touch signal brought about by the on-off control operation of the key;
响应于所述通断控制操作而带来的至少一个触动信号,控制发生所述通断控制操作的按键所对应的发光指示单元发光。In response to at least one touch signal brought by the on-off control operation, the light-emitting indicating unit corresponding to the key on which the on-off control operation occurs is controlled to emit light.
即:智能控制器2还用于:响应于对按键的通断控制操作,变化所连接线路的通断状态,也可响应于按键的通断控制操作,控制发生所述通断控制操作的按键所对应的发光指示单元发光。That is: the
以上各方案中,“向所述驱动模块输出对应的驱动信号”可以是使得驱动模块控制输出通断模块接通的信号,也可以是使得驱动模块控制输出通断模块关断的信号,还可以是使得驱动模块控制输出模块翻转的信号。In each of the above schemes, "outputting a corresponding driving signal to the driving module" may be a signal that makes the driving module control the output on-off module to turn on, or a signal that makes the driving module control the output on-off module to turn off, or It is the signal that makes the drive module control the output module to flip.
其中一种实施方式中,所述的智能控制器2,还可包括背光模块,其可以为指示模块(例如指示模块与背光模块为同一模块),也可以是独立于指示模块的其他路模块,所述背光模块电连接所述处理模块205;In one embodiment, the
所述处理模块205还用于:The
通过所述无线通信模块获取终端发出的背光设置信息;Obtain the backlight setting information sent by the terminal through the wireless communication module;
其中,所述背光设置信息用于指示出:所述输出通断模块关断时所述背光模块是否发光,和/或:所述背光模块发光时的背光参数,所述背光参数包括以下至少之一:发光亮度、发光颜色、发光时长;Wherein, the backlight setting information is used to indicate: whether the backlight module emits light when the output on-off module is turned off, and/or: backlight parameters when the backlight module emits light, and the backlight parameters include at least one of the following One: luminous brightness, luminous color, luminous duration;
在所述输出通断模块关断时,根据所述背光设置信息设置所述背光模块。即:智能控制器2还用于:在所述输出通断模块关断时,根据终端发出的背光设置信息设置所述背光模块。When the output switching module is turned off, the backlight module is set according to the backlight setting information. That is, the
其中,背光设置信息可以是终端发送至网关,再转发至智能控制器的。Wherein, the backlight setting information may be sent by the terminal to the gateway, and then forwarded to the intelligent controller.
具体的一种举例中,用户打开终端的APP后,可点击一界面中的背光设置按钮,进入相应的设置界面,此时,可将背光从关闭切换为打开,或调节背光亮度。进而,在智能控制器2(例如墙壁开关)在关闭状态下(即输出通断模块关断时),将熄灭背光(即控制背光模块部发光),或调节背光亮度到指定值(即将背光模块的亮度和/或颜色调制背光设置信息所指向的背光值)。In a specific example, after the user opens the APP of the terminal, he can click the backlight setting button in an interface to enter the corresponding setting interface. At this time, the backlight can be switched from off to on, or the brightness of the backlight can be adjusted. Furthermore, when the intelligent controller 2 (such as a wall switch) is in the off state (that is, when the output on-off module is turned off), it will turn off the backlight (that is, control the backlight module to emit light), or adjust the brightness of the backlight to a specified value (that is, the backlight module The brightness and/or color modulation of the backlight setting information points to the backlight value).
此外,在接收到背光设置信息中,可将其存储于智能控制器2的存储器中。智能控制器2(例如墙壁开关)从打开切换为关闭状态(即输出通断模块关断)时,或重新再次上电时,均检查所存储的背光设置信息,并将背光模块设置为背光设置信息的亮度和/或颜色。其中,上述背光值为0-255之间的值。具体举例中,其中可利用0代表背光完全关闭(即无背光)。Furthermore, upon receiving the backlight setting information, it may be stored in the memory of the
通过以上设置背光的功能,用户可以灵活的设置智能控制器(例如墙壁开关)的背光是否打开以及亮度。对于对夜晚房间的光源不敏感的用户,可以打开背光值,方便用户夜晚的时候很方便的找到墙壁开关操作墙壁开关。但对于对夜晚方面光源敏感的人群,则可以调低背光亮度甚至关闭背光,可以更好的睡眠。或者:可将背光调至偏爱的颜色,满足用户的使用需求。Through the above function of setting the backlight, the user can flexibly set whether the backlight of the smart controller (such as a wall switch) is turned on and the brightness. For users who are not sensitive to the light source in the room at night, the backlight value can be turned on, so that the user can easily find the wall switch to operate the wall switch at night. But for people who are sensitive to light sources at night, you can lower the brightness of the backlight or even turn off the backlight to sleep better. Or: the backlight can be adjusted to a preferred color to meet the needs of users.
其中一种实施方式中,所述处理模块205还用于:In one of the implementation manners, the
确定所述智能控制器处于对外控制状态;Determining that the intelligent controller is in an external control state;
在所述智能控制器处于所述对外控制状态时,通过所述驱动模块控制所述输出通断模块保持接通的状态;When the intelligent controller is in the external control state, the drive module controls the output on-off module to keep on;
在所述智能控制器处于所述对外控制状态时,响应于所述按键的对外控制操作而带来的至少一个触发信号,对外发出对外控制报文。When the intelligent controller is in the external control state, in response to at least one trigger signal brought by the external control operation of the button, an external control message is sent externally.
通过其中的对外控制报文,所述网关或终端能够根据所述对外控制报文控制对应的可控设备执行所述对外控制报文所指向的控制结果能够被对应的可控设备执行。Through the external control message, the gateway or terminal can control the corresponding controllable device according to the external control message to execute the control result pointed to by the external control message to be executed by the corresponding controllable device.
以墙壁开关作为智能控制器为例,由于其需控制接线柱间线路的通断输出,所以,其通常是受控的装置,以上方案中,还实现了控制角色的转换,突破了以墙壁开关为例的智能开关的功能限制,有助于满足各种多样的控制需求。Taking the wall switch as an example of an intelligent controller, it is usually a controlled device because it needs to control the on-off output of the lines between the terminals. For example, the function limit of the smart switch helps to meet a variety of control needs.
所述对应的可控设备是所述网关或所述终端根据所述对外控制报文控制的,例如:在将对外控制报文发送至网关或终端后,其可将对外控制报文的部分或全部信息转发至相应的可控设备。The corresponding controllable device is controlled by the gateway or the terminal according to the external control message, for example: after sending the external control message to the gateway or the terminal, it can send part of the external control message or All information is forwarded to the corresponding controllable device.
其中的可控设备可例如为其他智能控制器(例如墙壁开关)、风扇、灯具、插座、垃圾处理设备、音箱装置等,还可以是网关、终端本身。The controllable devices may be, for example, other intelligent controllers (such as wall switches), fans, lamps, sockets, garbage disposal equipment, speaker devices, etc., and may also be gateways and terminals themselves.
进一步的方案中,所述处理模块205在确定所述智能控制器处于对外控制状态时,具体用于:In a further solution, when the
获取终端发出的第一指定命令;所述第一指定命令是所述终端响应于相应操控而产生的;例如可以在显示智能控制器的界面中,提供相应的元素,通过对该元素的操控,终端可产生并发出第一指定命令,该第一指定命令可经网关转发至智能控制器2;Obtain the first specified command issued by the terminal; the first specified command is generated by the terminal in response to the corresponding manipulation; for example, a corresponding element may be provided in the interface displaying the intelligent controller, and through manipulation of the element, The terminal can generate and issue a first specified command, and the first specified command can be forwarded to the
响应于所述第一指定命令,确定所述智能控制器进入所述对外控制状态。In response to the first specified command, it is determined that the intelligent controller enters the external control state.
具体的举例中,在智能控制器的普通状态(例如非对外控制状态、非配对状态的状态)下,需要对外控制时,用户可打开终端APP,点击界面中智能控制器的设备图标,可在页面中点击“转为无线开关”;进而,智能控制器可切换为无线开关模式(即对外控制状态)。如果此时智能控制器(例如墙壁开关)的输出通断模块为关断状态,则自动切换为接通状态。In a specific example, in the ordinary state of the smart controller (such as the state of non-external control and non-pairing state), when external control is required, the user can open the terminal APP, click the device icon of the smart controller in the interface, and the Click "Switch to wireless switch" on the page; then, the smart controller can be switched to the wireless switch mode (that is, the external control state). If the output on-off module of the intelligent controller (such as a wall switch) is in the off state at this time, it will automatically switch to the on state.
在处于对外控制状态时,用户操作智能控制器的按键,其处理单元将不发送驱动信号控制输出通断模块的关断或接通,而维持其为接通状态。同时,用户操作按键时,将发送至少一报文(即对外控制报文)至网关或手机终端。该报文可以被网关或手机终端或服务器用于控制其他的设备。具体的,用户在不同的操作下,可以发送不同的对外控制报文,在短按、双击、长按动作下,分别发送不同的对外控制报文。In the state of external control, if the user operates the key of the intelligent controller, its processing unit will not send a driving signal to control the shutdown or connection of the output on-off module, but maintain it in the connected state. At the same time, when the user operates the button, at least one message (that is, an external control message) will be sent to the gateway or the mobile terminal. This message can be used by the gateway or mobile phone terminal or server to control other devices. Specifically, the user can send different external control messages under different operations, and send different external control messages respectively under short press, double click, and long press actions.
通过对外控制状态下的实现过程,可以赋予墙壁开关更丰富的功能。Through the realization process under the external control state, the wall switch can be endowed with more abundant functions.
一种举例中,若客厅有两路灯,在没有对外控制状态的情况下,用户只能装一个双键的智能控制器(例如墙壁开关),分别控制客厅的两路灯。但是,如果具有对外控制状态,则可以装一个三键的智能控制器(例如墙壁开关),其中一个多出来的按键实现对外控制状态下的对外控制,例如:将其配置为一键全关家里的所有灯及其他设备,实现出门时“一键全关”。In one example, if there are two lamps in the living room, the user can only install a two-button smart controller (such as a wall switch) to control the two lamps in the living room without external control. However, if there is an external control state, you can install a three-button intelligent controller (such as a wall switch), and one of the extra buttons realizes external control under the external control state, for example: configure it as a one-key all-off home All lights and other equipment can be turned off with one key when going out.
另一举例中,智能控制器(例如墙壁开关)所控制的灯可例如为带WIFI或蓝牙通信能力的可调光智能灯,此时,如果要保持可调光功能,则需要一直有电保持在线状态。如果安装的是普通开关或没有对外控制状态的墙壁开关,则在开关关闭的情况下,智能灯就掉电离线了。而如果使用该具有对外控制状态的智能控制器,则可发出对外控制报文,对外控制报文直接或间接传递至可调光智能灯来控制智能灯的打开和关闭,例如可通过Wifi、蓝牙等方式直接或间接地传递对外控制报文的内容,进而,无需简单粗暴的将其供电接通或断开,可见,维持了调光智能灯一直有电一直保持在线状态。In another example, the light controlled by the smart controller (such as a wall switch) can be a dimmable smart light with WIFI or Bluetooth communication capabilities. At this time, if you want to maintain the dimmable function, you need to keep it powered online status. If an ordinary switch or a wall switch without external control status is installed, the smart light will be powered off and offline when the switch is turned off. And if the intelligent controller with external control status is used, external control messages can be sent, and the external control messages can be directly or indirectly transmitted to the dimmable smart lights to control the turning on and off of the smart lights, for example, through Wifi, Bluetooth Directly or indirectly transmit the content of the external control message, and then, there is no need to turn on or off the power supply simply and rudely. It can be seen that the dimming smart light is always powered and kept online.
其中一种实施方式中,所述输出通断模块串联于特定智能设备,且所述特定智能设备能够在检测到所述输出通断模块发生掉电事件后变化输出状态,所述掉电事件指所述输出通断模块自接通的状态变化为关断的状态,并在特定时长后又变化为接通的状态;In one of the implementation manners, the output on-off module is connected in series with a specific smart device, and the specific smart device can change the output state after detecting a power-down event of the output on-off module, and the power-down event indicates The output on-off module changes from the on state to the off state, and changes to the on state after a certain period of time;
所述处理模块205还用于:The
确定所述智能控制器处于特定控制状态;determining that the intelligent controller is in a specific control state;
在所述智能控制器处于所述特定控制状态时,若未接收到任意触动信号,则通过所述驱动模块控制所述输出通断模块保持接通的状态;When the intelligent controller is in the specific control state, if no trigger signal is received, the drive module controls the output on-off module to keep on;
在所述智能控制器处于所述特定控制状态时,若接收到触动信号,则响应于该触动信号,控制所述驱动模块先输出关断的驱动信号,维持所述特定时长后,切换为输出接通的驱动信号,并保持输出接通的驱动信号。When the intelligent controller is in the specific control state, if a trigger signal is received, in response to the trigger signal, the drive module is controlled to first output a drive signal that is turned off, and after maintaining the specific time length, switch to output The drive signal that is turned on, and keeps outputting the drive signal that is turned on.
进而,通过以上控制过程,可针对于特定智能设备对掉电事件的特定反应,主动形成掉电事件,从而控制其输出状态发生变化,其中的特定智能设备可例如为可调光智能灯,但也不限于此。在该控制过程中,特定智能设备虽然发生了掉电事件,但特定智能设备中的储能模块(例如电容)的电能通常不会用完,所以,特定智能模块的其他电路的功能依旧可以正常工作。例如,但由于智能控制器(例如墙壁开关)在掉电一段时间后又自动恢复了,因此可调光智能灯虽然自身的输出为关闭状态(即此时未接入到交流电中),但其本身还是有电的,蓝牙和WIFI可以继续保持在线状态。在调光智能灯输出关闭的情况下,如果检测到掉电,则会将自身的输出调节至打开。Furthermore, through the above control process, according to the specific response of a specific smart device to a power-down event, a power-down event can be actively formed to control its output state to change. The specific smart device can be a dimmable smart lamp, for example, but Nor is it limited to this. In this control process, although a power-down event occurs in a specific smart device, the power of the energy storage module (such as a capacitor) in the specific smart device is usually not used up, so the functions of other circuits of the specific smart module can still be normal Work. For example, since the smart controller (such as a wall switch) automatically recovers after a period of power failure, although the output of the dimmable smart lamp is off (that is, it is not connected to the AC power at this time), its It still has electricity, and Bluetooth and WIFI can continue to be online. With the dimming smart light output off, it will dim its own output to on if it detects a brownout.
具体方案中,所述处理模块在确定所述智能控制器处于特定控制状态时,具体用于:In a specific scheme, when the processing module determines that the intelligent controller is in a specific control state, it is specifically used to:
获取终端发出的第二指定命令;所述第二指定命令是所述终端响应于相应操控而产生的;例如可以在显示智能控制器的界面中,提供相应的元素,通过对该元素的操控,终端可产生并发出第二指定命令,该第二指定命令可经网关转发至智能控制器2;Obtain a second specified command issued by the terminal; the second specified command is generated by the terminal in response to corresponding manipulation; for example, a corresponding element may be provided in an interface displaying an intelligent controller, and through manipulation of the element, The terminal can generate and issue a second specified command, and the second specified command can be forwarded to the
响应于所述第二指定命令,确定所述智能控制器进入所述特定控制状态。In response to the second specified command, it is determined that the intelligent controller enters the specific control state.
进一步的具体举例中,在智能控制器的普通状态(例如非对外控制状态、非配对状态的状态)下,用户操作按键,将触发智能控制器(例如墙壁开关)的处理模块发送对应的驱动信号,将智能控制器(例如墙壁开关)的输出通断模块进行打开或关闭。需要实现以上特定控制时,用户可打开终端APP,点击智智能控制器的设备图标,在页面中点击“转为凌动模式”;进而,智能控制器可切换为特定控制状态。如果此时智能控制器可切换为的输出通断模块为关闭状态,则自动切换为打开状态。In a further specific example, in the ordinary state of the smart controller (such as the state of non-external control and non-pairing state), the user operates a button, which will trigger the processing module of the smart controller (such as a wall switch) to send a corresponding drive signal , to turn on or off the output on-off module of the intelligent controller (such as a wall switch). When the above specific control needs to be realized, the user can open the terminal APP, click the device icon of the smart controller, and click "turn to Atom mode" on the page; then, the smart controller can be switched to a specific control state. If the output on-off module that the intelligent controller can switch to is in the off state at this time, it will automatically switch to the on state.
在该特定控制状态下,用户操作按键,智能控制器(例如墙壁开关)的处理模块将不发送驱动信号控制输出通断模块的关断或接通,而是发送对应的驱动信号控制输出通断模块关断,然后维持一特定时长(例如可以为10-200ms),然后再控制输出通断模块接通,该过程中,可主动形成一次掉电事件。In this specific control state, when the user operates the button, the processing module of the intelligent controller (such as a wall switch) will not send a drive signal to control the output on-off module to turn off or on, but will send a corresponding drive signal to control the output on-off The module is turned off, and then maintained for a specific period of time (for example, 10-200ms), and then the output on-off module is controlled to be turned on. During this process, a power-down event can be actively formed.
其中一种实施方式中,所述处理模块205还用于:In one of the implementation manners, the
通过所述无线通信模块向所述网关或终端上报所述智能控制器的状态信息;即:智能控制器向网关或终端上报智能控制器的状态信息;Report the state information of the intelligent controller to the gateway or terminal through the wireless communication module; that is: the intelligent controller reports the state information of the intelligent controller to the gateway or terminal;
在所述智能控制器的按键下按时,通过所述无线通信模块向所述网关上报控制器下按事件。When the key of the intelligent controller is pressed, the controller is pressed event is reported to the gateway through the wireless communication module.
其中,智能控制器的状态信息可例如包括:表征其通断输出模块处于接通状态还是关断状态的信息,还可例如包括:表征智能控制器整体处于哪种状态的信息,具体可以为待扫描状态、配对状态、对外控制状态、特定控制状态、普通状态中至少之一。Among them, the state information of the intelligent controller may include, for example: information indicating whether its on-off output module is in the on state or in the off state, and may also include, for example: information indicating which state the intelligent controller is in as a whole. At least one of scanning state, pairing state, external control state, specific control state, and common state.
此外,本公开中所提及的终端的所有界面,可以分别为不同的界面,至少部分界面可以为同一界面,不论具体的界面如何设置,只要实现了相应的功能,不论界面如何变化,均未脱离其描述范围。In addition, all the interfaces of the terminal mentioned in this disclosure can be different interfaces, at least part of the interfaces can be the same interface, no matter how the specific interface is set, as long as the corresponding function is realized, no matter how the interface changes, it will not change. outside the scope of its description.
请参考图9与图10,智能控制器2还可以包括:底座214、中座210、电路板212、所述按键2装配于所述中壳3或所述底壳4,所述按键2位于所述中壳3的与所述容置空间向背的一侧。其中的接线柱213数量为4个。Please refer to FIG. 9 and FIG. 10, the
所述中座210盖合于所述底座214的开口侧,以在所述底座214与所述中座210之间形成容置空间,所述电路板212、以及前文提到的各电路模块可位于所述容置空间内。The
其中一种实施方式中,请参考图9至图10,所述的智能控制器2,还包括至少一个按键传动件211,所述中座210设有按键孔,所述按键传动件211穿设于所述按键孔,所述按键传动件211的第一端用于直接或间接对接对应的按键207,所述按键传动件211的第二端对接所述电路板212上的开关器件(未图示)。In one embodiment, please refer to Fig. 9 to Fig. 10, the
其中的按键传动件211可采用硅胶按键(即按键传动件211的材料采用硅胶材料),进而,其可带来一定的弹性与形变能力,具体来说,由于硅胶是软性材料,可以被压缩并复原,设置在按键与电子开关之间能显著提升按压手感;同时,硅胶的可压缩性能,配合以按键的按压结构,可以显著增加按键末端的按压行程。其他举例中,按键传动件211也可采用其他具有弹性、形变能力或不具有弹性、形变能力的构件。Wherein the
其中一种实施方式中,请参考图9,所述的智能控制器2,还包括弹性部件209,所述弹性部件209沿所述按键207的按压方向位于所述至少一个按键207与所述中座210之间;可见,部分方案中,单个弹性部件209可延伸至多个按键下侧,也可仅位于一个按键下侧。In one of the implementation manners, please refer to FIG. 9 , the
所述弹性部件209能够在所述按键207被按下时受所述按键207与所述中座210的挤压而发生压缩形变,并产生克服所述压缩形变的作用力。The
通过该弹性部件,可辅助按键回弹,以泡棉为例的弹性部件具有一定厚度和弹性,能在没有外力作用下帮助按键克服重力回弹到自然位置。The elastic component can assist the rebound of the key. The elastic component, such as foam, has a certain thickness and elasticity, and can help the key to rebound to the natural position against gravity without external force.
其中,所述按键传动件的抗形变能力高于所述弹性部件的抗形变能力。进而,可避免弹性部件的抗形变作用阻碍按键传动件的作用。Wherein, the deformation resistance of the key transmission member is higher than that of the elastic component. Furthermore, it is possible to prevent the anti-deformation effect of the elastic member from obstructing the function of the key transmission member.
具体的,所述弹性部件可以包括以下至少之一:弹簧、弹片、弹性硅胶、弹力泡棉。在图示的举例中,其采用了弹力泡棉。Specifically, the elastic component may include at least one of the following: springs, shrapnel, elastic silicone, and elastic foam. In the illustrated example, elastic foam is used.
其中一种实施方式中,智能控制器2还可包括导光件215,其一端可延伸至按键207的出光部,另一端可延伸至电路板212上的前文所提及的的指示模块。In one embodiment, the
请参考图11,本公开还提供了一种无线开关的处理方法,包括:Please refer to FIG. 11 , the present disclosure also provides a processing method for a wireless switch, including:
S601:在未处于配网模式时,所述无线开关响应于针对所述无线开关的开关配网操作,进入配网模式;S601: When not in the network distribution mode, the wireless switch enters the network distribution mode in response to a switch network distribution operation on the wireless switch;
S602:在处于所述配网模式时,所述无线开关产生并对外发出开关配网报文;S602: When in the network distribution mode, the wireless switch generates and sends out a switch network distribution message;
进而,可以使得:指定设备获取到所述开关配网报文后,将所述无线开关加入所述指定设备对应的网络,以完成配网;Furthermore, it may be made that: after the designated device obtains the network configuration message of the switch, the wireless switch is added to the network corresponding to the designated device, so as to complete the network configuration;
S603:在处于已配网模式时,所述无线开关响应于针对所述无线开关的施控操作,产生施控报文;S603: When in the configured network mode, the wireless switch generates a control message in response to a control operation on the wireless switch;
S604:对外发出施控报文;S604: sending out a control message;
进而可以使得:所述施控报文所指向的控制结果能够被执行。Furthermore, the control result pointed to by the control message can be executed.
可选的,所述无线开关产生并对外发出开关配网报文之后,还包括:Optionally, after the wireless switch generates and sends out the switch distribution network message, it also includes:
所述无线开关获取到所述指定设备发出的开关配网反馈信息,所述开关配网反馈信息包括安全信息;The wireless switch obtains switch distribution network feedback information sent by the specified device, and the switch distribution network feedback information includes security information;
对外发出施控报文之前,还包括:Before sending out the control message, it also includes:
所述无线开关基于所述安全信息,对所述施控报文进行加密,以使得:所述指定设备能够解密并验证所述施控报文,并在解密并验证通过后,才驱使所述施控报文所指向的控制结果被执行。The wireless switch encrypts the control message based on the security information, so that: the designated device can decrypt and verify the control message, and drive the The control result pointed to by the control message is executed.
可选的,所述无线开关对外发出开关配网报文,具体包括:所述无线开关每间隔一指定的配网间隔时长发送一次所述开关配网报文。Optionally, the wireless switch sends a switch network configuration message to the outside, which specifically includes: the wireless switch sends the switch network configuration message once every specified network distribution interval.
所述的处理方法,还包括:The processing method also includes:
在处于所述已配网模式时,所述无线开关每间隔一指定的心跳间隔时长发送一次心跳报文,以使得:所述终端与所述网关在获取到所述心跳报文后,能够根据所述心跳报文确定所述无线开关当前还在线。When in the configured network mode, the wireless switch sends a heartbeat message at intervals of a specified heartbeat interval, so that: after the terminal and the gateway obtain the heartbeat message, they can, according to The heartbeat message determines that the wireless switch is still online.
可选的,所述的处理方法,还包括:Optionally, the processing method also includes:
在处于所述配网模式和/或所述已配网模式时,产生并发送任意报文之前,所述无线开关退出低功耗状态;When in the network distribution mode and/or the network distribution mode, before any message is generated and sent, the wireless switch exits the low power consumption state;
在处于所述配网模式和/或所述已配网模式时,产生并发送完任意报文之后,所述无线开关进入所述低功耗状态;When in the network distribution mode and/or the network distribution mode, after generating and sending any message, the wireless switch enters the low power consumption state;
其中,所述低功耗状态下所述无线开关的功耗低于产生并发送报文时的功耗。Wherein, the power consumption of the wireless switch in the low power consumption state is lower than the power consumption when generating and sending messages.
可选的,所述的处理方法,还包括:Optionally, the processing method also includes:
在所述无线开关中供电模块的电压信息高于电能阈值时,所述无线开关中的发光模块对外输出第一光信号;When the voltage information of the power supply module in the wireless switch is higher than the power threshold, the light emitting module in the wireless switch outputs a first light signal;
所述电压信息低于所述电能阈值时,所述发光模块对外输出第二光信号;When the voltage information is lower than the electric energy threshold, the light emitting module outputs a second light signal;
其中,所述电压信息为所述供电模块中的电源单元或能量缓存单元的电压信息。Wherein, the voltage information is voltage information of a power supply unit or an energy storage unit in the power supply module.
最后应说明的是:以上各实施例仅用以说明本发明的技术方案,而非对其限制;尽管参照前述各实施例对本发明进行了详细的说明,本领域的普通技术人员应当理解:其依然可以对前述各实施例所记载的技术方案进行修改,或者对其中部分或者全部技术特征进行等同替换;而这些修改或者替换,并不使相应技术方案的本质脱离本发明各实施例技术方案的范围。Finally, it should be noted that: the above embodiments are only used to illustrate the technical solutions of the present invention, rather than limiting them; although the present invention has been described in detail with reference to the foregoing embodiments, those of ordinary skill in the art should understand that: It is still possible to modify the technical solutions described in the foregoing embodiments, or perform equivalent replacements for some or all of the technical features; and these modifications or replacements do not make the essence of the corresponding technical solutions deviate from the technical solutions of the various embodiments of the present invention. scope.
Claims (10)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202211450260.XA CN115665595A (en) | 2021-06-22 | 2021-06-22 | Wireless switch, its processing method, and control system |
Applications Claiming Priority (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202211450260.XA CN115665595A (en) | 2021-06-22 | 2021-06-22 | Wireless switch, its processing method, and control system |
CN202110692894.5A CN113423026B (en) | 2021-06-22 | 2021-06-22 | Wireless switch, processing method thereof and control system |
Related Parent Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202110692894.5A Division CN113423026B (en) | 2021-06-22 | 2021-06-22 | Wireless switch, processing method thereof and control system |
Publications (1)
Publication Number | Publication Date |
---|---|
CN115665595A true CN115665595A (en) | 2023-01-31 |
Family
ID=77716090
Family Applications (2)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202110692894.5A Active CN113423026B (en) | 2021-06-22 | 2021-06-22 | Wireless switch, processing method thereof and control system |
CN202211450260.XA Pending CN115665595A (en) | 2021-06-22 | 2021-06-22 | Wireless switch, its processing method, and control system |
Family Applications Before (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202110692894.5A Active CN113423026B (en) | 2021-06-22 | 2021-06-22 | Wireless switch, processing method thereof and control system |
Country Status (1)
Country | Link |
---|---|
CN (2) | CN113423026B (en) |
Families Citing this family (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113993006A (en) * | 2021-10-28 | 2022-01-28 | 镇伟 | Intelligent Internet of things switch and control method |
CN114567870B (en) * | 2022-02-28 | 2024-04-16 | 海信视像科技股份有限公司 | GATT-based network and account number distribution method, control terminal and display device |
CN115494769B (en) * | 2022-09-21 | 2025-05-09 | 武汉领普科技有限公司 | Control system and processing method of intelligent wall switch and intelligent wall switch |
CN115410356A (en) * | 2022-10-14 | 2022-11-29 | 武汉领普科技有限公司 | Wireless switch and control system |
Family Cites Families (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105223815B (en) * | 2015-07-22 | 2017-10-31 | 广东天诚智能科技有限公司 | Intelligent household wireless control system |
CN108880625B (en) * | 2018-08-27 | 2022-02-18 | 深圳市昇润科技有限公司 | Bluetooth-based intelligent device system and implementation method |
CN110796844A (en) * | 2019-11-08 | 2020-02-14 | 杭州涂鸦信息技术有限公司 | Wireless remote control method |
CN111221273B (en) * | 2020-01-18 | 2021-06-04 | 武汉领普科技有限公司 | Control method, system, gateway, wall switch and cloud based on wireless switch |
CN111273579B (en) * | 2020-01-18 | 2021-03-05 | 武汉领普科技有限公司 | Receiver and its processing method, system and self-generating switch-based control assembly |
CN111867007A (en) * | 2020-07-24 | 2020-10-30 | 深圳创维数字技术有限公司 | Intelligent device automatic distribution network method, system and storage medium |
CN112866068A (en) * | 2021-01-19 | 2021-05-28 | 杭州立众数字科技有限公司 | Intelligent interaction system, interaction terminal and control platform |
-
2021
- 2021-06-22 CN CN202110692894.5A patent/CN113423026B/en active Active
- 2021-06-22 CN CN202211450260.XA patent/CN115665595A/en active Pending
Also Published As
Publication number | Publication date |
---|---|
CN113423026A (en) | 2021-09-21 |
CN113423026B (en) | 2022-10-18 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN113423026B (en) | Wireless switch, processing method thereof and control system | |
CN113300473B (en) | Intelligent controller, processing method thereof and control system | |
CN113438564B (en) | Control system, terminal processing method, wireless switch and processing method thereof | |
HK1251342A1 (en) | Switch device having auxiliary power unit and wireless receiving function, and lamp system thereof | |
JP2020504901A (en) | Wireless illumination driving device having independent power supply and illumination system thereof | |
CN210983079U (en) | Interactive system based on gateway and self-generating switch | |
CN205939054U (en) | Lighting lamp | |
CN110049608B (en) | Intelligent lamp and control method thereof | |
CN115515197A (en) | Wireless control equipment, configuration equipment and its control system | |
CN116546710A (en) | A Bluetooth-connected flashlight control method and control system thereof | |
US20140191853A1 (en) | Power control system | |
CN116506836A (en) | Doorbell control method | |
CN205983060U (en) | Intelligence cross complaint switch | |
CN201639561U (en) | Touch key response system and electric appliance employing same | |
JP2008219709A (en) | Remote controller | |
CN113745055A (en) | Working mode setting method and switch, switch system control method and switch system | |
TW201641092A (en) | Control system applied to power device and control method thereof | |
CN222996719U (en) | In-wall dimming device and dimming system | |
CN209787194U (en) | Intelligent control system with intelligent panel meter | |
CN117749154A (en) | a touch switch | |
CN117997329A (en) | Touch switch and control method thereof | |
CN117289628A (en) | Control method, device and equipment thereof | |
CN104111611B (en) | Patch switch and control system thereof | |
CN119937406A (en) | Switchgear and its control system | |
KR101822431B1 (en) | Electronic device control apparatus and electronic device control method using the same |
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 |