WO2021121372A1 - Method for implementing control of wireless passive switch, wireless passive switch, and proxy node - Google Patents

Method for implementing control of wireless passive switch, wireless passive switch, and proxy node Download PDF

Info

Publication number
WO2021121372A1
WO2021121372A1 PCT/CN2020/137546 CN2020137546W WO2021121372A1 WO 2021121372 A1 WO2021121372 A1 WO 2021121372A1 CN 2020137546 W CN2020137546 W CN 2020137546W WO 2021121372 A1 WO2021121372 A1 WO 2021121372A1
Authority
WO
WIPO (PCT)
Prior art keywords
wireless passive
passive switch
packet
proxy node
wireless
Prior art date
Application number
PCT/CN2020/137546
Other languages
French (fr)
Chinese (zh)
Inventor
夏建明
Original Assignee
苏州欧普照明有限公司
欧普照明股份有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 苏州欧普照明有限公司, 欧普照明股份有限公司 filed Critical 苏州欧普照明有限公司
Publication of WO2021121372A1 publication Critical patent/WO2021121372A1/en

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/18Information format or content conversion, e.g. adaptation by the network of the transmitted or received information for the purpose of wireless delivery to users or terminals
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L47/00Traffic control in data switching networks
    • H04L47/10Flow control; Congestion control
    • H04L47/34Flow control; Congestion control ensuring sequence integrity, e.g. using sequence numbers
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/56Provisioning of proxy services
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D30/00Reducing energy consumption in communication networks
    • Y02D30/70Reducing energy consumption in communication networks in wireless communication networks

