Information updating method and device, audio sharing method and system, and electronic device

By dynamically updating the information of the Bluetooth device collection, the collaborative use between different Bluetooth device collections is achieved, which solves the problem of difficulty in sharing audio data in the prior art and improves the reliability of audio data transmission.

CN119767279APending Publication Date: 2025-04-04GUANGDONG OPPO MOBILE TELECOMMUNICATIONS CORP LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411886124.4
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2022-07-21
Publication Date
2025-04-04

AI Technical Summary

Technical Problem

The prior art is difficult to achieve collaborative work between different sets of Bluetooth devices, especially when sharing audio data is required, and there is a lack of effective solutions.

Method used

Through an information update method, Bluetooth devices from different Bluetooth devices are dynamically formed into the same Bluetooth device collection to achieve collaborative use. The specific steps include obtaining the target set information, updating the device information in the first Bluetooth device set and the second Bluetooth device set, and causing them to establish a LE Audio Bluetooth connection with the terminal device based on the target set information.

Benefits of technology

It realizes dynamic collaborative use between Bluetooth devices of different Bluetooth devices, meets users' usage needs and improves the reliability of audio data transmission.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119767279A_ABST
    Figure CN119767279A_ABST
Patent Text Reader

Abstract

The embodiments of the present application disclose an information updating method and device, an audio sharing method and system, an electronic device, and a storage medium. The information updating method is applied to an electronic device, and the method includes: obtaining target set information, the target set information is used to indicate a target Bluetooth device set; sending the target set information to N first Bluetooth devices in a first Bluetooth device set, so that the first Bluetooth device updates the first set information to the target set information; sending the target set information to M second Bluetooth devices in a second Bluetooth device set, so that the second Bluetooth device updates the second set information to the target set information. The above-mentioned information updating method and device, audio sharing method and system, electronic device, and storage medium can dynamically and flexibly combine Bluetooth devices in different Bluetooth device sets into the same Bluetooth device set for collaborative use to meet the user's usage needs.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of communication technology, and in particular to an information updating method and device, an audio sharing method and system, and an electronic device. Background Art

[0002] Bluetooth is a radio technology that supports short-range communication between devices. It can realize wireless information exchange between multiple electronic devices that support Bluetooth transmission, making data transmission between electronic devices faster and more efficient. Many Bluetooth devices on the market can be used as a device collection. For example, Bluetooth headsets, Bluetooth speaker systems, etc. all work together as a Bluetooth device collection.

[0003] In some application scenarios, users often need to make Bluetooth devices in different device sets work together. For example, they want different pairs of Bluetooth headsets to share music transmitted by the same mobile phone. There is currently no better solution. Summary of the invention

[0004] The embodiments of the present application disclose an information updating method and device, an audio sharing method and system, an electronic device, and a storage medium, which can dynamically and flexibly combine Bluetooth devices of different Bluetooth device sets into the same Bluetooth device set for collaborative use to meet the user's usage needs.

[0005] The present application embodiment discloses an information updating method, which is applied to an electronic device, and the method includes:

[0006] Acquire target set information, where the target set information is used to indicate a target Bluetooth device set;

[0007] Sending the target set information to N first Bluetooth devices in a first Bluetooth device set, so that the first Bluetooth devices update the first set information to the target set information; the first set information is used to indicate the first Bluetooth device set, and N is an integer greater than 1;

[0008] The target set information is sent to M second Bluetooth devices in the second Bluetooth device set, so that the second Bluetooth devices update the second set information to the target set information; the second set information is used to indicate the second Bluetooth device set, and M is an integer greater than 1.

[0009] The embodiment of the present application discloses an information updating method, which is applied to a first Bluetooth device, and the method includes:

[0010] Receiving target set information sent by an electronic device, where the target set information is used to indicate a target Bluetooth device set;

[0011] Updating the first set information to the target set information, where the first set information is used to indicate a first Bluetooth device set;

[0012] Among them, the N first Bluetooth devices whose first set information is updated to the target set information and the M second Bluetooth devices whose second set information is updated to the target set information are identified as belonging to the target Bluetooth device set; the second set information is used to indicate the second Bluetooth device set, and N and M are both integers greater than 1.

[0013] The present application embodiment discloses an audio sharing method, including:

[0014] The electronic device sends target set information to N first Bluetooth devices in a first Bluetooth device set, so that the first Bluetooth devices update the first set information to the target set information; the first set information is used to indicate the first Bluetooth device set, the target set information is used to indicate the target Bluetooth device set, and N is an integer greater than 1;

[0015] The electronic device sends the target set information to M second Bluetooth devices in the second Bluetooth device set, so that the second Bluetooth devices update the second set information to the target set information; the second set information is used to indicate the second Bluetooth device set, and M is an integer greater than 1;

[0016] The N first Bluetooth devices respectively establish LE Audio Bluetooth connections with the terminal device based on the target set information;

[0017] The M second Bluetooth devices respectively establish LEAudio Bluetooth connections with the terminal device based on the target set information;

[0018] The terminal device sends audio data to the N first Bluetooth devices and the M second Bluetooth devices respectively.

[0019] The embodiment of the present application discloses an information updating device, which is applied to an electronic device, and the device includes:

[0020] An information acquisition module, used to acquire target set information, where the target set information is used to indicate a target Bluetooth device set;

[0021] A sending module, used for sending the target set information to N first Bluetooth devices in a first Bluetooth device set, so that the first Bluetooth devices update the first set information to the target set information; the first set information is used to indicate the first Bluetooth device set, and N is an integer greater than 1;

[0022] The sending module is also used to send the target set information to M second Bluetooth devices in the second Bluetooth device set, so that the second Bluetooth devices update the second set information to the target set information; the second set information is used to indicate the second Bluetooth device set, and M is an integer greater than 1.

[0023] The embodiment of the present application discloses an information updating device, which is applied to a first Bluetooth device, and the device includes:

[0024] A receiving module, used for receiving target set information sent by an electronic device, wherein the target set information is used for indicating a target Bluetooth device set;

[0025] An updating module, configured to update the first set information to the target set information, wherein the first set information is used to indicate a first Bluetooth device set;

[0026] Among them, the N first Bluetooth devices whose first set information is updated to the target set information and the M second Bluetooth devices whose second set information is updated to the target set information are identified as belonging to the target Bluetooth device set; the second set information is used to indicate the second Bluetooth device set, and N and M are both integers greater than 1.

[0027] The embodiment of the present application discloses an audio sharing system, including an electronic device, N first Bluetooth devices, M second Bluetooth devices and a terminal device, wherein N and M are both integers greater than 1, wherein:

[0028] The electronic device is used to send target set information to the N first Bluetooth devices in the first Bluetooth device set, so that the first Bluetooth devices update the first set information to the target set information; the first set information is used to indicate the first Bluetooth device set, and the target set information is used to indicate the target Bluetooth device set;

[0029] The electronic device is further used to send the target set information to the M second Bluetooth devices in the second Bluetooth device set, so that the second Bluetooth devices update the second set information to the target set information; the second set information is used to indicate the second Bluetooth device set;

[0030] The N first Bluetooth devices are used to establish LEAudio Bluetooth connections with the terminal device based on the target set information respectively;

[0031] The M second Bluetooth devices are used to establish LEAudio Bluetooth connections with the terminal device based on the target set information respectively;

[0032] The terminal device is used to send audio data to the N first Bluetooth devices and the M second Bluetooth devices respectively.

[0033] An embodiment of the present application discloses an electronic device, including a memory, a processor, and a communication unit. The memory stores a computer program. When the computer program is executed by the processor, the electronic device implements the method described in any of the above embodiments.

[0034] An embodiment of the present application discloses a computer-readable storage medium having a computer program stored thereon. When the computer program is executed by a processor in an electronic device, the electronic device implements the method described in any of the above embodiments.

[0035] The information updating method and device, the audio sharing method and system, the electronic device, and the storage medium disclosed in the embodiments of the present application, the electronic device sends the target set information to N first Bluetooth devices in a first Bluetooth device set, so that the first Bluetooth device updates the first set information to the target set information, the electronic device sends the target set information to M second Bluetooth devices in a second Bluetooth device set, so that the second Bluetooth device updates the second set information to the target set information, the target set information is used to indicate the target Bluetooth device set, and the N first Bluetooth devices that originally belonged to the first Bluetooth device set and the M second Bluetooth devices that originally belonged to the second Bluetooth device set can be successfully configured to belong to the target Bluetooth device set for collaborative use, and the Bluetooth devices of different Bluetooth device sets can be dynamically and flexibly grouped into the same Bluetooth device set for collaborative use, thereby meeting the user's usage needs.

[0036] In addition, the terminal device can establish LE Audio Bluetooth connections with N first Bluetooth devices and M second Bluetooth devices that have updated the target set information, and send audio data to the N first Bluetooth devices and M second Bluetooth devices, thereby realizing audio sharing between the N first Bluetooth devices and the M second Bluetooth devices, and improving the reliability of audio data transmission. BRIEF DESCRIPTION OF THE DRAWINGS

[0037] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required for use in the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.

[0038] Figure 1A This is an application scenario diagram of an information updating method and an audio sharing method in an embodiment;

[0039] Figure 1BIt is an application scenario diagram of the information updating method and the audio sharing method in another embodiment;

[0040] Figure 1C This is an application scenario diagram of an information updating method and an audio sharing method in yet another embodiment;

[0041] Figure 2 is a timing diagram of an information updating method in an embodiment;

[0042] Figure 3 is a flow chart of an information updating method in one embodiment;

[0043] Figure 4A is a timing diagram of an information updating method in another embodiment;

[0044] Figure 4B is a timing diagram of an information updating method in another embodiment;

[0045] Figure 5 is a flowchart of an information updating method in another embodiment;

[0046] Figure 6 is a schematic diagram of the structure of an LE Audio broadcast signal in one embodiment;

[0047] Fig. 7A A timing diagram of N first Bluetooth devices and M second Bluetooth devices sharing audio data transmitted by a terminal device in one embodiment;

[0048] Figure 7B It is a timing diagram of N first Bluetooth devices and M second Bluetooth devices sharing audio data transmitted by a terminal device in another embodiment;

[0049] Figure 8 is a flowchart of an information updating method in yet another embodiment;

[0050] Fig. 9 is a flowchart of an audio sharing method in one embodiment;

[0051] Fig.10 is a block diagram of an information updating device in one embodiment;

[0052] Fig.11 is a block diagram of an information updating device in another embodiment;

[0053] Fig.12 FIG. 4 is a structural block diagram of an electronic device in an embodiment. DETAILED DESCRIPTION

[0054] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.

[0055] It should be noted that the terms "including" and "having" and any variations thereof in the embodiments of the present application and the accompanying drawings are intended to cover non-exclusive inclusions. For example, a process, method, system, product or device including a series of steps or units is not limited to the listed steps or units, but may optionally include steps or units not listed, or may optionally include other steps or units inherent to these processes, methods, products or devices.

[0056] It is understood that the terms "first", "second", etc. used in this application can be used to describe various elements in this article, but these elements are not limited by these terms. These terms are only used to distinguish one element from another element. For example, without departing from the scope of this application, the first Bluetooth device can be referred to as the second Bluetooth device, and similarly, the second Bluetooth device can be referred to as the first Bluetooth device. Both the first Bluetooth device and the second Bluetooth device are Bluetooth devices, but they are not the same Bluetooth device. The term "plurality" used in this application refers to two or more. The term "and / or" used in this application refers to one of the schemes, or any combination of multiple schemes.

[0057] In some application scenarios, users often need to make Bluetooth devices in different device sets work together, such as wanting different pairs of Bluetooth headsets to share music transmitted by the same mobile phone. In related technologies, for solutions to allow different pairs of Bluetooth headsets to share audio, the first is that the terminal device transmits audio data to one pair of Bluetooth headsets, and then the pair of headsets forwards it to another pair of Bluetooth headsets to achieve audio sharing; the second is based on the broadcast mechanism in BLE (Bluetooth Low Energy) technology, where the terminal device uses BLE broadcast to transmit audio data to different pairs of Bluetooth headsets to achieve audio sharing, etc.

[0058] For the first audio sharing method mentioned above, additional hardware or customized chips may be required to realize the audio sharing function, which increases costs and has poor compatibility. For the second audio sharing method mentioned above, since audio data is transmitted through connectionless BLE broadcasting, the reliability of transmission cannot be guaranteed.

