Bluetooth wireless ad hoc network audio transmission method and system
Through Bluetooth devices repeatedly transmitting voice data and dynamic VAD mechanisms in multiple broadcast cycles, the problem of low multi-hop transmission quality in Bluetooth audio transmission is solved, the anti-interference ability and user experience are improved, and the higher quality voice signal transmission is achieved .
Patent Information
- Application Number
- CN202411235767.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-09-04
- Publication Date
- 2024-11-12
AI Technical Summary
The existing Bluetooth audio transmission technology has low quality and weak anti-interference ability in multi-hop transmission, resulting in poor user experience.
Using voice data retransmission method and dynamic VAD mechanism, voice data is repeatedly transmitted through Bluetooth devices in multiple broadcast cycles, and routing tables are established and updated between nodes, select the optimal path for data forwarding, control mute data forwarding, and alleviate the Following node bandwidth pressure.
Improves the anti-interference capability and communication quality of Bluetooth audio transmission, improves the user experience, and ensures the continuity and real-timeness of voice signals.
Smart Images

Figure CN118945636A_ABST
Abstract
Description
Technical Field
[0001] The present invention belongs to the technical field of Bluetooth wireless communication, and in particular relates to a Bluetooth wireless ad hoc network audio transmission method and system. Background Art
[0002] Short-distance communication is limited by the transmission distance of hardware. In order to achieve a larger communication range, anti-interference ability is first required, and it also needs to be achieved through multi-hop. In order to achieve multi-hop, existing mature technologies, such as Zigbee, Bluetooth MESH's AODV on-demand routing algorithm, and flooding, etc., all describe the forwarding of wireless data to achieve a larger network topology, but these methods are not suitable for multi-hop voice signals, resulting in low quality of Bluetooth audio transmission in existing technologies, weak anti-interference ability, and poor user experience. Summary of the invention
[0003] The purpose of the embodiments of the present invention is to provide a Bluetooth wireless ad hoc network audio transmission method and system, which can realize multi-hop data transmission, ensure the quality of voice communication, and improve user experience.
[0004] The embodiment of the present invention is implemented as follows:
[0005] A Bluetooth wireless ad hoc network audio transmission method, comprising:
[0006] In a Bluetooth wireless ad hoc network, a Bluetooth device transmits voice data to other Bluetooth devices by means of voice data retransmission; wherein, the voice data retransmission method is that the Bluetooth device repeatedly transmits voice data to other Bluetooth devices in N consecutive broadcast cycles; the Bluetooth device transmits a first frame of voice data in a first broadcast cycle; the Bluetooth device packages the first frame of voice data with a second frame of voice data for transmission in a second broadcast cycle; and so on, the Bluetooth device packages the first frame of voice data, the second frame of voice data, ..., and the Nth frame of voice data for transmission in an Nth broadcast cycle; N is an integer from 2 to 6;
[0007] In a Bluetooth wireless ad hoc network, each Bluetooth device corresponds to a corresponding node, and all Bluetooth devices maintain a routing table containing information about other network nodes. The node periodically broadcasts the routing table and continuously updates its own routing table from the routing table information of other nodes received from the network, so that each node obtains information about other nodes in the entire network.
[0008] When there is a need to send voice data, the node will fill in the voice data, source address, number of hops, next hop address and destination address into the voice data packet. The node selects a route based on its own routing table and sends the voice data packet to the next hop node. After the next hop node receives the voice data packet, it selects the optimal path to the destination address based on the current routing table and forwards it until it reaches the node corresponding to the destination address.
[0009] The value of N is 3 or 4.
[0010] The specific process of determining the optimal path is as follows:
[0011] When a Bluetooth device directly synchronizes with the periodic broadcast of another Bluetooth device, it will directly create a new routing entry with a hop of 1; when the internal routing table of a device is not empty, it will broadcast the routing table externally through adv. After other devices receive this routing table, they will compare it with the existing routing table; if there is a new destination address, fill it in directly; for the same destination address, the path with a shorter hop is selected as the latest route; all devices in the network establish a routing table connecting all devices; after the routing table is established, the Bluetooth device will carry all the path information on the routing table when sending voice data, so as to achieve full coverage of devices.
[0012] Among them, the VAD mechanism is introduced. Within the entire self-organizing network, the voice data sent out by all Bluetooth devices includes their own voice data and whether it is silent data identified by the VAD algorithm. When the Bluetooth device receives a voice data packet, it determines whether it is silent data based on the VAD algorithm. If not, and the destination address is not the current device, it selects the optimal path based on its current routing table and forwards the current voice data packet. If it is silent data, it will not be forwarded.
[0013] Among them, when the upper limit of forwarded data exceeds the number of times the node can resend data, assuming that the node forwarding capacity is sufficient, that is, there are not too many devices that need to be forwarded, then silent data can continue to be forwarded. If it is limited by the node bandwidth, silent data will no longer be forwarded.
[0014] A system for implementing the Bluetooth wireless ad hoc network audio transmission method implements the method steps.
[0015] The embodiment of the present invention realizes multi-hop by increasing the number of retransmissions, increasing the anti-interference capability, and increasing the multi-hop mechanism by broadcasting the route diffusion. By sending different frames for each packet and realizing the retransmission mechanism, the anti-interference capability can be improved and the communication quality can be increased; by controlling whether to use the VAD mechanism and introducing dynamic VAD control, the defects of the VAD algorithm can be avoided within a 1-hop range, and the multi-hop range can reduce the bandwidth pressure of the relay node, thereby improving the user experience. BRIEF DESCRIPTION OF THE DRAWINGS
[0016] Figure 1 This is a typical Bluetooth wireless transmission framework diagram;
[0017] Figure 2 It is a schematic diagram of the sending process of retransmitted data in the present invention;
[0018] Figure 3 It is a format diagram of the internal routing table of the device;
[0019] Figure 4 This is the routing representation of device A and the network architecture diagram in which it is located;
[0020] Figure 5 It is the routing header information diagram inserted by device A;
[0021] Figure 6 It is a schematic diagram of device C filling its own data;
[0022] Figure 7 This is a network architecture diagram of three devices transmitting data;
[0023] Figure 8 This is a network architecture diagram of data transmission of five devices. DETAILED DESCRIPTION
[0024] In order to make the purpose, technical solution and advantages of the present invention more clear, the present invention is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present invention and are not used to limit the present invention.
[0025] The Bluetooth wireless ad hoc network audio transmission method of the present invention comprises:
[0026] In a Bluetooth wireless ad hoc network, a Bluetooth device transmits voice data to other Bluetooth devices in a voice data retransmission manner; wherein the voice data retransmission manner is that the Bluetooth device voice data is repeatedly transmitted to other Bluetooth devices in N consecutive broadcast cycles; the Bluetooth device transmits a first frame of voice data in a first broadcast cycle; the Bluetooth device packages the first frame of voice data with a second frame of voice data for transmission in a second broadcast cycle; and so on, the Bluetooth device packages the first frame of voice data, the second frame of voice data, ..., and the Nth frame of voice data for transmission in an Nth broadcast cycle; N is an integer of 2-6;
[0027] In a Bluetooth wireless ad hoc network, all Bluetooth devices correspond to a corresponding node, and all Bluetooth devices maintain a routing table containing information about other network nodes. Nodes periodically broadcast routing tables and continuously update their own routing tables based on routing table information received from other nodes in the network, so that each node can obtain information about other nodes in the entire network.
[0028] When there is a need to send voice data, the node will fill in the voice data, source address, number of hops, next hop address and destination address into the voice data packet. The node selects a route based on its own routing table and sends the voice data packet to the next hop node. After the next hop node receives the voice data packet, it selects the optimal path to the destination address based on the current routing table and forwards it until it reaches the node corresponding to the destination address.
[0029] The value of N is 2, 3, 4, 5 or 6.
[0030] The specific process of determining the optimal path is as follows:
[0031] When a Bluetooth device directly synchronizes with the periodic broadcast of another Bluetooth device, it will directly create a new routing entry with a hop of 1; when the internal routing table of a device is not empty, it will broadcast the routing table externally through adv. After other devices receive this routing table, they will compare it with the existing routing table; if there is a new destination address, fill it in directly; for the same destination address, the path with a shorter hop is selected as the latest route; all devices in the network establish a routing table connecting all devices; after the routing table is established, the Bluetooth device will carry all the path information on the routing table when sending voice data, so as to achieve full coverage of devices.
[0032] Among them, the VAD mechanism (silent detection) is introduced. When sending data within the entire self-organizing network, the voice data collected by the microphone is sent out, in which it is marked whether it is silent data recognized by the VAD algorithm. When the surrounding devices receive the voice data, if they find that it needs to be forwarded and it is not silent data identified by the VAD algorithm, they can forward it, otherwise they will not forward it. In other words, the data of the microphone is sent out, and it is marked in the forwarded data whether it is silent data (silent data is calculated by the VAD algorithm). When other devices receive the voice packet, the devices within one hop range determine that if the voice packet is silent data, it will not forward it to a farther range, which can reduce the bandwidth of the forwarding node.
[0033] Among them, when the upper limit of forwarded data exceeds the number of times the node can resend data, assuming that the node forwarding capacity is sufficient, that is, there are not too many devices that need to be forwarded, then silent data can continue to be forwarded. If it is limited by the node bandwidth, silent data will no longer be forwarded.
[0034] A system for implementing the Bluetooth wireless ad hoc network audio transmission method implements the method steps.
[0035] The scheme for implementing retransmission in the present invention is specifically as follows:
[0036] See also Figure 1, is a typical framework diagram of Bluetooth wireless transmission. Wireless communication is susceptible to interference, so retransmission is needed to improve transmission quality. For Bluetooth connection, whether the other party receives the data can be determined by whether it needs to be reproduced, but there is no confirmation packet in the broadcast, so it is impossible to know whether the other party has received the data packet. In order to solve the retransmission problem, the retransmission solution can be implemented by increasing the delay.
[0037] Due to the limitation of Bluetooth bandwidth, a broadcast data packet can only send 251 bytes. In addition, considering the delay, sound quality and Bluetooth transmission rate, the solution of the present invention adopts one adv data to use only 4 packets of voice data, but is not limited to 2-6 packets of voice data. Figure 2 As shown, P0 voice data is sent in the packet transmission period (broadcast period) T, P0 and P1 voice data are sent in the packet transmission period T+1, P0, P1 and P2 voice data are sent in the packet transmission period T+2, P0, P1, P2 and P3 voice data are sent in the packet transmission period T+3, and P1, P2, P3 and P4 voice data are sent in the packet transmission period T+4. P represents a payload, that is, a frame of voice data. Specific implementation: When the microphone collects a packet of data, it starts to send. Here, only one packet of voice data needs to be sent. After the microphone collects the second packet of data, it sends the first packet of data and the latest second packet of data again. And so on. When the microphone collects the fourth packet of data, it sends 1, 2, 3, and 4 packets of data. In this way, each packet is transmitted in different transmission periods, and 4 retransmissions are achieved, thereby greatly improving the reliability of transmission. For the receiving end, the worst packet receiving point, that is, the fourth retransmission, starts playing. In this way, the continuity of voice signal playback is achieved.
[0038] The implementation of the forwarding solution of the present invention is as follows:
[0039] In view of the fast movement of mobile ad hoc networks and the delay requirements for voice, each node in the network of the solution of the present invention maintains a routing table containing information of other network nodes. The node spreads the routing table by periodic broadcasting, and continuously updates its own routing table from the routing table information received from the network. Since the routing is updated by broadcasting, and the broadcast interval is very short, usually between tens of milliseconds and hundreds of milliseconds, when the device routing table changes, it can also be notified to other network nodes in a timely manner. In this way, the nodes in the network can always maintain accurate and up-to-date routing information, regardless of whether there is a need for data communication. When there is a need for data forwarding, the node selects a route based on the routing table it maintains as the next hop node for sending or forwarding data packets.
[0040] The specific implementation method is that each device maintains a routing table and sends all its routing information to adjacent devices in each periodic broadcast, so that each intercom device knows the node information in the entire network and can carry the next hop address in the forwarded voice message. After the next hop receives the voice packet, it selects the optimal path to the destination address according to the current routing table for forwarding. The distance vector and the signal quality can be optionally added as a weight to introduce it into the routing algorithm.
[0041] Current routing algorithm:
[0042] 1. When a device directly synchronizes with the periodic broadcast of another device, a new routing entry with a hop value of 1 will be created directly.
[0043] 2. When the internal routing table of a device is not empty, the routing table will be broadcasted to the outside through adv, see Figure 3 , the format is as follows: After receiving this routing table, other devices will compare it with the existing routing table. If there is a new destination address, fill it directly; for the same destination address, choose the path with a shorter hop as the latest route. In order to reduce broadcast messages, the source address and destination address are both short addresses (network numbering for the devices in the entire self-organizing network), which have been allocated according to the device list during the networking stage, such as 1, 2, 3...
[0044] 3. All devices in the network establish a routing table connecting all devices through steps 1 and 2 (if the hop exceeds the set maximum hop count, it will not be added to the routing table, and the default is that the device is not found). In order for each node to know the global information, all routes must be added to the routing table, but only devices with a limited number of hops are taken.
[0045] 4. After the routing table is established, the device will carry all the path information on the routing table when sending voice messages, so as to achieve full coverage of the device. The specific steps are as follows:
[0046] 1) Assume that there is the following network, and A's routing table is: Figure 4 shown.
[0047] 2) Device A sends voice data to the entire network. Before each voice data packet, a routing header must be filled in, such as Figure 5 As shown. The actual data to be inserted into A is:
[0048] A 1 (voice data sent by itself, hop count is 1) B (Next1) (Dest1) CCDDCECG
[0049] In the data CCDDCECG, CC: the first C is the next hop address, and the second C is the destination address, that is, to reach the destination address C, it needs to be sent through the next hop C node; DD: the first D is the next hop address, and the second D is the destination address, that is, to reach the destination address D, it needs to be sent through the next hop D node; CE: C is the next hop address, and E is the destination address, that is, to reach the destination address E, it needs to be sent through the next hop C node; CG: C is the next hop address, and G is the destination address, that is, to reach the destination address G, it needs to be sent through the next hop C node.
[0050] 3) After receiving the voice data sent by A, devices B, C, and D will first parse the Route header. They will find that they are in a certain dest (destination address) field, so this audio needs to be played locally. Device B finds that both Next and Dest are itself, so it does not need to forward, that is, it does not need to be stored in the forwarding table, and it is discarded directly after playing. Device C parses that in addition to playing itself, it also needs to forward to E and G, so it stores the data table in the forwarding table and marks that the data packet is only used for forwarding to E and G. Device D behaves the same as device C, and also needs to store the data in the forwarding table and mark it as only forwarded to F.
[0051] 4) If Figure 6 As shown, when C and D send voice data, they will first fill in their own data. Then they will determine whether there is any free space. If so, they will take a piece of data from the forwarding table and fill it in afterwards. In the figure, the first thing filled in is their own voice packet. It contains C's route header (not shown in the figure) and voice data. The subsequent ori, these fields, indicate that the voice data carried later is generated by A and needs to be forwarded to E and G.
[0052] 5) After receiving the data sent by C, device E will first parse the voice data it has generated. Then it will parse the forwarding information it carries and find the forwarded voice packet. It also needs to play it and forward it to G. Device E executes the steps in C's operation and stores it in the forwarding table. The next time it sends its own data, it will send the forwarding packet together. Finally, G receives and plays it.
[0053] In the present invention, the forwarding scheme is further optimized, and its implementation is as follows:
[0054] Due to the limitation of Bluetooth bandwidth, a device cannot send too many data packets at the same time. According to the above description, here a device only sends 4 packets of data. Assuming a MESH network, see Figure 7, point A can only send data to B, and B needs to forward the data to C. Similarly, C can only forward its voice data to A through B. B also has its own voice data. Therefore, under the limited bandwidth, the number of retransmissions of each packet will be reduced regardless of how it is allocated. When a device is added to the network, a device can only send one packet of voice data. In order to solve this problem, the VAD (voice detection) mechanism is introduced to identify the data that is not forwarded through an algorithm, so that a point can forward more real and effective data.
[0055] However, the VAD algorithm (since the silence detection algorithm is a mature algorithm in the prior art, the present invention will not elaborate on it) may be inaccurate and lead to misjudgment (normal speech is mistakenly regarded as silence data by the algorithm), which will cause the phenomenon of sound loss. In order to further solve this problem, the one-hop device in the entire network does not need to use VAD, and the VAD audio data is no longer forwarded during forwarding. This greatly improves the problem of sound loss within the one-hop range.
[0056] See also Figure 8 , A, B, C, and D are in the MESH network, and nodes D and E are within the communication range. A, B, C, and D send voice data and whether it is silent data identified by the algorithm to all network devices. Because A, B, C, and D are in the same network, there is no need to forward any data. All sending bandwidth is used by themselves, and there is no need to consider whether the silence is silent data. When point D needs to forward the audio data of A, B, and C, it only needs to forward the valid audio data and ignore the silent data. In the figure, point D receives the voice data of A, B, and C, but they are all silent data. These data are only played at point D, but they are no longer forwarded when forwarding, so all bandwidth is used by D, thereby enhancing the transmission quality of point D.
[0057] The core significance of the present invention's introduction of VAD mechanism is to screen whether there is silent data in the voice data packet, if there is silent data, then it is not necessary to forward the silent data, if it is not silent data, it can be forwarded, so on the node of relay forwarding, the forwarding pressure of the data packet is relatively small, especially in the ad hoc network of multiple nodes, each node needs to forward more data (limited by the Bluetooth bandwidth, one node cannot forward too many packets), when the upper limit of the data forwarded exceeds the number of times of the node retransmitting data, the voice data of this node or the data that other nodes need to forward will be missed, so the loss of communication data is caused, and data cannot be effectively transmitted in real time. In order to reduce the problem of missed transmission, if the node forwarding capacity is sufficient, that is, there are not too many devices to forward, then the silent packet can be forwarded continuously, if limited by the bandwidth, it will not be forwarded, therefore, the node dynamically determines whether to forward the silent packet according to the actual situation, and the forwarding or sending pressure of the node can be greatly alleviated, in this case, the node forwards the silent packet, and the possibility of missing the silent packet can be reduced to the greatest extent, so, dynamic control is realized, and the forwarding scheme of the data is optimized.
[0058] The following are some examples:
[0059] A node can only transmit N packets of data. When there are too many people in a MESH network and all the microphones of the devices are working, there must be voice data coming in. When there are 7 devices in the network, 5 of them communicate with the 5th device within one hop range, and the 6th device relays and transfers the voices of 1 and 5 to 6, and 6 to 7. Assuming N is 4, 5 data cannot be transferred at all, so there will be a problem of being unable to send. In order to solve this problem, the present invention introduces the VAD mechanism, because the first 5 people are actually impossible to speak together, so the 6th device can transmit the data of the person who really speaks. However, the VAD algorithm has defects, that is, sometimes the human voice is filtered out and marked as not a human voice, so that the real speech is filtered out. If each node does not forward, there is a possibility of missing valid voice, but there is a need to retransmit N packets. When forwarding, N packets cannot be retransmitted for itself, but it is also necessary to allocate additional forwarding packets to him, which causes the problem of data transmission confusion. Therefore, the present invention uses a silent processing mechanism, which can greatly improve the pressure of the forwarding node and enable effective voice data to be forwarded in real time.
[0060] The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. Any modifications, equivalent substitutions and improvements made within the spirit and principles of the present invention should be included in the protection scope of the present invention.
Claims
1. A method for transmitting audio in a Bluetooth wireless ad hoc network, characterized in that: include: In a Bluetooth wireless ad hoc network, a Bluetooth device transmits voice data to other Bluetooth devices by retransmitting voice data; wherein, the voice data retransmission method is that the Bluetooth device repeatedly transmits voice data to other Bluetooth devices in N consecutive broadcast cycles; the Bluetooth device transmits the first frame of voice data in the first broadcast cycle; the Bluetooth device packages the first frame of voice data with the second frame of voice data for transmission in the second broadcast cycle; and so on, the Bluetooth device packages the first frame of voice data, the second frame of voice data, ... and the Nth frame of voice data for transmission in the Nth broadcast cycle; N is limited by the Bluetooth bandwidth and delay problem, and is an integer of 2-6, that is, one packet transmission cycle transmits 2-6 valid data; In a Bluetooth wireless ad hoc network, each Bluetooth device corresponds to a corresponding node, and all Bluetooth devices maintain a routing table containing information about other network nodes. The node periodically broadcasts the routing table and continuously updates its own routing table based on the routing table information of other nodes received from the network, so that each node can obtain information about other nodes in the entire network. When there is a need to send voice data, the node will fill in the voice data, source address, number of hops, next hop address and destination address into the voice data packet. The node selects a route based on its own routing table and sends the voice data packet to the next hop node. After the next hop node receives the voice data packet, it selects the optimal path to the destination address based on the current routing table and forwards it until it reaches the node corresponding to the destination address.
2. The Bluetooth wireless ad hoc network audio transmission method according to claim 1, characterized in that: The value of N is 3 or 4.
3. The Bluetooth wireless ad hoc network audio transmission method according to claim 1, characterized in that: The specific process of determining the optimal path is as follows: When a Bluetooth device directly synchronizes with the periodic broadcast of another Bluetooth device, it will directly create a new routing entry with a hop of 1; when the internal routing table of a device is not empty, it will broadcast the routing table externally through adv. After other devices receive this routing table, they will compare it with the existing routing table; if there is a new destination address, fill it in directly; for the same destination address, the path with a shorter hop is selected as the latest route; all devices in the network establish a routing table connecting all devices; after the routing table is established, the Bluetooth device will carry all the path information on the routing table when sending voice data, so as to achieve full coverage of devices.
4. The Bluetooth wireless ad hoc network audio transmission method according to claim 1, characterized in that: The VAD mechanism is introduced. Within the entire self-organizing network, the voice data sent out by all Bluetooth devices include their own voice data and whether it is silent data identified by the VAD algorithm. When the Bluetooth device receives a voice data packet, it determines whether it is silent data based on the VAD algorithm. If not, and the destination address is not the current device, it selects the optimal path based on its current routing table and forwards the current voice data packet. If it is silent data, it will not be forwarded.
5. The Bluetooth wireless ad hoc network audio transmission method according to claim 4, characterized in that: When the upper limit of forwarded data exceeds the number of times the node can resend data, assuming that the node forwarding capacity is sufficient, that is, there are not too many devices that need to be forwarded, then silent data can continue to be forwarded. If it is limited by the node bandwidth, silent data will no longer be forwarded.
6. A system for implementing the Bluetooth wireless ad hoc network audio transmission method according to any one of claims 1 to 5, and implementing the method steps.
Citation Information
Cited By
Intercommunication method of Bluetooth talkback device and Mesh talkback device, bridging device, storage medium and computer program product
CN122496781A
