Bluetooth communication methods, devices, equipment and storage media

CN117041922BActive Publication Date: 2026-08-14SHENZHEN BLUETRUM TECH CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-08-09
Publication Date
2026-08-14

AI Technical Summary

Technical Problem

[0004]本申请提供蓝牙通信方法、装置、设备及存储介质,以解决多个主蓝牙设备在在相同时空的相同信道上传输同步流带来通信稳定性降低的技术问题

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN117041922B_ABST
    Figure CN117041922B_ABST
Patent Text Reader

Abstract

This application provides a Bluetooth communication method, apparatus, device, and storage medium. The method includes: during synchronous communication, a first master Bluetooth device acquires first synchronization group information of itself and a second synchronization group information of a second master Bluetooth device; the first master Bluetooth device determines a first channel set and a second channel set based on the first and second synchronization group information, wherein the first channel set is the channel set for synchronous communication of the first master Bluetooth device, and the second channel set is the channel set for synchronous communication of the second master Bluetooth device; if the channel overlap between the first and second channel sets is greater than a preset overlap, the first and second master Bluetooth devices negotiate and allocate the channel sets of themselves. This technical solution can reduce mutual interference between master Bluetooth devices and improve stability.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of Bluetooth communication, and more particularly to Bluetooth communication methods, apparatus, devices and storage media. Background Technology

[0002] Bluetooth is a wireless communication technology standard used to enable devices to exchange data over short distances, thereby simplifying the data interaction process between electronic devices. With continuous technological evolution, Bluetooth has progressed from the early Bluetooth 1.0 to Bluetooth 5.2. Bluetooth 5.2 focuses on low-energy audio (LE Audio), releasing multiple LE audio specifications and a new low-complexity communication codec (LC3) to enhance the Bluetooth audio experience.

[0003] Bluetooth 5.2 introduced the isochronous channel (ISO channel), which can be divided into connection-based and broadcast-based channels. A master Bluetooth device can send multiple synchronization streams to slave Bluetooth devices via the isochronous channel. These streams share the same timing reference data, enabling isochronous transmission. However, during isochronous transmission, because multiple master Bluetooth devices in space operate independently, they may transmit synchronization streams on the same channel at the same time and space, causing interference and reducing communication stability. Summary of the Invention

[0004] This application provides a Bluetooth communication method, apparatus, device, and storage medium to solve the technical problem of reduced communication stability caused by multiple master Bluetooth devices transmitting synchronous streams on the same channel in the same time and space.

[0005] In a first aspect, a Bluetooth communication method is provided, applied to a first master Bluetooth device, wherein the first master Bluetooth device is any master Bluetooth device, the method comprising:

[0006] During the synchronous communication process, the first synchronization group information is obtained, and the second synchronization group information of the second master Bluetooth device is obtained. The first synchronization group information is the synchronization group information required by the first master Bluetooth device for synchronous communication, and the second synchronization group information is the synchronization group information required by the second master Bluetooth device for synchronous communication.

[0007] Based on the first synchronization group information and the second synchronization group information, a first channel set and a second channel set are determined. The first channel set is the channel set for the first master Bluetooth device to perform synchronous communication, and the second channel set is the channel set for the second master Bluetooth device to perform synchronous communication.

[0008] If the channel overlap between the first channel set and the second channel set is greater than a preset overlap, negotiate with the second master Bluetooth device to allocate the first channel set and the second channel set so that the channel overlap between the first channel set and the second channel set is less than the preset overlap.

[0009] In this technical solution, during synchronous communication, the device first obtains its own first synchronization group information, then obtains the second synchronization group information of the second master Bluetooth device, and then determines the first channel set for synchronous communication and the second channel set for synchronous communication with the second master Bluetooth device based on the first and second synchronization group information. If the channel overlap between the first and second channel sets is greater than a preset overlap, the device negotiates with the second master Bluetooth device to allocate the first and second channel sets. This avoids multiple master Bluetooth devices communicating synchronously on the same channel in the same time period, thus reducing mutual interference between multiple master Bluetooth devices and improving the stability of synchronous communication.

[0010] In conjunction with the first aspect, in one possible implementation, the method further includes: deleting a target channel in the first channel set when the channel overlap between the first channel set and the second channel set is less than or equal to the preset overlap, or negotiating with the second master Bluetooth device to delete the target channel in the second channel set, wherein the target channel belongs to both the first channel set and the second channel set.

[0011] In conjunction with the first aspect, in one possible implementation, obtaining the second synchronization group information of the second master Bluetooth device includes: establishing a communication connection with the second master Bluetooth device; and obtaining the second synchronization group information of the second master Bluetooth device through the communication connection. By first establishing a communication connection with the second master Bluetooth device and then obtaining the synchronization group information of the second master Bluetooth device through the communication connection, stable acquisition of the synchronization group information of the second master Bluetooth device can be guaranteed, facilitating subsequent channel analysis.

[0012] In conjunction with the first aspect, in one possible implementation, the channels in the first channel set are first channels, and the channels in the second set are second channels; the step of negotiating with the second master Bluetooth device to allocate the first channel set and the second channel set includes: deleting a target channel from the first channel set and adding a target number of third channels to the first channel set, wherein the target channels belong to both the first channel set and the second channel set, the target number is the number of target channels, and the third channels are different from the second channels; and / or, negotiating with the second master Bluetooth device to delete the target channel from the second channel set and adding a target number of fourth channels to the second channel set, wherein the fourth channels are different from the first channels.

[0013] In conjunction with the first aspect, in one possible implementation, the channels in the first channel set are first channels, and the channels in the second set are second channels; the step of negotiating with the second master Bluetooth device to allocate the first channel set and the second channel set includes: deleting the first channel set from the first synchronization group information and using the fifth channel as a channel in the first synchronization group information, wherein the fifth channel is different from the second channel; or, negotiating with the second master Bluetooth device to delete the second channel set from the second synchronization group information and using the sixth channel as a channel in the second synchronization group information, wherein the sixth channel is different from the first channel.

