CN109951832B - Method for boot configuration in a bluetooth Mesh network - Google Patents
Method for boot configuration in a bluetooth Mesh network Download PDFInfo
- Publication number
- CN109951832B CN109951832B CN201910168950.8A CN201910168950A CN109951832B CN 109951832 B CN109951832 B CN 109951832B CN 201910168950 A CN201910168950 A CN 201910168950A CN 109951832 B CN109951832 B CN 109951832B
- Authority
- CN
- China
- Prior art keywords
- data packet
- equipment
- configuration
- starting configuration
- configuration data
- 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.)
- Active
Links
Images
Landscapes
- Mobile Radio Communication Systems (AREA)
- Small-Scale Networks (AREA)
Abstract
The invention provides a method for starting configuration in a Bluetooth Mesh network, which comprises the following steps: the method comprises the steps that starting configuration equipment sends a starting configuration data packet to equipment to be configured, wherein the starting configuration data packet has a matching link value corresponding to the starting configuration data packet, and the matching link value represents a starting configuration link relation between the starting configuration equipment and the equipment to be configured; when the network to be distributed equipment receives the starting configuration data packet, sending an ACK packet to the starting configuration equipment, and storing the matching linkage value in a memory; when the starting configuration equipment does not receive the ACK packet within the appointed time, the starting configuration equipment retransmits a starting configuration data packet to the equipment to be configured; and when the network equipment to be configured receives the retransmitted starting configuration data packet, judging whether to perform deduplication operation on the starting configuration data packet. The method of the invention improves the communication efficiency and ensures that the starting configuration of the equipment is successfully completed.
Description
Technical Field
The present invention relates to a bluetooth Mesh network, and more particularly, to a method for performing boot configuration between a boot configuration device and a device to be networked in a bluetooth Mesh network.
Background
In the process of Bluetooth Mesh starting configuration realized based on a PB-ADV bearing layer, devices (including starting configuration devices already located in a Bluetooth Mesh network and devices to be configured which are not yet a Bluetooth Mesh node) communicate through a common Bluetooth Low Energy (BLE) broadcast packet. In the communication process, the starting configuration device sends a starting configuration data packet (Provisioning PDU) to the device to be configured, and sends a response packet (PDU ACK) to the starting configuration device after the device to be configured receives the starting configuration data packet. Otherwise, the device to be configured sends a Provisioning start data packet (Provisioning PDU) to the Provisioning start device, and when the Provisioning start device receives the Provisioning start data packet, the Provisioning start device also sends a response packet (PDU ACK) to the device to be configured.
It is easy to understand that if hundreds of devices in a large bluetooth Mesh network need to wait for configuration and network access, there will be a lot of broadcast packets in the air, because, on one hand, each device waiting for configuration and network access will periodically send out a beacon packet waiting for configuration; on the other hand, as described above, there may be a large number of devices initiating the configuration network access process at the same time, so there are many data packets interacted in the initiation configuration process over the air.
As shown in fig. 1, during the process of configuring the device B to access the network, the device a and the device B may only want to receive the data packet of the other party, but not want to receive the data packet of any third party device (e.g., the data packet from the device C, D, E …, etc.). To achieve this, there is a mode of "Duplicate Scan" (Duplicate Scan) "when scanning broadcast packets in the bluetooth low energy protocol. This scanning approach filters based on device address, and packets containing the same device address come only once, which can filter redundant packets in advance at the bottom layer, but when used in conjunction with bluetooth Mesh, it will cause problems. Because the same bluetooth Mesh device may send different data packets at different stages, if the data packet of one device is sent only once, the data packet subsequently sent by the device cannot be transmitted to the bluetooth Mesh protocol layer.
Some schemes perform deduplication processing according to the content of the bluetooth broadcast packet, so that each duplicate packet can be reported to the bluetooth Mesh protocol layer only once at least, so as to greatly reduce the duplicate broadcast packets received by the node, but problems will also occur when using this mode in the bluetooth Mesh startup configuration process.
Specifically, referring to fig. 2, during the startup configuration process, device a sends a startup configuration packet PDU1 for the first time, and device B does not reply with an acknowledgement packet PDU1 ACK because this packet is lost over the air and not received by device B. In this case, there is no problem in using the broadcast packet content de-duplication process, since device B is equivalent to not receiving PDU1, so if device a retransmits PDU1, and for device B PDU1 is received for the first time, the bluetooth low energy link layer will report data to the bluetooth Mesh protocol layer.
Since device A did not receive an ACK for PDU1, it will retransmit PDU1 a second time. If the device B receives the PDU1, it reports the PDU1 to the bluetooth Mesh protocol layer, and the bluetooth Mesh protocol layer replies an acknowledgement packet PDU1 ACK to the device a, and if the device a receives the PDU1 ACK, the communication between the two will continue, that is, the device a sends PDU2, the device B receives PDU2 and replies PDU2 ACK, and the device a successfully receives PDU2 ACK; device a sends PDU3, device B receives PDU3 and replies to PDU3 ACK, device a successfully receives PDU3 ACK to continue to initiate the configuration flow.
But assuming at this point that device a did not receive PDU1 ACK, it will retransmit PDU1 a third time. In this case, there is a problem in using the above-described broadcast packet content deduplication process. Since device B has received PDU1 packet, it will buffer PDU1 packet, while device a will continue to retransmit PDU1 because it did not receive PDU1 ACK from device B. However, device B considers that PDU1 has been received and buffered, and that receipt of PDU1 again would consider it to be a duplicate packet and therefore discard it directly. The bluetooth Mesh protocol layer of device B cannot receive PDU1 retransmitted by device a, and thus does not reply PDU1 ACK for the second time, so device a cannot naturally receive PDU1 ACK replied by device B, and will transmit PDU1 until a retransmission Timeout (Timeout) is reached, so that the start configuration process is ended. In this case, the broadcast packet content deduplication process will result in the failure to successfully complete the startup configuration for device B.
It should be understood that the above-listed technical problems are only exemplary and not limiting to the present invention, and the present invention is not limited to the technical solutions for simultaneously solving all the above technical problems. Technical solutions of the present invention may be implemented to solve one or more of the above or other technical problems.
Disclosure of Invention
The invention aims to provide a method for starting configuration in a Bluetooth Mesh network, so that when equipment in the Bluetooth Mesh network directly starts configuration, redundant data packets can be removed, and meanwhile, the starting configuration process can be ensured to be successfully completed.
In one aspect of the present invention, there is provided a method for boot configuration in a bluetooth Mesh network, the method comprising: (a) the method comprises the steps that starting configuration equipment sends a starting configuration data packet to equipment to be configured, wherein the starting configuration data packet has a matching link value corresponding to the starting configuration data packet, and the matching link value represents a starting configuration link relation between the starting configuration equipment and the equipment to be configured; (b) when the network to be distributed equipment receives the starting configuration data packet, sending an ACK packet to the starting configuration equipment, and storing the matching linkage value in a memory; (c) when the starting configuration equipment does not receive the ACK packet within the appointed time, the starting configuration equipment retransmits a starting configuration data packet to the equipment to be configured; and (d) when the network device to be configured receives the retransmitted startup configuration data packet, judging whether to perform deduplication operation on the startup configuration data packet, wherein the judgment comprises: if the matching link value of the retransmitted startup configuration data packet exists in the memory, the startup configuration data packet is not subjected to deduplication operation, otherwise, the startup configuration data packet is subjected to deduplication operation.
Preferably, when the startup configuration of the to-be-configured network device by the startup configuration device is completed, the matching link value is deleted from the memory.
Preferably, the matching Link value is a Link ID.
Preferably, the matching link value is the MAC address of the initiating configuration device.
Preferably, the deduplication operation is a deduplication operation performed at the bluetooth Mesh network layer or lower.
In another aspect of the present invention, there is provided a method for boot configuration in a bluetooth Mesh network, comprising: (a) the method comprises the steps that a network device to be distributed sends a starting configuration data packet to a starting configuration device, the starting configuration data packet has a matching link value corresponding to the starting configuration data packet, the matching link value represents a starting configuration link relation between the starting configuration device and the network device to be distributed, and the matching link value is stored in a memory when the starting configuration device initiates starting configuration to the network device to be distributed; (b) when the starting configuration equipment receives the starting configuration data packet, the starting configuration equipment sends an ACK packet to the equipment to be configured; (c) when the equipment to be configured does not receive the ACK packet within the appointed time, the equipment to be configured retransmits a starting configuration data packet to the starting configuration equipment; (d) when the start-up configuration device receives the re-sent start-up configuration data packet, determining whether to perform a deduplication operation on the start-up configuration data packet, where the determining includes: if the matching link value of the retransmitted startup configuration data packet exists in the memory, the startup configuration data packet is not subjected to deduplication operation, otherwise, the startup configuration data packet is subjected to deduplication operation.
Similar to the first aspect of the present invention, preferably, when the boot configuration device completes the boot configuration of the device to be networked, the matching link value is deleted from the memory. Preferably, the matching Link value is a Link ID or a MAC address of the boot configuration device. And preferably the deduplication operation is a deduplication operation performed at the bluetooth Mesh network layer or lower.
The method can remove the redundant data packet in the process of starting configuration of the equipment in the Bluetooth Mesh network, and can solve the problem that the starting configuration of the equipment cannot be successfully completed due to the duplicate removal operation in the Bluetooth protocol.
Drawings
Fig. 1 shows a schematic diagram of a device start-up configuration of a bluetooth Mesh network in the prior art;
fig. 2 is a communication diagram illustrating a startup configuration process between a device a and a device B in a bluetooth Mesh network in the prior art.
FIG. 3 is a schematic flow diagram of an embodiment of the present invention;
FIG. 4 is a schematic flow diagram of another embodiment of the present invention;
fig. 5 is a schematic diagram of a device boot configuration using the present invention in a bluetooth Mesh network.
Detailed Description
The method of the present invention will be described in detail below with reference to the accompanying drawings and specific embodiments. It is to be understood that the embodiments shown in the drawings and described below are merely illustrative and not restrictive of the current invention.
Fig. 3 is a schematic flow chart of a first embodiment of the method for performing boot configuration in a bluetooth Mesh network according to the present invention.
In step 102, the startup configuration device sends a startup configuration data packet to the device to be configured, where the startup configuration data packet has a matching link value corresponding to the startup configuration data packet, and the matching link value represents a startup configuration link relationship between the startup configuration device and the device to be configured. In a specific embodiment, the matching Link value may be a Link ID (Link ID) or a MAC address of the device to be configured. It should be appreciated that the scope of the present invention is not limited in this respect, and other means equivalent to Link ID or MAC address may be used to represent the boot configuration Link relationship between the boot configuration device and the device to be networked. For example, the Link ID may be a Link ID defined according to the bluetooth Mesh protocol or a proprietary protocol. For another example, in the case that the device uses a non-random address, the MAC address and other addresses may indicate the startup configuration link relationship between the startup configuration device and the device to be networked.
In step 104, when receiving the start configuration data packet, the device to be configured sends an ACK packet to the start configuration device, and stores the matching link value in the memory.
In step 106, when the start-up configuration device does not receive the ACK packet within the specified time, the start-up configuration device retransmits the start-up configuration data packet to the device to be networked.
In step 108, when the device to be configured receives the retransmitted startup configuration data packet, it is determined whether to perform a deduplication operation on the startup configuration data packet, where the determining includes: if the matching link value of the retransmitted startup configuration data packet exists in the memory, the startup configuration data packet is not subjected to deduplication operation, otherwise, the startup configuration data packet is subjected to deduplication operation. The deduplication operation is a deduplication operation performed at the bluetooth Mesh network layer or lower. As non-limiting examples, the deduplication operation may be a deduplication scan performed at the bluetooth low energy link layer according to the bluetooth low energy protocol specification, or a deduplication operation performed at each layer in the bluetooth Mesh network layer, bearer layer, or bluetooth low energy protocol stack according to a proprietary protocol.
In an actual embodiment, preferably, when the startup configuration device completes the startup configuration of the device to be networked, the matching link value is deleted from the memory.
Similar to the first embodiment of the present invention, in the second embodiment of the present invention, a situation is provided in which the device to be networked sends the startup configuration packet to the startup configuration device. Specifically, referring to fig. 4, the method for performing boot configuration in the bluetooth Mesh network includes the following steps:
in step 202, the device to be configured sends a startup configuration data packet to the startup configuration device, where the startup configuration data packet has a matching link value corresponding to the startup configuration data packet, the matching link value represents a startup configuration link relationship between the startup configuration device and the device to be configured, and the matching link value is stored in a memory when the startup configuration device initiates startup configuration to the device to be configured. Similar to the first embodiment described above, the matching Link value may be a Link ID or a MAC address of the boot configuration device.
In step 204, the start-up configuration device sends an ACK packet to the device to be networked when receiving the start-up configuration data packet.
In step 206, when the device to be configured does not receive the ACK packet within the specified time, the device to be configured retransmits the startup configuration data packet to the startup configuration device.
In step 208, when the startup configuration device receives the retransmitted startup configuration data packet, it is determined whether to perform a deduplication operation on the startup configuration data packet, where the determining includes: if the matching link value of the retransmitted startup configuration data packet exists in the memory, the startup configuration data packet is not subjected to deduplication operation, otherwise, the startup configuration data packet is subjected to deduplication operation. Similar to the first embodiment described above, the deduplication operation is a deduplication operation performed at the bluetooth Mesh network layer or lower.
Similarly, when the startup configuration device completes the startup configuration of the device to be networked, the matching link value is deleted from the memory.
The method of the invention can discard the redundant repeated packet, reduce the processing burden of the Bluetooth Mesh protocol layer, and simultaneously can process important data packets in time aiming at a response-retransmission mechanism in the process of starting configuration so as to avoid overtime in the process of starting configuration, thereby successfully finishing the starting configuration of the equipment.
Fig. 5 shows an example of a start-up configuration using the present invention. As shown in fig. 5, during the bluetooth Mesh boot configuration, when the device a is in boot configuration with two devices at the same time, the matching Link value between the device a and the device B is represented by Link ID1, and the matching Link value between the device a and the device G is represented by Link ID 4; the matching Link value between devices C and E is represented by Link ID2, and the matching Link value between devices D and F is represented by Link ID 3. By applying the invention, when the device a receives the start configuration data packet in the air, if the Link ID matched with the device a is the Link ID1 or the Link ID4 (namely, the Link ID exists in the memory), the Link ID is not subjected to the deduplication processing (namely, whether the data packet is cached or not is not checked) but is directly reported to the bluetooth Mesh protocol layer, otherwise, if the Link ID is not stored in the memory, the Link ID is subjected to the deduplication processing.
Also, in this example, when device a and device B end boot configuration, Link ID1 is deleted from memory; when device a and device G finish boot configuration, Link ID4 is deleted from memory. And once the device A and the new device start the configuration process, storing the corresponding matching link values into the memory for subsequent judgment. Therefore, the situation that important data packets cannot be processed in time is avoided while the redundant data packets are continuously discarded by using the deduplication operation to improve the communication efficiency.
While various embodiments of various aspects of the invention have been described for purposes of this disclosure, it should not be understood to limit the teachings of the disclosure to these embodiments. Features disclosed in one particular embodiment are not limited to that embodiment, but may be combined with features disclosed in different embodiments. For example, one or more features and/or operations of a method according to the invention described in one embodiment may also be applied, individually, in combination or in whole, in another embodiment. Further, it should be understood that the method steps described above may be performed sequentially, in parallel, combined into fewer steps, split into more steps, combined and/or omitted differently than as described. It will be understood by those skilled in the art that there are many more alternative embodiments and variations possible and that various changes and modifications may be made to the above-described method steps without departing from the scope of the invention as defined in the appended claims.
Claims (10)
1. A method for boot configuration in a bluetooth Mesh network, the method comprising:
(a) the method comprises the steps that starting configuration equipment sends a starting configuration data packet to equipment to be configured, wherein the starting configuration data packet has a matching link value corresponding to the starting configuration data packet, and the matching link value represents a starting configuration link relation between the starting configuration equipment and the equipment to be configured;
(b) when the network to be distributed equipment receives the starting configuration data packet, sending an ACK packet to the starting configuration equipment, and storing the matching linkage value in a memory;
(c) when the starting configuration equipment does not receive the ACK packet within the appointed time, the starting configuration equipment retransmits a starting configuration data packet to the equipment to be configured; and
(d) when the device to be configured receives the retransmitted startup configuration data packet, judging whether to perform deduplication operation on the startup configuration data packet, where the judging includes:
if the matching link value of the retransmitted startup configuration data packet exists in the memory, the startup configuration data packet is not subjected to deduplication operation, otherwise, the startup configuration data packet is subjected to deduplication operation.
2. The method according to claim 1, wherein the matching chaining value is deleted from the memory when the boot configuration of the device to be networked by the boot configuration device is completed.
3. The method of claim 1, wherein the matching Link value is a Link ID.
4. The method of claim 1 wherein the matching link value is a MAC address of the initiating configuration device.
5. The method of claim 1, wherein the deduplication operation is a deduplication operation performed at a bluetooth Mesh network layer or lower.
6. A method for boot configuration in a bluetooth Mesh network, the method comprising:
(a) the method comprises the steps that a network device to be distributed sends a starting configuration data packet to a starting configuration device, the starting configuration data packet has a matching link value corresponding to the starting configuration data packet, the matching link value represents a starting configuration link relation between the starting configuration device and the network device to be distributed, and the matching link value is stored in a memory when the starting configuration device initiates starting configuration to the network device to be distributed;
(b) when the starting configuration equipment receives the starting configuration data packet, the starting configuration equipment sends an ACK packet to the equipment to be configured;
(c) when the equipment to be configured does not receive the ACK packet within the appointed time, the equipment to be configured retransmits a starting configuration data packet to the starting configuration equipment;
(d) when the start-up configuration device receives the re-sent start-up configuration data packet, determining whether to perform a deduplication operation on the start-up configuration data packet, where the determining includes:
if the matching link value of the retransmitted startup configuration data packet exists in the memory, the startup configuration data packet is not subjected to deduplication operation, otherwise, the startup configuration data packet is subjected to deduplication operation.
7. The method according to claim 6, wherein the matching chaining value is deleted from the memory when the boot configuration of the device to be networked by the boot configuration device is completed.
8. The method of claim 6, wherein the matching Link value is a Link ID.
9. The method of claim 6, wherein the matching link value is a MAC address of the device to be networked.
10. The method of claim 6, wherein the deduplication operation is a deduplication operation performed at a Bluetooth Mesh network layer or lower.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910168950.8A CN109951832B (en) | 2019-03-06 | 2019-03-06 | Method for boot configuration in a bluetooth Mesh network |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910168950.8A CN109951832B (en) | 2019-03-06 | 2019-03-06 | Method for boot configuration in a bluetooth Mesh network |
Publications (2)
Publication Number | Publication Date |
---|---|
CN109951832A CN109951832A (en) | 2019-06-28 |
CN109951832B true CN109951832B (en) | 2022-03-11 |
Family
ID=67009305
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201910168950.8A Active CN109951832B (en) | 2019-03-06 | 2019-03-06 | Method for boot configuration in a bluetooth Mesh network |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN109951832B (en) |
Families Citing this family (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113411788A (en) * | 2020-03-16 | 2021-09-17 | 瑞昱半导体股份有限公司 | Bluetooth mesh network system with non-distribution network communication mechanism and communication method thereof |
CN111867002A (en) * | 2020-07-24 | 2020-10-30 | 深圳创维数字技术有限公司 | Intelligent equipment distribution network authentication method, system and storage medium |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106255048A (en) * | 2016-09-22 | 2016-12-21 | 贝尔特物联技术无锡有限公司 | WIFI MESH network alignment system |
CN107959553A (en) * | 2017-02-21 | 2018-04-24 | 北京百瑞互联技术有限公司 | The method that lifting blueteeth network enters net spee |
CN108173966A (en) * | 2018-01-23 | 2018-06-15 | 南京邮电大学 | BLEMesh automatic network-building methods based on user collaboration |
CN108682142A (en) * | 2018-04-25 | 2018-10-19 | 东峡大通(北京)管理咨询有限公司 | Vehicle management system based on MESH network and method |
CN108847976A (en) * | 2018-06-12 | 2018-11-20 | 广东美的制冷设备有限公司 | With network control method, mobile terminal, equipment and computer readable storage medium |
Family Cites Families (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US8706901B2 (en) * | 2009-04-13 | 2014-04-22 | International Business Machines Corporation | Protocols for high performance computing visualization, computational steering and forward progress |
-
2019
- 2019-03-06 CN CN201910168950.8A patent/CN109951832B/en active Active
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106255048A (en) * | 2016-09-22 | 2016-12-21 | 贝尔特物联技术无锡有限公司 | WIFI MESH network alignment system |
CN107959553A (en) * | 2017-02-21 | 2018-04-24 | 北京百瑞互联技术有限公司 | The method that lifting blueteeth network enters net spee |
CN108173966A (en) * | 2018-01-23 | 2018-06-15 | 南京邮电大学 | BLEMesh automatic network-building methods based on user collaboration |
CN108682142A (en) * | 2018-04-25 | 2018-10-19 | 东峡大通(北京)管理咨询有限公司 | Vehicle management system based on MESH network and method |
CN108847976A (en) * | 2018-06-12 | 2018-11-20 | 广东美的制冷设备有限公司 | With network control method, mobile terminal, equipment and computer readable storage medium |
Also Published As
Publication number | Publication date |
---|---|
CN109951832A (en) | 2019-06-28 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
JP5805836B2 (en) | Method and apparatus for seamless handover in a wireless communication network | |
CN106330414B (en) | Message transmission method and device | |
WO2015180339A1 (en) | Message push processing method and device, push server, and application server | |
US7631239B2 (en) | Method for retransmitting packet in mobile communication system and computer-readable medium recorded program thereof | |
CN104469853B (en) | The method for transmitting RLC data block | |
KR100858472B1 (en) | The method of data communication | |
US10284340B2 (en) | Multicast sending apparatus, multicast receiving apparatus, and multicast transmission determining method | |
CN109951832B (en) | Method for boot configuration in a bluetooth Mesh network | |
US20090094365A1 (en) | Thin client discovery | |
JP2008153778A (en) | Packet transfer apparatus | |
US20220116149A1 (en) | Data retransmission method and device, storage medium, and electronic device | |
CN112911638B (en) | Reliable communication method for optimizing wireless network load congestion by using UDP (user Datagram protocol) | |
KR101673183B1 (en) | Method and apparatus for managing data by using timer compensation in wireless communication system | |
CN101325539B (en) | Dependable communication method for LAN | |
US20110038369A1 (en) | Communication method and apparatus based on user datagram protocol | |
US9037936B2 (en) | Apparatus and method for generating MAC protocol data unit in wireless communication system | |
EP1089189A2 (en) | Method of communication between a peripheral device and a client in a computer network | |
KR101018685B1 (en) | Apparatus and method for controling automatic repeat request reset in wireless broadbandinternet system | |
KR100998830B1 (en) | System and Method for Transmitting Data Using UDP in Mobile Network | |
CN116599953B (en) | File uploading method, device, system, equipment and readable storage medium | |
CN113726874B (en) | Session table backup method, host equipment and dual-computer hot standby system | |
JP4485432B2 (en) | Wireless communication system and wireless communication method | |
WO2018077195A1 (en) | Method and apparatus for data retransmission, and mac device | |
EP1793558A1 (en) | Distributed server network | |
JP4805072B2 (en) | Communications system |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |