An audio sharing method and an audio sharing system
By establishing Bluetooth links between the main earphone and multiple secondary earphones, a single terminal device can share audio with multiple Bluetooth earphones, solving the problem that existing technologies only allow single-user connections and supporting multi-user audio and video sharing scenarios.
Patent Information
- Application Number
- CN202310175060.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-02-24
- Publication Date
- 2026-02-03
- Estimated Expiration
- 2043-02-24
AI Technical Summary
Existing Bluetooth headset systems can only connect to one terminal device, making it impossible for multiple users to share audio and video simultaneously, thus failing to cover multi-user scenarios.
The main earphone establishes a Bluetooth link with multiple secondary earphones, synchronously plays audio data through the terminal device, and generates and transmits parameter information to enable the audio data packets of multiple secondary earphones to be monitored.
It enables one terminal device to share audio with multiple Bluetooth headsets, covering usage scenarios where multiple users share the same audio, and supports simultaneous use by multiple users.
Smart Images

Figure CN116156472B_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of audio wireless transmission technology, and more specifically, to an audio sharing method and an audio sharing system. Background Technology
[0002] With the development of Bluetooth technology, Bluetooth headsets are becoming increasingly popular due to their advantages such as no connecting wires between them and terminal devices, and their portability.
[0003] Currently, in Bluetooth headsets, the main earpiece establishes a first Bluetooth link with the terminal device, the main earpiece and the secondary earpiece establish a second Bluetooth link, and the secondary earpiece establishes a listening link with the terminal device. In this way, the main and secondary earpieces each maintain two Bluetooth links to achieve synchronized playback. However, a single terminal device can only connect to one pair of Bluetooth headsets, which cannot cover scenarios where multiple users simultaneously share audio, watch videos together, or participate in meetings. Summary of the Invention
[0004] In view of this, the purpose of this application is to provide an audio sharing method and an audio sharing system, in which the main earphone establishes Bluetooth links with multiple secondary earphones at the same time, thereby realizing the effect of one terminal device sharing audio with multiple Bluetooth earphones, covering the usage scenario of multiple users sharing the same audio.
[0005] In a first aspect, embodiments of this application provide an audio sharing method, which is applied to a main earphone and includes:
[0006] Obtain the Bluetooth addresses of multiple secondary earphones, and pair with the multiple secondary earphones sequentially based on the Bluetooth addresses of the multiple secondary earphones;
[0007] Establish a Bluetooth connection link with the terminal device and record the parameter information corresponding to the Bluetooth connection link.
[0008] The terminal receives audio data packets containing audio data sent by the terminal device via the Bluetooth connection link, and plays the audio data synchronously with the terminal device.
[0009] For each secondary earphone, a primary Bluetooth connection link is established with that earphone, and parameter information corresponding to the terminal Bluetooth connection link is sent to the secondary earphone through the primary Bluetooth connection link, so that the secondary earphone can listen to the audio data packets sent by the terminal device according to the parameter information.
[0010] Furthermore, the audio sharing method also includes:
[0011] When pairing with the multiple secondary earphones, a secondary earphone connection table is generated based on the Bluetooth addresses of the multiple secondary earphones and the number of the multiple secondary earphones;
[0012] The secondary earphone connection table is sent to each secondary earphone via the primary Bluetooth connection link established with each secondary earphone.
[0013] Furthermore, the audio sharing method also includes:
[0014] A master earphone information data packet is generated based on whether the audio data packet was successfully received.
[0015] The system receives a total information data packet sent by the primary secondary earphone from among multiple secondary earphones via the main Bluetooth connection link, and adds the primary earphone information data packet to the total information data packet to obtain a target information data packet.
[0016] The target information data packet is sent to the terminal device via the terminal Bluetooth connection link, so that the terminal device can determine whether all headphones have successfully detected the audio data packet based on the target information data packet.
[0017] Secondly, embodiments of this application also provide an audio sharing method, which is applied to any one of a plurality of secondary earphones, the audio sharing method comprising:
[0018] Receive a pairing request from the main earphone and pair with the main earphone based on the pairing request;
[0019] Establish a main Bluetooth connection link with the main earphone;
[0020] The main Bluetooth connection link receives parameter information sent by the main earphone, corresponding to the terminal Bluetooth connection link between the main earphone and the terminal device;
[0021] The system listens to the audio data packets sent from the terminal device to the main earphone using the parameter information, and plays the audio data in the audio data packets synchronously with the terminal device.
[0022] Furthermore, when the secondary earphone is a primary or intermediate earphone among multiple secondary earphones, the audio sharing method further includes:
[0023] The next adjacent secondary earphone is determined according to the pre-set order of secondary earphones;
[0024] A secondary Bluetooth connection link is established with the next secondary earphone; wherein the secondary earphone is the master device of the secondary Bluetooth connection link, and the next secondary earphone is the slave device of the secondary Bluetooth connection link.
[0025] Furthermore, the audio sharing method also includes:
[0026] The secondary earphone connection list sent by the primary earphone is received through the primary Bluetooth connection link.
[0027] Furthermore, when a secondary earphone is removed, and the secondary earphone is the primary device of the removed secondary earphone, the audio sharing method further includes:
[0028] Based on the removed secondary earphone, a disconnection message is generated, the corresponding slave device secondary earphone is determined, and the secondary Bluetooth connection link is re-established with the slave device secondary earphone.
[0029] The disconnect message is sent to the adjacent secondary earphone connected via the secondary Bluetooth connection link, so that the adjacent secondary earphone updates its connection table according to the disconnect message;
[0030] When the removed secondary earphone exists, and the secondary earphone is a slave device of the removed secondary earphone, the audio sharing method further includes:
[0031] Based on the removed secondary earphone, a disconnection message is generated, the corresponding primary device secondary earphone is determined, and the secondary Bluetooth connection link is re-established with the primary device secondary earphone corresponding to the removed secondary earphone.
[0032] The disconnect message is sent to the adjacent secondary earphone connected via the secondary Bluetooth connection link, so that the adjacent secondary earphone updates its connection table based on the disconnect message.
[0033] Furthermore, when the secondary earphone is the final earphone among multiple secondary earphones, after listening to the audio data packets sent by the terminal device to the primary earphone, the audio sharing method further includes:
[0034] An information data packet is generated based on whether the audio data packet is successfully detected, and the information data packet is sent to the corresponding master device secondary earphone through the corresponding secondary Bluetooth connection link; wherein, the information data packet is used to indicate whether the secondary earphone has successfully detected the audio data packet;
[0035] When the secondary earphone is an intermediate-level earphone among multiple secondary earphones, after listening to the audio data packets sent by the terminal device to the primary earphone, the audio sharing method further includes:
[0036] An information data packet is generated based on whether the audio data packet was successfully detected.
[0037] The system receives information data packets sent by the corresponding slave device's secondary earphone through its own secondary Bluetooth connection link, and integrates the received information data packets with its own generated information data packets to obtain sub-information data packets.
[0038] The sub-information data packet is sent to the corresponding master device secondary earphone through its associated secondary Bluetooth connection link;
[0039] When the secondary earphone is the primary earphone among multiple secondary earphones, after listening to the audio data packets sent by the terminal device to the primary earphone, the audio sharing method further includes:
[0040] An information data packet is generated based on whether the audio data packet was successfully detected.
[0041] The system receives the corresponding sub-information data packets sent by the slave device's secondary earphone through its associated secondary Bluetooth connection link, and integrates the sub-information data packets with its own generated information data packets to obtain the total information data packet.
[0042] The total information data packet is sent to the main earphone via its respective main Bluetooth connection link.
[0043] Furthermore, the multiple secondary earpieces are divided into multiple secondary earpiece groups, each secondary earpiece group including a group leader earpiece and at least one group member earpiece; when the secondary earpiece is the last group leader earpiece among the multiple group leader earpieces, after listening to the audio data packets sent by the terminal device to the main earpiece, the audio sharing method further includes:
[0044] It receives the sub-information data packet sent by the primary sub-earth earphone in its sub-earth earphone group, integrates the sub-information data packet with the information data packet it generates, obtains the earphone group sub-information data packet, and sends the earphone group sub-information data packet to the adjacent previous group leader earphone through the sub-Bluetooth connection link.
[0045] When the secondary earpiece is an intermediate-level group leader earpiece among multiple group leader earpieces, after listening to the audio data packets sent by the terminal device to the primary earpiece, the audio sharing method further includes:
[0046] Receive sub-information data packets sent by the primary sub-earthphone in the sub-earthphone group, and integrate the sub-information data packets with the information data packets generated by itself to obtain the sub-information data packets of the earphone group;
[0047] Receive headphone group sub-information data packets sent by the next adjacent group leader headphone through the corresponding secondary Bluetooth connection link;
[0048] The received headphone group sub-information data packet and the headphone group sub-information data packet generated by itself are integrated to obtain the headphone group information data packet, and the headphone group information data packet is sent to the adjacent previous group leader headphone through the corresponding secondary Bluetooth connection link.
[0049] When the secondary earpiece is the primary earpiece among multiple group leader earpieces, after listening to the audio data packets sent by the terminal device to the primary earpiece, the audio sharing method further includes:
[0050] Receive sub-information data packets sent by the primary sub-earthphone in the sub-earthphone group, and integrate the sub-information data packets with the information data packets generated by itself to obtain the earphone group sub-information data packets;
[0051] The system receives headphone group sub-information data packets sent by the next adjacent group leader headphone through its secondary Bluetooth connection link, and integrates the received headphone group sub-information data packets with its own generated headphone group sub-information data packets to obtain a total information data packet.
[0052] The total information data packet is sent to the main earphone via its respective main Bluetooth connection link.
[0053] Thirdly, this application also provides an audio sharing system, which includes a terminal device, a main earphone, and multiple secondary earphones, wherein the terminal device, the main earphone, and the multiple secondary earphones are connected via Bluetooth communication.
[0054] The terminal device is used to play audio data and generate and send audio data packets containing the audio data;
[0055] The main earphone is used to acquire the Bluetooth addresses of multiple secondary earphones, and sequentially pair with the multiple secondary earphones based on their Bluetooth addresses, establish a terminal Bluetooth connection link with the terminal device, and record the parameter information corresponding to the terminal Bluetooth connection link. It receives audio data packets containing audio data sent by the terminal device through the terminal Bluetooth connection link, and synchronously plays the audio data with the terminal device. For each secondary earphone, it establishes a main Bluetooth connection link with that earphone and sends the parameter information corresponding to the terminal Bluetooth connection link to that earphone through the main Bluetooth connection link, so that the earphone can listen to the audio data packets sent by the terminal device according to the parameter information.
[0056] Any one of the plurality of secondary earphones is used to receive a pairing request from the main earphone, and pair with the main earphone based on the pairing request, establish a main Bluetooth connection link with the main earphone, receive parameter information corresponding to the terminal Bluetooth connection link between the main earphone and the terminal device sent by the main earphone through the main Bluetooth connection link, listen to the audio data packets sent by the terminal device to the main earphone through the parameter information, and play the audio data in the audio data packets synchronously with the terminal device.
[0057] This application provides an audio sharing method and system. A main earphone acquires the Bluetooth addresses of multiple secondary earphones and sequentially pairs with them based on these addresses. A terminal Bluetooth connection link is established with a terminal device, and the parameter information corresponding to this link is recorded. Audio data packets containing audio data are received from the terminal device via the terminal Bluetooth connection link, and the audio data is played synchronously with the terminal device. For each secondary earphone, a main Bluetooth connection link is established, and the parameter information corresponding to the terminal Bluetooth connection link is sent to that earphone via the main Bluetooth connection link, enabling the earphone to listen for audio data packets sent by the terminal device based on the parameter information. This achieves the effect of one terminal device sharing audio with multiple Bluetooth earphones, covering usage scenarios where multiple users share the same audio.
[0058] To make the above-mentioned objectives, features and advantages of this application more apparent and understandable, preferred embodiments are described below in detail with reference to the accompanying drawings. Attached Figure Description
[0059] To more clearly illustrate the technical solutions of the embodiments of this application, the accompanying drawings used in the embodiments will be briefly introduced below. It should be understood that the following drawings only show some embodiments of this application and should not be regarded as a limitation of the scope. For those skilled in the art, other related drawings can be obtained based on these drawings without creative effort.
[0060] Figure 1 A flowchart illustrating an audio sharing method provided in an embodiment of this application;
[0061] Figure 2 A flowchart illustrating another audio sharing method provided in this application embodiment;
[0062] Figure 3 This application provides a connection topology diagram of an earphone audio sharing system according to an embodiment of the present application.
[0063] Figure 4This is another headphone audio sharing system connection topology diagram provided in the embodiments of this application;
[0064] Figure 5 This is a schematic diagram of the structure of an audio sharing system provided in an embodiment of this application. Detailed Implementation
[0065] To make the objectives, technical solutions, and advantages of the embodiments of this application clearer, the technical solutions of the embodiments of this application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of this application, and not all embodiments. The components of the embodiments of this application described and shown in the accompanying drawings can generally be arranged and designed in various different configurations. Therefore, the following detailed description of the embodiments of this application provided in the accompanying drawings is not intended to limit the scope of the claimed application, but merely represents selected embodiments of this application. Based on the embodiments of this application, every other embodiment obtained by those skilled in the art without inventive effort falls within the scope of protection of this application.
[0066] First, the applicable application scenarios of this application will be introduced. This application can be applied to the field of audio wireless transmission technology.
[0067] With the development of Bluetooth technology, Bluetooth headsets are becoming increasingly popular due to their advantages such as no connecting wires between them and terminal devices, and their portability.
[0068] Research has revealed that currently, in Bluetooth headsets, the primary earpiece establishes a first Bluetooth link with the terminal device, while the primary earpiece and the secondary earpiece establish a second Bluetooth link. The secondary earpiece then establishes a listening link with the terminal device. This way, the primary and secondary earpieces each maintain two Bluetooth links to achieve synchronized playback. However, a single terminal device can only connect to one pair of Bluetooth headsets, which cannot cover scenarios where multiple users simultaneously share audio, watch videos together, or participate in meetings.
[0069] Based on this, the embodiments of this application provide an audio sharing method to enable a terminal device to share audio with multiple Bluetooth headsets, covering the use scenario of multiple users sharing the same audio.
[0070] Please see Figure 1 , Figure 1 This is a flowchart illustrating an audio sharing method provided in an embodiment of this application. Figure 1 As shown in the illustration, the audio sharing method provided in this application embodiment is applied to the main earphone, and the audio sharing method includes:
[0071] S101, obtain the Bluetooth addresses of multiple secondary earphones, and pair with the multiple secondary earphones sequentially based on the Bluetooth addresses of the multiple secondary earphones.
[0072] Regarding step S101 above, in a specific implementation, the audio sharing system contains multiple secondary earphones. For each secondary earphone, the primary earphone obtains its Bluetooth address and pairs with it based on that address. Specifically, how the primary earphone obtains the secondary earphone's Bluetooth address and pairs with it is detailed in existing technology and will not be repeated here. The primary and secondary earphones here can be Bluetooth earphones or TWS earphones; this application does not specifically limit their use.
[0073] S102, establish a terminal Bluetooth connection link with the terminal device and record the parameter information corresponding to the terminal Bluetooth connection link.
[0074] It should be noted that the term "terminal device" refers to a device used for playing audio. Here, the terminal device can be a mobile phone, tablet, or audio player, etc., and this application does not specifically limit its scope. The terminal Bluetooth connection link refers to the Bluetooth link established between the main headset and the terminal device for communication. When establishing the terminal Bluetooth connection link between the main headset and the terminal device, the terminal Bluetooth connection link can record parameter information. This parameter information may include the terminal device's identification information and clock synchronization information. For example, the parameter information may include the terminal device's Bluetooth address and clock synchronization information, and this application does not specifically limit its scope.
[0075] Regarding step S102 above, in specific implementation, the main earphone establishes a Bluetooth connection link with the terminal device and records the parameter information corresponding to the Bluetooth connection link, namely, the Bluetooth address and clock synchronization information of the terminal device. Here, the terminal device is referred to as the master device of the Bluetooth connection link, and the main earphone is referred to as the slave device of the Bluetooth connection link. The Bluetooth connection link communicates according to the frequency hopping sequence of the terminal device. The main earphone can then receive audio data sent by the terminal device through the Bluetooth connection link and reply to the terminal with information such as whether the audio data was received correctly.
[0076] S103, receive an audio data packet containing audio data sent by the terminal device through the terminal Bluetooth connection link, and play the audio data synchronously with the terminal device.
[0077] It should be noted that audio data refers to the audio data played by the terminal device. Audio data packets are data packets generated by the terminal device based on the played audio data.
[0078] Regarding step S103 above, in specific implementation, when the terminal device plays audio data, it synchronously generates an audio data packet containing that audio data. The terminal device sends the audio data packet to the main earphone via the terminal Bluetooth connection link. The main earphone can then receive the audio data packet containing the audio data sent by the terminal device via the terminal Bluetooth connection link and play the audio data synchronously with the terminal device.
[0079] S104, for each secondary earphone, establish a primary Bluetooth connection link with that earphone, and send parameter information corresponding to the terminal Bluetooth connection link to the secondary earphone through the primary Bluetooth connection link, so that the secondary earphone can listen to the audio data packets sent by the terminal device according to the parameter information.
[0080] It should be noted that the main Bluetooth connection link refers to the Bluetooth link established between the main earphone and the secondary earphone for communication.
[0081] Regarding step S103 above, in specific implementation, for each secondary earpiece in the audio sharing system, the primary earpiece establishes a primary Bluetooth connection link with the secondary earpiece and sends parameter information corresponding to the terminal Bluetooth connection link to the secondary earpiece through the established primary Bluetooth connection link. Thus, after receiving the parameter information sent by the primary earpiece, the secondary earpiece can detect the audio data packets sent by the terminal device to the primary earpiece based on the parameter information and play the audio data synchronously with the terminal device. Here, the primary earpiece is referred to as the master device of the primary Bluetooth connection link, and the secondary earpiece is referred to as the slave device of the primary Bluetooth connection link.
[0082] Furthermore, the audio sharing method provided in this application embodiment also includes:
[0083] When pairing with the multiple secondary earphones, a secondary earphone connection table is generated based on the Bluetooth addresses of the multiple secondary earphones and the number of the multiple secondary earphones.
[0084] The secondary earphone connection table is sent to each secondary earphone via the primary Bluetooth connection link established with each secondary earphone.
[0085] It should be noted that the secondary earphone connection table is used to record the Bluetooth address of each secondary earphone.
[0086] Regarding the two steps mentioned above, in practical implementation, when the main earphone pairs with multiple secondary earphones, it generates a secondary earphone connection table based on the Bluetooth addresses of the multiple secondary earphones and the number of secondary earphones. After the secondary earphone connection table is generated, the main earphone sends the secondary earphone connection table to each secondary earphone through the main Bluetooth connection link established with each secondary earphone. In this way, if a secondary earphone subsequently disconnects, the other secondary earphones can update their secondary earphone connection tables automatically.
[0087] Furthermore, the audio sharing method provided in this application embodiment also includes:
[0088] A master headphone information data packet is generated based on whether the audio data packet was successfully received.
[0089] It should be noted that the main earphone information data packet is used to indicate whether the main earphone has successfully received the audio data packet sent by the terminal device.
[0090] In the specific implementation of the above steps, the main earphone generates a main earphone information data packet based on whether it has successfully received the audio data packet sent by the terminal device.
[0091] The system receives a total information data packet sent by the primary secondary earphone from multiple secondary earphones via the main Bluetooth connection link, and adds the primary earphone information data packet to the total information data packet to obtain the target information data packet.
[0092] The target information data packet is sent to the terminal device via the terminal Bluetooth connection link, so that the terminal device can determine whether all headphones have successfully detected the audio data packet based on the target information data packet.
[0093] It should be noted that the primary secondary earpiece refers to the earpiece that is the first among multiple secondary earpieces. The total information data packet is used to characterize whether each of the secondary earpieces successfully detected the audio data packets sent by the terminal device. Here, the total information data packet includes data packets from multiple secondary earpieces, and each data packet contains information on whether each secondary earpiece successfully detected the audio data packets.
[0094] In the specific implementation of the above steps, the main earphone receives the total information data packet sent by the primary secondary earphone among multiple secondary earphones via the main Bluetooth connection link, and adds its own generated main earphone information data packet to the total information data packet to obtain the target information data packet. Then, the main earphone sends the target information data packet to the terminal device via the established terminal Bluetooth connection link. The terminal device can then determine whether all earphones have successfully detected the audio data packet based on the target information data packet. When the terminal device receives the target information data packet, if it determines that the target information data packet indicates that all earphones have detected the audio data packet, it is true, and the terminal device sends a new audio data packet in the next time slot. If it determines that the target information data packet indicates that some earphones have not detected the audio data packet, it is false, and the terminal device retransmits the audio data packet in the next time slot.
[0095] This application provides an audio sharing method applied to a main earphone. The main earphone acquires the Bluetooth addresses of multiple secondary earphones and sequentially pairs with them based on these addresses. It establishes a terminal Bluetooth connection link with a terminal device and records the parameter information corresponding to this link. It receives audio data packets containing audio data sent by the terminal device through the terminal Bluetooth connection link and plays the audio data synchronously with the terminal device. For each secondary earphone, a main Bluetooth connection link is established, and the main Bluetooth connection link sends the parameter information corresponding to the terminal Bluetooth connection link to that earphone, enabling it to listen for audio data packets sent by the terminal device based on the parameter information. This achieves the effect of one terminal device sharing audio with multiple Bluetooth earphones, covering usage scenarios where multiple users share the same audio.
[0096] Please see Figure 2 , Figure 2 A flowchart illustrating another audio sharing method provided in an embodiment of this application. Figure 2 As shown in the illustration, this application provides an audio sharing method applied to any one of a plurality of secondary earphones. The audio sharing method includes:
[0097] S201, Receive a pairing request from the main earphone, and pair with the main earphone based on the pairing request.
[0098] S202, establish a main Bluetooth connection link with the main earphone.
[0099] Regarding steps S201-S202 above, in specific implementation, when the primary earphone sends a pairing request to the secondary earphone, the secondary earphone receives the pairing request from the primary earphone and pairs with the primary earphone based on the pairing request. Then, a primary Bluetooth connection link is established with the primary earphone. After the primary Bluetooth connection link is established, data sent by the primary earphone can be received through the primary Bluetooth connection link.
[0100] S203, receive parameter information sent by the main earphone, corresponding to the terminal Bluetooth connection link between the main earphone and the terminal device, through the main Bluetooth connection link.
[0101] Here, the parameter information includes the terminal device's identification information and clock synchronization information. For example, the parameter information includes the terminal device's Bluetooth address and clock synchronization information.
[0102] Regarding step S203 above, in specific implementation, after establishing the main Bluetooth connection link with the main earphone, the main earphone will send the parameter information corresponding to the terminal Bluetooth connection link between the main earphone and the terminal device to the secondary earphone through the main Bluetooth connection link. The secondary earphone can then receive the parameter information corresponding to the terminal Bluetooth connection link sent by the main earphone through the main Bluetooth connection link.
[0103] S204, listen to the audio data packets sent by the terminal device to the main earphone through the parameter information, and play the audio data in the audio data packets synchronously with the terminal device.
[0104] Regarding step S204 above, in specific implementation, the secondary earphone can listen to the audio data packets sent by the terminal device to the primary earphone through the parameter information sent by the primary earphone, and synchronously play the audio data in the audio data packets with the terminal device. Thus, after establishing a connection with the primary earphone, since the secondary earphone receives the terminal Bluetooth connection link parameter information from the primary earphone, including the terminal device's Bluetooth address, clock synchronization information, etc., the secondary earphone can listen to the audio data packets sent by the terminal device and synchronously play the audio data with the terminal device.
[0105] Furthermore, when the secondary earphone is a primary or intermediate earphone among multiple secondary earphones, the audio sharing method further includes:
[0106] The next adjacent secondary earphone is determined according to the pre-set order of secondary earphones.
[0107] Establish a secondary Bluetooth connection link with the next secondary earphone.
[0108] It should be noted that the secondary earphone sequence refers to the pre-defined order among multiple secondary earphones. The next secondary earphone is the one following the primary earphone in the sequence and adjacent to it. A secondary Bluetooth connection link refers to the Bluetooth link established between two adjacent pairs of secondary earphones to enable data communication between them. The primary earphone is the master device of this secondary Bluetooth connection link, and the next secondary earphone is the slave device.
[0109] Regarding the two steps mentioned above, in practical implementation, when the secondary earpiece is either the primary or intermediate earpiece among multiple secondary earpieces, the next adjacent secondary earpiece in the sequence is determined according to a pre-set order, and a secondary Bluetooth connection link is established with the adjacent earpiece. In this way, each secondary earpiece establishes a secondary Bluetooth connection link with its next adjacent secondary earpiece master device, and the two can communicate via Bluetooth according to a frequency hopping sequence, exchanging information such as the secondary earpiece connection table sent by the master earpiece and whether audio data packets have been correctly detected.
[0110] Please see Figure 3 , Figure 3 This is a connection topology diagram of a headphone audio sharing system provided in an embodiment of this application. Figure 3 As shown, the audio sharing system includes a terminal device, a main earphone, and N secondary earphones. A terminal Bluetooth connection link is established between the main earphone and the terminal device, and a main Bluetooth connection link is established between each secondary earphone and the main earphone. Furthermore, secondary Bluetooth connection links are established between two adjacent pairs of secondary earphones.
[0111] Furthermore, the audio sharing method provided in this application embodiment also includes:
[0112] The secondary earphone connection list sent by the primary earphone is received through the primary Bluetooth connection link.
[0113] In practice, following the steps outlined above, the primary earphone sends the generated secondary earphone connection table to the secondary earphone via the established primary Bluetooth connection link. The secondary earphone then receives the connection table from the primary earphone through the primary Bluetooth connection link. This allows the secondary earphone to automatically update its connection table should any other secondary earphone disconnect subsequently.
[0114] Furthermore, when a secondary earphone is removed, and the secondary earphone is the primary device of the removed secondary earphone, the audio sharing method further includes:
[0115] Based on the removed secondary earphone, a disconnection message is generated, the corresponding slave secondary earphone is determined, and the secondary Bluetooth connection link is re-established with the slave secondary earphone.
[0116] The disconnect message is sent to the adjacent secondary earphone connected via the secondary Bluetooth connection link, so that the adjacent secondary earphone updates its connection table based on the disconnect message.
[0117] Here, the removed secondary earphone may have voluntarily exited or exited the sharing system due to unforeseen circumstances such as low voltage. Regarding these two steps, in specific implementation, when a removed secondary earphone exists in the audio sharing system and is the master device of that earphone, a disconnection message is generated based on the removed earphone. The corresponding slave earphone is then identified, and a new secondary Bluetooth connection link is established with it. The disconnection message is then sent to adjacent secondary earphones connected via the secondary Bluetooth connection link, allowing the adjacent earphones to update their connection tables based on the disconnection message. For an example, please refer to [link to example]. Figure 3 For example, the secondary earphone is Figure 3 The secondary earphone N-2 in the middle was removed. Figure 3In the example, secondary earphone N-1 and secondary earphone N-2 are the master devices of secondary earphone N-1. Secondary earphone N-2 identifies secondary earphone N as the slave device corresponding to secondary earphone N-1. Therefore, secondary earphone N-2 and secondary earphone N re-establish a secondary Bluetooth connection link. It then sends a disconnection message to the adjacent secondary earphones N-3 and N connected via this established secondary Bluetooth connection link, enabling secondary earphones N-3 and N to update their connection tables based on the disconnection message.
[0118] In this specific implementation, after the secondary earphone sends the disconnection message to the adjacent secondary earphone, the adjacent secondary earphone also needs to send it to other adjacent secondary earphones through its own secondary Bluetooth connection link. In this way, all secondary earphones can receive the disconnection message and update their own stored secondary earphone connection table according to the disconnection message.
[0119] When the removed secondary earphone exists, and the secondary earphone is a slave device of the removed secondary earphone, the audio sharing method further includes:
[0120] Based on the removed secondary earphone, a disconnection message is generated, the corresponding primary device secondary earphone is determined, and the secondary Bluetooth connection link is re-established with the primary device secondary earphone corresponding to the removed secondary earphone.
[0121] The disconnect message is sent to the adjacent secondary earphone connected via the secondary Bluetooth connection link, so that the adjacent secondary earphone updates its connection table based on the disconnect message.
[0122] Regarding the two steps mentioned above, in specific implementation, when a removed secondary earphone exists in the audio sharing system, and the secondary earphone is a slave device of the removed secondary earphone, a disconnection message is generated based on the removed secondary earphone. The corresponding master secondary earphone is then identified, and a new secondary Bluetooth connection link is established with the master secondary earphone. The disconnection message is then sent to the adjacent secondary earphones connected via the secondary Bluetooth connection link, allowing the adjacent secondary earphones to update their connection tables based on the disconnection message. For an example, please refer to [link to example]. Figure 3 For example, the secondary earphone is Figure 3 The secondary earphone N in the middle was removed as the secondary earphone. Figure 3 In the example, secondary earphone N-1 and secondary earphone N-2 are the master devices of secondary earphone N-1. Secondary earphone N determines that the master secondary earphone corresponding to secondary earphone N-1 is secondary earphone N-2. Therefore, secondary earphone N and secondary earphone N-2 re-establish a secondary Bluetooth connection link. It then sends a disconnection message to the adjacent secondary earphone N-2 connected via this established secondary Bluetooth connection link, so that secondary earphone N-2 updates its secondary earphone connection table based on the disconnection message.
[0123] The secondary earpiece detects a 200µs idle time slot after the last time slot of audio data packet transmission is completed. Utilizing this idle time slot, the secondary earpiece communicates with its primary device via Bluetooth in a time-division manner to provide feedback on whether it successfully detected the audio data packet. The order of communication is determined by the order in which the secondary earpieces joined the audio sharing system. Furthermore, when the secondary earpiece is the final earpiece among multiple secondary earpieces, after detecting the audio data packet sent by the terminal device to the primary earpiece, the audio sharing method further includes:
[0124] Based on whether the audio data packet was successfully detected, an information data packet is generated and sent to the corresponding master device secondary earphone through the corresponding secondary Bluetooth connection link.
[0125] Here, the information data packet is used to indicate whether the secondary earpiece has successfully detected the audio data packet.
[0126] Regarding the above steps, in specific implementation, when the secondary earphone is the lowest-level earphone among multiple secondary earphones, it generates an information data packet based on whether it has successfully detected the audio data packet sent by the terminal device, and sends the information data packet to the corresponding primary device earphone through its associated secondary Bluetooth connection link. As an example, such as... Figure 3 As shown, when the secondary earphone is the final stage earphone among multiple secondary earphones, this secondary earphone is... Figure 3 In the secondary earphone N, when the terminal device sends a new audio data packet, during the first idle time slot after reception is completed, the secondary earphone N generates an information data packet marked as ACKn based on whether it has successfully detected the audio data packet. The information includes whether the secondary earphone N has correctly detected the audio data packet. The information data packet is then sent to the corresponding master earphone N-1 through its respective secondary Bluetooth connection link. Other secondary earphones and the master earphone do not send any information to their master devices.
[0127] When the secondary earphone is an intermediate-level earphone among multiple secondary earphones, after listening to the audio data packets sent by the terminal device to the primary earphone, the audio sharing method further includes:
[0128] An information data packet is generated based on whether the audio data packet was successfully detected.
[0129] The system receives information data packets sent by the corresponding slave device's secondary earphone through its own secondary Bluetooth connection link, and integrates the received information data packets with its own generated information data packets to obtain sub-information data packets.
[0130] The sub-information data packet is sent to the corresponding master device secondary earphone through its associated secondary Bluetooth connection link.
[0131] Regarding the above three steps, in specific implementation, when the secondary earphone is an intermediate-level earphone among multiple secondary earphones, an information data packet is generated based on whether the audio data packet is successfully detected. This information data packet is received from the corresponding secondary earphone via its associated secondary Bluetooth connection link. The received information data packet and the self-generated information data packet are integrated to obtain a sub-information data packet, which is then sent to the corresponding primary earphone via its associated secondary Bluetooth connection link. As an example, such as... Figure 3 As shown, when the secondary earphone is the final stage earphone among multiple secondary earphones, this secondary earphone is... Figure 3 In the secondary earphone N-1, when the terminal device retransmits audio data, during the first idle time slot after reception is completed, the secondary earphone N-1 generates an information data packet based on whether it has successfully detected the audio data packet. It receives the information data packet sent by the corresponding slave device, secondary earphone N, through its affiliated secondary Bluetooth connection link, and integrates the received information data packet with its own generated information data packet to obtain a sub-information data packet. The sub-information data packet contains whether the devices after secondary earphone N-2 (i.e., secondary earphone N-1 and secondary earphone N) have correctly received the audio data packet, marked as ACKn-1. Then, secondary earphone N-1 replies to the corresponding master device, secondary earphone N-2, through its affiliated secondary Bluetooth connection link. Other secondary earphones and the master earphone do not send any information to their master devices.
[0132] When the secondary earphone is the primary earphone among multiple secondary earphones, after listening to the audio data packets sent by the terminal device to the primary earphone, the audio sharing method further includes:
[0133] An information data packet is generated based on whether the audio data packet was successfully detected.
[0134] The system receives sub-information data packets sent by the corresponding slave device's secondary earphone through its associated secondary Bluetooth connection link, and integrates the sub-information data packets with its own generated information data packets to obtain a total information data packet.
[0135] The total information data packet is sent to the main earphone via its respective main Bluetooth connection link.
[0136] Regarding the above three steps, in specific implementation, when the secondary earphone is the primary earphone among multiple secondary earphones, an information data packet is generated based on whether the audio data packet was successfully detected. It receives sub-information data packets sent by the corresponding slave earphones through its associated secondary Bluetooth connection link, integrates the sub-information data packets with its own generated information data packet to obtain a total information data packet, and then sends the total information data packet to the primary earphone through its associated primary Bluetooth connection link. As an example, such as... Figure 3As shown, when the secondary earphone is the primary earphone among multiple secondary earphones, this secondary earphone is... Figure 3 In the secondary earphone 1, when the terminal device retransmits audio data, during the first idle time slot after reception is completed, the secondary earphone 1 generates an information data packet based on whether it has successfully detected the audio data packet. It receives the sub-information data packet sent by the corresponding slave earphone 2 through its affiliated secondary Bluetooth connection link, and integrates the received sub-information data packet with its own generated information data packet to obtain a total information data packet. The total information data packet contains whether all secondary earphones (secondary earphone 1 to secondary earphone N) have correctly received the audio data packet, and is marked as ACK. Then, the secondary earphone 1 replies to the master earphone through its affiliated primary Bluetooth connection link with the total information data packet. Other secondary earphones and the master earphone do not send any information to their master device.
[0137] As an optional implementation, when there are many participants sharing headsets, a group transmission mode can be further adopted: multiple secondary headsets are divided into multiple secondary headset groups, each secondary headset group including a group leader headset and at least one group member headset. Please refer to [link / reference]. Figure 4 , Figure 4 This is a connection topology diagram of another headphone audio sharing system provided in an embodiment of this application. Figure 4 As shown in the diagram, we'll use 3 groups as an example, assuming there are 3N devices participating in the connection. The secondary earpieces can be divided into three groups, each with N devices. Secondary earpiece 1, secondary earpiece N, and secondary earpiece 2N serve as the group leaders of the three groups, denoted as Group Leader Earpiece 1, Group Leader Earpiece 2, and Group Leader Earpiece 3, respectively.
[0138] Furthermore, according to the audio sharing method provided in this application embodiment, when a secondary earphone in a secondary earphone group actively or unexpectedly exits the sharing system due to low voltage during audio data transmission, its master device and slave device re-establish a Bluetooth connection, and sequentially transmit a disconnection message to other secondary earphones. Upon receiving this message, the other earphones update the system's secondary earphone connection table and reduce the total number of secondary earphones in the system by one. The specific implementation method is the same as that provided in the above embodiments and will not be repeated here. When the group leader earphone in a secondary earphone group exits the sharing system, the next slave device in the secondary earphone group to which the group leader earphone belongs inherits the group leader position and establishes a link with other group leaders.
[0139] Furthermore, according to the audio sharing method provided in the embodiments of this application, when the secondary earphone is the last-level leader earphone among multiple leader earphones, after listening to the audio data packet sent by the terminal device to the primary earphone, the audio sharing method further includes:
[0140] It receives the sub-information data packet sent by the primary sub-earthphone in its subordinate sub-earthphone group, integrates the sub-information data packet with the information data packet it generates, obtains the earphone group sub-information data packet, and sends the earphone group sub-information data packet to the adjacent previous group leader earphone through the subordinate sub-Bluetooth connection link.
[0141] It should be noted that the headphone group sub-information data packet includes information on whether all members of the secondary headphone group have successfully detected the audio data packet.
[0142] Regarding the above steps, in specific implementation, when the secondary earphone is the last-level leader earphone among multiple leader earphones, it receives the sub-information data packet sent by the first-level secondary earphone in its group, integrates the sub-information data packet with its own generated information data packet to obtain the earphone group sub-information data packet, and sends the earphone group sub-information data packet to the adjacent previous leader earphone through its affiliated secondary Bluetooth connection link. Here, as mentioned above, the first-level secondary earphone in each group generates a sub-information data packet carrying whether all member earphones have successfully detected the audio data packet, and sends the first-level secondary earphone to the last-level leader earphone in its group. The last-level leader earphone receives the sub-information data packet sent by the first-level secondary earphone in its group, integrates the sub-information data packet with its own generated information data packet to obtain the earphone group sub-information data packet, and sends the earphone group sub-information data packet to the adjacent previous leader earphone through its affiliated secondary Bluetooth connection link. As an example, such as... Figure 4 As shown, the last-level group leader earphone is the secondary earphone 2N, which receives the sub-information data packets sent by the first-level secondary earphone 2N+1, and sends the earphone group sub-information data packets to the adjacent previous group leader earphone N through its affiliated secondary Bluetooth connection link. Other secondary earphones and the main earphone do not send any information to their main device.
[0143] When the secondary earpiece is an intermediate-level group leader earpiece among multiple group leader earpieces, after listening to the audio data packets sent by the terminal device to the primary earpiece, the audio sharing method further includes:
[0144] It receives sub-information data packets sent by the primary sub-earthphone in its sub-earthphone group, and integrates the sub-information data packets with its own generated information data packets to obtain the sub-information data packets of the earphone group.
[0145] Receive headphone group information data packets sent by the next adjacent group leader headphone via the corresponding secondary Bluetooth connection link.
[0146] The received headphone group sub-information data packet and the headphone group sub-information data packet generated by itself are integrated to obtain a headphone group information data packet, and the headphone group information data packet is sent to the adjacent previous group leader headphone through the corresponding secondary Bluetooth connection link.
[0147] Regarding the three steps mentioned above, in specific implementation, when the secondary earphone is an intermediate-level group leader earphone among multiple group leader earphones, it receives the sub-information data packet sent by the first-level secondary earphone in its group, and integrates the sub-information data packet with its own generated information data packet to obtain the earphone group sub-information data packet. It then receives the earphone group sub-information data packet sent by the next adjacent group leader earphone through its affiliated secondary Bluetooth connection link. It integrates the received earphone group sub-information data packet with its own generated earphone group sub-information data packet to obtain the earphone group information data packet, and sends the earphone group information data packet to the previous adjacent group leader earphone through its affiliated secondary Bluetooth connection link. As an example, such as... Figure 4 As shown, for example, the intermediate level group leader's headphones are Figure 4 The secondary earphone N receives the sub-information data packet sent by the primary secondary earphone N+1, and sends the earphone group information data packet to the adjacent previous group leader earphone 1 through its affiliated secondary Bluetooth connection link. The earphone group information data packet includes whether the group after the second group of secondary earphones (i.e., the second group of secondary earphones and the third group of secondary earphones) has successfully detected the audio data packet. Other secondary earphones and the primary earphone do not send any information to their primary device.
[0148] When the secondary earpiece is the primary earpiece among multiple group leader earpieces, after listening to the audio data packets sent by the terminal device to the primary earpiece, the audio sharing method further includes:
[0149] It receives sub-information data packets sent by the primary sub-earthphone in its sub-earthphone group, and integrates the sub-information data packets with its own generated information data packets to obtain the earphone group sub-information data packets.
[0150] The system receives headphone group sub-information data packets sent by the next adjacent group leader headphone via its secondary Bluetooth connection link, and integrates the received headphone group sub-information data packets with its own generated headphone group sub-information data packets to obtain a total information data packet.
[0151] The total information data packet is sent to the main earphone via its respective main Bluetooth connection link.
[0152] Regarding the above three steps, in specific implementation, when the secondary earphone is the primary leader earphone among multiple leader earphones, it receives sub-information data packets sent by the primary secondary earphone in its group, and integrates these sub-information data packets with its own generated information data packets to obtain an earphone group sub-information data packet. It then receives earphone group sub-information data packets sent by the next adjacent leader earphone through its secondary Bluetooth connection link, and integrates the received earphone group sub-information data packets with its own generated earphone group sub-information data packets to obtain a total information data packet, which is then sent to the primary earphone through its primary Bluetooth connection link. For example... Figure 4 As shown, for example, the head of the first-level group leader's earpiece is Figure 4 In the first-level secondary earphone (1), the sub-information data packet is received from the primary secondary earphone (2). The secondary earphone then forwards the earphone group information data packet to the primary earphone via its parent Bluetooth link. This earphone group information data packet contains information on whether all secondary earphones have successfully detected the audio data packet. Neither the other secondary earphones nor the primary earphone send any information to their parent device. Upon receiving the total information data packet from the parent earphone, the primary earphone adds its own generated information data packet to the total information data packet to obtain the target information data packet. The primary earphone then sends the target information data packet to the terminal device via the terminal Bluetooth link. The terminal device can then determine whether all earphones have detected the audio data packet based on the target information data packet.
[0153] As an optional implementation, the multiple member earphones within each secondary earphone group can be further grouped to form a multi-layered grouping structure. The interaction method within each secondary earphone group is the same as that provided in the above embodiments and can achieve the same technical effect, so it will not be described in detail here.
[0154] The audio sharing method provided in this application is applied to any one of multiple secondary earphones. The secondary earphone receives a pairing request from the primary earphone and pairs with the primary earphone based on the pairing request; establishes a primary Bluetooth connection link with the primary earphone; receives parameter information corresponding to the terminal Bluetooth connection link between the primary earphone and the terminal device sent by the primary earphone through the primary Bluetooth connection link; listens for audio data packets sent by the terminal device to the primary earphone through the parameter information, and synchronously plays the audio data in the audio data packets with the terminal device. This achieves the effect of one terminal device sharing audio with multiple Bluetooth earphones, covering usage scenarios where multiple users share the same audio.
[0155] Please see Figure 5 , Figure 5 This is a schematic diagram of the structure of an audio sharing system provided in an embodiment of this application. Figure 5As shown in the figure, the audio sharing system 500 includes a terminal device A, a main earphone B, and multiple secondary earphones C1...Cn, wherein the terminal device A, the main earphone B, and the multiple secondary earphones C1...Cn are connected via Bluetooth communication.
[0156] The terminal device A is used to play audio data and generate and send audio data packets containing the audio data;
[0157] The main earphone B is used to obtain the Bluetooth addresses of multiple secondary earphones C1...Cn, and pair with the multiple secondary earphones C1...Cn sequentially based on the Bluetooth addresses of the multiple secondary earphones C1...Cn, establish a terminal Bluetooth connection link with the terminal device A, and record the parameter information corresponding to the terminal Bluetooth connection link. It receives audio data packets containing audio data sent by the terminal device A through the terminal Bluetooth connection link, and plays the audio data synchronously with the terminal device. For each secondary earphone Ci, it establishes a main Bluetooth connection link with the secondary earphone Ci, and sends the parameter information corresponding to the terminal Bluetooth connection link to the secondary earphone Ci through the main Bluetooth connection link, so that the secondary earphone Ci can listen to the audio data packets sent by the terminal device A according to the parameter information.
[0158] Any one of the multiple secondary earphones Ci is used to receive a pairing request from the main earphone B, and pair with the main earphone B based on the pairing request, establish a main Bluetooth connection link with the main earphone B, receive parameter information sent by the main earphone B corresponding to the terminal Bluetooth connection link between the main earphone and the terminal device A through the main Bluetooth connection link, listen for the audio data packets sent by the terminal device A to the main earphone B through the parameter information, and synchronously play the audio data in the audio data packets with the terminal device A.
[0159] Furthermore, the main earphone B is also used for:
[0160] When pairing with the plurality of secondary earphones C1…Cn, a secondary earphone connection table is generated based on the Bluetooth addresses of the plurality of secondary earphones C1…Cn and the number of the plurality of secondary earphones C1…Cn;
[0161] The secondary earphone connection table is sent to each secondary earphone Ci via the primary Bluetooth connection link established with each secondary earphone Ci.
[0162] Furthermore, the main earphone B is also used for:
[0163] A master earphone information data packet is generated based on whether the audio data packet was successfully received.
[0164] The system receives a total information data packet sent by the first secondary earphone among multiple secondary earphones C1...Cn through the main Bluetooth connection link, and adds the main earphone information data packet to the total information data packet to obtain the target information data packet;
[0165] The target information data packet is sent to the terminal device A via the terminal Bluetooth connection link, so that the terminal device A can determine whether all headphones have successfully detected the audio data packet based on the target information data packet.
[0166] Furthermore, when the secondary earphone Ci is the primary or intermediate earphone among multiple secondary earphones C1…Cn, the secondary earphone Ci is also used for:
[0167] The next adjacent secondary earphone is determined according to the pre-set order of secondary earphones;
[0168] A secondary Bluetooth connection link is established with the next secondary earphone; wherein the secondary earphone Ci is the master device of the secondary Bluetooth connection link, and the next secondary earphone is the slave device of the secondary Bluetooth connection link.
[0169] Furthermore, the secondary earphone Ci is also used for:
[0170] The secondary earphone connection list sent by the primary earphone is received through the primary Bluetooth connection link.
[0171] Furthermore, when a secondary earphone is removed, and the secondary earphone Ci is the master device of the removed secondary earphone, the secondary earphone Ci is also used for:
[0172] Based on the removed secondary earphone, a disconnection message is generated, the corresponding slave device secondary earphone is determined, and the secondary Bluetooth connection link is re-established with the slave device secondary earphone.
[0173] The disconnect message is sent to the adjacent secondary earphone connected via the secondary Bluetooth connection link, so that the adjacent secondary earphone updates its connection table according to the disconnect message;
[0174] When the removed secondary earphone exists, and the secondary earphone Ci is the slave device of the removed secondary earphone, the secondary earphone Ci is further used to:
[0175] Based on the removed secondary earphone, a disconnection message is generated, the corresponding primary device secondary earphone is determined, and the secondary Bluetooth connection link is re-established with the primary device secondary earphone corresponding to the removed secondary earphone.
[0176] The disconnect message is sent to the adjacent secondary earphone connected via the secondary Bluetooth connection link, so that the adjacent secondary earphone updates its connection table based on the disconnect message.
[0177] Furthermore, when the secondary earphone Ci is the final earphone among multiple secondary earphones, after listening to the audio data packet sent by the terminal device to the primary earphone, the secondary earphone Ci is also used for:
[0178] An information data packet is generated based on whether the audio data packet is successfully detected, and the information data packet is sent to the corresponding master device secondary earphone through the corresponding secondary Bluetooth connection link; wherein, the information data packet is used to indicate whether the secondary earphone Ci has successfully detected the audio data packet;
[0179] When the secondary earphone Ci is an intermediate-level earphone among multiple secondary earphones, after listening to the audio data packet sent by the terminal device to the primary earphone, the secondary earphone Ci is further used to:
[0180] An information data packet is generated based on whether the audio data packet was successfully detected.
[0181] The system receives information data packets sent by the corresponding slave device's secondary earphone through its own secondary Bluetooth connection link, and integrates the received information data packets with its own generated information data packets to obtain sub-information data packets.
[0182] The sub-information data packet is sent to the corresponding master device secondary earphone through its associated secondary Bluetooth connection link;
[0183] When the secondary earphone Ci is the primary earphone among multiple secondary earphones, after listening to the audio data packet sent by the terminal device to the primary earphone, the secondary earphone Ci is further used for:
[0184] An information data packet is generated based on whether the audio data packet was successfully detected.
[0185] The system receives the corresponding sub-information data packets sent by the slave device's secondary earphone through its associated secondary Bluetooth connection link, and integrates the sub-information data packets with its own generated information data packets to obtain the total information data packet.
[0186] The total information data packet is sent to the main earphone B via its respective main Bluetooth connection link.
[0187] Furthermore, the multiple secondary earphones C1…Cn are divided into multiple secondary earphone groups, each secondary earphone group including a group leader earphone and at least one group member earphone; when the secondary earphone Ci is the last group leader earphone among the multiple group leader earphones, after listening to the audio data packet sent by the terminal device to the main earphone, the secondary earphone Ci is also used for:
[0188] It receives the sub-information data packet sent by the primary sub-earth earphone in its sub-earth earphone group, integrates the sub-information data packet with the information data packet it generates, obtains the earphone group sub-information data packet, and sends the earphone group sub-information data packet to the adjacent previous group leader earphone through the sub-Bluetooth connection link.
[0189] When the secondary earphone Ci is an intermediate-level group leader earphone among multiple group leader earphones, after listening to the audio data packets sent by the terminal device to the primary earphone, the secondary earphone Ci is further used for:
[0190] Receive sub-information data packets sent by the primary sub-earthphone in the sub-earthphone group, and integrate the sub-information data packets with the information data packets generated by itself to obtain the sub-information data packets of the earphone group;
[0191] Receive headphone group sub-information data packets sent by the next adjacent group leader headphone through the corresponding secondary Bluetooth connection link;
[0192] The received headphone group sub-information data packet and the headphone group sub-information data packet generated by itself are integrated to obtain the headphone group information data packet, and the headphone group information data packet is sent to the adjacent previous group leader headphone through the corresponding secondary Bluetooth connection link.
[0193] When the secondary earphone Ci is the primary leader earphone among multiple leader earphones, after listening to the audio data packets sent by the terminal device to the primary earphone, the secondary earphone Ci is further used for:
[0194] Receive sub-information data packets sent by the primary sub-earthphone in the sub-earthphone group, and integrate the sub-information data packets with the information data packets generated by itself to obtain the earphone group sub-information data packets;
[0195] The system receives headphone group sub-information data packets sent by the next adjacent group leader headphone through its secondary Bluetooth connection link, and integrates the received headphone group sub-information data packets with its own generated headphone group sub-information data packets to obtain a total information data packet.
[0196] The total information data packet is sent to the main earphone B via its respective main Bluetooth connection link.
[0197] Those skilled in the art will understand that, for the sake of convenience and brevity, the specific working processes of the systems, devices, and units described above can be referred to the corresponding processes in the foregoing method embodiments, and will not be repeated here.
[0198] In the several embodiments provided in this application, it should be understood that the disclosed systems, apparatuses, and methods can be implemented in other ways. The apparatus embodiments described above are merely illustrative. For example, the division of units is only a logical functional division, and in actual implementation, there may be other division methods. Furthermore, multiple units or components may be combined or integrated into another system, or some features may be ignored or not executed. Additionally, the shown or discussed mutual couplings, direct couplings, or communication connections may be through some communication interfaces; indirect couplings or communication connections between devices or units may be electrical, mechanical, or other forms.
[0199] The units described as separate components may or may not be physically separate. The components shown as units may or may not be physical units; that is, they may be located in one place or distributed across multiple network units. Some or all of the units can be selected to achieve the purpose of this embodiment according to actual needs.
[0200] In addition, the functional units in the various embodiments of this application can be integrated into one processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit.
[0201] If the aforementioned functions are implemented as software functional units and sold or used as independent products, they can be stored in a processor-executable, non-volatile, computer-readable storage medium. Based on this understanding, the technical solution of this application, in essence, or the part that contributes to the prior art, or a portion of the technical solution, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) to execute all or part of the steps of the methods described in the various embodiments of this application. The aforementioned storage medium includes various media capable of storing program code, such as USB flash drives, portable hard drives, read-only memory (ROM), random access memory (RAM), magnetic disks, or optical disks.
[0202] It should be noted that similar labels and letters in the following figures indicate similar items. Therefore, once an item is defined in one figure, it does not need to be further defined and explained in subsequent figures. In addition, the terms "first", "second", "third", etc. are used only to distinguish descriptions and should not be construed as indicating or implying relative importance.
[0203] Finally, it should be noted that the above-described embodiments are merely specific implementations of this application, used to illustrate the technical solutions of this application, and not to limit them. The scope of protection of this application is not limited thereto. Although this application has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that any person skilled in the art can still modify or easily conceive of changes to the technical solutions described in the foregoing embodiments, or make equivalent substitutions for some of the technical features, within the scope of the technology disclosed in this application. Such modifications, changes, or substitutions do not cause the essence of the corresponding technical solutions to deviate from the spirit and scope of the technical solutions of the embodiments of this application, and should all be covered within the scope of protection of this application. Therefore, the scope of protection of this application should be determined by the scope of the claims.
Claims
1. An audio sharing method, characterized in that, The audio sharing method is applied to the main earphone, and the audio sharing method includes: Obtain the Bluetooth addresses of multiple secondary earphones, and pair with the multiple secondary earphones sequentially based on the Bluetooth addresses of the multiple secondary earphones; Establish a Bluetooth connection link with the terminal device and record the parameter information corresponding to the Bluetooth connection link. The terminal receives audio data packets containing audio data sent by the terminal device via the Bluetooth connection link, and plays the audio data synchronously with the terminal device. For each secondary earphone, a primary Bluetooth connection link is established with that earphone, and parameter information corresponding to the terminal Bluetooth connection link is sent to the secondary earphone through the primary Bluetooth connection link, so that the secondary earphone can listen to the audio data packets sent by the terminal device according to the parameter information; The audio sharing method also includes: A master earphone information data packet is generated based on whether the audio data packet was successfully received. The system receives a total information data packet sent by the primary secondary earphone from among multiple secondary earphones via the main Bluetooth connection link, and adds the primary earphone information data packet to the total information data packet to obtain a target information data packet. The target information data packet is sent to the terminal device via the terminal Bluetooth connection link, so that the terminal device can determine whether all headphones have successfully detected the audio data packet based on the target information data packet.
2. The audio sharing method according to claim 1, characterized in that, The audio sharing method also includes: When pairing with the multiple secondary earphones, a secondary earphone connection table is generated based on the Bluetooth addresses of the multiple secondary earphones and the number of the multiple secondary earphones; The secondary earphone connection table is sent to each secondary earphone via the primary Bluetooth connection link established with each secondary earphone.
3. An audio sharing method, characterized in that, The audio sharing method is applied to any one of multiple secondary earphones, and the audio sharing method includes: Receive a pairing request from the main earphone and pair with the main earphone based on the pairing request; Establish a main Bluetooth connection link with the main earphone; The main Bluetooth connection link receives parameter information sent by the main earphone, corresponding to the terminal Bluetooth connection link between the main earphone and the terminal device; The system listens to the audio data packets sent from the terminal device to the main earphone using the parameter information, and plays the audio data in the audio data packets synchronously with the terminal device. When the secondary earphone is the lowest-level earphone among multiple secondary earphones, after listening to the audio data packets sent by the terminal device to the primary earphone, the audio sharing method further includes: An information data packet is generated based on whether the audio data packet is successfully detected, and the information data packet is sent to the corresponding master device secondary earphone through the corresponding secondary Bluetooth connection link; wherein, the information data packet is used to indicate whether the secondary earphone has successfully detected the audio data packet; When the secondary earphone is an intermediate-level earphone among multiple secondary earphones, after listening to the audio data packets sent by the terminal device to the primary earphone, the audio sharing method further includes: An information data packet is generated based on whether the audio data packet was successfully detected. The system receives information data packets sent by the corresponding slave device's secondary earphone through its own secondary Bluetooth connection link, and integrates the received information data packets with its own generated information data packets to obtain sub-information data packets. The sub-information data packet is sent to the corresponding master device secondary earphone through its associated secondary Bluetooth connection link; When the secondary earphone is the primary earphone among multiple secondary earphones, after listening to the audio data packets sent by the terminal device to the primary earphone, the audio sharing method further includes: An information data packet is generated based on whether the audio data packet was successfully detected. The system receives the corresponding sub-information data packets sent by the slave device's secondary earphone through its associated secondary Bluetooth connection link, and integrates the sub-information data packets with its own generated information data packets to obtain the total information data packet. The total information data packet is sent to the main earphone via its respective main Bluetooth connection link.
4. The audio sharing method according to claim 3, characterized in that, When the secondary earphone is either the primary or intermediate earphone among multiple secondary earphones, the audio sharing method further includes: The next adjacent secondary earphone is determined according to the pre-set order of secondary earphones; A secondary Bluetooth connection link is established with the next secondary earphone; wherein the secondary earphone is the master device of the secondary Bluetooth connection link, and the next secondary earphone is the slave device of the secondary Bluetooth connection link.
5. The audio sharing method according to claim 4, characterized in that, The audio sharing method also includes: The secondary earphone connection list sent by the primary earphone is received through the primary Bluetooth connection link.
6. The audio sharing method according to claim 5, characterized in that, When a secondary earphone is removed, and the secondary earphone is the primary device of the removed secondary earphone, the audio sharing method further includes: Based on the removed secondary earphone, a disconnection message is generated, the corresponding slave device secondary earphone is determined, and the secondary Bluetooth connection link is re-established with the slave device secondary earphone. The disconnect message is sent to the adjacent secondary earphone connected via the secondary Bluetooth connection link, so that the adjacent secondary earphone updates its connection table according to the disconnect message; When the removed secondary earphone exists, and the secondary earphone is a slave device of the removed secondary earphone, the audio sharing method further includes: Based on the removed secondary earphone, a disconnection message is generated, the corresponding primary device secondary earphone is determined, and the secondary Bluetooth connection link is re-established with the primary device secondary earphone corresponding to the removed secondary earphone. The disconnect message is sent to the adjacent secondary earphone connected via the secondary Bluetooth connection link, so that the adjacent secondary earphone updates its connection table based on the disconnect message.
7. The audio sharing method according to claim 3, characterized in that, The multiple secondary earpieces are divided into multiple secondary earpiece groups, each secondary earpiece group including a group leader earpiece and at least one group member earpiece; when the secondary earpiece is the last group leader earpiece among the multiple group leader earpieces, after listening to the audio data packets sent by the terminal device to the main earpiece, the audio sharing method further includes: It receives the sub-information data packet sent by the primary sub-earth earphone in its sub-earth earphone group, integrates the sub-information data packet with the information data packet it generates, obtains the earphone group sub-information data packet, and sends the earphone group sub-information data packet to the adjacent previous group leader earphone through the sub-Bluetooth connection link. When the secondary earpiece is an intermediate-level group leader earpiece among multiple group leader earpieces, after listening to the audio data packets sent by the terminal device to the primary earpiece, the audio sharing method further includes: Receive sub-information data packets sent by the primary sub-earthphone in the sub-earthphone group, and integrate the sub-information data packets with the information data packets generated by itself to obtain the sub-information data packets of the earphone group; Receive headphone group sub-information data packets sent by the next adjacent group leader headphone through the corresponding secondary Bluetooth connection link; The received headphone group sub-information data packet and the headphone group sub-information data packet generated by itself are integrated to obtain the headphone group information data packet, and the headphone group information data packet is sent to the adjacent previous group leader headphone through the corresponding secondary Bluetooth connection link. When the secondary earpiece is the primary earpiece among multiple group leader earpieces, after listening to the audio data packets sent by the terminal device to the primary earpiece, the audio sharing method further includes: Receive sub-information data packets sent by the primary sub-earthphone in the sub-earthphone group, and integrate the sub-information data packets with the information data packets generated by itself to obtain the earphone group sub-information data packets; The system receives headphone group sub-information data packets sent by the next adjacent group leader headphone through its secondary Bluetooth connection link, and integrates the received headphone group sub-information data packets with its own generated headphone group sub-information data packets to obtain a total information data packet. The total information data packet is sent to the main earphone via its respective main Bluetooth connection link.
8. An audio sharing system, characterized in that, The audio sharing system includes a terminal device, a main earphone, and multiple secondary earphones, which are connected via Bluetooth communication. The terminal device is used to play audio data and generate and send audio data packets containing the audio data; The main earphone is used to acquire the Bluetooth addresses of multiple secondary earphones, and sequentially pair with the multiple secondary earphones based on their Bluetooth addresses, establish a terminal Bluetooth connection link with the terminal device, and record the parameter information corresponding to the terminal Bluetooth connection link. It receives audio data packets containing audio data sent by the terminal device through the terminal Bluetooth connection link, and synchronously plays the audio data with the terminal device. For each secondary earphone, it establishes a main Bluetooth connection link with that earphone and sends the parameter information corresponding to the terminal Bluetooth connection link to that earphone through the main Bluetooth connection link, so that the earphone can listen to the audio data packets sent by the terminal device according to the parameter information. Any one of the plurality of secondary earphones is used to receive a pairing request from the main earphone, and pair with the main earphone based on the pairing request, establish a main Bluetooth connection link with the main earphone, receive parameter information corresponding to the terminal Bluetooth connection link between the main earphone and the terminal device sent by the main earphone through the main Bluetooth connection link, listen to the audio data packets sent by the terminal device to the main earphone through the parameter information, and play the audio data in the audio data packets synchronously with the terminal device; The main earphone is also used to generate a main earphone information data packet based on whether the audio data packet has been successfully received; The system receives a total information data packet sent by the primary secondary earphone from multiple secondary earphones via the main Bluetooth connection link, and adds the primary earphone information data packet to the total information data packet to obtain a target information data packet. The system then sends the target information data packet to the terminal device via the terminal Bluetooth connection link, so that the terminal device can determine whether all earphones have successfully detected the audio data packet based on the target information data packet.
Citation Information
Patent Citations
Audio synchronous playing method and device and TWS Bluetooth earphone
CN110519742A
TWS earphone and control method thereof
CN112188344A