Synchronization method for periodic broadcast in Bluetooth device group and Bluetooth device group
By establishing a connection with the main Bluetooth equipment in the Bluetooth equipment group, the periodic broadcast information of the main Bluetooth device is directly received and synchronized with the main Bluetooth equipment, which solves the problem of synchronization failure caused by scanning errors and environmental interference during the synchronization process. Synchronous efficiency and reduce power consumption.
Patent Information
- Application Number
- CN202411521140.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-10-29
- Publication Date
- 2025-01-24
AI Technical Summary
When synchronizing periodic broadcasts, existing Bluetooth device groups are prone to synchronization failure due to scan window errors and environmental interference, thereby increasing the power consumption of Bluetooth devices.
Establish a connection with the main Bluetooth device by accessing the Bluetooth device, directly receive the periodic broadcast synchronization information transmitted by the main Bluetooth device, and perform synchronization operations in the designated time slot, avoiding the step of scanning periodic broadcasts.
Significantly improved the synchronization efficiency, reduced the probability of synchronization failure, and reduced the power consumption of access to Bluetooth equipment.
Smart Images

Figure CN119364325A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of Bluetooth audio, and in particular to a synchronization method for periodic broadcasting within a Bluetooth device group and a Bluetooth device group. Background Art
[0002] Periodic Advertising (PA) is a broadcast mechanism in the Bluetooth low energy specification. It allows the source device to continuously broadcast data at fixed time intervals, and the connected Bluetooth device can receive data at each broadcast interval after synchronization is established. PA is suitable for scenarios that require continuous and low-power data transmission, such as sensor data, audio data, etc., and is of great significance for achieving stable and reliable data transmission. The broadcast data can include the device identification information of the source device, the UUID of the service provided by the source device, pairing or connection information, etc.
[0003] The existing Bluetooth device group shares the periodic broadcast (PA) or Bluetooth broadcast audio source information of the source device that all Bluetooth devices need to receive through a master Bluetooth device. When the connected Bluetooth device needs to listen, it first interacts with the master Bluetooth device to obtain the address information of the source device and / or the synchronization volume and other information, and then uses this information to perform PA and / or broadcast isochronous group (BIG), BIG (Broadcast isochronous group, broadcast synchronization group) synchronization operations. However, since there may be errors in the scanning window of the connected Bluetooth device and the PA broadcast of the source device, and in an environment with poor air transmission quality, much interference, and many broadcasting devices, the difficulty of synchronization will be greatly increased, which will lead to synchronization failure and increased power consumption of the connected Bluetooth device. Summary of the invention
[0004] In order to solve the above problems, the present invention provides a synchronization method for periodic broadcasting within a Bluetooth device group and a Bluetooth device group.
[0005] A first aspect of the present invention discloses a synchronization method for periodic broadcasting within a Bluetooth device group, wherein the Bluetooth device group includes an access Bluetooth device and a master Bluetooth device, wherein the master Bluetooth device is synchronized with a source device, and the method is applied to the access Bluetooth device, comprising:
[0006] Establishing a connection with the master Bluetooth device;
[0007] Receiving periodic broadcast synchronization transmission information from the master Bluetooth device;
[0008] The periodic broadcast of the source device is synchronized according to the periodic broadcast synchronization transmission information. After the synchronization is completed, the access Bluetooth device is identified as the master Bluetooth device.
[0009] Furthermore, the step of establishing a connection with the master Bluetooth device includes:
[0010] Scan and receive all first periodic broadcast information on all Bluetooth broadcast channels;
[0011] Filtering all the first periodic broadcast information to obtain target broadcast information, and using a sending device of the target broadcast information as the master Bluetooth device;
[0012] A request for establishing a connection is sent to the master Bluetooth device, thereby establishing a Bluetooth low energy connection with the master Bluetooth device.
[0013] Further, the step of screening all the first periodic broadcast information to obtain the target broadcast information includes:
[0014] Traverse all the identity information and confirmation information carried in the first periodic broadcast information. When the identity information belongs to the Bluetooth device group and the confirmation information confirms that the corresponding Bluetooth device can serve as the main Bluetooth device, the first periodic broadcast information is the target broadcast information.
[0015] Furthermore, the step of establishing a connection with the master Bluetooth device includes:
[0016] Broadcasting Bluetooth low energy broadcast information at a scheduled time, wherein the Bluetooth low energy broadcast information conforms to a predetermined format and is of a type of requesting synchronous periodic broadcast;
[0017] Receive a connection establishment request sent by the master Bluetooth device, and establish a Bluetooth low energy connection with the master Bluetooth device.
[0018] A second aspect of the present invention discloses a synchronization method for periodic broadcasting within a Bluetooth device group, wherein the Bluetooth device group includes an access Bluetooth device and a master Bluetooth device, wherein the master Bluetooth device is synchronized with a source device, and the method is applied to the master Bluetooth device, and the synchronization includes:
[0019] Establishing a connection with the access Bluetooth device;
[0020] Sending periodic broadcast synchronization transfer information to the access Bluetooth device, wherein the periodic broadcast synchronization transfer information includes information used to synchronize the source device.
[0021] Further, establishing a connection with the access Bluetooth device includes:
[0022] Scan and receive all Bluetooth low energy broadcast information on all Bluetooth broadcast channels;
[0023] Filtering all the Bluetooth low energy broadcast information to obtain second target broadcast information, and using a sending device of the second target broadcast information as the access Bluetooth device;
[0024] A request for establishing a connection is sent to the access Bluetooth device, thereby establishing a Bluetooth low energy connection with the access Bluetooth device.
[0025] Further, the filtering out the second target broadcast information from all the Bluetooth low energy broadcast information includes:
[0026] All Bluetooth low energy broadcast information are traversed, and any Bluetooth low energy broadcast information having a format that conforms to a predetermined format and a request type of requesting synchronous periodic broadcast is selected as the second target broadcast information.
[0027] Further, establishing a connection with the access Bluetooth device includes:
[0028] Regularly broadcasting first periodic broadcast information, wherein the first periodic broadcast information includes identity information of the Bluetooth device group and confirmation information confirming that the device can serve as a master Bluetooth device;
[0029] Receive a connection establishment request sent by the access Bluetooth device, and establish a Bluetooth low energy connection with the access Bluetooth device.
[0030] Furthermore, the synchronization method further includes:
[0031] The broadcast synchronization group information in the second periodic broadcast information of the source device is monitored and analyzed in real time, and when the broadcast synchronization group information changes, the source device is synchronized according to the broadcast synchronization group information.
[0032] The third aspect of the present invention discloses a Bluetooth device group, which includes an access Bluetooth device and a master Bluetooth device, and can execute the synchronization method of periodic broadcasting within the Bluetooth device group as described in any one of the first and second aspects of the present invention.
[0033] The present invention does not need to obtain the address information of the source device from the main Bluetooth device and then scan and synchronize the PA, thereby reducing the power consumption of the access Bluetooth device; by enabling the access Bluetooth device to directly obtain the periodic broadcast synchronization information of the source device from the main Bluetooth device and specifying a synchronization time slot for periodic broadcast operations, without the need to scan the broadcast where the periodic broadcast is located and then synchronize, the synchronization efficiency is significantly improved and the probability of synchronization failure is reduced. BRIEF DESCRIPTION OF THE DRAWINGS
[0034] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the following briefly introduces the drawings required for use in the description of the embodiments. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.
[0035] Figure 1 It is a flow chart of a synchronization method for periodic broadcasting within a Bluetooth device group disclosed in an embodiment of the present invention;
[0036] Figure 2 It is a schematic diagram of synchronous periodic broadcasting within a Bluetooth device group consisting of four Bluetooth devices disclosed in an embodiment of the present invention;
[0037] Figure 3 It is a flow chart of synchronous periodic broadcasting within a Bluetooth device group consisting of three Bluetooth devices disclosed in an embodiment of the present invention;
[0038] Figure 4 It is a flow chart of implementing the method based on the HCI interface disclosed in the embodiment of the present invention;
[0039] Figure 5 It is a flow chart of another method for synchronizing periodic broadcasts within a Bluetooth device group disclosed in an embodiment of the present invention. DETAILED DESCRIPTION
[0040] In order to enable those skilled in the art to better understand the scheme of the present invention, the technical scheme in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0041] The terms "first", "second", etc. in the specification and claims of the present invention and the above-mentioned drawings are used to distinguish different objects, rather than to describe a specific order. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions. For example, a process, method, device, or product end including a series of steps or units is not limited to the listed steps or units, but may optionally include steps or units that are not listed, or may optionally include other steps or units inherent to these processes, methods, products, or ends.
[0042] Reference to "embodiments" herein means that a particular feature, structure, or characteristic described in conjunction with the embodiments may be included in at least one embodiment of the present invention. The appearance of the phrase in various places in the specification does not necessarily refer to the same embodiment, nor is it an independent or alternative embodiment that is mutually exclusive with other embodiments. It is explicitly and implicitly understood by those skilled in the art that the embodiments described herein may be combined with other embodiments.
[0043] Embodiment 1
[0044] See also Figure 1 As shown, Figure 1 The present invention discloses a method for synchronizing a Bluetooth device group with periodic broadcasts. The method refers to a Bluetooth device group including an access Bluetooth device and a master Bluetooth device, wherein the master Bluetooth device is synchronized with a source device. The method is applied to an access Bluetooth device. The Bluetooth device group may be a Bluetooth speaker group, which is not limited by the present invention. Figure 1 As shown, the synchronization method of periodic broadcasting within the Bluetooth device group may include the following operations:
[0045] S101, establishing a connection with a main Bluetooth device;
[0046] In an optional embodiment, the connection may be a Bluetooth Low Energy (LE) connection. LE (LowEnergy, Bluetooth Low Energy) connection.
[0047] In a further optional embodiment, the Bluetooth low energy connection is a symmetric encrypted connection.
[0048] In an optional embodiment, the step of establishing a connection with a master Bluetooth device includes:
[0049] Scan and receive all first periodic broadcast information on all Bluetooth broadcast channels;
[0050] Filtering all first periodic broadcast information to obtain target broadcast information, and using a sending device of the target broadcast information as a master Bluetooth device;
[0051] Send a request to establish a connection to the master Bluetooth device, thereby establishing a Bluetooth low energy connection with the master Bluetooth device.
[0052] In a further optional embodiment, the step of screening all first periodic broadcast information to obtain target broadcast information includes:
[0053] The identity information and confirmation information carried in all the first periodic broadcast information are traversed. When the identity information belongs to the Bluetooth device group and the confirmation information confirms that the corresponding Bluetooth device can be used as the main Bluetooth device, the first periodic broadcast information is the target broadcast information.
[0054] In an optional embodiment, the step of establishing a connection with a master Bluetooth device includes:
[0055] Broadcasting Bluetooth low energy broadcast information at regular intervals, where the Bluetooth low energy broadcast information complies with a predetermined format and is of a type of requesting synchronous periodic broadcast;
[0056] Receive a connection request from a master Bluetooth device and establish a Bluetooth low energy connection with the master Bluetooth device.
[0057] S102, receiving periodic broadcast synchronization transmission information from the master Bluetooth device;
[0058] The periodic broadcast synchronization transfer information in the present invention includes all necessary parameters for periodic broadcast synchronization transfer (Periodic Advertising Sync Transfer, PAST), such as the source device unique identifier, broadcast interval, broadcast clock accuracy, physical layer parameters (such as data rate and modulation mode, etc.), broadcast channel mapping parameters, access address, etc.
[0059] In this embodiment, the source device refers to a device that all Bluetooth devices in the Bluetooth device group need to keep synchronized with. The master Bluetooth device is a Bluetooth device that broadcasts periodically the source device in the Bluetooth device group, or any Bluetooth device that has synchronized the source device. For example: a mobile phone plays a media file as a source device, and plays the audio of the media file through a group of Bluetooth speakers. The Bluetooth speakers that have been synchronized with the mobile phone in the Bluetooth speakers can be used as the master Bluetooth device, and the access Bluetooth device refers to the Bluetooth speaker that is not synchronized with the mobile phone.
[0060] Figure 2 The schematic diagram is a schematic diagram of a Bluetooth device group consisting of four Bluetooth devices synchronously broadcasting periodically within the group, wherein the master device corresponding to the connected Bluetooth device 1 is a Bluetooth device that broadcasts periodically the source device, and the master device corresponding to the connected Bluetooth device 2 is a Bluetooth device that has synchronized the periodic broadcast of the source device.
[0061] Figure 3 The present invention is a flowchart of synchronous periodic broadcasting within a Bluetooth device group consisting of three Bluetooth devices, wherein the master device corresponding to the access Bluetooth device 1 is the Bluetooth device that broadcasts the periodic broadcast of the source device. After the access Bluetooth device 1 is synchronized to the source device, it acts as the master device of the access Bluetooth device 2, and transmits the periodic broadcast synchronization transmission information of the source device to the access Bluetooth device 2 through periodic broadcast synchronization transmission.
[0062] S103: Synchronize the periodic broadcast of the source device according to the periodic broadcast synchronization transmission information. After the synchronization is completed, the access Bluetooth device is identified as the main Bluetooth device.
[0063] It can be seen that this embodiment does not need to obtain the address information of the source device from the main Bluetooth device and then scan and synchronize the PA, thereby reducing the power consumption of the connected Bluetooth device; by enabling the connected Bluetooth device to directly obtain the periodic broadcast synchronization information of the source device from the main Bluetooth device and specify the synchronization time slot for periodic broadcast operations, there is no need to scan the broadcast where the periodic broadcast is located and then synchronize, thereby significantly improving the synchronization efficiency and reducing the probability of synchronization failure.
[0064] Next, combine Figure 4 , taking the Host Controller Interface (HCI) 5.4 version officially released by Bluetooth as an example, an implementation method of this method is introduced. Figure 4 The slave device in is the connected Bluetooth device.
[0065] Figure 4 In the Bluetooth device, the initial parameters of PAST need to be set to accept synchronization information from any connection and synchronize PA. There are two ways to set it:
[0066] 1) Access the Bluetooth device through the HCI interface
[0067] HCI_LE_Set_Default_Periodic_Advertising_Sync_Transfer_Parameters setting.
[0068] 2) After receiving the LE connection request from the master device and successfully establishing the LE connection, use the HCI_LE_Set_Periodic_Advertising_Sync_Transfer_Parameters interface for the LE connection to set the behavior after receiving the periodic advertising synchronization transfer information for the LE connection established with the master device.
[0069] When the master device is a periodically broadcast Bluetooth device that broadcasts the source device in the Bluetooth device group, the periodic broadcast synchronization transfer information can be sent to the connected Bluetooth device through the HCI_LE_Periodic_Advertising_Set_Info_Transfer interface.
[0070] When the master device is a Bluetooth device that has synchronized the periodic broadcasting of the source device, it can send periodic broadcast synchronization transfer information to the connected Bluetooth device through the interface HCI_LE_Periodic_Advertising_Sync_Transfer.
[0071] When the connected Bluetooth device receives the HCI_LE_Periodic_Advertising_Sync_Transfer_Received event notification of the HCI interface, it indicates that the connected Bluetooth device has synchronized with the source device.
[0072] Embodiment 2
[0073] See also Figure 5 As shown, Figure 5 1 is a flow chart of another method for synchronizing periodic broadcasts within a Bluetooth device group disclosed in an embodiment of the present invention. The Bluetooth device group referred to in the method includes an access Bluetooth device and a master Bluetooth device, wherein the master Bluetooth device is synchronized with the source device. The method is applied to the master Bluetooth device. The Bluetooth device group can be a Bluetooth speaker combination, which is not limited by the present invention. Figure 5 As shown, the synchronization method of periodic broadcasting within the Bluetooth device group may include the following operations:
[0074] S201, establishing a connection with an access Bluetooth device;
[0075] In one embodiment, establishing a connection with an access Bluetooth device includes:
[0076] Scan and receive all Bluetooth low energy broadcast information on all Bluetooth broadcast channels;
[0077] Filtering all Bluetooth low energy broadcast information to obtain second target broadcast information, and using a sending device of the second target broadcast information as an access Bluetooth device;
[0078] A request to establish a connection is sent to the connected Bluetooth device, thereby establishing a Bluetooth low energy connection with the connected Bluetooth device.
[0079] In a further optional embodiment, the second target broadcast information is obtained by screening all Bluetooth low energy broadcast information, including:
[0080] All Bluetooth low energy broadcast information are traversed, and any Bluetooth low energy broadcast information whose format conforms to a predetermined format and whose request type is a request for synchronous periodic broadcast is selected as the second target broadcast information.
[0081] In another optional embodiment, establishing a connection with an access Bluetooth device includes:
[0082] Regularly broadcasting first periodic broadcast information, wherein the first periodic broadcast information includes identity information of the Bluetooth device group and confirmation information confirming that the device can be a master Bluetooth device;
[0083] Receive a connection request from a connected Bluetooth device and establish a Bluetooth low energy connection with the connected Bluetooth device.
[0084] S202: Send periodic broadcast synchronization transmission information to the connected Bluetooth device, where the periodic broadcast synchronization transmission information includes information for synchronizing the source device.
[0085] It can be seen that this embodiment does not need to obtain the address information of the source device from the main Bluetooth device and then scan and synchronize the PA, thereby reducing the power consumption of the connected Bluetooth device; by enabling the connected Bluetooth device to directly obtain the periodic broadcast synchronization information of the source device from the main Bluetooth device and specify the synchronization time slot for periodic broadcast operations, there is no need to scan the broadcast where the periodic broadcast is located and then synchronize, thereby significantly improving the synchronization efficiency and reducing the probability of synchronization failure.
[0086] In another optional embodiment, the synchronization method of periodic broadcasting within the Bluetooth device group further includes:
[0087] The broadcast synchronization group information in the second periodic broadcast information of the source device is monitored and analyzed in real time, and when the broadcast synchronization group information changes, the source device is synchronized according to the broadcast synchronization group information.
[0088] It can be seen that this embodiment enables the Bluetooth device to quickly respond to changes in the source device and maintain the real-time nature of the data by monitoring and parsing the BIG information of the source device in real time.
[0089] Embodiment 3
[0090] The present invention provides a Bluetooth device group, which includes an access Bluetooth device and a master Bluetooth device and can execute a synchronization method for periodic broadcasting within the Bluetooth device group as in any one of the first and second embodiments.
[0091] In summary, the present invention discloses a method for synchronizing periodic broadcasts within a Bluetooth device group and a Bluetooth device group, which reduces the power consumption of the connected Bluetooth devices, significantly improves the synchronization efficiency of the connected Bluetooth devices, and reduces the probability of synchronization failure. Therefore, the present invention effectively overcomes various shortcomings in the prior art and has a high industrial utilization value.
[0092] The above embodiments are merely illustrative of the principles and effects of the present invention, and are not intended to limit the present invention. Anyone familiar with the art may modify or alter the above embodiments without departing from the spirit and scope of the present invention. Therefore, all equivalent modifications or alterations made by a person of ordinary skill in the art without departing from the spirit and technical concept disclosed by the present invention shall still be covered by the claims of the present invention.
Claims
1. A method for synchronizing periodic broadcasts within a Bluetooth device group, wherein the Bluetooth device group includes an access Bluetooth device and a master Bluetooth device, wherein: The master Bluetooth device is synchronized with the source device, and the method is applied to the access Bluetooth device, and is characterized by comprising: Establishing a connection with the master Bluetooth device; Receiving periodic broadcast synchronization transmission information from the master Bluetooth device; The periodic broadcast of the source device is synchronized according to the periodic broadcast synchronization transmission information. After the synchronization is completed, the access Bluetooth device is identified as the master Bluetooth device.
2. A method for synchronizing periodic broadcasts within a Bluetooth device group according to claim 1, characterized in that: The step of establishing a connection with the master Bluetooth device comprises: Scan and receive all first periodic broadcast information on all Bluetooth broadcast channels; Filtering all the first periodic broadcast information to obtain target broadcast information, and using a sending device of the target broadcast information as the master Bluetooth device; A request for establishing a connection is sent to the master Bluetooth device, thereby establishing a Bluetooth low energy connection with the master Bluetooth device.
3. A method for synchronizing periodic broadcasts within a Bluetooth device group according to claim 2, characterized in that: The step of screening out target broadcast information from all the first periodic broadcast information comprises: Traverse all the identity information and confirmation information carried in the first periodic broadcast information. When the identity information belongs to the Bluetooth device group and the confirmation information confirms that the corresponding Bluetooth device can serve as the main Bluetooth device, the first periodic broadcast information is the target broadcast information.
4. A method for synchronizing periodic broadcasts within a Bluetooth device group according to claim 1, characterized in that: The step of establishing a connection with the master Bluetooth device comprises: Broadcasting Bluetooth low energy broadcast information at a scheduled time, wherein the Bluetooth low energy broadcast information conforms to a predetermined format and is of a type of requesting synchronous periodic broadcast; Receive a connection establishment request sent by the master Bluetooth device, and establish a Bluetooth low energy connection with the master Bluetooth device.
5. A method for synchronizing periodic broadcasts within a Bluetooth device group, wherein the Bluetooth device group includes an access Bluetooth device and a master Bluetooth device, wherein: The master Bluetooth device is synchronized with the source device, and the method is applied to the master Bluetooth device, and is characterized by comprising: Establishing a connection with the access Bluetooth device; Sending periodic broadcast synchronization transfer information to the access Bluetooth device, wherein the periodic broadcast synchronization transfer information includes information for synchronizing the source device.
6. A method for synchronizing periodic broadcasts within a Bluetooth device group according to claim 5, characterized in that: The establishing a connection with the access Bluetooth device includes: Scan and receive all Bluetooth low energy broadcast information on all Bluetooth broadcast channels; Filtering all the Bluetooth low energy broadcast information to obtain second target broadcast information, and using a sending device of the second target broadcast information as the access Bluetooth device; A request for establishing a connection is sent to the access Bluetooth device, thereby establishing a Bluetooth low energy connection with the access Bluetooth device.
7. A method for synchronizing periodic broadcasts within a Bluetooth device group according to claim 6, characterized in that: The step of screening all the Bluetooth low energy broadcast information to obtain the second target broadcast information includes: All Bluetooth low energy broadcast information are traversed, and any Bluetooth low energy broadcast information having a format that conforms to a predetermined format and a request type of requesting synchronous periodic broadcast is selected as the second target broadcast information.
8. A method for synchronizing periodic broadcasts within a Bluetooth device group according to claim 5, characterized in that: The establishing a connection with the access Bluetooth device includes: Regularly broadcasting first periodic broadcast information, wherein the first periodic broadcast information includes identity information of the Bluetooth device group and confirmation information confirming that the device can be a master Bluetooth device; Receive a connection establishment request sent by the access Bluetooth device, and establish a Bluetooth low energy connection with the access Bluetooth device.
9. A method for synchronizing periodic broadcasts within a Bluetooth device group according to any one of claims 5 to 8, characterized in that: The synchronization method further comprises: The broadcast synchronization group information in the second periodic broadcast information of the source device is monitored and analyzed in real time, and when the broadcast synchronization group information changes, the source device is synchronized according to the broadcast synchronization group information.
10. A Bluetooth device group, comprising an access Bluetooth device and a master Bluetooth device, and capable of executing the synchronization method for periodic broadcasting within a Bluetooth device group as claimed in any one of claims 1 to 9.
Citation Information
Cited By
Communication method and device, electronic equipment, chip and storage medium
CN121334606A
Communication method, communication device, Bluetooth device, communication system, medium and product
CN121357516A
Communication methods, communication devices, Bluetooth devices, communication systems, media and products
CN121357516B
Projection system and projection method
TWI931147B