[0059] The embodiments of the present application disclose an information updating method and device, an audio sharing method and system, an electronic device, and a storage medium, which can dynamically and flexibly combine Bluetooth devices of different Bluetooth device sets into the same Bluetooth device set for collaborative use, thereby meeting the use needs of users. In addition, audio sharing between N first Bluetooth devices and M second Bluetooth devices can be achieved, and the reliability of audio data transmission is improved.

[0060] Figure 1A FIG. 1 is an application scenario diagram of an information updating method and an audio sharing method in an embodiment. Figure 1A As shown, the first Bluetooth device set may include N first Bluetooth devices 120, and the second Bluetooth device set may include M second Bluetooth devices 130, where N and M are both integers greater than 1. The first Bluetooth device 120 and the second Bluetooth device 130 may include but are not limited to earphones, mobile phones, wearable devices, speaker devices, smart home devices and other devices. Furthermore, the first Bluetooth device 120 and the second Bluetooth device 130 may be TWS (True Wireless Stereo) earphones. The first Bluetooth device 120 and the second Bluetooth device 130 may be the same Bluetooth device or different Bluetooth devices.

[0061] The electronic device 110 may be a device capable of establishing a communication connection with the first Bluetooth device 120 and the second Bluetooth device 130. For example, the electronic device 110 may be an electronic device used in conjunction with the first Bluetooth device 120 and the second Bluetooth device 130. For example, the first Bluetooth device 120 and the second Bluetooth device 130 are both headphones, and the electronic device 110 may be a headphone box, etc., but is not limited thereto. The electronic device 110 may also include, but is not limited to, a mobile phone, a smart wearable device, a vehicle-mounted terminal, a tablet computer, a PC (Personal Computer), a PDA (Personal Digital Assistant), etc.

[0062] Each Bluetooth device may be provided with collection information, and the collection information may be used to indicate the Bluetooth device collection to which the Bluetooth device belongs. Optionally, the collection information may include combination identification information, and Bluetooth devices belonging to different Bluetooth device collections may correspond to different combination identification information, and the combination identification information may be used to identify the Bluetooth device collection to which the Bluetooth device belongs, and Bluetooth devices belonging to the same Bluetooth device collection may correspond to the same combination identification information, and an external device may identify multiple Bluetooth devices as a Bluetooth device collection through the combination identification information, so as to achieve the purpose of coordinated and synchronous use of Bluetooth devices belonging to the same Bluetooth device collection. For example, for the N first Bluetooth devices 120 in the first Bluetooth device collection, the same first combination identification information may be corresponded, and for the M second Bluetooth devices 130 in the second Bluetooth device collection, the same second combination identification information may be corresponded, and the first combination identification information is different from the second combination identification information, so as to ensure that the N first Bluetooth devices 120 in the first Bluetooth device collection and the M second Bluetooth devices 130 in the second Bluetooth device collection will not be confused when in use.

[0063] In the embodiment of the present application, it is possible to successfully configure N first Bluetooth devices 120 that originally belonged to the first Bluetooth device set and M second Bluetooth devices 130 that originally belonged to the second Bluetooth device set to belong to the target Bluetooth device set for collaborative use. The electronic device 110 can establish a communication connection with the N first Bluetooth devices 120 of the first Bluetooth device set, and send the target set information to the N first Bluetooth devices 120, so that the N first Bluetooth devices 120 update the first set information to the target set information. The electronic device 110 can establish a communication connection with the M second Bluetooth devices 130 of the second Bluetooth device set, and send the target set information to the M second Bluetooth devices 130, so that the M second Bluetooth devices 130 update the second set information to the target set information. The target set information is used to indicate the target Bluetooth device set, and the N first Bluetooth devices 120 and the M second Bluetooth devices 130 that have updated the target set information can be successfully added to the target Bluetooth device set, thereby realizing that the N first Bluetooth devices 120 and the M second Bluetooth devices 130 are identified as belonging to the same Bluetooth device set for collaborative use.

[0064] The above-mentioned communication connection may include but is not limited to wireless communication connection such as Bluetooth, and the Bluetooth communication connection may include but is not limited to any one of classic Bluetooth connection, BLE (Bluetooth Low Energy) connection, LE Audio Bluetooth connection, etc. Optionally, the above-mentioned communication connection may also be a physical connection method such as a contact point communication connection, and the specific communication connection method is not specifically limited in the embodiments of the present application.

[0065] Figure 1BFIG. 1 is an application scenario diagram of the information updating method and the audio sharing method in another embodiment. Figure 1B As shown, after the N first Bluetooth devices 120 update the first set information to the target set information, and the M second Bluetooth devices 130 update the second set information to the target set information, the N first Bluetooth devices 120 and the M second Bluetooth devices 130 belonging to the target Bluetooth device set can send Bluetooth broadcast signals based on the target set information. The terminal device 140 can establish Bluetooth connections with the N first Bluetooth devices 120 and the M second Bluetooth devices 130 respectively according to the scanned Bluetooth broadcast signals. For example, the N first Bluetooth devices 120 and the M second Bluetooth devices 130 can send LE Audio broadcast signals based on the target set information, and the terminal device 140 can establish LE Audio Bluetooth connections with the N first Bluetooth devices 120 and the M second Bluetooth devices 130 respectively according to the scanned LE Audio broadcast signals. After the terminal device establishes LE Audio Bluetooth connections with N first Bluetooth devices 120 and M second Bluetooth devices 130 respectively, it can establish CIS (Connected Isochronous Streams) and other audio transmission channels with the N first Bluetooth devices 120 and M second Bluetooth devices 130 respectively on the basis of the LE Audio Bluetooth connections, so as to send audio data to each first Bluetooth device 120 and each second Bluetooth device 130 respectively through the audio transmission channel, thereby realizing audio sharing between the N first Bluetooth devices 120 and the M second Bluetooth devices 130. Among them, the CIS channels established by the terminal device and the N first Bluetooth devices 120 and the M second Bluetooth devices 130 can form a CIG (Connected Isochronous Groups), and each CIS channel in the same CIG has the same timestamp, thereby ensuring that the audio data received in the CIG is synchronized.

[0066] Furthermore, each Bluetooth device under the target Bluetooth device set may be assigned a different role (eg, the left earphone plays the left channel audio, and the right earphone plays the right channel audio).

[0067] The terminal device 140 may include but is not limited to a mobile phone, a smart wearable device, a vehicle-mounted terminal, a tablet computer, a PC (Personal Computer), a PDA (Personal Digital Assistant), etc.

[0068] Figure 1C FIG. 2 is an application scenario diagram of an information updating method and an audio sharing method in another embodiment. Figure 1CAs shown, the electronic device 110 may include an earphone box 150, the first Bluetooth device set may include a first pair of earphones 160, and the second Bluetooth device set may include a second pair of earphones 170. In order to meet the user's need to use the first pair of earphones 160 and the second pair of earphones 170 in coordination, the first pair of earphones 160 and the second pair of earphones 170 may be configured to belong to the same Bluetooth device set for use through the earphone box 150. As an implementation mode, the user may respectively put the first pair of earphones 160 and the second pair of earphones 170 into the earphone box 150 (e.g., first put the first pair of earphones 160 into the earphone box 150, and then put the second pair of earphones 170 into the earphone box 150). When the first pair of earphones 160 is placed in the earphone box 150, the earphone box 150 may send the target set information to the left earphone and the right earphone of the first pair of earphones 160, respectively, and the left earphone and the right earphone of the first pair of earphones 160 may update the first set information to the target set information. When the second pair of headphones 170 is placed in the headphone box 150, the headphone box 150 can send the target set information to the left headphone and the right headphone of the second pair of headphones 170 respectively, and the left headphone and the right headphone of the second pair of headphones 170 can update the second set information to the target set information.

[0069] After the left earphone and the right earphone of the first pair of earphones 160 update the first set information to the target set information, and the left earphone and the right earphone of the second pair of earphones 170 update the second set information to the target set information, the first pair of earphones 160 and the second pair of earphones 170 are successfully added to the same Bluetooth device set. The left earphone and the right earphone of the first pair of earphones 160, and the left earphone and the right earphone of the second pair of earphones 170 can respectively establish a LEAudio Bluetooth connection with the terminal device 140 based on the target set information. The terminal device 140 can send audio data to the first pair of earphones 160 and the second pair of earphones 170 respectively, so that the first pair of earphones 160 and the second pair of earphones 170 share the audio data transmitted by the terminal device 140.

[0070] Furthermore, the terminal device 140 can send left channel audio data to the left earphone of the first pair of headphones 160 and the left earphone of the second pair of headphones 170, and send right channel audio data to the right earphone of the first pair of headphones 160 and the right earphone of the second pair of headphones 170, respectively.

[0071] It should be noted that the above-mentioned electronic device 110 can also configure Bluetooth devices that originally belonged to two or more different Bluetooth device sets to belong to the same Bluetooth device set for collaborative use, and is not limited to the above-mentioned first Bluetooth device set and second Bluetooth device set. For example, Bluetooth devices that originally belonged to 3 or 4 different Bluetooth device sets can be configured to belong to the same Bluetooth device set for collaborative use, etc., but is not limited to this.

[0072] Figure 2 FIG. 1 is a timing diagram of an information updating method in an embodiment. Figure 2 As shown, the information updating method may include the following steps:

[0073] 1. The electronic device obtains target set information.

[0074] 2. The electronic device sends the target set information to N first Bluetooth devices in the first Bluetooth device set.

[0075] 3. The N first Bluetooth devices update the first set information to the target set information.

[0076] 4. The electronic device sends the target set information to the M second Bluetooth devices in the second Bluetooth device set.

[0077] 5. The M second Bluetooth devices update the second set information to the target set information.

[0078] like Figure 3 As shown, in one embodiment, an information updating method is provided, which can be applied to the above electronic device, and the method may include the following steps:

[0079] Step 310: Acquire target set information, where the target set information is used to indicate a target Bluetooth device set.

[0080] The N first Bluetooth devices in the first Bluetooth device set and the M second Bluetooth devices in the second Bluetooth device set can be configured to belong to the same target Bluetooth device set through an electronic device. The electronic device can obtain target set information and send the target set information to the N first Bluetooth devices in the first Bluetooth device set and the M second Bluetooth devices in the second Bluetooth device set, respectively, so that the first Bluetooth device and the second Bluetooth device update the set information to successfully join the target Bluetooth device set.

[0081] In some embodiments, a user may perform a first trigger operation on an electronic device to trigger the function of the electronic device to group Bluetooth devices of different Bluetooth device sets into the same Bluetooth device set. When the electronic device detects the first trigger operation, it may respond to the first trigger operation to obtain target set information. The specific operation mode of the first trigger operation is not limited in the embodiment of the present application. For example, a specific key may be provided on the electronic device, and the specific key may be a virtual key or a physical key. The first trigger operation may be a preset operation on the specific key (such as long pressing for a period of time, clicking a specific key, double-clicking a specific key, etc.); for another example, the first trigger operation may be any one of a touch operation, a gesture operation, a voice operation, etc., and the electronic device may detect the first trigger operation through a corresponding sensor (such as detecting a preset pressing operation through a pressure sensor, detecting a preset gesture operation through a distance sensor, detecting a preset voice content through a voice sensor, etc.), but is not limited thereto.

[0082] For example, taking the electronic device as an earphone box, the first trigger operation may include long pressing the pairing button on the earphone box, double pressing the pairing button on the earphone box, setting a gesture operation on the earphone box, etc., but is not limited thereto.

[0083] Exemplarily, taking the electronic device as a mobile phone as an example, the mobile phone may provide an audio sharing button in the interface, and the first trigger operation may be clicking the audio sharing button, but is not limited thereto.

[0084] Step 320: Send the target set information to N first Bluetooth devices in the first Bluetooth device set, so that the first Bluetooth devices update the first set information to the target set information; the first set information is used to indicate the first Bluetooth device set.

[0085] Step 330: Send the target set information to M second Bluetooth devices in the second Bluetooth device set, so that the second Bluetooth devices update the second set information to the target set information; the second set information is used to indicate the second Bluetooth device set.

[0086] Each first Bluetooth device in the first Bluetooth device set may be configured with first set information, and the first set information may indicate that the first Bluetooth device belongs to the first Bluetooth device set. The electronic device may establish a communication connection with the N first Bluetooth devices in the first Bluetooth device set, and send target set information to the N first Bluetooth devices respectively. After the first Bluetooth device receives the target set information sent by the electronic device, it may update the first set information to the target set information, thereby successfully changing the first Bluetooth device from belonging to the first Bluetooth device set to belonging to the target Bluetooth device set.