[0014] In conjunction with the first aspect, in one possible implementation, negotiating the allocation of the first channel set and the second channel set with the second master Bluetooth device includes: dividing target channels according to a target number to obtain a first target channel and a second target channel, wherein the target number is the number of target channels, and the target channels simultaneously belong to the first channel set and the second channel set; deleting the first target channel from the first channel set, and negotiating with the second master Bluetooth device to delete the second target channel from the second channel set.

[0015] In conjunction with the first aspect, in one possible implementation, the channels in the second set are second channels; after deleting the first target channel from the first channel set, the method further includes: adding a seventh channel to the first channel set, the seventh channel being different from the second channel, and the number of the seventh channels being the same as the number of the first target channels.

[0016] In a second aspect, a Bluetooth communication device is provided, applied to a first master Bluetooth device, wherein the first master Bluetooth device is any master Bluetooth device; the device includes:

[0017] The information acquisition module is used to acquire first synchronization group information and second synchronization group information of the second master Bluetooth device during the synchronous communication process. The first synchronization group information is the synchronization group information required by the first master Bluetooth device for synchronous communication, and the second synchronization group information is the synchronization group information required by the second master Bluetooth device for synchronous communication.

[0018] The channel determination module is used to determine a first channel set and a second channel set based on the first synchronization group information and the second synchronization group information, wherein the first channel set is the channel set for the first master Bluetooth device to perform synchronous communication, and the second channel set is the channel set for the second master Bluetooth device to perform synchronous communication.

[0019] The negotiation module is used to negotiate with the second master Bluetooth device to allocate the first channel set and the second channel set when the channel overlap between the first channel set and the second channel set is greater than a preset overlap, so that the channel overlap between the first channel set and the second channel set is less than the preset overlap.

[0020] Thirdly, a Bluetooth device is provided, including a memory and one or more processors and a transceiver, the memory and the transceiver being connected to the one or more processors, the transceiver being used to send or receive data, and the one or more processors being used to execute one or more computer programs stored in the memory, wherein when the one or more processors execute the one or more computer programs, the Bluetooth device enables the Bluetooth communication method of the first aspect described above.

[0021] Fourthly, a computer-readable storage medium is provided, which stores a computer program, the computer program including program instructions, which, when executed by a processor, cause the processor to perform the Bluetooth communication method of the first aspect.

[0022] This application can achieve the following technical effects: when the channel overlap between the first channel set and the second channel set is greater than the preset overlap, the first channel set and the second channel set are negotiated and allocated with the second master Bluetooth device, which can avoid multiple master Bluetooth devices from communicating synchronously on the same channel in the same time period, thereby reducing mutual interference between multiple master Bluetooth devices and improving the stability of synchronous communication. Attached Figure Description

[0023] Figure 1 A schematic diagram illustrating synchronous communication between multiple master Bluetooth devices in the same space, as provided in an embodiment of this application.

[0024] Figure 2 A flowchart illustrating a Bluetooth communication method provided in an embodiment of this application;

[0025] Figure 3 This is a schematic diagram of the structure of a Bluetooth communication device provided in an embodiment of this application;

[0026] Figure 4 This is a schematic diagram of the structure of a Bluetooth device provided in an embodiment of this application. Detailed Implementation

[0027] The technical solutions in the embodiments of this application will now be described with reference to the accompanying drawings.

[0028] The technical solution of this application is applicable to Bluetooth communication scenarios, particularly scenarios where a master Bluetooth device and a slave Bluetooth device communicate synchronously. The master Bluetooth device refers to a Bluetooth device that actively searches for and establishes a connection in the Bluetooth communication scenario. The master Bluetooth device can search for surrounding Bluetooth devices and select the desired Bluetooth device for pairing and connection. The slave Bluetooth device refers to a device waiting to be searched and connected by the master Bluetooth device in the Bluetooth communication scenario. Specifically, the master Bluetooth device can be a mobile phone, laptop, etc.; the slave Bluetooth device can be headphones, smart speakers, etc., and this application does not impose any limitations. It should be understood that a Bluetooth device can both initiate a communication connection as a master device and receive a communication connection as a slave device; a Bluetooth device can also act as both a master and a slave device simultaneously.

[0029] Synchronization communication between the master and slave Bluetooth devices can include broadcast isochronous group (BIG) communication. In a BIG communication scenario, the master Bluetooth device can create one or more BIGs and broadcast their BIG information (BIGinfo) on a broadcast channel. Slave Bluetooth devices can listen for this BIG information on the broadcast channel and join the BIG created by the master Bluetooth device. A BIS link exists between the slave and master Bluetooth devices within the BIG. The BIS link is a unidirectional broadcast link, allowing the master Bluetooth device to send BIS signals to each slave Bluetooth device in the BIG. BIS signals are unidirectional and broadcast by the master Bluetooth device. BIS signals belonging to the same BIG are time-synchronized and share the same timing reference data within the same BIG. The master Bluetooth device specifies the broadcast channel corresponding to the BIS link for sending BIS signals using the channel hopping table (channel_map) in the BIG information. The broadcast channel corresponding to the BIS link is a subset of the 37 data channels.

