Method and system for realizing multi-user full duplex voice intercom based on Bluetooth
By grouping Bluetooth devices and periodic broadcasting and time slot allocation on the timeline, the problem of real-time full-duplex intercom in existing Bluetooth technology is solved, and multi-person self-organized network communication is realized, and intercom function is improved. real-time and number of users.
Patent Information
- Application Number
- CN202411235766.8
- 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
Existing Bluetooth technology cannot realize real-time full-duplex voice intercom for multiple people. Due to the transmission rate and bandwidth, it leads to poor communication in environments with insufficient base station coverage such as mountainous areas, and traditional half-duplex intercom cannot meet the real-time multi-person Intercom needs.
By grouping Bluetooth devices participating in voice intercom, each packet forms a MESH ad hoc network, using periodic broadcasting and time slot allocation on the time axis to form T1 and T2 time slots, closing T1 reserved time slots to establish Bluetooth connection , realize full duplex communication, and specify periodic broadcast locations through custom extended Bluetooth HCI commands to realize time slot multiplexing.
It realizes multi-person full-duplex self-group network communication, expands the number of users, solves the limitation of multi-person real-time intercom in traditional Bluetooth technology, reduces the frame length and delay of voice data, and improves the real-timeness of intercom function.
Smart Images

Figure CN118945635A_ABST
Abstract
Description
Technical Field
[0001] The invention belongs to the technical field of Bluetooth wireless communication, and in particular relates to a method and system for realizing multi-person full-duplex voice intercom based on Bluetooth. Background Art
[0002] People have an increasing demand for real-time full-duplex communication outdoors. Traditional mobile communication networks / network intercoms cannot solve the communication problems in special environments, such as mountainous areas where base stations cannot reach. Mobile communications also require additional traffic charges, which brings additional costs. Traditional half-duplex intercoms use a half-duplex communication method and cannot achieve real-time full-duplex intercoms for multiple people. Currently, there are solutions based on Bluetooth connection or broadcast solutions, but the implementation method of Bluetooth itself and the limited Bluetooth transmission rate and bandwidth cannot enable more users to form a self-organizing network of more users.
[0003] Because Bluetooth uses TDD (time division duplexing), whether it is based on Bluetooth broadcast or Bluetooth connection, a certain time slot is allocated to different users in advance in a fixed period. In the prior art, commonly used network topologies and Bluetooth time slot allocations, such as Figure 1 As shown, after the intermediate device B establishes a connection with A and C, two transmissions and two receptions are required respectively, so that full-duplex communication between B and A and C can be completed within one T period. In the prior art, most can only realize two devices within one T, because the period T cannot be too large. The larger T means that a frame of voice data becomes larger. For voice encoders, the frame length is generally very small, such as the frame length of 7.5ms for common Bluetooth phones, and the delay also increases accordingly.
[0004] In the prior art, another solution is to use a broadcast solution. Since Bluetooth is implemented in a TDD manner, it is necessary to allocate TX and RX to each device. Figure 2 As shown (taking 5 devices as an example), each device is assigned its own TX and RX to receive other broadcasts. Similarly, the period T here cannot be too large, so the self-organizing network is limited and multi-person network cannot be realized.
[0005] In summary, the existing technical solutions cannot solve the problem of real-time Bluetooth communication for multiple people due to the limitation of Bluetooth bandwidth and transmission rate. The transmission period T cannot be too large. If it is too large, the voice data frame length will increase, the encoded data will increase, and there is no corresponding voice encoder. Moreover, if T is too large, the effect of the real-time intercom function will be greatly reduced, and even the real-time intercom function cannot be realized. If T is fixed, full-duplex intercom for multiple people cannot be realized, which limits the use scenario of multiple users and cannot meet the use scenario of multiple users. Summary of the invention
[0006] The purpose of the embodiments of the present invention is to provide a method and system for implementing full-duplex voice intercom among multiple persons based on Bluetooth, which can solve the problem of real-time full-duplex Bluetooth communication among multiple persons.
[0007] The embodiment of the present invention is implemented as follows:
[0008] A method for realizing multi-person full-duplex voice intercom based on Bluetooth includes:
[0009] 101. Group multiple Bluetooth devices participating in voice intercom. All devices in each group can serve as bridge points of the group for data communication between groups. All Bluetooth devices in the same group form a MESH self-organizing network. Then all groups form a large MESH self-organizing network.
[0010] 102. All Bluetooth devices in the network establish a respective periodic broadcast at the same position on the time axis. The periodic broadcast is used to occupy a fixed time slot position and length. The time slot position is used to establish the time slot allocation occupied by the connection between each group, which is recorded as T1.
[0011] 103. In the same group, all Bluetooth devices establish a periodic broadcast within the group on the time axis. The allocated periodic broadcast time slot is used to occupy a fixed time slot position, which is used for allocating time slots occupied by all Bluetooth devices in the group to communicate with each other, denoted as T2.
[0012] 104. After all Bluetooth devices participating in voice intercom complete the allocation of T1 and T2 time slots, close the T1 reserved time slots of all Bluetooth devices, and each device can use Bluetooth to establish a connection, and the time slot occupied by the connection is allocated to the position of T1;
[0013] Among them, time slot allocation T1 and T2 form a complete transmission cycle T.
[0014] Wherein, step 102 includes: first determining a leader device, the leader device first starts a T1 time slot periodic broadcast, and after all other Bluetooth devices participating in the networking scan the periodic broadcast of the leader device, they establish their own corresponding T1 time slot periodic broadcast.
[0015] Among them, other Bluetooth devices calculate the local offset according to the RX Timing broadcast by the received Leader periodically, and then report it to the Bluetooth Host;
[0016] The local offset is determined by setting the time point when Adv is received based on the local clock to t and the period to T. Once the time point of the first anchor point is determined, the time points of other subsequent anchor points are sequentially added with the period T, and can be expressed by the mathematical formula t%T==offset, that is, a Bluetooth periodic anchor point clock can be determined by the periodic interval parameter T and the offset time offset of the first anchor point on the time axis. This offset is reported to the Host. After the Host obtains the Offset, it creates a periodic broadcast at the same position.
[0017] There can be multiple bridge points between groups of Bluetooth devices, and the voice data uses an internal routing algorithm to determine the voice transmission path.
[0018] Among them, all Bluetooth devices press the networking button to start networking. At this time, each device will send a broadcast that allows other devices to discover the device and start scanning surrounding devices. Every report of a new device is recorded in the local network application layer.
[0019] The system for realizing the method for multi-person full-duplex voice intercom based on Bluetooth is applied to realize the steps included in the method.
[0020] The embodiment of the present invention specifies the location of periodic broadcast and connectable extended broadcast through a customized extended Bluetooth HCI command, ensures that members of each group can establish a Bluetooth connection in a reserved time slot at any time, implements a grouping scheme, and thus achieves time slot multiplexing of each group, and ultimately achieves full-duplex communication among devices in a group through periodic broadcast, communication between groups through Bluetooth connection, and forwarding of voice data of each group, thereby realizing full-duplex self-organizing network communication among multiple groups. BRIEF DESCRIPTION OF THE DRAWINGS
[0021] Figure 1 It is a network topology and Bluetooth time slot allocation diagram commonly used in the prior art;
[0022] Figure 2 It is a schematic diagram of allocating TX and RX to each device in the broadcast scheme in the prior art;
[0023] Figure 3 It is a network topology diagram of multi-person group networking in the present invention;
[0024] Figure 4 It is a time slot allocation diagram for periodic broadcasting used for reserved time slots in multi-person full-duplex ad hoc network communication of the present invention;
[0025] Figure 5 It is a time slot allocation diagram of all periodic broadcasts in the multi-person full-duplex ad hoc network communication of the present invention. DETAILED DESCRIPTION
[0026] In order to make the purpose, technical solution and advantages of the present invention more clearly understood, 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 intended to limit the present invention.
[0027] The present invention provides a method based on Bluetooth broadcasting, by extending Bluetooth HCI commands, specifying the positions of periodic broadcasting and connectable extended broadcasting, and realizing a grouping scheme, thereby achieving a technology of time slot multiplexing, thereby being able to overcome the shortcomings of the prior art and realizing Bluetooth-based multi-person full-duplex self-organizing network communication.
[0028] The method for realizing multi-person full-duplex voice intercom based on Bluetooth of the present invention comprises:
[0029] 101. Group multiple Bluetooth devices participating in voice intercom. All devices in each group can serve as bridge points of the group for data communication between groups. All Bluetooth devices in the same group form a self-organizing network of MESH.
[0030] 102. All Bluetooth devices that need to be networked establish a respective periodic broadcast at the same position on the time axis. The periodic broadcast is used to occupy a fixed time slot position and length. The time slot position is used to establish the time slot allocation occupied by the connection between each group, which is recorded as T1.
[0031] 103. In the same group, all Bluetooth devices establish a periodic broadcast within the group on the time axis. The allocated periodic broadcast time slot is used to occupy a fixed time slot position, which is used for allocating time slots occupied by all Bluetooth devices in the group to communicate with each other, denoted as T2.
[0032] 104. After all Bluetooth devices participating in voice intercom complete the allocation of T1 and T2 time slots, close the T1 reserved time slots of all Bluetooth devices, and each device can use Bluetooth connection to establish a connection, and the time slot occupied by the connection is allocated to the position of T1;
[0033] Among them, time slot allocation T1 and T2 form a complete transmission cycle T.
[0034] Step 102 includes: first determine a leader device, the leader device first starts a T1 time slot periodic broadcast, and all other Bluetooth devices that need to be networked scan the periodic broadcast of the leader device and then establish their own corresponding T1 time slot periodic broadcast. Each group of devices must be synchronized to the same time point with the same reference device (leader), and it is necessary to ensure that all devices reserve the same time so that there will be no connection conflicts.
[0035] Among them, other Bluetooth devices in the group calculate the local offset according to the RX Timing broadcast by the received Leader periodically, and then report it to the Bluetooth Host;
[0036] The local offset is determined by setting the time point when Adv is received based on the local clock to t and the period to T. Once the time point of the first anchor point is determined, the time points of other subsequent anchor points are sequentially added with the period T, and can be expressed by the mathematical formula t%T==offset, that is, a Bluetooth periodic anchor point clock can be determined by the periodic interval parameter T and the offset time offset of the first anchor point on the time axis. This offset is reported to the Host. After the Host obtains the Offset, it creates a periodic broadcast at the same position.
[0037] There can be multiple bridge points between each group of Bluetooth devices, and the voice data is routed through the internal routing algorithm. There can be one or more bridge points between groups to achieve the connection between groups, and then the internal routing algorithm is used to ensure that there will be no conflicts in the transmission of audio. The network topology is shown in Figure 3 .
[0038] The present invention also provides a system for implementing the method for implementing multi-person full-duplex voice intercom based on Bluetooth to implement the steps included in the method.
[0039] The specific implementation of the present invention is described in detail below in conjunction with specific embodiments:
[0040] The solution of the present invention specifically solves the multi-user problem by time slot multiplexing (multi-hop), that is, multiple groups are used to expand the number of users, such as Figure 3As shown, there are 16 device nodes in total, of which 3 and 10, 6 and 13 are connected in a way called bridge points. The figure only identifies two bridge nodes, but it is not limited to two bridge points. When different groups are in the connection range, any node can be connected to serve as a bridge node between groups. Both network 1 (group 1) and network 2 (group 2) use adv (broadcast) mode to form a MESH self-organizing network in network 1. Among them, the broadcast time slots of nodes 1, 2, 3, 4, 5, 6, 7, 8 in network 1 and nodes 8, 9, 10, 11, 12, 13, 14, 15, 16 in network 2 may overlap. The voice data of voice 1, 2, 3, 4, 5, 6, 7, 8 in network 1 can only reach network 2 through bridge point 3 or 6 nodes, and the voice information of 9, 10, 11, 12, 13, 14, 15, 16 in network 2 can only be forwarded to network 1 through bridge point 10 or 13 nodes. Here we only take two groups as an example. In order to reach more people, the number of groups can be increased. Here we only illustrate the existence of two bridge points, but it is not limited to multiple bridge points between the two groups. When there are multiple bridge points, the communication between the two groups is controlled by the internal routing algorithm to select which path to complete the audio communication between the two groups. Since the broadcast time slots of network 1 and network 2 may overlap, assuming that nodes 6 and 10 are not within the communication range, but nodes 6 and 12 are within the communication range, then 6 and 12 can remain connected, because the previously connected time slot has been reserved as a T1 time slot, so any node in group 1 and any node in group 2 can be connected at any time without affecting the broadcast time slot within the network, thereby affecting normal voice communication.
[0041] Therefore, each device needs to broadcast a periodic broadcast, which is used to occupy a fixed time slot. Then other devices scan this periodic broadcast, calculate the local offset based on the received RX Timing, and then report it to the Host through Extend adv.
[0042] About Offset calculation method:
[0043] Here, the time point when Adv is received based on the local clock is set to t. Assuming that there is periodic adv, if the period of periodic broadcast is T, then once the timing of the first anchor point is determined, the timing of other subsequent anchor points is to add the period T in sequence, and can be expressed by the mathematical formula t%T==offset, that is, a Bluetooth periodic anchor point clock can be determined by the periodic interval parameter T and the offset time offset of the first anchor on the time axis. This offset is reported to the Host. After the Host gets this Offset, it creates a periodic broadcast at the same position through the custom Vendor command. All devices on the network need to do this. Among them, Bluetooth is divided into Host and Controller. The Host is mainly responsible for the Bluetooth protocol, and the Controller is responsible for Bluetooth time slot scheduling. The Host controls the Controller by sending HCI commands.
[0044] After this operation, all devices will also establish a periodic broadcast for the time axis, such as Figure 4 As shown in the figure, all Advs are in the same timeline. To distinguish it from other periodic broadcasts, this periodic broadcast is called beacon adv. When all beacon advs are in the same timeline (T1 time slot), the remaining T2 time slot is used to place periodic broadcasts TX and RX. When the T1 time slot is occupied, the subsequent periodic broadcasts can only be placed in the T2 time slot, such as Figure 5 As shown. After all users are allocated, close the T1 reserved time slots of all devices, and then use a custom HCI command to create a connectable Extend adv, and then create the adv position at the reserved PA position. In this way, each device can use Bluetooth connection to establish a connection, and the time slot occupied by the connection is allocated to the T1 position without affecting the broadcast time slot of T2. After this time slot arrangement is formed, connections between multiple groups can be connected arbitrarily without affecting the broadcast time slot.
[0045] The specific networking process is as follows:
[0046] 1. Discover the device
[0047] First, all devices press the networking button to start networking. At this time, each device will send a broadcast that allows other devices to discover the device and start scanning surrounding devices. Every time a new device is found, the report is recorded in the local network application layer to record the surrounding networking devices.
[0048] 2. Grouping
[0049] After scanning the devices, press the button to confirm that the device to be networked is the Leader device. The Leader device broadcasts the device address scanned in the discovery phase to all devices in the network that need to be networked. Assuming that the maximum number of people supported by a Bluetooth network is N, the number of groups that need to be networked is the number of people confirmed to be networked / N, and then each group chooses to connect to devices in other groups based on its own internal algorithm.
[0050] 3. The Leader device starts a periodic broadcast (beacon adv). After the beacon adv is established, it establishes its own periodic broadcast for subsequent voice communication.
[0051] 4. Each device in each group needs to scan the beacon adv first, and then establish its own beacon adv on its own timeline according to the offset of the beacon adv (the offset based on the local clock after conversion).
[0052] 5. After beacon adv is established, each group member can establish its own periodic broadcast in turn and start receiving other periodic broadcasts in its own group. Note: it cannot receive periodic broadcasts from other groups.
[0053] 6. After each device has established its own beacon adv and periodic broadcast, each device needs to turn off its own beacon adv, then create a connectable broadcast at the beacon location through the extended Bluetooth HCI command, and then initiate a Bluetooth connection according to the internal connection rules according to step 2.
[0054] Through the above networking, it is finally possible to achieve full-duplex communication among devices in a group through periodic broadcasting, and groups communicate through Bluetooth connection, and forward the voice data of their respective groups. Here, two groups are taken as an example. In order to achieve more people, the number of groups can be further increased to achieve a larger self-organizing network. In the technical solution of the present invention, the location of periodic broadcasting and connectable and expandable Adv can be specified through custom Bluetooth control commands. The present invention achieves more people in the self-organizing network through time slot multiplexing.
[0055] 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 implementing multi-person full-duplex voice intercom based on Bluetooth, characterized in that: include:
101. Group multiple Bluetooth devices participating in voice intercom. All devices in each group can serve as bridge points of the group for data communication between groups. All Bluetooth devices in the same group form a MESH self-organizing network. Then all groups form a large MESH self-organizing network.
102. All Bluetooth devices in the network establish a respective periodic broadcast at the same position on the time axis. The periodic broadcast is used to occupy a fixed time slot position and length. The time slot position is used to establish the time slot allocation occupied by the connection between each group, which is recorded as T1.
103. In the same group, all Bluetooth devices establish a periodic broadcast within the group on the time axis. The allocated periodic broadcast time slot is used to occupy a fixed time slot position, which is used for allocating time slots occupied by all Bluetooth devices in the group to communicate with each other, denoted as T2.
104. After all Bluetooth devices participating in voice intercom complete the allocation of T1 and T2 time slots, close the T1 reserved time slots of all Bluetooth devices, and each device can use Bluetooth to establish a connection, and the time slot occupied by the connection is allocated to the position of T1; Among them, time slot allocation T1 and T2 form a complete transmission cycle T.
2. The method for realizing full-duplex voice intercom among multiple persons based on Bluetooth according to claim 1, characterized in that: Step 102 includes: first determining a Leader device, the Leader device first starts a T1 time slot periodic broadcast, and after all other Bluetooth devices participating in the networking scan the periodic broadcast of the Leader device, they establish their own corresponding T1 time slot periodic broadcast.
3. The method for realizing full-duplex voice intercom among multiple persons based on Bluetooth according to claim 2, characterized in that: Other Bluetooth devices calculate the local offset based on the RX Timing broadcast periodically by the received Leader, and then report it to the Bluetooth Host; The local offset is determined by setting the time point when Adv is received based on the local clock to t and the period to T. Once the time point of the first anchor point is determined, the time points of other subsequent anchor points are sequentially added with the period T, and can be expressed by the mathematical formula t%T==offset, that is, a Bluetooth periodic anchor point clock can be determined by the periodic interval parameter T and the offset time offset of the first anchor point on the time axis. This offset is reported to the Host. After the Host obtains the Offset, it creates a periodic broadcast at the same position.
4. The method for implementing full-duplex voice intercom for multiple persons based on Bluetooth according to claim 1, characterized in that: There can be multiple bridge points between groups of Bluetooth devices, and the voice data is sent by calculating the voice transmission path through the internal routing algorithm.
5. The method for realizing full-duplex voice intercom among multiple persons based on Bluetooth according to claim 1, characterized in that: All Bluetooth devices press the networking button to start networking. At this time, each device will send a broadcast that allows other devices to discover the device and start scanning surrounding devices. Every report of a new device is recorded in the local network application layer.
6. A system for implementing a method for implementing a multi-person full-duplex voice intercom based on Bluetooth as described in any one of claims 1 to 5 is used to implement the steps included in the method.
Citation Information
Cited By
Communication method and device, electronic equipment, chip and storage medium
CN121334606A
Communication method and apparatus, electronic device, chip and storage medium
CN121334606B