[0087] Each second Bluetooth device in the second Bluetooth device set may be configured with second set information, and the second set information may indicate that the second Bluetooth device belongs to the second Bluetooth device set. The electronic device may establish a communication connection with the M second Bluetooth devices in the second Bluetooth device set, and send target set information to each of the M second Bluetooth devices. After receiving the target set information sent by the electronic device, the second Bluetooth device may update the second set information to the target set information, thereby successfully changing the second Bluetooth device from belonging to the second Bluetooth device set to belonging to the target Bluetooth device set.

[0088] The above-mentioned N and M can both be integers greater than 1, and N and M can be the same or different. For example, N and M are both 2, or N is 2 and M is 3, etc., but it is not limited thereto.

[0089] The specific connection method of the communication connection between the electronic device and the first Bluetooth device and the second Bluetooth device is not limited in the embodiments of the present application, and different communication connection methods can be selected for different electronic devices. For example, if the electronic device is a terminal device such as a mobile phone or a tablet computer, the communication connection method can be a Bluetooth communication connection, etc.; if the electronic device is a matching device corresponding to the first Bluetooth device and the second Bluetooth device, for example, the first Bluetooth device and the second Bluetooth device are both headphones, and the electronic device is a headphone box, then the communication connection method can be a contact communication connection, etc.

[0090] It should be noted that the electronic device may first establish a communication connection with the N first Bluetooth devices in the first Bluetooth device set, disconnect the communication connection with the N first Bluetooth devices after sending the target set information to the N first Bluetooth devices, and then establish a communication connection with the M second Bluetooth devices in the second Bluetooth device set; or, the electronic device may first establish a communication connection with the M second Bluetooth devices in the second Bluetooth device set, disconnect the communication connection with the M second Bluetooth devices after sending the target set information to the M second Bluetooth devices, and then establish a communication connection with the N second Bluetooth devices in the first Bluetooth device set. The electronic device may also simultaneously establish communication connections with the N first Bluetooth devices in the first Bluetooth device set and the M second Bluetooth devices in the second Bluetooth device set. The embodiment of the present application does not specifically limit the timing of the electronic device establishing a communication connection with the first Bluetooth device and the second Bluetooth device.

[0091] The embodiments of the present application do not limit the sequence of the electronic device acquiring the target set information and the electronic device establishing communication connections with the first Bluetooth device and the second Bluetooth device. For example, the electronic device may acquire the target set information before establishing communication connections with the N first Bluetooth devices and the M second Bluetooth devices, or the electronic device may first establish communication connections with the N first Bluetooth devices in the first Bluetooth device set and then acquire the target set information.

[0092] In some embodiments, the target set information may include target combination identification information, which can be used to identify the target Bluetooth device set, the first set information may include first combination identification information, which can be used to identify the first Bluetooth device set, and the second set information may include second combination identification information, which can be used to identify the second Bluetooth device set. The first combination identification information is different from the second combination identification information to ensure that the N first Bluetooth devices in the first Bluetooth device set and the M second Bluetooth devices in the second Bluetooth device set are used separately when the set information is not updated, and there will be no confusion. The target combination identification information may be different from the first combination identification information and the second combination identification information, and may also be the same as the first combination identification information or the second combination identification information.

[0093] After receiving the target combination identification information sent by the electronic device, the first Bluetooth device can update its own combination identification information from the first combination identification information to the target combination identification information. After receiving the target combination identification information sent by the electronic device, the second Bluetooth device can update its own combination identification information from the second combination identification information to the target combination identification information.

[0094] Optionally, after receiving the target combination identification information sent by the electronic device, the first Bluetooth device may determine whether the first combination identification information is the same as the target combination identification information. If they are not the same, the first combination identification information is updated to the target combination identification information. If they are the same, the first Bluetooth device may not update its own combination identification information. Similarly, after receiving the target combination identification information sent by the electronic device, the second Bluetooth device may determine whether the second combination identification information is the same as the target combination identification information. If they are not the same, the second combination identification information is updated to the target combination identification information. If they are the same, the second Bluetooth device may not update its own combination identification information.

[0095] After N first Bluetooth devices and M second Bluetooth devices update their own combination identification information to the target combination identification information, they correspond to the same target combination identification information. If an external terminal device scans the first Bluetooth device and the second Bluetooth device at the same time, since the combination identification information of the first Bluetooth device and the second Bluetooth device is the same, both are the above-mentioned target combination identification information, the first Bluetooth device and the other Bluetooth devices can be used collaboratively as a Bluetooth device set.

[0096] In some embodiments, BLE Audio (Bluetooth Low Energy Audio) technology, as a mainstream technology vigorously promoted by Bluetooth SIG in recent years, can provide people with wireless audio services with lower power consumption, lower cost, higher quality, and lower latency. CSIP (Coordinated Set Identification Profile) is provided in BLE Audio technology, which allows multiple Bluetooth devices belonging to the same Bluetooth device set to achieve the purpose of coordination and synchronization when interacting with external devices. In CSIP, for multiple Bluetooth devices belonging to the same Bluetooth device set, the same SIRK (Set Identity Resolving Key) can be used, that is, Bluetooth devices with the same SIRK are identified as the same Bluetooth device set.

[0097] In an embodiment of the present application, the target combination identification information may include a target SIRK, the first combination identification information may include a first SIRK, and the second combination identification information may include a second SIRK. After receiving the target SIRK sent by the electronic device, the first Bluetooth device may update its own SIRK from the first SIRK to the target SIRK. After receiving the target SIRK sent by the electronic device, the second Bluetooth device may update its own SIRK from the second SIRK to the target SIRK. Since the first Bluetooth device and the second Bluetooth device are both configured with the same target SIRK, the first Bluetooth device and the second Bluetooth device are successfully added to the same target Bluetooth device set. When the various Bluetooth devices under the target Bluetooth device set interact with an external terminal device, since they are configured with the same target SIRK, the external terminal device can coordinate and synchronously use the various Bluetooth devices under the target Bluetooth device set.

[0098] In some embodiments, in addition to the target combination identification information, the target set information may also include information such as a quantity parameter (Size) and / or a sequence number (Rank). The quantity parameter is used to indicate the number of Bluetooth devices included in the target Bluetooth device set. In an embodiment of the present application, the quantity parameter may be the sum of N and M, that is, the quantity parameter is the sum of the number of the first Bluetooth device and the second Bluetooth device. Optionally, the quantity parameter may be a preset value. For example, two pairs of headphones may be preset to form the same Bluetooth device set for use, and the corresponding quantity parameter may be set to 4; or, two groups of Bluetooth speakers may be preset to form the same Bluetooth device set for use, one of which includes 2 Bluetooth speakers and the other includes 4 Bluetooth speakers, and the corresponding quantity parameter may be set to 6.

[0099] As another implementation, the user may also set the quantity parameter corresponding to the target Bluetooth device set according to actual needs. Optionally, the operation mode of the setting operation corresponding to different quantity parameters may be pre-set. When the electronic device detects the setting operation, the corresponding quantity parameter may be determined according to the operation mode of the setting operation, and the quantity parameter corresponding to the target Bluetooth device set is set to the quantity parameter corresponding to the operation mode of the setting operation. For example, the electronic device may be an earphone box, and a trigger button may be provided on the earphone box. When the user clicks the trigger button once, it indicates that the quantity parameter is set to 2. When the user clicks the trigger button twice, it indicates that the quantity parameter is set to 4, etc., but is not limited thereto; the earphone box may determine the corresponding quantity parameter according to the number of times the detected trigger button is clicked, and set the quantity parameter corresponding to the target Bluetooth device set to the corresponding quantity parameter.

[0100] Optionally, a setting interface may be provided on the electronic device, and the user may input a quantity parameter in the setting interface, and the electronic device determines the quantity parameter input by the user according to the setting operation performed by the user. Optionally, a setting interface may also be provided on the terminal device, and the electronic device is communicatively connected with the terminal device, and the user may input a quantity parameter in the setting interface, and the terminal device determines the quantity parameter input by the user according to the setting operation performed by the user, and sends the quantity parameter to the electronic device. Alternatively, the terminal device may be communicatively connected with any first Bluetooth device or any second Bluetooth device, and the terminal device determines the quantity parameter set by the user according to the setting operation performed by the user, and sends the quantity parameter to the first Bluetooth device or the second Bluetooth device in the communication connection. When the first Bluetooth device or the second Bluetooth device establishes a communication connection with the electronic device, the first Bluetooth device or the second Bluetooth device sends the quantity parameter to the electronic device for storage.

[0101] The serial number is used to indicate the arrangement number corresponding to the Bluetooth device in the target Bluetooth device set. Different Bluetooth devices in the same Bluetooth device set may correspond to different serial numbers. Optionally, when the electronic device sends the target set information to the first Bluetooth device or the second Bluetooth device, the serial number may be randomly assigned, or the serial number may be assigned in order from small to large according to the order in which the communication connection is established with the electronic device. For example, the electronic device first establishes a communication connection with N first Bluetooth devices, and may send a serial number 1 to the first first Bluetooth device that establishes a communication connection, and send a serial number 2 to the second first Bluetooth device that establishes a communication connection... and so on.

[0102] For example, Figure 4A FIG. 1 is a timing diagram of an information updating method in another embodiment. Figure 4AAs shown, the electronic device can obtain the target combination identification information in response to the first trigger operation. The electronic device can establish a communication connection with N first Bluetooth devices, and update the combination identification information, quantity parameters, serial numbers and other collection information configured in the N first Bluetooth devices. The electronic device can send an update instruction to each first Bluetooth device respectively, and the update instruction can carry target collection information such as the target combination identification information, the quantity parameter of the target Bluetooth device set, and the serial number corresponding to the first Bluetooth device in the target Bluetooth device set. After receiving the target collection information sent by the electronic device, the first Bluetooth device can update the configured collection information according to the target collection information, and can update the first combination identification information to the target combination identification information, update the quantity parameter of the first Bluetooth device set (i.e., N) to the quantity parameter of the target Bluetooth device set, and update the corresponding serial number in the first Bluetooth device set to the corresponding serial number in the target Bluetooth device set.

[0103] The electronic device can establish a communication connection with M second Bluetooth devices, and update the combination identification information, quantity parameters, serial numbers and other set information configured in the M second Bluetooth devices. The electronic device can send an update instruction to each second Bluetooth device respectively, and the update instruction can carry target set information such as target combination identification information, the quantity parameter of the target Bluetooth device set, and the serial number corresponding to the second Bluetooth device in the target Bluetooth device set. After receiving the target set information sent by the electronic device, the second Bluetooth device can update the configured set information according to the target set information, and can update the second combination identification information to the target combination identification information, update the quantity parameter of the second Bluetooth device set (i.e., M) to the quantity parameter of the target Bluetooth device set, and update the corresponding serial number in the second Bluetooth device set to the corresponding serial number in the target Bluetooth device set.

[0104] For example, Figure 4B FIG. 1 is a timing diagram of an information updating method in another embodiment. For example, the electronic device includes an earphone box, N first Bluetooth devices include a first left earphone and a first right earphone, and M second Bluetooth devices include a second left earphone and a second right earphone. Figure 4BAs shown, the user can perform a first trigger operation on the earphone box (for example, the pairing button on the dual-control earphone box), and the earphone box responds to the first trigger operation and can obtain the target SIRK. The user can put the first left earphone and the first right earphone into the earphone box respectively. The earphone box can send the target set information to the first left earphone and the first right earphone respectively when the first left earphone and the first right earphone are placed in the earphone box. The earphone box can update the SIRK, Size (i.e., quantity parameter), Rank (i.e., serial number) and other parameters configured for the first left earphone and the first right earphone respectively. The earphone box can send update instructions to the first left earphone and the first right earphone respectively to notify the first left earphone and the first right earphone to update the SIRK, Size, Rank and other parameters. After receiving the target SIRK, the Size of the target Bluetooth device set (such as 4), and the Rank of the first left earphone in the target Bluetooth device set (such as 1) and other parameters sent by the earphone box, the first left earphone can update its own SIRK from the first SIRK to the target SIRK, update the Size of the first Bluetooth device set (such as 2) to the Size of the target Bluetooth device set, and update the Rank in the first Bluetooth device set to the Rank in the target Bluetooth device set. After receiving the target SIRK, the Size of the target Bluetooth device set (such as 4), and the Rank of the first right earphone in the target Bluetooth device set (such as 2) and other parameters sent by the earphone box, the first right earphone can update its own SIRK from the first SIRK to the target SIRK, update the Size of the first Bluetooth device set (such as 2) to the Size of the target Bluetooth device set, and update the Rank in the first Bluetooth device set to the Rank in the target Bluetooth device set.

