CN109495866B - Bluetooth device, Bluetooth Mesh network information transmission method and readable storage medium - Google Patents

Bluetooth device, Bluetooth Mesh network information transmission method and readable storage medium Download PDF

Info

Publication number
CN109495866B
CN109495866B CN201710818002.5A CN201710818002A CN109495866B CN 109495866 B CN109495866 B CN 109495866B CN 201710818002 A CN201710818002 A CN 201710818002A CN 109495866 B CN109495866 B CN 109495866B
Authority
CN
China
Prior art keywords
broadcast
bluetooth
broadcast channel
mesh network
broadcast packet
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
Application number
CN201710818002.5A
Other languages
Chinese (zh)
Other versions
CN109495866A (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.)
Spreadtrum Communications Shanghai Co Ltd
Original Assignee
Spreadtrum Communications Shanghai 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 Spreadtrum Communications Shanghai Co Ltd filed Critical Spreadtrum Communications Shanghai Co Ltd
Priority to CN201910803896.XA priority Critical patent/CN110536251B/en
Priority to CN201710818002.5A priority patent/CN109495866B/en
Publication of CN109495866A publication Critical patent/CN109495866A/en
Application granted granted Critical
Publication of CN109495866B publication Critical patent/CN109495866B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W36/00Hand-off or reselection arrangements
    • H04W36/0005Control or signalling for completing the hand-off
    • H04W36/0083Determination of parameters used for hand-off, e.g. generation or modification of neighbour cell lists
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W36/00Hand-off or reselection arrangements
    • H04W36/24Reselection being triggered by specific parameters
    • H04W36/30Reselection being triggered by specific parameters by measured or perceived connection quality data
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/06Selective distribution of broadcast services, e.g. multimedia broadcast multicast service [MBMS]; Services to user groups; One-way selective calling services
    • 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

Landscapes

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

Abstract

A Bluetooth device, a Bluetooth Mesh network information transmission method and a readable storage medium, the Bluetooth Mesh network information transmission method comprising: receiving a broadcast packet and acquiring the type of the broadcast packet, wherein the broadcast packet is sent by other Bluetooth equipment in the Bluetooth Mesh network; when the type of the broadcast packet is unconnectable and non-directional, switching a broadcast channel by taking radio frequency switching duration as a channel transmission interval, and sending the broadcast packet on the switched broadcast channel; the radio frequency switching duration is less than a preset interframe space. The scheme can improve the receiving success rate of the broadcast packet and reduce the occurrence probability of the broadcast storm.

Description

