CN111556588A - Connection configuration method and system for Bluetooth MESH network, electronic equipment and storage medium - Google Patents

Connection configuration method and system for Bluetooth MESH network, electronic equipment and storage medium Download PDF

Info

Publication number
CN111556588A
CN111556588A CN202010514984.0A CN202010514984A CN111556588A CN 111556588 A CN111556588 A CN 111556588A CN 202010514984 A CN202010514984 A CN 202010514984A CN 111556588 A CN111556588 A CN 111556588A
Authority
CN
China
Prior art keywords
bluetooth mesh
state
bluetooth
infrared
equipment
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.)
Granted
Application number
CN202010514984.0A
Other languages
Chinese (zh)
Other versions
CN111556588B (en
Inventor
李铮
陈永利
李睿
杨鹏飞
肖德勇
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
State Grid Information and Telecommunication Co Ltd
Beijing Smartchip Microelectronics Technology Co Ltd
Original Assignee
State Grid Information and Telecommunication Co Ltd
Beijing Smartchip Microelectronics Technology Co Ltd
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 State Grid Information and Telecommunication Co Ltd, Beijing Smartchip Microelectronics Technology Co Ltd filed Critical State Grid Information and Telecommunication Co Ltd
Priority to CN202010514984.0A priority Critical patent/CN111556588B/en
Publication of CN111556588A publication Critical patent/CN111556588A/en
Application granted granted Critical
Publication of CN111556588B publication Critical patent/CN111556588B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W76/00Connection management
    • H04W76/10Connection setup
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/80Services using short range communication, e.g. near-field communication [NFC], radio-frequency identification [RFID] or low energy communication
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W76/00Connection management
    • H04W76/40Connection management for selective distribution or broadcast
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W84/00Network topologies
    • H04W84/18Self-organising networks, e.g. ad-hoc networks or sensor networks

Landscapes

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

Abstract

The invention provides a connection configuration method, a connection configuration system, electronic equipment and a storage medium for a Bluetooth MESH network, and belongs to the technical field of communication. The method comprises the following steps: receiving an infrared signal through an infrared receiving unit of the Bluetooth MESH equipment; switching the working state of the Bluetooth MESH equipment to a broadcasting state; and executing the connection configuration of the Bluetooth MESH equipment and the target Bluetooth MESH network. The invention is used for realizing the reset and the network re-access of the Bluetooth MESH equipment in a non-contact way.

Description

Connection configuration method and system for Bluetooth MESH network, electronic equipment and storage medium
Technical Field
The present invention relates to the field of communications technologies, and in particular, to a connection configuration method for a bluetooth MESH network, a connection configuration system for a bluetooth MESH network, an electronic device, and a computer-readable storage medium.
Background
Bluetooth MESH networks, Bluetooth multi-hop networks, MESH technology allows devices to relay data to other devices that are not in direct radio coverage of the originating device, as opposed to point-to-point transmission by Bluetooth (BLE). Thus, a MESH network can span a very large physical area and contain a large number of devices.
In the communication field, a large number of MESH devices are applied to the environment of the Internet of things such as industry, medical use, smart home and the like. The Bluetooth MESH equipment accesses uninitialized equipment to a MESH network through a PB-ADV or PB-GATT distribution network, the Bluetooth MESH equipment works in a configured state and an unconfigured state according to an application scene, wherein the PB-ADV is a broadcast configuration bearing layer, a session is established on a broadcast frequency band, connection configuration is completed through a general configuration Protocol data unit (Generic configuration PDU, Protocol data Unit, PDU), and the PB-GATT is a general attribute configuration bearing layer, is generally used for a service end equipment which does not support PB-ADV, and realizes connection configuration by using a Proxy service end and a Proxy client end to exchange a Proxy configuration Protocol data unit (Proxy PDU).
The bluetooth MESH network is similar to other networks, and requires network access configuration for the access device, and also requires re-initialization and configuration for the device when the device is in the abnormal state free network connection state.
The Bluetooth MESH network equipment enters a configurable state and an initialized state which need human intervention, and the conventional method is that the equipment is provided with a physical key and enters a reconfigurable state through key operation at present; some manufacturers provide a special power-on state to enable the device to enter an initialization state, or use nfc (near Field communication) near Field communication, and after approaching the device, the device enters a configurable state, which is suitable for different requirements of a certain scenario, but the current scheme of power-on operation or near Field communication still requires that the device tolerate repeated power-off, or requires that a user physically contact the device, and therefore, the method is not suitable for initialization connection configuration of network devices under the conditions of unrepeatable power-off and inappropriate contact (such as higher position of the device).
Disclosure of Invention
The invention aims to provide a connection configuration method, a connection configuration system, electronic equipment and a storage medium for a Bluetooth MESH network, and solves the technical problems that the Bluetooth MESH equipment in the prior art is difficult to perform connection configuration under harsh conditions and the like.
In order to achieve the above object, an embodiment of the present invention provides a connection configuration method for a bluetooth MESH network, where the connection configuration method includes:
receiving an infrared signal through an infrared receiving unit of the Bluetooth MESH equipment;
switching the working state of the Bluetooth MESH equipment to a broadcasting state;
and executing the connection configuration of the Bluetooth MESH equipment and the target Bluetooth MESH network.
Specifically, after the infrared receiving unit of the bluetooth MESH device receives the infrared signal and before the switching of the operating state of the bluetooth MESH device to the broadcast state, the method further includes:
and determining that the Bluetooth device address of the Bluetooth MESH device is consistent with the Bluetooth device address in the demodulated data of the infrared signal, wherein any Bluetooth device address at least has an MAC address.
Specifically, after the infrared receiving unit of the bluetooth MESH device receives the infrared signal and before the switching of the operating state of the bluetooth MESH device to the broadcast state, the method further includes:
sending an infrared feedback signal through the Bluetooth MESH equipment, wherein the Bluetooth MESH equipment is also provided with an infrared transmitting unit;
receiving an infrared signal responding to the infrared feedback signal through the infrared receiving unit;
judging whether the Bluetooth device address of the Bluetooth MESH device is consistent with the Bluetooth device address in the demodulation data of the re-received infrared signal, wherein any Bluetooth device address at least has an MAC address,
if yes, starting the step of switching the working state of the Bluetooth MESH equipment to the broadcasting state,
and if not, returning to the step of receiving the infrared signal by the infrared receiving unit of the Bluetooth MESH equipment.
Specifically, the switching the working state of the bluetooth MESH device to the broadcast state includes at least one of the following items:
switching the accessed node state of the Bluetooth MESH equipment in the original Bluetooth MESH network to a broadcast state;
switching the relay node state of the Bluetooth MESH equipment in the original Bluetooth MESH network to a broadcast state;
and switching the low-power consumption node state of the Bluetooth MESH equipment in the original Bluetooth MESH network to a broadcast state.
Specifically, the switching the working state of the bluetooth MESH device to the broadcast state includes:
forwarding the demodulated data of the infrared signal to the Bluetooth MESH equipment in the state of a relayed node in the original Bluetooth MESH network through the Bluetooth MESH equipment in the state of the relayed node;
and switching the accessed node state of the Bluetooth MESH equipment in the state of the relayed node to a broadcast state through the demodulated data.
Specifically, the forwarding the demodulated data of the infrared signal to the bluetooth MESH device in the state of the relayed node through the bluetooth MESH device in the state of the relayed node in the original bluetooth MESH network includes:
modulating the demodulated data of the infrared signal into a relay infrared signal through the Bluetooth MESH equipment in the relay node state;
and forwarding the relay infrared signal to the Bluetooth MESH equipment in the state of the relayed node.
Specifically, the forwarding the demodulated data of the infrared signal to the bluetooth MESH device in the state of the relayed node through the bluetooth MESH device in the state of the relayed node in the original bluetooth MESH network includes:
converting the demodulated data of the infrared signal into a Bluetooth signal through the Bluetooth MESH equipment in the relay node state;
and relaying the Bluetooth signal to the Bluetooth MESH equipment in the state of the relayed node.
Specifically, the switching the working state of the bluetooth MESH device to the broadcast state includes:
polling friend Bluetooth MESH equipment in an original Bluetooth MESH network through Bluetooth MESH equipment in a low-power-consumption node state;
responding the demodulated data of the infrared signal to the Bluetooth MESH equipment in the low-power-consumption node state through the friend Bluetooth MESH equipment;
and switching the low-power consumption node state of the Bluetooth MESH equipment in the low-power consumption node state to a broadcast state through the demodulation data.
Specifically, the connection configuration between the bluetooth MESH device and the target bluetooth MESH network is executed, wherein,
the target Bluetooth MESH network and the original Bluetooth MESH network relatively execute the connection configuration of the Bluetooth MESH devices and are the same Bluetooth MESH network.
The embodiment of the invention provides a connection configuration system for a Bluetooth MESH network, which comprises:
the infrared module is used for receiving infrared signals through an infrared receiving unit of the Bluetooth MESH equipment;
the switching module is used for switching the working state of the Bluetooth MESH equipment to a broadcasting state;
and the Bluetooth module is used for executing the connection configuration of the Bluetooth MESH equipment and the target Bluetooth MESH network.
In another aspect, an embodiment of the present invention provides an electronic device, including:
at least one processor;
a memory coupled to the at least one processor;
wherein the memory stores instructions executable by the at least one processor, the at least one processor implements the aforementioned method by executing the instructions stored by the memory.
In yet another aspect, an embodiment of the present invention provides a computer-readable storage medium storing computer instructions, which, when executed on a computer, cause the computer to perform the foregoing method.
Additional features and advantages of embodiments of the invention will be set forth in the detailed description which follows.
Drawings
The accompanying drawings, which are included to provide a further understanding of the embodiments of the invention and are incorporated in and constitute a part of this specification, illustrate embodiments of the invention and together with the description serve to explain the embodiments of the invention without limiting the embodiments of the invention. In the drawings:
FIG. 1 is a schematic diagram of the main steps of the method according to the embodiment of the present invention;
FIG. 2 is a schematic flow diagram of an exemplary reconfiguration network according to an embodiment of the present invention;
FIG. 3 is a schematic diagram of an exemplary Bluetooth MESH network topology with infrared communication in accordance with an embodiment of the present invention;
FIG. 4 is a schematic diagram of an exemplary Bluetooth MESH network local topology with infrared communication in accordance with an embodiment of the present invention;
fig. 5 is a schematic diagram of an exemplary bluetooth MESH network topology with infrared communication according to an embodiment of the present invention.
Detailed Description
The following detailed description of embodiments of the invention refers to the accompanying drawings. It should be understood that the detailed description and specific examples, while indicating embodiments of the invention, are given by way of illustration and explanation only, not limitation.
Example 1
The embodiment of the invention provides a connection configuration method for a Bluetooth MESH network, which comprises the following steps:
receiving an infrared signal through an infrared receiving unit of the Bluetooth MESH equipment;
switching the working state of the Bluetooth MESH equipment to a broadcasting state;
and executing the connection configuration of the Bluetooth MESH equipment and the target Bluetooth MESH network.
The embodiment of the invention also provides Bluetooth MESH equipment, which comprises: the Bluetooth MESH equipment also can comprise an infrared transmitting unit connected with the control unit, and the selection of the infrared transmitting unit and the infrared receiving unit can be equivalent to the selection of the infrared transmitting unit.
The embodiment of the invention also provides a Bluetooth MESH network, which can be an original Bluetooth MESH network or a target Bluetooth MESH network, and the nodes of the Bluetooth MESH network comprise the Bluetooth MESH equipment, wherein the Bluetooth MESH equipment is added into the Bluetooth MESH network through the connection configuration method to become the nodes or is removed from the Bluetooth MESH network through the connection configuration method.
In some implementations, an infrared signal can be sent to the bluetooth MESH device by an external stand-alone device as an infrared signal emitting source (external infrared device); the Bluetooth MESH equipment can be in the original Bluetooth MESH network, namely the working state can be at least an accessed state, and the Bluetooth MESH equipment can also have different working states, such as a relay state and a low power consumption state, according to different roles in the original Bluetooth MESH network; the broadcast state may be referred to herein as a beacon signal broadcast state (beacon), a bluetooth MESH Device in the broadcast state may be a PB-ADV-enabled, initialized, unconfigured Device in an unconfigured state and not in any configuring process, the Device may broadcast an unconfigured beacon signal (upnp Device beacon), a data frame of the beacon signal may generally include a beacon type, a Device UUID (universal Unique Identifier), an OOB (Out of Band) information, and a URI (Uniform Resource Identifier) hash code, and the beacon signal may be scanned by a configurator (e.g., a bluetooth MESH Device Provisioner serving as a configuration node, a node in a bluetooth MESH network, i.e., a bluetooth MESH Device in at least an accessed network state) to be reconfigured.
For example, the infrared receiving unit on the bluetooth MESH device may be a switch triggered by an external infrared signal, and when the infrared signal is kept received, the switch may be kept open or closed to drive and operate the reset terminal of the bluetooth MESH device, and after the operation timing is reached, the bluetooth part of the bluetooth MESH device enters a configurable state or an initialized state (for example, deleting a network configuration file that is stored). Further, for better security, the infrared signal may be a modulated data signal, and demodulating the infrared signal may include conventional processes such as decoding and decryption, and demodulated data of the infrared signal may be obtained after demodulation; the infrared signal interaction between the bluetooth MESH device and the external infrared device may be implemented by establishing a session and transmitting infrared protocol data (e.g., necoprotocol) in the session, and the infrared data frame may include a bootstrap code, a device code, a data code, a cyclic delay, and the like.
As shown in fig. 2, the bluetooth MESH device may have an infrared operating mode in different scenarios. For the passive mode, after receiving the infrared signal in real time, performing a judgment (or verification), where the judgment is to determine whether the bluetooth device address of the bluetooth MESH device is consistent with the bluetooth device address in the demodulated data of the infrared signal, and when the judgment is consistent, performing switching of the working state of the bluetooth MESH device to a broadcast state, where any one bluetooth device address at least has a MAC address (Media Access control address). For the response mode, after handshaking with the external infrared device is successful (session establishment is completed), the external infrared device may encrypt and send information such as bluetooth device address in the session, specifically: sending an infrared feedback signal through the Bluetooth MESH equipment, wherein the Bluetooth MESH equipment is also provided with an infrared transmitting unit; receiving an infrared signal responding to the infrared feedback signal through the infrared receiving unit (the infrared signal can have information such as encrypted Bluetooth equipment address and control signaling conforming to an infrared communication protocol, and the control signaling can be used for triggering switching or resetting); and judging whether the Bluetooth equipment address of the Bluetooth MESH equipment is consistent with the Bluetooth equipment address in the demodulation data of the re-received infrared signal, if so, starting the step of switching the working state of the Bluetooth MESH equipment to the broadcasting state, and if not, returning to the step of receiving the infrared signal through the infrared receiving unit of the Bluetooth MESH equipment. The Bluetooth device address can comprise a MAC address and an address in a Bluetooth MESH network, the address in the Bluetooth MESH network can comprise a unicast address, a virtual address (representing a label name on UUID logic) and a multicast address, the verification can at least be the verification of the MAC address, and the switching state and the distribution network operation can be carried out after the verification is finished.
The infrared signal can be directly directed to one or more Bluetooth MESH devices to be reset; the infrared signal can also point to one or more Bluetooth MESH devices which do not need to be reset, and the demodulated data of the infrared signal is forwarded or relayed to one or more Bluetooth MESH devices which need to be reset by the Bluetooth MESH devices which receive the infrared signal, wherein the infrared signal can be forwarded by an infrared receiving and transmitting unit on each Bluetooth MESH device, and the demodulated data of the infrared signal can also be relayed or forwarded by the Bluetooth MESH devices in the Bluetooth MESH network through the MESH network.
For the infrared signal, there may be one infrared signal, or there may be multiple infrared signals simultaneously or multiple infrared signals sequentially, the infrared signal may be directly directed to one or more bluetooth MESH devices in the original bluetooth MESH network, and according to the difference in working state and the number of bluetooth MESH devices receiving the infrared signal, there may be one or more switching operations (or reset operations, which enable the bluetooth MESH device serving as a node in the original bluetooth MESH network to be removed from the original bluetooth MESH network): switching an accessed node state of the Bluetooth MESH equipment in the original Bluetooth MESH network to a broadcast state, switching a relay node state of the Bluetooth MESH equipment in the original Bluetooth MESH network to the broadcast state, and switching a low-power consumption node state of the Bluetooth MESH equipment in the original Bluetooth MESH network to the broadcast state. The Bluetooth MESH device can be used for non-contact connection configuration in a line of sight, has less pre-configuration requirements on the Bluetooth MESH device, and is simple to implement and low in cost.
As shown in fig. 3, each bluetooth MESH device in the bluetooth MESH network has an infrared transceiver unit IR, and a node ABCDEFHG (continuous letters indicate a plurality of nodes, and a node AB indicates a node a and a node B) is a general node (a single circle of a solid line circle), and the general node may be connected to the bluetooth MESH network through a broadcast bearer layer (ADVbearer) and/or connected to the bluetooth MESH network through a broadcast bearer layer after being relayed, such as a 100-type connection (short dashed double arrow, broadcast mode, non-relay type) and a 101-type connection (solid double arrow, broadcast mode, relay type); node QRS is a relay node (double-circle solid line circle), node IJKLM is a low-power consumption node (single-circle dotted short dashed line circle), node PO is a friend node of the low-power consumption node (double-circle outer thick inner thin solid line circle), node N is a node (single-circle dotted line circle) supporting establishment of a friend connection relation but not having an established friend relation, if node Q is connected through 101 type to provide relay for node ABCDERP, node O is connected through 102 type (long-segment dotted line double arrow) to provide response of polling for node LM, and general node T does not support establishment of a broadcast bearer layer, but can be connected to a bluetooth MESH network through node S through a GATT bearer layer (GATT bearer), if 103 type connection (double-solid line double arrow) is used; if the node K is in the passive infrared communication mode and the node HT is in the response infrared communication mode, the operator 104 may perform infrared communication handshake with the node HT through the external infrared device EID by means of 105-type connection (three solid lines and two arrows), the operator 104 may transmit 106 (single solid line and one arrow) infrared signals to the node K through the external infrared device EID in a unidirectional manner, after verification is completed, the node KHT may be removed from the bluetooth MESH network, and then a redistribution network operation is performed, a network role of the node KHT accessed to the bluetooth MESH network again may change, for example, the node K may no longer have a friendship relationship with the node P, the node K may also no longer be a low-power-consumption node, and the node K may be connected to the bluetooth MESH network through a broadcast bearer layer via a relay of the node P.
For the infrared signal, there may be one infrared signal, or there may be multiple infrared signals simultaneously or sequentially, the infrared signal may point to one or more bluetooth MESH devices in the relay node state in the original bluetooth MESH network, and the demodulated data of the infrared signal is forwarded to the bluetooth MESH device in the relayed node state by the bluetooth MESH device in the relay node state; and switching the accessed node state of the Bluetooth MESH equipment in the state of the relayed node to a broadcast state through the demodulated data. Because the infrared signal is a straight line sight distance transmission signal, the safety is realized, and the Bluetooth MESH equipment which is out of the infrared signal reachable range of the external infrared equipment can be switched and the distribution network operation can be performed by combining the relay node. Here, the method can be used for performing in-line-of-sight and non-in-line-of-sight contactless connection configuration, and the configurable range can extend to the whole coverage range of the bluetooth MESH network.
For forwarding demodulated data, the bluetooth MESH device in the relay node state may first determine whether the demodulated data includes the own bluetooth device address and the bluetooth device address of the general node relayed by itself or the node transmitting data through the GATT bearer layer (both nodes may be in the accessed node state or the relayed state), and if only includes the bluetooth device address of the general node relayed by itself or the node transmitting data through the GATT bearer layer, select to forward the demodulated data, and may send an infrared signal having the demodulated data to the bluetooth MESH device in the accessed node state through the infrared transceiver unit of the bluetooth MESH device in the relay node state, thereby completing the state switching of the bluetooth MESH device at the target node. In addition, the method can also be carried out by a mode of transmitting Bluetooth signals, in this case, the relayed accessed node is not required to be provided with an infrared transmitting and receiving unit, the bluetooth signal with the demodulated data can be transmitted to the bluetooth MESH device in the accessed node state by the bluetooth transceiving unit of the bluetooth MESH device in the relay node state, the bluetooth signal may comprise an acknowledgement message, in particular a confignode Reset, for resetting a node and removing the node from the accessed Bluetooth MESH network, the reset Bluetooth MESH device can feed back a status message responding to the confirmation message to the Bluetooth MESH device in the state of the relay node, since the bluetooth MESH device in the relay node state has communicated with the external infrared device, the infrared receiving and sending unit can be further configured to feed back the status message to the external infrared device; the demodulated data of the infrared signal can be a trigger action to trigger the bluetooth MESH device to send out a defined bluetooth signal, so as to realize a simple conversion, or can be effective data in the infrared signal or plaintext data demodulated (including decoding, decryption and other processes), and the plaintext data is modulated into a bluetooth signal by the control unit, so as to realize a conversion.
As for the infrared signal, there may be one infrared signal, or there may be a plurality of infrared signals simultaneously or in sequence, the infrared signal may point to one or more bluetooth MESH devices in the friendly node state in the original bluetooth MESH network, and poll the friendly bluetooth MESH devices through the bluetooth MESH devices in the low power consumption node state in the original bluetooth MESH network; responding the demodulated data of the infrared signal to the Bluetooth MESH equipment in the low-power-consumption node state through the friend Bluetooth MESH equipment; and switching the low-power consumption node state of the Bluetooth MESH equipment in the low-power consumption node state to a broadcast state through the demodulation data. Here, the method can be used for performing in-line-of-sight and non-in-line-of-sight contactless connection configuration, and the configurable range can extend to the whole coverage range of the bluetooth MESH network.
For completing the switching by demodulating data, the bluetooth MESH device in the Friend node state may first determine whether the demodulated data includes the own bluetooth device address and the bluetooth device address of the low power consumption node which is the Friend node, if only the bluetooth device address of the low power consumption node corresponding to the Friend node is included, and after a certain time, the bluetooth MESH device in the low power consumption node state has already performed polling (Friend Poll), then select to forward the demodulated data (the polled data may be used as a trigger condition, and a message in response to the polling may be unrelated to an infrared signal), and may send an infrared signal with the demodulated data to the bluetooth MESH device in the low power consumption node state through the infrared transceiver unit of the bluetooth MESH device in the Friend node state, thereby completing the state switching of the bluetooth MESH device at the target node, wherein, the bluetooth device address may be an address in a bluetooth MESH network. In addition, the method can also be carried out by a mode of transmitting Bluetooth signals, in this case, an infrared receiving and transmitting unit of the low-power consumption node is not required, the bluetooth signal may be used to respond to polling of the low power node, the bluetooth signal with the demodulated data may be issued to the bluetooth MESH device in the low power node state by the bluetooth transceiving unit of the bluetooth MESH device in the friend node state, the bluetooth signal may comprise an acknowledgement message, in particular a confignode Reset, for resetting a node and removing the node from the accessed bluetooth MESH network, the reset bluetooth MESH device may feed back a status message in response to the acknowledge message to the bluetooth MESH device in the state of the friend node, since the bluetooth MESH device in the friend node state has communicated with the external infrared device, the infrared transceiver unit may be further configured to feed back the status message to an external infrared device.
As shown in fig. 4, it can be defined as in fig. 3, the external infrared device EID of the operator 200 is located outside the line-of-sight range of the node LMGT at this time, the external infrared device EID of the operator 200 can perform infrared communication with the node OS, if a network reconfiguration operation is to be performed on the node L, first, the external infrared device EID of the operator 200 can send data to the node O through a 105-type connection, after polling of the node L, the node O can forward the data to the node L through the 105-type connection or forward the data to the node L through a 102-type connection, for example, a bluetooth MESH device corresponding to the node G cannot establish a normal 101-type connection with the node O due to being in a free state, and may be disconnected from the bluetooth MESH network, at this time, the external infrared device EID of the operator 200 can send data to the node O through the 105-type connection, the node O determines that the node G address exists, optionally, the state of the node G is additionally verified through a bluetooth heartbeat data packet, if the normal feedback of the node G is successfully obtained, after the node O replies to the external infrared device EID, the operation and maintenance person 200 may determine whether to perform the reset, and the node O may not reply, and when the node O does not successfully receive the heartbeat after time out, the node O may directly send an infrared signal to the node G, so that the node G is reset, and the switching operation is completed.
For the bluetooth MESH devices in the bluetooth MESH network, each bluetooth MESH device may be respectively provided with an infrared transceiving unit, at least one bluetooth MESH device may be provided with an infrared transceiving unit, or some bluetooth MESH devices may be provided with infrared transceiving units; for the target bluetooth MESH network, the bluetooth MESH devices performing connection configuration relative to the original bluetooth MESH network are the same bluetooth MESH network, that is, the bluetooth MESH devices needing connection configuration belong to the bluetooth MESH network access configuration again, and the method and the device can be applied to a scene that the bluetooth MESH devices need to be initialized and configured again in a non-contact manner when the bluetooth MESH devices are in the abnormal state free network connection state.
In some scenes, only one bluetooth MESH device in one bluetooth MESH network is provided with an infrared receiving and transmitting unit, infrared communication is carried out between the bluetooth MESH device and external infrared devices, infrared communication data are transmitted in the bluetooth MESH network through bluetooth communication, and the configurable range can be expanded; in some other scenarios, an internal infrared device for processing infrared communication data may be independently arranged within the coverage of the bluetooth MESH network, and a control unit of the internal infrared device may perform any wireless protocol data interaction with a control unit of any bluetooth MESH device in the bluetooth MESH network, but the internal infrared device does not belong to the bluetooth MESH network.
As shown in fig. 5, the definitions of fig. 3 can be extended, each bluetooth MESH device in the bluetooth MESH network can be located within the line of sight (mutual light reachable) of the internal infrared device, because in reality, when performing peer-to-peer infrared communication, the network address and the installation position of the bluetooth MESH device may need to be known, the internal infrared device IID can record the address information and the installation position of the bluetooth MESH device on each node, and then the operation and maintenance person 300 needs to reset any node in the bluetooth MESH network and only needs to perform infrared communication with the internal infrared device IID through the external infrared device EID, thereby realizing convenient and fast non-contact bluetooth MESH device switching and distribution network operation.
The connection configuration between the Bluetooth MESH equipment and the target Bluetooth MESH network is executed, the Bluetooth MESH equipment works depending on the Bluetooth MESH network, and the step of accessing the Bluetooth MESH network is roughly divided into: broadcast (beacon), invite (Invitation), exchange Keys (Exchanging Public Keys), Authentication (Authentication), Distribution of the Provisioning Data, etc. For example, a configurator node (Provisioner) scans whether a beacon signal broadcasting device UUID and OOB information exists, if the beacon signal has OOB information, the OOB information is acquired, the configurator node performs invite and function selection operations through PDU, if the OOB information does not exist, the configurator node directly jumps to the invite and function selection operations, then judges whether a public key in the OOB information is used, if the public key is used, starts to exchange the public key, and performs ECDH (Elliptic Curve Diffie-Hellman key exchange, which is an anonymous key consensus protocol) calculation, if the public key is not used, the ECDH calculation is directly performed, then authentication interaction is performed according to a selected public key authentication method, and after authentication (if the public key is used), the configurator node can acquire PDU containing configuration data including encrypted and authenticated network key, Index, identification, PDU integrity check value, etc.
The infrared signal is a linear line-of-sight transmission signal, can shield a far-end stealing signal in an indoor environment, has certain safety characteristic, and after the infrared signal enters a broadcasting state, the configuration of the Bluetooth MESH equipment depends on a Bluetooth MESH protocol, so that the safety is ensured;
the embodiment of the invention provides a scheme without using physical contact operation, can carry out distribution network operation in a severe environment which cannot contact Bluetooth MESH equipment and under a scene which is inconvenient to contact, is more convenient for the connection configuration of the equipment, and is compatible with a Bluetooth MESH connection technology, while the existing Bluetooth MESH equipment needs to be in contact operation to switch the connection state.
Example 2
The embodiment of the present invention belongs to the same inventive concept as embodiment 1, and the embodiment of the present invention provides a connection configuration system for a bluetooth MESH network, the connection configuration system comprising:
the infrared module is used for receiving infrared signals through an infrared receiving unit of the Bluetooth MESH equipment;
the switching module is used for switching the working state of the Bluetooth MESH equipment to a broadcasting state;
and the Bluetooth module is used for executing the connection configuration of the Bluetooth MESH equipment and the target Bluetooth MESH network.
Optionally, the connection configuration system further includes:
a first judging module, configured to, after the infrared receiving unit of the bluetooth MESH device receives the infrared signal and before the switching of the operating state of the bluetooth MESH device to the broadcast state,
and determining that the Bluetooth device address of the Bluetooth MESH device is consistent with the Bluetooth device address in the demodulated data of the infrared signal, wherein any Bluetooth device address at least has an MAC address.
Optionally, the connection configuration system further includes:
a second judging module, configured to, after the infrared signal is received by the infrared receiving unit of the bluetooth MESH device, and before the operating state of the bluetooth MESH device is switched to the broadcast state,
sending an infrared feedback signal through the Bluetooth MESH equipment, wherein the Bluetooth MESH equipment is also provided with an infrared transmitting unit;
receiving an infrared signal responding to the infrared feedback signal through the infrared receiving unit;
judging whether the Bluetooth device address of the Bluetooth MESH device is consistent with the Bluetooth device address in the demodulation data of the re-received infrared signal,
if yes, starting the step of switching the working state of the Bluetooth MESH equipment to the broadcasting state,
and if not, returning to the step of receiving the infrared signal by the infrared receiving unit of the Bluetooth MESH equipment.
Optionally, the switching module is specifically configured to switch an accessed node state of a bluetooth MESH device in an original bluetooth MESH network to a broadcast state;
the switching module is specifically used for switching the relay node state of the Bluetooth MESH equipment in the original Bluetooth MESH network to a broadcast state;
the switching module is specifically configured to switch a low power consumption node state of the bluetooth MESH device in the original bluetooth MESH network to a broadcast state.
Optionally, the switching module is specifically configured to forward, in the original bluetooth MESH network, the demodulated data of the infrared signal to the bluetooth MESH device in the state of the relayed node through the bluetooth MESH device in the state of the relayed node;
the switching module is specifically configured to switch the accessed node state of the bluetooth MESH device in the relayed node state to a broadcast state through the demodulated data.
Optionally, the switching module is further specifically configured to modulate the demodulated data of the infrared signal into a relay infrared signal through a bluetooth MESH device in a relay node state;
the switching module is further specifically configured to forward the relay infrared signal to the bluetooth MESH device in the relayed node state.
Optionally, the switching module is further specifically configured to convert the demodulated data of the infrared signal into a bluetooth signal through a bluetooth MESH device in a relay node state;
the switching module is further specifically configured to relay the bluetooth signal to the bluetooth MESH device in the relayed node state.
Optionally, the switching module is specifically configured to poll an adjacent bluetooth MESH device through a bluetooth MESH device in a low power consumption node state in an original bluetooth MESH network;
the switching module is specifically configured to respond to the demodulated data of the infrared signal to the bluetooth MESH device in the low power consumption node state through the friend bluetooth MESH device;
the switching module is specifically configured to switch the low power consumption node state of the bluetooth MESH device in the low power consumption node state to a broadcast state through the demodulated data.
Optionally, the bluetooth MESH devices performing connection configuration with respect to the target bluetooth MESH network and the original bluetooth MESH network are the same bluetooth MESH network.
Although the embodiments of the present invention have been described in detail with reference to the accompanying drawings, the embodiments of the present invention are not limited to the details of the above embodiments, and various simple modifications can be made to the technical solutions of the embodiments of the present invention within the technical idea of the embodiments of the present invention, and the simple modifications all belong to the protection scope of the embodiments of the present invention.
It should be noted that the various features described in the above embodiments may be combined in any suitable manner without departing from the scope of the invention. In order to avoid unnecessary repetition, the embodiments of the present invention do not describe every possible combination.
Those skilled in the art will understand that all or part of the steps in the method according to the above embodiments may be implemented by a program, which is stored in a storage medium and includes several instructions to enable a single chip, a chip, or a processor (processor) to execute all or part of the steps in the method according to the embodiments of the present application. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and other various media capable of storing program codes.
In addition, any combination of various different implementation manners of the embodiments of the present invention is also possible, and the embodiments of the present invention should be considered as disclosed in the embodiments of the present invention as long as the combination does not depart from the spirit of the embodiments of the present invention.

Claims (12)

1. A connection configuration method for a Bluetooth MESH network is characterized by comprising the following steps:
receiving an infrared signal through an infrared receiving unit of the Bluetooth MESH equipment;
switching the working state of the Bluetooth MESH equipment to a broadcasting state;
and executing the connection configuration of the Bluetooth MESH equipment and the target Bluetooth MESH network.
2. The method of claim 1, further comprising, after receiving an infrared signal by the infrared receiving unit of the bluetooth MESH device and before switching the operating state of the bluetooth MESH device to a broadcast state:
and determining that the Bluetooth device address of the Bluetooth MESH device is consistent with the Bluetooth device address in the demodulated data of the infrared signal, wherein any Bluetooth device address at least has an MAC address.
3. The method of claim 1, further comprising, after receiving an infrared signal by the infrared receiving unit of the bluetooth MESH device and before switching the operating state of the bluetooth MESH device to a broadcast state:
sending an infrared feedback signal through the Bluetooth MESH equipment, wherein the Bluetooth MESH equipment is also provided with an infrared transmitting unit;
receiving an infrared signal responding to the infrared feedback signal through the infrared receiving unit;
judging whether the Bluetooth device address of the Bluetooth MESH device is consistent with the Bluetooth device address in the demodulation data of the re-received infrared signal,
if yes, starting the step of switching the working state of the Bluetooth MESH equipment to the broadcasting state,
and if not, returning to the step of receiving the infrared signal by the infrared receiving unit of the Bluetooth MESH equipment.
4. The method of claim 1, wherein switching the active state of the bluetooth MESH device to a broadcast state comprises at least one of:
switching the accessed node state of the Bluetooth MESH equipment in the original Bluetooth MESH network to a broadcast state;
switching the relay node state of the Bluetooth MESH equipment in the original Bluetooth MESH network to a broadcast state;
and switching the low-power consumption node state of the Bluetooth MESH equipment in the original Bluetooth MESH network to a broadcast state.
5. The method of claim 1, wherein switching the active state of the bluetooth MESH device to a broadcast state comprises:
forwarding the demodulated data of the infrared signal to the Bluetooth MESH equipment in the state of a relayed node in the original Bluetooth MESH network through the Bluetooth MESH equipment in the state of the relayed node;
and switching the accessed node state of the Bluetooth MESH equipment in the state of the relayed node to a broadcast state through the demodulated data.
6. The connection configuration method for the bluetooth MESH network according to claim 5, wherein the forwarding the demodulated data of the infrared signal to the bluetooth MESH device in the relayed node state through the bluetooth MESH device in the relay node state in the original bluetooth MESH network comprises:
modulating the demodulated data of the infrared signal into a relay infrared signal through the Bluetooth MESH equipment in the relay node state;
and forwarding the relay infrared signal to the Bluetooth MESH equipment in the state of the relayed node.
7. The connection configuration method for the bluetooth MESH network according to claim 5, wherein the forwarding the demodulated data of the infrared signal to the bluetooth MESH device in the relayed node state through the bluetooth MESH device in the relay node state in the original bluetooth MESH network comprises:
converting the demodulated data of the infrared signal into a Bluetooth signal through the Bluetooth MESH equipment in the relay node state;
and relaying the Bluetooth signal to the Bluetooth MESH equipment in the state of the relayed node.
8. The method of claim 1, wherein switching the active state of the bluetooth MESH device to a broadcast state comprises:
polling friend Bluetooth MESH equipment in an original Bluetooth MESH network through Bluetooth MESH equipment in a low-power-consumption node state;
responding the demodulated data of the infrared signal to the Bluetooth MESH equipment in the low-power-consumption node state through the friend Bluetooth MESH equipment;
and switching the low-power consumption node state of the Bluetooth MESH equipment in the low-power consumption node state to a broadcast state through the demodulation data.
9. The connection configuration method for Bluetooth MESH networks according to any of claims 4 to 8, wherein said performing the connection configuration of the Bluetooth MESH device with a target Bluetooth MESH network, wherein,
the target Bluetooth MESH network and the original Bluetooth MESH network relatively execute the connection configuration of the Bluetooth MESH devices and are the same Bluetooth MESH network.
10. A connection configuration system for a bluetooth MESH network, the connection configuration system comprising:
the infrared module is used for receiving infrared signals through an infrared receiving unit of the Bluetooth MESH equipment;
the switching module is used for switching the working state of the Bluetooth MESH equipment to a broadcasting state;
and the Bluetooth module is used for executing the connection configuration of the Bluetooth MESH equipment and the target Bluetooth MESH network.
11. An electronic device, comprising:
at least one processor;
a memory coupled to the at least one processor;
wherein the memory stores instructions executable by the at least one processor, the at least one processor implementing the method of any one of claims 1 to 9 by executing the instructions stored by the memory.
12. A computer readable storage medium storing computer instructions which, when executed on a computer, cause the computer to perform the method of any one of claims 1 to 9.
CN202010514984.0A 2020-06-08 2020-06-08 Connection configuration method and system for Bluetooth MESH network, electronic equipment and storage medium Active CN111556588B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010514984.0A CN111556588B (en) 2020-06-08 2020-06-08 Connection configuration method and system for Bluetooth MESH network, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010514984.0A CN111556588B (en) 2020-06-08 2020-06-08 Connection configuration method and system for Bluetooth MESH network, electronic equipment and storage medium

Publications (2)

Publication Number Publication Date
CN111556588A true CN111556588A (en) 2020-08-18
CN111556588B CN111556588B (en) 2022-01-14

Family

ID=72008750

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010514984.0A Active CN111556588B (en) 2020-06-08 2020-06-08 Connection configuration method and system for Bluetooth MESH network, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN111556588B (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112433480A (en) * 2020-12-23 2021-03-02 博流智能科技(南京)有限公司 Intelligent household system and control method and device thereof
CN115499946A (en) * 2022-11-15 2022-12-20 成都爱旗科技有限公司 Distribution network control method and system based on BLE MESH and electronic equipment

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20160127153A1 (en) * 2014-10-31 2016-05-05 Qualcomm Incorporated Channel estimation enhancements
CN106331812A (en) * 2016-09-20 2017-01-11 深圳创维数字技术有限公司 Bluetooth pairing method and Bluetooth pairing device
CN106788617A (en) * 2016-04-01 2017-05-31 深圳蓝奥声科技有限公司 Smart bluetooth beacon socket
CN109922465A (en) * 2019-01-28 2019-06-21 展讯半导体(成都)有限公司 Network collocating method and device

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20160127153A1 (en) * 2014-10-31 2016-05-05 Qualcomm Incorporated Channel estimation enhancements
CN106788617A (en) * 2016-04-01 2017-05-31 深圳蓝奥声科技有限公司 Smart bluetooth beacon socket
CN106331812A (en) * 2016-09-20 2017-01-11 深圳创维数字技术有限公司 Bluetooth pairing method and Bluetooth pairing device
CN109922465A (en) * 2019-01-28 2019-06-21 展讯半导体(成都)有限公司 Network collocating method and device

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112433480A (en) * 2020-12-23 2021-03-02 博流智能科技(南京)有限公司 Intelligent household system and control method and device thereof
CN115499946A (en) * 2022-11-15 2022-12-20 成都爱旗科技有限公司 Distribution network control method and system based on BLE MESH and electronic equipment

Also Published As

Publication number Publication date
CN111556588B (en) 2022-01-14

Similar Documents

Publication Publication Date Title
US9654907B2 (en) System, method and apparatus for wireless network connection using near field communication
US11979274B2 (en) Network management method and apparatus
US10951429B2 (en) Server initiated remote device registration
US9154935B2 (en) Wireless home mesh network bridging adaptor
US20190156040A1 (en) Bootstrapping without transferring private key
EP3069545B1 (en) Methods and devices for bootstrapping of resource constrained devices
CN105379190A (en) System and method for indicating service set identifier
US20150245161A1 (en) Method and System for Communication Between Machine to Machine M2M Service Provider Networks
Afaneh Intro to Bluetooth low energy
EP2993933B1 (en) Wireless terminal configuration method, apparatus and wireless terminal
WO2022067841A1 (en) Secure communication method, apparatus and system
CN111556588B (en) Connection configuration method and system for Bluetooth MESH network, electronic equipment and storage medium
CN109327823B (en) Networking method, device and system, ZigBee equipment and storage medium
US20230164666A1 (en) System and methods for topology-aware configuration distribution
EP4008118A1 (en) Secure path discovery in a mesh network
WO2024083235A1 (en) Network configuration method based on wi-fi sensing, embedded chip system, and medium
US11343744B2 (en) Method for managing handover roaming
CN115622833B (en) Device management method, system, device and medium for cross-terminal communication based on bus
TWI796819B (en) Handling application functions for key management in communication device-network relay scenarios
US11606199B2 (en) Management of groups of connected objects using wireless communication protocols
KR20210077154A (en) Method for trnasmitting multicasting message on lora network
JP2021022830A (en) Communication apparatus, communication system, communication method, and program
CN114340037B (en) Communication method, system, equipment and medium between LoRaWAN (Long-Range Wide area network) equipment
WO2022206808A1 (en) Relay communication method and device
CN114390517B (en) Wi-sun network-based access encryption verification method and device and electronic equipment

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
GR01 Patent grant
GR01 Patent grant