[0105] The user can take out the first left earphone and the first right earphone from the earphone box, and then put the second left earphone and the second right earphone into the earphone box respectively. The earphone box can send the target set information to the second left earphone and the second right earphone respectively when the second left earphone and the second right earphone are placed in the earphone box. The earphone box can update the parameters such as SIRK, Size, Rank, etc. configured for the second left earphone and the second right earphone respectively. The earphone box can send an update instruction to the second left earphone and the second right earphone respectively to notify the second left earphone and the second right earphone to update the parameters such as SIRK, Size, Rank, etc. After receiving the parameters such as the target SIRK, the Size of the target Bluetooth device set (such as 4), and the Rank of the second left earphone in the target Bluetooth device set (such as 3) sent by the earphone box, the second left earphone can update its own SIRK from the second SIRK to the target SIRK, update the Size of the second Bluetooth device set (such as 2) to the Size of the target Bluetooth device set, and update the Rank in the second Bluetooth device set to the Rank in the target Bluetooth device set. After receiving parameters such as the target SIRK, the Size of the target Bluetooth device set (such as 4) and the Rank of the second right earphone in the target Bluetooth device set (such as 4) sent by the earphone box, the second right earphone can update its own SIRK from the second SIRK to the target SIRK, update the Size of the second Bluetooth device set (such as 2) to the Size of the target Bluetooth device set, and update the Rank in the second Bluetooth device set to the Rank in the target Bluetooth device set.

[0106] In an embodiment of the present application, the electronic device sends target set information to N first Bluetooth devices in a first Bluetooth device set, so that the first Bluetooth device updates the first set information to the target set information. The electronic device sends the target set information to M second Bluetooth devices in a second Bluetooth device set, so that the second Bluetooth device updates the second set information to the target set information. The target set information is used to indicate the target Bluetooth device set, and the N first Bluetooth devices that originally belonged to the first Bluetooth device set and the M second Bluetooth devices that originally belonged to the second Bluetooth device set can be successfully configured to belong to the target Bluetooth device set for collaborative use. The Bluetooth devices of different Bluetooth device sets can be dynamically and flexibly grouped into the same Bluetooth device set for collaborative use, thereby meeting the user's usage needs.

[0107] In some embodiments, the target set information includes target combination identification information. Several methods for the electronic device to obtain the target combination identification information are introduced below. The electronic device may obtain the target combination identification information in any of the following methods, but is not limited to:

[0108] Acquisition method 1: Generate target combination identification information according to a preset method.

[0109] The electronic device generates target combination identification information according to a preset method, which may include: generating the target combination identification information based on the target BLE address, the target BLE address including the BLE address of any first Bluetooth device or the BLE address of any second Bluetooth device; or randomly generating a combination identification information as the target combination identification information.

[0110] The electronic device can obtain the target BLE address and generate the target combination identification information according to the target BLE address in a specific manner. Optionally, the specific method can be to directly use the target BLE address as a partial field of the target combination identification information to generate the target combination identification information. Furthermore, the target BLE address can be used as a partial field of the target combination identification information, and the partial field can be combined with the first preset field to generate the target combination identification information. The first preset field can refer to the pre-defined field information in the combination identification information, or it can be randomly generated field information. For example, the target combination identification information may include the target SIRK, and the SIRK may be 128 bytes. The BLE address (48 bytes) can be directly used as a part of the field of the target SIRK, for example, SIRK = BLE address || first preset field.

[0111] Optionally, the specific method may also be to perform a hash calculation on the target BLE address, and use the calculation result as a partial field of the target combination identification information to generate the target combination identification information. Furthermore, the calculation result may be combined with the second preset field to generate the target combination identification information, for example, SIRK=HASH‖the second preset field, where HASH represents the calculation result of hashing the target BLE address. Among them, the first preset field and the second preset field may be the same or different, and may be set according to actual conditions. Since the BLE address is unique, it can be guaranteed that the generated target combination identification information is also unique, and will not be confused with the combination identification information of other Bluetooth device sets, thereby improving the accuracy of the use of Bluetooth device sets.

[0112] As a specific implementation, the acquisition rules of the target BLE address can be set according to actual needs. Optionally, if the electronic device first establishes a communication connection with N first Bluetooth devices, the target BLE address can be the BLE address of any first Bluetooth device, and the target BLE address can also be the BLE address of the first first Bluetooth device that establishes a communication connection with the electronic device, or the BLE address of the last first Bluetooth device that establishes a communication connection with the electronic device, etc. Optionally, if the electronic device first establishes a communication connection with M second Bluetooth devices, the target BLE address can be the BLE address of any second Bluetooth device, and the target BLE address can also be the BLE address of the first second Bluetooth device that establishes a communication connection with the electronic device, or the BLE address of the last second Bluetooth device that establishes a communication connection with the electronic device, etc. The electronic device obtains the target BLE address according to the preset acquisition rules, which can ensure that the target combination identification information is generated in time and sent to the N first Bluetooth devices and the M second Bluetooth devices, thereby improving efficiency.

[0113] In some embodiments, the electronic device may also randomly generate a combination identification information as the target combination identification information, and the electronic device may pre-store various fields of the target combination identification information, and randomly generate field values ​​in various fields to obtain unique target combination identification information, thereby improving the accuracy of the use of the Bluetooth device set. It should be noted that the electronic device may also generate the target combination identification information in other ways, and is not limited to the above-mentioned ways.

[0114] In an embodiment of the present application, the electronic device can generate target combination identification information according to a preset method, which can ensure that the generated target combination identification information is unique, avoid confusion with other Bluetooth device sets, and ensure that N first Bluetooth devices and M second Bluetooth devices are successfully added to the target Bluetooth device set to meet the user's usage needs.

[0115] Acquisition method 2: using the combination identification information stored in the electronic device as the target combination identification information.

[0116] The electronic device may pre-store target combination identification information. When the electronic device establishes a communication connection with N first Bluetooth devices, the pre-stored target combination identification information may be sent to the N first Bluetooth devices. After receiving the target combination identification information sent by the electronic device, the first Bluetooth device may determine whether its own combination identification information (i.e., the first combination identification information) is the same as the target combination identification information. If they are not the same, the first Bluetooth device may update its own combination identification information to the target combination identification information. If they are the same, no update is required.

[0117] As a specific implementation, the combined identification information includes SIRK. For example, if the SIRK stored in the electronic device is SIRK3, the SIRK3 can be sent as the target SIRK to N first Bluetooth devices. If the first SIRK currently configured by the first Bluetooth device is SIKR1, after the first Bluetooth device receives the target SIRK sent by the electronic device, since the target SIRK is different from the first SIRK, the first SIRK can be updated to the target SIRK, that is, its own SIRK is updated from SIKR1 to SIRK3. For another example, if the SIRK stored in the electronic device is SIRK1, the SIRK1 can be sent as the target SIRK to N first Bluetooth devices. If the first SIRK currently configured by the first Bluetooth device is also SIKR1, after the first Bluetooth device receives the target SIRK sent by the electronic device, since the target SIRK is the same as the first SIRK (both are SIRK1), no update is required.

[0118] When the electronic device establishes a communication connection with M second Bluetooth devices, the pre-stored target combination identification information can be sent to the M second Bluetooth devices. After receiving the target combination identification information sent by the electronic device, the second Bluetooth device can determine whether its own combination identification information (i.e., the second combination identification information) is the same as the target combination identification information. If they are not the same, the second Bluetooth device can update its own combination identification information to the target combination identification information. If they are the same, no update is required.

[0119] In an embodiment of the present application, the electronic device can send the pre-stored combination identification information as the target combination identification information to N first Bluetooth devices and M second Bluetooth devices respectively, so that the N first Bluetooth devices originally belonging to the first Bluetooth device set and the M second Bluetooth devices originally belonging to the second Bluetooth device set are successfully configured to belong to the target Bluetooth device set for collaborative use to meet the user's usage needs.

[0120] Acquisition method three: acquiring the combination identification information currently configured by the target Bluetooth device as the target combination identification information, where the target Bluetooth device is any first Bluetooth device or any second Bluetooth device.

[0121] The electronic device may select any first Bluetooth device or any second Bluetooth device of the communication connection as the target Bluetooth device, and obtain the combination identification information of the target Bluetooth device currently configured from the target Bluetooth device. Optionally, if the electronic device selects any first Bluetooth device of the communication connection as the target Bluetooth device, then after obtaining the combination identification information of the target Bluetooth device currently configured as the target combination identification information, the target combination identification information may not be sent to the N first Bluetooth devices, but only to the M second Bluetooth devices. Similarly, if the electronic device selects any second Bluetooth device of the communication connection as the target Bluetooth device, then after obtaining the combination identification information of the target Bluetooth device currently configured as the target combination identification information, the target combination identification information may not be sent to the M second Bluetooth devices, but only to the N first Bluetooth devices. The information update efficiency of the Bluetooth device can be improved.

[0122] Furthermore, the combined identification information includes SIRK. For example, the electronic device selects any first Bluetooth device as the target Bluetooth device. If the SIRK currently configured for the first Bluetooth device is SIRK1 (i.e., the first SIRK), the electronic device can obtain SIRK1 from the first Bluetooth device, and use SIRK1 as the target SIRK, and then send the target SIRK to the second Bluetooth device, so that the second Bluetooth device updates its own SIRK to the target SIRK (i.e., SIRK1). After the second Bluetooth device completes the SIRK update, the N first Bluetooth devices and the M second Bluetooth devices are all configured with the same SIRK (all SIRK1), so that they can be identified as belonging to the same set of Bluetooth devices for collaborative use.

[0123] As a specific implementation, the above-mentioned target Bluetooth device can be a Bluetooth device in the first Bluetooth device set and the second Bluetooth device set that first establishes a communication connection with the electronic device. For example, the electronic device first establishes a communication connection with the N first Bluetooth devices in the first Bluetooth device set, and the target Bluetooth device can be any first Bluetooth device. Furthermore, the target Bluetooth device can be the first first Bluetooth device that establishes a communication connection with the electronic device. This ensures that the electronic device can obtain the target combination identification information in a timely manner, and ensures the success rate and efficiency of configuring the N first Bluetooth devices that originally belonged to the first Bluetooth device set and the M second Bluetooth devices that originally belonged to the second Bluetooth device set to belong to the target Bluetooth device set for collaborative use.

[0124] In an embodiment of the present application, the electronic device can obtain the combination identification information currently configured by the target Bluetooth device as the target combination identification information and send it to N first Bluetooth devices and M second Bluetooth devices, where the target Bluetooth device is any first Bluetooth device or any second Bluetooth device, so that the first Bluetooth device and the second Bluetooth device are configured with the same target combination identification information, and the N first Bluetooth devices that originally belonged to the first Bluetooth device set and the M second Bluetooth devices that originally belonged to the second Bluetooth device set can be successfully configured to belong to the target Bluetooth device set for collaborative use.

[0125] It should be noted that the combination identification information involved in the above embodiments may include other combination identification information in addition to SIRK. For example, if the Bluetooth devices under the same Bluetooth device set use the same Bluetooth address to establish Bluetooth communication connections with external devices, the combination identification information may include the Bluetooth address, etc., but is not limited to this.

[0126] like Figure 5 As shown, in another embodiment, an information updating method is provided, which can be applied to the above electronic device, and the method may include the following steps:

[0127] Step 510: Acquire target set information, where the target set information is used to indicate a target Bluetooth device set.

[0128] Step 520: Send the target set information to N first Bluetooth devices in the first Bluetooth device set, so that the first Bluetooth devices update the first set information to the target set information; the first set information is used to indicate the first Bluetooth device set.

[0129] Step 530: Send the target set information to M second Bluetooth devices in the second Bluetooth device set, so that the second Bluetooth devices update the second set information to the target set information; the second set information is used to indicate the second Bluetooth device set.

[0130] For the description of steps 510 to 530 , reference may be made to the relevant description in the above embodiments, which will not be repeated here.