Bluetooth device, Bluetooth Mesh network information transmission method and readable storage medium
Technical Field
The embodiment of the invention relates to the field of Bluetooth communication, in particular to a Bluetooth device, a Bluetooth Mesh network information transmission method and a readable storage medium.
Background
The transmission distance of wireless network communication is generally limited, and the transmission distance of wireless network communication can be extended by adopting a wireless Mesh (Mesh) network technology. In a bluetooth Mesh network, all devices may communicate with other devices, either directly or indirectly.
In a bluetooth Mesh network, a path selection (routing) method or a flooding (flooding) method may be employed to enable communication between two devices. When the path selection method is used, the two devices communicate through a specific path in the Mesh network; when the flooding method is used, one device sends information to other devices in the Mesh network, and the other devices in the Mesh network serve as relays to relay the information to the target device.
Bluetooth Mesh networks typically use ADV (broadcast packet) to transmit information, relays forward the broadcast packet when receiving it, and target devices acquire the information in the broadcast packet when receiving it. With the increase of the number of devices in the bluetooth Mesh network, the number of the relay nodes is greatly increased, which causes the relay forwarding times of the broadcast packet to be greatly increased, the receiving success rate of the broadcast packet is low, and the broadcast storm may be caused, which causes the network blockage.
Disclosure of Invention
The embodiment of the invention solves the problems of how to improve the receiving success rate of the broadcast packet, reduce the occurrence probability of the broadcast storm and improve the network throughput.
In order to solve the above technical problem, an embodiment of the present invention provides a bluetooth Mesh network information transmission method, including: receiving a broadcast packet and acquiring the type of the broadcast packet, wherein the broadcast packet is sent by other Bluetooth equipment in the Bluetooth Mesh network; when the type of the broadcast packet is unconnectable and non-directional, switching a broadcast channel by taking radio frequency switching duration as a channel transmission interval, and sending the broadcast packet on the switched broadcast channel; the radio frequency switching duration is less than a preset interframe space.
Optionally, before the sending the broadcast packet on the switched broadcast channel, the method further includes: detecting whether the signal intensity corresponding to the switched broadcast channel is smaller than a preset value; and determining that the time length when the signal intensity corresponding to the switched broadcast channel is less than the preset value reaches the preset time length.
Optionally, the method for transmitting information in the bluetooth Mesh network further includes: and when the signal intensity corresponding to the switched broadcast channel is not less than the preset value, the radio frequency switching time length is used as a channel transmitting interval to switch the broadcast channel again.
Optionally, the detecting whether the signal strength corresponding to the switched broadcast channel is smaller than a preset value includes: acquiring the retransmission times of the broadcast packet in the Bluetooth Mesh network; and when the retransmission times of the broadcast packet in the Bluetooth Mesh network are greater than the preset times, detecting whether the signal intensity corresponding to the switched broadcast channel is less than a preset value.
The embodiment of the invention provides a computer-readable storage medium, wherein computer instructions are stored on the computer-readable storage medium, and when the computer instructions are executed, the steps of any one of the above-mentioned bluetooth Mesh network information transmission methods are executed.
The embodiment of the invention provides a Bluetooth device, which comprises a memory and a processor, wherein a computer instruction capable of running on the processor is stored in the memory, and the computer instruction executes any step of the Bluetooth Mesh network information transmission method when running.
The embodiment of the invention also provides another Bluetooth Mesh network information transmission method, which comprises the following steps: when a broadcast packet sent by other Bluetooth equipment in the Bluetooth Mesh network exists, acquiring the type of the broadcast packet; and when the type of the broadcast packet is the non-connectable non-directional type, controlling a first radio frequency device to receive the broadcast packet on a first broadcast channel, and controlling a second radio frequency device to send the broadcast packet on a second broadcast channel, wherein the first broadcast channel is different from the second broadcast channel.
Optionally, before controlling the second radio frequency device to transmit the broadcast packet on the second broadcast channel, the method further includes: detecting whether the signal intensity corresponding to the second broadcast channel is smaller than a preset value; and determining that the time length when the signal intensity corresponding to the second broadcast channel is less than the preset value reaches the preset time length.
Optionally, the method for transmitting information in the bluetooth Mesh network further includes: and when the signal intensity corresponding to the second broadcast channel is not less than the preset value, switching to a third broadcast channel, wherein the first broadcast channel, the second broadcast channel and the third broadcast channel are different.
Optionally, the detecting whether the signal strength corresponding to the second broadcast channel is smaller than a preset value includes: acquiring the retransmission times of the broadcast packet in the Bluetooth Mesh network; and when the retransmission times of the broadcast packet in the Bluetooth Mesh network are greater than the preset times, detecting whether the signal intensity corresponding to the second broadcast channel is less than a preset value.
The embodiment of the invention provides a Bluetooth device, which is a Bluetooth device in a Bluetooth Mesh network and comprises a radio frequency end, wherein the Bluetooth device comprises: a receiving unit, configured to receive a broadcast packet, where the broadcast packet is broadcast by other bluetooth devices in the bluetooth Mesh network; a first obtaining unit configured to obtain a type of the broadcast packet; the first switching unit is used for switching a broadcast channel by taking the radio frequency switching duration as the channel transmission interval duration when the type of the broadcast packet is unconnectable and non-directional; the radio frequency switching duration is less than a preset interframe interval; a first broadcasting unit for transmitting the broadcast packet on the switched broadcast channel.
Optionally, the bluetooth device further includes: a first detecting unit, configured to detect whether a signal strength corresponding to the switched broadcast channel is smaller than a preset value; the first broadcasting unit is adapted to send the broadcast packet on the switched broadcast channel when it is determined that the time length during which the signal intensity corresponding to the switched broadcast channel is smaller than the preset value reaches a preset time length.
Optionally, the first switching unit is further configured to, when the signal strength corresponding to the switched broadcast channel is not less than the preset value, re-switch the broadcast channel with the radio frequency switching duration as a channel transmission interval.
Optionally, the first detecting unit is configured to obtain retransmission times of the broadcast packet in the bluetooth Mesh network; and when the retransmission times of the broadcast packet in the Bluetooth Mesh network are greater than the preset times, detecting whether the signal intensity corresponding to the switched broadcast channel is less than a preset value.
The embodiment of the invention also provides another Bluetooth device, wherein the Bluetooth device is a Bluetooth device in a Bluetooth Mesh network and is provided with a first radio frequency device and a second radio frequency device; the Bluetooth device includes: the monitoring unit is used for monitoring broadcast packets sent by other Bluetooth devices in the Bluetooth Mesh network; a second obtaining unit, configured to obtain a type of the broadcast packet monitored by the monitoring unit; the control unit is used for controlling the first radio frequency device to receive the broadcast packet on a first broadcast channel and controlling the second radio frequency device to send the broadcast packet on a second broadcast channel when the type of the broadcast packet is not connectable and non-directional; the first broadcast channel is different from the second broadcast channel.
Optionally, the bluetooth device further includes: the second detection unit is used for detecting whether the signal intensity corresponding to the second broadcast channel is smaller than a preset value; the control unit is further configured to send the broadcast packet on the second broadcast channel when a duration that the signal strength corresponding to the second broadcast channel is less than the preset value reaches a preset duration.
Optionally, the bluetooth device further includes: and the second switching unit is used for switching to a third broadcast channel when the signal intensity corresponding to the second broadcast channel is not less than the preset value, and the first broadcast channel, the second broadcast channel and the third broadcast channel are different from each other.
Optionally, the second detecting unit is configured to obtain retransmission times of the broadcast packet in the bluetooth Mesh network; and when the retransmission times of the broadcast packet in the Bluetooth Mesh network are greater than the preset times, detecting whether the signal intensity corresponding to the second broadcast channel is less than a preset value.
The embodiment of the invention provides a computer-readable storage medium, wherein computer instructions are stored on the computer-readable storage medium, and when the computer instructions are executed, the steps of any one of the above-mentioned bluetooth Mesh network information transmission methods are executed.
The embodiment of the invention provides a Bluetooth device, which comprises a memory and a processor, wherein a computer instruction capable of running on the processor is stored in the memory, and the computer instruction executes any step of the Bluetooth Mesh network information transmission method when running.
Compared with the prior art, the technical scheme of the embodiment of the invention has the following beneficial effects:
when the type of the received broadcast packet is not connectible and non-directional, the radio frequency switching duration is used as a channel transmission interval to switch the broadcast channel, instead of adopting a preset inter-frame interval as the channel transmission interval to switch the broadcast channel, so that the time for sending the received broadcast packet can be reduced. When the time length for sending the received broadcast packet is shortened, the time length for receiving the broadcast packet on the broadcast channel is correspondingly increased, so that the receiving success rate of the broadcast packet can be improved, the occurrence probability of a broadcast storm is reduced, and the throughput of the Bluetooth Mesh network is improved.
Further, when the type of the broadcast packet is monitored to be non-connectable and non-directional, the first radio frequency device is controlled to receive the broadcast packet on the first broadcast channel, the second radio frequency device is controlled to send the received broadcast packet on the second broadcast channel, namely, the broadcast packet is received and sent through different broadcast channels, the receiving success rate of the broadcast packet is improved, the broadcast storm occurrence probability is further reduced, and the throughput of the Bluetooth Mesh network is improved.
In addition, when the duration that the signal intensity value corresponding to the switched broadcast channel is smaller than the preset value reaches the preset duration, it is determined that other bluetooth devices in the Mesh network do not currently transmit the broadcast packet on the switched broadcast channel, so that the broadcast packet is transmitted on the switched broadcast channel, and the occurrence probability of the broadcast storm can be effectively reduced.
Drawings
Fig. 1 is a flowchart of a bluetooth Mesh network information transmission method in an embodiment of the present invention;
fig. 2 is a flowchart of another bluetooth Mesh network information transmission method in the embodiment of the present invention;
fig. 3 is a schematic structural diagram of a bluetooth device in an embodiment of the present invention;
fig. 4 is a schematic structural diagram of another bluetooth device in the embodiment of the present invention.
Detailed Description
Bluetooth Mesh networks typically use ADV (broadcast packet) to transmit information, relays forward the broadcast packet when receiving it, and target devices acquire the information in the broadcast packet when receiving it. With the increase of the number of devices in the Bluetooth Mesh network, the number of the relay nodes is greatly increased. Assuming that a bluetooth Mesh network includes 20 bluetooth devices, each bluetooth device may be regarded as a relay node. When using flooding, a broadcast packet sent by a bluetooth device is forwarded 20 times to the target bluetooth device. Assuming that the broadcast interval of each bluetooth device in the bluetooth Mesh network is 100ms, the duration of broadcasting a broadcast packet is 3ms, in the case of no conflict, 60ms in the broadcast interval is occupied by broadcasting, and only the remaining 40ms is idle, and the success rate of receiving the broadcast packet is low.
In the embodiment of the invention, the radio frequency switching duration is used as the channel transmitting interval to switch the broadcast channel, instead of adopting the preset interframe interval as the channel transmitting interval to switch the broadcast channel, so that the time for broadcasting the received broadcast packet is shortened, the duration for receiving the broadcast packet on the broadcast channel is increased, the receiving success rate of the broadcast packet can be improved, the occurrence probability of the broadcast storm is reduced, and the throughput of the Bluetooth Mesh network is improved.
In order to make the aforementioned objects, features and advantages of the present invention comprehensible, embodiments accompanied with figures are described in detail below.
The embodiment of the invention provides a method for transmitting information of a Bluetooth Mesh network, which is described in detail by referring to fig. 1 through specific steps.
Step S101, receiving a broadcast packet and acquiring the type of the broadcast packet.
In practical applications, the types of broadcast packets may include the following: connectable non-orientation (ADV _ IND), connectable orientation (ADV DIRECT IND), scannable non-orientation (ADV SCAN IND), and non-connectable non-orientation (ADV non IND), among others.
The operations performed by the bluetooth device may also be different for different types of broadcast packets when the bluetooth device receives the broadcast packets. Therefore, in a specific implementation, when the bluetooth device receives a broadcast packet, the bluetooth device may acquire the type of the received broadcast packet. It should be noted that, in the embodiment of the present invention, the bluetooth device is a bluetooth device in a bluetooth Mesh network, and the broadcast packet received by the bluetooth device is a broadcast packet broadcast by other bluetooth devices in the bluetooth Mesh network.
And step S102, when the type of the broadcast packet is unconnectable and non-directional, switching a broadcast channel by taking the radio frequency switching duration as a channel transmission interval.
In a bluetooth Mesh network, when a bluetooth device is not a target bluetooth device to which a broadcast packet corresponds, the type of the broadcast packet received by the bluetooth device is generally non-connectionless and non-directional. When the bluetooth device detects that the type of the received broadcast packet is not connectionless and non-directional, the bluetooth device is used as a relay node at this time.
In practical applications, when the bluetooth device is used as a relay node in the Mesh network, during operation, the bluetooth device plays a role of relay, and is used for receiving the broadcast packet and then sending the broadcast packet. The broadcast channels used by the bluetooth devices include a broadcast channel 37, a broadcast channel 38, and a broadcast channel 39. The bluetooth devices alternately listen for the broadcast packet on the broadcast channel 37 and transmit on the broadcast channel 37 after listening to the broadcast packet, listen for the broadcast packet on the broadcast channel 38 and transmit on the broadcast channel 38 after listening to the broadcast packet, listen for the broadcast packet on the broadcast channel 39 and transmit on the broadcast channel 39 after listening to the broadcast packet. When the bluetooth device only comprises one set of radio frequency device, the bluetooth device cannot receive the broadcast packet when sending the broadcast packet on a certain broadcast channel, that is, the bluetooth device cannot simultaneously receive and send the broadcast packet.
After completing the transceiving of the broadcast packet on one broadcast channel, the bluetooth device waits for a certain time to switch to the next broadcast channel. In the prior art, the duration of switching between bluetooth devices on different broadcast channels is one inter-frame space (T _ IFS), and the duration of one T _ IFS is 150 μ s.
In the embodiment of the invention, when the Bluetooth equipment is switched among different broadcast channels, the radio frequency switching duration is used as the channel transmission interval to switch the broadcast channels. The radio frequency switching time length is about 60 mu s, and compared with the prior art, the time length of the channel transmission interval in the embodiment of the invention is greatly shortened.
When the duration of the channel transmission interval is reduced, the duration of the bluetooth device receiving the broadcast packet is increased. When the time length of the Bluetooth equipment for receiving the broadcast packet becomes long, the success rate of the Bluetooth equipment for receiving the broadcast packet is increased, so that the occurrence probability of broadcast storms is reduced, and the throughput of the Bluetooth Mesh network is improved.
In practical applications, it can be known that when a certain bluetooth device in the bluetooth Mesh network transmits a broadcast packet, other bluetooth devices in the same bluetooth Mesh network may transmit the broadcast packet nearby the certain bluetooth device. At this time, since a plurality of bluetooth devices in the same bluetooth Mesh network simultaneously transmit broadcast packets, there may be many broadcast packets retransmitted simultaneously in the bluetooth Mesh network, resulting in a broadcast storm.
In the embodiment of the present invention, in order to reduce the occurrence of broadcast storm, before the bluetooth device sends the broadcast packet on the switched broadcast channel, it may also be determined whether the signal strength corresponding to the switched broadcast channel is smaller than a preset value.
And when the signal intensity corresponding to the switched broadcast channel is judged to be smaller than the preset value and the time length of the signal intensity corresponding to the switched broadcast channel, which is smaller than the preset value, reaches the preset time length, the Bluetooth equipment sends a broadcast packet on the switched broadcast channel. When the signal corresponding to the switched broadcast channel is judged to be smaller than the preset value, it can be judged that other Bluetooth devices in the same Bluetooth Mesh network may not send broadcast packets on the switched broadcast channel; or judging that the distance between the switched broadcast channel and other Bluetooth equipment which sends the broadcast packet in the same Bluetooth Mesh network is longer, and the interference generated by the Bluetooth equipment which sends the broadcast packet in the same Bluetooth Mesh network is smaller.
For example, the broadcast channel switched by the bluetooth device a is the broadcast channel 38. After switching to the broadcast channel 38, the bluetooth device a does not immediately transmit the received broadcast packet, but first detects the signal strength corresponding to the broadcast channel 38. When it is detected that the time length during which the signal intensity corresponding to the broadcast channel 38 is smaller than the preset value reaches the preset time length, it is determined that no other bluetooth device in the bluetooth Mesh network may send a broadcast packet on the broadcast channel 38, or that the bluetooth device in the bluetooth Mesh network that sends a broadcast packet on the broadcast channel 38 is far away from the bluetooth device a, and has a small influence on the bluetooth device a. Thus, the bluetooth device a may transmit the broadcast packet on the switched broadcast channel 38.
And when the signal intensity corresponding to the switched broadcast channel is judged to be not less than the preset value, other Bluetooth devices in the same Bluetooth Mesh network are judged to possibly send broadcast packets on the switched broadcast channel. At this time, if the bluetooth device continues to transmit the broadcast packet on the switched broadcast channel, the retransmission times of the broadcast packet in the bluetooth Mesh network may be increased at the same time, and a broadcast storm may occur. Therefore, in the embodiment of the invention, when the bluetooth device detects that the signal intensity corresponding to the switched broadcast channel is not less than the preset value, the broadcast channel can be switched again by the radio frequency switching duration as the channel transmission interval, that is, the broadcast packet is not sent on the switched broadcast channel but switched to another broadcast channel, so that the retransmission times of the broadcast packet in the bluetooth Mesh network at the same time can be reduced, and the occurrence probability of the broadcast storm is reduced.
For example, the broadcast channel switched by the bluetooth device a is the broadcast channel 38. When there are other bluetooth devices in the bluetooth Mesh network that are transmitting broadcast packets on the broadcast channel 38, the bluetooth device a may detect that the signal strength corresponding to the broadcast channel 38 is not less than the predetermined value. At this time, the bluetooth device a does not continue to transmit the broadcast packet on the broadcast channel 38, but switches the broadcast channel from the broadcast channel 38 to the broadcast channel 39 by switching the broadcast channel for the channel transmission interval by the radio frequency switching duration.
After the bluetooth device switches from one broadcast channel to another broadcast channel, before transmitting the broadcast packet, the signal strength corresponding to the switched broadcast channel may be continuously detected to determine whether to continuously transmit the broadcast packet or switch the broadcast channel.
In a specific implementation, the bluetooth device may not detect in real time whether the signal strength corresponding to the switched broadcast channel is smaller than a preset value. The bluetooth device may first detect the retransmission times of the broadcast packet in the bluetooth Mesh network in real time, and when detecting that the retransmission times of the broadcast packet in the bluetooth Mesh network is greater than the preset times, the bluetooth device starts to detect whether the signal intensity corresponding to the switched broadcast channel is less than the preset value in real time. When the bluetooth device detects that the retransmission times of the broadcast packet in the bluetooth Mesh network are less than the preset times in real time, the bluetooth device may not need to detect the signal intensity corresponding to the switched broadcast channel.
In practical applications, it is known that a broadcast storm may occur when the retransmission times of the broadcast packet in the bluetooth Mesh network are greater than a preset number. In the embodiment of the invention, when the Bluetooth equipment detects that the retransmission times of the broadcast packet in the Bluetooth Mesh network are greater than the preset times, the Bluetooth equipment detects whether the signal intensity corresponding to the switched broadcast channel is less than the preset value. When the Bluetooth equipment detects that the signal intensity corresponding to the switched broadcast channel is not less than the preset value, the broadcast packet is not sent on the switched broadcast channel, so that the number of the broadcast packets on the switched broadcast channel is reduced, and the occurrence probability of the broadcast storm is reduced.
In a specific implementation, the detecting the Signal Strength corresponding to the broadcast channel may be detecting a Received Signal Strength Indication (RSSI) of a Signal on the broadcast channel, and determining whether the RSSI of the Signal on the broadcast channel is smaller than a preset threshold. And when the RSSI of the signal on the broadcast channel is smaller than a preset threshold, judging that the signal intensity corresponding to the broadcast channel is smaller than a preset value.
The embodiment of the invention provides a computer-readable storage medium, on which computer instructions are stored, and the computer instructions execute the steps of the bluetooth Mesh network information transmission method provided in the above embodiment when running.
The embodiment of the invention provides a bluetooth device, which comprises a memory and a processor, wherein a computer instruction capable of running on the processor is stored in the memory, and the step of the bluetooth Mesh network information transmission method provided in the embodiment is executed when the computer instruction runs.
The embodiment of the invention also provides another information transmission method of the bluetooth Mesh network, and the detailed description is given below through specific steps with reference to fig. 2.
Step S201, when a broadcast packet sent by other Bluetooth equipment in the Bluetooth Mesh network is monitored, the type of the broadcast packet is obtained.
In a specific implementation, when the bluetooth device is in the bluetooth Mesh network, the broadcast packet sent by other bluetooth devices in the bluetooth Mesh network may be monitored in real time. When a broadcast packet sent by other bluetooth devices in the bluetooth Mesh network is monitored, the type of the monitored broadcast packet may be obtained.
In practical applications, the types of broadcast packets transmitted by the bluetooth device may include the following: connectable non-orientation (ADV _ IND), connectable orientation (ADV DIRECT IND), scannable non-orientation (ADV SCAN IND), and non-connectable non-orientation (ADV non IND), among others.
The bluetooth device may perform step S202 after acquiring the type of the heard broadcast packet.
Step S202, when the type of the broadcast packet is not connectable and non-directional, controlling the first radio frequency device to receive the broadcast packet on a first broadcast channel, and controlling the second radio frequency device to send the broadcast packet on a second broadcast channel.
In a specific implementation, the first broadcast channel and the second broadcast channel are different broadcast channels. In practical applications, when the bluetooth device is used as a relay node in the Mesh network, during operation, the bluetooth device plays a role of relay, and is used for receiving the broadcast packet and then sending the broadcast packet. The broadcast channels used by the bluetooth devices include a broadcast channel 37, a broadcast channel 38, and a broadcast channel 39. When the first broadcast channel is the broadcast channel 37, the second broadcast channel may be the broadcast channel 38 or the broadcast channel 39. When the first broadcast channel is the broadcast channel 38, the second broadcast channel may be the broadcast channel 37 or the broadcast channel 39. When the first broadcast channel is the broadcast channel 39, the second broadcast channel may be the broadcast channel 37 or the broadcast channel 38.
When the first broadcast channel is switched, the second broadcast channel is correspondingly switched, and the switched first broadcast channel and the switched second broadcast channel are still different.
The bluetooth equipment provided by the embodiment of the invention can comprise at least two sets of radio frequency devices: a first radio frequency device and a second radio frequency device. The bluetooth device may control the first rf device and the second rf device to perform different operations at the same time. For example, the bluetooth apparatus controls the second radio frequency device to transmit the broadcast packet while controlling the first radio frequency device to receive the broadcast packet.
Because the Bluetooth equipment comprises at least two sets of radio frequency devices, one set of radio frequency device can be controlled to receive the broadcast packet, and the other set of radio frequency device can be controlled to transmit the broadcast packet, so that the broadcast packet can be received and transmitted by adopting different radio frequency devices at the same time. Therefore, on one broadcast channel, the radio frequency device Bluetooth equipment which is responsible for receiving the broadcast always receives the broadcast packet on the broadcast channel without being responsible for sending the broadcast packet, so that the time length for the Bluetooth equipment to receive the broadcast packet is prolonged, and the success rate of receiving the broadcast packet can be improved.
In practical applications, it can be known that when a certain bluetooth device in the bluetooth Mesh network transmits a broadcast packet, other bluetooth devices in the same bluetooth Mesh network may transmit the broadcast packet nearby the certain bluetooth device. At this time, since a plurality of bluetooth devices in the same bluetooth Mesh network simultaneously transmit broadcast packets, there may be many broadcast packets retransmitted simultaneously in the bluetooth Mesh network, resulting in a broadcast storm.
In the embodiment of the present invention, in order to reduce the occurrence of broadcast storm, before the bluetooth device sends the broadcast packet on the switched broadcast channel, it may also be determined whether the signal strength corresponding to the switched broadcast channel is smaller than a preset value.
And when the signal intensity corresponding to the switched broadcast channel is judged to be smaller than the preset value and the time length of the signal intensity corresponding to the switched broadcast channel, which is smaller than the preset value, reaches the preset time length, the Bluetooth equipment sends a broadcast packet on the switched broadcast channel. When the signal corresponding to the switched broadcast channel is judged to be smaller than the preset value, it can be judged that other Bluetooth devices in the same Bluetooth Mesh network may not send broadcast packets on the switched broadcast channel; or judging that the distance between the switched broadcast channel and other Bluetooth equipment which sends the broadcast packet in the same Bluetooth Mesh network is longer, and the interference generated by the Bluetooth equipment which sends the broadcast packet in the same Bluetooth Mesh network is smaller.
For example, the broadcast channel switched by the bluetooth device a is the broadcast channel 38. After switching to the broadcast channel 38, the bluetooth device a does not immediately transmit the received broadcast packet, but first detects the signal strength corresponding to the broadcast channel 38. When it is detected that the time length during which the signal intensity corresponding to the broadcast channel 38 is smaller than the preset value reaches the preset time length, it is determined that no other bluetooth device in the bluetooth Mesh network may send a broadcast packet on the broadcast channel 38, or that the bluetooth device in the bluetooth Mesh network that sends a broadcast packet on the broadcast channel 38 is far away from the bluetooth device a, and has a small influence on the bluetooth device a. Thus, the bluetooth device a may transmit the broadcast packet on the switched broadcast channel 38.
And when the signal intensity corresponding to the switched broadcast channel is judged to be not less than the preset value, other Bluetooth devices in the same Bluetooth Mesh network are judged to possibly send broadcast packets on the switched broadcast channel. At this time, if the bluetooth device continues to transmit the broadcast packet on the switched broadcast channel, the retransmission times of the broadcast packet in the bluetooth Mesh network may be increased at the same time, and a broadcast storm may occur. Therefore, in the embodiment of the invention, when the bluetooth device detects that the signal intensity corresponding to the switched broadcast channel is not less than the preset value, the broadcast channel can be switched again by the radio frequency switching duration as the channel transmission interval, that is, the broadcast packet is not sent on the switched broadcast channel but switched to another broadcast channel, so that the retransmission times of the broadcast packet in the bluetooth Mesh network at the same time can be reduced, and the occurrence probability of the broadcast storm is reduced.
For example, the broadcast channel switched by the bluetooth device a is the broadcast channel 38. When there are other bluetooth devices in the bluetooth Mesh network that are transmitting broadcast packets on the broadcast channel 38, the bluetooth device a may detect that the signal strength corresponding to the broadcast channel 38 is not less than the predetermined value. At this time, the bluetooth device a does not continue to transmit the broadcast packet on the broadcast channel 38, but switches the broadcast channel from the broadcast channel 38 to the broadcast channel 39 by switching the broadcast channel for the channel transmission interval by the radio frequency switching duration.
After the bluetooth device switches from one broadcast channel to another broadcast channel, before transmitting the broadcast packet, the signal strength corresponding to the switched broadcast channel may be continuously detected to determine whether to continuously transmit the broadcast packet or switch the broadcast channel.
In a specific implementation, the bluetooth device may not detect in real time whether the signal strength corresponding to the switched broadcast channel is smaller than a preset value. The bluetooth device may first detect the retransmission times of the broadcast packet in the bluetooth Mesh network in real time, and when detecting that the retransmission times of the broadcast packet in the bluetooth Mesh network is greater than the preset times, the bluetooth device starts to detect whether the signal intensity corresponding to the switched broadcast channel is less than the preset value in real time. When the bluetooth device detects that the retransmission times of the broadcast packet in the bluetooth Mesh network are less than the preset times in real time, the bluetooth device may not need to detect the signal intensity corresponding to the switched broadcast channel.
In practical applications, it is known that a broadcast storm may occur when the retransmission times of the broadcast packet in the bluetooth Mesh network are greater than a preset number. In the embodiment of the invention, when the Bluetooth equipment detects that the retransmission times of the broadcast packet in the Bluetooth Mesh network are greater than the preset times, the Bluetooth equipment detects whether the signal intensity corresponding to the switched broadcast channel is less than the preset value. When the Bluetooth equipment detects that the signal intensity corresponding to the switched broadcast channel is not less than the preset value, the broadcast packet is not sent on the switched broadcast channel, so that the number of the broadcast packets on the switched broadcast channel is reduced, and the occurrence probability of the broadcast storm is reduced.
In a specific implementation, the detecting the Signal Strength corresponding to the second broadcast channel may be detecting a Received Signal Strength Indication (RSSI) of a Signal on the second broadcast channel, and determining whether the RSSI of the Signal on the second broadcast channel is smaller than a preset threshold. And when the RSSI of the signal on the second broadcast channel is smaller than the preset threshold, judging that the signal intensity corresponding to the second broadcast channel is smaller than the preset value.
Referring to fig. 3, a bluetooth device in the embodiment of the present invention is provided, where a radio frequency terminal is disposed in the bluetooth device, and the bluetooth device 30 includes: a receiving unit 301, a first acquiring unit 302, a first switching unit 303, and a first broadcasting unit 304, wherein:
a receiving unit 301, configured to receive a broadcast packet, where the broadcast packet is broadcast by other bluetooth devices in the bluetooth Mesh network;
a first obtaining unit 302, configured to obtain a type of the broadcast packet;
a first switching unit 303, configured to switch a broadcast channel by using a radio frequency switching duration as a channel transmission interval duration when the type of the broadcast packet is connectionless and unguided; the radio frequency switching duration is less than a preset interframe interval;
a first broadcasting unit 304 for transmitting the broadcast packet on the switched broadcast channel.
In a specific implementation, the bluetooth device 30 may further include: a first detecting unit 305, configured to detect whether a signal strength corresponding to the switched broadcast channel is smaller than a preset value; the first broadcasting unit 304 is adapted to send the broadcast packet on the switched broadcast channel when it is determined that the time length during which the signal strength corresponding to the switched broadcast channel is smaller than the preset value reaches a preset time length.
In a specific implementation, the first switching unit 303 may be further configured to, when the signal strength corresponding to the switched broadcast channel is not less than the preset value, re-switch the broadcast channel with the radio frequency switching duration as a channel transmission interval.
In a specific implementation, the first detecting unit 305 may be configured to obtain a retransmission number of the broadcast packet in the bluetooth Mesh network; and when the retransmission times of the broadcast packet in the Bluetooth Mesh network are greater than the preset times, detecting whether the signal intensity corresponding to the switched broadcast channel is less than a preset value.
Referring to fig. 4, another bluetooth apparatus in the embodiment of the present invention is provided, where the bluetooth apparatus 40 is provided with a first radio frequency device and a second radio frequency device, and the bluetooth apparatus 40 includes: a listening unit 401, a second obtaining unit 402, and a control unit 403, wherein:
a monitoring unit 401, configured to monitor a broadcast packet sent by another bluetooth device in the bluetooth Mesh network;
a second obtaining unit 402, configured to obtain a type of the broadcast packet monitored by the monitoring unit;
a control unit 403, configured to control a first radio frequency device to receive the broadcast packet on a first broadcast channel and control a second radio frequency device to send the broadcast packet on a second broadcast channel when the type of the broadcast packet is connectionless and non-directional; the first broadcast channel is different from the second broadcast channel.
In a specific implementation, the bluetooth device 40 may further include: a second detecting unit 404, configured to detect whether a signal strength corresponding to the second broadcast channel is smaller than a preset value; the control unit 403 may be further configured to send the broadcast packet on the second broadcast channel when a duration that the signal strength corresponding to the second broadcast channel is less than the preset value reaches a preset duration.
In a specific implementation, the bluetooth device 40 may further include: the second switching unit 405 may be configured to switch to a third broadcast channel when the signal strength corresponding to the second broadcast channel is not less than the preset value, where the first broadcast channel, the second broadcast channel, and the third broadcast channel are different from each other.
In a specific implementation, the second detecting unit 404 may be configured to obtain a retransmission number of the broadcast packet in the bluetooth Mesh network; and when the retransmission times of the broadcast packet in the Bluetooth Mesh network are greater than the preset times, detecting whether the signal intensity corresponding to the second broadcast channel is less than a preset value.
The embodiment of the invention also provides a computer-readable storage medium, on which computer instructions are stored, and when the computer instructions are executed, the steps of the bluetooth Mesh network information transmission method described in each embodiment are executed.
The embodiment of the invention also provides a bluetooth device, which comprises a memory and a processor, wherein the memory stores computer instructions capable of running on the processor, and the computer instructions execute the steps of the bluetooth Mesh network information transmission method in the embodiments when running.
Those skilled in the art will appreciate that all or part of the steps in the methods of the above embodiments may be implemented by instructing the relevant hardware through a program, which may be stored in a computer-readable storage medium, and the storage medium may include: ROM, RAM, magnetic or optical disks, and the like.
Although the present invention is disclosed above, the present invention is not limited thereto. Various changes and modifications may be effected therein by one skilled in the art without departing from the spirit and scope of the invention as defined in the appended claims.

