Disclosure of Invention
The invention aims to solve the problems that the application mode of BLE Beacon in the prior art is simple and the application scene is limited, and provides a novel node combination method.
The technical scheme of the invention is as follows: a combination method of a Beacon device and a SIG Mesh network, wherein the SIG Mesh network is provided with a plurality of SIG Mesh nodes, and the combination method comprises the following steps: the Beacon device broadcasts the MAC address of the node, the encryption authentication mode and the static private key to the SIG Mesh node; the SIG Mesh node repackages the MAC address of the Beacon device, the encryption authentication mode and the static private key according to a message format defined by the SIG Mesh network and sends the repackaged message to the gateway; the Beacon device broadcasts self detailed information to the SIG Mesh node; the SIG Mesh node repackages the detailed information of the Beacon equipment according to a message format defined by the SIG Mesh network and sends the repackaged information to the gateway; the Beacon device broadcasts self action state information to the SIG Mesh node; and after the SIG Mesh node receives the action state information of the beacon device, repackaging the data according to a message format defined by the SIG Mesh network, then pushing the repackaged data into the SIG Mesh network, and sending the repackaged data to the gateway.
Further, the detailed information of the Beacon device at least includes one of the following information: class code, sku code, software version information.
Further, the method for repackaging the detailed information of the Beacon device by the SIG Mesh node according to the message format defined by the SIG Mesh network and sending the repackaged information to the gateway includes the following steps: and the SIG Mesh node repackages the MAC address and the detailed information of the Beacon device according to a message format defined by the SIG Mesh network and sends the repackaged MAC address and the detailed information to the gateway.
Further, after receiving the action state information of the beacon device, the SIG Mesh node repackages the data according to a message format defined by the SIG Mesh network, including: and after the SIG Mesh node receives the action state information of the beacon device, repackaging the data of the MAC address and the action state information of the beacon device according to the message format defined by the SIG Mesh network.
Further, the action state information at least includes one of the following information: noise data, temperature and humidity data, and acceleration sensor movement direction.
Further, before the Beacon device broadcasts the action state information of the Beacon device to the SIG Mesh node, the Beacon device receives a learning completion confirmation message sent by the SIG Mesh node.
Further, the precondition that the Beacon device receives the learning completion confirmation message sent by the SIG Mesh node is that the Beacon device has the capability of receiving the broadcast packet.
The second technical scheme of the invention is as follows: a Beacon device comprising: the system comprises a first sending module, a second sending module and a third sending module; the first sending module is used for broadcasting the MAC address of the node, an encryption authentication mode (ENC mode) and a static private key (private key) of the node to the outside; the second sending module is used for sending the detailed information of the Beacon equipment to the SIG Mesh node in a broadcasting mode; and the third sending module is used for sending the action state information to the SIG Mesh node in a broadcasting mode.
Further, the Beacon device further comprises a receiving module; the receiving module is configured to receive a learning completion confirmation message sent by the SIG Mesh node.
Further, the detailed information of the Beacon device at least includes one of the following information: class code, sku code, software version information.
Further, the action state information at least includes one of the following information: noise data, temperature and humidity data, and acceleration sensor movement direction.
The third technical scheme of the invention is as follows: a SIG Mesh node, comprising: the device comprises a first receiving module, a second receiving module, a third receiving module, a first sending module, a second sending module and a third sending module; the first receiving module is used for receiving the MAC address of the node broadcasted by beacon equipment to the outside, the encryption authentication mode and the static private key in the learning state; and send the above-mentioned information received to the first sending module; the first sending module is used for packaging the received MAC address, the encryption authentication mode and the static private key of the Beacon equipment according to the SIG Mesh format and sending the information to the gateway through the SIG Mesh network; the second receiving module is used for receiving the detailed information broadcast by the Beacon equipment to the outside and sending the detailed information to the second sending module; the second sending module is used for packaging the detailed information of the Beacon equipment according to a SIG Mesh format and sending the detailed information to the gateway through the SIG Mesh network; the third receiving module is used for receiving the action state information sent by the Beacon equipment and sending the action state information to the third sending module; and the third sending module is used for repackaging the received action state information according to the message format defined by the SIG Mesh network, and then sending the repackaged data to the gateway through the SIG Mesh network.
Further, the encapsulating the detailed information of the Beacon device according to the SIG Mesh format and sending the information to the gateway through the SIG Mesh network includes: and encapsulating the MAC address of the Beacon equipment and the detailed information together according to the SIG Mesh format, and sending the MAC address and the detailed information to a gateway through the SIG Mesh network.
Further, the repackaging the received action state information according to the message format defined by the SIG Mesh network, and then sending the repackaged action state information to the gateway through the SIG Mesh network includes: and repackaging the received action state information and the MAC address of the Beacon device according to the message format defined by the SIG Mesh network, and then sending the repackaged data to the gateway through the SIG Mesh network.
Further, the SIG Mesh node further includes a fourth sending module; and the fourth sending module is used for sending a learning completion confirmation message to the Beacon equipment.
The technical scheme of the invention is as follows: a network combination system includes the aforementioned at least one Beacon device and the aforementioned at least one SIG Mesh node.
The beneficial effects of the invention are as follows: according to the method for combining the BLE Beacon device and the SIG Mesh network, the Beacon device can be integrated into the SIG Mesh network, the advantages of the Beacon device are fully exerted, and the Beacon device is wider in application range by applying the SIG Mesh in richer home scenes. In addition, the combination method does not need to change Beacon equipment and SIG Mesh nodes, and more convenient use experience is realized.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention clearer, the present invention will be described in further detail with reference to the accompanying drawings, and it is apparent that the described embodiments are only a part of the embodiments of the present invention, not all of the embodiments. All other embodiments, which can be obtained by a person skilled in the art without making any creative effort based on the embodiments in the present invention, belong to the protection scope of the present invention.
The invention will be further explained with reference to the drawings.
Example one
Fig. 1 is a schematic diagram of a system in which a BLE Beacon device and a SIG Mesh network are combined, which is preferred in the embodiment of the present invention, and as shown in fig. 1, an oval dashed-line frame is anSIG Mesh network 11, a plurality of SIGMesh network nodes 12 exist in theSIG Mesh network 11, each SIGMesh network node 12 is respectively connected to and communicates with SIG Mesh network nodes around it in a bidirectional manner, so as to form the SIG Mesh network, and a part of the SIGMesh network nodes 12 are connected to ahome gateway 14 and communicate with anetwork cloud 15 through thehome gateway 14.
One or moreBLE Beacon nodes 13 exist outside theSIG Mesh network 11, under the current BLE GATT protocol, connection between a central node and peripheral nodes in the BLEBeacon nodes 13 can only be realized, the BLEBeacon nodes 13 in the invention can be connected to the SIGMesh network nodes 12 in theSIG Mesh network 11, and the SIGMesh network nodes 12 are used as proxy nodes and are communicated with other SIG Mesh network nodes, so that the BLE Beacon nodes are integrated into the SIG Mesh network, the advantages of Beacon equipment are fully played, and richer home scene application is realized.
Example two
Fig. 2 is a schematic diagram of a preferred method for combining a BLE Beacon device and a SIG Mesh network in the embodiment of the present invention, and as shown in fig. 2, a specific flow of the method for combining the BLE Beacon device and the SIG Mesh network is as follows:
and step S21, the Beacon device broadcasts the MAC address of the node, the encryption authentication mode (ENC mode) and the static private key to the outside, so that the Beacon device is received by the SIG Mesh node, and the SIG Mesh node can be used as a proxy node of the Beacon device.
Step S22, the SIG Mesh proxy node packages the received MAC address of the Beacon device, the encryption authentication mode and the static private key according to the SIG Mesh format and sends the packaged MAC address, the encryption authentication mode and the static private key to a gateway through the SIG Mesh network; and the gateway sends the information to the network cloud equipment to realize the registration of the Beacon equipment at the network cloud.
The MAC address of the Beacon equipment is used for network cloud id application of the Beacon equipment, the Beacon equipment is guaranteed to have a unique identifier at the network cloud end, and the network cloud id corresponds to the MAC address of the Beacon equipment one to one. In addition, the encryption authentication mode of the Beacon device and the static private key are used for analyzing the data payload of the Beacon packet of the Beacon device or authenticating whether the message sent by the Beacon device is legal or not.
In step S23, the Beacon device broadcasts the detailed information of the product to the SIG Mesh proxy node.
Step S24, the SIG Mesh proxy node receives the detailed information of the Beacon device, packages the detailed information and the MAC address of the Beacon device according to the SIG Mesh format, and sends the information to the gateway through the SIG Mesh network; and the gateway sends the information to the network cloud equipment, so that the network cloud equipment acquires the detailed information of the Beacon equipment. And finishing the learning process of the Beacon equipment.
The detailed information includes the product class/sku code, software version information, and the like. The class code/sku code respectively represents the class and the specific batch number of the Beacon device and is used for the cloud device to identify the triggering capability and the configuration capability of the Beacon device. And the software version information is used for the function tracking of the Beacon equipment by the cloud equipment.
In step S25, when the Beacon device has a state change or a function defined by the device itself operates, such as noise data, temperature and humidity data, and the moving direction of the acceleration sensor, the operation state information is broadcasted to the SIG Mesh proxy node.
And step S26, after the SIG Mesh proxy node receives the action state information of the Beacon device, repackaging the data of the MAC address and the action state information of the Beacon device according to the message format defined by the SIG Mesh network, then pushing the repackaged data into the SIG Mesh network, and transmitting the repackaged data to a network cloud end through a gateway.
Through the steps, the beacon device can be integrated into the SIG Mesh network, the SIG Mesh node is used as a proxy node of the beacon device, the beacon device is used as an extension node of the SIG Mesh network, the beacon device becomes a point of the Internet of things, and the action state information of the beacon device can be sent to the background device at the cloud end of the network for processing.
EXAMPLE III
Fig. 3 is a schematic diagram of a method for combining a BLE Beacon device and a SIG Mesh network, which includes a confirmation process and is preferred in the embodiment of the present invention, as shown in fig. 3, a specific process of the method for combining a BLE Beacon device and a SIG Mesh network, which includes a confirmation process, is as follows:
and step S31, the Beacon device broadcasts the MAC address of the node, the encryption authentication mode (ENC mode) and the static private key to the outside, so that the Beacon device is received by the SIG Mesh node, and the SIG Mesh node can be used as a proxy node of the Beacon device.
Step S32, the SIG Mesh proxy node packages the received MAC address of the Beacon device, the encryption authentication mode and the static private key according to the SIG Mesh format and sends the packaged MAC address, the encryption authentication mode and the static private key to a gateway through the SIG Mesh network; and the gateway sends the information to the network cloud equipment to realize the registration of the Beacon equipment at the network cloud.
The MAC address of the Beacon equipment is used for network cloud id application of the Beacon equipment, the Beacon equipment is guaranteed to have a unique identifier at the network cloud end, and the network cloud id corresponds to the MAC address of the Beacon equipment one to one. In addition, the encryption authentication mode of the Beacon device and the static private key are used for analyzing the data payload of the Beacon packet of the Beacon device or authenticating whether the message sent by the Beacon device is legal or not.
In step S33, the Beacon device broadcasts the detailed information of the product to the SIG Mesh proxy node.
Step S34, the SIG Mesh proxy node receives the detailed information of the Beacon device, packages the detailed information and the MAC address of the Beacon device according to the SIG Mesh format, and sends the information to the gateway through the SIG Mesh network; and the gateway sends the information to the network cloud equipment, so that the network cloud equipment acquires the detailed information of the Beacon equipment. And finishing the learning process of the Beacon equipment.
The detailed information includes a class/sku code product, software version information, and the like. The class code/sku code respectively represents the category and the specific batch number of the Beacon device and is used for the cloud device to identify the triggering capability and the configuration capability of the Beacon device. And the software version information is used for the function tracking of the Beacon equipment by the cloud equipment.
In step S35, the Beacon device receives the learning completion confirmation message sent by the SIG Mesh proxy node. The precondition that the Beacon device receives the learning completion confirmation message is that the Beacon device has a learning interaction window, has the capability of receiving the broadcast message, and can perform learning completion confirmation.
In step S36, when the Beacon device has a state change or a function action defined by the device itself, such as temperature and humidity data, a moving direction of the acceleration sensor, etc., the action state information is broadcasted to the SIG Mesh proxy node.
Step S37, after the SIG Mesh proxy node receives the action state information of the Beacon device, repackaging the MAC address and the action state information of the Beacon device into data according to the message format defined by the SIG Mesh network, then pushing the data into the SIG Mesh network, and transmitting the data to the network cloud end through the gateway.
Through the steps, the beacon device can be integrated into the SIG Mesh network, the SIG Mesh node is used as a proxy node of the beacon device, the beacon device is used as an extension node of the SIG Mesh network, the beacon device becomes a point of the Internet of things, and the action state information of the beacon device can be sent to the background device to be processed. Compared with the combination method in the second embodiment, the steps in this embodiment can receive the learning completion confirmation message of the SIG Mesh node, and avoid that beacon devices blindly send messages under the condition that the state of the SIG Mesh node is unknown.
Example four
Fig. 4 is a schematic structural diagram of a Beacon device according to an embodiment of the present invention, and as shown in fig. 4, the Beacon device includes a first sending module 41, a second sending module 42, a receiving module 43, and a third sending module 44.
The first sending module 41 is configured to broadcast the MAC address of the self node, the encryption authentication mode ENC mode, and the static private key to the outside in the learning state, so that the MAC address, the encryption authentication mode ENC mode, and the static private key are received by the SIG Mesh node, and the SIG Mesh node may serve as a proxy node of the beacon device.
The MAC address of the Beacon equipment is used for network cloud id application of the Beacon equipment, the Beacon equipment is guaranteed to have a unique identifier at the network cloud end, and the network cloud id corresponds to the MAC address of the Beacon equipment one to one. In addition, the encryption authentication mode of the Beacon device and the static private key are used for analyzing the data payload of the Beacon packet of the Beacon device or authenticating whether the message sent by the Beacon device is legal or not.
And a second sending module 42, configured to send detailed information of the Beacon device, including a product class/sku code, software version information, and the like, to the SIG Mesh proxy node in a broadcast manner.
The class code/sku code respectively represents the class and the specific batch number of the Beacon device and is used for the cloud device to identify the triggering capability and the configuration capability of the Beacon device. And the software version information is used for the function tracking of the Beacon equipment by the cloud equipment.
A receiving module 43, configured to receive a learning completion confirmation message sent by the SIG Mesh node. The receiving module 43 is an optional module, and when the beacon device has the capability of receiving the broadcast message in the learning interactive window and can confirm the completion of learning, the receiving module 43 is arranged in the beacon device; if the beacon device does not have the capability of receiving the broadcast message, the receiving module 43 is not provided in the beacon device.
And a third sending module 44, configured to send the action state information. The Beacon device has information of state change or function actions defined by the device, such as temperature and humidity data, the moving direction of an acceleration sensor and the like, and the action state information of the Beacon device is sent to the SIG Mesh proxy node in a broadcasting mode.
EXAMPLE five
Fig. 5 is a schematic structural diagram of a SIG Mesh node according to an embodiment of the present invention, and as shown in fig. 5, the SIG Mesh node includes a first receiving module 51, a second receiving module 52, a fourth sending module 53, a third receiving module 54, a first sending module 55, a second sending module 56, and a third sending module 57.
The first receiving module 51 is configured to receive, in a learning state, an MAC address of a node broadcasted by beacon equipment to the outside, an encryption authentication manner, and a static private key; and transmits the above information to the first transmission module 55.
The MAC address of the Beacon equipment is used for network cloud id application of the Beacon equipment, unique identification of the Beacon equipment at a network cloud end is guaranteed, and the network cloud id corresponds to the MAC address of the Beacon equipment one to one. In addition, the encryption authentication mode of the Beacon device and the static private key are used for analyzing the data payload of the Beacon packet of the Beacon device or authenticating whether the message sent by the Beacon device is legal or not.
The first sending module 55 is configured to encapsulate the received MAC address, the encryption authentication mode, and the static private key of the Beacon device in the SIG Mesh format, and send the result to the gateway through the SIG Mesh network; and the gateway sends the information to the network cloud equipment to realize the registration of the Beacon equipment at the network cloud.
The second receiving module 52 is configured to receive detailed information of an externally broadcast product of the Beacon device, where the detailed information includes a class/sku code of the product, software version information, and the like. The second receiving module 52 sends the detail information of the Beacon device to the second sending module 56.
The class code/sku code respectively represents the class and the specific batch number of the Beacon device and is used for the cloud device to identify the triggering capability and the configuration capability of the Beacon device. And the software version information is used for the function tracking of the Beacon equipment by the cloud equipment.
The second sending module 56 is configured to package the detailed information and the MAC address of the Beacon device in a SIG Mesh format, and send the information and the MAC address to the gateway through the SIG Mesh network; and the gateway sends the information to the network cloud equipment, so that the network cloud equipment acquires the detailed information of the Beacon equipment.
And a fourth sending module 53, configured to send a learning completion confirmation message to the Beacon device. The fourth sending module 53 is an optional module, if the Beacon device has the capability of receiving the broadcast message, the fourth sending module 53 is useful, and if the Beacon device does not have the capability of receiving the broadcast message, even if the SIG Mesh node sends a learning completion confirmation message to the Beacon device through the fourth sending module 53, the Beacon device cannot receive the learning completion confirmation message. Preferably, in the learning process, the Beacon device carries an instruction of whether to receive the confirmation message in a message sent to the SIG Mesh node, and the SIG Mesh node determines whether to send the confirmation message according to the carried instruction of whether to receive the confirmation message.
And a third receiving module 54, configured to receive the action state information sent by the Beacon device. The Beacon device has information of state change or functional actions defined by the device, such as temperature and humidity data, moving direction of an acceleration sensor and the like, and the information of the action states is contained in an external broadcast message. The third receiving module 54 sends the received motion state information of the Beacon device to the third sending module 57.
And a third sending module 57, configured to repackage the received action state information and the MAC address of the Beacon device according to a message format defined by the SIG Mesh network, then push the repackaged data to the SIG Mesh network, and send the repackaged data to the network cloud through the gateway for background analysis processing.
While preferred embodiments of the present invention have been described, additional variations and modifications in those embodiments may occur to those skilled in the art once they learn of the basic inventive concepts. Therefore, it is intended that the appended claims be interpreted as including preferred embodiments and all such alterations and modifications as fall within the scope of the invention.
It will be apparent to those skilled in the art that various changes and modifications may be made in the present invention without departing from the spirit and scope of the invention. Thus, if such modifications and variations of the present invention fall within the scope of the claims of the present invention and their equivalents, the present invention is also intended to include such modifications and variations.