[0131] In some embodiments, after N first Bluetooth devices update the first set information to target set information, and M second Bluetooth devices update the second set information to target set information, the N first Bluetooth devices and the M second Bluetooth devices can respectively establish LE Audio Bluetooth connections with the terminal device based on the target set information, so as to enable the N first Bluetooth devices and the M second Bluetooth devices to share the audio transmitted by the terminal device.

[0132] The first Bluetooth device may send an LE Audio broadcast signal based on the target set information to trigger the terminal device to establish an LE Audio Bluetooth connection with the first Bluetooth device. The second Bluetooth device may also send an LE Audio broadcast signal based on the target set information to trigger the terminal device to establish an LE Audio Bluetooth connection with the second Bluetooth device.

[0133] Optionally, when the terminal device first receives an LE Audio broadcast signal sent by a Bluetooth device in the target Bluetooth device set, the device information corresponding to the Bluetooth device (such as BLE address, device name, etc.) can be displayed on the Bluetooth connection interface. After the user determines to connect the terminal device to the Bluetooth device, the terminal device can respond to the connection operation, establish an LE Audio Bluetooth connection with the Bluetooth device, and obtain the target set information corresponding to the Bluetooth device. Optionally, the terminal device can receive the target set information sent by the Bluetooth device during the process of establishing an LE Audio Bluetooth connection with the Bluetooth device.

[0134] In some embodiments, the target set information includes target combination identification information, and each Bluetooth device belonging to the target Bluetooth device set sends an LE Audio broadcast signal based on the same target combination identification information. After the terminal device establishes an LE Audio Bluetooth connection with a Bluetooth device in the target Bluetooth device set for the first time, if it receives an LE Audio broadcast signal sent by another Bluetooth device again, it can determine whether the combination identification information corresponding to the other Bluetooth device is the same as the combination identification information corresponding to the Bluetooth device connected for the first time based on the LE Audio broadcast signal sent by the other Bluetooth device. If they are the same, it can be determined that the other Bluetooth device belongs to the same Bluetooth device set as the Bluetooth device connected for the first time, and automatically sends a Bluetooth connection request to the other Bluetooth device to establish an LE Audio Bluetooth connection with the other Bluetooth device.

[0135] As a specific implementation, each Bluetooth device belonging to the target Bluetooth device set sends a LE Audio broadcast signal based on the same target SIRK. When the terminal device receives the LE Audio broadcast signal sent by a Bluetooth device in the target Bluetooth device set for the first time, it can establish an LE Audio Bluetooth connection with the Bluetooth device and obtain the SIRK corresponding to the Bluetooth device (i.e., the target SIRK). As an implementation, the terminal device can receive the SIRK sent by the Bluetooth device during the process of establishing an LE Audio Bluetooth connection with the Bluetooth device. The LE Audio Bluetooth connection is established on the basis of the BLE connection. The process of establishing the LE Audio Bluetooth connection may include querying some device parameters based on the BLE connection. The query of the device parameters may include a SIRK query of the Bluetooth device. After the LE Audio Bluetooth connection is established, when there is a business demand, a CIS (Connected Isochronous Streams) channel may be established for business transmission.

[0136] If the terminal device receives the LE Audio broadcast signal sent by another Bluetooth device again, it can determine whether the SIRK corresponding to the other Bluetooth device is the same as the target SIRK based on the LE Audio broadcast signal sent by the other Bluetooth device. If they are the same, it will automatically send a Bluetooth connection request to the other Bluetooth device and establish an LE Audio Bluetooth connection with the other Bluetooth device.

[0137] As an implementation method, the LE Audio broadcast signal sent by the Bluetooth device may include a target field calculated based on the target SIRK. After the terminal device receives the LE Audio broadcast signal sent by another Bluetooth device, it can parse the LE Audio broadcast signal sent by the other Bluetooth device to obtain the target specific broadcast information and target field carried by the LE Audio broadcast signal, and calculate the target local value based on the SIRK (i.e., target SIRK) corresponding to the Bluetooth device connected for the first time and the target specific broadcast information. If the target local value is the same as the target field, it can be determined that the Bluetooth device connected for the first time and the other Bluetooth device belong to the same Bluetooth device set.

[0138] Specifically, Figure 6As shown, the LE Audio broadcast signal may include RSI (resolvable Set Identifier), and RSI may include two parts: 1. A hash sequence 610 generated by the SIRK corresponding to the Bluetooth device; 2. A random sequence 620 generated by a random number. The hash sequence 610 may be calculated by the formula: hash = sih (SIKR, prand), where hash represents the hash sequence 610 and prand represents the random sequence 620. The target specific broadcast information obtained by the electronic device parsing the LE Audio broadcast signal sent by another Bluetooth device may be a random sequence of RSI, and the target field may be a hash sequence of RSI carried by the LE Audio broadcast signal. The electronic device may calculate the target local value by the above formula based on the SIRK corresponding to the Bluetooth device connected for the first time (i.e., the target SIRK) and the random sequence in the parsed RSI, and compare the target local value with the hash sequence of the parsed RSI. If the two are consistent, it means that the SIKR of the Bluetooth device connected for the first time is the same as the SIRK of the other Bluetooth device (both are target SIRKs), and it can be determined that the Bluetooth device connected for the first time and the other Bluetooth device belong to the same Bluetooth device set.

[0139] In some embodiments, after determining that the combination identification information corresponding to another Bluetooth device is the same as the combination identification information corresponding to the Bluetooth device connected for the first time, the terminal device may determine whether the number of currently connected Bluetooth devices belonging to the target Bluetooth device set has reached the number parameter. If the number parameter has been reached, an LE Audio Bluetooth connection may not be established with the other Bluetooth device. For example, when the terminal device first establishes an LE Audio Bluetooth connection with a Bluetooth device in the target Bluetooth device set, the number parameter of the target Bluetooth device set is obtained as 4. When the terminal device has established an LE Audio Bluetooth connection with 4 Bluetooth devices in the target Bluetooth device set, and receives an LE Audio broadcast signal sent by another Bluetooth device, and the combination identification information corresponding to the other Bluetooth device is also the target combination identification information, the terminal device does not establish an LE Audio Bluetooth connection with the other Bluetooth device, which can ensure the accuracy of the Bluetooth connection and further ensure the accuracy of subsequent audio sharing.

[0140] In some embodiments, after determining that the combination identification information corresponding to another Bluetooth device is the same as the combination identification information corresponding to the Bluetooth device connected for the first time, the terminal device can determine whether the serial number corresponding to the other Bluetooth device in the target Bluetooth device set conflicts with the currently connected Bluetooth device belonging to the target Bluetooth device set. If there is a conflict, the LE Audio Bluetooth connection is not established with the other Bluetooth device. For example, when the terminal device establishes an LE Audio Bluetooth connection with a Bluetooth device in the target Bluetooth device set for the first time, the serial number corresponding to the Bluetooth device connected for the first time is obtained as 1. If the terminal device receives an LE Audio broadcast signal sent by another Bluetooth device, the combination identification information corresponding to the other Bluetooth device is also the target combination identification information, and the serial number corresponding to the other Bluetooth device is also 1, there is a serial number conflict with the Bluetooth device connected for the first time, which may indicate that an error has occurred in the connection. In this case, the LE Audio Bluetooth connection is not established with the other Bluetooth device, which can ensure the accuracy of the Bluetooth connection and further ensure the accuracy of subsequent audio sharing.

[0141] As another implementation, the terminal device may also first establish an LE Audio Bluetooth connection with another Bluetooth device after determining that the combination identification information corresponding to the other Bluetooth device is the same as the combination identification information corresponding to the Bluetooth device connected for the first time. Then, it is determined whether the number of Bluetooth devices currently connected to the target Bluetooth device set has exceeded the quantity parameter, and whether the serial number corresponding to the other Bluetooth device in the target Bluetooth device set conflicts with other Bluetooth devices connected to the terminal device and belonging to the target Bluetooth device set. If the number of Bluetooth devices currently connected to the target Bluetooth device set has exceeded the quantity parameter, or the serial number corresponding to the other Bluetooth device conflicts with the serial numbers corresponding to other connected Bluetooth devices, the LE Audio Bluetooth connection with the other Bluetooth device is disconnected.

[0142] It should be noted that the process of establishing LE Audio Bluetooth connections between the terminal device and each Bluetooth device in the target Bluetooth device set (including N first Bluetooth devices and M second Bluetooth devices) can be performed according to the process described in the above embodiment.

[0143] After the terminal device establishes LE Audio Bluetooth connections with N first Bluetooth devices and M second Bluetooth devices respectively, it can send audio data to the N first Bluetooth devices and M second Bluetooth devices respectively, so that the N first Bluetooth devices and M second Bluetooth devices share the audio data sent by the terminal device.

[0144] Example diagram, Fig. 7A FIG. 1 is a timing diagram of N first Bluetooth devices and M second Bluetooth devices sharing audio data transmitted by a terminal device in an embodiment. Fig. 7AAs shown, after the first Bluetooth device updates the target set information such as the target combination identification information, quantity parameters and serial number according to the update instruction sent by the electronic device, it can send a LE Audio broadcast signal. The terminal device can turn on the scanning mode, and when the LE Audio broadcast signal sent by the first first Bluetooth device is scanned for the first time, the device information corresponding to the first first Bluetooth device can be displayed, and the user can determine whether to allow the terminal device to establish a Bluetooth connection with the first first Bluetooth device. If the terminal device detects a connection operation, it can respond to the connection operation, establish an LE Audio Bluetooth connection with the first first Bluetooth device, and obtain the target combination identification information corresponding to the first first Bluetooth device. When the terminal device scans the LE Audio broadcast signal sent by the Xth first Bluetooth device, it can determine whether the Xth first Bluetooth device and the first first Bluetooth device belong to the same Bluetooth device set. If it is determined that the Xth first Bluetooth device and the first first Bluetooth device belong to the same Bluetooth device set (both belong to the target Bluetooth device set), an LE Audio Bluetooth connection can be established with the Xth first Bluetooth device. Wherein, X can be an integer greater than 1 and less than or equal to N.

[0145] After the second Bluetooth device updates the target set information such as the target combination identification information, quantity parameters and serial number according to the update instruction sent by the electronic device, it can send an LE Audio broadcast signal. When the terminal device scans the LE Audio broadcast signal sent by the Yth second Bluetooth device, it can determine whether the Yth second Bluetooth device and the first first Bluetooth device belong to the same Bluetooth device set. If it is determined that the Yth second Bluetooth device and the first first Bluetooth device belong to the same Bluetooth device set (both belong to the target Bluetooth device set), an LE Audio Bluetooth connection can be established with the Yth second Bluetooth device. Wherein, X can be an integer greater than 0 and less than or equal to M.

[0146] After the terminal device establishes LE Audio Bluetooth connections with N first Bluetooth devices and M second Bluetooth devices respectively, it can send audio data to the N first Bluetooth devices and M second Bluetooth devices respectively, so that the N first Bluetooth devices and M second Bluetooth devices share the audio data sent by the terminal device.

[0147] In an embodiment of the present application, the terminal device can respectively establish LE Audio Bluetooth connections with N first Bluetooth devices and M second Bluetooth devices whose target set information has been updated, and send audio data to the N first Bluetooth devices and M second Bluetooth devices, thereby realizing audio sharing between the N first Bluetooth devices and the M second Bluetooth devices, and improving the reliability of audio data transmission.

[0148] Step 540, in response to the second trigger operation, sending an information recovery instruction to N first Bluetooth devices, the information recovery instruction is used to instruct the first Bluetooth devices to restore the target set information to the first set information; and / or, sending an information recovery instruction to M second Bluetooth devices, the information recovery instruction is used to instruct the second Bluetooth devices to restore the target set information to the second set information.

[0149] In some embodiments, the user can perform a second trigger operation on the electronic device to trigger the electronic device to restore the N first Bluetooth devices and M second Bluetooth devices in the target Bluetooth device set to independent use, so that the N first Bluetooth devices and M second Bluetooth devices can be restored to belong to different Bluetooth device sets, that is, the N first Bluetooth devices belong to the first Bluetooth device set, and the M second Bluetooth devices belong to the second Bluetooth device set, and they are no longer used collaboratively.

