WO2024066694A1 - 音频设备的连接方法、装置、存储介质及设备 - Google Patents

音频设备的连接方法、装置、存储介质及设备 Download PDF

Info

Publication number
WO2024066694A1
WO2024066694A1 PCT/CN2023/108716 CN2023108716W WO2024066694A1 WO 2024066694 A1 WO2024066694 A1 WO 2024066694A1 CN 2023108716 W CN2023108716 W CN 2023108716W WO 2024066694 A1 WO2024066694 A1 WO 2024066694A1
Authority
WO
WIPO (PCT)
Prior art keywords
audio
audio device
bluetooth address
broadcast signal
connection
Prior art date
Application number
PCT/CN2023/108716
Other languages
English (en)
French (fr)
Inventor
侯锐填
Original Assignee
Oppo广东移动通信有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Oppo广东移动通信有限公司 filed Critical Oppo广东移动通信有限公司
Publication of WO2024066694A1 publication Critical patent/WO2024066694A1/zh

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W76/00Connection management
    • H04W76/10Connection setup
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W48/00Access restriction; Network selection; Access point selection
    • H04W48/08Access restriction or access information delivery, e.g. discovery data delivery
    • H04W48/10Access restriction or access information delivery, e.g. discovery data delivery using broadcasted information
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D30/00Reducing energy consumption in communication networks
    • Y02D30/70Reducing energy consumption in communication networks in wireless communication networks