[0030] Synchronous communication between the master and slave Bluetooth devices can also include connected isochronous group (CIG) communication. In a CIG communication scenario, after establishing an asynchronous connections-less (ACL) link connection with a slave Bluetooth device, the master Bluetooth device can set CIG parameters and then establish multiple connected isochronous stream (CIS) links with the slave Bluetooth device based on the set CIG parameters and the CIS establishment process. Data streams are transmitted through these multiple CIS links. The data stream transmitted on each CIS link is a CIS, and the CIS transmitted on multiple CIS links constitute a CIG. CIS within the same CIG have the same timestamp, meaning they are time-synchronized. Slave Bluetooth devices that receive CIS from the same CIG can be considered slave Bluetooth devices belonging to the same CIG. The master Bluetooth device sends CIS signals through the channels corresponding to the CIS links; these channels are a subset of the 37 data channels.

[0031] When there are multiple master Bluetooth devices in the same space, such as Figure 1 As shown, if multiple master Bluetooth devices communicate synchronously within the same time period, since they all use data channels out of the 37 data channels, multiple master Bluetooth devices may simultaneously send synchronization streams on the same data channel. This can cause interference between the multiple master Bluetooth devices and reduce the stability of synchronous communication.

[0032] In view of this, this application proposes a technical solution that, when multiple master Bluetooth devices are communicating synchronously in the same space and within the same time period, negotiates and allocates channels among the multiple master Bluetooth devices, ensuring that each master Bluetooth device uses a different channel. This avoids multiple master Bluetooth devices simultaneously sending synchronization streams on the same channel in the same space, thus improving the stability of synchronous communication. The technical solution of this application is described in detail below. This technical solution can be applied to a first master Bluetooth device, which can be any single master Bluetooth device.

[0033] See Figure 2 , Figure 2 This is a flowchart illustrating a Bluetooth communication method provided in an embodiment of this application, as shown below. Figure 2 As shown, this method can be applied to a first master Bluetooth device, which can be... Figure 1 Any of the master Bluetooth devices in the system. The method includes the following steps:

[0034] S201, during the synchronization communication process, the first master Bluetooth device obtains the first synchronization group information and the second synchronization group information of the second master Bluetooth device.

[0035] Here, the first synchronization group information refers to the synchronization group information required for the first master Bluetooth device to perform synchronization communication. If the synchronization communication performed by the first master Bluetooth device is BIG communication, then the first synchronization group information is BIG information; if the synchronization communication performed by the first master Bluetooth device is CIG communication, then the first synchronization group information is CIG information. The first master Bluetooth device can obtain the first synchronization group information based on the created synchronization group; if the synchronization communication performed by the first master Bluetooth device is BIG communication, then the first master Bluetooth device obtains the first synchronization group information based on the created BIG; if the synchronization communication performed by the first master Bluetooth device is CIG communication, then the first master Bluetooth device obtains the first synchronization group information based on the created CIG. If the synchronization communication performed by the first master Bluetooth device includes both BIG communication and CIG communication, then the first synchronization group information includes both BIG information and CIG information. The first master Bluetooth device can obtain the BIG information and CIG information from the created BIG and CIG respectively to obtain the first synchronization group information. That is, the first synchronization group information includes BIG information corresponding to at least one BIG, and / or CIG information corresponding to at least one CIG.

[0036] Two master Bluetooth devices in the same space can refer to two master Bluetooth devices whose communication ranges overlap. A second master Bluetooth device can refer to a master Bluetooth device whose communication range overlaps with that of the first master Bluetooth device.

[0037] The second synchronization group information is the synchronization group information required for the second master Bluetooth device to perform synchronization communication. If the synchronization communication performed by the second master Bluetooth device is BIG communication, then the second synchronization group information is BIG information; if the synchronization communication performed by the second master Bluetooth device is CIG communication, then the second synchronization group information is CIG information; if the synchronization communication performed by the second master Bluetooth device includes both BIG communication and CIG communication, then the second synchronization group information includes both BIG information and CIG information.

[0038] In one feasible implementation, the first master Bluetooth device can establish a communication connection with the second master Bluetooth device and obtain the second synchronization group information through the communication connection with the second master Bluetooth device.

[0039] The establishment of a communication connection between the first master Bluetooth device and the second master Bluetooth device can occur in the following ways:

[0040] (1) The establishment of a communication connection between the first master Bluetooth device and the second master Bluetooth device can be triggered by the user.

[0041] In this scenario, assuming the first and second master Bluetooth devices are in the same space and need to synchronize their communication within the same time period, the user can turn on both devices and trigger the first device to initiate a Bluetooth connection establishment process. The first device can then establish a Bluetooth Low Energy (BLE) or CIS connection with the second device based on the user's trigger, thus establishing a communication connection between them. Alternatively, the user can also trigger the second device to initiate a Bluetooth connection establishment process, and the second device can then establish a BLE or CIS connection with the first device based on the user's trigger, thus establishing a communication connection between them.

[0042] (2) The establishment of communication between the first master Bluetooth device and the second master Bluetooth device can also be triggered by the first master Bluetooth device based on the current communication status.

[0043] In this scenario, before initiating synchronous communication transmission, the first master Bluetooth device can scan its surrounding space to determine if a preset Bluetooth broadcast message exists. If such a message exists, it indicates the presence of a second master Bluetooth device, and the device sending the broadcast message becomes the second master Bluetooth device. The first device then initiates a Bluetooth connection establishment process to establish a BLE or CIS connection with the second master Bluetooth device. The preset Bluetooth broadcast message is a predefined Bluetooth broadcast message used to indicate that the master Bluetooth device is conducting synchronous communication. This message may carry a synchronization communication identifier, which indicates the synchronous communication maintained by the master Bluetooth device. After detecting the broadcast message, the first master Bluetooth device can identify whether the identifier exists. If the identifier exists, the detected broadcast message is identified as the preset Bluetooth broadcast message; otherwise, it is determined that the broadcast message is not the preset Bluetooth broadcast message. If the synchronization communication performed by the master Bluetooth device is BIG communication, the synchronization communication identifier can be BIG information; if the synchronization communication performed by the master Bluetooth device is CIG communication, the synchronization communication identifier can be a custom identifier.