[0150] The specific operation mode of the second trigger operation is not limited in the embodiments of the present application. For example, a specific button may be provided on the electronic device, and the specific button may be a virtual button or a physical button. The first trigger operation may be a preset operation on the specific button (such as long pressing for a period of time, clicking a specific button, double-clicking a specific button, etc.); for another example, the second trigger operation may be any one of a touch operation, a gesture operation, a voice operation, etc., and the electronic device may detect the second trigger operation through a corresponding sensor (such as detecting a preset pressing operation through a pressure sensor, detecting a preset gesture operation through a distance sensor, detecting a preset voice content through a voice sensor, etc.), but is not limited thereto. The second trigger operation may be the same as the first trigger operation in the above embodiment, or may be different from the first trigger operation.

[0151] Exemplarily, the electronic device is an earphone box, the N first Bluetooth devices include a first left earphone and a first right earphone, and the M second Bluetooth devices include a second left earphone and a second right earphone. The second trigger operation may be to place the first left earphone and the first right earphone in the earphone box and long press the pairing button on the earphone box, or the second trigger operation may be to place the first left earphone and the first right earphone in the earphone box and close the lid of the earphone box. When the first left earphone and the first right earphone are placed in the earphone box, the earphone box may send an information recovery instruction to the first left earphone and the first right earphone respectively, and the first left earphone and the first right earphone may restore the target set information to the first set information according to the information recovery instruction. When the second left earphone and the second right earphone are placed in the earphone box, the earphone box may send an information recovery instruction to the second left earphone and the second right earphone respectively, and the second left earphone and the second right earphone may restore the target set information to the second set information according to the information recovery instruction.

[0152] For example, Figure 7BFIG. 1 is a timing diagram of another embodiment in which N first Bluetooth devices and M second Bluetooth devices share audio data transmitted by a terminal device. Figure 7B As shown, take an electronic device including an earphone box, N first Bluetooth devices including a first left earphone and a first right earphone, and M second Bluetooth devices including a second left earphone and a second right earphone as an example. After the first left earphone is updated according to parameters such as the target SIRK sent by the earphone box, the Size of the target Bluetooth device set, and the Rank of the first left earphone in the target Bluetooth device set, an LE Audio broadcast signal can be sent. The terminal device can turn on the scanning mode, and when the LE Audio broadcast signal sent by the first left earphone is scanned, the device information corresponding to the first left earphone can be displayed, and the user can determine whether to allow the terminal device to establish a Bluetooth connection with the first left earphone. If the terminal device detects a connection operation, it can respond to the connection operation, initiate an LE Audio connection request to the first left earphone, establish an LE Audio Bluetooth connection with the first left earphone, and obtain the target SIRK corresponding to the first left earphone.

[0153] After the first right earphone is updated according to the parameters such as the target SIRK sent by the earphone box, the Size of the target Bluetooth device set, and the Rank of the first right earphone in the target Bluetooth device set, an LE Audio broadcast signal can also be sent. When the terminal device scans the LE Audio broadcast signal sent by the first right earphone, it can determine whether the first right earphone and the first left earphone belong to the same Bluetooth device set (that is, determine whether they correspond to the same target SIRK). If it is determined that the first right earphone and the first left earphone belong to the same Bluetooth device set (both belong to the target Bluetooth device set), an LE Audio connection request can be automatically initiated to the first right earphone, and an LE Audio Bluetooth connection can be established with the first right earphone.

[0154] After the second left earphone is updated according to the target SIRK sent by the earphone box, the Size of the target Bluetooth device set, and the Rank of the second left earphone in the target Bluetooth device set, the LE Audio broadcast signal can be sent. When the terminal device scans the LE Audio broadcast signal sent by the second left earphone, it can determine whether the second left earphone and the first left earphone belong to the same Bluetooth device set. If it is determined that the second left earphone and the first left earphone belong to the same Bluetooth device set (both belong to the target Bluetooth device set), it can automatically initiate an LE Audio connection request to the second left earphone and establish an LE Audio Bluetooth connection with the second left earphone.

[0155] After the second right earphone is updated according to the target SIRK sent by the earphone box, the Size of the target Bluetooth device set, and the Rank of the second right earphone in the target Bluetooth device set, the LE Audio broadcast signal can also be sent. When the terminal device scans the LE Audio broadcast signal sent by the second right earphone, it can determine whether the second right earphone and the first left earphone belong to the same Bluetooth device set. If it is determined that the second right earphone and the first left earphone belong to the same Bluetooth device set (both belong to the target Bluetooth device set), it can automatically initiate an LE Audio connection request to the second right earphone and establish an LE Audio Bluetooth connection with the second right earphone.

[0156] In this way, the terminal device can establish LE Audio Bluetooth connections with the two pairs of headphones respectively, and identify the two pairs of headphones as the same Bluetooth device set, and use the two pairs of headphones in a collaborative manner. When the terminal device plays audio, the terminal device can establish CIS connections with the first left earphone, the first right earphone, the second left earphone and the second right earphone respectively, and transmit audio data to the first left earphone, the first right earphone, the second left earphone and the second right earphone to achieve audio sharing of the two pairs of headphones. Furthermore, the terminal device can send left channel audio data to the first left earphone and the second left earphone respectively, and send right channel audio data to the first right earphone and the second right earphone respectively, so that the first left earphone and the second left earphone share the same left channel audio data, and the first right earphone and the second right earphone share the same left channel audio data. Each earphone in the two pairs of headphones can keep the service information unchanged, so that each earphone can maintain the original audio playback properties (such as the left earphone supports left channel audio playback, and the right earphone supports right channel audio playback). The terminal device can establish a CIS channel with each earphone in the two pairs of headphones respectively, and send corresponding audio data to each earphone through the established CIS channel, thereby sharing audio data between the two pairs of headphones. In this audio sharing solution, no additional hardware costs are required, and better compatibility can be provided, further ensuring the reliability of transmission.

[0157] When the user wants to end the sharing mode between the two pairs of headphones, a second trigger operation can be performed (for example, putting the first left earphone and the first right earphone, or the second left earphone and the second right earphone into the earphone box and closing the earphone box), then the earphone box can send an information recovery instruction to the first left earphone and the first right earphone placed in the earphone box, so that the first left earphone and the first right earphone placed in the earphone box restore the target SIRK to the first SIRK, restore the Size of the target Bluetooth device set to the Size of the first Bluetooth device set, and restore the Rank in the target Bluetooth device set to the Rank in the first Bluetooth device set. Alternatively, the earphone box can send an information recovery instruction to the second left earphone and the second right earphone placed in the earphone box, so that the second left earphone and the second right earphone placed in the earphone box restore the target SIRK to the second SIRK, restore the Size of the target Bluetooth device set to the Size of the second Bluetooth device set, and restore the Rank in the target Bluetooth device set to the Rank in the second Bluetooth device set.

[0158] In an embodiment of the present application, N first Bluetooth devices that originally belonged to a first Bluetooth device set and M second Bluetooth devices that originally belonged to a second Bluetooth device set can be successfully configured to belong to a target Bluetooth device set for collaborative use, and the N first Bluetooth devices and M second Bluetooth devices in the target Bluetooth device set can be restored to belong to different Bluetooth device sets for independent use. The use of Bluetooth devices can be dynamically and flexibly configured to meet the user's usage needs.

[0159] like Figure 8 As shown, in one embodiment, another information updating method is provided, which can be applied to the first Bluetooth device mentioned above, and the method may include the following steps:

[0160] Step 810: Receive target set information sent by an electronic device, where the target set information is used to indicate a target Bluetooth device set.

[0161] Step 820: Update the first set information to the target set information, where the first set information is used to indicate the first Bluetooth device set. The N first Bluetooth devices whose first set information is updated to the target set information and the M second Bluetooth devices whose second set information is updated to the target set information are identified as belonging to the target Bluetooth device set; the second set information is used to indicate the second Bluetooth device set, where N and M are both integers greater than 1.

[0162] In one embodiment, the target set information includes target combination identification information, and the target combination identification information is used to identify the target Bluetooth device set;

[0163] The target combination identification information is generated by the electronic device according to a preset method; or,

[0164] The target combination identification information is the combination identification information stored in the electronic device; or,

[0165] The target combination identification information is the combination identification information of the target Bluetooth device currently configured and acquired by the electronic device; the target Bluetooth device is any first Bluetooth device or any second Bluetooth device.

[0166] In one embodiment, when the target combination identification information is generated by the electronic device according to a preset method, the target combination identification information is generated by the electronic device based on the target BLE address, wherein the target BLE address includes the BLE address of any first Bluetooth device or the BLE address of any second Bluetooth device; or, the target combination identification information is a combination identification information randomly generated by the electronic device.

[0167] In one embodiment, the target Bluetooth device is a Bluetooth device in the first Bluetooth device set and the second Bluetooth device set that first establishes a communication connection with the electronic device.

[0168] In one embodiment, the target set information includes a quantity parameter and / or a serial number. The quantity parameter is used to indicate the number of Bluetooth devices included in the target Bluetooth device set, and the quantity parameter is the sum of N and M; the serial number is used to indicate the corresponding arrangement number of the Bluetooth device in the target Bluetooth device set.

[0169] In one embodiment, the electronic device includes an earphone box, and the N first Bluetooth devices include a first left earphone and a first right earphone; step 810 includes: when the first left earphone and the first right earphone are placed in the earphone box, receiving target set information sent by the earphone box.

[0170] In one embodiment, the method further includes: receiving an information recovery instruction sent by the electronic device; and restoring the target set information to the first set information according to the information recovery instruction.

[0171] In one embodiment, after step 820, the method further includes: sending a LE Audio broadcast signal based on the target set information, wherein the LE Audio broadcast signal is used to trigger the terminal device to establish an LE Audio Bluetooth connection with the first Bluetooth device; wherein the N first Bluetooth devices that establish an LE Audio Bluetooth connection with the terminal device, and the M second Bluetooth devices that establish an LE Audio Bluetooth connection with the terminal device, share the audio data sent by the terminal device.

[0172] In one embodiment, N first Bluetooth devices include a first left earphone and a first right earphone, and M second Bluetooth devices include a second left earphone and a second right earphone. The first left earphone and the second left earphone share the left channel audio data sent by the terminal device, and the first right earphone and the second right earphone share the right channel audio data sent by the terminal device.

[0173] It should be noted that the description of the information updating method applied to the first Bluetooth device provided in the embodiment of the present application can refer to the relevant description of the information updating method applied to the electronic device provided in the above embodiments, and will not be repeated here.

[0174] In the embodiment of the present application, N first Bluetooth devices originally belonging to the first Bluetooth device set and M second Bluetooth devices originally belonging to the second Bluetooth device set can be successfully configured to belong to the target Bluetooth device set for collaborative use, and Bluetooth devices in different Bluetooth device sets can be dynamically and flexibly combined into the same Bluetooth device set for collaborative use, meeting the user's usage needs. In addition, audio sharing between N first Bluetooth devices and M second Bluetooth devices can be achieved, and the reliability of audio data transmission is improved.

[0175] like Fig. 9 As shown, in one embodiment, an audio sharing method is provided, which may include the following steps:

[0176] Step 910: The electronic device sends target set information to N first Bluetooth devices in the first Bluetooth device set, so that the first Bluetooth devices update the first set information to the target set information; the first set information is used to indicate the first Bluetooth device set, and the target set information is used to indicate the target Bluetooth device set. N is an integer greater than 1.

[0177] Step 920: The electronic device sends target set information to M second Bluetooth devices in the second Bluetooth device set, so that the second Bluetooth devices update the second set information to the target set information; the second set information is used to indicate the second Bluetooth device set. M is an integer greater than 1.

[0178] In one embodiment, before step 910, the method further includes: the electronic device obtains target set information.

[0179] In one embodiment, the step of the electronic device acquiring target set information includes: the electronic device acquires the target set information in response to a first trigger operation.

[0180] In one embodiment, the target set information includes target combination identification information, and the target combination identification information is used to identify the target Bluetooth device set. The step of the electronic device acquiring the target set information includes: the electronic device generates the target combination identification information according to a preset method; or the electronic device uses the combination identification information stored in the electronic device as the target combination identification information; or the electronic device acquires the combination identification information currently configured by the target Bluetooth device as the target combination identification information, and the target Bluetooth device is any first Bluetooth device or any second Bluetooth device.

[0181] In one embodiment, the electronic device generates target combination identification information according to a preset method, including: the electronic device generates the target combination identification information based on the target BLE address, the target BLE address includes the BLE address of any first Bluetooth device or the BLE address of any second Bluetooth device; or, the electronic device randomly generates a combination identification information as the target combination identification information.