Definitions

  • the invention belongs to the field of intelligent control, and is specifically a method for realizing control of a wireless passive switch.
  • Passive wireless switch is a wireless sensor network that converts the tiny energy in the environment into electric energy and realizes its own function.
  • the micro energy converter converts mechanical energy, light energy, and temperature difference energy into electrical energy.
  • energy harvesting technology allows maintenance-free IoT devices to connect and communicate based on international wireless standards such as Bluetooth and zigbee. This greatly improves the flexibility and energy efficiency of the intelligent system, while saving time and cost.
  • the purpose of the present invention is to solve the problems existing in the prior art, and propose a new type of wireless passive switch realization control method, wireless passive switch, and proxy node.
  • a wireless passive switch realizes control through the proxy node.
  • the wireless passive switch sends a message word load packet to the proxy node at a high frequency; the proxy node uses the secret key to load the message word after receiving the message word load packet.
  • the packet is decrypted; when the proxy node successfully decrypts the message word payload packet, the proxy node converts the successfully decrypted message word payload packet into a data packet adapted to the wireless network, and transparently transmits it to the gateway; after the gateway receives the data packet , Perform de-duplication processing according to the sequence number in the data packet, and execute the commands in the data packet.
  • the proxy node has been networked and connected to the gateway.
  • the wireless passive switch distribution network is connected to a network including a proxy node.
  • the wireless passive switch distribution network access to the network including the proxy node includes: the wireless passive switch transmits a network access broadcast packet to the proxy node; the proxy node receives the network access broadcast packet and receives The MAC address and secret key of the wireless passive switch are parsed from the network access broadcast packet.
  • the proxy node receives different secret keys sent by the multiple wireless passive switches.
  • the proxy node sequentially uses the different secret keys to decrypt the received message word payload packet.
  • the message word payload packet includes the MAC address, serial number, and control command of the wireless passive switch.
  • the gateway performs deduplication processing according to the serial number in the data packet, including, when multiple data packets are received, checking whether the serial numbers in the multiple data packets are the same, and if there are data packets with the same serial number, then Eliminate duplicate data packets.
  • a wireless passive switch including a power generation module, a main control module, a broadcast module, and a button panel; the main control module is separately and a power generation module, a broadcast module, and a button panel Electrical connection; the non-derived power generation module is configured to convert the mechanical energy generated by the button action when the user presses the button panel into electrical energy, and supply power to the main control module; when the wireless passive switch is in the network, the main The control module generates the network access broadcast packet, and sends the network access broadcast packet to the agent node through the broadcast module; when the wireless passive switch realizes control, the main control module generates the message word load packet, and sends the message word load to the agent node through the broadcast module package.
  • the network access broadcast packet includes the MAC address of the wireless passive switch and the secret key.
  • the message word payload packet includes the MAC address, serial number, and control command of the wireless passive switch.
  • a proxy node including a receiving module, a processor, and a sending module; the processor is electrically connected with the receiving module and the sending module; when the wireless passive switch is connected to the network through the proxy node, the receiving The module receives the network access broadcast packet sent by the wireless passive switch and sends it to the processor; the processor parses the received network broadcast packet to obtain the MAC address and secret key of the wireless passive switch; When the switch sends a control signal through the proxy node, the receiving module receives the message word load packet sent by the wireless passive switch and sends it to the processor; the processor uses the secret key sent by the wireless passive switch to decrypt the message word load packet; The processor converts the successfully decrypted message word load packet into a data packet adapted to the wireless network, and transparently transmits it to the gateway through the sending module.
  • the proxy node further includes a power supply module; the power supply module is configured to supply power to the processor.
  • the proxy node further includes a memory; the memory is configured to store the MAC address and secret key of the wireless passive switch parsed by the processor.
  • the secret keys corresponding to different wireless passive switches are used in turn for decryption.
  • the beneficial effects of the present invention are as follows:
  • the advantages of the control method of the wireless passive switch in the present invention are as follows: 1. Multi-level emission intensity level management, which can effectively control the range of action of the switch, and can well solve the limited range and work of the partner node A wide range of requirements; 2. System security, the access of the main control equipment of any controllable system will not be imitated or interfered. 3.
  • the switch command is compatible with the Mesh command, and the communication is completed in the most efficient way through the definition of the protocol in the limited data length. In general, this method can safely and efficiently connect the switch to the existing wireless control system, realizing a new control system that is people-oriented, in addition to basic switch requirements, energy saving and environmental protection, and a better user experience.
  • FIG. 1 is a schematic diagram of the internal circuit structure of a preferred wireless passive switch according to an embodiment of the present invention
  • FIG. 2 is a schematic diagram of a preferred wireless passive switch configuration and access to the network according to an embodiment of the present invention
  • FIG. 3 is a topological diagram of a preferred wireless passive switch control network structure according to an embodiment of the present invention.
  • FIG. 4 is a schematic flowchart of a preferred wireless passive switch control according to an embodiment of the present invention.
  • Fig. 5 is a schematic diagram of a preferred proxy node structure according to an embodiment of the present invention.
  • Fig. 1 is a schematic diagram of the internal circuit structure of a preferred wireless passive switch according to an embodiment of the present invention.
  • the wireless passive switch 1 includes a power generation module 11, a main control module 12, a broadcasting module 13, a memory 14, and a button panel 15.
  • the main control module 12 is electrically connected to the non-sourced power generation module 11, the broadcasting module 13, the memory 14, and the key panel 15 respectively.
  • the power generation module 11 is not derived from the power generation module 11 and provides electrical energy for the operation of the main control module 12, and can convert mechanical energy or other micro-energy generated by the button action when the user presses the button panel 15 into electrical energy and store the electrical energy.
  • the broadcasting module 13 is configured to broadcast messages to the outside world.
  • the memory 14 is configured to store the security key, device information, load package definition, command serial number, and related content of the system configuration of the wireless passive switch 1.
  • the above content can be set by the user, so that the user can pass through the entire system control method NFC/FLASH reader or other supported methods to complete the reading and writing of this area.
  • the independent design of this part is related to the security of the subsequent system, pairing access, etc., and is one of the reliable designs.
  • the button panel 15 is configured to receive the settings of the wireless passive switch 1 made by the user.
  • the main control module 12 is configured to control the operation of the entire wireless passive switch 1.
  • FIG. 2 is a schematic diagram of the flow of configuring and connecting the wireless passive switch 1 to the network according to an embodiment of the present invention.
  • all physical nodes 2 enter the gateway system; the networking mode can be zigbee, or BLE MESH networking, physical node 2 is multiple wireless passive switches 1 Controlled lamps 2.
  • the most convenient node is selected as the agent node 21, and the agent node 21 enters the pairing learning mode and starts to search for the wireless key package of the switch.
  • the wireless passive switch 1 enters the configuration network access mode, and transmits network access broadcast packets at low power;
  • the wireless passive switch 1 enters the configuration network access mode, and the network access broadcast packet is transmitted at low power; the network access broadcast packet includes the MAC information and secret key information of the wireless passive switch 1 at the same time, and the selected transmit power level is lower at this time , The effective distance is guaranteed to be within 0.5m.
  • the lower transmission power can avoid the situation that multiple nodes on the same strong line are in the broadcast waiting mode at the same time and will learn at the same time.
  • the low-power transmission of network access broadcast packets is to avoid subsequent network storms, because if a higher power is used to transmit network access broadcast packets, multiple physical nodes 2 will receive the network broadcast packet, so multiple physical nodes 2 become proxy nodes 21.
  • the subsequent wireless passive switch 1 sends a message word load packet with high power
  • multiple proxy nodes 21 can process the message word load packet, convert the message word load packet into a data packet, and send it in the network, which is likely to cause the network Load storm.
  • the proxy node 21 finds the network access broadcast packet, it will parse out the MAC address and secret key of the wireless passive switch 1 from the network access broadcast packet; if the network access broadcast packet is not found, continue the search;
  • the proxy node 21 finds the network access broadcast packet, the MAC address and secret key of the wireless passive switch 1 are parsed from the network access broadcast packet, and stored in the proxy node 21; if the wireless passive switch 1 cannot be searched The network broadcast packet sent will continue to search. Among them, the secret key corresponding to each MAC address is different.
  • Fig. 3 is a topological diagram of a preferred wireless passive switch control network structure according to an embodiment of the present invention.
  • the actual wireless passive switch 1 has been connected to the system, but it is through each node in the system as an agent, between the passive wireless switch 1 and the agent node 21 It is a virtual device, so the device must be configured in the system to actually make it control the system.
  • the configuration of the virtual device here is based on the actual wireless system, involving the cloud server 4, the gateway 3, the physical node 2, and the wireless passive switch 1.
  • the main working topology diagram of each part is shown in Fig. 3.
  • Cloud server 4 Processing the various parameters of the wireless passive switch 1 in this embodiment involved in the system; it can be a different wireless network system. Mainly include: a. According to the unique MAC of the switch, apply for the number of the cloud virtual device in the system; all parameters are bound to this number for transmission; b. Parameter selection and setting: load information corresponding to each button of the device Packet, encryption and decryption algorithm, format type; c. The command association of the wireless local area network executed by the rule.
  • Gateway 3 Synchronize the cloud-related configuration to the gateway side.
  • the gateway is the central control of the system. According to the configuration information, complete the physical pairing of the switch, the switch action triggers the steps of data packet security authentication and analysis, comparison, etc.
  • Wireless local area network 5 On the one hand, it acts as a proxy for the transmission path of the control data packet of the wireless passive switch 1; on the other hand, it executes the objects and actions controlled by the wireless passive switch 1 from the gateway side;
  • Wireless passive switch 1 It is the main trigger device, and the related configuration of the basic device is set in the cloud to realize the linkage in the whole system. In this method, the device itself is simple, configurable, and highly flexible.
  • any switch can ensure the only safe control network after accessing the system, and realize different functions. These do not need to do the secondary development of the switch, the system configuration is enough. Of course, if the small closed network does not include the gateway, the cloud configuration cannot be realized.
  • the control method is also reserved in the system design, because the defined data load packet is checked by the agent node 21, if the agent node 21 is not configured to enter the network , Then directly analyze the data load and directly turn it into the command load of the wireless network. The definition is consistent and direct control can be realized.
  • Fig. 4 is a schematic flow diagram of a preferred wireless passive switch control according to an embodiment of the present invention.
  • the wireless passive switch 1 connected to the system sends a message word load packet
  • the wireless passive switch 1 since in Figure 2, the wireless passive switch 1 has been connected to the system through the proxy node 21, when the wireless passive switch 1 wants to control a physical node, the user can press the button on the wireless passive switch 1 to generate
  • the message word load packet corresponding to the key press action includes the serial number of the wireless passive switch 1, the message word load, and the MAC information of the wireless passive switch 1 in the message word load packet.
  • the physical node is a lamp
  • the message word load packet is a dimming command.
  • the data Before sending the message word payload packet, the data can be streamlined and compressed according to different network types and length requirements.
  • the message word load packet When sending a message word load packet, it is sent in a high-transmission power mode, and as much data as possible is sent with limited energy.
  • the proxy node 21 After receiving the message word load packet, the proxy node 21 uses the secret key to decrypt and verify the message word load packet;
  • the proxy node 21 uses the secret key received during the previous wireless passive switch configuration and access to the network to decrypt the message word load packet.
  • the secret key corresponding to each MAC address is different. If multiple wireless passive switches 1 are accessed through the same proxy node 21, the secret keys corresponding to different wireless passive switches 1 are used in turn for decryption.
  • a secret key is successfully decrypted, it means that the wireless passive switch 1 that sends the message word payload packet is the wireless passive switch 1 that has successfully accessed through the proxy node 21; if all secret keys are unsuccessful in decryption, it means that the message is sent The wireless passive switch 1 of the word load packet fails to access the system through the proxy node 21.
  • the proxy node 21 converts the successfully decrypted message word payload packet into a data packet adapted to the wireless network, and transparently transmits it to the gateway 3;
  • the proxy node 21 converts the successfully decrypted message word payload packet into a data packet adapted to the wireless network, and transparently transmits the data packet to the gateway 3.
  • the gateway 3 After receiving the data packet, the gateway 3 performs deduplication processing according to the serial number, and executes the command in the data packet;
  • de-duplication is performed according to the serial number. For example, when multiple data packets sent by the same wireless passive switch 1 are received, compare whether there are multiple data packets with the same serial number, and if they exist, remove duplicate data package.
  • the gateway 3 executes the control commands in the data packet, and performs specified operations on the corresponding nodes, such as switching of the entire network or part of the nodes, level control, etc., when the node is a lamp, it can perform dimming, Toning command.
  • Fig. 5 is a schematic diagram of a preferred proxy node structure according to an embodiment of the present invention.
  • the proxy node 21 includes a receiving module 212, a processor 211, a sending module 213, a memory 214, and a power supply module 215.
  • the processor 211 is connected to the receiving module 212, the sending module 213, the memory 214, and the power supply module 215, respectively.
  • the power module 215 provides power to the processor 211.
  • the receiving module 212 of the proxy node 21 receives the network access broadcast packet sent by the wireless passive switch 1, and sends it to the processor 211; the processor 211 responds to the received
  • the network access broadcast packet is analyzed, and the MAC address and secret key of the wireless passive switch 1 are obtained by the analysis, and the MAC address and secret key of the wireless passive switch 1 are stored in the memory 214.
  • the receiving module 212 of the proxy node 21 receives the message word load packet sent by the wireless passive switch 1 and sends it to the processor 211; the processor 211 uses the wireless passive switch 1
  • the sent secret key decrypts the message word payload packet. If multiple wireless passive switches 1 access through the same proxy node 21, they will use the secret keys corresponding to different wireless passive switches 1 to decrypt in turn.
  • the wireless passive switch 1 that sends the message word load packet is the wireless passive switch 1 that has successfully accessed through the proxy node 21; if all the secret keys are unsuccessful in decryption, it means that the message word load packet is sent The wireless passive switch 1 fails to access the system through the proxy node 21.
  • a secret key is successfully decrypted, it means that the wireless passive switch 1 that sends the message word payload packet is the wireless passive switch 1 that has successfully accessed through the proxy node 21; if all secret keys are unsuccessful in decryption, it means that the message is sent The wireless passive switch 1 of the word load packet fails to access the system through the proxy node 21.
  • the processor 211 converts the successfully decrypted message word payload packet into a data packet adapted to the wireless network, and sends it to the sending module 213, and the sending module 213 transparently transmits the data packet adapted to the wireless network to the gateway 3.

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Computer Security & Cryptography (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

The present invention relates to a method for implementing control of a wireless passive switch by means of a proxy node, comprising: a wireless passive switch sends a message word load packet to the proxy node in high frequency; after receiving the message word load packet, the proxy node decrypts the message word load packet using a secret key; after the proxy node decrypts the message word load packet successfully, the proxy node converts the successfully decrypted message word load packet into a data packet adapted to a wireless network, and transmits the data packet to a gateway; after receiving the data packet, the gateway performs de-duplication processing according to serial numbers in the data packet, and executes a command in the data packet. By means of the method, the switch can be safely and efficiently accessed to an existing wireless control system, thereby realizing a new control system. The method is people-oriented, energy-saving, and environment-friendly, meet basic switch requirements, and realizes better user experience.

Description

无线无源开关实现控制的方法、无线无源开关,以及代理节点Method for realizing control of wireless passive switch, wireless passive switch, and proxy node 技术领域Technical field
本发明属于智能控制领域,具体为一种无线无源开关实现控制的方法。The invention belongs to the field of intelligent control, and is specifically a method for realizing control of a wireless passive switch.
背景技术Background technique
随着智能控制技术的发展,目前在工业、商业、民用的照明环境都已经得到应用,如商场、景观灯、室内照明等。而照明的功能也得到了无限的延伸,除了传统的有线系统外,而无线控制系统的出现在更多的场合提供了更多的可能性,比如传统项目的改造。无论成本还是便利性,无线控制都有大大的优势体现。With the development of intelligent control technology, it has been applied in industrial, commercial, and civil lighting environments, such as shopping malls, landscape lights, and indoor lighting. The lighting function has also been extended infinitely. In addition to traditional wired systems, the emergence of wireless control systems provides more possibilities in more occasions, such as the transformation of traditional projects. Regardless of cost or convenience, wireless control has great advantages.
无源无线开关是将环境中的微小能量转化为电能,实现自功能的无线传感网络。微型能量转换器将机械能、光能、温差能转换为电能,结合高效的能源管理系统,能量采集技术让免维护的物联网设备之间可以基于蓝牙、zigbee等国际无线标准而连接通信。从而大大提高智能系统的灵活性和能源效率,同时节省时间与成本。Passive wireless switch is a wireless sensor network that converts the tiny energy in the environment into electric energy and realizes its own function. The micro energy converter converts mechanical energy, light energy, and temperature difference energy into electrical energy. Combined with an efficient energy management system, energy harvesting technology allows maintenance-free IoT devices to connect and communicate based on international wireless standards such as Bluetooth and zigbee. This greatly improves the flexibility and energy efficiency of the intelligent system, while saving time and cost.
无源无线开关在实际使用的过程中,存在如下的问题:In the actual use of passive wireless switches, there are the following problems:
1.无线无源开关低能量与有效数据的矛盾。无线无源开关能量是有限,并且存在的时间也是很短的。因此如何在很短的时间内发送出足够多的信息,来控制适配不同的系统控制是一个巨大的挑战。因此无线控制模块的低功耗启动与工作、无线数据控制指令的高效为最大的问题。1. The contradiction between low energy and effective data of wireless passive switch. The energy of wireless passive switching is limited, and the time of existence is also very short. Therefore, how to send enough information in a short time to control and adapt to different system controls is a huge challenge. Therefore, the low-power startup and operation of the wireless control module, and the high efficiency of wireless data control commands are the biggest problems.
2.接入系统安全问题。目前无线系统的安全是重要的,当前常见的zigbee、433或者BLE的Mesh都有一套安全的从物理层、链路层等系统的管理,但是对于无线无源开关来实现这样一套复杂的安全协议,是不可能的。2. Access system security issues. At present, the security of wireless systems is important. The current common zigbee, 433 or BLE Mesh have a set of safe management from the physical layer, link layer and other systems, but for wireless passive switches to achieve such a complex set of security Agreement is impossible.
3.应用功能问题,无线无源的开关的特点决定了其控制的指令是简洁、高效,同时也就需要被控系统能够适配。如何不同的场景和设备上来适配同样的开关是一个大的挑战。3. Application function problems. The characteristics of wireless passive switches determine that the control commands are simple and efficient, and at the same time, the controlled system needs to be able to adapt. How to adapt the same switch to different scenarios and devices is a big challenge.
4.有效范围问题。因为是无线无源,因此发射的射频的信号强度一定是有限的,无线的Mesh系统最大的优点就是节点之前的互相通讯,扩大作用范围。因此如何将二者的特点结合,是系统高效工作是一个挑战。4. The issue of effective range. Because it is wireless and passive, the signal strength of the transmitted radio frequency must be limited. The biggest advantage of the wireless Mesh system is that the nodes communicate with each other and expand the range of action. Therefore, how to combine the characteristics of the two is a challenge for the efficient operation of the system.
发明内容Summary of the invention
本发明的目的,就是解决现有技术中存在的问题,提出了一种新型的无线无源开关实现控制的方法,无线无源开关,以及代理节点。The purpose of the present invention is to solve the problems existing in the prior art, and propose a new type of wireless passive switch realization control method, wireless passive switch, and proxy node.
技术方案一:一种无线无源开关通过代理节点实现控制的方法,无线无源开关向代理节点高频率发送消息字负载包;代理节点接收到消息字负载包后,使用秘钥对消息字负载包进行解密;当代理节点对消息字负载包解密成功后,代理节点将解密成功后的消息字负载包转换成适配无线网络的数据包,透传给网关;所述网关接收到数据包后,根据数据包内序列号进行去重处理,执行数据包内的命令。Technical solution 1: A wireless passive switch realizes control through the proxy node. The wireless passive switch sends a message word load packet to the proxy node at a high frequency; the proxy node uses the secret key to load the message word after receiving the message word load packet. The packet is decrypted; when the proxy node successfully decrypts the message word payload packet, the proxy node converts the successfully decrypted message word payload packet into a data packet adapted to the wireless network, and transparently transmits it to the gateway; after the gateway receives the data packet , Perform de-duplication processing according to the sequence number in the data packet, and execute the commands in the data packet.
进一步的,在所述无线无源开关向代理节点高频率发送消息字负载包之前,所述代理节点已组网,并接入到网关。Further, before the wireless passive switch sends a message word load packet to the proxy node at a high frequency, the proxy node has been networked and connected to the gateway.
进一步的,所述无线无源开关配网接入到包括代理节点的网络内。Further, the wireless passive switch distribution network is connected to a network including a proxy node.
进一步的,所述无线无源开关配网接入到包括代理节点的网络内,包括,所述无线无源开关向代理节点发射入网广播包;所述代理节点接收入网广播包,并从所述入网广播包中解析出所述无线无源开关的MAC地址和秘钥。Further, the wireless passive switch distribution network access to the network including the proxy node includes: the wireless passive switch transmits a network access broadcast packet to the proxy node; the proxy node receives the network access broadcast packet and receives The MAC address and secret key of the wireless passive switch are parsed from the network access broadcast packet.
进一步的,当多个无线无源开关通过代理节点接入到网络时,代理节点接收到多个无线无源开关发送的不同的秘钥。Further, when multiple wireless passive switches access the network through a proxy node, the proxy node receives different secret keys sent by the multiple wireless passive switches.
进一步的,当所述代理节点内保存有多个不同的秘钥时,所述代理节点依次使用不同的秘钥对接收到消息字负载包进行解密。Further, when a plurality of different secret keys are stored in the proxy node, the proxy node sequentially uses the different secret keys to decrypt the received message word payload packet.
进一步的,所述消息字负载包,包括无线无源开关的MAC地址、序列号,以及控制命令。Further, the message word payload packet includes the MAC address, serial number, and control command of the wireless passive switch.
进一步的,所述网关根据数据包内序列号进行去重处理,包括,当接收到多个数据包时,检查多个数据包内的序列号是否相同,如果有相同序列号 的数据包,则剔除重复的数据包。Further, the gateway performs deduplication processing according to the serial number in the data packet, including, when multiple data packets are received, checking whether the serial numbers in the multiple data packets are the same, and if there are data packets with the same serial number, then Eliminate duplicate data packets.
技术方案二:一种无线无源开关,包括,无源自发电模块、主控模块、广播模块,以及按键面板;所述主控模块,分别和无源自发电模块、广播模块,以及按键面板电连接;所述无源自发电模块,配置为将用户按压按键面板时的按键动作产生的机械能转换为电能,并给所述主控模块供电;当所述无线无源开关配网时,主控模块生成入网广播包,并通过广播模块向代理节点发送入网广播包;当所述无线无源开关实现控制时,主控模块生成消息字负载包,并通过广播模块向代理节点发送消息字负载包。Technical Solution 2: A wireless passive switch, including a power generation module, a main control module, a broadcast module, and a button panel; the main control module is separately and a power generation module, a broadcast module, and a button panel Electrical connection; the non-derived power generation module is configured to convert the mechanical energy generated by the button action when the user presses the button panel into electrical energy, and supply power to the main control module; when the wireless passive switch is in the network, the main The control module generates the network access broadcast packet, and sends the network access broadcast packet to the agent node through the broadcast module; when the wireless passive switch realizes control, the main control module generates the message word load packet, and sends the message word load to the agent node through the broadcast module package.
进一步的,所述入网广播包,包括所述无线无源开关的MAC地址,以及秘钥。Further, the network access broadcast packet includes the MAC address of the wireless passive switch and the secret key.
进一步的,所述消息字负载包,包括无线无源开关的MAC地址、序列号,以及控制命令。Further, the message word payload packet includes the MAC address, serial number, and control command of the wireless passive switch.
技术方案三:一种代理节点,包括接收模块、处理器,以及发送模块;所述处理器分别和接收模块,以及发送模块电连接;在无线无源开关通过代理节点接入到网络时,接收模块接收到无线无源开关发送的入网广播包,并发送给处理器;所述处理器对接收到的入网广播包进行解析,解析得到无线无源开关的MAC地址和秘钥;在无线无源开关通过代理节点发送控制信号时,接收模块接收无线无源开关发送的消息字负载包,并发送给处理器;处理器使用无线无源开关发送的秘钥对消息字负载包进行解密;所述处理器将解密成功后的消息字负载包转换成适配无线网络的数据包,并通过发送模块透传给网关。Technical Solution 3: A proxy node, including a receiving module, a processor, and a sending module; the processor is electrically connected with the receiving module and the sending module; when the wireless passive switch is connected to the network through the proxy node, the receiving The module receives the network access broadcast packet sent by the wireless passive switch and sends it to the processor; the processor parses the received network broadcast packet to obtain the MAC address and secret key of the wireless passive switch; When the switch sends a control signal through the proxy node, the receiving module receives the message word load packet sent by the wireless passive switch and sends it to the processor; the processor uses the secret key sent by the wireless passive switch to decrypt the message word load packet; The processor converts the successfully decrypted message word load packet into a data packet adapted to the wireless network, and transparently transmits it to the gateway through the sending module.
进一步的,所述代理节点还包括电源模块;所述电源模块,配置为给所述处理器供电。Further, the proxy node further includes a power supply module; the power supply module is configured to supply power to the processor.
进一步的,所述代理节点还包括存储器;所述存储器配置为保存处理器解析到的无线无源开关的MAC地址和秘钥。Further, the proxy node further includes a memory; the memory is configured to store the MAC address and secret key of the wireless passive switch parsed by the processor.
进一步的,如果多个无线无源开关通过同一代理节点进行网络接入,则 依次使用不同无线无源开关对应的秘钥进行解密。Further, if multiple wireless passive switches access the network through the same proxy node, the secret keys corresponding to different wireless passive switches are used in turn for decryption.
本发明的有益效果为:本发明中的无线无源开关实现控制的方法优点如下:1.多级发射强度等级管理,可以有效控制开关的作用范围,可以很好的解决配对节点有限范围与工作大范围的需求;2.系统安全,任何可控系统的主控设备的接入,都不存在被模仿、被干扰等问题。3.开关命令与Mesh命令兼容适配,有限数据长度中通过协议的定义最高效的方式完成通讯。总体来说,通过本方法可以将开关安全、高效接入现有无线控制系统中,实现一种新的控制系统,以人为本,除了基本开关需求,节能环保的同时有着更好的用户体验。The beneficial effects of the present invention are as follows: The advantages of the control method of the wireless passive switch in the present invention are as follows: 1. Multi-level emission intensity level management, which can effectively control the range of action of the switch, and can well solve the limited range and work of the partner node A wide range of requirements; 2. System security, the access of the main control equipment of any controllable system will not be imitated or interfered. 3. The switch command is compatible with the Mesh command, and the communication is completed in the most efficient way through the definition of the protocol in the limited data length. In general, this method can safely and efficiently connect the switch to the existing wireless control system, realizing a new control system that is people-oriented, in addition to basic switch requirements, energy saving and environmental protection, and a better user experience.
附图说明Description of the drawings
为了更清楚地说明本发明实施例中的技术方案,下面将对实施例描述中所需要使用的附图作简要介绍,显而易见地,下面描述中的附图仅仅是本发明的一些实施例,对于本领域的普通技术人员来讲,在不付出创造性劳动性的前提下,还可以根据这些附图获得其他的附图。In order to explain the technical solutions in the embodiments of the present invention more clearly, the following will briefly introduce the drawings needed in the description of the embodiments. Obviously, the drawings in the following description are only some embodiments of the present invention. For those of ordinary skill in the art, other drawings can be obtained from these drawings without creative labor.
图1为本发明实施例优选的无线无源开关内部电路结构示意图;FIG. 1 is a schematic diagram of the internal circuit structure of a preferred wireless passive switch according to an embodiment of the present invention;
图2为本发明实施例优选的无线无源开关配置入网的流程示意图;2 is a schematic diagram of a preferred wireless passive switch configuration and access to the network according to an embodiment of the present invention;
图3为本发明实施例优选的无线无源开关控制网络结构拓扑图;3 is a topological diagram of a preferred wireless passive switch control network structure according to an embodiment of the present invention;
图4为本发明实施例优选的无线无源开关控制的流程示意图;FIG. 4 is a schematic flowchart of a preferred wireless passive switch control according to an embodiment of the present invention;
图5为本发明实施例优选的代理节点结构示意图。Fig. 5 is a schematic diagram of a preferred proxy node structure according to an embodiment of the present invention.
具体实施方式Detailed ways
为了使本发明的目的、技术方案和优点更加清楚,下面将结合附图对本发明作进一步地详细描述,显然,所描述的实施例仅仅是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其它实施例,都属于本发明保护的范围。In order to make the objectives, technical solutions, and advantages of the present invention clearer, the present invention will be further described in detail below with reference to the accompanying drawings. Obviously, the described embodiments are only a part of the embodiments of the present invention, rather than all of them. Based on the embodiments of the present invention, all other embodiments obtained by those of ordinary skill in the art without creative work shall fall within the protection scope of the present invention.
下面结合附图对本发明作进一步说明。The present invention will be further described below in conjunction with the accompanying drawings.
实施例一Example one
图1为本发明实施例优选的无线无源开关内部电路结构示意图。Fig. 1 is a schematic diagram of the internal circuit structure of a preferred wireless passive switch according to an embodiment of the present invention.
如图1所示,无线无源开关1包括,无源自发电模块11、主控模块12、广播模块13、存储器14,以及按键面板15。其中,主控模块12分别与无源自发电模块11、广播模块13、存储器14,以及按键面板15电连接。无源自发电模块11,为主控模块12工作提供电能,可以将用户按压按键面板15时的按键动作产生的机械能或者其他方式的微能量转换为电能,并进行电能存储。广播模块13,配置为向外界广播消息。As shown in FIG. 1, the wireless passive switch 1 includes a power generation module 11, a main control module 12, a broadcasting module 13, a memory 14, and a button panel 15. Among them, the main control module 12 is electrically connected to the non-sourced power generation module 11, the broadcasting module 13, the memory 14, and the key panel 15 respectively. The power generation module 11 is not derived from the power generation module 11 and provides electrical energy for the operation of the main control module 12, and can convert mechanical energy or other micro-energy generated by the button action when the user presses the button panel 15 into electrical energy and store the electrical energy. The broadcasting module 13 is configured to broadcast messages to the outside world.
存储器14,配置为存储无线无源开关1的安全秘钥、设备信息、负载包定义、命令序列号、系统配置的相关内容,上述内容可由用户自行设置,这样在整个系统控制方法中用户可以通过NFC/FLASH读写器或者其他支持的方式来完成该区域的读写。该部分的独立设计与后面系统安全、配对接入等相关联,为可靠设计之一。The memory 14 is configured to store the security key, device information, load package definition, command serial number, and related content of the system configuration of the wireless passive switch 1. The above content can be set by the user, so that the user can pass through the entire system control method NFC/FLASH reader or other supported methods to complete the reading and writing of this area. The independent design of this part is related to the security of the subsequent system, pairing access, etc., and is one of the reliable designs.
按键面板15,配置为接收用户对无线无源开关1进行的设置。The button panel 15 is configured to receive the settings of the wireless passive switch 1 made by the user.
主控模块12,配置为控制整个无线无源开关1的运行。The main control module 12 is configured to control the operation of the entire wireless passive switch 1.
图2为本发明实施例优选的无线无源开关1配置入网的流程示意图。FIG. 2 is a schematic diagram of the flow of configuring and connecting the wireless passive switch 1 to the network according to an embodiment of the present invention.
如图2所示,无线无源开关1配置入网的流程如下:As shown in Figure 2, the process of configuring wireless passive switch 1 to access the network is as follows:
S21、完成所有物理节点2的无线组网;S21. Complete the wireless networking of all physical nodes 2;
具体的,按照无线系统的原有方式进行组网,所有物理节点2进入网关系统;组网方式可以是zigbee,也可以是BLE的MESH组网,物理节点2是多个可被无线无源开关1控制的灯具2。Specifically, according to the original wireless system networking, all physical nodes 2 enter the gateway system; the networking mode can be zigbee, or BLE MESH networking, physical node 2 is multiple wireless passive switches 1 Controlled lamps 2.
S22、就近选择较方便操作的物理节点2作为代理节点21,代理节点21进入配对等待状态,搜索广播包;S22. Select a nearby physical node 2 that is more convenient to operate as the proxy node 21, and the proxy node 21 enters the pairing waiting state and searches for broadcast packets;
具体的,选择一个最便利的节点作为代理节点21,代理节点21进入配对学习模式,开始搜索开关的无线秘钥包。Specifically, the most convenient node is selected as the agent node 21, and the agent node 21 enters the pairing learning mode and starts to search for the wireless key package of the switch.
S23、无线无源开关1进入配置入网模式,低功率发射入网广播包;S23. The wireless passive switch 1 enters the configuration network access mode, and transmits network access broadcast packets at low power;
具体的,无线无源开关1进入配置入网模式,低功率发射入网广播包;在入网广播包中同时包括无线无源开关1的MAC信息和秘钥信息,此时选择的发射功率的level较低,有效距离保证在0.5m以内。较低的发射功率能够避免同一强电线路上的多个节点同时处于广播等待模式,同时会学习到的情况。低功率发射入网广播包,是为了避免后续的网络风暴,因为如果采用较大功率发射入网广播包,多个物理节点2会收到入网广播包,从而有多个物理节点2成为代理节点21,在后续无线无源开关1大功率发送消息字负载包时,多个代理节点21均能处理该消息字负载包,并将消息字负载包转换成数据包,并在网络内发送,容易引起网络负荷风暴。Specifically, the wireless passive switch 1 enters the configuration network access mode, and the network access broadcast packet is transmitted at low power; the network access broadcast packet includes the MAC information and secret key information of the wireless passive switch 1 at the same time, and the selected transmit power level is lower at this time , The effective distance is guaranteed to be within 0.5m. The lower transmission power can avoid the situation that multiple nodes on the same strong line are in the broadcast waiting mode at the same time and will learn at the same time. The low-power transmission of network access broadcast packets is to avoid subsequent network storms, because if a higher power is used to transmit network access broadcast packets, multiple physical nodes 2 will receive the network broadcast packet, so multiple physical nodes 2 become proxy nodes 21. When the subsequent wireless passive switch 1 sends a message word load packet with high power, multiple proxy nodes 21 can process the message word load packet, convert the message word load packet into a data packet, and send it in the network, which is likely to cause the network Load storm.
S24、代理节点21如果搜索到入网广播包,则从入网广播包中解析出无线无源开关1的MAC地址和秘钥;如果搜索不到入网广播包,则继续搜索;S24. If the proxy node 21 finds the network access broadcast packet, it will parse out the MAC address and secret key of the wireless passive switch 1 from the network access broadcast packet; if the network access broadcast packet is not found, continue the search;
具体的,代理节点21如果搜索到入网广播包,则从入网广播包中解析出无线无源开关1的MAC地址和秘钥,并保存到代理节点21内;如果搜索不到无线无源开关1发送的入网广播包,则继续搜索。其中,每个MAC地址对应的秘钥各不相同。Specifically, if the proxy node 21 finds the network access broadcast packet, the MAC address and secret key of the wireless passive switch 1 are parsed from the network access broadcast packet, and stored in the proxy node 21; if the wireless passive switch 1 cannot be searched The network broadcast packet sent will continue to search. Among them, the secret key corresponding to each MAC address is different.
S25、当代理节点21配对完成后,退出配对模式。S25. After the agent node 21 is paired, exit the pairing mode.
图3为本发明实施例优选的无线无源开关控制网络结构拓扑图。Fig. 3 is a topological diagram of a preferred wireless passive switch control network structure according to an embodiment of the present invention.
完成无源无线开关1在系统中的物理添加后,实际无线无源开关1就已经接入了系统,只不过是通过系统中的各个节点做代理,无源无线开关1与代理节点21之间为虚拟设备,因此要在系统中配置该设备才能真正使其控制系统。After completing the physical addition of the passive wireless switch 1 in the system, the actual wireless passive switch 1 has been connected to the system, but it is through each node in the system as an agent, between the passive wireless switch 1 and the agent node 21 It is a virtual device, so the device must be configured in the system to actually make it control the system.
这里的虚拟设备的配置基于实际无线系统来进行,涉及云服务器4、网关3、物理节点2,以及无线无源开关1,各个部分的主要工作拓扑图如图3所示。The configuration of the virtual device here is based on the actual wireless system, involving the cloud server 4, the gateway 3, the physical node 2, and the wireless passive switch 1. The main working topology diagram of each part is shown in Fig. 3.
云服务器4:处理系统中无线无源开关1在本实施例中涉及的各个参数;可以是不同的无线网络系统。主要包括:a、根据开关唯一的MAC,申请其在 系统中的云端虚拟设备的编号;所有的参数均与此编号进行绑定传输;b、参数选择与设定:设备各个按键对应的负载信息包、加解密算法、格式类型;c、规则执行的无线局域网络的命令关联。Cloud server 4: Processing the various parameters of the wireless passive switch 1 in this embodiment involved in the system; it can be a different wireless network system. Mainly include: a. According to the unique MAC of the switch, apply for the number of the cloud virtual device in the system; all parameters are bound to this number for transmission; b. Parameter selection and setting: load information corresponding to each button of the device Packet, encryption and decryption algorithm, format type; c. The command association of the wireless local area network executed by the rule.
网关3:将云端相关的配置同步到网关侧,网关为本系统的中枢控制,根据配置的信息,完成开关的物理配对、开关动作触发数据包安全认证和解析、比对等等的步骤。Gateway 3: Synchronize the cloud-related configuration to the gateway side. The gateway is the central control of the system. According to the configuration information, complete the physical pairing of the switch, the switch action triggers the steps of data packet security authentication and analysis, comparison, etc.
无线局域网5:一方面代理无线无源开关1的控制数据包的传输路径;另一方面从网关侧执行该无线无源开关1控制的对象与动作;Wireless local area network 5: On the one hand, it acts as a proxy for the transmission path of the control data packet of the wireless passive switch 1; on the other hand, it executes the objects and actions controlled by the wireless passive switch 1 from the gateway side;
无线无源开关1:为主要触发设备,基础设备相关配置在云端设定后实现在整系统中的联动。该方法中设备本身简单、可配置,灵活性高。Wireless passive switch 1: It is the main trigger device, and the related configuration of the basic device is set in the cloud to realize the linkage in the whole system. In this method, the device itself is simple, configurable, and highly flexible.
根据系统的各个模块,完成开关的功能和能力的配置与定义,适合于各种应用场景下。关键参数包括:开关加解密算法、数据负载格式、按键的能力表、触发的规则等等。这样任意的开关都能保证唯一的接入系统后安全的控制网络,并且实现不同的功能。这些无需对开关做二次开发,系统配置即可。当然如果对于小型封闭网络,不包括网关,无法实现云端的配置,这里也在系统设计中预留了控制方法,因为定义的数据负载包在代理节点21检查的时候,如果代理节点21没有配置入网,那么就直接解析数据负载直接变成无线网络的命令负载发送,定义是一致的,可以实现直接控制。According to the various modules of the system, complete the configuration and definition of the functions and capabilities of the switch, which is suitable for various application scenarios. Key parameters include: switch encryption and decryption algorithms, data load format, key capability table, triggering rules, etc. In this way, any switch can ensure the only safe control network after accessing the system, and realize different functions. These do not need to do the secondary development of the switch, the system configuration is enough. Of course, if the small closed network does not include the gateway, the cloud configuration cannot be realized. Here, the control method is also reserved in the system design, because the defined data load packet is checked by the agent node 21, if the agent node 21 is not configured to enter the network , Then directly analyze the data load and directly turn it into the command load of the wireless network. The definition is consistent and direct control can be realized.
图4为本发明实施例优选的无线无源开关控制的流程示意图。Fig. 4 is a schematic flow diagram of a preferred wireless passive switch control according to an embodiment of the present invention.
如图4所示,无线无源开关控制的流程如下:As shown in Figure 4, the process of wireless passive switch control is as follows:
S41、接入系统的无线无源开关1发送消息字负载包;S41. The wireless passive switch 1 connected to the system sends a message word load packet;
具体的,由于在图2中,无线无源开关1已通过代理节点21接入到系统中,当无线无源开关1欲控制物理节点时,用户可按压无线无源开关1上的按键,生成按键动作对应的消息字负载包,在该消息字负载包中包括无线无源开关1的序列号、消息字负载,以及无线无源开关1的MAC信息。其中,如果物理节点是灯具时,消息字负载包为调光命令。Specifically, since in Figure 2, the wireless passive switch 1 has been connected to the system through the proxy node 21, when the wireless passive switch 1 wants to control a physical node, the user can press the button on the wireless passive switch 1 to generate The message word load packet corresponding to the key press action includes the serial number of the wireless passive switch 1, the message word load, and the MAC information of the wireless passive switch 1 in the message word load packet. Among them, if the physical node is a lamp, the message word load packet is a dimming command.
在发送消息字负载包之前,可根据不同的网络类型和长度要求,对数据进行精简压缩。在发送消息字负载包时,按照高发射功率方式发送,利用有限能量的发送尽量多的数据。Before sending the message word payload packet, the data can be streamlined and compressed according to different network types and length requirements. When sending a message word load packet, it is sent in a high-transmission power mode, and as much data as possible is sent with limited energy.
S42、代理节点21接收到消息字负载包后,使用秘钥对消息字负载包进行解密、验证;S42. After receiving the message word load packet, the proxy node 21 uses the secret key to decrypt and verify the message word load packet;
具体的,代理节点21接收到无线无源开关1发送的消息字负载包后,使用在之前无线无源开关配置入网过程中接收到的秘钥对消息字负载包进行解密。每个MAC地址对应的秘钥各不相同,如果多个无线无源开关1通过同一代理节点21进行接入,则依次使用不同无线无源开关1对应的秘钥进行解密。Specifically, after receiving the message word load packet sent by the wireless passive switch 1, the proxy node 21 uses the secret key received during the previous wireless passive switch configuration and access to the network to decrypt the message word load packet. The secret key corresponding to each MAC address is different. If multiple wireless passive switches 1 are accessed through the same proxy node 21, the secret keys corresponding to different wireless passive switches 1 are used in turn for decryption.
如果有一个秘钥解密成功,则说明发送消息字负载包的无线无源开关1是通过该代理节点21接入成功的无线无源开关1;如果所有秘钥都解密不成功,则说明发送消息字负载包的无线无源开关1没有成功通过该代理节点21接入到系统。If a secret key is successfully decrypted, it means that the wireless passive switch 1 that sends the message word payload packet is the wireless passive switch 1 that has successfully accessed through the proxy node 21; if all secret keys are unsuccessful in decryption, it means that the message is sent The wireless passive switch 1 of the word load packet fails to access the system through the proxy node 21.
S43、代理节点21将解密成功后的消息字负载包转换成适配无线网络的数据包,透传给网关3;S43. The proxy node 21 converts the successfully decrypted message word payload packet into a data packet adapted to the wireless network, and transparently transmits it to the gateway 3;
具体的,当在步骤S42解密成功后,代理节点21将解密成功后的消息字负载包转换为适配无线网络的数据包,并将数据包透传给网关3。Specifically, after the decryption is successful in step S42, the proxy node 21 converts the successfully decrypted message word payload packet into a data packet adapted to the wireless network, and transparently transmits the data packet to the gateway 3.
S44、网关3接收到数据包后,根据序列号进行去重处理,执行数据包内的命令;S44. After receiving the data packet, the gateway 3 performs deduplication processing according to the serial number, and executes the command in the data packet;
其中,根据序列号进行去重处理,例如,接收到同一个无线无源开关1发送的多个数据包时,比对多个数据包中是否存在序列号相同的,如果存在则剔除重复的数据包。Among them, de-duplication is performed according to the serial number. For example, when multiple data packets sent by the same wireless passive switch 1 are received, compare whether there are multiple data packets with the same serial number, and if they exist, remove duplicate data package.
在去重之后,网关3执行数据包中的控制命令,对相应的节点执行规定的操作,例如全网或部分节点的开关、等级控制等,当节点是灯具时,可对灯具执行调光、调色命令。After de-duplication, the gateway 3 executes the control commands in the data packet, and performs specified operations on the corresponding nodes, such as switching of the entire network or part of the nodes, level control, etc., when the node is a lamp, it can perform dimming, Toning command.
图5为本发明实施例优选的代理节点结构示意图。Fig. 5 is a schematic diagram of a preferred proxy node structure according to an embodiment of the present invention.
如图5所示,代理节点21包括接收模块212、处理器211、发送模块213、存储器214,以及电源模块215。其中,处理器211分别和接收模块212、发送模块213、存储器214,以及电源模块215连接。电源模块215向处理器211提供电能。As shown in FIG. 5, the proxy node 21 includes a receiving module 212, a processor 211, a sending module 213, a memory 214, and a power supply module 215. Among them, the processor 211 is connected to the receiving module 212, the sending module 213, the memory 214, and the power supply module 215, respectively. The power module 215 provides power to the processor 211.
在无线无源开关1通过代理节点21接入到系统时,代理节点21的接收模块212接收到无线无源开关1发送的入网广播包,并发送给处理器211;处理器211对接收到的入网广播包进行解析,解析得到无线无源开关1的MAC地址和秘钥,并将无线无源开关1的MAC地址和秘钥保存到存储器214中。When the wireless passive switch 1 accesses the system through the proxy node 21, the receiving module 212 of the proxy node 21 receives the network access broadcast packet sent by the wireless passive switch 1, and sends it to the processor 211; the processor 211 responds to the received The network access broadcast packet is analyzed, and the MAC address and secret key of the wireless passive switch 1 are obtained by the analysis, and the MAC address and secret key of the wireless passive switch 1 are stored in the memory 214.
在无线无源开关1通过代理节点21发送控制信号时,代理节点21的接收模块212接收无线无源开关1发送的消息字负载包,并发送给处理器211;处理器211使用无线无源开关1发送的秘钥对消息字负载包进行解密,如果多个无线无源开关1通过同一代理节点21进行接入,则依次使用不同无线无源开关1对应的秘钥进行解密,如果有一个秘钥解密成功,则说明发送消息字负载包的无线无源开关1是通过该代理节点21接入成功的无线无源开关1;如果所有秘钥都解密不成功,则说明发送消息字负载包的无线无源开关1没有成功通过该代理节点21接入到系统。When the wireless passive switch 1 sends a control signal through the proxy node 21, the receiving module 212 of the proxy node 21 receives the message word load packet sent by the wireless passive switch 1 and sends it to the processor 211; the processor 211 uses the wireless passive switch 1 The sent secret key decrypts the message word payload packet. If multiple wireless passive switches 1 access through the same proxy node 21, they will use the secret keys corresponding to different wireless passive switches 1 to decrypt in turn. If there is a secret If the key is successfully decrypted, it means that the wireless passive switch 1 that sends the message word load packet is the wireless passive switch 1 that has successfully accessed through the proxy node 21; if all the secret keys are unsuccessful in decryption, it means that the message word load packet is sent The wireless passive switch 1 fails to access the system through the proxy node 21.
如果有一个秘钥解密成功,则说明发送消息字负载包的无线无源开关1是通过该代理节点21接入成功的无线无源开关1;如果所有秘钥都解密不成功,则说明发送消息字负载包的无线无源开关1没有成功通过该代理节点21接入到系统。If a secret key is successfully decrypted, it means that the wireless passive switch 1 that sends the message word payload packet is the wireless passive switch 1 that has successfully accessed through the proxy node 21; if all secret keys are unsuccessful in decryption, it means that the message is sent The wireless passive switch 1 of the word load packet fails to access the system through the proxy node 21.
当解密成功后,处理器211将解密成功后的消息字负载包转换成适配无线网络的数据包,并发送给发送模块213,发送模块213将该适配无线网络的数据包透传给网关3。When the decryption is successful, the processor 211 converts the successfully decrypted message word payload packet into a data packet adapted to the wireless network, and sends it to the sending module 213, and the sending module 213 transparently transmits the data packet adapted to the wireless network to the gateway 3.
尽管已描述了本发明的优选实施例,但本领域内的技术人员一旦得知了基本创造性概念,则可对这些实施例作出另外的变更和修改。所以,所附权利要求意欲解释为包括优选实施例以及落入本发明范围的所有变更和修改。Although the preferred embodiments of the present invention have been described, those skilled in the art can make additional changes and modifications to these embodiments once they learn the basic creative concept. Therefore, the appended claims are intended to be interpreted as including the preferred embodiments and all changes and modifications falling within the scope of the present invention.
显然,本领域的技术人员可以对本发明进行各种改动和变型而不脱离本发明的精神和范围。这样,倘若本发明的这些修改和变型属于本发明权利要求及其等同技术的范围之内,则本发明也意图包含这些改动和变型在内。Obviously, those skilled in the art can make various changes and modifications to the present invention without departing from the spirit and scope of the present invention. In this way, if these modifications and variations of the present invention fall within the scope of the claims of the present invention and their equivalent technologies, the present invention is also intended to include these modifications and variations.

Claims (15)

  1. 一种无线无源开关通过代理节点实现控制的方法,其中,A wireless passive switch realizes control through a proxy node, wherein:
    无线无源开关向代理节点高频率发送消息字负载包;The wireless passive switch sends message word load packets to the agent node at a high frequency;
    代理节点接收到消息字负载包后,使用秘钥对消息字负载包进行解密;After receiving the message word payload packet, the proxy node uses the secret key to decrypt the message word payload packet;
    当代理节点对消息字负载包解密成功后,When the agent node successfully decrypts the message payload packet,
    代理节点将解密成功后的消息字负载包转换成适配无线网络的数据包,透传给网关;The proxy node converts the successfully decrypted message word load packet into a data packet adapted to the wireless network, and transparently transmits it to the gateway;
    所述网关接收到数据包后,根据数据包内序列号进行去重处理,执行数据包内的命令。After receiving the data packet, the gateway performs deduplication processing according to the sequence number in the data packet, and executes the commands in the data packet.
  2. 根据权利要求1所述的无线无源开关实现控制的方法,其中,The method for realizing control of a wireless passive switch according to claim 1, wherein:
    在所述无线无源开关向代理节点高频率发送消息字负载包之前,Before the wireless passive switch sends a message word load packet to the proxy node at a high frequency,
    所述代理节点已组网,并接入到网关。The agent node has been networked and connected to the gateway.
  3. 根据权利要求2所述的无线无源开关实现控制的方法,其中,The method for realizing control of a wireless passive switch according to claim 2, wherein:
    所述无线无源开关配网接入到包括代理节点的网络内。The wireless passive switch is connected to the network including the proxy node.
  4. 根据权利要求3所述的无线无源开关实现控制的方法,其中,The method for realizing control of a wireless passive switch according to claim 3, wherein:
    所述无线无源开关配网接入到包括代理节点的网络内,包括,The wireless passive switch distribution network access to the network including the proxy node includes:
    所述无线无源开关向代理节点发射入网广播包;The wireless passive switch transmits a network access broadcast packet to the agent node;
    所述代理节点接收入网广播包,并从所述入网广播包中解析出所述无线无源开关的MAC地址和秘钥。The proxy node receives the network access broadcast packet, and parses the MAC address and secret key of the wireless passive switch from the network access broadcast packet.
  5. 根据权利要求4所述的无线无源开关实现控制的方法,其中,The method for realizing control of a wireless passive switch according to claim 4, wherein:
    当多个无线无源开关通过代理节点接入到网络时,When multiple wireless passive switches are connected to the network through proxy nodes,
    代理节点接收到多个无线无源开关发送的不同的秘钥。The proxy node receives different secret keys sent by multiple wireless passive switches.
  6. 根据权利要求5所述的无线无源开关实现控制的方法,其中,The method for realizing control of a wireless passive switch according to claim 5, wherein:
    当所述代理节点内保存有多个不同的秘钥时,When multiple different secret keys are stored in the agent node,
    所述代理节点依次使用不同的秘钥对接收到消息字负载包进行解密。The proxy node sequentially uses different secret keys to decrypt the received message word payload packet.
  7. 根据权利要求1所述的无线无源开关实现控制的方法,其中,The method for realizing control of a wireless passive switch according to claim 1, wherein:
    所述消息字负载包,包括无线无源开关的MAC地址、序列号,以及控制命令。The message word payload packet includes the MAC address, serial number, and control command of the wireless passive switch.
  8. 根据权利要求7所述的无线无源开关实现控制的方法,其中,The method for realizing control of a wireless passive switch according to claim 7, wherein:
    所述网关根据数据包内序列号进行去重处理,包括,The gateway performs de-duplication processing according to the sequence number in the data packet, including:
    当接收到多个数据包时,检查多个数据包内的序列号是否相同,如果有相同序列号的数据包,则剔除重复的数据包。When multiple data packets are received, check whether the sequence numbers in the multiple data packets are the same, and if there are data packets with the same sequence number, remove duplicate data packets.
  9. 一种无线无源开关,包括,无源自发电模块、主控模块、广播模块,以及按键面板;其中,A wireless passive switch, including a source-free power generation module, a main control module, a broadcast module, and a button panel; wherein,
    所述主控模块,分别和无源自发电模块、广播模块,以及按键面板电连接;The main control module is electrically connected to the non-sourced power generation module, the broadcast module, and the key panel respectively;
    所述无源自发电模块,配置为将用户按压按键面板时的按键动作产生的机械能转换为电能,并给所述主控模块供电;The source-free power generation module is configured to convert the mechanical energy generated by the button action when the user presses the button panel into electrical energy, and supply power to the main control module;
    当所述无线无源开关配网时,主控模块生成入网广播包,并通过广播模块向代理节点发送入网广播包;When the wireless passive switch is configured to the network, the main control module generates a network access broadcast packet, and sends the network access broadcast packet to the agent node through the broadcast module;
    当所述无线无源开关实现控制时,主控模块生成消息字负载包,并通过广播模块向代理节点发送消息字负载包。When the wireless passive switch realizes control, the main control module generates a message word load packet, and sends the message word load packet to the proxy node through the broadcast module.
  10. 根据权利要求9所述的无线无源开关,其中,The wireless passive switch according to claim 9, wherein:
    所述入网广播包,包括所述无线无源开关的MAC地址,以及秘钥。The network access broadcast packet includes the MAC address of the wireless passive switch and the secret key.
  11. 根据权利要求9所述的无线无源开关,其中,The wireless passive switch according to claim 9, wherein:
    所述消息字负载包,包括无线无源开关的MAC地址、序列号,以及控制命令。The message word payload packet includes the MAC address, serial number, and control command of the wireless passive switch.
  12. 一种代理节点,包括接收模块、处理器,以及发送模块;其中,A proxy node includes a receiving module, a processor, and a sending module; wherein,
    所述处理器分别和接收模块,以及发送模块电连接;The processor is electrically connected to the receiving module and the sending module, respectively;
    在无线无源开关通过代理节点接入到网络时,接收模块接收到无线无 源开关发送的入网广播包,并发送给处理器;所述处理器对接收到的入网广播包进行解析,解析得到无线无源开关的MAC地址和秘钥;When the wireless passive switch accesses the network through the proxy node, the receiving module receives the network access broadcast packet sent by the wireless passive switch and sends it to the processor; the processor parses the received network broadcast packet to obtain The MAC address and secret key of the wireless passive switch;
    在无线无源开关通过代理节点发送控制信号时,接收模块接收无线无源开关发送的消息字负载包,并发送给处理器;处理器使用无线无源开关发送的秘钥对消息字负载包进行解密;When the wireless passive switch sends the control signal through the proxy node, the receiving module receives the message word load packet sent by the wireless passive switch and sends it to the processor; the processor uses the secret key sent by the wireless passive switch to perform the message word load packet Decrypt
    所述处理器将解密成功后的消息字负载包转换成适配无线网络的数据包,并通过发送模块透传给网关。The processor converts the successfully decrypted message word load packet into a data packet adapted to the wireless network, and transparently transmits it to the gateway through the sending module.
  13. 根据权利要求12所述的代理节点,其中,The proxy node according to claim 12, wherein:
    所述代理节点还包括电源模块;The agent node also includes a power supply module;
    所述电源模块,配置为给所述处理器供电。The power supply module is configured to supply power to the processor.
  14. 根据权利要求12所述的代理节点,其中,The proxy node according to claim 12, wherein:
    所述代理节点还包括存储器;The agent node also includes a memory;
    所述存储器配置为保存处理器解析到的无线无源开关的MAC地址和秘钥。The memory is configured to store the MAC address and secret key of the wireless passive switch parsed by the processor.
  15. 根据权利要求12所述的代理节点,其中,The proxy node according to claim 12, wherein:
    如果多个无线无源开关通过同一代理节点进行网络接入,则依次使用不同无线无源开关对应的秘钥进行解密。If multiple wireless passive switches access the network through the same proxy node, the secret keys corresponding to different wireless passive switches are used in turn for decryption.
PCT/CN2020/137546 2019-12-18 2020-12-18 Method for implementing control of wireless passive switch, wireless passive switch, and proxy node WO2021121372A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201911311058.7 2019-12-18
CN201911311058.7A CN111083654B (en) 2019-12-18 2019-12-18 Method for realizing control of wireless passive switch, wireless passive switch and proxy node

Publications (1)

Publication Number Publication Date
WO2021121372A1 true WO2021121372A1 (en) 2021-06-24

Family

ID=70315589

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2020/137546 WO2021121372A1 (en) 2019-12-18 2020-12-18 Method for implementing control of wireless passive switch, wireless passive switch, and proxy node

Country Status (2)

Country Link
CN (1) CN111083654B (en)
WO (1) WO2021121372A1 (en)

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111083654B (en) * 2019-12-18 2022-09-16 欧普照明股份有限公司 Method for realizing control of wireless passive switch, wireless passive switch and proxy node
CN115421407A (en) * 2021-05-16 2022-12-02 武汉领普科技有限公司 Self-generating wireless switch, controlled equipment and control system
CN113963527B (en) * 2021-10-09 2022-10-11 珠海格力电器股份有限公司 Communication control method, device, system and equipment for low-power-consumption component and gateway
CN118233295A (en) * 2022-06-13 2024-06-21 武汉领普科技有限公司 Self-generating switch, processing method thereof, electronic equipment and control system
CN115996155A (en) * 2022-08-16 2023-04-21 厦门阳光恩耐照明有限公司 Passive wireless switch control method and control system based on Bluetooth MESH network

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20120199454A1 (en) * 2011-02-08 2012-08-09 Schneider Electric Industries Sas Wireless switching device
CN104968037A (en) * 2015-05-29 2015-10-07 乐鑫信息科技(上海)有限公司 Low-power-consumption Internet of Things realizing method based on proxy equipment
CN105451231A (en) * 2015-12-29 2016-03-30 乐鑫信息科技(上海)有限公司 Proxy device Internet of Things configuration method with high safety and low power consumption, and system implementing method
CN110262356A (en) * 2019-07-08 2019-09-20 广东易百珑智能科技有限公司 Confess electric control system, wireless controller and wireless connection method and control method
CN111083654A (en) * 2019-12-18 2020-04-28 欧普照明股份有限公司 Method for realizing control of wireless passive switch, wireless passive switch and proxy node

Family Cites Families (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8934404B2 (en) * 2008-03-03 2015-01-13 Qualcomm Incorporated Access point with proxy functionality for facilitating power conservation in wireless client terminals
CN102448022B (en) * 2010-09-30 2016-02-10 上海贝尔股份有限公司 A kind of sensor network group mobility management method and system thereof
CN104660509B (en) * 2013-11-19 2017-11-21 中国科学院声学研究所 The method for processing forwarding of data message in a kind of access gateway
CN204067198U (en) * 2014-08-27 2014-12-31 福州家佳齐信息技术有限公司 Based on wireless passive switch and the actuator apparatus of low-power consumption Bluetooth technology
CN105072663B (en) * 2015-08-21 2018-09-25 北京岩与科技有限公司 A kind of ad hoc network method based on low rate wireless network
CN105978892B (en) * 2016-06-27 2019-06-25 浪潮金融信息技术有限公司 A kind of diversification section switch long-range control method
US10869266B2 (en) * 2016-11-11 2020-12-15 Qualcomm Incorporated Energy efficient discovery and traffic management in a mesh WAN for IoEs with a wakeup receiver
CN107889119B (en) * 2017-11-16 2021-06-08 乐鑫信息科技(上海)股份有限公司 Mesh network auxiliary tool, Mesh network, distribution network and networking method
CN109041022B (en) * 2018-08-13 2021-08-27 海尔优家智能科技(北京)有限公司 Network management method, Bluetooth module, medium and computer
CN109067592B (en) * 2018-08-31 2022-01-18 国网辽宁省电力有限公司电力科学研究院 Intelligent management and control device and method for intelligent power distribution and utilization
CN109743705A (en) * 2019-01-25 2019-05-10 欧普照明股份有限公司 A kind of combination method and system of wearable device and Mesh network

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20120199454A1 (en) * 2011-02-08 2012-08-09 Schneider Electric Industries Sas Wireless switching device
CN104968037A (en) * 2015-05-29 2015-10-07 乐鑫信息科技(上海)有限公司 Low-power-consumption Internet of Things realizing method based on proxy equipment
CN105451231A (en) * 2015-12-29 2016-03-30 乐鑫信息科技(上海)有限公司 Proxy device Internet of Things configuration method with high safety and low power consumption, and system implementing method
CN110262356A (en) * 2019-07-08 2019-09-20 广东易百珑智能科技有限公司 Confess electric control system, wireless controller and wireless connection method and control method
CN111083654A (en) * 2019-12-18 2020-04-28 欧普照明股份有限公司 Method for realizing control of wireless passive switch, wireless passive switch and proxy node

Also Published As

Publication number Publication date
CN111083654B (en) 2022-09-16
CN111083654A (en) 2020-04-28

Similar Documents

Publication Publication Date Title
WO2021121372A1 (en) Method for implementing control of wireless passive switch, wireless passive switch, and proxy node
CN104898449B (en) Smart home system and its control method
KR102306628B1 (en) Mesh network commissioning
CN204810290U (en) Novel wireless Intelligence system
US9521614B2 (en) Power efficient method for Wi-Fi home automation
WO2020182009A1 (en) Network connection method, terminal, base station, and computer storage medium
CN106878025B (en) Internet of things control switch and method based on fingerprint identification authority control
CN105392181B (en) A kind of networking method of smart machine, apparatus and system
US20170085392A1 (en) System, method and apparatus for data communication
CN108353464B (en) Mesh network connectivity
CN114245319B (en) Enhanced broadcast concurrent OTA firmware upgrading method based on Bluetooth Mesh
CN108702310A (en) A kind of ascending transmission method, relevant device and system
Thirupathi et al. Implementation of home automation system using mqtt protocol and esp32
CN114208108A (en) Secure path discovery in mesh networks
CN202720467U (en) Intelligent socket remote control system
US20180159728A1 (en) Communication method for wi-fi internet of things equipment and wi-fi internet of things system
TW202015436A (en) Secure friendship establishment in a mesh network
WO2018053895A1 (en) Type-based uplink data encryption control method and device for internet-of-things access point
CN105991788A (en) Method for realizing slave network address assignment based on NFC communication
CN106937280A (en) The authentication method of sensor node and sensor node accessing mobile communication network
Ye et al. Research on Networking Technology based on BLE Mesh
JP2017108202A (en) Wireless communication device, method and system
CN213752556U (en) Configurable miniature circuit breaker
CN113766590B (en) Method and wireless device for application in wireless networking
Mikhaylov et al. Mechanisms for improving throughput and energy efficiency of Bluetooth Low Energy for multi node environment

Legal Events

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

Ref document number: 20903149

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 20903149

Country of ref document: EP

Kind code of ref document: A1