CN110868707A - BLE MESH-based intelligent device network distribution method - Google Patents
BLE MESH-based intelligent device network distribution method Download PDFInfo
- Publication number
- CN110868707A CN110868707A CN201910935168.4A CN201910935168A CN110868707A CN 110868707 A CN110868707 A CN 110868707A CN 201910935168 A CN201910935168 A CN 201910935168A CN 110868707 A CN110868707 A CN 110868707A
- Authority
- CN
- China
- Prior art keywords
- network
- distribution
- equipment
- return value
- ble mesh
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
- 238000000034 method Methods 0.000 title claims abstract description 25
- 238000012795 verification Methods 0.000 claims description 3
- 238000004891 communication Methods 0.000 description 4
- 238000013461 design Methods 0.000 description 2
- 230000007547 defect Effects 0.000 description 1
- 239000003999 initiator Substances 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 238000012544 monitoring process Methods 0.000 description 1
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W4/00—Services specially adapted for wireless communication networks; Facilities therefor
- H04W4/80—Services using short range communication, e.g. near-field communication [NFC], radio-frequency identification [RFID] or low energy communication
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W24/00—Supervisory, monitoring or testing arrangements
- H04W24/02—Arrangements for optimising operational condition
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W24/00—Supervisory, monitoring or testing arrangements
- H04W24/04—Arrangements for maintaining operational condition
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W48/00—Access restriction; Network selection; Access point selection
- H04W48/08—Access restriction or access information delivery, e.g. discovery data delivery
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W48/00—Access restriction; Network selection; Access point selection
- H04W48/16—Discovering, processing access restriction or access information
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Computer Security & Cryptography (AREA)
- Mobile Radio Communication Systems (AREA)
Abstract
A BLE MESH-based intelligent device network distribution method comprises the following steps: 1) the device sends out a beacon without a distribution network; 2) the network distribution person scans the beacon of the device without the network distribution through Bluetooth and selects the device to carry out network distribution; 3) setting the node role of the equipment by the network distributor, sending a first network key and request DCD data to the equipment, restarting the equipment if the return value is wrong, returning to the step 2), and entering the step 4 if the return value is correct); 4) the network distributor sends a second network key to the equipment, binds the second network key with the acquired DCD data, restarts the equipment if the return value is wrong, returns to the step 2), and enters the step 5 if the return value is correct); 5) the distribution network user sets a subscription address and a release address of a node role; 6) and finishing the distribution network. According to the method, when the equipment fails in the process of distribution, the equipment is restarted, manual operation is not needed, the state of the distribution network can be automatically recovered, and complicated operation is omitted.
Description
Technical Field
The invention relates to the field of smart homes, in particular to a BLE MESH-based intelligent device network distribution method.
Background
The distribution network is that equipment is added into a network, the equipment needs to obtain network parameter information such as a network key, an application key, a message issuing and receiving address, network security data and the like, and the distribution network fails when one link fails.
In the traditional BLE Mesh network distribution mode, in the process of network distribution, due to the factors such as poor network signals and external interference, network distribution failure is caused, a person to be distributed with the network cannot continuously send a beacon data packet waiting for network distribution, a network distribution initiator (such as an APP) needs to re-network equipment after the network distribution failure, manual physical reset needs to be carried out on the equipment, such as five times of switching, a physical reset button is pressed for a long time, and the like, and the operation is inconvenient; in many cases, for example, in a household lighting environment, dozens of bulbs or lamps are in the same physical switch, and if a physical reset operation is performed, all the lamps can be reset at the same time, which causes great inconvenience.
Disclosure of Invention
The invention mainly aims to overcome the defects in the prior art and provides a BLE MESH-based intelligent equipment network distribution method which can automatically reset the network distribution failure.
The invention adopts the following technical scheme:
a BLE MESH-based intelligent device network distribution method is characterized by comprising the following steps:
1) the device sends out a beacon without a distribution network;
2) the network distribution person scans the beacon of the device without the network distribution through Bluetooth and selects the device to carry out network distribution;
3) setting the node role of the equipment by the network distributor, sending a first network key and request DCD data to the equipment, restarting the equipment if the return value is wrong, returning to the step 2), and entering the step 4 if the return value is correct);
4) the network distributor sends a second network key to the equipment, binds the second network key with the acquired DCD data, restarts the equipment if the return value is wrong, returns to the step 2), and enters the step 5 if the return value is correct);
5) the network distributor sets a subscription address and a release address of a node role and sends the subscription address and the release address to the equipment;
6) and finishing the distribution network.
Preferably, the non-network-distribution beacon includes a UUID, a device name, and a mac address.
Preferably, the DCD data includes a list of models.
Preferably, the node role comprises a light bulb or a gateway or a switch or a sensor or a remote controller.
Preferably, the return value error includes a timeout error, a resolution error, or a check error.
Preferably, the restarting device is specifically configured to send a restarting instruction to the device by the network distributor in a GATT manner.
Preferably, the network distributor sends the first network key to the device in a GATT manner.
Preferably, after restarting the device, the device saves the reason for the failure of the distribution network.
As can be seen from the above description of the present invention, compared with the prior art, the present invention has the following advantages:
1. according to the method, after the distribution network failure occurs in the distribution network process of the equipment to be distributed, the equipment is restarted without manual operation again, the equipment can be automatically recovered to the distribution network state, and complicated and tedious operations can be omitted.
2. According to the method, if the plurality of BLE devices wait for the distribution network together, the distribution network target can be accurately selected, the operation is simple, and the distribution network success rate is effectively improved.
3. The method of the invention can be applied to various intelligent devices, including bulbs, gateways, switches, sensors, remote controllers and the like.
Drawings
FIG. 1 is a flow chart of the present invention.
Detailed Description
The invention is further described below by means of specific embodiments.
Referring to fig. 1, a BLE MESH-based intelligent device network distribution method is used for adding a device to a network, where the device may be a bulb, a gateway, a switch, a sensor, a remote controller, or the like, and the intelligent device has a communication module, and the communication module is a bluetooth module, and may be a WIFI module, a ZigBee module, or other common communication modules as needed. The distribution network (provision) of the invention can be an intelligent terminal or a monitoring terminal, and the like, and also has a communication module, for example, the intelligent terminal is a mobile phone, an IPAD, and the like.
The method of the invention comprises the following steps:
1) the device sends out a beacon without a network distribution. Specifically, when the device is powered on, and is in the non-distribution network mode, a non-distribution network beacon (beacon) is sent out, where the non-distribution network beacon includes basic information of the device, such as, but not limited to, a UUID, a device name, and a mac address.
2) The network distribution person scans the beacon of the device without the network distribution through the Bluetooth, and the user selects the device to carry out network distribution.
3) And the distribution network user sets the node role of the equipment, sends the first network key and the request DCD data to the equipment, restarts the equipment if the return value is wrong, returns to the step 2), and enters the step 4) if the return value is correct.
Specifically, the node role includes, but is not limited to, a light bulb, a gateway, a switch, a sensor, a remote controller, and the like. The distribution network person sends a first network key (netkey) to the device by means of the GATT, and the first network key is used for encrypting the network. The distribution network operator also requests the DCD data from the device to obtain a model list, which is a list of functions of the device, such as, but not limited to, dimming, switching, etc.
The distribution network user also receives a return value after sending the information, and if the return value is wrong, such as a timeout error, an analysis error or a verification error, the distribution network user sends a restart instruction to the equipment through the GATT so as to restart the equipment, and then, the step 2) is returned. And if the return value is correct, entering the next step. The restart instruction of the present invention may be a custom restart instruction, but is not limited thereto.
4) And the network distributor sends a second network key to the equipment, binds the second network key with the acquired DCD data, restarts the equipment if the return value is wrong, and returns to the step 2), wherein the equipment can store the reason of the failure of the distribution network. And when the return value is correct, entering the step 5).
Specifically, the network distributor may send a second network KEY (proxy KEY) to the device by way of GATT, where the second network KEY is also used to encrypt the network, which is used as a second layer encryption of the network. The first network key and the second network key of the present invention may be two keys defined by sig mesh protocol, which are both a series of ciphertext keys used for encrypting different layers, but are not limited thereto. The distribution network further binds the second network key to the obtained model list. In this step, after the distribution network user sends the information, the distribution network user also receives a return value, and if the return value is wrong, such as a timeout error, an analysis error, a verification error, or the like, but not limited thereto, the distribution network user sends a restart instruction to the device through the GATT to restart the device, and returns to step 2), and the device stores the reason for the distribution network failure. And if the return value is correct, entering the next step.
5) And the distribution network user sets the subscription address and the release address of the node role and sends the subscription address and the release address to the equipment. The subscription address and the distribution address are the message publishing address, the message receiving address and the like.
6) And when the distribution network is successful, the equipment receives information including a first network key, a second network key, a subscription address, a release address and the like, namely successfully joins the network, and completes the distribution network.
By adopting the method, after the distribution network failure occurs in the distribution network process, the equipment of the distributed network does not need to be manually operated again, can automatically recover to the state of the distribution network, and can save complex operation. If a plurality of BLE equipment wait for when joining in marriage the net together, can accurate selection join in marriage net target, the operation is succinct, effectively improves and joins in marriage net success rate.
The above description is only an embodiment of the present invention, but the design concept of the present invention is not limited thereto, and any insubstantial modifications made by using the design concept should fall within the scope of infringing the present invention.
Claims (8)
1. A BLE MESH-based intelligent device network distribution method is characterized by comprising the following steps:
1) the device sends out a beacon without a distribution network;
2) the network distribution person scans the beacon of the device without the network distribution through Bluetooth and selects the device to carry out network distribution;
3) setting the node role of the equipment by the network distributor, sending a first network key and request DCD data to the equipment, restarting the equipment if the return value is wrong, returning to the step 2), and entering the step 4 if the return value is correct);
4) the network distributor sends a second network key to the equipment, binds the second network key with the acquired DCD data, restarts the equipment if the return value is wrong, returns to the step 2), and enters the step 5 if the return value is correct);
5) the network distributor sets a subscription address and a release address of a node role and sends the subscription address and the release address to the equipment;
6) and finishing the distribution network.
2. The BLE MESH-based smart device network distribution method of claim 1, wherein the non-distribution network beacon comprises a UUID, a device name, and a mac address.
3. The BLE MESH-based smart device network distribution method of claim 1, wherein the DCD data comprises a model list.
4. The BLE MESH-based smart device network distribution method of claim 1, wherein the node roles comprise a light bulb or a gateway or a switch or a sensor or a remote controller.
5. The BLE MESH-based smart device distribution network method of claim 1, wherein the return value error comprises a timeout error, a resolution error, or a verification error.
6. The BLE MESH-based smart device network distribution method according to claim 1, wherein the restarting device is specifically configured such that a network distributor sends a restarting instruction to a device by means of a GATT.
7. The BLE MESH-based smart device network distribution method of claim 1, wherein the network distributor sends the first network key to the device in a GATT manner.
8. The BLE MESH-based smart device network distribution method of claim 1, wherein after restarting a device, the device saves a reason for network distribution failure.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910935168.4A CN110868707A (en) | 2019-09-29 | 2019-09-29 | BLE MESH-based intelligent device network distribution method |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910935168.4A CN110868707A (en) | 2019-09-29 | 2019-09-29 | BLE MESH-based intelligent device network distribution method |
Publications (1)
Publication Number | Publication Date |
---|---|
CN110868707A true CN110868707A (en) | 2020-03-06 |
Family
ID=69652791
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201910935168.4A Pending CN110868707A (en) | 2019-09-29 | 2019-09-29 | BLE MESH-based intelligent device network distribution method |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN110868707A (en) |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111866998A (en) * | 2020-07-24 | 2020-10-30 | 深圳创维数字技术有限公司 | Bluetooth network distribution method, equipment and storage medium |
CN112533242A (en) * | 2020-11-30 | 2021-03-19 | 广州易而达科技股份有限公司 | LED equipment networking method, device and equipment |
CN113573289A (en) * | 2021-06-30 | 2021-10-29 | 杭州博联智能科技股份有限公司 | Method and system for adding equipment to client based on Bluetooth |
TWI825352B (en) * | 2020-09-25 | 2023-12-11 | 許耿禎 | Non-contact control system |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104812092A (en) * | 2015-03-23 | 2015-07-29 | 小米科技有限责任公司 | Networking method and device of intelligent equipment |
US20150365823A1 (en) * | 2013-02-21 | 2015-12-17 | Orange | Technique of pairing in a wireless network |
CN105635939A (en) * | 2014-11-20 | 2016-06-01 | 现代自动车株式会社 | Method performing Bluetooth pairing with a mobile device by a head unit and head unit |
CN106375111A (en) * | 2016-08-25 | 2017-02-01 | 珠海迈科智能科技股份有限公司 | Network fault automatic correcting method and system of intelligent gateway |
CN108173687A (en) * | 2017-12-26 | 2018-06-15 | 青岛海尔科技有限公司 | A kind of distribution method and device of Internet of Things product |
CN109947031A (en) * | 2019-04-15 | 2019-06-28 | 美的集团股份有限公司 | A kind of intelligent home equipment control method, medium, mobile terminal and device |
-
2019
- 2019-09-29 CN CN201910935168.4A patent/CN110868707A/en active Pending
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20150365823A1 (en) * | 2013-02-21 | 2015-12-17 | Orange | Technique of pairing in a wireless network |
CN105635939A (en) * | 2014-11-20 | 2016-06-01 | 现代自动车株式会社 | Method performing Bluetooth pairing with a mobile device by a head unit and head unit |
CN104812092A (en) * | 2015-03-23 | 2015-07-29 | 小米科技有限责任公司 | Networking method and device of intelligent equipment |
CN106375111A (en) * | 2016-08-25 | 2017-02-01 | 珠海迈科智能科技股份有限公司 | Network fault automatic correcting method and system of intelligent gateway |
CN108173687A (en) * | 2017-12-26 | 2018-06-15 | 青岛海尔科技有限公司 | A kind of distribution method and device of Internet of Things product |
CN109947031A (en) * | 2019-04-15 | 2019-06-28 | 美的集团股份有限公司 | A kind of intelligent home equipment control method, medium, mobile terminal and device |
Cited By (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111866998A (en) * | 2020-07-24 | 2020-10-30 | 深圳创维数字技术有限公司 | Bluetooth network distribution method, equipment and storage medium |
TWI825352B (en) * | 2020-09-25 | 2023-12-11 | 許耿禎 | Non-contact control system |
CN112533242A (en) * | 2020-11-30 | 2021-03-19 | 广州易而达科技股份有限公司 | LED equipment networking method, device and equipment |
CN113573289A (en) * | 2021-06-30 | 2021-10-29 | 杭州博联智能科技股份有限公司 | Method and system for adding equipment to client based on Bluetooth |
CN113573289B (en) * | 2021-06-30 | 2024-03-26 | 杭州博联智能科技股份有限公司 | Method and system for adding devices to Bluetooth-based client |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN110460977B (en) | Intelligent lighting equipment network distribution method based on Bluetooth MESH | |
CN110868707A (en) | BLE MESH-based intelligent device network distribution method | |
EP3395013B1 (en) | Node upgrading method and system in mesh network | |
US20180316446A1 (en) | Method, device, and system for management and communication of a wireless mesh network | |
WO2011006328A1 (en) | System and method for updating device firmware, device management server and mobile terminal | |
CN111052687B (en) | Apparatus and method for controlling addition of network nodes to a multihop network | |
WO2015176304A1 (en) | Euicc management method, euicc, sm platform and system | |
CN109547306A (en) | A kind of smart home device management method, system, intelligent gateway and server | |
RU2010136044A (en) | WIRELESS RADIO CONTROL UNITS USING IDENTIFIERS | |
CN106063380A (en) | Tablet-based commissioning tool for addressable lighting | |
CN105050033A (en) | Piconet networking interconnection method and system based on low-power-dissipation Bluetooth and traditional Bluetooth | |
EP3075206B1 (en) | Zigbee light link network commissioning | |
CN107682857B (en) | Data sharing method of Zigbee network, gateway equipment and Zigbee network system | |
US9836958B2 (en) | Device control method, server, system and computer storage medium | |
EP3076763B1 (en) | Configuring a network connected lighting system | |
JP2008300982A5 (en) | ||
CN104836848A (en) | Method for remotely upgrading intelligent household electrical appliances | |
WO2015000379A1 (en) | Method for remotely controlling air conditioner and remote control system for air conditioner | |
JP6730251B2 (en) | Methods for commissioning network nodes | |
WO2017076109A1 (en) | Software upgrading method and device | |
US20160330565A1 (en) | Z-wave controller shift in thermostats | |
CN106506573B (en) | Intelligent home furnishing control method and system | |
US20190208413A1 (en) | Network device and wps connection method thereof | |
WO2012175024A1 (en) | Method, system and device for realizing concurrency of wireless data transmission and short message transceiving | |
CN109068395B (en) | Method and device for indicating state of bridging pairing, terminal equipment and medium |
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 | ||
RJ01 | Rejection of invention patent application after publication | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20200306 |