[0182] In one embodiment, an electronic device generates target combination identification information based on a target BLE address, including: the electronic device obtains the target BLE address; uses the target BLE address as a partial field of the target combination identification information to generate the target combination identification information; or, performs a hash calculation on the target BLE address and uses the calculation result as a partial field of the target combination identification information to generate the target combination identification information.

[0183] In one embodiment, the target Bluetooth device is a Bluetooth device in the first Bluetooth device set and the second Bluetooth device set that first establishes a communication connection with the electronic device.

[0184] In one embodiment, the target set information includes a quantity parameter and / or a serial number. The quantity parameter is used to indicate the number of Bluetooth devices included in the target Bluetooth device set, and the quantity parameter is the sum of N and M; the serial number is used to indicate the corresponding arrangement number of the Bluetooth device in the target Bluetooth device set.

[0185] Step 930: N first Bluetooth devices establish LE Audio Bluetooth connections with the terminal device based on the target set information.

[0186] Step 940: M second Bluetooth devices respectively establish LE Audio Bluetooth connections with the terminal device based on the target set information.

[0187] Step 950: The terminal device sends audio data to N first Bluetooth devices and M second Bluetooth devices respectively.

[0188] In one embodiment, the electronic device includes an earphone box, the N first Bluetooth devices include a first left earphone and a first right earphone, and the M second Bluetooth devices include a second left earphone and a second right earphone.

[0189] Step 910 includes: when the first left earphone and the first right earphone are placed in the earphone box, the earphone box sends the target set information to the first left earphone and the first right earphone respectively.

[0190] Step 920 includes: when the second left earphone and the second right earphone are placed in the earphone box, the earphone box sends the target set information to the second left earphone and the second right earphone respectively.

[0191] Step 950 includes: the terminal device sends left channel audio data to the first left earphone and the second left earphone respectively, and sends right channel audio data to the first right earphone and the second right earphone respectively.

[0192] In one embodiment, the method also includes: the electronic device sends an information recovery instruction to N first Bluetooth devices in response to a second trigger operation, the information recovery instruction is used to instruct the first Bluetooth device to restore the target set information to the first set information; and / or, sends an information recovery instruction to M second Bluetooth devices, the information recovery instruction is used to instruct the second Bluetooth device to restore the target set information to the second set information.

[0193] It should be noted that the description of the audio sharing method provided in the embodiment of the present application can refer to the relevant description of the information updating method applied to the electronic device provided in the above embodiments, and will not be repeated here.

[0194] In the embodiment of the present application, N first Bluetooth devices originally belonging to the first Bluetooth device set and M second Bluetooth devices originally belonging to the second Bluetooth device set can be successfully configured to belong to the target Bluetooth device set for collaborative use, and Bluetooth devices in different Bluetooth device sets can be dynamically and flexibly combined into the same Bluetooth device set for collaborative use, meeting the user's usage needs. In addition, audio sharing between N first Bluetooth devices and M second Bluetooth devices can be achieved, and the reliability of audio data transmission is improved.

[0195] In one embodiment, an audio sharing system is provided, the system comprising an electronic device, N first Bluetooth devices, M second Bluetooth devices and a terminal device, where N and M are both integers greater than 1.

[0196] An electronic device is used to send target set information to N first Bluetooth devices in a first Bluetooth device set so that the first Bluetooth device updates the first set information to target set information; the first set information is used to indicate the first Bluetooth device set, and the target set information is used to indicate the target Bluetooth device set.

[0197] The electronic device is further used to send target set information to M second Bluetooth devices in the second Bluetooth device set, so that the second Bluetooth devices update the second set information to the target set information; the second set information is used to indicate the second Bluetooth device set.

[0198] N first Bluetooth devices are used to establish LE Audio Bluetooth connections with the terminal device based on the target set information respectively.

[0199] M second Bluetooth devices are used to establish LE Audio Bluetooth connections with the terminal device based on the target set information respectively.

[0200] The terminal device is used to send audio data to N first Bluetooth devices and M second Bluetooth devices respectively.

[0201] like Fig.10 As shown, in one embodiment, an information updating device 1000 is provided, which can be applied to the above-mentioned electronic device. The information updating device 1000 includes an information obtaining module 1010 and a sending module 1020 .

[0202] The information acquisition module 1010 is used to acquire target set information, where the target set information is used to indicate a target Bluetooth device set.

[0203] The sending module 1020 is used to send the target set information to N first Bluetooth devices in the first Bluetooth device set, so that the first Bluetooth devices update the first set information to the target set information; the first set information is used to indicate the first Bluetooth device set, and N is an integer greater than 1.

[0204] The sending module 1020 is further used to send the target set information to M second Bluetooth devices in the second Bluetooth device set, so that the second Bluetooth devices update the second set information to the target set information; the second set information is used to indicate the second Bluetooth device set, and M is an integer greater than 1.

[0205] In one embodiment, the information acquisition module 1010 is further configured to acquire target set information in response to the first trigger operation.

[0206] In one embodiment, the target set information includes target combination identification information, and the target combination identification information is used to identify the target Bluetooth device set; the information acquisition module 1010 is also used to generate the target combination identification information according to a preset method; or, use the combination identification information stored in the electronic device as the target combination identification information; or, obtain the combination identification information currently configured by the target Bluetooth device as the target combination identification information, and the target Bluetooth device is any first Bluetooth device or any second Bluetooth device.

[0207] In one embodiment, the information acquisition module 1010 is also used to generate target combination identification information based on the target BLE address, where the target BLE address includes the BLE address of any first Bluetooth device or the BLE address of any second Bluetooth device; or, randomly generate a combination identification information as the target combination identification information.

[0208] In one embodiment, the information acquisition module 1010 is also used to obtain the target BLE address; use the target BLE address as a partial field of the target combination identification information to generate the target combination identification information; or, perform a hash calculation on the target BLE address and use the calculation result as a partial field of the target combination identification information to generate the target combination identification information.

[0209] In one embodiment, the target Bluetooth device is a Bluetooth device in the first Bluetooth device set and the second Bluetooth device set that first establishes a communication connection with the electronic device.

[0210] In one embodiment, the target set information includes a quantity parameter and / or a serial number. The quantity parameter is used to indicate the number of Bluetooth devices included in the target Bluetooth device set, and the quantity parameter is the sum of N and M; the serial number is used to indicate the corresponding arrangement number of the Bluetooth device in the target Bluetooth device set.

[0211] In one embodiment, the electronic device includes an earphone box, the N first Bluetooth devices in the first Bluetooth device set include a first left earphone and a first right earphone, and the M second Bluetooth devices in the second Bluetooth device set include a second left earphone and a second right earphone. The sending module 1020 is further used to send the target set information to the first left earphone and the first right earphone respectively when the first left earphone and the first right earphone are placed in the earphone box. The sending module 1020 is further used to send the target set information to the second left earphone and the second right earphone respectively when the second left earphone and the second right earphone are placed in the earphone box.

[0212] In one embodiment, the information updating device 1000 includes not only the information acquiring module 1010 and the sending module 1020 , but also a recovery module.

[0213] A recovery module is used to send information recovery instructions to N first Bluetooth devices in response to a second trigger operation, where the information recovery instructions are used to instruct the first Bluetooth devices to restore the target set information to the first set information; and / or, send information recovery instructions to M second Bluetooth devices, where the information recovery instructions are used to instruct the second Bluetooth devices to restore the target set information to the second set information.

[0214] like Fig.11 As shown, in one embodiment, an information updating apparatus 1100 is provided, which can be applied to the first Bluetooth device mentioned above. The information updating apparatus 1100 includes a receiving module 1110 and an updating module 1120 .

[0215] The receiving module 1110 is used to receive target set information sent by an electronic device, where the target set information is used to indicate a target Bluetooth device set.

[0216] The updating module 1120 is used to update the first set information to the target set information, where the first set information is used to indicate the first Bluetooth device set. The N first Bluetooth devices whose first set information is updated to the target set information and the M second Bluetooth devices whose second set information is updated to the target set information are identified as belonging to the target Bluetooth device set; the second set information is used to indicate the second Bluetooth device set, where N and M are both integers greater than 1.

[0217] In one embodiment, the target set information includes target combination identification information, and the target combination identification information is used to identify the target Bluetooth device set;

[0218] The target combination identification information is generated by the electronic device according to a preset method; or,

[0219] The target combination identification information is the combination identification information stored in the electronic device; or,

[0220] The target combination identification information is the combination identification information of the target Bluetooth device currently configured and acquired by the electronic device; the target Bluetooth device is any first Bluetooth device or any second Bluetooth device.

[0221] In one embodiment, when the target combination identification information is generated by the electronic device according to a preset method, the target combination identification information is generated by the electronic device based on the target BLE address, wherein the target BLE address includes the BLE address of any first Bluetooth device or the BLE address of any second Bluetooth device; or, the target combination identification information is a combination identification information randomly generated by the electronic device.

[0222] In one embodiment, the target Bluetooth device is a Bluetooth device in the first Bluetooth device set and the second Bluetooth device set that first establishes a communication connection with the electronic device.

[0223] In one embodiment, the target set information includes a quantity parameter and / or a serial number. The quantity parameter is used to indicate the number of Bluetooth devices included in the target Bluetooth device set, and the quantity parameter is the sum of N and M; the serial number is used to indicate the corresponding arrangement number of the Bluetooth device in the target Bluetooth device set.

[0224] In one embodiment, the electronic device includes an earphone box, and N first Bluetooth devices include a first left earphone and a first right earphone; the receiving module 1110 is also used to receive target set information sent by the earphone box when the first left earphone and the first right earphone are placed in the earphone box.

[0225] In one embodiment, the information updating device 1100 includes not only the receiving module 1110 and the updating module 1120 , but also a restoring module.

[0226] The recovery module is used to receive an information recovery instruction sent by an electronic device; and restore the target set information to the first set information according to the information recovery instruction.

[0227] In one embodiment, the information updating device 1100 further includes a broadcast module.

[0228] A broadcast module is used to send an LE Audio broadcast signal based on target set information, and the LE Audio broadcast signal is used to trigger the terminal device to establish an LE Audio Bluetooth connection with the first Bluetooth device; wherein, N first Bluetooth devices that establish an LE Audio Bluetooth connection with the terminal device, and M second Bluetooth devices that establish an LE Audio Bluetooth connection with the terminal device, share the audio data sent by the terminal device.

[0229] In one embodiment, N first Bluetooth devices include a first left earphone and a first right earphone, and M second Bluetooth devices include a second left earphone and a second right earphone. The first left earphone and the second left earphone share the left channel audio data sent by the terminal device, and the first right earphone and the second right earphone share the right channel audio data sent by the terminal device.

[0230] In the embodiment of the present application, N first Bluetooth devices originally belonging to the first Bluetooth device set and M second Bluetooth devices originally belonging to the second Bluetooth device set can be successfully configured to belong to the target Bluetooth device set for collaborative use, and Bluetooth devices in different Bluetooth device sets can be dynamically and flexibly combined into the same Bluetooth device set for collaborative use, meeting the user's usage needs. In addition, audio sharing between N first Bluetooth devices and M second Bluetooth devices can be achieved, and the reliability of audio data transmission is improved.

[0231] Fig.12 FIG. 1 is a structural block diagram of an electronic device in an embodiment. Fig.12 As shown, the electronic device 1200 may include one or more of the following components: a processor 1210, and a memory 1220 coupled to the processor 1210, wherein the memory 1220 may store one or more computer programs, and the one or more computer programs may be configured to implement the information update method applied to the electronic device as described in the above embodiments when executed by one or more processors 1210.

[0232] The processor 1210 may include one or more processing cores. The processor 1210 uses various interfaces and lines to connect various parts of the entire electronic device 1200, and executes various functions and processes data of the electronic device 1200 by running or executing instructions, programs, code sets or instruction sets stored in the memory 1220, and calling data stored in the memory 1220. Optionally, the processor 1210 can be implemented in at least one hardware form of digital signal processing (DSP), field-programmable gate array (FPGA), and programmable logic array (PLA). The processor 1210 can integrate one or a combination of a central processing unit (CPU), a graphics processing unit (GPU), and a modem. Among them, the CPU mainly processes the operating system, user interface, and application programs; the GPU is responsible for rendering and drawing display content; and the modem is used to process wireless communications. It can be understood that the above-mentioned modem may not be integrated into the processor 1210, but may be implemented separately through a communication chip.