[0044] By first establishing a communication connection with the second master Bluetooth device, and then obtaining the synchronization group information of the second master Bluetooth device through the communication connection, it is possible to ensure stable acquisition of the synchronization group information of the second master Bluetooth device, which facilitates subsequent channel analysis.

[0045] In other possible scenarios, before initiating synchronization communication, the first master Bluetooth device may scan its surroundings. If only BIG information or BIS is detected, it indicates the presence of a second master Bluetooth device in the environment. The synchronization communication performed by the second master Bluetooth device is BIG communication, and the first master Bluetooth device can identify the device sending the BIG information or BIS as the second master Bluetooth device. The first master Bluetooth device may choose to join the BIG communication and listen for the BIG information sent by the second master Bluetooth device on the BIG broadcast channel to obtain the second synchronization group information.

[0046] The first master Bluetooth device determining the second master Bluetooth device and obtaining the second synchronization group information of the second master Bluetooth device are not limited to the above-described situations, and there can be many other implementation methods, which are not limited in this application.

[0047] S202, the first master Bluetooth device determines the first channel set and the second channel set based on the first synchronization group information and the second synchronization group information.

[0048] Here, the first channel set is the channel set used for synchronization communication by the first master Bluetooth device. The first master Bluetooth device can obtain the first channel set from the first synchronization group information. If the synchronization communication performed by the first master Bluetooth device is BIG communication, then the first channel set is the channel set corresponding to the BIS link, and the first channel set includes the channels in the channel frequency hopping table in the BIG information; if the synchronization communication performed by the first master Bluetooth device is CIG communication, then the first channel set is the channel set corresponding to the CIS link, and the first channel set includes the channels in the CIG information.

[0049] The second channel set is the channel set used for synchronization communication by the second master Bluetooth device. The first master Bluetooth device can obtain the second channel set from the second synchronization group information. If the synchronization communication performed by the second master Bluetooth device is BIG communication, the second channel set is the channel set corresponding to the BIS link, and the second channel set includes the channels in the channel frequency hopping table in the BIG information; if the synchronization communication performed by the second master Bluetooth device is CIG communication, then the second channel set is the channel set corresponding to the CIS link, and the second channel set includes the channels in the CIG information.

[0050] S203, if the channel overlap between the first channel set and the second channel set is greater than a preset overlap, the first master Bluetooth device and the second master Bluetooth device negotiate to allocate the first channel set and the second channel set so that the channel overlap between the first channel set and the second channel set is less than the preset overlap.

[0051] Here, the channel overlap between the first channel set and the second channel set can be measured based on the number of targets in the target channel in the first channel set and the second channel set, or it can be measured based on the ratio between the number of targets in the target channel and the number in the first channel set, where the target channel belongs to both the first channel set and the second channel set.