Definitions

  • the present application relates to the technical field of wireless devices, and in particular to a connection method, device, storage medium and device for an audio device.
  • Bluetooth With the development of short-range wireless technologies such as Bluetooth (BT), the types of wireless devices that support wireless connections are increasing. For example, among Bluetooth audio devices, in addition to traditional TWS (True Wireless Stereo) audio devices, TWS audio devices that support LE Audio (Low Energy Audio) protocols are also beginning to appear.
  • TWS Truste Wireless Stereo
  • LE Audio Low Energy Audio
  • Embodiments of the present application provide a method, apparatus, storage medium, and device for connecting an audio device.
  • an embodiment of the present application provides a method for connecting an audio device.
  • the wireless audio device includes a first audio device and a second audio device, the first audio device has a first Bluetooth address, and the second audio device has a second Bluetooth address; the method includes:
  • the first audio device determines a second Bluetooth address of the second audio device
  • the first audio device sends a first broadcast signal, where the first broadcast signal carries the first Bluetooth address and the second Bluetooth address;
  • the first audio device Based on the first Bluetooth address, the first audio device establishes an LE Audio connection with the electronic device, and based on the second Bluetooth address, the second audio device establishes an LE Audio connection with the electronic device.
  • an embodiment of the present application provides a method for connecting an audio device, which is applied to an electronic device, and the method includes:
  • An LE Audio connection is established with the first audio device based on the first Bluetooth address, and an LE Audio connection is established with the second audio based on the second Bluetooth address.
  • an embodiment of the present application provides a method for connecting an audio device, applied to a first audio device, where the first audio device has a first Bluetooth address, the method comprising:
  • a first broadcast signal is sent, wherein the first broadcast signal carries the first Bluetooth address and the second Bluetooth address, so that the electronic device establishes an LE Audio connection with the first audio device based on the first Bluetooth address, and establishes an LE Audio connection with the second audio device based on the second Bluetooth address.
  • an embodiment of the present application provides a connection device for an audio device, which is applied to a wireless audio device, wherein the wireless audio device includes a first audio device and a second audio device, wherein the first audio device has a first Bluetooth address, and the second audio device has a second Bluetooth address; the device includes a first acquisition module, a first sending module, and a first connection module located in the first audio device, and a second connection module located in the second audio device;
  • the first acquisition module is used to determine a second Bluetooth address of the second audio device
  • the first sending module is used to send a first broadcast signal, where the first broadcast signal carries the first Bluetooth address and the second Bluetooth address;
  • the first connection module is used for establishing an LE Audio connection between the first audio device and the electronic device based on the first Bluetooth address;
  • the second connection module is used to establish an LE Audio connection between the second audio device and the electronic device based on the second Bluetooth address.
  • an embodiment of the present application provides a connection device for an audio device, which is applied to an electronic device, and the device includes:
  • a second acquisition module configured to acquire a first Bluetooth address of the first audio device and a second Bluetooth address of the second audio device from the first broadcast signal when a first broadcast signal sent by the first audio device is scanned;
  • the third connection module is used to establish an LE Audio connection with the first audio device based on the first Bluetooth address, and to establish an LE Audio connection with the second audio based on the second Bluetooth address.
  • an embodiment of the present application further provides a connecting device for an audio device, which is applied to a first audio device, wherein the first audio device has a first Bluetooth address, and the device includes:
  • a third acquisition module used to determine a second Bluetooth address of the second audio device
  • the second sending module is used to send a first broadcast signal, which carries the first Bluetooth address and the second Bluetooth address, so that the electronic device establishes an LE Audio connection with the first audio device based on the first Bluetooth address, and establishes an LE Audio connection with the second audio device based on the second Bluetooth address.
  • an embodiment of the present application further provides a computer-readable storage medium having a computer program stored thereon.
  • the computer program runs on a computer, the computer executes a method for connecting an audio device as provided in any embodiment of the present application.
  • an embodiment of the present application further provides an electronic device, comprising a processor, a memory, and a wireless transceiver, wherein the memory stores a computer program, and the processor calls the computer program to execute a connection method for an audio device applied to an electronic device as provided in any embodiment of the present application.
  • an embodiment of the present application also provides a wireless audio device, including a processor, a memory, and a wireless transceiver, the memory storing a computer program, and the processor calling the computer program to execute a method for connecting a frequency device applied to a wireless audio device as provided in any embodiment of the present application, or to execute a method for connecting a frequency device applied to a first audio device as provided in any embodiment of the present application.
  • FIG. 1 is a diagram showing the connection process when a TWS Bluetooth headset is connected to a mobile phone for the first time in the related art.
  • Figure 2 shows the structural information of the resolvable dedicated address in LE Audio broadcast in the related technology.
  • FIG. 3 is a flow chart of a method for connecting an audio device provided in an embodiment of the present application.
  • FIG. 4 is a schematic diagram of a scenario of a method for connecting audio devices provided in an embodiment of the present application.
  • FIG. 5 is a schematic diagram of another scenario of the method for connecting audio devices provided in an embodiment of the present application.
  • FIG. 6 is another schematic flow chart of a method for connecting an audio device according to an embodiment of the present application.
  • FIG. 7 is another schematic flow chart of a method for connecting an audio device according to an embodiment of the present application.
  • FIG. 8 is a schematic diagram of a structure of a connection device for an audio device provided in an embodiment of the present application.
  • FIG. 9 is another schematic diagram of the structure of the connection device for audio equipment provided in an embodiment of the present application.
  • FIG. 10 is another schematic diagram of the structure of the connection device for audio equipment provided in an embodiment of the present application.
  • FIG. 11 is a schematic diagram of the structure of an electronic device provided in an embodiment of the present application.
  • FIG. 12 is another schematic diagram of the structure of an electronic device provided in an embodiment of the present application.
  • Bluetooth low energy audio BLE Audio technology provides the CSIP (Coordinated Set Identification Profile) protocol, which allows devices belonging to the same group to achieve coordination and synchronization when interacting with external devices.
  • This protocol mainly describes how external devices can identify multiple independent devices in a group as the same group. For example, a pair of Bluetooth headphones contains two headphones, a group of Bluetooth speakers contains three speakers, etc., then a group of Bluetooth devices can be understood as a coordination set, and the audio devices in the same coordination set have the same coordination set identity resolution key (Set Identity Resolving Key, SIRK).
  • SIRK Set Identity Resolving Key
  • the left and right earphones establish a low-power audio LE connection with the electronic device.
  • Figure 1 is the connection process when the Bluetooth headset and the mobile phone are connected for the first time in the related technology. After the headset 1 and the headset 2 are paired, both headsets turn on the BLE broadcast, and the mobile phone also turns on Bluetooth to scan the broadcast signal, and can trigger the establishment of an LE Audio connection with the headset 1 based on the user operation. After that, the broadcast of the other headset is parsed to determine whether the headset and the currently connected headset belong to the same coordination set. If they belong to the same coordination set, an LE Audio connection is established with the headset 2.
  • a hash value is calculated according to the SIRK (Set Identity Resolving Key) of earphone 1 and a specific field (hash field of RSI value) in the broadcast information of the other earphone, and it is determined whether the calculated hash value is consistent with the hash value in the broadcast, as shown in Figure 2.
  • Figure 2 is the structural information of the resolvable dedicated address in the BLE broadcast in the related technology. The high 24 bits of the address are the random number part (prand), of which the highest two bits are "10", and the low 24 bits are the hash value in the broadcast.
  • the mobile phone establishes an LE Audio connection with earphone 2.
  • the electronic device needs to wait until an LE Audio connection is established with the first audio device in the same coordination set, and then verify the hash value based on the broadcast of the second audio device and the SIRK of the first audio device before establishing an LE Audio connection with the second audio device, resulting in a slow connection speed when the entire wireless audio device (such as a TWS headset) and the electronic device (such as a mobile phone) make the first LE Audio connection.
  • the present application provides a method for connecting an audio device.
  • a method for connecting a device the method for connecting an audio device is applied to a wireless audio device.
  • the wireless audio device may be a Bluetooth headset, or other types of audio playback devices supporting the Bluetooth protocol, such as a Bluetooth speaker, etc.
  • the wireless audio device includes a first audio device and a second audio device, the first audio device having a first Bluetooth address, and the second audio device having a second Bluetooth address.
  • the embodiment of the present application provides a method for connecting an audio device, which is applied to a wireless audio device, wherein the wireless audio device includes a first audio device and a second audio device, wherein the first audio device has a first Bluetooth address, and the second audio device has a second Bluetooth address; the method includes:
  • the first audio device determines a second Bluetooth address of the second audio device
  • the first audio device sends a first broadcast signal, where the first broadcast signal carries the first Bluetooth address and the second Bluetooth address;
  • the first audio device Based on the first Bluetooth address, the first audio device establishes a low-power audio LE Audio connection with the electronic device, and based on the second Bluetooth address, the second audio device establishes a LE Audio connection with the electronic device.
  • the method before the first audio device determines the second Bluetooth address of the second audio device, the method includes:
  • the first audio device detects whether the historical connection record is empty
  • the step of the first audio device determining the second Bluetooth address of the second audio device is performed.
  • the first audio device sends a first broadcast signal, where the first broadcast signal carries the first Bluetooth address and the second Bluetooth address, including:
  • the first audio device writes the first Bluetooth address into a first preset field of the first broadcast signal, writes the second Bluetooth address into a second preset field of the first broadcast signal to generate the first broadcast signal, and sends the first broadcast signal.
  • the first broadcast signal is a low-power Bluetooth broadcast signal; the first audio device establishes an LE Audio connection with the electronic device based on the first Bluetooth address, and the second audio device establishes an LE Audio connection with the electronic device based on the second Bluetooth address, including:
  • the first audio device In response to a first connection request sent by the electronic device based on the first Bluetooth address, the first audio device establishes an LE Audio connection with the electronic device;
  • the second audio device sends a second broadcast signal, where the second broadcast signal is a low-power Bluetooth broadcast signal carrying the second Bluetooth address, and the second broadcast signal is used to enable the electronic device to initiate a second connection request to the second audio device based on the second Bluetooth address;
  • the second audio device establishes an LE Audio connection with the electronic device in response to the second connection request.
  • the second broadcast signal also carries the first Bluetooth address.
  • the first broadcast signal is an extended inquiry response (EIR) packet
  • the first audio device establishes an LE Audio connection with the electronic device based on the first Bluetooth address
  • the second audio device establishes an LE Audio connection with the electronic device based on the second Bluetooth address, including:
  • the first audio device In response to a third connection request sent by the electronic device based on the first Bluetooth address, the first audio device establishes a classic Bluetooth connection with the electronic device;
  • the first audio device sends a low-power Bluetooth broadcast signal and sends a reminder message to the second audio device, and the second audio device sends a low-power Bluetooth broadcast signal in response to the reminder message;
  • the first audio device connects to the electronic device in response to a fourth connection request sent by the electronic device based on the first Bluetooth address.
  • the electronic device establishes an LE Audio connection with the second audio device, and the second audio device establishes an LE Audio connection with the electronic device in response to a fifth connection request sent by the electronic device based on the second Bluetooth address.
  • the present application provides a method for connecting an audio device, which is applied to an electronic device, and the method includes:
  • An LE Audio connection is established with the first audio device based on the first Bluetooth address, and an LE Audio connection is established with the second audio based on the second Bluetooth address.
  • acquiring a first Bluetooth address of the first audio device and a second Bluetooth address of a second audio device from the first broadcast signal includes:
  • a first Bluetooth address of the first audio device is acquired from a first preset field of the first broadcast signal, and a second Bluetooth address of the second audio device is determined from a second preset field of the first broadcast signal.
  • the first broadcast signal is a low-power Bluetooth broadcast signal; after obtaining the first Bluetooth address of the first audio device and the second Bluetooth address of the second audio device from the first broadcast signal, the method further includes:
  • the establishing an LE Audio connection with the first audio device based on the first Bluetooth address, and establishing an LE Audio connection with the second audio based on the second Bluetooth address comprises:
  • the first broadcast signal is an extended inquiry response (EIR) packet; after acquiring the first Bluetooth address of the first audio device and the second Bluetooth address of the second audio device from the first broadcast signal, the method further includes:
  • the establishing an LE Audio connection with the first audio device based on the first Bluetooth address, and establishing an LE Audio connection with the second audio based on the second Bluetooth address comprises:
  • the fourth broadcast signal carrying the second Bluetooth address is scanned, an LE Audio connection is established with the second audio device that sends the fourth broadcast signal, and the fourth broadcast signal is a low-power Bluetooth broadcast signal.
  • the method further includes:
  • the method further includes:
  • the embodiment of the present application provides a method for connecting an audio device, which is applied to a first audio device, where the first audio device has a first Bluetooth address, and the method includes:
  • a first broadcast signal is sent, wherein the first broadcast signal carries the first Bluetooth address and the second Bluetooth address, so that the electronic device establishes an LE Audio connection with the first audio device based on the first Bluetooth address, and establishes an LE Audio connection with the second audio device based on the second Bluetooth address.
  • the first broadcast signal is a low-power Bluetooth broadcast signal; after the first audio device sends the first broadcast signal, the method further includes:
  • the first audio device In response to a sixth connection request sent by the electronic device based on the first Bluetooth address, the first audio device establishes an LE Audio connection with the electronic device.
  • the first broadcast signal is an extended inquiry response (EIR) packet; after the first audio device sends the first broadcast signal, the method further includes:
  • EIR extended inquiry response
  • Figure 3 is a schematic diagram of a flow chart of a method for connecting an audio device provided in an embodiment of the present application.
  • the specific flow of the method for connecting an audio device provided in an embodiment of the present application may be as follows:
  • a first audio device determines a second Bluetooth address of a second audio device.
  • the Bluetooth headset includes a first headset and a second headset.
  • the first audio device is the first headset
  • the second audio device is the second headset
  • the first headset has a first Bluetooth address
  • the second headset has a second Bluetooth address.
  • the first earphone is provided with a first wireless connection module
  • the second earphone is provided with a second wireless connection module.
  • the first wireless connection module and the second connection module are both low-power Bluetooth modules, that is, the headset is a single-mode Bluetooth device, and the first headset and the second headset can establish an LE Audio connection with the electronic device.
  • the LE Audio connection can be understood as a communication connection established based on the LE Audio Bluetooth protocol.
  • an LE Audio connection may also be understood to include a link for communicating based on the LE Audio Bluetooth protocol.
  • the LE Audio connection may not include the establishment of CIS (Connected Isochronous Streams, connectable synchronous transmission, the specific definition can refer to the provisions of the relevant Bluetooth standards), but the CIS is established only when there is a need for related business transmission. For example, when there is a need for business (such as calls or music) transmission after the LE Audio connection is established, the establishment of the CIS is triggered.
  • CIS Connected Isochronous Streams, connectable synchronous transmission, the specific definition can refer to the provisions of the relevant Bluetooth standards
  • the LE Audio connection may also include establishing a CIS.
  • the method of establishing an LE Audio connection may refer to the provisions of relevant Bluetooth standards, and the relevant content may also be adjusted as the Bluetooth standards change.
  • the first wireless connection module and the second wireless connection module both include a low-power Bluetooth submodule and a classic Bluetooth submodule, that is, the headset is a dual-mode Bluetooth device, wherein, since the low-power Bluetooth submodule and the classic Bluetooth submodule belong to the same device, The two submodules share a Bluetooth address.
  • the Bluetooth addresses of the low-power Bluetooth submodule and the classic Bluetooth submodule of the first headset are both the first Bluetooth address.
  • the headset can establish an LE Audio connection and a classic Bluetooth connection with the electronic device through the low-power Bluetooth module and the classic Bluetooth module at the same time, and the electronic device can select one of the connections to transmit data according to the data transmission requirements.
  • the two earphones may be paired and connected with each other, or may not be paired and connected with each other.
  • the two earphones are not paired with each other.
  • the two earphones respectively establish connections with the earphone box (which can be wired connections, such as contact connections; or wireless connections, such as Bluetooth connections), and send their respective Bluetooth addresses to each other through the earphone box; or, after the two earphones establish connection with the earphone box for the first time, each sends a Bluetooth address to the earphone box, and after the user starts the earphones, the earphone box can automatically or in response to the user's control operation send the Bluetooth address of one earphone to the other earphone, so that each of the two earphones obtains the Bluetooth address of the other earphone; or, before the earphones leave the factory, the address of one earphone in a pair of earphones is set to be stored in the other earphone, for example, by setting the Bluetooth protocol of the two earphones, the address of one earphone in a pair of earphones is set to be stored in the other earphone
  • two earphones after two earphones are started, they are paired and connected to each other. After the pairing and connection between each other is completed, the two earphones each send the Bluetooth address of the local device to the other earphone.
  • the two earphones after the two earphones are started, they are paired and connected to each other. After the pairing and connection between the two earphones is completed, the two earphones determine one earphone as the master earphone and the other earphone as the slave earphone through a broadcast signal, the master earphone obtains the Bluetooth address of the slave earphone, and the master earphone carries both the Bluetooth address of the master earphone and the Bluetooth address of the slave earphone in the first broadcast signal sent.
  • first audio device and “second audio device” in the embodiments of the present application are only used to distinguish the two earphones, and do not mean that the first earphone must be the main earphone.
  • the wireless audio device that establishes a connection with the electronic device first is the first audio device
  • the wireless audio device that establishes a connection with the electronic device later is the second audio device.
  • a first audio device sends a first broadcast signal, where the first broadcast signal carries a first Bluetooth address and a second Bluetooth address.
  • the first headset can obtain the Bluetooth address of the second headset in any of the above methods. After starting, the first headset generates a first broadcast signal based on the first Bluetooth address and the second Bluetooth address. That is, the first headset carries the first Bluetooth address and the second Bluetooth address in the first broadcast signal sent. For a device that can scan the first broadcast signal, two Bluetooth addresses can be obtained from one broadcast signal.
  • the first audio device sends a first broadcast signal
  • the first broadcast signal carries a first Bluetooth address and a second Bluetooth address
  • the first audio device writes the first Bluetooth address into a first preset field of the first broadcast signal
  • writes the second Bluetooth address into a second preset field of the first broadcast signal to generate the first broadcast signal
  • the second field may be a customizable extended field.
  • a second preset field can be added to the first broadcast signal of the headset, and the second preset field is used to store the Bluetooth address of another headset.
  • the first audio device Based on the first Bluetooth address, the first audio device establishes an LE Audio connection with the electronic device, and based on the second Bluetooth address, the second audio device establishes an LE Audio connection with the electronic device.
  • the first Bluetooth address and the second Bluetooth address can be obtained from the first broadcast signal.
  • the first Bluetooth address of the first audio device is obtained from the first preset field of the first broadcast signal
  • the second Bluetooth address of the second audio device is obtained from the second preset field of the first broadcast signal.
  • the electronic device can establish an LE Audio connection with the first audio device based on the first Bluetooth address, and establish a connection with the second audio device based on the second Bluetooth address.
  • the first audio device based on the first Bluetooth address, the first audio device establishes an LE Audio connection with the electronic device, and based on the second Bluetooth address, the second audio device establishes an LE Audio connection with the electronic device, including: in response to a first connection request sent by the electronic device based on the first Bluetooth address, the first audio device establishes an LE Audio connection with the electronic device; the second audio device sends a second broadcast signal, the second broadcast signal is a low-power Bluetooth broadcast signal carrying a second Bluetooth address, and the second broadcast signal is used to enable the electronic device to initiate a second connection request to the second audio device based on the second Bluetooth address; the second audio device establishes an LE Audio connection with the electronic device in response to the second connection request.
  • the second broadcast signal may carry the first Bluetooth address or may not carry the first Bluetooth address. In some embodiments, the second broadcast signal carrying the first Bluetooth address and the second Bluetooth address can establish a Bluetooth LE Audio connection more quickly.
  • the wireless audio device is a single-mode Bluetooth device
  • the first broadcast signal is a low-power Bluetooth broadcast signal.
  • Figure 4 is a schematic diagram of a scenario of a connection method for an audio device provided in an embodiment of the present application.
  • the electronic device scans the low-power Bluetooth broadcast signal, it obtains a first Bluetooth address and a first Bluetooth address from the low-power Bluetooth broadcast signal.
  • the electronic device can also output device prompt information corresponding to the first audio device based on the first broadcast signal, and the user can trigger a connection instruction based on the device prompt information.
  • the electronic device When the electronic device receives a connection instruction triggered based on the device prompt information, it can initiate an LE Audio connection between the first audio device and the second audio device, wherein, since the first broadcast signal is sent by the first audio device, the electronic device can directly send a first connection request to the first audio device based on the first Bluetooth address, and the first audio device responds to the first connection request and establishes an LE Audio connection with the electronic device.
  • the second audio device also sends a low-power Bluetooth broadcast signal at a certain frequency, and the second broadcast signal carries a second Bluetooth address.
  • the electronic device When the electronic device has obtained the second Bluetooth address, when it scans a low-power Bluetooth broadcast signal carrying the second Bluetooth address, it initiates a second connection request to the second audio device based on the second Bluetooth address, and the second audio device establishes an LE Audio connection with the electronic device in response to the second connection request.
  • this embodiment does not need to wait until the electronic device establishes an LE Audio connection with one earphone before initiating an LE Audio connection with the other earphone.
  • the Bluetooth addresses of the two earphones are obtained through the broadcast signal of one earphone, thereby quickly initiating an LE Audio connection to the two earphones, thereby improving the connection speed when the electronic device is connected to the wireless audio device for the first time.
  • the first audio device based on the first Bluetooth address, the first audio device establishes an LE Audio connection with the electronic device, and based on the second Bluetooth address, the second audio device establishes an LE Audio connection with the electronic device, including: in response to a third connection request sent by the electronic device based on the first Bluetooth address, the first audio device establishes a classic Bluetooth connection with the electronic device; the first audio device sends a low-power Bluetooth broadcast signal and sends a reminder message to the second audio device, and the second audio device sends a low-power Bluetooth broadcast signal in response to the reminder message; the first audio device establishes an LE Audio connection with the electronic device in response to a fourth connection request sent by the electronic device based on the first Bluetooth address.
  • the second audio device establishes an LE Audio connection with the electronic device in response to a fifth connection request sent by the electronic device based on the second Bluetooth address.
  • the first broadcast signal is an extended query response packet.
  • the Bluetooth headset is a dual-mode Bluetooth device, and the Bluetooth headset supports establishing a dual-channel Bluetooth connection with the electronic device, including a classic Bluetooth connection and an LE Audio connection, and the electronic device is also a dual-mode Bluetooth device.
  • Bluetooth device The headset maintains LE Audio connection and classic Bluetooth connection with the electronic device through the low-power Bluetooth module and the classic Bluetooth module at the same time, and the electronic device selects one of the connections to transmit data according to the data transmission requirements.
  • Figure 5 is another scenario schematic diagram of the connection method of the audio device provided in the embodiment of the present application.
  • the first headset After the Bluetooth headset is started, the first headset first sends an extended query response packet in the form of broadcast, and the extended query response packet carries the first Bluetooth address of the first headset and the second Bluetooth address of the second headset.
  • the electronic device receives the extended query response packet, it can obtain the first Bluetooth address and the second Bluetooth address, and output the device prompt information corresponding to the first audio device based on the extended query response packet.
  • the user can trigger the connection instruction based on the device prompt information.
  • the electronic device receives the connection instruction triggered based on the device prompt information, it can initiate a connection request to the first audio device to establish a classic Bluetooth connection with the first audio device.
  • the first audio device After the first audio device completes the establishment of a classic Bluetooth connection with the electronic device or in the process of establishing a classic Bluetooth connection, it starts to send a low-power Bluetooth broadcast signal to trigger the establishment of another connection in the dual-mode channel. For example, the first audio device sends a reminder message to the second audio device, and the second audio starts to send a low-power Bluetooth broadcast signal in response to the reminder message.
  • the electronic device When the electronic device scans a low-power Bluetooth broadcast signal carrying a first Bluetooth address, it sends a fourth connection request based on the first Bluetooth address to establish an LE Audio connection with the first audio device that sends the low-power Bluetooth broadcast signal, and when the electronic device scans a low-power Bluetooth broadcast signal carrying a second Bluetooth address, it sends a fifth connection request based on the second Bluetooth address to establish an LE Audio connection with the second audio device that sends the low-power Bluetooth broadcast signal.
  • both the electronic device and the headset are dual-mode Bluetooth devices.
  • the Bluetooth addresses of the two headsets are carried in the extended query response packet of one headset, so that the electronic device obtains the Bluetooth addresses of the two headsets, thereby quickly initiating an LE Audio connection to the two headsets, thereby improving the connection speed when the electronic device and the wireless audio device are connected for the first time.
  • the method before the step of the first audio device determining the second Bluetooth address of the second audio device, the method further includes: the first audio device detecting whether the historical connection record is empty; when the historical connection record is empty, the first audio device determining the second Bluetooth address of the second audio device.
  • the Bluetooth address of the electronic device will be stored in the historical connection record to facilitate the next connection to the same electronic device.
  • the first headset After the first headset is started, it first obtains the historical connection record of the first headset. If the historical connection record is empty, it can be determined that this connection is the first connection or the connection record is cleared, and the Bluetooth address of the second headset is obtained. On the contrary, if the historical connection record is not empty, it can be determined that this connection is not the first connection, but a reconnection, then it is only necessary to send and receive a Bluetooth broadcast signal.
  • connection record of the headset in the historical connection record of the electronic device, after scanning the Bluetooth broadcast signal, it can be directly reconnected to the headset.
  • some embodiments of the present application can be applied when the headset is opened for the first time to enable the headset or the headset is restored to factory settings, such as erasing the relevant connection records.
  • the present application is not limited by the execution order of the described steps. In the absence of conflicts, some steps can also be performed in other orders or simultaneously. In addition, in the absence of conflicts, the embodiments, implementation methods and related technical features in the present application can be combined with each other.
  • the embodiment of the present application provides a connection method that bypasses the CSIP protocol to connect to devices in the same coordination set.
  • this technical solution can add the BLE address field of another audio device through LE broadcast content or classic EIR packets, so that the electronic device can initiate an LE Audio connection to another audio device more quickly, thereby improving the overall wireless audio device (such as TWS headphones) and electronic devices (such as mobile phone), thereby improving the user experience and enhancing product competitiveness.
  • the embodiment of the present application also provides a method for connecting an audio device applied to an electronic device.
  • Figure 6 is another flow chart of the method for connecting an audio device provided in the embodiment of the present application. The method includes:
  • a first Bluetooth address of the first audio device and a second Bluetooth address of a second audio device are acquired from the first broadcast signal.
  • the electronic device at the other end of the headset is used as the execution subject to establish a Bluetooth connection between the electronic device and the headset.
  • the execution subject to establish a Bluetooth connection between the electronic device and the headset.
  • the step of obtaining a first Bluetooth address of the first audio device and a second Bluetooth address of the second audio device from the first broadcast signal includes: when a first broadcast signal sent by the first audio device is scanned, obtaining the first Bluetooth address of the first audio device from a first preset field of the first broadcast signal, and obtaining the second Bluetooth address of the second audio device from a second preset field of the first broadcast signal.
  • the first broadcast signal is a low-power Bluetooth broadcast signal. After obtaining a first Bluetooth address of the first audio device and a second Bluetooth address of the second audio device from the first broadcast signal, device prompt information corresponding to the first audio device is output based on the first broadcast signal; when a connection instruction triggered by the device prompt information is received, a LE connection is established with the first audio device based on the first Bluetooth address.
  • the first broadcast signal is an extended query response packet.
  • the device prompt information corresponding to the first audio device is output based on the first broadcast signal.
  • a connection instruction triggered by the device prompt information is received, a classic Bluetooth connection is established with the first audio device based on the first Bluetooth address; when a third broadcast signal carrying the first Bluetooth address is scanned, an LE connection is established with the first audio device that sent the third broadcast signal.
  • the third broadcast signal is a low-power Bluetooth broadcast signal
  • the fourth broadcast signal carrying the second Bluetooth address is scanned, an LE Audio connection is established with the second audio device that sends the fourth broadcast signal, and the fourth broadcast signal is a low-power Bluetooth broadcast signal.
  • the method further includes: adding the first Bluetooth address and the second Bluetooth address to a whitelist; before establishing an LE Audio connection with the first audio device that sends a third broadcast signal, the method further includes: when scanning a third broadcast signal carrying the first Bluetooth address, detecting whether the first Bluetooth address is on the whitelist; when the first Bluetooth address is on the whitelist, establishing an LE Audio connection with the first audio device that sends the third broadcast signal.
  • the electronic device is provided with a Bluetooth connection whitelist mechanism. After the electronic device obtains the first Bluetooth address and the second Bluetooth address from the extended query response packet, the first Bluetooth address and the second Bluetooth address are added to the whitelist. After the subsequent electronic device scans the low-power Bluetooth broadcast signal carrying the first Bluetooth address or the second Bluetooth address, it can directly establish a connection with the corresponding device.
  • the present invention implements a connection method for connecting devices in the same coordination set by bypassing the CSIP protocol.
  • the BLE address field of another audio device can be added through LE broadcast content or classic EIR packets, so that the electronic device can initiate the LE Audio connection to another audio device more quickly, thereby improving the overall wireless audio device (such as TWS headphones) and the electronic device (such as The speed of the first LE Audio connection of mobile phones can be improved, thereby improving the user experience and enhancing product competitiveness.
  • the present application also provides a method for connecting an audio device. Please refer to FIG7 , which is another flow chart of the method for connecting an audio device provided in the present application.
  • the method is applied to a first audio device, the first audio device having a first Bluetooth address, and the method includes:
  • the first broadcast signal is a low power Bluetooth broadcast signal; after the first audio device sends the first broadcast signal, the method also includes: in response to a sixth connection request sent by the electronic device based on the first Bluetooth address, the first audio device establishes an LE Audio connection with the electronic device.
  • the first broadcast signal is an extended inquiry response EIR packet; after the first audio device sends the first broadcast signal, the method also includes: sending a low power Bluetooth broadcast signal, in response to a seventh connection request sent by the electronic device based on the first Bluetooth address, establishing an LE Audio connection with the electronic device.
  • the embodiment of the present invention provides a connection method that bypasses the CSIP protocol to connect devices in the same coordination set.
  • the BLE address field of another audio device can be added through LE broadcast content or classic EIR packets, so that the electronic device can initiate an LE Audio connection to another audio device more quickly, thereby improving the speed of the first LE Audio connection between the entire wireless audio device (such as TWS headphones) and the electronic device (such as a mobile phone), thereby improving the user experience and enhancing product competitiveness.
  • connection device 400 for the audio device is applied to a wireless audio device, wherein the wireless audio device includes a first audio device and a second audio device, wherein the first audio device has a first Bluetooth address, and the second audio device has a second Bluetooth address; the device includes a first acquisition module 401, a sending module 402, and a first connection module 403 located in the first audio device, and a second connection module 404 located in the second audio device:
  • a first acquisition module 401 is used to determine a second Bluetooth address of the second audio device
  • a sending module 402 configured to send a first broadcast signal, where the first broadcast signal carries the first Bluetooth address and the second Bluetooth address;
  • a first connection module 403, configured to establish an LE Audio connection between the first audio device and the electronic device based on the first Bluetooth address
  • the second connection module 404 is used to establish an LE Audio connection between the second audio device and the electronic device based on the second Bluetooth address.
  • the first acquisition module 401 is used to detect whether the historical connection record is empty; when the historical connection record is empty, the first audio device determines the second Bluetooth address of the second audio device.
  • the sending module 402 is used to write the first Bluetooth address into the first preset field of the first broadcast signal, write the second Bluetooth address into the second preset field of the first broadcast signal to generate the first broadcast signal, and send the first broadcast signal
  • the first broadcast signal is a low-power Bluetooth broadcast signal
  • the first connection module 403 is used to respond to a first connection request sent by the electronic device based on the first Bluetooth address, and the first audio device establishes an LE Audio connection with the electronic device. catch;
  • the second connection module 404 is used to send a second broadcast signal, where the second broadcast signal is a low-power Bluetooth broadcast signal carrying the second Bluetooth address, and the second broadcast signal is used to enable the electronic device to initiate a second connection request to the second audio device based on the second Bluetooth address; and to establish an LE Audio connection with the electronic device in response to the second connection request.
  • the second broadcast signal is a low-power Bluetooth broadcast signal carrying the second Bluetooth address
  • the second broadcast signal is used to enable the electronic device to initiate a second connection request to the second audio device based on the second Bluetooth address; and to establish an LE Audio connection with the electronic device in response to the second connection request.
  • the second broadcast signal also carries the first Bluetooth address.
  • the first broadcast signal is an extended query response packet;
  • the first connection module 403 is used to send a low-power Bluetooth broadcast signal and send a reminder message to the second audio device;
  • the second connection module 404 is used to send a low-power Bluetooth broadcast signal in response to the reminder message;
  • the first connection module 403 is further configured to establish an LE Audio connection with the electronic device in response to a fourth connection request sent by the electronic device based on the first Bluetooth address;
  • the second connection module 404 is also used to establish an LE Audio connection with the electronic device in response to a fifth connection request sent by the electronic device based on the second Bluetooth address.
  • connection device of the audio device provided in the embodiment of the present application and the connection method of the audio device in the above embodiment belong to the same concept. Any method provided in the connection method embodiment of the audio device can be implemented through the connection device of the audio device. The specific implementation process is detailed in the connection method embodiment of the audio device, which will not be repeated here.
  • the embodiment of the present application provides a connection device that bypasses the CSIP protocol to connect to devices in the same coordination set.
  • this technical solution can add the BLE address field of another audio device through LE broadcast content or classic EIR packets, so that the electronic device can initiate an LE Audio connection to another audio device more quickly, thereby improving the speed of the first LE Audio connection between the entire wireless audio device (such as TWS headphones) and the electronic device (such as a mobile phone), thereby improving the user experience and enhancing product competitiveness.
  • the embodiment of the present application also provides a connection device for an audio device, which is applied to an electronic device. Please refer to FIG. 9, which is another structural schematic diagram of the connection device for an audio device provided in the embodiment of the present application.
  • the device 500 includes:
  • a second acquisition module 501 is configured to acquire a first Bluetooth address of the first audio device and a second Bluetooth address of the second audio device from the first broadcast signal when a first broadcast signal sent by the first audio device is scanned;
  • the third connection module 502 is used to establish an LE Audio connection with the first audio device based on the first Bluetooth address, and to establish an LE Audio connection with the second audio based on the second Bluetooth address.
  • the second acquisition module 501 is used to acquire the first Bluetooth address of the first audio device from the first preset field of the first broadcast signal when scanning the first broadcast signal sent by the first audio device, and determine the second Bluetooth address of the second audio device from the second preset field of the first broadcast signal.
  • the first broadcast signal is a low-power Bluetooth broadcast signal
  • the third connection module 502 is used to output device prompt information corresponding to the first audio device based on the first broadcast signal; when a connection instruction triggered by the device prompt information is received, an LE Audio connection is established with the first audio device based on the first Bluetooth address; and when a second broadcast signal carrying the second Bluetooth address is scanned, an LE Audio connection is established with the second audio device that sends the second broadcast signal, and the second broadcast signal is a low-power Bluetooth broadcast signal.
  • the first broadcast signal is an extended query response packet; the third connection module 502 is used to connect a broadcast signal outputting device prompt information corresponding to the first audio device; when a connection instruction triggered by the device prompt information is received, a classic Bluetooth connection is established with the first audio device based on the first Bluetooth address; when a third broadcast signal carrying the first Bluetooth address is scanned, an LE Audio connection is established with the first audio device that sends the third broadcast signal, wherein the third broadcast signal is a low-power Bluetooth broadcast signal; and, when a fourth broadcast signal carrying the second Bluetooth address is scanned, an LE Audio connection is established with the second audio device that sends the fourth broadcast signal, wherein the fourth broadcast signal is a low-power Bluetooth broadcast signal.
  • the second acquisition module 501 is used to add the first Bluetooth address and the second Bluetooth address to a whitelist; when a third broadcast signal carrying the first Bluetooth address is scanned, detect whether the first Bluetooth address is on the whitelist; and when the first Bluetooth address is on the whitelist, establish an LE Audio connection with the first audio device that sends the third broadcast signal.
  • the embodiment of the present application provides a connection device that bypasses the CSIP protocol to connect to devices in the same coordination set.
  • the BLE address field of another audio device can be added through LE broadcast content or classic EIR packets, so that the electronic device can initiate an LE Audio connection to another audio device more quickly, thereby improving the speed of the first LE Audio connection between the entire wireless audio device (such as TWS headphones) and the electronic device (such as a mobile phone), thereby improving the user experience and enhancing product competitiveness.
  • connection device 600 for the audio device includes:
  • a third acquisition module 601 is used to determine a second Bluetooth address of the second audio device
  • the second sending module 602 is used to send a first broadcast signal, which carries the first Bluetooth address and the second Bluetooth address, so that the electronic device establishes an LE Audio connection with the first audio device based on the first Bluetooth address, and establishes an LE Audio connection with the second audio device based on the second Bluetooth address.
  • the embodiment of the present application also provides an electronic device.
  • the electronic device may be a smart phone, a tablet computer, or other device.
  • FIG. 11 is a schematic diagram of a structure of an electronic device provided in the embodiment of the present application.
  • the electronic device 700 includes a processor 701, a memory 702, and a wireless transceiver 703.
  • the processor 701 is electrically connected to the memory 702 and the wireless transceiver 703.
  • the processor 701 is the control center of the electronic device 700. It uses various interfaces and lines to connect various parts of the entire electronic device, and executes various functions of the electronic device and processes data by running or calling computer programs stored in the memory 702, and calling data stored in the memory 702.
  • the memory 702 may be used to store computer programs and data.
  • the computer programs stored in the memory 702 include instructions that can be executed in the processor.
  • the computer programs may constitute various functional modules.
  • the processor 701 executes various functional applications and data processing by calling the computer programs stored in the memory 702.
  • the wireless transceiver 703 may be used to send and receive wireless signals, and the electronic device 700 establishes a wireless connection with the wireless audio device via the wireless transceiver 703.
  • the wireless transceiver may be a Bluetooth module, such as a low-power Bluetooth module.
  • the processor 701 in the electronic device 700 loads instructions corresponding to one or more computer program processes into the memory 702, and the processor 701 runs the computer program stored in the memory 702, so that the electronic device 700 performs the following steps:
  • An LE Audio connection is established with the first audio device based on the first Bluetooth address, and an LE Audio connection is established with the second audio based on the second Bluetooth address.
  • the processor 701 may execute: when scanning a first broadcast signal sent by the first audio device, obtaining the first Bluetooth address of the first audio device from a first preset field of the first broadcast signal, and determining the second Bluetooth address of the second audio device from a second preset field of the first broadcast signal.
  • the first broadcast signal is a low-power Bluetooth broadcast signal; after obtaining the first Bluetooth address of the first audio device and the second Bluetooth address of the second audio device from the first broadcast signal, the processor 701 can execute: outputting device prompt information corresponding to the first audio device based on the first broadcast signal; in establishing an LE Audio connection with the first audio device based on the first Bluetooth address, and establishing an LE Audio connection with the second audio based on the second Bluetooth address, the processor 701 can execute: when receiving a connection instruction triggered by the device prompt information, establishing an LE Audio connection with the first audio device based on the first Bluetooth address; when scanning a second broadcast signal carrying the second Bluetooth address, establishing an LE Audio connection with the second audio device that sends the second broadcast signal, the second broadcast signal being a low-power Bluetooth broadcast signal.
  • the first broadcast signal is an extended inquiry response EIR packet; after obtaining the first Bluetooth address of the first audio device and the second Bluetooth address of the second audio device from the first broadcast signal, the processor 701 can execute: outputting device prompt information corresponding to the first audio device based on the first broadcast signal; in establishing an LE Audio connection with the first audio device based on the first Bluetooth address, and establishing an LE Audio connection with the second audio based on the second Bluetooth address, the processor 701 can execute: when receiving a connection instruction triggered by the device prompt information, establishing a classic Bluetooth connection with the first audio device based on the first Bluetooth address; when scanning a third broadcast signal carrying the first Bluetooth address, establishing an LE Audio connection with the first audio device that sends the third broadcast signal, wherein the third broadcast signal is a low-power Bluetooth broadcast signal; when scanning a fourth broadcast signal carrying the second Bluetooth address, establishing an LE Audio connection with the second audio device that sends the fourth broadcast signal, and the fourth broadcast signal is a low-power Bluetooth broadcast signal.
  • the processor 701 may execute: adding the first Bluetooth address and the second Bluetooth address to a whitelist; before establishing an LE Audio connection with the first audio device that sends the third broadcast signal, the method further includes: when scanning a third broadcast signal carrying the first Bluetooth address, detecting whether the first Bluetooth address is in the whitelist; when the first Bluetooth address is in the whitelist, establishing an LE Audio connection with the first audio device that sends the third broadcast signal.
  • FIG. 12 is another structural schematic diagram of an electronic device provided in an embodiment of the present application.
  • the electronic device 700 also includes: a radio frequency circuit 704, a display screen 705, a control circuit 708, an input unit 708, an audio circuit 708, a sensor 709, and a power supply 710.
  • the processor 701 is electrically connected to the radio frequency circuit 704, the display screen 705, the control circuit 706, the input unit 708, the audio circuit 708, the sensor 709, and the power supply 710 respectively.
  • the radio frequency circuit 704 is used to send and receive radio frequency signals to communicate with network devices or other electronic devices through wireless communication.
  • the display screen 705 may be used to display information input by a user or information provided to a user and various graphical user interfaces of the electronic device. These graphical user interfaces may be composed of images, texts, icons, videos and any combination thereof.
  • the control circuit 706 is electrically connected to the display screen 705 and is used to control the display screen 705 to display information.
  • the input unit 708 can be used to receive input numbers, character information or user feature information (such as fingerprints), and generate keyboard, mouse, joystick, optical or trackball signal input related to user settings and function control.
  • the input unit 708 can include a fingerprint recognition module.
  • the audio circuit 708 can provide an audio interface between the user and the electronic device through a speaker and a microphone.
  • the audio circuit 708 includes a microphone.
  • the microphone is electrically connected to the processor 701.
  • the microphone is used to receive voice information input by the user.
  • the sensor 709 is used to collect external environment information.
  • the sensor 709 may include one or more sensors such as an environment brightness sensor, an acceleration sensor, and a gyroscope.
  • the power supply 710 is used to supply power to various components of the electronic device 700.
  • the power supply 710 may be logically connected to the processor 701 through a power management system, so that the power management system can manage charging, discharging, power consumption, and other functions.
  • the electronic device 700 may also include a camera, etc., which will not be described in detail here.
  • the embodiment of the present application provides a connection method that bypasses the CSIP protocol to connect to devices in the same coordination set.
  • this technical solution can add the BLE address field of another audio device through LE broadcast content or classic EIR packets, so that the electronic device can initiate an LE Audio connection to another audio device more quickly, thereby improving the speed of the first LE Audio connection between the entire wireless audio device (such as TWS headphones) and the electronic device (such as a mobile phone), thereby improving the user experience and enhancing product competitiveness.
  • the embodiment of the present application also provides a wireless audio device, which includes a first audio device and a second audio device.
  • the wireless audio device can be a Bluetooth headset, or other types of audio playback devices that support the Bluetooth protocol, such as a Bluetooth speaker.
  • the wireless audio device is a Bluetooth headset, and the Bluetooth headset includes a first headset and a second headset.
  • the wireless audio device includes a processor, a memory, and a wireless transceiver, and the memory stores a computer program, wherein the processor calls the computer program to enable the wireless audio device to execute:
  • the first audio device determines a second Bluetooth address of the second audio device
  • the first audio device sends a first broadcast signal, where the first broadcast signal carries the first Bluetooth address and the second Bluetooth address;
  • the first audio device Based on the first Bluetooth address, the first audio device establishes an LE Audio connection with the electronic device, and based on the second Bluetooth address, the second audio device establishes an LE Audio connection with the electronic device.
  • the embodiment of the present application also provides a wireless audio device, which can be a Bluetooth headset in a pair of Bluetooth headsets, or a side speaker in a Bluetooth speaker, etc.
  • the wireless audio device includes a processor, a memory, and a wireless transceiver, wherein the memory stores a computer program, wherein the processor calls the computer program to enable the wireless audio device to execute:
  • a first broadcast signal is sent, wherein the first broadcast signal carries the first Bluetooth address and the second Bluetooth address, so that the electronic device establishes an LE Audio connection with the first audio device based on the first Bluetooth address, and establishes an LE Audio connection with the second audio device based on the second Bluetooth address.
  • the second audio device in this solution can form a pair of wireless audio devices with the wireless audio device.
  • the present application also provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program.
  • the computer program runs on a computer, the computer executes the audio device connection method described in any one of the above embodiments.
  • connection method, device, storage medium and device of the audio device provided in the embodiment of the present application are introduced in detail above. Specific examples are used in this article to illustrate the principle and implementation method of the present application. The description of the above embodiments is only used to help understand the method and core idea of the present application; at the same time, for those skilled in the art, according to the idea of the present application, there will be changes in the specific implementation method and application scope. In summary, the content of this specification should not be understood as a limitation on the present application.

Abstract

一种音频设备的连接方法,其中,本申请实施例中,第一音频设备确定第二音频设备的第二蓝牙地址;第一音频设备发送第一广播信号,第一广播信号携带有第一蓝牙地址和第二蓝牙地址;基于第一蓝牙地址,第一音频设备与电子设备建立LE Audio连接,并且基于第二蓝牙地址,第二音频设备与电子设备建立LE Audio连接。

Description

音频设备的连接方法、装置、存储介质及设备
本申请要求于2022年09月28日提交专利局、申请号为202211193728.1、申请名称为“音频设备的连接方法、装置、存储介质及设备”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。
技术领域
本申请涉及无线设备技术领域,具体涉及一种音频设备的连接方法、装置、存储介质及设备。
背景技术
随着蓝牙(Bluetooth,BT)等短距离无线技术的发展,支持无线连接的无线设备种类也日益增多。例如,蓝牙音频设备中,除了传统的TWS(True Wireless Stereo,真无线立体声)音频设备外,支持LE Audio(Low Energy Audio,低功耗音频)协议的TWS音频设备也开始逐渐出现。
发明内容
本申请实施例提供一种音频设备的连接方法、装置、存储介质及设备。
第一方面,本申请实施例提供一种音频设备的连接方法,
应用于无线音频设备,所述无线音频设备包括第一音频设备和第二音频设备,所述第一音频设备具有第一蓝牙地址,所述第二音频设备具有第二蓝牙地址;所述方法包括:
所述第一音频设备确定所述第二音频设备的第二蓝牙地址;
所述第一音频设备发送第一广播信号,所述第一广播信号携带有所述第一蓝牙地址和所述第二蓝牙地址;
基于所述第一蓝牙地址,所述第一音频设备与电子设备建立LE Audio连接,并且基于所述第二蓝牙地址,所述第二音频设备与所述电子设备建立LE Audio连接。
第二方面,本申请实施例提供一种音频设备的连接方法,应用于电子设备,所述方法包括:
当扫描到第一音频设备发送的第一广播信号时,从所述第一广播信号获取所述第一音频设备的第一蓝牙地址,以及第二音频设备的第二蓝牙地址;
基于所述第一蓝牙地址与所述第一音频设备建立LE Audio连接,并且基于所述第二蓝牙地址与所述第二音频建立LE Audio连接。
第三方面,本申请实施例提供一种音频设备的连接方法应用于第一音频设备,所述第一音频设备具有第一蓝牙地址,所述方法包括:
确定所述第二音频设备的第二蓝牙地址;
发送第一广播信号,所述第一广播信号携带有所述第一蓝牙地址和所述第二蓝牙地址,使得电子设备基于所述第一蓝牙地址与所述第一音频设备建立LE Audio连接,并基于所述第二蓝牙地址与所述第二音频设备建立LE Audio连接。
第四方面,本申请实施例提供一种音频设备的连接装置,应用于无线音频设备,所述无线音频设备包括第一音频设备和第二音频设备,所述第一音频设备具有第一蓝牙地址,所述第二音频设备具有第二蓝牙地址;所述装置包括位于所述第一音频设备的第一获取模块、第一发送模块和第一连接模块,以及位于所述第二音频设备的第二连接模块;
所述第一获取模块,用于确定所述第二音频设备的第二蓝牙地址;
所述第一发送模块,用于发送第一广播信号,所述第一广播信号携带有所述第一蓝牙地址和所述第二蓝牙地址;
所述第一连接模块,用于基于所述第一蓝牙地址,所述第一音频设备与电子设备建立LE Audio连接;
所述第二连接模块,用于基于所述第二蓝牙地址,所述第二音频设备与所述电子设备建立LE Audio连接。
第五方面,本申请实施例提供一种音频设备的连接装置,应用于电子设备,所述装置包括:
第二获取模块,用于当扫描到第一音频设备发送的第一广播信号时,从所述第一广播信号获取所述第一音频设备的第一蓝牙地址,以及第二音频设备的第二蓝牙地址;
第三连接模块,用于基于所述第一蓝牙地址与所述第一音频设备建立LE Audio连接,并且基于所述第二蓝牙地址与所述第二音频建立LE Audio连接。
第六方面,本申请实施例还提供一种音频设备的连接装置,应用于第一音频设备,所述第一音频设备具有第一蓝牙地址,所述装置包括:
第三获取模块,用于确定所述第二音频设备的第二蓝牙地址;
第二发送模块,用于发送第一广播信号,所述第一广播信号携带有所述第一蓝牙地址和所述第二蓝牙地址,使得电子设备基于所述第一蓝牙地址与所述第一音频设备建立LE Audio连接,并基于所述第二蓝牙地址与所述第二音频设备建立LE Audio连接。
第七方面,本申请实施例还提供一种计算机可读存储介质,其上存储有计算机程序,当所述计算机程序在计算机上运行时,使得所述计算机执行如本申请任一实施例提供的音频设备的连接方法。
第八方面,本申请实施例还提供一种电子设备,包括处理器、存储器以及无线收发器,所述存储器存储有计算机程序,所述处理器通过调用所述计算机程序,用于执行如本申请任一实施例提供的应用于电子设备的音频设备的连接方法。
第九方面,本申请实施例还提供一种无线音频设备,包括处理器、存储器以及无线收发器,所述存储器存储有计算机程序,所述处理器通过调用所述计算机程序,用于执行如本申请任一实施例提供的应用于无线音频设备的频设备的连接方法,或者执行如本申请任一实施例提供的应用于第一音频设备的频设备的连接方法。
附图说明
为了更清楚地说明本申请实施例中的技术方案,下面将对实施例描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本申请的一些实施例,对于本领域技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。
图1为相关技术中TWS蓝牙耳机与手机之间首次连接时的连接流程。
图2为相关技术中LE Audio广播中可解析专用地址的结构信息。
图3为本申请实施例提供的音频设备的连接方法的一种流程示意图。
图4为本申请实施例提供的音频设备的连接方法的一种场景示意图。
图5为本申请实施例提供的音频设备的连接方法的另一种场景示意图。
图6为本申请实施例提供的音频设备的连接方法的另一种流程示意图。
图7为本申请实施例提供的音频设备的连接方法的又一种流程示意图。
图8为本申请实施例提供的音频设备的连接装置的一种结构示意图。
图9为本申请实施例提供的音频设备的连接装置的另一种结构示意图。
图10为本申请实施例提供的音频设备的连接装置的又一种结构示意图。
图11为本申请实施例提供的电子设备的一种结构示意图。
图12为本申请实施例提供的电子设备的另一种结构示意图。
具体实施方式
下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行清楚、完整地描述。显然,所描述的实施例仅仅是本申请一部分实施例,而不是全部的实施例。基于本申请中的实施例,本领域技术人员在没有付出创造性劳动前提下所获得的所有其他实施例,都属于本申请的保护范围。
在本文中提及“实施例”意味着,结合实施例描述的特定特征、结构或特性可以包含在本申请的至少一个实施例中。在说明书中的各个位置出现该短语并不一定均是指相同的实施例,也不是与其它实施例互斥的独立的或备选的实施例。本领域技术人员显式地和隐式地理解的是,本文所描述的实施例可以与其它实施例相结合。
在相关技术中,蓝牙低功耗音频BLE Audio技术提供了CSIP(Coordinated Set Identification Profile,协调集识别配置文件)协议,可以让属于同一个组合中的设备在与外部设备交互时,达成协调同步的目的。该协议主要说明了外部设备如何将一个组合中的多个独立的设备识别为同一个组合。例如,一幅蓝牙耳机中包含两只耳机,一组蓝牙音箱中有三个音箱等,则可以将一组蓝牙设备理解为一个协调集,同一协调集内的音频设备具有同样的协调集身份解析密钥(Set Identity Resolving Key,SIRK)。
支持低功耗音频传输的蓝牙耳机在使用时,其左右两个耳机分别与电子设备建立低功耗音频LE
Audio连接。如图1所示,图1为相关技术中蓝牙耳机与手机之间首次连接时的连接流程,在耳机1和耳机2完成配对后,两个耳机均打开BLE广播,手机也会打开蓝牙,对广播信号进行扫描,并可基于用户操作触发与耳机1建立LE Audio连接,之后,再对另一个耳机的广播进行解析,以判断该耳机与当前已经连接的耳机是否属于相同协调集,若属于相同协调集,则与耳机2建立LE Audio连接。具体地,手机与耳机1建立LE Audio连接后,根据耳机1的SIRK(Set Identity Resolving Key,组合标识解析值)与另一个耳机的广播信息里的特定字段(RSI值的hash字段)计算出一个哈希值,并判断计算出的哈希值是否与广播里的哈希值一致,如图2所示,图2为相关技术中BLE广播中可解析专用地址的结构信息,该地址中的高位24bits是随机数部分(prand),其中最高两个bits为“10”,低位24bits是广播里的hash值。
如果计算出的哈希值与广播里的哈希值一致,则手机与耳机2建立LE Audio连接。这种连接方案中,电子设备需要等到与同一协调集中的第一音频设备建立LE Audio连接后,根据第二音频设备的广播与第一音频设备的SIRK进行哈希值的校验后,才与第二音频设备建立LE Audio连接,导致整个无线音频设备(例如TWS耳机)与电子设备(例如手机)之间进行首次LE Audio连接时的连接速度慢。
为了解决这一技术问题,本申请实施例提供一种音频设备的连接方法,本申请实施例提供一种音频 设备的连接方法,该音频设备的连接方法应用于无线音频设备。该无线音频设备可以是蓝牙耳机,或者支持蓝牙协议的其他类型的音频播放设备,例如蓝牙音箱等。该无线音频设备包括第一音频设备和第二音频设备,第一音频设备具有第一蓝牙地址,第二音频设备具有第二蓝牙地址。
本申请实施例提供一种音频设备的连接方法,应用于无线音频设备,所述无线音频设备包括第一音频设备和第二音频设备,所述第一音频设备具有第一蓝牙地址,所述第二音频设备具有第二蓝牙地址;所述方法包括:
所述第一音频设备确定所述第二音频设备的第二蓝牙地址;
所述第一音频设备发送第一广播信号,所述第一广播信号携带有所述第一蓝牙地址和所述第二蓝牙地址;
基于所述第一蓝牙地址,所述第一音频设备与电子设备建立低功耗音频LE Audio连接,并且基于所述第二蓝牙地址,所述第二音频设备与所述电子设备建立LE Audio连接。
在一些实施例中,所述第一音频设备确定所述第二音频设备的第二蓝牙地址之前,包括:
所述第一音频设备检测历史连接记录是否为空;
当所述历史连接记录为空时,执行所述第一音频设备确定所述第二音频设备的第二蓝牙地址的步骤。
在一些实施例中,所述第一音频设备发送第一广播信号,所述第一广播信号携带有所述第一蓝牙地址和所述第二蓝牙地址,包括:
所述第一音频设备将所述第一蓝牙地址写入所述第一广播信号的第一预设字段,将所述第二蓝牙地址写入所述第一广播信号的第二预设字段,以生成所述第一广播信号,并发送所述第一广播信号。
在一些实施例中,所述第一广播信号为低功耗蓝牙广播信号;所述基于所述第一蓝牙地址,所述第一音频设备与电子设备建立LE Audio连接,并且基于所述第二蓝牙地址,所述第二音频设备与所述电子设备建立LE Audio连接,包括:
响应于电子设备基于所述第一蓝牙地址发送的第一连接请求,所述第一音频设备与所述电子设备建立LE Audio连接;
所述第二音频设备发送第二广播信号,所述第二广播信号为携带有所述第二蓝牙地址的低功耗蓝牙广播信号,所述第二广播信号用于使得所述电子设备基于所述第二蓝牙地址向所述第二音频设备发起第二连接请求;
所述第二音频设备响应于所述第二连接请求与所述电子设备建立LE Audio连接。
在一些实施例中,所述第二广播信号还携带有所述第一蓝牙地址。
在一些实施例中,所述第一广播信号为扩展查询响应EIR包;所述基于所述第一蓝牙地址,所述第一音频设备与电子设备建立LE Audio连接,并且基于所述第二蓝牙地址,所述第二音频设备与所述电子设备建立LE Audio连接,包括:
响应于电子设备基于所述第一蓝牙地址发送的第三连接请求,所述第一音频设备与所述电子设备建立经典蓝牙连接;
所述第一音频设备发送低功耗蓝牙广播信号,并向所述第二音频设备发送提醒消息,所述第二音频设备响应于所述提醒消息发送低功耗蓝牙广播信号;
所述第一音频设备响应于所述电子设备基于所述第一蓝牙地址发送的第四连接请求,与所述电子设 备建立LE Audio连接,并且所述第二音频设备响应于所述电子设备基于所述第二蓝牙地址发送的第五连接请求,与所述电子设备建立LE Audio连接。
本申请实施例提供一种音频设备的连接方法,应用于电子设备,所述方法包括:
当扫描到第一音频设备发送的第一广播信号时,从所述第一广播信号获取所述第一音频设备的第一蓝牙地址,以及第二音频设备的第二蓝牙地址;
基于所述第一蓝牙地址与所述第一音频设备建立LE Audio连接,并且基于所述第二蓝牙地址与所述第二音频建立LE Audio连接。
在一些实施例中,所述当扫描到第一音频设备发送的第一广播信号时,从所述第一广播信号获取所述第一音频设备的第一蓝牙地址,以及第二音频设备的第二蓝牙地址,包括:
当扫描到第一音频设备发送的第一广播信号时,从所述第一广播信号的第一预设字段获取所述第一音频设备的第一蓝牙地址,并从所述第一广播信号的第二预设字段确定所述第二音频设备的第二蓝牙地址。
在一些实施例中,所述第一广播信号为低功耗蓝牙广播信号;所述从所述第一广播信号获取所述第一音频设备的第一蓝牙地址,以及第二音频设备的第二蓝牙地址之后,所述方法还包括:
基于所述第一广播信号输出所述第一音频设备对应的设备提示信息;
所述基于所述第一蓝牙地址与所述第一音频设备建立LE Audio连接,并且基于所述第二蓝牙地址与所述第二音频建立LE Audio连接,包括:
当接收到基于所述设备提示信息触发的连接指令时,基于所述第一蓝牙地址与所述第一音频设备建立LE Audio连接;
当扫描到携带有所述第二蓝牙地址的第二广播信号时,与发送所述第二广播信号的所述第二音频设备建立LE Audio连接,所述第二广播信号为低功耗蓝牙广播信号。
在一些实施例中,所述第一广播信号为扩展查询响应EIR包;所述从所述第一广播信号获取所述第一音频设备的第一蓝牙地址,以及第二音频设备的第二蓝牙地址之后,所述方法还包括:
基于所述第一广播信号输出所述第一音频设备对应的设备提示信息;
所述基于所述第一蓝牙地址与所述第一音频设备建立LE Audio连接,并且基于所述第二蓝牙地址与所述第二音频建立LE Audio连接,包括:
当接收到基于所述设备提示信息触发的连接指令时,基于所述第一蓝牙地址与所述第一音频设备建立经典蓝牙连接;
当扫描到携带有所述第一蓝牙地址的第三广播信号时,与发送所述第三广播信号的所述第一音频设备建立LE Audio连接,其中,所述第三广播信号为低功耗蓝牙广播信号;
当扫描到携带有所述第二蓝牙地址的第四广播信号时,与发送所述第四广播信号的所述第二音频设备建立LE Audio连接,所述第四广播信号为低功耗蓝牙广播信号。
在一些实施例中,所述从所述第一广播信号获取所述第一音频设备的第一蓝牙地址,以及第二音频设备的第二蓝牙地址之后,所述方法还包括:
将所述第一蓝牙地址和所述第二蓝牙地址添加至白名单;
所述与发送所述第三广播信号的所述第一音频设备建立LE Audio连接之前,所述方法还包括:
当扫描到携带有所述第一蓝牙地址的第三广播信号时,检测所述第一蓝牙地址是否在所述白名单;
当所述第一蓝牙地址在所述白名单时,与发送所述第三广播信号的所述第一音频设备建立LE Audio连接。
本申请实施例提供一种音频设备的连接方法,应用于第一音频设备,所述第一音频设备具有第一蓝牙地址,所述方法包括:
确定所述第二音频设备的第二蓝牙地址;
发送第一广播信号,所述第一广播信号携带有所述第一蓝牙地址和所述第二蓝牙地址,使得电子设备基于所述第一蓝牙地址与所述第一音频设备建立LE Audio连接,并基于所述第二蓝牙地址与所述第二音频设备建立LE Audio连接。
在一些实施例中,所述第一广播信号为低功耗蓝牙广播信号;所述第一音频设备发送第一广播信号之后,所述方法还包括:
响应于电子设备基于所述第一蓝牙地址发送的第六连接请求,所述第一音频设备与所述电子设备建立LE Audio连接。
在一些实施例中,所述第一广播信号为扩展查询响应EIR包;所述第一音频设备发送第一广播信号之后,所述方法还包括:
发送低功耗蓝牙广播信号,响应于所述电子设备基于所述第一蓝牙地址发送的第七连接请求,与所述电子设备建立LE Audio连接。
请参阅图3,图3为本申请实施例提供的音频设备的连接方法的一种流程示意图。本申请实施例提供的音频设备的连接方法的具体流程可以如下:
101、第一音频设备确定第二音频设备的第二蓝牙地址。
下文中以无线音频设备为蓝牙耳机为例对本申请实施例的方案进行说明,该蓝牙耳机包括第一耳机和第二耳机,第一音频设备为第一耳机,第二音频设备为第二耳机,第一耳机具有第一蓝牙地址,第二耳机具有第二蓝牙地址。
其中,第一耳机中设置有第一无线连接模块,第二耳机中设置有第二无线连接模块。
例如,在一实施例中,第一无线连接模块和第二连接模块均是低功耗蓝牙模块,即该耳机为单模蓝牙设备,第一耳机和第二耳机可以与电子设备之间建立LE Audio连接。
在一些实施例中,LE Audio连接可以理解为基于LE Audio蓝牙协议建立的通信连接。
在一些实施例中,LE Audio连接也可以理解为包括基于LE Audio蓝牙协议进行通信的链路。
在一些实施例中,LE Audio连接可以不包括建立CIS(Connected Isochronous Streams,可连接的同步传输,具体定义可以参考相关蓝牙标准的规定),而是有相关业务传输需求时才建立CIS,例如在建立了LE Audio连接后有业务(例如通话或音乐)传输需求时,再触发建立CIS。
在一些实施例中,LE Audio连接也可以包括建立CIS。
需要说明的是,在一些实施例中,LE Audio连接的建立方式等可以参考相关蓝牙标准的规定,相关内容也可能随蓝牙标准的改变而调整。
又例如,在另一实施例中,第一无线连接模块和第二无线连接模块均包括低功耗蓝牙子模块和经典蓝牙子模块,即该耳机为双模蓝牙设备,其中,由于低功耗蓝牙子模块和经典蓝牙子模块属于同一台设 备,这两个子模块共用一个蓝牙地址,例如,第一耳机的低功耗蓝牙子模块和经典蓝牙子模块的蓝牙地址都是第一蓝牙地址。该耳机可以通过低功耗蓝牙模块和经典蓝牙模块与电子设备同时建立LE Audio连接和经典蓝牙连接,电子设备可以根据数据传输需求选择其中的一种连接进行数据的传输。
其中,第一耳机和第二耳机启动之后,可以进行两个耳机之间的相互配对连接,也可以不进行两个耳机之间的相互配对连接。
例如,在一实施例中,两个耳机之间不进行相互配对连接,在两个耳机启动之后,两个耳机分别与耳机盒建立连接(可以是有线连接,例如触点连接;也可以是无线连接,例如蓝牙连接),并通过该耳机盒将各自的蓝牙地址发送给对方;或者,在两个耳机第一次与耳机盒建立连接后,各自将蓝牙地址发送至耳机盒,用户在启动耳机后,耳机盒可以自动地或者响应于用户的控制操作将一耳机的蓝牙地址发送给另一耳机,使得两个耳机中的每一耳机都获取到另一耳机的蓝牙地址;或者,在耳机出厂之前,设置将一对耳机中的一个耳机的地址存储在另一个耳机中,例如,通过设置两个耳机的蓝牙协议,在一对耳机中的一个耳机的地址写入到另一个耳机的广播信号的特定字段中。
又例如,在一实施例中,两个耳机启动后,进行两个耳机之间的相互配对连接。在完成相互之间的配对连接后,两个耳机各自将本机的蓝牙地址发送至另一耳机。
又例如,在一实施例中,在两个耳机启动之后,进行两个耳机之间的相互配对连接。在完成相互之间的配对连接后,两个耳机之间通过广播信号确定出一个耳机作为主耳机,另一个耳机作为从耳机,主耳机获取从耳机的蓝牙地址,并且主耳机在发送的第一广播信号中同时携带主耳机的蓝牙地址和从耳机的蓝牙地址。
其中,需要说明的是,本申请实施例中的“第一音频设备”和“第二音频设备”,以及“第一耳机”、“第二耳机”中的“第一”和“第二”仅用于区分两个耳机,并不意味着第一耳机一定为主耳机。例如,在先与电子设备建立连接的无线音频设备为第一音频设备,在后与电子设备建立连接的无线音频设备为第二音频设备。
102、第一音频设备发送第一广播信号,第一广播信号携带有第一蓝牙地址和第二蓝牙地址。
第一耳机可以按照上述方式中的任意一种方式获取到第二耳机的蓝牙地址。第一耳机在启动后,基于第一蓝牙地址和第二蓝牙地址生成第一广播信号。即,第一耳机在发送的第一广播信号中携带第一蓝牙地址和第二蓝牙地址。对于能够扫描到该第一广播信号的设备来说,可以从一个广播信号中获取到两个蓝牙地址。
例如,在一实施例中,第一音频设备发送第一广播信号,第一广播信号携带有第一蓝牙地址和第二蓝牙地址的步骤包括:第一音频设备将第一蓝牙地址写入第一广播信号的第一预设字段,将第二蓝牙地址写入第一广播信号的第二预设字段,以生成第一广播信号,并发送第一广播信号。其中第二字段可以是供自定义的拓展字段。
该实施例中,对于一个耳机来说,除了在蓝牙协议规定的第一预设字段中存储本机的蓝牙地址之外,还可以在该耳机的第一广播信号中增加一个第二预设字段,该第二预设字段用于存储另一耳机的蓝牙地址。
103、基于第一蓝牙地址,第一音频设备与电子设备建立LE Audio连接,并且基于第二蓝牙地址,第二音频设备与电子设备建立LE Audio连接。
对于扫描到第一广播信号的电子设备来说,可以从第一广播信号中获取到第一蓝牙地址和第二蓝牙地址。例如,当电子设备扫描到第一音频设备发送的第一广播信号时,从第一广播信号的第一预设字段获取第一音频设备的第一蓝牙地址,并从第一广播信号的第二预设字段获取第二音频设备的第二蓝牙地址。电子设备可以基于第一蓝牙地址与第一音频设备建立LE Audio连接,并且基于第二蓝牙地址与第二音频设备建立连接。
例如,在一实施例中,基于第一蓝牙地址,第一音频设备与电子设备建立LE Audio连接,并且基于第二蓝牙地址,第二音频设备与电子设备建立LE Audio连接的步骤包括:响应于电子设备基于第一蓝牙地址发送的第一连接请求,第一音频设备与电子设备建立LE Audio连接;第二音频设备发送第二广播信号,第二广播信号为携带有第二蓝牙地址的低功耗蓝牙广播信号,第二广播信号用于使得电子设备基于第二蓝牙地址向第二音频设备发起第二连接请求;第二音频设备响应于第二连接请求与电子设备建立LE Audio连接。第二广播信号中可以携带第一蓝牙地址,也可以不携带第一蓝牙地址,在一些实施例中,第二广播信号携带第一蓝牙地址和第二蓝牙地址可以更快的建立蓝牙LE Audio连接。
在一些实施例中,无线音频设备为单模蓝牙设备,第一广播信号为低功耗蓝牙广播信号。如图4,图4为本申请实施例提供的音频设备的连接方法的一种场景示意图。电子设备在扫描到该低功耗蓝牙广播信号时,从该低功耗蓝牙广播信号中获取第一蓝牙地址和第一蓝牙地址。并且,电子设备还可以基于第一广播信号输出第一音频设备对应的设备提示信息,用户可以基于该设备提示信息触发连接指令,当电子设备接收到基于该设备提示信息触发的连接指令时,可以发起对第一音频设备和第二音频设备的LE Audio连接,其中,由于该第一广播信号是第一音频设备发送的,电子设备可以直接基于第一蓝牙地址向第一音频设备发送第一连接请求,第一音频设备响应于该第一连接请求,与电子设备建立LE Audio连接。而第二音频设备也在按照一定的频率发送低功耗蓝牙广播信号,该第二广播信号中携带有第二蓝牙地址。当电子设备已获取到第二蓝牙地址,当扫描到携带有该第二蓝牙地址的低功耗蓝牙广播信号时,基于第二蓝牙地址向第二音频设备发起第二连接请求,第二音频设备相应于该第二连接请求与电子设备建立LE Audio连接。
相对于相关技术中的方案,该实施例在电子设备首次与耳机连接时,无需等到电子设备与一个耳机建立LE Audio连接之后才发起与另一个耳机的LE Audio连接,而是通过一个耳机的广播信号获取到两个耳机的蓝牙地址,从而快速的向两个耳机发起LE Audio连接,提高了电子设备与无线音频设备首次连接时的连接速度。
又例如,在另一实施例中,基于第一蓝牙地址,第一音频设备与电子设备建立LE Audio连接,并且基于第二蓝牙地址,第二音频设备与电子设备建立LE Audio连接的步骤包括:响应于电子设备基于第一蓝牙地址发送的第三连接请求,第一音频设备与电子设备建立经典蓝牙连接;第一音频设备发送低功耗蓝牙广播信号,并向第二音频设备发送提醒消息,第二音频设备响应于提醒消息发送低功耗蓝牙广播信号;第一音频设备响应于电子设备基于第一蓝牙地址发送的第四连接请求,与电子设备建立LE
Audio连接,并且第二音频设备响应于电子设备基于第二蓝牙地址发送的第五连接请求,与电子设备建立LE Audio连接。
在一些实施例中,第一广播信号为扩展查询响应包。该蓝牙耳机为双模蓝牙设备,该蓝牙耳机支持与电子设备之间建立双通道蓝牙连接,包括经典蓝牙连接和LE Audio连接,并且电子设备也是双模蓝 牙设备。耳机通过低功耗蓝牙模块和经典蓝牙模块与电子设备同时保持LE Audio连接和经典蓝牙连接,电子设备根据数据传输需求选择其中的一种连接进行数据的传输。如图5所示,图5为本申请实施例提供的音频设备的连接方法的另一种场景示意图。该蓝牙耳机在启动之后,第一耳机先以广播的形式发送扩展查询响应包,并且在该扩展查询响应包中携带有第一耳机的第一蓝牙地址和第二耳机的第二蓝牙地址。电子设备在接收到该扩展查询响应包时,可以获取到第一蓝牙地址和第二蓝牙地址,并且基于该扩展查询响应包输出第一音频设备对应的设备提示信息,用户可以基于该设备提示信息触发连接指令,当电子设备接收到基于该设备提示信息触发的连接指令时,可以发起对第一音频设备的连接请求以与第一音频设备建立经典蓝牙连接。第一音频设备在完成与电子设备建立经典蓝牙连接后或在建立经典蓝牙连接的过程中,开始发送低功耗蓝牙广播信号,以触发双模通道中另一种连接的建立,示例的,第一音频设备向第二音频设备发送一个提醒消息,第二音频响应于该提醒消息开始发送低功耗蓝牙广播信号。电子设备扫描到携带有第一蓝牙地址的低功耗蓝牙广播信号时,基于第一蓝牙地址发送的第四连接请求,以与发送该低功耗蓝牙广播信号的第一音频设备建立LE Audio连接,并在扫描到携带有第二蓝牙地址的低功耗蓝牙广播信号时,基于第二蓝牙地址发送的第五连接请求,以与发送该低功耗蓝牙广播信号的第二音频设备建立LE Audio连接。
相对于相关技术中的方案,该实施例的方案,电子设备和耳机均为双模蓝牙设备,在建立两种通道的蓝牙连接时,在一个耳机的扩展查询响应包中携带两个耳机的蓝牙地址,使得电子设备获取到两个耳机的蓝牙地址,从而快速的向两个耳机发起LE Audio连接,提高了电子设备与无线音频设备首次连接时的连接速度。
其中,在一实施例中,在第一音频设备确定第二音频设备的第二蓝牙地址的步骤之前,该方法还包括:第一音频设备检测历史连接记录是否为空;当历史连接记录为空时,第一音频设备确定第二音频设备的第二蓝牙地址。
可以理解的是,对于第一耳机如果与电子设备之间成功地建立了蓝牙连接,会将该电子设备的蓝牙地址存储在历史连接记录中,方便下次回连同一电子设备。基于该原理,第一耳机在启动后,先获取第一耳机的历史连接记录,如果历史连接记录为空,则可以判定本次连接为首次连接或者连接记录被清除,则获取第二耳机的蓝牙地址。反之,如果历史连接记录不为空,可以判定本次连接不是首次连接,而是回连,则只需进行蓝牙广播信号的发送接,电子设备的历史连接记录中有该耳机连接记录的情况下,在扫描到该蓝牙广播信号后,可以直接与耳机进行回连。示例的,在首次开盖启用耳机或者耳机恢复出厂设置如擦除了相关连接记录的情况下,可以应用本申请的一些实施例。
具体实施时,本申请不受所描述的各个步骤的执行顺序的限制,在不产生冲突的情况下,某些步骤还可以采用其它顺序进行或者同时进行。此外,在不冲突的情况下,本申请中的实施例、实施方式及相关技术特征可以相互组合。
由上可知,本申请实施例提供了一种绕过CSIP协议去连接同一协调集中的设备的连接方法。例如,相较于相关技术中根据CSIP协议需要等到电子设备与第一音频设备建立LE Audio连接之后并获取到SIRK值后才有方式判断是否发起对另一个音频设备的LE Audio连接的方法,此技术方案可以分别通过LE广播内容或经典EIR包的方式,添加另一个音频设备的BLE地址字段,使得电子设备能更快地发起对另一个音频设备的LE Audio连接,进而提升整个无线音频设备(例如TWS耳机)与电子设备(例如 手机)的首次进行LE Audio连接的速度,从而改善用户的体验,提升产品竞争力。
本申请实施例还提供一种应用于电子设备的音频设备的连接方法。请参阅图6,图6为本申请实施例提供的音频设备的连接方法的另一种流程示意图。该方法包括:
201、当扫描到第一音频设备发送的第一广播信号时,从第一广播信号获取第一音频设备的第一蓝牙地址,以及第二音频设备的第二蓝牙地址。
202、基于第一蓝牙地址与第一音频设备建立LE Audio连接,并且基于第二蓝牙地址与第二音频建立LE Audio连接。
本申请实施例以耳机对端的电子设备为执行主体,来进行电子设备与耳机之间的蓝牙连接的建立,各步骤的实现过程请参见上述实施例,在此不再赘述。
其中,该实施例应用于电子设备,各步骤的具体实施方式请参见上文实施例,在此不再赘述。
在一些实施例中,当扫描到第一音频设备发送的第一广播信号时,从第一广播信号获取第一音频设备的第一蓝牙地址,以及第二音频设备的第二蓝牙地址的步骤包括:当扫描到第一音频设备发送的第一广播信号时,从第一广播信号的第一预设字段获取第一音频设备的第一蓝牙地址,并从第一广播信号的第二预设字段获取第二音频设备的第二蓝牙地址。
在一些实施例中,第一广播信号为低功耗蓝牙广播信号。从第一广播信号获取第一音频设备的第一蓝牙地址,以及第二音频设备的第二蓝牙地址之后,基于第一广播信号输出第一音频设备对应的设备提示信息;当接收到基于设备提示信息触发的连接指令时,基于第一蓝牙地址与第一音频设备建立LE
Audio连接;当扫描到携带有第二蓝牙地址的第二广播信号时,与发送第二广播信号的第二音频设备建立LE Audio连接,第二广播信号为低功耗蓝牙广播信号。
在一些实施例中,第一广播信号为扩展查询响应包。从第一广播信号获取第一音频设备的第一蓝牙地址,以及第二音频设备的第二蓝牙地址之后,基于第一广播信号输出第一音频设备对应的设备提示信息。当接收到基于设备提示信息触发的连接指令时,基于第一蓝牙地址与第一音频设备建立经典蓝牙连接;当扫描到携带有第一蓝牙地址的第三广播信号时,与发送第三广播信号的第一音频设备建立LE
Audio连接,其中,第三广播信号为低功耗蓝牙广播信号;当扫描到携带有第二蓝牙地址的第四广播信号时,与发送第四广播信号的第二音频设备建立LE Audio连接,第四广播信号为低功耗蓝牙广播信号。
在一些实施例中,从第一广播信号获取第一音频设备的第一蓝牙地址,以及第二音频设备的第二蓝牙地址之后,该方法还包括:将第一蓝牙地址和第二蓝牙地址添加至白名单;与发送第三广播信号的第一音频设备建立LE Audio连接之前,方法还包括:当扫描到携带有第一蓝牙地址的第三广播信号时,检测第一蓝牙地址是否在白名单;当第一蓝牙地址在白名单时,与发送第三广播信号的第一音频设备建立LE Audio连接。
该实施例中,电子设备设置有蓝牙连接白名单机制。电子设备在从扩展查询响应包中获取到第一蓝牙地址和第二蓝牙地址后,将第一蓝牙地址和第二蓝牙地址添加到白名单中。后续电子设备在扫描到携带有第一蓝牙地址或者第二蓝牙地址的低功耗蓝牙广播信号之后,可以直接与对应的设备建立连接。
由上可知,本发明实施例了一种绕过CSIP协议去连接同一协调集中的设备的连接方法,可以分别通过LE广播内容或经典EIR包的方式,添加另一个音频设备的BLE地址字段,使得电子设备能更快地发起对另一个音频设备的LE Audio连接,进而提升整个无线音频设备(例如TWS耳机)与电子设备(例 如手机)的首次进行LE Audio连接的速度,从而改善用户的体验,提升产品竞争力。
本申请实施例还提供一种音频设备的连接方法,请参阅图7,图7为本申请实施例提供的音频设备的连接方法的又一种流程示意图。该方法应用于第一音频设备,第一音频设备具有第一蓝牙地址,该方法包括:
301,确定第二音频设备的第二蓝牙地址;
302,发送第一广播信号,第一广播信号携带有第一蓝牙地址和第二蓝牙地址,使得电子设备基于第一蓝牙地址与第一音频设备建立LE Audio连接,并基于第二蓝牙地址与第二音频设备建立LE Audio连接。
在一些实施例中,第一广播信号为低功耗蓝牙广播信号;第一音频设备发送第一广播信号之后,方法还包括:响应于电子设备基于第一蓝牙地址发送的第六连接请求,第一音频设备与电子设备建立LE Audio连接。
在一些实施例中,第一广播信号为扩展查询响应EIR包;第一音频设备发送第一广播信号之后,方法还包括:发送低功耗蓝牙广播信号,响应于电子设备基于第一蓝牙地址发送的第七连接请求,与电子设备建立LE Audio连接。
由上可知,本发明实施例了一种绕过CSIP协议去连接同一协调集中的设备的连接方法,可以分别通过LE广播内容或经典EIR包的方式,添加另一个音频设备的BLE地址字段,使得电子设备能更快地发起对另一个音频设备的LE Audio连接,进而提升整个无线音频设备(例如TWS耳机)与电子设备(例如手机)的首次进行LE Audio连接的速度,从而改善用户的体验,提升产品竞争力。
在一实施例中还提供一种音频设备的连接装置。请参阅图8,图8为本申请实施例提供的音频设备的连接装置的结构示意图。其中该音频设备的连接装置400应用于无线音频设备,所述无线音频设备包括第一音频设备和第二音频设备,所述第一音频设备具有第一蓝牙地址,所述第二音频设备具有第二蓝牙地址;所述装置包括位于所述第一音频设备的第一获取模块401、发送模块402和第一连接模块403,以及位于所述第二音频设备的第二连接模块404:
第一获取模块401,用于确定所述第二音频设备的第二蓝牙地址;
发送模块402,用于发送第一广播信号,所述第一广播信号携带有所述第一蓝牙地址和所述第二蓝牙地址;
第一连接模块403,用于基于所述第一蓝牙地址,所述第一音频设备与电子设备建立LE Audio连接;
第二连接模块404,用于基于所述第二蓝牙地址,所述第二音频设备与所述电子设备建立LE Audio连接。
在一些实施例中,第一获取模块401,用于检测历史连接记录是否为空;当所述历史连接记录为空时,所述第一音频设备确定所述第二音频设备的第二蓝牙地址。
在一些实施例中,发送模块402,用于将所述第一蓝牙地址写入所述第一广播信号的第一预设字段,将所述第二蓝牙地址写入所述第一广播信号的第二预设字段,以生成所述第一广播信号,并发送所述第一广播信号
在一些实施例中,所述第一广播信号为低功耗蓝牙广播信号;第一连接模块403,用于响应于电子设备基于所述第一蓝牙地址发送的第一连接请求,所述第一音频设备与所述电子设备建立LE Audio连 接;
第二连接模块404,用于发送第二广播信号,所述第二广播信号为携带有所述第二蓝牙地址的低功耗蓝牙广播信号,所述第二广播信号用于使得所述电子设备基于所述第二蓝牙地址向所述第二音频设备发起第二连接请求;以及,响应于所述第二连接请求与所述电子设备建立LE Audio连接。
在一些实施例中,所述第二广播信号还携带有所述第一蓝牙地址。
在一些实施例中,所述第一广播信号为扩展查询响应包;第一连接模块403,用于发送低功耗蓝牙广播信号,并向所述第二音频设备发送提醒消息;第二连接模块404,用于响应于所述提醒消息发送低功耗蓝牙广播信号;
第一连接模块403,还用于响应于所述电子设备基于所述第一蓝牙地址发送的第四连接请求,与所述电子设备建立LE Audio连接;
第二连接模块404,还用于响应于所述电子设备基于所述第二蓝牙地址发送的第五连接请求,与所述电子设备建立LE Audio连接。
应当说明的是,本申请实施例提供的音频设备的连接装置与上文实施例中的音频设备的连接方法属于同一构思,通过该音频设备的连接装置可以实现音频设备的连接方法实施例中提供的任一方法,其具体实现过程详见音频设备的连接方法实施例,此处不再赘述。
由上可知,本申请实施例提供了一种绕过CSIP协议去连接同一协调集中的设备的连接装置。例如,相较于相关技术中根据CSIP协议需要等到电子设备与第一音频设备建立LE Audio连接之后并获取到SIRK值后才有方式判断是否发起对另一个音频设备的LE Audio连接的方法,此技术方案可以分别通过LE广播内容或经典EIR包的方式,添加另一个音频设备的BLE地址字段,使得电子设备能更快地发起对另一个音频设备的LE Audio连接,进而提升整个无线音频设备(例如TWS耳机)与电子设备(例如手机)的首次进行LE Audio连接的速度,从而改善用户的体验,提升产品竞争力。
本申请实施例还提供一种音频设备的连接装置,应用于电子设备。请参阅图9,图9为本申请实施例提供的音频设备的连接装置的另一种结构示意图。该装置500包括:
第二获取模块501,用于当扫描到第一音频设备发送的第一广播信号时,从所述第一广播信号获取所述第一音频设备的第一蓝牙地址,以及第二音频设备的第二蓝牙地址;
第三连接模块502,用于基于所述第一蓝牙地址与所述第一音频设备建立LE Audio连接,并且基于所述第二蓝牙地址与所述第二音频建立LE Audio连接。
在一些实施例中,第二获取模块501,用于当扫描到第一音频设备发送的第一广播信号时,从所述第一广播信号的第一预设字段获取所述第一音频设备的第一蓝牙地址,并从所述第一广播信号的第二预设字段确定所述第二音频设备的第二蓝牙地址。
在一些实施例中,所述第一广播信号为低功耗蓝牙广播信号;第三连接模块502,用于基于所述第一广播信号输出所述第一音频设备对应的设备提示信息;当接收到基于所述设备提示信息触发的连接指令时,基于所述第一蓝牙地址与所述第一音频设备建立LE Audio连接;以及,当扫描到携带有所述第二蓝牙地址的第二广播信号时,与发送所述第二广播信号的所述第二音频设备建立LE Audio连接,所述第二广播信号为低功耗蓝牙广播信号。
在一些实施例中,所述第一广播信号为扩展查询响应包;第三连接模块502,用于基于所述第一广 播信号输出所述第一音频设备对应的设备提示信息;当接收到基于所述设备提示信息触发的连接指令时,基于所述第一蓝牙地址与所述第一音频设备建立经典蓝牙连接;当扫描到携带有所述第一蓝牙地址的第三广播信号时,与发送所述第三广播信号的所述第一音频设备建立LE Audio连接,其中,所述第三广播信号为低功耗蓝牙广播信号;以及,当扫描到携带有所述第二蓝牙地址的第四广播信号时,与发送所述第四广播信号的所述第二音频设备建立LE Audio连接,所述第四广播信号为低功耗蓝牙广播信号。
在一些实施例中,第二获取模块501,用于将所述第一蓝牙地址和所述第二蓝牙地址添加至白名单;当扫描到携带有所述第一蓝牙地址的第三广播信号时,检测所述第一蓝牙地址是否在所述白名单;以及,当所述第一蓝牙地址在所述白名单时,与发送所述第三广播信号的所述第一音频设备建立LE Audio连接。
由上可知,本申请实施例提供了一种绕过CSIP协议去连接同一协调集中的设备的连接装置,可以分别通过LE广播内容或经典EIR包的方式,添加另一个音频设备的BLE地址字段,使得电子设备能更快地发起对另一个音频设备的LE Audio连接,进而提升整个无线音频设备(例如TWS耳机)与电子设备(例如手机)的首次进行LE Audio连接的速度,从而改善用户的体验,提升产品竞争力。
本申请实施例还提供一种音频设备的连接装置,应用于第一音频设备,该第一音频设备具有第一蓝牙地址。请参阅图10,图10为本申请实施例提供的音频设备的连接装置的又一种结构示意图。该音频设备的连接装置600包括:
第三获取模块601,用于确定所述第二音频设备的第二蓝牙地址;
第二发送模块602,用于发送第一广播信号,所述第一广播信号携带有所述第一蓝牙地址和所述第二蓝牙地址,使得电子设备基于所述第一蓝牙地址与所述第一音频设备建立LE Audio连接,并基于所述第二蓝牙地址与所述第二音频设备建立LE Audio连接。
本申请实施例还提供一种电子设备。所述电子设备可以是智能手机、平板电脑等设备。请参阅图11,图11为本申请实施例提供的电子设备的一种结构示意图。电子设备700包括处理器701、存储器702和无线收发器703。其中,处理器701与存储器702和无线收发器703电性连接。
处理器701是电子设备700的控制中心,利用各种接口和线路连接整个电子设备的各个部分,通过运行或调用存储在存储器702内的计算机程序,以及调用存储在存储器702内的数据,执行电子设备的各种功能和处理数据。
存储器702可用于存储计算机程序和数据。存储器702存储的计算机程序中包含有可在处理器中执行的指令。计算机程序可以组成各种功能模块。处理器701通过调用存储在存储器702的计算机程序,从而执行各种功能应用以及数据处理。
无线收发器703可用于发送和接收无线信号,电子设备700通过无线收发器703与无线音频设备之间建立无线连接。例如,无线收发器可以为蓝牙模块,如低功耗蓝牙模块等。
在本实施例中,电子设备700中的处理器701会将一个或一个以上的计算机程序的进程对应的指令加载到存储器702中,并由处理器701来运行存储在存储器702中的计算机程序,从而使得电子设备700执行如下步骤:
当扫描到第一音频设备发送的第一广播信号时,从所述第一广播信号获取所述第一音频设备的第一蓝牙地址,以及第二音频设备的第二蓝牙地址;
基于所述第一蓝牙地址与所述第一音频设备建立LE Audio连接,并且基于所述第二蓝牙地址与所述第二音频建立LE Audio连接。
在一些实施例中,在所述当扫描到第一音频设备发送的第一广播信号时,从所述第一广播信号获取所述第一音频设备的第一蓝牙地址,以及第二音频设备的第二蓝牙地址中,所述处理器701可以执行:当扫描到第一音频设备发送的第一广播信号时,从所述第一广播信号的第一预设字段获取所述第一音频设备的第一蓝牙地址,并从所述第一广播信号的第二预设字段确定所述第二音频设备的第二蓝牙地址。
在一些实施例中,所述第一广播信号为低功耗蓝牙广播信号;在所述从所述第一广播信号获取所述第一音频设备的第一蓝牙地址,以及第二音频设备的第二蓝牙地址之后,所述处理器701可以执行:基于所述第一广播信号输出所述第一音频设备对应的设备提示信息;在所述基于所述第一蓝牙地址与所述第一音频设备建立LE Audio连接,并且基于所述第二蓝牙地址与所述第二音频建立LE Audio连接中,所述处理器701可以执行:当接收到基于所述设备提示信息触发的连接指令时,基于所述第一蓝牙地址与所述第一音频设备建立LE Audio连接;当扫描到携带有所述第二蓝牙地址的第二广播信号时,与发送所述第二广播信号的所述第二音频设备建立LE Audio连接,所述第二广播信号为低功耗蓝牙广播信号。
在一些实施例中,所述第一广播信号为扩展查询响应EIR包;在所述从所述第一广播信号获取所述第一音频设备的第一蓝牙地址,以及第二音频设备的第二蓝牙地址之后,所述处理器701可以执行:基于所述第一广播信号输出所述第一音频设备对应的设备提示信息;在所述基于所述第一蓝牙地址与所述第一音频设备建立LE Audio连接,并且基于所述第二蓝牙地址与所述第二音频建立LE Audio连接中,所述处理器701可以执行:当接收到基于所述设备提示信息触发的连接指令时,基于所述第一蓝牙地址与所述第一音频设备建立经典蓝牙连接;当扫描到携带有所述第一蓝牙地址的第三广播信号时,与发送所述第三广播信号的所述第一音频设备建立LE Audio连接,其中,所述第三广播信号为低功耗蓝牙广播信号;当扫描到携带有所述第二蓝牙地址的第四广播信号时,与发送所述第四广播信号的所述第二音频设备建立LE Audio连接,所述第四广播信号为低功耗蓝牙广播信号。
在一些实施例中,在所述从所述第一广播信号获取所述第一音频设备的第一蓝牙地址,以及第二音频设备的第二蓝牙地址之后,所述处理器701可以执行:将所述第一蓝牙地址和所述第二蓝牙地址添加至白名单;所述与发送所述第三广播信号的所述第一音频设备建立LE Audio连接之前,所述方法还包括:当扫描到携带有所述第一蓝牙地址的第三广播信号时,检测所述第一蓝牙地址是否在所述白名单;当所述第一蓝牙地址在所述白名单时,与发送所述第三广播信号的所述第一音频设备建立LE Audio连接。
如图12所示,图12为本申请实施例提供的电子设备的另一种结构示意图。电子设备700还包括:射频电路704、显示屏705、控制电路708、输入单元708、音频电路708、传感器709以及电源710。其中,处理器701分别与射频电路704、显示屏705、控制电路706、输入单元708、音频电路708、传感器709以及电源710电性连接。
射频电路704用于收发射频信号,以通过无线通信与网络设备或其他电子设备进行通信。
显示屏705可用于显示由用户输入的信息或提供给用户的信息以及电子设备的各种图形用户接口,这些图形用户接口可以由图像、文本、图标、视频和其任意组合来构成。
控制电路706与显示屏705电性连接,用于控制显示屏705显示信息。
输入单元708可用于接收输入的数字、字符信息或用户特征信息(例如指纹),以及产生与用户设置以及功能控制有关的键盘、鼠标、操作杆、光学或者轨迹球信号输入。其中,输入单元708可以包括指纹识别模组。
音频电路708可通过扬声器、传声器提供用户与电子设备之间的音频接口。其中,音频电路708包括麦克风。所述麦克风与所述处理器701电性连接。所述麦克风用于接收用户输入的语音信息。
传感器709用于采集外部环境信息。传感器709可以包括环境亮度传感器、加速度传感器、陀螺仪等传感器中的一种或多种。
电源710用于给电子设备700的各个部件供电。在一些实施例中,电源710可以通过电源管理系统与处理器701逻辑相连,从而通过电源管理系统实现管理充电、放电、以及功耗管理等功能。
虽然图中未示出,电子设备700还可以包括摄像头等,在此不再赘述。
由上可知,本申请实施例提供了一种绕过CSIP协议去连接同一协调集中的设备的连接方法。例如,相较于相关技术中根据CSIP协议需要等到电子设备与第一音频设备建立LE Audio连接之后并获取到SIRK值后才有方式判断是否发起对另一个音频设备的LE Audio连接的方法,此技术方案可以分别通过LE广播内容或经典EIR包的方式,添加另一个音频设备的BLE地址字段,使得电子设备能更快地发起对另一个音频设备的LE Audio连接,进而提升整个无线音频设备(例如TWS耳机)与电子设备(例如手机)的首次进行LE Audio连接的速度,从而改善用户的体验,提升产品竞争力。
本申请实施例还提供一种无线音频设备,该无线音频设备包括第一音频设备和第二音频设备。例如,该无线音频设备可以是蓝牙耳机,或者支持蓝牙协议的其他类型的音频播放设备,例如蓝牙音箱等。以无线音频设备为蓝牙耳机为例,该蓝牙耳机包括第一耳机和第二耳机。该无线音频设备包括处理器、存储器和无线收发器,所述存储器存储有计算机程序,其中,所述处理器通过调用所述计算机程序,使得无线音频设备执行:
所述第一音频设备确定所述第二音频设备的第二蓝牙地址;
所述第一音频设备发送第一广播信号,所述第一广播信号携带有所述第一蓝牙地址和所述第二蓝牙地址;
基于所述第一蓝牙地址,所述第一音频设备与电子设备建立LE Audio连接,并且基于所述第二蓝牙地址,所述第二音频设备与所述电子设备建立LE Audio连接。
本申请实施例还提供一种无线音频设备,该无线音频设备可以是蓝牙耳机对中的一只蓝牙耳机,也可以是蓝牙音箱中的一侧音箱等。该无线音频设备包括处理器、存储器和无线收发器,所述存储器存储有计算机程序,其中,所述处理器通过调用所述计算机程序,使得无线音频设备执行:
确定所述第二音频设备的第二蓝牙地址;
发送第一广播信号,所述第一广播信号携带有所述第一蓝牙地址和所述第二蓝牙地址,使得电子设备基于所述第一蓝牙地址与所述第一音频设备建立LE Audio连接,并基于所述第二蓝牙地址与所述第二音频设备建立LE Audio连接。
其中,该方案中的第二音频设备可以与该无线音频设备组成一对无线音频设备。
本申请实施例还提供一种计算机可读存储介质,所述计算机可读存储介质中存储有计算机程序,当 所述计算机程序在计算机上运行时,所述计算机执行上述任一实施例所述的音频设备的连接方法。
需要说明的是,本领域普通技术人员可以理解上述实施例的各种方法中的全部或部分步骤是可以通过计算机程序来指令相关的硬件来完成,所述计算机程序可以存储于计算机可读存储介质中,所述计算机可读存储介质可以包括但不限于:只读存储器(ROM,Read Only Memory)、随机存取存储器(RAM,Random Access Memory)、磁盘或光盘等。
此外,本申请中的术语“第一”、“第二”和“第三”等是用于区别不同对象,而不是用于描述特定顺序。此外,术语“包括”和“具有”以及它们任何变形,意图在于覆盖不排他的包含。例如包含了一系列步骤或模块的过程、方法、系统、产品或设备没有限定于已列出的步骤或模块,而是某些实施例还包括没有列出的步骤或模块,或某些实施例还包括对于这些过程、方法、产品或设备固有的其它步骤或模块。
以上对本申请实施例所提供的音频设备的连接方法、装置、存储介质及设备进行了详细介绍。本文中应用了具体个例对本申请的原理及实施方式进行了阐述,以上实施例的说明只是用于帮助理解本申请的方法及其核心思想;同时,对于本领域的技术人员,依据本申请的思想,在具体实施方式及应用范围上均会有改变之处,综上所述,本说明书内容不应理解为对本申请的限制。

Claims (20)

  1. 一种音频设备的连接方法,其中,应用于无线音频设备,所述无线音频设备包括第一音频设备和第二音频设备,所述第一音频设备具有第一蓝牙地址,所述第二音频设备具有第二蓝牙地址;所述方法包括:
    所述第一音频设备确定所述第二音频设备的第二蓝牙地址;
    所述第一音频设备发送第一广播信号,所述第一广播信号携带有所述第一蓝牙地址和所述第二蓝牙地址;
    基于所述第一蓝牙地址,所述第一音频设备与电子设备建立低功耗音频LE Audio连接,并且基于所述第二蓝牙地址,所述第二音频设备与所述电子设备建立LE Audio连接。
  2. 如权利要求1所述的方法,其中,所述第一音频设备确定所述第二音频设备的第二蓝牙地址之前,所述方法还包括:
    所述第一音频设备检测历史连接记录是否为空;
    当所述历史连接记录为空时,执行所述第一音频设备确定所述第二音频设备的第二蓝牙地址的步骤。
  3. 如权利要求1所述的方法,其中,所述第一音频设备发送第一广播信号,所述第一广播信号携带有所述第一蓝牙地址和所述第二蓝牙地址,包括:
    所述第一音频设备将所述第一蓝牙地址写入所述第一广播信号的第一预设字段,将所述第二蓝牙地址写入所述第一广播信号的第二预设字段,以生成所述第一广播信号,并发送所述第一广播信号。
  4. 如权利要求3所述的方法,其中,所述第一广播信号为低功耗蓝牙广播信号;
    所述基于所述第一蓝牙地址,所述第一音频设备与电子设备建立LE Audio连接,并且基于所述第二蓝牙地址,所述第二音频设备与所述电子设备建立LE Audio连接,包括:
    响应于电子设备基于所述第一蓝牙地址发送的第一连接请求,所述第一音频设备与所述电子设备建立LE Audio连接;
    所述第二音频设备发送第二广播信号,所述第二广播信号为携带有所述第二蓝牙地址的低功耗蓝牙广播信号,所述第二广播信号用于使得所述电子设备基于所述第二蓝牙地址向所述第二音频设备发起第二连接请求;
    所述第二音频设备响应于所述第二连接请求与所述电子设备建立LE Audio连接。
  5. 根据权利要求4所述的方法,其中,所述第二广播信号还携带有所述第一蓝牙地址。
  6. 如权利要求3所述的方法,其中,所述第一广播信号为扩展查询响应EIR包;
    所述基于所述第一蓝牙地址,所述第一音频设备与电子设备建立LE Audio连接,并且基于所述第二蓝牙地址,所述第二音频设备与所述电子设备建立LE Audio连接,包括:
    响应于电子设备基于所述第一蓝牙地址发送的第三连接请求,所述第一音频设备与所述电子设备建立经典蓝牙连接;
    所述第一音频设备发送低功耗蓝牙广播信号,并向所述第二音频设备发送提醒消息,所述第二音频设备响应于所述提醒消息发送低功耗蓝牙广播信号;
    所述第一音频设备响应于所述电子设备基于所述第一蓝牙地址发送的第四连接请求,与所述电子设备建立LE Audio连接,并且所述第二音频设备响应于所述电子设备基于所述第二蓝牙地址发送的第五连接请求,与所述电子设备建立LE Audio连接。
  7. 一种音频设备的连接方法,其中,应用于电子设备,所述方法包括:
    当扫描到第一音频设备发送的第一广播信号时,从所述第一广播信号获取所述第一音频设备的第一蓝牙地址,以及第二音频设备的第二蓝牙地址;
    基于所述第一蓝牙地址与所述第一音频设备建立LE Audio连接,并且基于所述第二蓝牙地址与所述第二音频建立LE Audio连接。
  8. 如权利要求7所述的方法,其中,所述当扫描到第一音频设备发送的第一广播信号时,从所述第一广播信号获取所述第一音频设备的第一蓝牙地址,以及第二音频设备的第二蓝牙地址,包括:
    当扫描到第一音频设备发送的第一广播信号时,从所述第一广播信号的第一预设字段获取所述第一音频设备的第一蓝牙地址,并从所述第一广播信号的第二预设字段确定所述第二音频设备的第二蓝牙地址。
  9. 如权利要求7所述的方法,其中,所述第一广播信号为低功耗蓝牙广播信号;
    所述从所述第一广播信号获取所述第一音频设备的第一蓝牙地址,以及第二音频设备的第二蓝牙地址之后,所述方法还包括:
    基于所述第一广播信号输出所述第一音频设备对应的设备提示信息;
    所述基于所述第一蓝牙地址与所述第一音频设备建立LE Audio连接,并且基于所述第二蓝牙地址与所述第二音频建立LE Audio连接,包括:
    当接收到基于所述设备提示信息触发的连接指令时,基于所述第一蓝牙地址与所述第一音频设备建立LE Audio连接;
    当扫描到携带有所述第二蓝牙地址的第二广播信号时,与发送所述第二广播信号的所述第二音频设备建立LE Audio连接,所述第二广播信号为低功耗蓝牙广播信号。
  10. 如权利要求7所述的方法,其中,所述第一广播信号为扩展查询响应EIR包;
    所述从所述第一广播信号获取所述第一音频设备的第一蓝牙地址,以及第二音频设备的第二蓝牙地址之后,所述方法还包括:
    基于所述第一广播信号输出所述第一音频设备对应的设备提示信息;
    所述基于所述第一蓝牙地址与所述第一音频设备建立LE Audio连接,并且基于所述第二蓝牙地址与所述第二音频建立LE Audio连接,包括:
    当接收到基于所述设备提示信息触发的连接指令时,基于所述第一蓝牙地址与所述第一音频设备建立经典蓝牙连接;
    当扫描到携带有所述第一蓝牙地址的第三广播信号时,与发送所述第三广播信号的所述第一音频设备建立LE Audio连接,其中,所述第三广播信号为低功耗蓝牙广播信号;
    当扫描到携带有所述第二蓝牙地址的第四广播信号时,与发送所述第四广播信号的所述第二音频设备建立LE Audio连接,所述第四广播信号为低功耗蓝牙广播信号。
  11. 如权利要求10所述的方法,其中,所述从所述第一广播信号获取所述第一音频设备的第一蓝牙地址,以及第二音频设备的第二蓝牙地址之后,所述方法还包括:
    将所述第一蓝牙地址和所述第二蓝牙地址添加至白名单;
    所述与发送所述第三广播信号的所述第一音频设备建立LE Audio连接之前,所述方法还包括:
    当扫描到携带有所述第一蓝牙地址的第三广播信号时,检测所述第一蓝牙地址是否在所述白名单;
    当所述第一蓝牙地址在所述白名单时,与发送所述第三广播信号的所述第一音频设备建立LE Audio连接。
  12. 一种音频设备的连接方法,其中,应用于第一音频设备,所述第一音频设备具有第一蓝牙地址,所述方法包括:
    确定所述第二音频设备的第二蓝牙地址;
    发送第一广播信号,所述第一广播信号携带有所述第一蓝牙地址和所述第二蓝牙地址,使得电子设备基于所述第一蓝牙地址与所述第一音频设备建立LE Audio连接,并基于所述第二蓝牙地址与所述第二音频设备建立LE Audio连接。
  13. 如权利要求12所述的方法,其中,所述第一广播信号为低功耗蓝牙广播信号;
    所述第一音频设备发送第一广播信号之后,所述方法还包括:
    响应于电子设备基于所述第一蓝牙地址发送的第六连接请求,所述第一音频设备与所述电子设备建立LE Audio连接。
  14. 如权利要求12所述的方法,其中,所述第一广播信号为扩展查询响应EIR包;
    所述第一音频设备发送第一广播信号之后,所述方法还包括:
    发送低功耗蓝牙广播信号,响应于所述电子设备基于所述第一蓝牙地址发送的第七连接请求,与所述电子设备建立LE Audio连接。
  15. 一种音频设备的连接装置,其中,应用于无线音频设备,所述无线音频设备包括第一音频设备和第二音频设备,所述第一音频设备具有第一蓝牙地址,所述第二音频设备具有第二蓝牙地址;所述装置包括位于所述第一音频设备的第一获取模块、第一发送模块和第一连接模块,以及位于所述第二音频设备的第二连接模块;
    所述第一获取模块,用于确定所述第二音频设备的第二蓝牙地址;
    所述第一发送模块,用于发送第一广播信号,所述第一广播信号携带有所述第一蓝牙地址和所述第二蓝牙地址;
    所述第一连接模块,用于基于所述第一蓝牙地址,所述第一音频设备与电子设备建立LE Audio连接;
    所述第二连接模块,用于基于所述第二蓝牙地址,所述第二音频设备与所述电子设备建立LE Audio连接。
  16. 一种音频设备的连接装置,其中,应用于电子设备,所述装置包括:
    第二获取模块,用于当扫描到第一音频设备发送的第一广播信号时,从所述第一广播 信号获取所述第一音频设备的第一蓝牙地址,以及第二音频设备的第二蓝牙地址;
    第三连接模块,用于基于所述第一蓝牙地址与所述第一音频设备建立LE Audio连接,并且基于所述第二蓝牙地址与所述第二音频建立LE Audio连接。
  17. 一种音频设备的连接装置,其中,应用于第一音频设备,所述第一音频设备具有第一蓝牙地址,所述装置包括:
    第三获取模块,用于确定所述第二音频设备的第二蓝牙地址;
    第二发送模块,用于发送第一广播信号,所述第一广播信号携带有所述第一蓝牙地址和所述第二蓝牙地址,使得电子设备基于所述第一蓝牙地址与所述第一音频设备建立LE Audio连接,并基于所述第二蓝牙地址与所述第二音频设备建立LE Audio连接。
  18. 一种计算机可读存储介质,其上存储有计算机程序,其中,当所述计算机程序在计算机上运行时,使得所述计算机执行如权利要求1至13任一项所述的音频设备的连接方法。
  19. 一种电子设备,包括处理器、存储器以及无线收发器,所述存储器存储有计算机程序,其中,所述处理器通过调用所述计算机程序,用于使得所述电子设备执行如权利要求7至11任一项所述的音频设备的连接方法
  20. 一种无线音频设备,包括处理器、存储器以及无线收发器,所述存储器存储有计算机程序,其中,所述处理器通过调用所述计算机程序,用于使得所述无线音频设备执行如权利要求1至6任一项所述的音频设备的连接方法,或者执行如权利要求12至14任一项所述的音频设备的连接方法。
PCT/CN2023/108716 2022-09-28 2023-07-21 音频设备的连接方法、装置、存储介质及设备 WO2024066694A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202211193728.1 2022-09-28
CN202211193728.1A CN115580944A (zh) 2022-09-28 2022-09-28 音频设备的连接方法、装置、存储介质及设备

Publications (1)

Publication Number Publication Date
WO2024066694A1 true WO2024066694A1 (zh) 2024-04-04

Family

ID=84582493

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2023/108716 WO2024066694A1 (zh) 2022-09-28 2023-07-21 音频设备的连接方法、装置、存储介质及设备

Country Status (2)

Country Link
CN (1) CN115580944A (zh)
WO (1) WO2024066694A1 (zh)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115580944A (zh) * 2022-09-28 2023-01-06 Oppo广东移动通信有限公司 音频设备的连接方法、装置、存储介质及设备

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20180083468A1 (en) * 2016-09-21 2018-03-22 Otter Products, Llc Charging apparatus for wireless earphone
CN108174457A (zh) * 2018-01-12 2018-06-15 恒玄科技(上海)有限公司 充电盒、蓝牙耳机的通信系统和通信方法
WO2020107485A1 (zh) * 2018-11-30 2020-06-04 华为技术有限公司 一种蓝牙连接方法及设备
CN111629369A (zh) * 2020-05-27 2020-09-04 歌尔科技有限公司 一种蓝牙耳机及其配对连接方法、装置和tws耳机
CN115580944A (zh) * 2022-09-28 2023-01-06 Oppo广东移动通信有限公司 音频设备的连接方法、装置、存储介质及设备

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20180083468A1 (en) * 2016-09-21 2018-03-22 Otter Products, Llc Charging apparatus for wireless earphone
CN108174457A (zh) * 2018-01-12 2018-06-15 恒玄科技(上海)有限公司 充电盒、蓝牙耳机的通信系统和通信方法
WO2020107485A1 (zh) * 2018-11-30 2020-06-04 华为技术有限公司 一种蓝牙连接方法及设备
CN111629369A (zh) * 2020-05-27 2020-09-04 歌尔科技有限公司 一种蓝牙耳机及其配对连接方法、装置和tws耳机
CN115580944A (zh) * 2022-09-28 2023-01-06 Oppo广东移动通信有限公司 音频设备的连接方法、装置、存储介质及设备

Also Published As

Publication number Publication date
CN115580944A (zh) 2023-01-06

Similar Documents

Publication Publication Date Title
CN107277754B (zh) 一种蓝牙连接的方法及蓝牙外围设备
EP3101867B1 (en) Wireless audio output devices
WO2018000134A1 (zh) 一种蓝牙连接的方法及终端
WO2021004317A1 (zh) 发射天线的切换方法及终端设备
WO2021129529A1 (zh) 设备切换方法及相关设备
WO2024066694A1 (zh) 音频设备的连接方法、装置、存储介质及设备
KR102335903B1 (ko) 전자 장치들 간에 통신 방법 및 장치
US11582815B2 (en) Electronic device for receiving data packet in Bluetooth network environment and method thereof
US20220322059A1 (en) Bluetooth data transmission method and apparatus, terminal and storage medium
US11930542B2 (en) Source device switching method and device through Bluetooth connection information sharing
EP4210362A1 (en) Bluetooth communication system, bluetooth connection method, electronic device, and storage medium
CN110830970A (zh) 蓝牙设备间的音频传输方法、装置、设备及存储介质
CN110809267A (zh) 一种设备连接方法、电子设备及计算机可读存储介质
KR20200090260A (ko) 서비스 처리 방법 및 이동 통신 단말
WO2023036178A1 (zh) 蓝牙连接方法、装置、耳机设备及计算机可读存储介质
WO2023020618A1 (zh) 基于蓝牙的设备连接方法、装置、电子设备及存储介质
WO2024082906A1 (zh) 信息获取方法、装置、蓝牙设备、终端设备及存储介质
WO2024016948A1 (zh) 信息更新方法及装置、音频共享方法及系统、电子设备
WO2021239032A1 (zh) 蓝牙协议连接方法、装置、存储介质及相关设备
WO2023103732A1 (zh) 耳机设备的状态控制方法、装置、耳机设备及存储介质
WO2023020617A1 (zh) 基于蓝牙的设备连接方法、装置、电子设备及存储介质
CN112312368A (zh) 数据处理方法、装置、设备和存储介质
JP2013126092A (ja) 近距離無線通信システム
WO2024001134A1 (zh) 音频设备的连接方法、装置、存储介质及设备
KR102639249B1 (ko) 블루투스 네트워크에서 채널 정보를 공유하기 위한 방법 및 이를 위한 전자 장치