[0233] The memory 1220 may include a random access memory (RAM) or a read-only memory (ROM). The memory 1220 may be used to store instructions, programs, codes, code sets or instruction sets. The memory 1220 may include a program storage area and a data storage area, wherein the program storage area may store instructions for implementing an operating system, instructions for implementing at least one function (such as a touch function, a sound playback function, an image playback function, etc.), instructions for implementing the above-mentioned various method embodiments, etc. The data storage area may also store data created by the electronic device 1200 during use, etc.

[0234] The electronic device 1200 may also include a communication unit, such as a Bluetooth module, which may be used to provide a Bluetooth communication function, establish a Bluetooth connection with a second electronic device, and perform Bluetooth data transmission. The Bluetooth module may support one or more Bluetooth protocols, such as classic Bluetooth, BLE, BLE Audio, etc.), but is not limited thereto and may change with the development of the Bluetooth protocol.

[0235] An embodiment of the present application discloses a Bluetooth device, including a memory, a processor and a communication unit. The memory stores a computer program. When the computer program is executed by the processor, the Bluetooth device implements the information update method applied to the first Bluetooth device as described in the above embodiments.

[0236] An embodiment of the present application discloses a computer-readable storage medium storing a computer program, wherein when the computer program is executed by a processor in an electronic device, the electronic device implements the information updating method applied to the electronic device as described in the above embodiments.

[0237] An embodiment of the present application discloses a computer-readable storage medium storing a computer program, wherein when the computer program is executed by a processor in an electronic device, the electronic device implements the information updating method applied to a first Bluetooth device as described in the above embodiments.

[0238] An embodiment of the present application discloses a computer program product, which includes a non-transitory computer-readable storage medium storing a computer program, and when the computer program can be executed by a processor in an electronic device, the electronic device implements the information update method applied to the electronic device as described in the above embodiments.

[0239] An embodiment of the present application discloses a computer program product, which includes a non-transitory computer-readable storage medium storing a computer program. When the computer program can be executed by a processor in an electronic device, the electronic device implements the information update method applied to the first Bluetooth device as described in the above embodiments.

[0240] Those skilled in the art can understand that all or part of the processes in the above-mentioned embodiments can be implemented by instructing related hardware through a computer program, and the program can be stored in a non-volatile computer-readable storage medium, and when the program is executed, it can include the processes of the embodiments of the above-mentioned methods. The storage medium can be a disk, an optical disk, a ROM, etc.

[0241] As used herein, any reference to memory, storage, database, or other medium may include nonvolatile and / or volatile memory. Suitable nonvolatile memory may include ROM, programmable ROM (Programmable ROM, PROM), erasable PROM (Erasable PROM, EPROM), electrically erasable PROM (Electrically Erasable PROM, EEPROM), or flash memory. Volatile memory may include random access memory (RAM), which is used as an external cache memory. By way of illustration and not limitation, RAM may be in a variety of forms, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double data rate SDRAM (DDR SDRAM), enhanced SDRAM (ESDRAM), synchronous link DRAM (SLDRAM), memory bus direct RAM (RDRAM) and direct memory bus dynamic RAM (DRDRAM).

[0242] It should be understood that "one embodiment" or "an embodiment" mentioned throughout the specification means that specific features, structures or characteristics related to the embodiment are included in at least one embodiment of the present application. Therefore, "in one embodiment" or "in an embodiment" appearing throughout the specification does not necessarily refer to the same embodiment. In addition, these specific features, structures or characteristics can be combined in one or more embodiments in any suitable manner. Those skilled in the art should also be aware that the embodiments described in the specification are all optional embodiments, and the actions and modules involved are not necessarily required by the present application. It should be noted that "multiple" in the present application includes "two or more".

[0243] In the various embodiments of the present application, it should be understood that the size of the serial numbers of the above-mentioned processes does not necessarily mean the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of the present application.

[0244] The units described above as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.

[0245] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.

[0246] The technical features of the above-described embodiments may be arbitrarily combined. To make the description concise, not all possible combinations of the technical features in the above-described embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.

[0247] The above is a detailed introduction to an information updating method and device, an audio sharing method and system, and an electronic device disclosed in the embodiments of the present application. Specific examples are used in this article to illustrate the principles and implementation methods of the present application. The description of the above embodiments is only used to help understand the method of the present application and its core idea. At the same time, for those of ordinary skill in the art, according to the ideas of the present application, there will be changes in the specific implementation methods and application scopes. In summary, the content of this specification should not be understood as a limitation on the present application.

Claims

1. An information updating method, characterized in that: Applied to electronic equipment, the method comprises: Acquire target set information, where the target set information is used to indicate a target Bluetooth device set; sending the target set information to N first Bluetooth devices in a first Bluetooth device set, so that the first Bluetooth devices update the first set information to the target set information; the first set information is used to indicate the first Bluetooth device set, and N is an integer greater than 1; and / or, The target set information is sent to M second Bluetooth devices in the second Bluetooth device set, so that the second Bluetooth devices update the second set information to the target set information; the second set information is used to indicate the second Bluetooth device set, and M is an integer greater than 1.

2. The method according to claim 1, characterized in that The target set information includes target combination identification information, and the target combination identification information is used to identify the target Bluetooth device set; The obtaining of target set information includes: Generate the target combination identification information according to a preset method; or, Using the combination identification information stored in the electronic device as the target combination identification information; or, The combination identification information currently configured by the target Bluetooth device is obtained as the target combination identification information, and the target Bluetooth device is any one of the first Bluetooth device or any one of the second Bluetooth device.

3. The method according to claim 2, characterized in that The generating the target combination identification information according to a preset method includes: The target combination identification information is generated based on a target BLE address, where the target BLE address includes a BLE address of any one of the first Bluetooth devices or a BLE address of any one of the second Bluetooth devices; or, A combination identification information is randomly generated as the target combination identification information.

4. The method according to claim 2, characterized in that: The target Bluetooth device is a Bluetooth device in the first Bluetooth device set and the second Bluetooth device set that first establishes a communication connection with the electronic device.

5. The method according to claim 2, characterized in that: The method further comprises: In the case where the target combination identification information is the combination identification information currently configured by the first Bluetooth device, the target combination identification information is not sent to the N first Bluetooth devices, and the target combination identification information is only sent to the M second Bluetooth devices; or In a case where the target combination identification information is the combination identification information currently configured by the second Bluetooth device, the target combination identification information is not sent to the M second Bluetooth devices, and the target combination identification information is only sent to the N first Bluetooth devices.

6. The method according to any one of claims 2 to 5, characterized in that: The target combination identification information includes a target combination identification resolution value SIRK.

7. The method according to any one of claims 1 to 5, characterized in that: The obtaining of target set information includes: displaying an interface including an audio share button; In response to a first trigger operation on the audio sharing button, target set information is acquired.

8. The method according to any one of claims 1 to 5, characterized in that: The method further comprises: In response to the second trigger operation, sending an information recovery instruction to the N first Bluetooth devices, wherein the information recovery instruction is used to instruct the first Bluetooth devices to restore the target set information to the first set information; and / or sending an information recovery instruction to the M second Bluetooth devices, wherein the information recovery instruction is used to instruct the second Bluetooth devices to restore the target set information to the second set information; The second trigger operation includes any one of a touch operation, a gesture operation, a voice operation, and a preset operation on a specific key.

9. An information updating method, characterized in that: Applied to a first Bluetooth device, the method includes: Receiving target set information sent by an electronic device, where the target set information is used to indicate a target Bluetooth device set; Updating the first set information to the target set information, where the first set information is used to indicate a first Bluetooth device set; Among them, the N first Bluetooth devices whose first set information is updated to the target set information and the M second Bluetooth devices whose second set information is updated to the target set information are identified as belonging to the target Bluetooth device set; the second set information is used to indicate the second Bluetooth device set, and N and M are both integers greater than 1.

10. The method according to claim 9, characterized in that The method further comprises: Receiving an information recovery instruction sent by the electronic device; The target set information is restored to the first set information according to the information restoration instruction.

11. The method according to claim 9, characterized in that After the first set information is updated to the target set information, the method further includes: Sending an LE Audio broadcast signal based on the target set information, where the LE Audio broadcast signal is used to trigger the terminal device to establish an LE Audio Bluetooth connection with the first Bluetooth device; The N first Bluetooth devices that establish LE Audio Bluetooth connections with the terminal device, and the M second Bluetooth devices that establish LE Audio Bluetooth connections with the terminal device, share the audio data sent by the terminal device; The N first Bluetooth devices include a first left earphone and a first right earphone, the M second Bluetooth devices include a second left earphone and a second right earphone, the first left earphone and the second left earphone share the left channel audio data sent by the terminal device, and the first right earphone and the second right earphone share the right channel audio data sent by the terminal device.

12. The method according to claim 11, characterized in that After sending the LEAudio broadcast signal based on the target set information, the method further includes: A CIS audio transmission channel based on a connection synchronization data stream is established with the terminal device, and audio data sent by the terminal device is received through the CIS audio transmission channel.

13. An audio sharing method, characterized in that: include: The electronic device sends target set information to N first Bluetooth devices in a first Bluetooth device set, so that the first Bluetooth devices update the first set information to the target set information; the first set information is used to indicate the first Bluetooth device set, the target set information is used to indicate the target Bluetooth device set, and N is an integer greater than 1; and / or, The electronic device sends the target set information to M second Bluetooth devices in the second Bluetooth device set, so that the second Bluetooth devices update the second set information to the target set information; The second set information is used to indicate the second Bluetooth device set, and M is an integer greater than 1; The N first Bluetooth devices respectively establish LE Audio Bluetooth connections with the terminal device based on the target set information; The M second Bluetooth devices respectively establish LE Audio Bluetooth connections with the terminal device based on the target set information; The terminal device sends audio data to the N first Bluetooth devices and the M second Bluetooth devices respectively.

14. An information updating device, characterized in that: Applied to electronic equipment, the device comprises: An information acquisition module, used to acquire target set information, where the target set information is used to indicate a target Bluetooth device set; a sending module, configured to send the target set information to N first Bluetooth devices in a first Bluetooth device set, so that the first Bluetooth devices update the first set information to the target set information; the first set information is used to indicate the first Bluetooth device set, and N is an integer greater than 1; and / or, The sending module is also used to send the target set information to M second Bluetooth devices in the second Bluetooth device set, so that the second Bluetooth devices update the second set information to the target set information; the second set information is used to indicate the second Bluetooth device set, and M is an integer greater than 1.

15. An information updating device, characterized in that: Applied to a first Bluetooth device, the apparatus comprises: A receiving module, used for receiving target set information sent by an electronic device, wherein the target set information is used for indicating a target Bluetooth device set; An updating module, configured to update the first set information to the target set information, wherein the first set information is used to indicate a first Bluetooth device set; Among them, the N first Bluetooth devices whose first set information is updated to the target set information and the M second Bluetooth devices whose second set information is updated to the target set information are identified as belonging to the target Bluetooth device set; the second set information is used to indicate the second Bluetooth device set, and N and M are both integers greater than 1.

16. An audio sharing system, characterized in that: The device comprises an electronic device, N first Bluetooth devices, M second Bluetooth devices and a terminal device, wherein N and M are both integers greater than 1, wherein: The electronic device is used to send target set information to the N first Bluetooth devices in the first Bluetooth device set, so that the first Bluetooth devices update the first set information to the target set information; the first set information is used to indicate the first Bluetooth device set, and the target set information is used to indicate the target Bluetooth device set; and / or, The electronic device is further used to send the target set information to the M second Bluetooth devices in the second Bluetooth device set, so that the second Bluetooth devices update the second set information to the target set information; the second set information is used to indicate the second Bluetooth device set; The N first Bluetooth devices are used to establish LE Audio Bluetooth connections with the terminal device based on the target set information respectively; The M second Bluetooth devices are used to establish LEAudio Bluetooth connections with the terminal device based on the target set information respectively; The terminal device is used to send audio data to the N first Bluetooth devices and the M second Bluetooth devices respectively.

17. An electronic device, characterized in that: The electronic device comprises a memory, a processor and a communication unit, wherein the memory stores a computer program, and when the computer program is executed by the processor, the electronic device implements the method according to any one of claims 1 to 8 or 9 to 12.