Claims (10)

1. A method for transmitting information of a Bluetooth Mesh network is characterized by comprising the following steps:
receiving a broadcast packet and acquiring the type of the broadcast packet, wherein the broadcast packet is sent by other Bluetooth equipment in the Bluetooth Mesh network;
when the type of the broadcast packet is unconnectable and non-directional, switching a broadcast channel by taking radio frequency switching duration as a channel transmission interval, and sending the broadcast packet on the switched broadcast channel; the radio frequency switching duration is less than a preset interframe space.
2. The bluetooth Mesh network information transmission method of claim 1, wherein before transmitting the broadcast packet on the switched broadcast channel, further comprising:
detecting whether the signal intensity corresponding to the switched broadcast channel is smaller than a preset value;
and determining that the time length when the signal intensity corresponding to the switched broadcast channel is less than the preset value reaches the preset time length.
3. The bluetooth Mesh network information transmission method of claim 2, further comprising: and when the signal intensity corresponding to the switched broadcast channel is not less than the preset value, the radio frequency switching time length is used as a channel transmitting interval to switch the broadcast channel again.
4. The bluetooth Mesh network information transmission method of claim 2, wherein the detecting whether the signal strength corresponding to the switched broadcast channel is smaller than a preset value comprises:
acquiring the retransmission times of the broadcast packet in the Bluetooth Mesh network;
and when the retransmission times of the broadcast packet in the Bluetooth Mesh network are greater than the preset times, detecting whether the signal intensity corresponding to the switched broadcast channel is less than a preset value.
5. A bluetooth device, wherein the bluetooth device is a bluetooth device in a bluetooth Mesh network, and the bluetooth device includes a radio frequency terminal, comprising:
a receiving unit, configured to receive a broadcast packet, where the broadcast packet is broadcast by other bluetooth devices in the bluetooth Mesh network;
a first obtaining unit configured to obtain a type of the broadcast packet;
the first switching unit is used for switching a broadcast channel by taking the radio frequency switching duration as the channel transmission interval duration when the type of the broadcast packet is unconnectable and non-directional; the radio frequency switching duration is less than a preset interframe interval;
a first broadcasting unit for transmitting the broadcast packet on the switched broadcast channel.
6. The bluetooth device of claim 5, further comprising: a first detecting unit, configured to detect whether a signal strength corresponding to the switched broadcast channel is smaller than a preset value; the first broadcasting unit is adapted to send the broadcast packet on the switched broadcast channel when it is determined that the time length during which the signal intensity corresponding to the switched broadcast channel is smaller than the preset value reaches a preset time length.
7. The bluetooth device of claim 6, wherein the first switching unit is further configured to re-switch the broadcast channel for a channel transmission interval by using the radio frequency switching duration when the signal strength corresponding to the switched broadcast channel is not less than the preset value.
8. The bluetooth device according to claim 6, wherein the first detecting unit is configured to obtain a retransmission number of the broadcast packet in the bluetooth Mesh network; and when the retransmission times of the broadcast packet in the Bluetooth Mesh network are greater than the preset times, detecting whether the signal intensity corresponding to the switched broadcast channel is less than a preset value.
9. A computer storage medium having computer instructions stored thereon, wherein the computer instructions, when executed by a processor, perform the steps of the bluetooth Mesh network information transmission method according to any one of claims 1 to 4.
10. A Bluetooth device comprising a memory and a processor, the memory having stored thereon computer instructions executable on the processor, the computer instructions when executed performing the steps of the Bluetooth Mesh network information transmission method of any one of claims 1 to 4.
CN201710818002.5A 2017-09-12 2017-09-12 Bluetooth device, Bluetooth Mesh network information transmission method and readable storage medium Active CN109495866B (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201910803896.XA CN110536251B (en) 2017-09-12 2017-09-12 Bluetooth device, Bluetooth Mesh network information transmission method and readable storage medium
CN201710818002.5A CN109495866B (en) 2017-09-12 2017-09-12 Bluetooth device, Bluetooth Mesh network information transmission method and readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710818002.5A CN109495866B (en) 2017-09-12 2017-09-12 Bluetooth device, Bluetooth Mesh network information transmission method and readable storage medium

Related Child Applications (1)

Application Number Title Priority Date Filing Date
CN201910803896.XA Division CN110536251B (en) 2017-09-12 2017-09-12 Bluetooth device, Bluetooth Mesh network information transmission method and readable storage medium

Publications (2)

Publication Number Publication Date
CN109495866A CN109495866A (en) 2019-03-19
CN109495866B true CN109495866B (en) 2021-09-07

Family

ID=65687741

Family Applications (2)

Application Number Title Priority Date Filing Date
CN201710818002.5A Active CN109495866B (en) 2017-09-12 2017-09-12 Bluetooth device, Bluetooth Mesh network information transmission method and readable storage medium
CN201910803896.XA Active CN110536251B (en) 2017-09-12 2017-09-12 Bluetooth device, Bluetooth Mesh network information transmission method and readable storage medium

Family Applications After (1)

Application Number Title Priority Date Filing Date
CN201910803896.XA Active CN110536251B (en) 2017-09-12 2017-09-12 Bluetooth device, Bluetooth Mesh network information transmission method and readable storage medium

Country Status (1)

Country Link
CN (2) CN109495866B (en)

Families Citing this family (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TWI763581B (en) * 2019-10-03 2022-05-01 瑞昱半導體股份有限公司 Main bluetooth circuit of multi-member bluetooth device capable of dynamically switching operation mode
CN110753332A (en) * 2019-10-24 2020-02-04 上海银基信息安全技术股份有限公司 Data processing method and device based on Bluetooth SIG MESH and terminal to be unlocked
CN113133075B (en) * 2019-12-31 2022-09-16 杭州萤石软件有限公司 Channel switching method in wireless grid network and wireless node equipment
CN111711941B (en) * 2020-04-30 2023-10-24 杭州涂鸦信息技术有限公司 Data transmission method, related equipment and device
CN114025336B (en) * 2021-10-08 2023-11-14 湖南简成信息技术有限公司 Bluetooth communication system
CN115623645A (en) * 2022-09-05 2023-01-17 深圳市集贤科技有限公司 Lamplight equipment linkage control system and lamplight equipment linkage control method thereof

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2013149380A1 (en) * 2012-04-05 2013-10-10 Nokia Corporation Method, apparatus, and computer program product for data distribution in wireless networks
CN105144757A (en) * 2013-04-26 2015-12-09 三星电子株式会社 Communication service in communication modes

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103747441B (en) * 2013-12-10 2019-08-06 北京智谷睿拓技术服务有限公司 Wireless network access method and access device
US9258695B2 (en) * 2013-12-16 2016-02-09 Nokia Technologies Oy Method, apparatus, and computer program product for service discovery in short-range communication environment
US10397868B2 (en) * 2015-07-31 2019-08-27 Nintendo Co., Ltd. Wireless system, wireless device, non-transitory computer-readable storage medium having stored therein communication program, and communication method
CN106658355B (en) * 2016-09-26 2019-11-12 珠海格力电器股份有限公司 A kind of method and system forwarding broadcast packet in bluetooth BLE networking
CN106993261A (en) * 2016-12-12 2017-07-28 建荣半导体(深圳)有限公司 A kind of low-power consumption bluetooth data communications method, equipment and system

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2013149380A1 (en) * 2012-04-05 2013-10-10 Nokia Corporation Method, apparatus, and computer program product for data distribution in wireless networks
CN105144757A (en) * 2013-04-26 2015-12-09 三星电子株式会社 Communication service in communication modes

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
Performance Analysis and Reliability Improvement of Bluetooth Broadcast Scheme;junxue liang;《2006 1 st International Symposium on Pervasive Computing and Applications》;20060805;第775-780页 *
双模蓝牙基带关键技术的研究;任一鸣;《信息科技辑》;20170330;第I136-1400页 *

Also Published As

Publication number Publication date
CN109495866A (en) 2019-03-19
CN110536251A (en) 2019-12-03
CN110536251B (en) 2021-11-12

Similar Documents

Publication Publication Date Title
CN109495866B (en) Bluetooth device, Bluetooth Mesh network information transmission method and readable storage medium
US10931356B2 (en) Communications methods and apparatus using multiple beams
JP6717854B2 (en) Beamforming system mobility
KR102239729B1 (en) Method of controlling handover in mobile communication networks and apparatus and system emplementing the method
US11849340B2 (en) Information feedback method, device and system
US9072018B2 (en) Wireless channel switching using co-located radios
US20130194944A1 (en) System and Method To Avoid Interference With Radar Systems
EP3029987B1 (en) Communication mode switching method and device
US11252007B2 (en) Methods and apparatus for supporting use of multiple beams for communications purposes
CN110710245A (en) Method for dynamic frequency selection and radar avoidance management in a multi-node network
CN106664680B (en) Method and arrangement for triggering paging profiling
EP1696687A1 (en) Selecting a communication channel based on the arrival time of packets and packet acknowledgement signals
JP2012074765A (en) Radio equipment, communication failure countermeasure method and communication failure countermeasure program
WO2019242853A1 (en) Client device and methods for efficient beam management
WO2018028675A1 (en) Random access signal configuration method, apparatus, device, system and storage medium
CN110839258B (en) Condition switching method and device
CN110100477B (en) Method and device for identifying user equipment
CN111294938A (en) Multi-carrier data transmission method and device
JP2014236357A (en) Communication control method, communication control program, and communication control device
CN112584533A (en) Uplink authorization request control method, device, terminal and storage medium
JP2012147486A (en) Radio communication device and method
US11949476B2 (en) Safety or control system and a method for a radio communication among a plurality of transceivers of such system
JP5391428B2 (en) Wireless device
JP2014116703A (en) Communication system, communication device, and method for controlling channel selection
CN117998520A (en) Communication control method and device, communication chip, storage medium and mobile station

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