[0052] For example, the first channel set is {channel #0 (2402 MHz), channel #5 (2414 MHz), channel #8 (2420 MHz), channel #11 (2428 MHz), channel #22 (2450 MHz), channel #25 (2456 MHz), channel #28 (2462 MHz)}, and the second channel set is {channel #2 (2408 MHz), channel #4 (2412 MHz), channel #8 (2420 MHz), channel #11 (2428 MHz), channel # If we have channel #22 (2450MHz), channel #26 (2458MHz), and channel #28 (2462MHz), then the target channels are {channel #8 (2420MHz), channel #11 (2428MHz), channel #22 (2450MHz), and channel #28 (2462MHz)}. The channel overlap between the first channel set and the second channel set can be either the number of target channels, which is 4, or the ratio between the number of target channels and the number of channels in the first channel set, which is 4 / 7.

[0053] After determining the first and second channel sets, it can be first determined whether a target channel exists based on the first and second channel sets. If no target channel exists, the channel overlap between the first and second channel sets is determined to be less than a preset overlap. If a target channel exists, the channel overlap between the first and second channel sets is determined based on the target channel, and then compared with the preset overlap to determine whether the channel overlap between the first and second channel sets is greater than the preset overlap. If the channel overlap between the first and second channel sets is less than or equal to the preset overlap, no processing is performed, and synchronization communication proceeds directly. If the channel overlap between the first and second channel sets is greater than the preset overlap, the allocation of the first and second channel sets is negotiated with the second master Bluetooth device.

[0054] The first master Bluetooth device can negotiate and allocate a first channel set and a second channel set through a BLE connection or a CIS connection with the second master Bluetooth device. Hereinafter, the channels in the first channel set will be referred to as the first channel, and the channels in the second channel set will be referred to as the second channel.

[0055] In some possible cases, the first and second channel sets can be negotiated and allocated through channel deletion and supplementation.

[0056] In one feasible implementation, the first master Bluetooth device may delete the target channel from the first channel set and add a target number of third channels to the first channel set, the third channels being different from the second channels.

[0057] For example, the first channel set is {channel #0 (2402 MHz), channel #5 (2414 MHz), channel #8 (2420 MHz), channel #11 (2428 MHz), channel #22 (2450 MHz), channel #25 (2456 MHz), channel #28 (2462 MHz)}, and the second channel set is {channel #2 (2408 MHz), channel #4 (2412 MHz), channel #8 (2420 MHz), channel #1}. Channels #1 (2428MHz), #22 (2450MHz), #26 (2458MHz), and #28 (2462MHz) are available. The target channels are {channel #8 (2420MHz), #11 (2428MHz), #22 (2450MHz), and #28 (2462MHz)}. The first master Bluetooth device can delete channel #8 (2420MHz) and channel #11 (2428MHz) from the first channel set. Channels #22 (2450MHz) and #28 (2462MHz) are used to obtain the first set of channels after deletion: {channel #0 (2402MHz), channel #5 (2414MHz), channel #25 (2456MHz)}. Since four channels were deleted from the first set, the remaining 27 data channels (excluding the second channel) are {channel 1 (2404MHz), channel 3 (2410MHz), channel 6 (2416MHz)}. Four channels are randomly selected from the following channels: channel 7 (2418 MHz), channel 9 (2422 MHz), channel 10 (2424 MHz), channel 12 (2430 MHz) to channel 21 (2448 MHz), channel 23 (2452 MHz), channel 24 (2454 MHz), channel 27 (2460 MHz), and channel 29 (2464 MHz) to channel 36 (2478 MHz). These four channels are then added to the first channel set as the third channel.

[0058] In another feasible implementation, the first master Bluetooth device may also negotiate with the second master Bluetooth device to delete the target channel in the second channel set and add a target number of fourth channels in the second channel set, the fourth channels being different from the first channels.

[0059] For example, the first channel set is {channel #0 (2402 MHz), channel #5 (2414 MHz), channel #8 (2420 MHz), channel #11 (2428 MHz), channel #22 (2450 MHz), channel #25 (2456 MHz), channel #28 (2462 MHz)}, and the second channel set is {channel #2 (2408 MHz), channel #4 (2412 MHz), channel #8 (2420 MHz), channel #11 (2428 MHz)}. The target channels are {channel #8 (2420MHz), channel #11 (2428MHz), channel #22 (2450MHz), and channel #28 (2462MHz)}. The first master Bluetooth device can negotiate with the second master Bluetooth device to delete channel #8 (2420MHz) and channel #11 (2450MHz) from the second channel set. The first set of channels, after removing channels #28 (2450 MHz), #22 (2450 MHz), and #28 (2462 MHz), becomes the second set of channels: {channel #2 (2408 MHz), channel #4 (2412 MHz), channel #26 (2458 MHz)}. Since four channels were removed from the first set, the remaining 27 data channels (excluding the first channel) are {channel 1 (2404 MHz), channel 3 (2410 MHz), channel 6 (2416 MHz)}. Four channels are randomly selected from the following set: channel 7 (2418 MHz), channel 9 (2422 MHz), channel 10 (2424 MHz), channel 12 (2430 MHz) to channel 21 (2448 MHz), channel 23 (2452 MHz), channel 24 (2454 MHz), channel 27 (2460 MHz), channel 29 (2464 MHz) to channel 36 (2478 MHz). These four channels are then added as the fourth channel to the second channel set.

[0060] In other possible scenarios, the allocation of the first and second channel sets can also be negotiated by reconfiguring the channels of one of the master Bluetooth devices.

[0061] In one feasible implementation, the first channel set can be deleted from the first synchronization group information, and the fifth channel can be used as a channel in the first synchronization group information, the fifth channel being different from the first channel.

[0062] For example, the first channel set is {channel #0 (2402 MHz), channel #5 (2414 MHz), channel #8 (2420 MHz), channel #11 (2428 MHz), channel #22 (2450 MHz), channel #25 (2456 MHz), channel #28 (2462 MHz)}, and the second channel set is {channel #2 (2408 MHz), channel #4 (2412 MHz)}. If the channels are #8 (2420MHz), #11 (2428MHz), #22 (2450MHz), #26 (2458MHz), and #28 (2462MHz), then the first master Bluetooth device can delete channels #0 (2402MHz), #5 (2414MHz), #8 (2420MHz), and #11 (2428MHz) from the first synchronization group information. z), channel #22 (2450MHz), channel #25 (2456MHz), and channel #28 (2462MHz), and then 30 data channels excluding the second channel {channel 0 (2402MHz), channel 1 (2404MHz), channel 3 (2410MHz), channel 5 (2414MHz)~channel 7 (2418MHz), channel 9 (2422MHz), channel 1 From the following channels: 0 (2424MHz), 12 (2430MHz)~21 (2448MHz), 23 (2452MHz)~25 (2456MHz), 27 (2460MHz), 29 (2464MHz)~36 (2478MHz), n1 channels are randomly selected as the fifth channel, which is the channel in the first synchronization group information, and 1≤n1≤30.

[0063] In another feasible implementation, it is also possible to negotiate with the second master Bluetooth device to delete the second channel set in the second synchronization group information and use the sixth channel as the channel in the second synchronization group information, the sixth channel being different from the first channel.

[0064] For example, the first channel set is {channel #0 (2402 MHz), channel #5 (2414 MHz), channel #8 (2420 MHz), channel #11 (2428 MHz), channel #22 (2450 MHz), channel #25 (2456 MHz), channel #28 (2462 MHz)}, and the second channel set is {channel #2 (2408 MHz), channel #4 (2412 MHz), channel # If the first master Bluetooth device can negotiate with the second master Bluetooth device to delete channel #2 (2408MHz), channel #4 (2412MHz), channel #8 (2420MHz), and channel #11 (2420MHz) from the second synchronization group information, then the first master Bluetooth device can negotiate with the second master Bluetooth device to delete channel #2 (2408MHz), channel #4 (2412MHz), channel #8 (2420MHz), and channel #11 (2420MHz) from the second synchronization group information. 28MHz), channel #22 (2450MHz), channel #26 (2458MHz), and channel #28 (2462MHz). Then, excluding the first channel, there are 30 data channels: channel 1 (2404MHz) to channel 4 (2412MHz), channel 6 (2416MHz), channel 7 (2418MHz), channel 9 (2422MHz), channel 10 (2424MHz), channel #28 (2450MHz), channel #26 (2458MHz), and channel #28 (2462MHz). From channel 12 (2430MHz) to channel 21 (2448MHz), channel 23 (2452MHz), channel 24 (2454MHz), channel 26 (2458MHz), channel 27 (2460MHz), channel 29 (2464MHz) to channel 36 (2478MHz), n2 channels are randomly selected as the sixth channel, which is the channel in the second synchronization group information, and 1≤n2≤30.

[0065] In some other possible scenarios, the allocation of the first and second channel sets can also be negotiated by assigning the same channels. The allocation of the first and second channel sets can be negotiated through the following steps A1-A3:

[0066] A1. Divide the target channels according to the number of targets to obtain the first target channel and the second target channel.

[0067] In one feasible implementation, the target channels can be equally divided into a first target channel and a second target channel according to the number of targets. For example, if the target channels are {channel #8 (2420MHz), channel #11 (2428MHz), channel #22 (2450MHz), channel #28 (2462MHz)}, and the number of targets is 4, then the target channels can be equally divided to obtain the first target channel as {channel #8 (2420MHz), channel #11 (2428MHz)}, and the second target channel as {channel #22 (2450MHz), channel #28 (2462MHz)}.

[0068] Alternatively, the target channels can be randomly divided according to the number of targets. For example, if the number of targets is 4, the target channels can be divided in a 1:3 ratio.

[0069] A2. Delete the first target channel from the first channel set.

[0070] For example, if the first channel set is {channel #0 (2402 MHz), channel #5 (2414 MHz), channel #8 (2420 MHz), channel #11 (2428 MHz), channel #22 (2450 MHz), channel #25 (2456 MHz), channel #28 (2462 MHz)}, and the first target channel is {channel #8 (2420 MHz), channel #11 (2428 MHz)}, then the first channel set after deleting the first target channel is {channel #0 (2402 MHz), channel #5 (2414 MHz), channel #22 (2450 MHz), channel #25 (2456 MHz), channel #28 (2462 MHz)}.

[0071] Optionally, after deleting the first target channel from the first channel set, a seventh channel can be added to the first channel set. This seventh channel differs from the second channel, and the number of seventh channels is the same as the number of first target channels. This ensures that the number of channels used for synchronous communication by the first master Bluetooth device remains constant, guaranteeing communication reliability.

[0072] For example, if the first target channel is {channel #8 (2420 MHz), channel #11 (2428 MHz)}, then two channels can be randomly selected from the 30 data channels other than the second channel {channel 0 (2402 MHz), channel 1 (2404 MHz), channel 3 (2410 MHz), channel 5 (2414 MHz) to channel 7 (2418 MHz), channel 9 (2422 MHz), channel 10 (2424 MHz), channel 12 (2430 MHz) to channel 21 (2448 MHz), channel 23 (2452 MHz) to channel 25 (2456 MHz), channel 27 (2460 MHz), channel 29 (2464 MHz) to channel 36 (2478 MHz)} as the seventh channel and added to the first channel set.

[0073] A3. Negotiate with the second master Bluetooth device to remove the second target channel from the second channel set.

[0074] For example, if the second channel set is {channel #2 (2408 MHz), channel #4 (2412 MHz), channel #8 (2420 MHz), channel #11 (2428 MHz), channel #22 (2450 MHz), channel #26 (2458 MHz), channel #28 (2462 MHz)}, and the second target channel is {channel #22 (2450 MHz), channel #28 (2462 MHz)}, then after negotiating with the second master Bluetooth device to delete the second target channel, the second channel set after deleting the second target channel is {channel #2 (2408 MHz), channel #4 (2412 MHz), channel #8 (2420 MHz), channel #11 (2428 MHz), channel #26 (2458 MHz)}.

[0075] In some possible cases, if the channel overlap between the first channel set and the second channel set is less than or equal to a preset overlap, the target channel can be deleted from the first channel set, or the target channel can be deleted from the second channel set in consultation with the second master Bluetooth device.

[0076] exist Figure 2 In the corresponding technical solution, during synchronous communication, the device first obtains its own first synchronization group information, then obtains the second synchronization group information of the second master Bluetooth device, and then determines the first channel set for synchronous communication and the second channel set for synchronous communication with the second master Bluetooth device based on the first and second synchronization group information. If the channel overlap between the first and second channel sets is greater than a preset overlap, the device negotiates with the second master Bluetooth device to allocate the first and second channel sets. This can prevent multiple master Bluetooth devices from performing synchronous communication on the same channel in the same time period, thus reducing mutual interference between multiple master Bluetooth devices and improving the stability of synchronous communication.

[0077] After negotiating and allocating a channel with the second master Bluetooth device, the first master Bluetooth device can also update the first synchronization group information to update the communication parameters within the first synchronization group information. When the first channel set changes, the first master Bluetooth device can perform the above process again. Figure 2 The corresponding technical solution: After the second master Bluetooth device updates the second synchronization group information, it can send the updated second synchronization group information to the first master Bluetooth device, so that the first master Bluetooth device can perform the above again. Figure 2 The corresponding technical solution.

[0078] It should be understood that the above Figure 2The corresponding technical solution is described in this application, which involves two master Bluetooth devices communicating synchronously within the same space during the same time period. When two or more master Bluetooth devices communicate synchronously within the same space during the same time period, the master Bluetooth devices within the same space can be grouped into pairs and the above-mentioned procedures can be performed. Figure 2 The technical solution aims to reduce interference between multiple master Bluetooth devices.

[0079] The method of this application has been described above; the apparatus of this application will be described below.

[0080] See Figure 3 , Figure 3 This application provides a schematic diagram of a Bluetooth communication device, applied to a first master Bluetooth device, which can be... Figure 1 Any of the main Bluetooth devices in the list. For example... Figure 3 As shown, the Bluetooth communication device 30 includes:

[0081] The information acquisition module 301 is used to acquire first synchronization group information and second synchronization group information of the second master Bluetooth device during the synchronous communication process. The first synchronization group information is the synchronization group information required by the first master Bluetooth device for synchronous communication, and the second synchronization group information is the synchronization group information required by the second master Bluetooth device for synchronous communication.

[0082] The channel determination module 302 is used to determine a first channel set and a second channel set based on the first synchronization group information and the second synchronization group information, wherein the first channel set is the channel set for the first master Bluetooth device to perform synchronous communication, and the second channel set is the channel set for the second master Bluetooth device to perform synchronous communication.

[0083] The negotiation module 303 is used to negotiate with the second master Bluetooth device to allocate the first channel set and the second channel set when the channel overlap between the first channel set and the second channel set is greater than a preset overlap, so that the channel overlap between the first channel set and the second channel set is less than the preset overlap.

[0084] In one possible design, the negotiation module 303 is further configured to: delete a target channel in the first channel set when the channel overlap between the first channel set and the second channel set is less than or equal to the preset overlap, or negotiate with the second master Bluetooth device to delete a target channel in the second channel set, wherein the target channel belongs to both the first channel set and the second channel set.

[0085] In one possible design, the information acquisition module 301 is specifically used to: delete the target channel in the first channel set when the channel overlap between the first channel set and the second channel set is less than or equal to the preset overlap, or negotiate with the second master Bluetooth device to delete the target channel in the second channel set, wherein the target channel belongs to both the first channel set and the second channel set.

[0086] In one possible design, the channels in the first channel set are first channels, and the channels in the second set are second channels; the negotiation module 303 is specifically used to: delete a target channel in the first channel set, and add a target number of third channels to the first channel set, wherein the target channel belongs to both the first channel set and the second channel set, the target number is the number of target channels, and the third channel is different from the second channel; and / or, negotiate with the second master Bluetooth device to delete the target channel in the second channel set, and add a target number of fourth channels to the second channel set, wherein the fourth channel is different from the first channel.

[0087] In one possible design, the channels in the first channel set are the first channels, and the channels in the second set are the second channels; the negotiation module 303 is specifically used to: delete the first channel set from the first synchronization group information and use the fifth channel as a channel in the first synchronization group information, wherein the fifth channel is different from the second channel; or, negotiate with the second master Bluetooth device to delete the second channel set from the second synchronization group information and use the sixth channel as a channel in the second synchronization group information, wherein the sixth channel is different from the first channel.

[0088] In one possible design, the negotiation module 303 is specifically used to: divide the target channels according to the target number to obtain a first target channel and a second target channel, wherein the target number is the number of target channels, and the target channel belongs to both the first channel set and the second channel set; delete the first target channel in the first channel set, and negotiate with the second master Bluetooth device to delete the second target channel in the second channel set.

[0089] In one possible design, the channels in the second set are the second channels; the negotiation module 303 is further configured to: add a seventh channel to the first channel set, the seventh channel being different from the second channel, and the number of the seventh channels being the same as the number of the first target channels.

[0090] It should be noted that, Figure 3 For any content not mentioned in the corresponding embodiments, please refer to the description of the foregoing method embodiments, which will not be repeated here.

[0091] In the process of synchronous communication, the above-mentioned device first obtains its own first synchronization group information, then obtains the second synchronization group information of the second master Bluetooth device, and then determines the first channel set for synchronous communication and the second channel set for synchronous communication with the second master Bluetooth device based on the first and second synchronization group information. If the channel overlap between the first and second channel sets is greater than a preset overlap, the device negotiates with the second master Bluetooth device to allocate the first and second channel sets. This can avoid multiple master Bluetooth devices from performing synchronous communication on the same channel in the same time period, thereby reducing mutual interference between multiple master Bluetooth devices and improving the stability of synchronous communication.

[0092] See Figure 4 , Figure 4 This is a schematic diagram of the structure of a Bluetooth device provided in an embodiment of this application. The Bluetooth device 40 includes a processor 401, a memory 402, and a transceiver 403. The memory 402 is connected to the processor 401, for example, via a bus. This Bluetooth device is a first master Bluetooth device, which can be... Figure 1 Any of the main Bluetooth devices.

[0093] Processor 401 is configured to support the Bluetooth device 40 in performing the corresponding functions in the methods described in the above method embodiments. Processor 401 may be a central processing unit (CPU), a network processor (NP), a hardware chip, or any combination thereof. The aforementioned hardware chip may be an application-specific integrated circuit (ASIC), a programmable logic device (PLD), or a combination thereof. The aforementioned PLD may be a complex programmable logic device (CPLD), a field-programmable gate array (FPGA), a generic array logic (GAL), or any combination thereof.

[0094] Memory 402 is used to store program code, etc. Memory 402 may include volatile memory (VM), such as random access memory (RAM); memory 402 may also include non-volatile memory (NVM), such as read-only memory (ROM), flash memory, hard disk drive (HDD), or solid-state drive (SSD); memory 402 may also include combinations of the above types of memory.

[0095] Transceiver 403 is used to transmit data; specifically, transceiver 403 is a Bluetooth transceiver.

[0096] Processor 401 can call the program code to perform the following operations:

[0097] During the synchronous communication process, the first synchronization group information is obtained, and the second synchronization group information of the second master Bluetooth device is obtained. The first synchronization group information is the synchronization group information required by the first master Bluetooth device for synchronous communication, and the second synchronization group information is the synchronization group information required by the second master Bluetooth device for synchronous communication.

[0098] Based on the first synchronization group information and the second synchronization group information, a first channel set and a second channel set are determined. The first channel set is the channel set for the first master Bluetooth device to perform synchronous communication, and the second channel set is the channel set for the second master Bluetooth device to perform synchronous communication.

[0099] If the channel overlap between the first channel set and the second channel set is greater than a preset overlap, negotiate with the second master Bluetooth device to allocate the first channel set and the second channel set so that the channel overlap between the first channel set and the second channel set is less than the preset overlap.

[0100] This application also provides a computer-readable storage medium storing a computer program, the computer program including program instructions, which, when executed by a computer, cause the computer to perform the method described in the foregoing embodiments.

[0101] Those skilled in the art will understand that all or part of the processes in the above embodiments can be implemented by a computer program instructing related hardware. The program can be stored in a computer-readable storage medium, and when executed, it can include the processes of the embodiments of the above methods. The storage medium can be a magnetic disk, optical disk, read-only memory (ROM), or random access memory (RAM), etc.

[0102] The above-disclosed embodiments are merely preferred embodiments of this application and should not be construed as limiting the scope of this application. Therefore, any equivalent variations made in accordance with the claims of this application shall still fall within the scope of this application.

Claims

1. A Bluetooth communication method, characterized in that, Applied to a first master Bluetooth device, wherein the first master Bluetooth device is any master Bluetooth device, the method includes: During the synchronous communication process, the first synchronization group information is obtained, and the second synchronization group information of the second master Bluetooth device is obtained. The first synchronization group information is the synchronization group information required by the first master Bluetooth device for synchronous communication, and the second synchronization group information is the synchronization group information required by the second master Bluetooth device for synchronous communication. Based on the first synchronization group information and the second synchronization group information, a first channel set and a second channel set are determined. The first channel set is the channel set for the first master Bluetooth device to perform synchronous communication, and the second channel set is the channel set for the second master Bluetooth device to perform synchronous communication. If the channel overlap between the first channel set and the second channel set is greater than a preset overlap, negotiate with the second master Bluetooth device to allocate the first channel set and the second channel set so that the channel overlap between the first channel set and the second channel set is less than the preset overlap.

2. The method according to claim 1, characterized in that, The method further includes: If the channel overlap between the first channel set and the second channel set is less than or equal to the preset overlap, the target channel is deleted from the first channel set, or the target channel is deleted from the second channel set in consultation with the second master Bluetooth device. The target channel belongs to both the first channel set and the second channel set.

3. The method according to claim 1, characterized in that, The step of obtaining the second synchronization group information of the second master Bluetooth device includes: Establish a communication connection with the second master Bluetooth device; The second synchronization group information of the second master Bluetooth device is obtained through the communication connection.

4. The method according to any one of claims 1-3, characterized in that, The channels in the first channel set are the first channels, and the channels in the second channel set are the second channels; The negotiation with the second master Bluetooth device to allocate the first channel set and the second channel set includes: Delete the target channel from the first channel set, and add a target number of third channels to the first channel set, wherein the target channels belong to both the first channel set and the second channel set, the target number is the number of the target channels, and the third channels are different from the second channels; and / or Negotiate with the second master Bluetooth device to delete the target channel in the second channel set, and add a target number of fourth channels to the second channel set, the fourth channels being different from the first channels.

5. The method according to any one of claims 1-3, characterized in that, The channels in the first channel set are the first channels, and the channels in the second channel set are the second channels; The negotiation with the second master Bluetooth device to allocate the first channel set and the second channel set includes: The first channel set is deleted from the first synchronization group information, and the fifth channel is added as a channel in the first synchronization group information, wherein the fifth channel is different from the second channel; or... Negotiate with the second master Bluetooth device to remove the second channel set from the second synchronization group information, and use the sixth channel as a channel in the second synchronization group information, wherein the sixth channel is different from the first channel.

6. The method according to any one of claims 1-3, characterized in that, The negotiation with the second master Bluetooth device to allocate the first channel set and the second channel set includes: The target channels are divided according to the target quantity to obtain the first target channel and the second target channel. The target quantity is the number of target channels. The target channels belong to both the first channel set and the second channel set. Remove the first target channel from the first channel set, and negotiate with the second master Bluetooth device to remove the second target channel from the second channel set.

7. The method according to claim 6, characterized in that, The channels in the second channel set are the second channels; After deleting the first target channel from the first channel set, the method further includes: A seventh channel is added to the first channel set. The seventh channel is different from the second channel, and the number of the seventh channel is the same as the number of the first target channels.

8. A Bluetooth communication device, characterized in that, Applied to a first master Bluetooth device, wherein the first master Bluetooth device is any master Bluetooth device; the device includes: The information acquisition module is used to acquire first synchronization group information and second synchronization group information of the second master Bluetooth device during the synchronous communication process. The first synchronization group information is the synchronization group information required by the first master Bluetooth device for synchronous communication, and the second synchronization group information is the synchronization group information required by the second master Bluetooth device for synchronous communication. The channel determination module is used to determine a first channel set and a second channel set based on the first synchronization group information and the second synchronization group information, wherein the first channel set is the channel set for the first master Bluetooth device to perform synchronous communication, and the second channel set is the channel set for the second master Bluetooth device to perform synchronous communication. The negotiation module is used to negotiate with the second master Bluetooth device to allocate the first channel set and the second channel set when the channel overlap between the first channel set and the second channel set is greater than a preset overlap, so that the channel overlap between the first channel set and the second channel set is less than the preset overlap.

9. A Bluetooth device, characterized in that, The device includes a memory, a processor, and a transceiver, the memory and the transceiver being connected to the processor, the transceiver being used to send or receive data, and the processor being used to execute one or more computer programs stored in the memory, wherein, when executing the one or more computer programs, the processor causes the Bluetooth device to implement the method as described in any one of claims 1-7.

10. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores a computer program, the computer program including program instructions that, when executed by a processor, cause the processor to perform the method as described in any one of claims 1-7.

Citation Information

Patent Citations

  • Bluetooth communication method, device, equipment, system and storage medium

    CN116567598A

  • Bluetooth receiving method, bluetooth receiver, and bluetooth audio device

    US20190394627A1