CN114336918A - Self-generating switch and its processing method and processing system - Google Patents
Self-generating switch and its processing method and processing system Download PDFInfo
- Publication number
- CN114336918A CN114336918A CN202210022802.7A CN202210022802A CN114336918A CN 114336918 A CN114336918 A CN 114336918A CN 202210022802 A CN202210022802 A CN 202210022802A CN 114336918 A CN114336918 A CN 114336918A
- Authority
- CN
- China
- Prior art keywords
- module
- self
- switch
- network
- target
- 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
Landscapes
- Telephone Function (AREA)
Abstract
Description
技术领域technical field
本发明涉及开关领域,尤其涉及一种自发电开关及其处理方法、处理系统。The invention relates to the field of switches, in particular to a self-generating switch, a processing method and a processing system thereof.
背景技术Background technique
自发电开关,可理解为配置有发电机的开关,开关中电路所需的电能可以由发电机产生的电能提供。同时,自发电开关中,还可配置有通信处理模块,进而利用通信处理模块对外通信。A self-generating switch can be understood as a switch equipped with a generator, and the electrical energy required by the circuit in the switch can be provided by the electrical energy generated by the generator. At the same time, a communication processing module can also be configured in the self-generating switch, and the communication processing module can be used for external communication.
现有相关技术中,自发电开关的配网过程只能依靠自发电开关自发电产生的电能实现,然而,自发电发电的电能有限,这将极大地限制了配网过程所传输、处理的数据量,不利于配网的实现。In the related art, the distribution network process of the self-generating switch can only be realized by relying on the electric energy generated by the self-generating switch. It is not conducive to the realization of the distribution network.
发明内容SUMMARY OF THE INVENTION
本发明提供一种自发电开关及其处理方法、处理系统,以解决决自发电发电的电能有限的问题。The present invention provides a self-generating switch, a processing method and a processing system thereof, so as to solve the problem of limited electric energy for self-generating power generation.
根据本发明的第一方面,提供了一种自发电开关,包括:According to a first aspect of the present invention, a self-generating switch is provided, comprising:
至少一按键,所述按键的至少部分部位被设置为能够响应外部动作而产生位移,所述外部动作包括使按键发生下按的动作;at least one key, at least a part of the key is set to be able to generate displacement in response to an external action, the external action includes an action of pressing the key down;
发电机,所述发电机被设置为能够响应所述位移地将机械能转换为电能;a generator arranged to convert mechanical energy into electrical energy in response to the displacement;
开关电路,所述开关电路包括通信处理模块、储能模块、整流模块、电压输出模块、存储模块与近场通信模块;a switch circuit, the switch circuit includes a communication processing module, an energy storage module, a rectifier module, a voltage output module, a storage module and a near field communication module;
所述发电机包括感应部与运动部;所述通信处理模块电连接所述存储模块,所述感应部通过所述整流模块电连接所述储能模块,所述储能模块通过所述电压输出模块电连接所述通信处理模块与所述存储模块;所述按键直接或间接传动于所述运动部;其中:所述运动部被设置为能够在所述按键被下按时被传动而发生第一方向的运动;所述感应部被设置为能够响应于所述运动部所述第一方向的运动而产生第一感应电压;所述整流模块能够将所述第一感应电压对应的第一电能整流后存储于所述储能模块;所述储能模块能够将所存储的电能输送至所述电压输出模块;The generator includes an induction part and a motion part; the communication processing module is electrically connected to the storage module, the induction part is electrically connected to the energy storage module through the rectifier module, and the energy storage module outputs the voltage through the The module is electrically connected to the communication processing module and the storage module; the key is directly or indirectly transmitted to the moving part; wherein: the moving part is configured to be able to be driven when the key is pressed down, and the first movement in the first direction; the induction part is configured to be able to generate a first induced voltage in response to the movement of the movement part in the first direction; the rectification module can rectify the first electric energy corresponding to the first induced voltage and then stored in the energy storage module; the energy storage module can transmit the stored electrical energy to the voltage output module;
所述近场通信模块与所述存储模块直接或间接电连接,用于:所述发电机未将机械能转换为电能的情况下,通过所述存储模块与目标设备之间的数据交换,执行所述自发电开关与目标网络的配网;The near-field communication module is directly or indirectly electrically connected to the storage module, and is used for executing all the functions through data exchange between the storage module and the target device under the condition that the generator does not convert mechanical energy into electrical energy. Describe the distribution network between the self-generating switch and the target network;
所述通信处理模块用于:所述发电机将机械能转换为电能的情况下,在所述通信处理模块与所述存储模块上电后,产生控制报文,通过所述目标网络发出所述控制报文。The communication processing module is used for: in the case that the generator converts mechanical energy into electrical energy, after the communication processing module and the storage module are powered on, generate a control message, and send the control message through the target network. message.
根据本发明的第二方面,提供了一种自发电开关的处理方法,所述自发电开关包括:至少一按键、发电机、开关电路,所述开关电路包括通信处理模块、储能模块、整流模块、电压输出模块、存储模块与近场通信模块;所述发电机包括感应部与运动部;所述通信处理模块电连接所述存储模块,所述感应部通过所述整流模块电连接所述储能模块,所述储能模块通过所述电压输出模块电连接所述通信处理模块与所述存储模块;所述按键直接或间接传动于所述运动部;所述近场通信模块电连接所述存储模块;According to a second aspect of the present invention, a method for processing a self-generating switch is provided, wherein the self-generating switch includes: at least one button, a generator, and a switch circuit, wherein the switch circuit includes a communication processing module, an energy storage module, a rectifier module, a voltage output module, a storage module and a near field communication module; the generator includes an induction part and a motion part; the communication processing module is electrically connected to the storage module, and the induction part is electrically connected to the an energy storage module, the energy storage module is electrically connected to the communication processing module and the storage module through the voltage output module; the key is directly or indirectly driven to the moving part; the near field communication module is electrically connected to the the storage module;
所述处理方法,包括:The processing method includes:
所述发电机未将机械能转换为电能的情况下,所述近场通信模块通过所述存储模块与目标设备之间的数据交换,执行所述自发电开关与目标网络的配网;When the generator does not convert mechanical energy into electrical energy, the near field communication module executes the distribution network between the self-generating switch and the target network through data exchange between the storage module and the target device;
所述发电机将机械能转换为电能的情况下,在所述通信处理模块与所述存储模块上电后,所述通信处理模块产生控制报文,通过所述目标网络发出所述控制报文。When the generator converts mechanical energy into electrical energy, after the communication processing module and the storage module are powered on, the communication processing module generates a control message, and sends the control message through the target network.
根据本发明的第三方面,提供了一种基于开关的处理系统,包括第一方面及其可选方案涉及的自发电开关,或者,执行第二方面及其可选方案的处理方法的自发电开关,以及所述目标网络。According to a third aspect of the present invention, there is provided a switch-based processing system, comprising the self-generating switch involved in the first aspect and its optional solutions, or a self-generating switch for executing the processing method of the second aspect and its optional solutions switch, and the target network.
本发明提供的自发电开关及其处理方法、处理系统中,在利用发电机、整流模块、储能模块实现自发电电能的产生与使用的情况下,还利用近场通信模块实现了通过近场通信而完成了配网,只要实现了近场通信,即可利用近场通信的能力而传输数据,其数据量不会受到自发电电能的限制,可见,本发明有助于实现更复杂的配网过程。In the self-generating switch, its processing method, and the processing system provided by the present invention, in the case of using a generator, a rectifier module, and an energy storage module to realize the generation and use of self-generating electric energy, a near-field communication module is also used to realize the The distribution network is completed through communication. As long as the near field communication is realized, the ability of the near field communication can be used to transmit data, and the data volume will not be limited by the self-generated electric energy. It can be seen that the present invention helps to realize more complex distribution network. network process.
附图说明Description of drawings
为了更清楚地说明本发明实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动性的前提下,还可以根据这些附图获得其他的附图。In order to explain the embodiments of the present invention or the technical solutions in the prior art more clearly, the following briefly introduces the accompanying 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, and for those of ordinary skill in the art, other drawings can also be obtained from these drawings without any creative effort.
图1是本发明一实施例中处理系统的构造示意图;1 is a schematic structural diagram of a processing system in an embodiment of the present invention;
图2是本发明一实施例中自发电开关的构造示意图;2 is a schematic structural diagram of a self-generating switch in an embodiment of the present invention;
图3是本发明另一实施例中自发电开关的构造示意图;3 is a schematic structural diagram of a self-generating switch in another embodiment of the present invention;
图4是本发明一实施例中自发电开关的结构示意图;4 is a schematic structural diagram of a self-generating switch in an embodiment of the present invention;
图5是本发明一实施例中自发电开关的处理方法的流程示意图。FIG. 5 is a schematic flowchart of a processing method for a self-generating switch according to an embodiment of the present invention.
附图标记说明:Description of reference numbers:
101-按键;101 - key;
102-通信处理模块;102-communication processing module;
103-发电机;1031-运动部;1032-感应部;103-generator; 1031-movement part; 1032-induction part;
104-整流模块;104-rectifier module;
105-储能模块;105 - energy storage module;
106-电压输出模块;106-voltage output module;
107-近场通信模块;1071-NFC天线;107-near field communication module; 1071-NFC antenna;
108-存储模块;108 - storage module;
109-复位件;109 - reset piece;
110-按键识别模块;1101-检测单元;110-key recognition module; 1101-detection unit;
111-动作识别模块;111-action recognition module;
112-电路板;112 - circuit board;
113-底壳;113 - bottom case;
114-导光件;114-light guide;
115-中壳;115 - middle shell;
116-防水套装;116-waterproof suit;
117-传动件;117 - Transmission parts;
200-目标网络;200 - target network;
201-设备;201-equipment;
202-网关;202-gateway;
300-移动终端;300 - mobile terminal;
400-目标设备。400 - Target device.
具体实施方式Detailed ways
下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are only a part of the embodiments of the present invention, but not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those of ordinary skill in the art without creative efforts shall fall within the protection scope of the present invention.
在本发明说明书的描述中,需要理解的是,术语“上部”、“下部”、“上端”、“下端”、“下表面”、“上表面”等指示的方位或位置关系为基于附图所示的方位或位置关系,仅是为了便于描述本发明和简化描述,而不是指示或暗示所指的装置或元件必须具有特定的方位、以特定的方位构造和操作,因此不能理解为对本发明的限制。In the description of the present specification, it should be understood that the orientation or positional relationship indicated by the terms "upper", "lower", "upper end", "lower end", "lower surface", "upper surface", etc. are based on the accompanying drawings The orientation or positional relationship shown is only for the convenience of describing the present invention and simplifying the description, rather than indicating or implying that the indicated device or element must have a specific orientation, be constructed and operated in a specific orientation, and therefore should not be construed as a reference to the present invention. limits.
在本发明说明书的描述中,术语“第一”、“第二”仅用于描述目的,而不能理解为指示或暗示相对重要性或隐含指明所指示的技术特征的数量。由此,限定有“第一”、“第二”的特征可以明示或者隐含地包括一个或者更多个该特征。In the description of the specification of the present invention, the terms "first" and "second" are only used for the purpose of description, and cannot be understood as indicating or implying relative importance or implying the number of indicated technical features. Thus, a feature defined as "first" or "second" may expressly or implicitly include one or more of that feature.
在本发明的描述中,“多个”的含义是多个,例如两个,三个,四个等,除非另有明确具体的限定。In the description of the present invention, "plurality" means a plurality, such as two, three, four, etc., unless otherwise expressly and specifically defined.
在本发明说明书的描述中,除非另有明确的规定和限定,术语“连接”等术语应做广义理解,例如,可以是固定连接,也可以是可拆卸连接,或成一体;可以是机械连接,也可以是电连接或可以互相通讯;可以是直接相连,也可以通过中间媒介间接相连,可以是两个元件内部的连通或两个元件的相互作用关系。对于本领域的普通技术人员而言,可以根据具体情况理解上述术语在本发明中的具体含义。In the description of the specification of the present invention, unless otherwise expressly specified and limited, the term "connection" and other terms should be understood in a broad sense, for example, it may be a fixed connection, a detachable connection, or an integrated; it may be a mechanical connection , it can also be an electrical connection or can communicate with each other; it can be directly connected, or it can be indirectly connected through an intermediate medium, it can be the internal communication between two elements or the interaction relationship between the two elements. For those of ordinary skill in the art, the specific meanings of the above terms in the present invention can be understood according to specific situations.
下面以具体地实施例对本发明的技术方案进行详细说明。下面这几个具体的实施例可以相互结合,对于相同或相似的概念或过程可能在某些实施例不再赘述。The technical solutions of the present invention will be described in detail below with specific examples. 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与图2,本发明实施例提供了一种基于开关的处理系统,也提供了一种自发电开关100及其处理方法,其中的处理系统包括自发电开关100。Referring to FIG. 1 and FIG. 2 , an embodiment of the present invention provides a switch-based processing system, and also provides a self-generating
此外,在处理系统中,请参考图1,还可包括目标网络200,该目标网络200可以为Zigbee网络,也可以为蓝牙网络。In addition, in the processing system, referring to FIG. 1 , a
其中的网关202,可以为任意能够形成和/或管理对应目标网络200 的任意装置或装置的组合,网关202的数量可以为一个,也可以为多个,但也不限于此。具体举例中,所述网关202为网关设备或带网关功能的音箱。The
目标网络200中的设备201可例如包括以下至少之一:智能墙开、智能窗帘、智能灯。该些设备201可被自发电开关发出的控制报文控制,执行对应的动作。The
其中一种实施方式中,处理系统还可包括移动终端300,其可被配置为能够与自发电开关、目标网络中的设备和/或网关通信,其中的通信可以是直接的,也可以是间接的。该移动终端300可例如为手机、平板电脑、计算机等。此外,移动终端300也可获取自发电开关的控制报文,从而受控或实现控制报文的转发,亦或基于控制报文而实现控制。In one embodiment, the processing system may further include a
一种举例中,所述目标网络中的指定设备还用于:In an example, the designated device in the target network is also used for:
通过所述目标网络接收所述控制报文,并将所述控制报文发送至云端;Receive the control message through the target network, and send the control message to the cloud;
所述移动终端还用于:自所述云端获取所述控制报文。The mobile terminal is further configured to obtain the control message from the cloud.
一种举例中,自发电开关的配网过程可以依赖于移动终端300实现,进而,移动终端,用于在执行所述配网时,将所述目标网络的入网密码发送至所述自发电开关。In an example, the network distribution process of the self-generating switch can be implemented by relying on the
一种举例中,网关的配网过程可依赖于移动终端300实现,进而,所述移动终端还用于:将安全信息(例如入网密码)发送至网关,以使所述网关加入所述目标网络。In an example, the network configuration process of the gateway can be implemented by relying on the
此外,请参考图2,目标网络中的设备201、网关202中至少之一可用于作为目标设备400,移动终端300也可用于作为目标设备400,目标设备 400也可以为其他任意可与自发电开关的近场通信模块107通信的设备,即:目标设备400也配置有相应的近场通信的电路。In addition, please refer to FIG. 2, at least one of the
请参考图2,本发明实施例提供的自发电开关100,包括:Referring to FIG. 2 , a self-generating
至少一按键101,所述按键的至少部分部位被设置为能够响应外部动作而产生位移,所述外部动作包括使按键发生下按的动作;At least one
发电机103,所述发电机被设置为能够响应所述位移地将机械能转换为电能;a
开关电路,所述开关电路包括通信处理模块102、储能模块105、整流模块104、电压输出模块106、存储模块108与近场通信模块107。The switch circuit includes a
所述发电机103包括感应部1032与运动部1031;The
运动部1031,可理解为能够被按键、复位件等至少之一传动从而发生运动的部件或部件的组合,感应部1032,可理解为能够与运动部1031相作用,从而在运动部发生运动时感应产生电能的部件或部件的组合,本领域任意可基于运动而产生电能的结构,均可作为本发明实施例的一种可选方案。The moving part 1031 can be understood as a component or combination of components that can be driven by at least one of buttons, reset parts, etc. to move, and the
具体举例中,发电机103中可配置有永磁部、导磁部与线圈部,线圈部可设于导磁部,进而,当永磁部与导磁部发生相对运动时,线圈部可产生感应电压。其中的线圈部可视作以上所提及的感应部1032,其中的永磁部或导磁部可视作以上所提及的运动部1031,即:部分举例中,永磁部发生运动,从而与按键、复位件等直接、间接传动,另部分举例中,导磁部发生运动,从而与按键、复位件等直接、间接传动。可见,感应部1032可能是随运动部1031一同运动的,也可能不随运动部1031一同运动。In a specific example, the
所述通信处理模块102电连接所述存储模块108,所述感应部1032通过所述整流模块104电连接所述储能模块105,所述储能模块105通过所述电压输出模块106电连接所述通信处理模块102与所述存储模块108;所述按键直接或间接传动于所述运动部;The
其中:所述运动部被设置为能够在所述按键被下按时被传动而发生第一方向的运动;所述感应部被设置为能够响应于所述运动部所述第一方向的运动而产生第一感应电压;所述整流模块能够将所述第一感应电压对应的第一电能整流后存储于所述储能模块;所述储能模块能够将所存储的电能输送至所述电压输出模块。Wherein: the moving part is configured to be able to be driven to move in a first direction when the button is pressed down; the sensing part is configured to be capable of being generated in response to the movement of the moving part in the first direction a first induced voltage; the rectifier module can rectify the first electrical energy corresponding to the first induced voltage and store it in the energy storage module; the energy storage module can transmit the stored electrical energy to the voltage output module .
所述电压输出模块106能够利用输送而来的电能,向所述通信处理模块与所述存储模块输出所需的供电电压,使得所述通信处理模块与所述存储模块上电;The
在本发明实施例中,所述近场通信模块107与所述存储模块108直接或间接电连接(例如直接电连接,或通过通信处理模块实现电连接),用于:所述发电机103未将机械能转换为电能的情况下,通过所述存储模块 108与目标设备400之间的数据交换,执行所述自发电开关100与目标网络的配网;In this embodiment of the present invention, the near
与此同时,近场通信模块107与目标设备400交互信号时,进一步举例中,也可自目标设备400获取电能,然后将该电能反馈至存储模块108,另部分举例中,也可将电能反馈至通信处理模块。At the same time, when the near
其中的近场通信模块107例如可以为NFC通信模块。The near
所述通信处理模块102用于:所述发电机103将机械能转换为电能的情况下,在所述通信处理模块102与所述存储模块108上电后,产生控制报文,通过所述目标网络发出所述控制报文。The
其中的电压输出模块106可例如能够对接收到的电能进行电压变换(例如降压和/或稳压),然后将变换后的电压输送至通信处理模块102与存储模块108,为其供电,使其上电。The
所述复位件109被设置为直接或间接传动于所述发电机103的运动部 1031,所述复位件109被设置为能够响应于所述运动部1031发生第一方向的运动而发生形变,并产生克服所述形变的复位作用力,所述复位件109还被设置为能够在使所述按键被下按的作用力被撤去后,利用所述复位作用力传动所述运动部1031发生第二方向的运动,且所述按键101发生回弹;The
在所述运动部发生第二方向的运动时,可产生第二感应电压;所述整流模块104还用于将所述第二感应电压对应的第二电能存储于所述储能模块。When the moving part moves in the second direction, a second induced voltage can be generated; the
该存储模块108可用于存储当前信道信息,具体的,当前信道信息可基于任意处理过程与交互方式而存储于存储模块108的。该存储模块108可以为掉电后不丢失数据的存储器。The
同时,存储模块108还可被配置为仅在上电后才工作,工作后即会掉电,所以,以上对存储模块的配置,可使得存储模块108可保证以上各信息的存储与维护,保障信息的准确性。At the same time, the
此外,自发电开关1中还可包括集成于通信处理模块102的存储器,该存储器可例如能存储通信处理模块102处理所需的代码。In addition, the self-generating switch 1 may further include a memory integrated in the
存储模块108可集成于通信处理模块102,也可独立于通信处理模块 102。The
以上方案中,在利用发电机、整流模块、储能模块实现自发电电能的产生与使用的情况下,还利用近场通信模块实现了通过近场通信而完成了配网,只要实现了近场通信,即可利用近场通信的能力而传输数据,其数据量不会受到自发电电能的限制,可见,本发明有助于实现更复杂的配网过程。In the above scheme, when the generator, rectifier module and energy storage module are used to realize the generation and use of self-generated electric energy, the near field communication module is also used to realize the distribution network through near field communication. Communication means that data can be transmitted by utilizing the capability of near field communication, and the amount of data is not limited by self-generated electric energy. It can be seen that the present invention is helpful for realizing a more complex distribution network process.
其中一种实施方式中,所述通信处理模块102还用于:In one embodiment, the
在所述近场通信模块通过所述存储模块与目标设备之间的数据交换,执行所述自发电开关与目标网络的配网之前,Before the near field communication module performs the distribution network between the self-generating switch and the target network through data exchange between the storage module and the target device,
确定所述自发电开关处于未配网状态,和/或:确定所述自发电开关处于已配网状态,但检测到重置操作。It is determined that the self-generating switch is in an undistributed state, and/or: it is determined that the self-generating switch is in a connected state, but a reset operation is detected.
以上过程的一种举例中,自发电开关靠近目标设备后,近场通信模块可触发通信处理模块检测自发电开关处于已配网状态还是未配网状态,若处于未配网状态,则近场通信模块可在通信处理模块的控制下通过数据交换而实现所述配网的过程;In an example of the above process, after the self-generating switch is close to the target device, the near-field communication module can trigger the communication processing module to detect whether the self-generating switch is in a network-distributed state or an undistributed state. The communication module can realize the process of the distribution network through data exchange under the control of the communication processing module;
以上过程的另一种举例中,自发电开关靠近目标设备后,近场通信模块可触发通信处理模块检测自发电开关处于已配网状态还是未配网状态,若处于已配网状态,则可检测是否发生重置操作,若发生了,则近场通信模块可在通信处理模块的控制下通过数据交换而实现所述配网的过程;In another example of the above process, after the self-generating switch is close to the target device, the near field communication module can trigger the communication processing module to detect whether the self-generating switch is in the network-distributed state or the network-distributed state. Detecting whether a reset operation occurs, and if so, the near field communication module can realize the process of the distribution network through data exchange under the control of the communication processing module;
其他举例中,也可无需通信处理模块参与其中,例如,近场通信模块可以自存储模块读取表征自发电开关状态(即处于已配网状态还是未配网状态的)的信号,然后将其传输至目标设备,由目标设备判断状态,然后在自发电开关处于未配网状态时,指示近场通信模块执行所述配网;再例如,也可无需判断是处于已配网状态还是未配网状态。In other examples, the communication processing module may not need to be involved. For example, the near field communication module can read the signal representing the state of the self-generating switch (that is, whether it is in the grid-distributed state or not in the grid-distributed state) from the storage module, and then use it to It is transmitted to the target device, the target device judges the state, and then instructs the near field communication module to execute the distribution network when the self-generating switch is in the undistributed state; for another example, there is no need to determine whether it is in the network-distributed state or not. network status.
所述重置操作用于指示所述通信处理模块触发所述近场通信模块重新执行所述配网。其中的重置操作,可例如:用户对重置按钮(或按键101)的操作,其可以是一次或多次按压(例如2次),也可以是长按。The reset operation is used to instruct the communication processing module to trigger the near field communication module to re-execute the distribution network. The reset operation may be, for example, the user's operation on the reset button (or key 101 ), which may be pressed one or more times (for example, 2 times), or may be a long press.
进而,仅在未配网的时候,且实现近场通信的情况下,以及虽然已经配网,但需要进行重置时,才执行配网,避免不必要的执行配网过程,有助于节约能耗,以及满足用户的配网需求。Furthermore, only when the network is not configured, and near field communication is implemented, and although the network has been configured, but needs to be reset, the network configuration is performed to avoid unnecessary execution of the network configuration process, which helps to save money. energy consumption, and to meet the distribution network needs of users.
一种实施方式中,所述近场通信模块在通过所述存储模块与目标设备之间的数据交换,执行所述自发电开关与目标网络的配网时,具体用于:In one embodiment, when the near field communication module performs the network distribution between the self-generating switch and the target network through data exchange between the storage module and the target device, it is specifically used to:
在所述近场通信模块接近或者接触所述目标设备时,自所述存储模块读取所述自发电开关的开关信息,并将所述开关信息发送至所述目标设备,以使得:所述目标设备或所述目标网络的网关验证所述开关信息通过后,将所述自发电开关加入所述目标网络。When the near field communication module approaches or contacts the target device, the switch information of the self-generating switch is read from the storage module, and the switch information is sent to the target device, so that: the After the target device or the gateway of the target network verifies that the switch information is passed, the self-generating switch is added to the target network.
进一步的,所述近场通信模块还用于:Further, the near field communication module is also used for:
自所述目标设备接收所述目标网络的网络信道信息;receiving network channel information of the target network from the target device;
以所述网络信道信息作为所述目标信道的信息,将所述目标信道的信息存储于所述存储模块;Using the network channel information as the information of the target channel, and storing the information of the target channel in the storage module;
所述控制报文是通过所述目标信道发出的。The control message is sent through the target channel.
以上方案中,通过网络信道信息的存储,例如可应用于目标网络为Zigbee 网络时的情形。In the above solution, the storage of the network channel information can be applied, for example, to the situation when the target network is a Zigbee network.
具体举例中,若近场通信模块为NFC通信模块,则其中的配网即为NFC 配网,具体的,自发电开关出厂时会将产品ID等开关信息写进存储模块的非易失性存储器中;当用户需要配网时操作网关进入配网模式(采用NFC通信模块时,也可理解为NFC读写模式),用户将自发电开关靠近目标设备(例如网关)的NFC发射模块,目标设备(例如网关)先读取自发电开关的product ID等开关信息进行校验,如果开关信息合法,将会为自发电开关分配网络ID 以及秘钥,为了网络安全,可以将网络ID和秘钥作为安全信息(即配网安全信息),将安全信息以及zigbee网络信道等信息经过加密处理之后再通过NFC 通信模块写入自发电开关的存储模块的非易失性存储器中。自发电开关读取非易失性存储器即可获取目标信道信息,相较于需要寻找信道的方案,采用近场通信模块之后,可高效确定目标信道信息。In a specific example, if the near field communication module is an NFC communication module, the distribution network in it is the NFC distribution network. Specifically, the self-generating switch will write switch information such as product ID into the non-volatile memory of the storage module when it leaves the factory. When the user needs to configure the network, operate the gateway to enter the network distribution mode (when using the NFC communication module, it can also be understood as the NFC read-write mode), the user places the self-generating switch close to the NFC transmitter module of the target device (such as the gateway), and the target device (eg gateway) first read the switch information such as the product ID of the self-generating switch for verification. If the switch information is legal, the network ID and secret key will be assigned to the self-generating switch. For network security, the network ID and secret key can be used as For security information (ie, distribution network security information), the security information and zigbee network channel and other information are encrypted and then written into the non-volatile memory of the storage module of the self-generating switch through the NFC communication module. The target channel information can be obtained by reading the non-volatile memory from the power generation switch. Compared with the solution that needs to find the channel, the target channel information can be efficiently determined after using the near field communication module.
一种实施方式中,所述近场通信模块在执行所述自发电开关与目标网络的配网时,具体用于:In one embodiment, when the near field communication module performs the distribution network between the self-generating switch and the target network, it is specifically used for:
在所述近场通信模块接近或者接触所述目标设备时,自所述存储模块读取并对外发出所述自发电开关的开关信息,以使得:在所述开关信息被验证通过后,获取到所述开关信息的目标设备将目标网络的安全信息(例如入网密钥、网络标识等至少之一)反馈至所述自发电开关;When the near field communication module approaches or contacts the target device, the switch information of the self-generating switch is read from the storage module and sent to the outside, so that: after the switch information is verified, the The target device of the switch information feeds back the security information of the target network (such as at least one of a network access key, a network identifier, etc.) to the self-generating switch;
将所述安全信息存储于所述存储模块。The security information is stored in the storage module.
以上方案中,通过安全信息(例如入网密钥、网络标识等至少之一)的存储,可实现配网,进而,基于所存储的入网密码,可实现自发电针对目标网络中设备的通信、控制,即:实现了对目标网络的使用。In the above scheme, through the storage of security information (such as at least one of network access keys, network identifiers, etc.), network distribution can be realized, and further, based on the stored network access passwords, self-generated communication and control of devices in the target network can be realized. , that is: the use of the target network is achieved.
以上仅为配网的一种举例,可理解为目标网络为蓝牙网络的一种举例。The above is only an example of the distribution network, which can be understood as an example of the target network being a Bluetooth network.
具体举例中,移动终端300(例如手机)可通过app与自发电开关100 通过NFC等近场通讯方式,实现配网。In a specific example, the mobile terminal 300 (such as a mobile phone) can implement the distribution network through an app and the self-generating
一种配网方式中,移动终端300的app可以根据自发电开关的设备类型直接将配网秘钥(即安全信息)通过NFC写入自发电开关中。In a distribution network mode, the app of the
自发电开关中,可预存储设备三元组信息(每个设备唯一,三元组通常为设备类型,地址,私钥等信息,均可视作开关信息),移动终端的app首先通过NFC读取自发电开关中的三元组信息是否合法,若合法,则将入网秘钥(即安全信息)通过NFC写入自发电开关。自发电开关可依据此秘钥 (即安全信息)实现自发电开关的入网。整个过程自发电开关处于无电状态。(安全性更高)In the self-generating switch, the device triple information can be pre-stored (each device is unique, the triple is usually the device type, address, private key and other information, which can be regarded as switch information), and the mobile terminal app first reads through NFC. Whether the triplet information taken from the power generation switch is legal, if it is legal, write the network access key (that is, the security information) into the self-generation switch through NFC. The self-generating switch can realize the network access of the self-generating switch according to this secret key (that is, the security information). During the whole process, the self-generating switch is in a no-power state. (more secure)
此外,智能音箱或网关设备均带有蓝牙网关功能,可视作网关202,移动终端300的app可扫描智能音箱与网关设备,并完成智能音箱以及网关设备的入网。In addition, the smart speaker or gateway device has a Bluetooth gateway function, which can be regarded as the
当自发电开关100与网关202(例如智能音箱或网关),可属于同一网络秘钥(即安全信息)下时。通过按压自发电开关以实现发电,利用此能量,自发电开关能够发送一连串beacon事件(例如可以为控制报文),直至电量耗尽,智能音箱或网关始终处于蓝牙广播监听状态,故音箱可以收到自发电蓝牙无线开关的beacon事件。When the self-generating
当音箱收到半自发电蓝牙无线开关的beacon事件后,可将该事件上报给IOT云端。When the speaker receives the beacon event of the semi-self-generating Bluetooth wireless switch, it can report the event to the IOT cloud.
移动终端的app可从IOT云端,获取到自发电开关按下的事件。The app of the mobile terminal can obtain the event of pressing the self-generating switch from the IOT cloud.
采用按压自发电开关的发电,自发电开关可首先判断是否已配网,若已配网则从存储模块中读取网络秘钥(即安全信息),以及报文序列号(由于蓝牙报文一次会发很多包,序列号用于去重),读取后,序列号递增1,表示为新报文,并存储更新后的序列号。根据网络秘钥,以及序列号,对报文的有效载荷做加密,加密完成后,持续发送蓝牙beacon报文,直到电量耗尽。Using the power generation by pressing the self-generating switch, the self-generating switch can first determine whether the network has been configured. A lot of packets will be sent, and the serial number is used for deduplication). After reading, the serial number is incremented by 1, which is represented as a new message, and the updated serial number is stored. According to the network key and serial number, the payload of the message is encrypted. After the encryption is completed, the Bluetooth beacon message is continuously sent until the battery is exhausted.
其中一种实施方式中,请参考图4,所述的自发电开关,还包括底壳 113与防水套装116、电路板112;In one of the embodiments, please refer to FIG. 4 , the self-generating switch further includes a
所述防水套装116设于所述底壳113,以在所述底壳的底面与所述防水套装之间形成防水空间,所述开关电路设于所述电路板112,所述电路板 112设于所述底壳113,且所述开关电路设于所述防水空间内。The
进而,近场通信模块107(例如包括NFC天线1071)可电连接电路板 112,并通过所述电路板112直接或间接电连接所述存储模块。Further, the near field communication module 107 (eg, including the NFC antenna 1071 ) may be electrically connected to the
以上方案中,将防水功能主要保护电路板与开关电路的电子元器件和发电机。In the above scheme, the waterproof function is mainly used to protect the electronic components and generators of the circuit board and the switch circuit.
此外,请参考图4,自发电开关100均还可包括传动件117、中壳115 与导光件114,通过传动件可实现按键101与发电机103之间的传动,中壳 115可盖合于防水套装116上侧,按键101可活动连接中壳115或底壳 113,导光件114可穿过中壳115、按键101与中壳115,并延伸至电路板 112上的LED模块,从而实现对外的导光。In addition, please refer to FIG. 4 , the self-generating
其中一种实施方式中,所述通信处理模块在产生控制报文时,具体用于:获取当前操控信息;所述当前操控信息表征了所述自发电开关当前所接收到的操控;将所述当前操控信息写入所述控制报文。In one embodiment, when the communication processing module generates the control message, it is specifically used to: obtain current control information; the current control information represents the control currently received by the self-generating switch; The current manipulation information is written into the control message.
该当前操控信息可理解为前文所提及的键值。The current manipulation information can be understood as the key value mentioned above.
所述通信处理模块在产生控制报文时,还用于:When the communication processing module generates the control message, it is also used for:
获取开关信息,所述开关信息表征所述自发电开关;acquiring switch information, the switch information representing the self-generating switch;
将所述开关信息与控制安全信息(可与配网时采用的安全信息相同,也可以不同)写入所述控制报文,以使得:所述目标网络的网关验证所述开关信息通过,且所述网关或所述目标网络中的对应设备在验证所述控制安全信息通过后,所述对应设备执行所述控制报文对应的控制结果。Write the switch information and control security information (which may be the same as or different from the security information used in network distribution) into the control message, so that the gateway of the target network verifies that the switch information passes, and After the gateway or the corresponding device in the target network verifies that the control security information is passed, the corresponding device executes the control result corresponding to the control message.
所述当前操控信息包括表征当前接收到操控的按键的当前按键信息;请参考图4,所述自发电开关100还包括用于检测所述当前按键信息的按键识别模块110,所述按键识别模块110电连接所述通信处理模块。The current manipulation information includes current key information representing the key currently being manipulated; please refer to FIG. 4 , the self-generating
进一步举例中,所述按键识别模块110包括至少一个检测单元1101,所述检测开关直接或间接传动于对应的按键,所述检测单元电连接所述通信处理模块;In a further example, the
所述检测单元被设置为在所述对应的按键发生下按的动作时,向所述通信处理模块反馈开关信号,以使得所述通信处理模块能够基于所述开关信号确定所述当前按键信息。The detection unit is configured to feed back a switch signal to the communication processing module when the corresponding key is pressed, so that the communication processing module can determine the current key information based on the switch signal.
一种举例中,所述检测单元包括微动开关,所述微动开关直接或间接传动于所述对应的按键,所述微动开关电连接所述通信处理模块;In an example, the detection unit includes a micro switch, the micro switch is directly or indirectly driven to the corresponding button, and the micro switch is electrically connected to the communication processing module;
所述检测开关被设置为:在所述对应的按键发生下按的动作时被所述对应的按键触动,并在被触动后向所述通信处理模块反馈所述开关信号。The detection switch is configured to be touched by the corresponding key when the corresponding key is pressed down, and to feed back the switch signal to the communication processing module after being touched.
其中一种实施方式中,请参考图3,所述当前操控信息包括表征当前接收到的操控为按键下按动作还是按键回弹动作的当前动作信息,所述自发电开关还包括用于识别所述当前动作信息的动作识别模块111,所述动作识别模块111电连接所述发电机103与所述通信处理模块102。In one of the embodiments, please refer to FIG. 3 , the current manipulation information includes current action information representing whether the currently received manipulation is a button pressing action or a button rebounding action, and the self-generating switch further includes a device for identifying all The
此外,所述复位件109被设置为直接或间接传动于所述发电机的运动部,所述复位件被设置为能够响应于所述运动部发生第一方向的运动而发生形变,并产生克服所述形变的复位作用力,所述复位件还还被设置为能够在使所述按键被下按的作用力被撤去后,利用所述复位作用力传动所述运动部发生第二方向的运动,且所述按键发生回弹。In addition, the
所述感应部能够在所述运动部发生第二方向的运动时,产生第二感应电压;所述整流模块还用于将所述第二感应电压对应的第二电能存储于所述储能模块。The induction part can generate a second induced voltage when the moving part moves in the second direction; the rectifier module is also used for storing the second electric energy corresponding to the second induced voltage in the energy storage module .
请参考图5,本发明实施例提供了一种处理方法,包括:Referring to FIG. 5, an embodiment of the present invention provides a processing method, including:
S501:所述发电机未将机械能转换为电能的情况下,所述近场通信模块通过所述存储模块与目标设备之间的数据交换,执行所述自发电开关与目标网络的配网;S501: In the case that the generator does not convert mechanical energy into electrical energy, the near field communication module executes the distribution network between the self-generating switch and the target network through data exchange between the storage module and the target device;
S502:所述发电机将机械能转换为电能的情况下,在所述通信处理模块与所述存储模块上电后,所述通信处理模块产生控制报文,通过所述目标网络发出所述控制报文。S502: In the case where the generator converts mechanical energy into electrical energy, after the communication processing module and the storage module are powered on, the communication processing module generates a control message, and sends the control message through the target network arts.
可选的,所述近场通信模块通过所述存储模块与目标设备之间的数据交换,执行所述自发电开关与目标网络的配网之前,还包括:Optionally, before executing the network distribution between the self-generating switch and the target network, the near field communication module further includes:
所述通信处理模块确定所述自发电开关处于未配网状态。The communication processing module determines that the self-generating switch is in an undistributed state.
可选的,所述近场通信模块通过所述存储模块与目标设备之间的数据交换,执行所述自发电开关与目标网络的配网之前,还包括:Optionally, before executing the network distribution between the self-generating switch and the target network, the near field communication module further includes:
所述通信处理模块确定所述自发电开关处于已配网状态,但检测到重置操作,所述重置操作用于指示所述通信处理模块控制所述近场通信模块重新执行所述配网。The communication processing module determines that the self-generating switch is in a network-distributed state, but detects a reset operation, where the reset operation is used to instruct the communication processing module to control the near-field communication module to re-execute the distribution network .
可选的,所述近场通信模块通过所述存储模块与目标设备之间的数据交换,执行所述自发电开关与目标网络的配网,具体包括:Optionally, the near field communication module performs the network distribution between the self-generating switch and the target network through data exchange between the storage module and the target device, specifically including:
在所述近场通信模块接近所述目标设备时,所述近场通信模块自所述存储模块读取并对外发出所述自发电开关的开关信息,以使得:在所述开关信息被验证通过后,获取到所述开关信息的目标设备将目标网络的安全信息反馈至所述自发电开关;When the near field communication module is close to the target device, the near field communication module reads the switch information of the self-generating switch from the storage module and sends the switch information of the self-generating switch to the outside, so that: after the switch information is verified and passed After that, the target device that has acquired the switch information feeds back the security information of the target network to the self-generating switch;
所述近场通信模块将所述安全信息存储于所述存储模块。The near field communication module stores the security information in the storage module.
可选的,所述近场通信模块通过所述存储模块与目标设备之间的数据交换,执行所述自发电开关与目标网络的配网,具体包括:Optionally, the near field communication module performs the network distribution between the self-generating switch and the target network through data exchange between the storage module and the target device, specifically including:
在所述近场通信模块接近所述目标设备时,所述近场通信模块自所述存储模块读取所述自发电开关的开关信息,并将所述开关信息发送至所述目标设备,以使得:所述目标设备或所述目标网络的网关验证所述开关信息通过后,将所述自发电开关加入所述目标网络。When the near field communication module is close to the target device, the near field communication module reads the switch information of the self-generating switch from the storage module, and sends the switch information to the target device, so as to So that: after the target device or the gateway of the target network verifies that the switch information is passed, the self-generating switch is added to the target network.
可选的,所述的处理方法,其特征在于,Optionally, the processing method is characterized in that:
还包括:Also includes:
所述近场通信模块自所述目标设备接收所述目标网络的网络信道信息;The near field communication module receives the network channel information of the target network from the target device;
以所述网络信道信息作为所述目标信道的信息,将所述目标信道的信息存储于所述存储模块;Using the network channel information as the information of the target channel, and storing the information of the target channel in the storage module;
在本说明书的描述中,参考术语“一种实施方式”、“一种实施例”、“具体实施过程”、“一种举例”等的描述意指结合该实施例或示例描述的具体特征、结构、材料或者特点包含于本发明的至少一个实施例或示例中。在本说明书中,对上述术语的示意性表述不一定指的是相同的实施例或示例。而且,描述的具体特征、结构、材料或者特点可以在任何的一个或多个实施例或示例中以合适的方式结合。In the description of this specification, reference to the terms "an embodiment", "an example", "a specific implementation process", "an example", etc. refers to the specific features described in conjunction with the embodiment or example, A structure, material, or feature is included in at least one embodiment or example of the present invention. In this specification, schematic representations of the above terms do not necessarily refer to the same embodiment or example. Furthermore, the particular features, structures, materials or characteristics described may be combined in any suitable manner in any one or more embodiments or examples.
最后应说明的是:以上各实施例仅用以说明本发明的技术方案,而非对其限制;尽管参照前述各实施例对本发明进行了详细的说明,本领域的普通技术人员应当理解:其依然可以对前述各实施例所记载的技术方案进行修改,或者对其中部分或者全部技术特征进行等同替换;而这些修改或者替换,并不使相应技术方案的本质脱离本发明各实施例技术方案的范围。Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, but not to limit 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: The technical solutions described in the foregoing embodiments can still be modified, or some or all of the technical features thereof can be equivalently replaced; and these modifications or replacements do not make the essence of the corresponding technical solutions deviate from the technical solutions of the embodiments of the present invention. scope.
Claims (22)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202210022802.7A CN114336918A (en) | 2022-01-10 | 2022-01-10 | Self-generating switch and its processing method and processing system |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202210022802.7A CN114336918A (en) | 2022-01-10 | 2022-01-10 | Self-generating switch and its processing method and processing system |
Publications (1)
Publication Number | Publication Date |
---|---|
CN114336918A true CN114336918A (en) | 2022-04-12 |
Family
ID=81027104
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202210022802.7A Pending CN114336918A (en) | 2022-01-10 | 2022-01-10 | Self-generating switch and its processing method and processing system |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN114336918A (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN115118586A (en) * | 2022-06-13 | 2022-09-27 | 武汉领普科技有限公司 | Self-generating switch and processing method thereof, electronic equipment and control system |
-
2022
- 2022-01-10 CN CN202210022802.7A patent/CN114336918A/en active Pending
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN115118586A (en) * | 2022-06-13 | 2022-09-27 | 武汉领普科技有限公司 | Self-generating switch and processing method thereof, electronic equipment and control system |
CN115118586B (en) * | 2022-06-13 | 2024-02-06 | 武汉领普科技有限公司 | Self-generating switch and its processing method, electronic equipment and control system |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN113178900A (en) | Wireless charging system, chip and wireless charging circuit | |
US11490223B2 (en) | Method and electronic device for providing notification based on distance of remote input device | |
CN105191172A (en) | Communication method and device | |
US20240356464A1 (en) | Self-power generating switch, processing method therefor, and processing system | |
CN114465366B (en) | Wireless charging method and electronic equipment | |
CN107094201A (en) | Message processing device | |
US11728691B2 (en) | Communication between devices in a wireless charging system | |
CN104752082B (en) | User-defined press key and terminal device | |
CN114336918A (en) | Self-generating switch and its processing method and processing system | |
JP2019129678A (en) | Electronic apparatus, power transmission device, power transmission system, and power transmission method | |
CN216959409U (en) | Self-generating switch and processing system | |
CN104377515B (en) | It is provided with the smart jack of working condition sensor and wireless identity marking mechanism | |
CN114143908B (en) | Wireless pairing method, device and storage medium | |
EP3588241A1 (en) | An add-on with wireless remote trigger for mobile computers | |
CN114156101B (en) | Self-generating switch, distribution network method thereof and processing system | |
CN217307326U (en) | Self-generating switch and processing system | |
CN106652132A (en) | Door lock device based on Wifi charging | |
CN114448102B (en) | Earphone box, wireless charging method, device and storage medium | |
EP4170866B1 (en) | Electronic device for wireless power transmission and operating method thereof | |
KR102266645B1 (en) | Smartphone-mounted industrial equipment control device | |
CN104424786A (en) | Intelligent electric bell device | |
KR20160096912A (en) | Apparatus for stylus pen | |
JP2011217513A (en) | Charging platform and electronic apparatus | |
CN204481920U (en) | A kind of audio conversion infrared remote-control device, governor circuit and mobile terminal | |
US12294229B2 (en) | Communication between devices in a wireless charging system |
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 |