CN116193407A - Bluetooth connection method and device, bluetooth equipment and storage medium - Google Patents

Bluetooth connection method and device, bluetooth equipment and storage medium Download PDF

Info

Publication number
CN116193407A
CN116193407A CN202111437251.2A CN202111437251A CN116193407A CN 116193407 A CN116193407 A CN 116193407A CN 202111437251 A CN202111437251 A CN 202111437251A CN 116193407 A CN116193407 A CN 116193407A
Authority
CN
China
Prior art keywords
earphone
audio
bluetooth
connection
bluetooth connection
Prior art date
Legal status (The legal status 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 status listed.)
Pending
Application number
CN202111437251.2A
Other languages
Chinese (zh)
Inventor
包建全
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guangdong Oppo Mobile Telecommunications Corp Ltd
Original Assignee
Guangdong Oppo Mobile Telecommunications Corp Ltd
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 Guangdong Oppo Mobile Telecommunications Corp Ltd filed Critical Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority to CN202111437251.2A priority Critical patent/CN116193407A/en
Priority to PCT/CN2022/118375 priority patent/WO2023093223A1/en
Publication of CN116193407A publication Critical patent/CN116193407A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/80Services using short range communication, e.g. near-field communication [NFC], radio-frequency identification [RFID] or low energy communication
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W52/00Power management, e.g. TPC [Transmission Power Control], power saving or power classes
    • H04W52/02Power saving arrangements
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W52/00Power management, e.g. TPC [Transmission Power Control], power saving or power classes
    • H04W52/02Power saving arrangements
    • H04W52/0209Power saving arrangements in terminal devices
    • H04W52/0225Power saving arrangements in terminal devices using monitoring of external events, e.g. the presence of a signal
    • H04W52/0248Power saving arrangements in terminal devices using monitoring of external events, e.g. the presence of a signal dependent on the time of the day, e.g. according to expected transmission activity
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W76/00Connection management
    • H04W76/10Connection setup
    • H04W76/14Direct-mode setup
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W76/00Connection management
    • H04W76/40Connection management for selective distribution or broadcast
    • 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

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

A Bluetooth connection method and device, bluetooth equipment and storage medium are provided, the method is applied to the Bluetooth equipment and comprises the following steps: under the condition that the Bluetooth equipment and the terminal equipment establish classical Bluetooth connection, starting low-power Audio LE Audio broadcasting; receiving LE Audio connection request of the terminal equipment in response to LE Audio broadcast feedback, and establishing LE Audio Bluetooth connection with the terminal equipment according to the connection request. By implementing the embodiment of the application, the power consumption of the Bluetooth device in the process of establishing connection with the terminal device can be effectively reduced, so that the endurance time of the Bluetooth device is improved.

Description

Bluetooth connection method and device, bluetooth equipment and storage medium
Technical Field
The present disclosure relates to the field of bluetooth communication technologies, and in particular, to a bluetooth connection method and apparatus, a bluetooth device, and a storage medium.
Background
Currently, when a user connects with a terminal device (such as a smart phone, a tablet computer, a smart wearable device, etc.) using a bluetooth device, besides adopting a classical bluetooth connection mode, a connection can be established based on a BLE (Bluetooth Low Energy ) mode. However, in practice it has been found that even with BLE technology, the power consumption of the bluetooth device is still large during the establishment of the connection, thereby reducing the endurance of the bluetooth device.
Disclosure of Invention
The embodiment of the application discloses a Bluetooth connection method and device, bluetooth equipment and a storage medium, which can effectively reduce the power consumption of the Bluetooth equipment in the process of establishing connection with terminal equipment, thereby being beneficial to improving the endurance time of the Bluetooth equipment.
An embodiment of the present application in a first aspect discloses a bluetooth connection method, applied to a bluetooth device, including:
under the condition that the Bluetooth equipment and the terminal equipment establish classical Bluetooth connection, starting low-power Audio LE Audio broadcasting;
receiving LE Audio connection request of the terminal equipment in response to the LE Audio broadcast feedback, and establishing LE Audio Bluetooth connection with the terminal equipment according to the connection request
The second aspect of the embodiment of the application discloses a bluetooth connecting device, is applied to bluetooth equipment, bluetooth connecting device includes:
the broadcasting starting unit is used for starting low-power-consumption Audio LE Audio broadcasting under the condition that the Bluetooth equipment and the terminal equipment establish classical Bluetooth connection;
and the Bluetooth connection unit is used for receiving the LE Audio connection request of the terminal equipment in response to the LE Audio broadcast feedback, and establishing LE Audio Bluetooth connection with the terminal equipment according to the connection request.
The third aspect of the embodiment of the application discloses a bluetooth device, which comprises a memory and a processor, wherein the memory stores a computer program, and the computer program when executed by the processor causes the processor to implement all or part of the steps in any one of the bluetooth connection methods disclosed in the first aspect of the embodiment of the application.
A fourth aspect of the embodiments of the present application discloses a computer readable storage medium storing a computer program, wherein the computer program when executed by a processor implements all or part of the steps of any of the bluetooth connection methods as disclosed in the first aspect of the embodiments of the present application.
Compared with the related art, the embodiment of the application has the following beneficial effects:
the Bluetooth connection method in the embodiment of the application can be applied to Bluetooth equipment, such as earphone equipment, bluetooth sound boxes and the like. Under the condition that the Bluetooth device and the terminal device establish classical Bluetooth connection, the Bluetooth device can start low-power-consumption Audio LE Audio broadcasting so that the terminal device can respond to the LE Audio broadcasting and feed back corresponding LE Audio connection requests to the Bluetooth device, and accordingly the Bluetooth device can receive the LE Audio connection requests fed back by the terminal device and establish LE Audio Bluetooth connection with the terminal device according to the connection requests. It can be seen that, if the bluetooth device needs to establish an LE Audio (Low Energy Audio) bluetooth connection with the terminal device, the embodiment of the present application may start the entire LE Audio connection procedure by starting LE Audio broadcast when the bluetooth device establishes a classical bluetooth connection with the terminal device. By means of the Bluetooth connection mode, the Bluetooth device can conditionally start LE Audio broadcasting, for example, the LE Audio broadcasting can be started when the Bluetooth device starts to be connected with the terminal device through classical Bluetooth, at the moment, the possibility that the Bluetooth device is connected with the terminal device is higher, invalid broadcasting can be avoided continuously and for a long time, power consumption of the Bluetooth device in the process of establishing connection with the terminal device is effectively reduced, and accordingly the duration of the Bluetooth device is prolonged.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present application, the following description will briefly explain the drawings needed in the embodiments, and it is obvious that the drawings in the following description are only some embodiments of the present application, and that other drawings can be obtained according to these drawings without inventive effort for a person skilled in the art.
Fig. 1A is a schematic diagram of an application scenario of a bluetooth connection method disclosed in an embodiment of the present application;
fig. 1B is a schematic diagram of another application scenario of the bluetooth connection method disclosed in the embodiments of the present application;
fig. 2 is a schematic flow chart of a bluetooth connection method disclosed in an embodiment of the present application;
fig. 3 is a schematic flow chart of another bluetooth connection method disclosed in an embodiment of the present application;
fig. 4 is a flow chart of yet another bluetooth connection method disclosed in an embodiment of the present application;
fig. 5 is a schematic diagram of a headset box according to an embodiment of the present disclosure transitioning from a closed state to an open state;
fig. 6 is a timing diagram of a bluetooth connection method disclosed in an embodiment of the present application;
fig. 7 is a schematic diagram of a bluetooth connection device according to an embodiment of the present application;
Fig. 8 is a schematic diagram of a bluetooth device according to an embodiment of the present application.
Detailed Description
The following description of the embodiments of the present application will be made clearly and completely with reference to the accompanying drawings of the embodiments of the present application, and it is apparent that the described embodiments are only some embodiments of the present application, not all embodiments. All other embodiments, which can be made by one of ordinary skill in the art without undue burden from the present disclosure, are within the scope of the present disclosure.
It should be noted that the terms "comprises" and "comprising," along with any variations thereof, in the embodiments of the present application are intended to cover non-exclusive inclusion, such that a process, method, system, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed or inherent to such process, method, article, or apparatus, but may include other steps or elements not expressly listed. In case of no conflict, the embodiments, implementations and related technical features in the present application may be combined with each other and replaced, and the explanations in the different embodiments and implementations may be mutually applicable. The term "plurality" in this application means two or more.
The embodiment of the application discloses a Bluetooth connection method and device, bluetooth equipment and a storage medium, which can effectively reduce the power consumption of the Bluetooth equipment in the process of establishing connection with terminal equipment, thereby being beneficial to improving the endurance time of the Bluetooth equipment.
The following detailed description will be given with reference to the accompanying drawings.
Referring to fig. 1A and fig. 1B together, fig. 1A is a schematic view of an application scenario of a bluetooth connection method disclosed in an embodiment of the present application, and fig. 1B is a schematic view of another application scenario of the bluetooth connection method disclosed in an embodiment of the present application. As shown in fig. 1A, the application scenario may include a bluetooth device 10 and a terminal device 20, where the bluetooth device 10 may establish a bluetooth connection with the terminal device 20, such as a classical bluetooth connection, a BLE (Bluetooth Low Energy ) connection, etc. The classical bluetooth connection refers to a bluetooth connection scheme implemented based on technologies (or modes) such as BR/EDR (Basic Rate/Enhanced Data Rate) and AMP (alternative MAC/PHYs) specified in bluetooth protocols of various versions; the above BLE connection refers to a bluetooth connection scheme implemented based on LE (Low Energy) technology (or mode). It should be noted that, in order to realize Audio data transmission with larger data flow on the basis of keeping the power consumption of the device Low, the bluetooth device 10 may also establish an LE Audio (Low Energy Audio) bluetooth connection with the terminal device 20.
It will be appreciated that bluetooth device 10 may establish at least one classical bluetooth link and at least one LE Audio bluetooth link simultaneously with terminal device 20, i.e. bluetooth device 10 may establish both a classical bluetooth connection and an LE Audio bluetooth connection simultaneously with terminal device 20. In some possible embodiments, if the bluetooth device 10 comprises a plurality of devices, the terminal device 20 may establish a classical bluetooth connection with only one of the bluetooth devices 10, which may be defined as the master device. The two types of bluetooth links exist at the same time, so that the bluetooth device 10 and the terminal device 20 can more conveniently perform classical bluetooth transmission and LE Audio bluetooth transmission, thereby respectively utilizing the advantages of different types of bluetooth protocols and rapidly performing switching.
It will be appreciated that one or more devices may be included in the bluetooth device 10, and that in order to better use the bluetooth device 10 in which both types of bluetooth links are present, each of the devices in the bluetooth device 10 may be provided with the same bluetooth address with respect to the terminal device 20, so that only one classical bluetooth device address may be perceived on the side of the terminal device 20. In some embodiments, the BLE address may be different for each of the bluetooth devices 10. In some embodiments, the classical bluetooth address of the default master device (which may be understood as the device that establishes the classical bluetooth connection with the terminal device 20 in the default condition set before factory) in the bluetooth device 10 may be the same as the BLE address, and the classical bluetooth address of the default slave device (which may be understood as the device that does not establish the classical bluetooth connection with the terminal device 20 in the default condition set before factory) may be different from the BLE address. In some embodiments, the LE Audio broadcast of the slave device may be set to be an invisible broadcast, so that on the terminal device 20, the bluetooth device 10 may correspond to only one bluetooth address (i.e., the bluetooth address of the master device), which is convenient for the user to operate. Of course, the above address setting method is merely an example, and other address setting methods are also possible.
It should be understood that the above establishment of the bluetooth connection may be a communication link based on a bluetooth protocol (e.g. a standard bluetooth protocol or a proprietary bluetooth protocol), for example, a classical bluetooth connection may be considered to include establishment of a bluetooth physical link such as ACL (Asynchronous Connection less ) or SCO (Synchronous Connection Oriented, synchronous directional link), or may be considered to include establishment of an upper layer protocol connection such as A2DP (Advanced Audio Distribution Profile, advanced audio delivery specification) or HFP (handles-Free-Profile, hands-Free specification), and the specification of the relevant bluetooth protocol may be referred to specifically, without limitation in the present application.
By way of example, the Bluetooth device 10 may include various types of Bluetooth headsets, bluetooth speakers, etc., and may include TWS (True Wireless Stereo ) headsets, among others. For example, the terminal device 20 may include various devices or systems with bluetooth communication functions, such as a mobile phone, a smart wearable device, a vehicle-mounted terminal, a tablet computer, a PC (Personal Computer, a personal computer), a PDA (Personal Digital Assistant, a personal digital assistant), and the like, which are not limited in the embodiments of the present application. It should be noted that, the bluetooth device 10 shown in fig. 1A and fig. 1B is a bluetooth headset, and the terminal device 20 is a mobile phone, which is merely an example, and does not limit the device types of the bluetooth device 10 and the terminal device 20 in the embodiment of the present application. Taking the example of the bluetooth device 10 described above including a headset device, in some embodiments, the headset device may include only a single headset, as shown in fig. 1A. In yet other embodiments, as shown in fig. 1B, the earphone device may also comprise a first earphone 11 and a second earphone 12. Wherein the first earpiece 11 and the second earpiece 12, as the same group of bluetooth devices 10, may share the same BT address, but may use different BLE addresses. As a possible implementation, one of the first earpiece 11 and the second earpiece 12 may establish a classical bluetooth connection with the terminal device 20 (which may be understood as the current master earpiece or master device), so that the first earpiece 11 and the second earpiece 12 may distinguish between master and slave ears to implement a classical bluetooth connection with the terminal device 20; meanwhile, the first earphone 11 and the second earphone 12 may also respectively establish LE Audio bluetooth connection with the terminal device 20. Alternatively, the first earphone 11 and the second earphone 12 may not distinguish between the master ear and the slave ear, so that the first earphone 11 and the second earphone 12 may implement a classical bluetooth connection and an LE Audio bluetooth connection with the terminal device 20, respectively.
It will be appreciated that the bluetooth device 10 may also include more than two devices in the same group, and the manner in which each device in the same group establishes a bluetooth connection with the terminal device 20 may be similar to the manner in which the first earphone 11 and the second earphone 12 establish a bluetooth connection with the terminal device 20.
In this embodiment of the present application, if the bluetooth device 10 needs to establish an LE Audio bluetooth connection with the terminal device 20, in a case where the bluetooth device 10 establishes a classical bluetooth connection with the terminal device 20, the bluetooth device 10 may start a low-power Audio LE Audio broadcast, so that the terminal device 20 may respond to the LE Audio broadcast and feed back a corresponding LE Audio connection request to the bluetooth device 10, so that the bluetooth device 10 may receive the LE Audio connection request fed back by the terminal device 20 and establish an LE Audio bluetooth connection with the terminal device 20 according to the connection request.
It will be appreciated that in the case where the bluetooth device 10 establishes a classical bluetooth connection with the terminal device 20, it may be understood that the classical bluetooth connection is established in some intermediate process of the bluetooth device 10 establishing the classical bluetooth connection with the terminal device 20 or after it is determined. It will be appreciated that the bluetooth device 10 may not continue to maintain the broadcast after the LE Audio broadcast is turned on, for example, may stop after a certain period of time of the broadcast, or stop after determining that the LE Audio bluetooth connection is successful. In some intermediate process, the bluetooth device 10 may receive a classical bluetooth connection request sent by the terminal device 10, for example, a paging page packet, and of course, may also be other interaction phases in the process of establishing a classical bluetooth connection between the bluetooth device 10 and the terminal device 20. The establishment of the classical bluetooth connection may be initiated by the bluetooth device 10 or by the terminal device 20.
By implementing the method, the bluetooth device 10 can start the whole LE Audio connection flow by conditionally starting the LE Audio broadcast, for example, starting the LE Audio broadcast when the bluetooth device starts to connect with the terminal device 20 through classical bluetooth, at this time, the bluetooth device 10 has higher possibility of connecting with the terminal device 20, and can avoid continuous and long-time invalid broadcast, thereby effectively reducing the power consumption of the bluetooth device 10 in the process of establishing connection with the terminal device 20, and being beneficial to improving the duration of the bluetooth device 10, and enabling the user to obtain better use experience.
In some embodiments, in the case where the above bluetooth device 10 includes a headset device and the headset device includes a first headset 11 and a second headset 12, when the headset device (i.e., the first headset 11 and/or the second headset 12) establishes a classical bluetooth connection with the terminal device 20, the first headset 11 and the second headset 12 respectively start respective LE Audio broadcasts, and the first headset 11 and/or the second headset 12 receive LE Audio connection requests fed back by the terminal device 20, so that according to the connection requests, LE Audio bluetooth connections are established by the first headset 11 and the second headset 12 respectively with the terminal device 20, so that bluetooth connections between multiple devices of the same group and the terminal device 20 can be implemented.
Referring to fig. 2, fig. 2 is a schematic flow chart of a bluetooth connection method disclosed in an embodiment of the present application, and the method may be applied to the above bluetooth device. As shown in fig. 2, the bluetooth connection method may include the steps of:
202. and under the condition that the Bluetooth equipment and the terminal equipment establish classical Bluetooth connection, starting low-power Audio LE Audio broadcasting.
In the related art, when the bluetooth device needs to establish an LE Audio bluetooth connection with the terminal device, the entire LE Audio connection procedure may be started by starting LE Audio broadcast. However, it is unknown for the bluetooth device whether the LE Audio broadcast sent by the bluetooth device can be received by the terminal device, so that the bluetooth device is often required to continuously start the broadcast until a connection is successfully established with the terminal device. In the embodiment of the application, in order to avoid continuous and long-time invalid broadcasting by the bluetooth device, the bluetooth device may start LE Audio broadcasting when it is possible to connect to the terminal device. Specifically, when the bluetooth device and the terminal device establish classical bluetooth connection, the possibility that the bluetooth device and the terminal device further establish LE Audio bluetooth connection is high, so that the bluetooth device can start its own LE Audio broadcast when the bluetooth device and the terminal device establish classical bluetooth connection, so that LE Audio bluetooth connection can be established with the terminal device in a subsequent step.
For example, in order to confirm whether the bluetooth device starts to establish a classical bluetooth connection with the terminal device, a classical bluetooth connection request sent by the bluetooth device or the terminal device to the other party may be used as an identifier, and if the bluetooth device receives a data packet related to the classical bluetooth connection request, the process of establishing the classical bluetooth connection between the bluetooth device and the terminal device may be considered to have started, so that the bluetooth device may trigger itself to start LE Audio broadcasting.
In some embodiments, the LE Audio broadcast may be turned on when the bluetooth device receives a first classical bluetooth connection request sent by the terminal device to the bluetooth device. Taking the example that the terminal device connects back to the bluetooth device, in the connection process, the terminal device may send a page packet (i.e. a data packet corresponding to the first classical bluetooth connection request) to the bluetooth device, and the bluetooth device may start a page scan mode, so as to respond to the corresponding first classical bluetooth connection request when receiving the page packet, and attempt to establish a classical bluetooth connection with the terminal device. Meanwhile, when the bluetooth device receives the page packet, the bluetooth device can confirm that the process of establishing classical bluetooth connection between the bluetooth device and the terminal device is started, so that the bluetooth device can start its own LE Audio broadcast.
The above-mentioned connection may refer to an operation that the first electronic device attempts to connect with the previously paired and connected second electronic device again by paging. For example, a first electronic device may send a page package to a second electronic device that may be used to connect or activate the second electronic device so that the first electronic device may establish a communication connection with the second electronic device. The page packet may include bluetooth address information of the second electronic device, so that the second electronic device may be directly paged.
In other embodiments, when the bluetooth device sends a second classical bluetooth connection request to the terminal device, the bluetooth device may also turn on the LE Audio broadcast. Optionally, when the bluetooth device sends a second classical bluetooth connection request to the terminal device and receives the request feedback information fed back by the terminal device in response to the second classical bluetooth connection request, the bluetooth device starts LE Audio broadcasting. In the latter case, for example, when the bluetooth device connects back to the terminal device, the bluetooth device may send a page packet (i.e. a data packet corresponding to the second classical bluetooth connection request) to the terminal device, so that after receiving the page packet, the terminal device may send corresponding request feedback information to the bluetooth device. On the basis, when the Bluetooth device receives the request feedback information, the Bluetooth device can confirm that the process of establishing classical Bluetooth connection between the Bluetooth device and the terminal device is started, so that the Bluetooth device can start LE Audio broadcasting of the Bluetooth device.
204. Receiving LE Audio connection request of the terminal equipment in response to LE Audio broadcast feedback, and establishing LE Audio Bluetooth connection with the terminal equipment according to the connection request.
In this embodiment of the present application, after the bluetooth device starts the LE Audio broadcast, if the terminal device receives the corresponding broadcast packet, the corresponding LE Audio connection request may be fed back to the bluetooth device in response to the LE Audio broadcast (i.e., the corresponding connection request packet is sent to the bluetooth device). On the basis, when the Bluetooth device receives the connection request, a subsequent connection step can be executed according to the connection request so as to establish LE Audio Bluetooth connection with the terminal device.
Illustratively, the bluetooth device may broadcast an adv_ind packet (denoted as A1) to its surrounding space after turning on LE Audio broadcasting. After receiving the data packet A1, the terminal device may obtain BLE connection information (for example, BLE address, BLE connection state, etc.) of the bluetooth device based on the analysis result of the data packet A1, and then may send a corresponding LE Audio connection request (denoted as A2) to the bluetooth device, so that the bluetooth device may establish LE Audio bluetooth connection with the terminal device after receiving the data packet A2.
For example, after receiving the above data packet A2, the bluetooth device may keep open its radio frequency receiving Window for a specified time (i.e. during Transmit Window specified by LE technology), so that the first synchronization data packet (denoted as P1) sent by the terminal device may be continuously received, so as to achieve time synchronization based on the synchronization data packet P1, so as to facilitate subsequent data transmission. It should be noted that, the synchronization packet P1 may be sent to the bluetooth device by the terminal device after the packet A2 is sent to the bluetooth device, for a specified time. On the basis, after receiving the synchronous data packet P1, the bluetooth device may reply to the terminal device with connection confirmation information, that is, send an ACK data packet (denoted as P2) to the terminal device, and once the terminal device receives the data packet P2, it may confirm that the bluetooth device and the terminal device successfully establish the LE Audio bluetooth connection.
In some embodiments, the data packet P2 may be lost, but if the terminal device receives any ACK data packet sent by the bluetooth device within a specified time (i.e. until the period of Supervision Timeout specified by the LE technology), it may also confirm that the bluetooth device successfully establishes the LE Audio bluetooth connection with the terminal device.
It can be seen that, if the bluetooth device needs to establish LE Audio bluetooth connection with the terminal device, the bluetooth device starts the entire LE Audio connection procedure by starting LE Audio broadcast when establishing classical bluetooth connection with the terminal device. Therefore, the Bluetooth device can conditionally start LE Audio broadcasting, for example, when the Bluetooth device starts to connect with the terminal device through classical Bluetooth, the possibility that the Bluetooth device is connected with the terminal device is higher, and invalid broadcasting can be avoided continuously and for a long time, so that the power consumption of the Bluetooth device in the process of establishing connection with the terminal device is effectively reduced, and the duration of the Bluetooth device is prolonged.
Referring to fig. 3, fig. 3 is a schematic flow chart of another bluetooth connection method disclosed in an embodiment of the present application, where the method may be applied to the bluetooth device described above, the bluetooth device may include a headset device, and the headset device may include a first headset and a second headset. As shown in fig. 3, the bluetooth connection method may include the steps of:
302. and under the condition that the earphone equipment and the terminal equipment establish classical Bluetooth connection, respectively starting LE Audio broadcasting by the first earphone and the second earphone.
In this embodiment of the present application, based on a main body difference of initiating a classical bluetooth connection request (for example, a page packet may be sent by a terminal device or different devices in the same group of bluetooth devices in different scenarios), or a main body difference of responding to the classical bluetooth connection request (for example, a page scan mode may be started by one or more devices in the terminal device or the same group of bluetooth devices in different scenarios to receive a page packet), when a classical bluetooth connection is established between a headset device and a terminal device, a classical bluetooth connection may be established between a first headset in the headset device and the terminal device, a classical bluetooth connection may be established between a second headset in the headset device and the terminal device, or the above-mentioned first headset and second headset may simultaneously establish a classical bluetooth connection with the terminal device. The first earphone may represent any one of two earphones (for example, a left-ear earphone or a right-ear earphone) included in the earphone device, and the second earphone may represent the other earphone. On the basis, no matter how the earphone device establishes classical Bluetooth connection with the terminal device, the first earphone and the second earphone in the earphone device can start respective LE Audio broadcast so as to respectively establish LE Audio Bluetooth connection with the terminal device in the subsequent step.
In some embodiments, the first earphone and the second earphone may have a master-slave relationship, for example, the first earphone may be a master earphone, and the second earphone may be a slave earphone, where a classical bluetooth connection may be established between the first earphone as the master earphone and the terminal device, and the first earphone and the second earphone connected to the first earphone may be triggered to start LE Audio broadcast respectively. For example, in case the first earpiece establishes a classical bluetooth connection with the terminal device, the first earpiece may be triggered to turn on the LE Audio broadcast. On the basis, when the second earphone acquires connection event information of the classical Bluetooth connection between the first earphone and the terminal equipment through Bluetooth connection between the second earphone and the first earphone, the second earphone can be further triggered to start LE Audio broadcasting.
As an optional implementation manner, the first earphone may actively send the connection event information to the second earphone, so as to achieve information synchronization between the first earphone and the second earphone, and trigger the second earphone to start LE Audio broadcast. For example, when the first earphone and the terminal device establish a classical bluetooth connection (for example, the first earphone receives a first classical bluetooth connection request sent by the terminal device, or the first earphone sends a second classical bluetooth connection request to the terminal device and receives request feedback information fed back by the terminal device), a broadcast start instruction may be sent by the first earphone to the second earphone when the first earphone and the second earphone establish a bluetooth connection, and the second earphone is triggered to start LE Audio broadcast by the broadcast start instruction. The broadcast start command may include connection event information that the first earphone and the terminal device establish classical bluetooth connection.
As another optional implementation manner, the second earphone may also acquire the connection event information by using a listening manner, and trigger itself to start LE Audio broadcasting based on the connection event information. For example, when the first earphone and the terminal device establish the classical bluetooth connection, if the data transmission link between the first earphone and the terminal device is established, the second earphone can confirm the connection event information of the classical bluetooth connection established between the first earphone and the terminal device when the second earphone monitors the data transmission link, so as to start the LE Audio broadcast of the second earphone.
In other embodiments, the first earphone and the second earphone may also respectively and independently establish a classical bluetooth connection with the terminal device, and then respectively and independently turn on LE Audio broadcasting. In an exemplary embodiment, when the first earphone receives a third classical bluetooth connection request sent by the terminal device and the second earphone is in a scanning on state, LE Audio broadcasting may be started by the first earphone; meanwhile, the second earphone can also receive the third classical bluetooth connection request, so that the second earphone can also start LE Audio broadcasting.
It will be appreciated that the scan on state described above includes a page scan on state, such as the page scan mode of the first earpiece and/or the second earpiece being on. In some cases, the scan on state also includes querying a scan in scan on state, for example, the in scan mode of the first earphone and/or the second earphone is in an on state, which may be specifically set according to the actual requirement of the product.
For example, the first earphone and the second earphone may share the same BT address, so after the page scan mode is started, the page packets sent by the terminal device to the BT address may be received respectively, and then LE Audio broadcasting may be started respectively.
304. And receiving an LE Audio connection request which is fed back by the terminal equipment in response to the LE Audio broadcasting by the first earphone and/or the second earphone, and respectively establishing LE Audio Bluetooth connection with the terminal equipment by the first earphone and the second earphone according to the connection request.
Step 304 is similar to step 204 described above. In the embodiment of the application, the first earphone and the second earphone in the earphone device can both receive the LE Audio connection request of the terminal device in response to the LE Audio broadcast feedback, so that LE Audio bluetooth connection can be respectively established with the terminal device based on the connection request.
For example, when the first earphone receives the first LE Audio connection request (i.e. the data packet A2) sent by the terminal device and the first synchronization information (i.e. the data packet P1) sent by the terminal device after sending the first LE Audio connection request, the first earphone may send, in response to the first synchronization information, first connection acknowledgement information (i.e. the data packet P2) to the terminal device, so as to acknowledge the LE Audio bluetooth connection established between the first earphone and the terminal device. The first LE Audio connection request may be fed back to the first earphone by the terminal device in response to an LE Audio broadcast sent by the first earphone.
Similarly, when the second earphone receives the second LE Audio connection request (i.e. the data packet A2) sent by the terminal device and the second synchronization information (i.e. the data packet P1) sent after sending the second LE Audio connection request, the second earphone may also send, in response to the second synchronization information, second connection confirmation information (i.e. the data packet P2) to the terminal device, so as to confirm the LE Audio bluetooth connection established between the second earphone and the terminal device. Optionally, if the first earphone is the master earphone and the second earphone is the slave earphone, after the terminal device establishes LE Audio bluetooth connection with the first earphone, the terminal device may further determine whether the first earphone is matched with the second earphone in response to the LE Audio broadcast sent by the second earphone, and if the first earphone is matched with the second earphone, the terminal device may feed back the second LE Audio connection request to the second earphone, so as to ensure that the terminal device may respectively establish LE Audio bluetooth connection with the bluetooth device in the same combination.
The terminal device may obtain the SIPK (Set Identity Resolving Key, combined identifier resolution value) corresponding to the first earphone after the LE Audio bluetooth connection is established with the first earphone, so that when the terminal device further obtains the LE Audio broadcast data packet sent by the second earphone, the terminal device may analyze the broadcast data packet, and calculate the SIPK corresponding to the second earphone. Based on this, the terminal device may compare the SIPK corresponding to the first earphone with the SIPK corresponding to the second earphone, so as to determine whether the first earphone and the second earphone are matched, i.e. whether the first earphone and the second earphone belong to the same bluetooth device.
Therefore, by implementing the bluetooth connection method described in the above embodiment, the bluetooth device can conditionally start LE Audio broadcasting, that is, associated with establishing a classical bluetooth connection, for example, when the bluetooth device starts to connect with a terminal device through the classical bluetooth, so that the possibility that the bluetooth device is connected with the terminal device is higher, and the classical bluetooth connection does not need to receive a broadcast packet sent by the bluetooth device, and only needs to open a page scan mode, or open the page scan mode and the required scan mode, so that the terminal device can initiate the classical bluetooth connection, thereby avoiding continuous and long-time invalid broadcasting, effectively reducing the power consumption of the bluetooth device in the process of establishing connection with the terminal device, and being beneficial to improving the duration of the bluetooth device. In addition, when bluetooth equipment includes earphone equipment, open LE Audio broadcast respectively through a pair of earphone, can establish LE Audio bluetooth with terminal equipment independently respectively to can effectively reduce the time delay of bluetooth equipment on Audio data transmission, can realize dual mode connection simultaneously on classical bluetooth connection's basis, be favorable to promoting bluetooth equipment and terminal equipment and carry out bluetooth connection's flexibility and reliability.
Referring to fig. 4, fig. 4 is a schematic flow chart of another bluetooth connection method disclosed in an embodiment of the present application, where the method may be applied to the above-mentioned bluetooth device of the ear, the bluetooth device may include an earphone device, and the earphone device may include a first earphone and a second earphone. The first earphone may be a master earphone, and the second earphone may be a slave earphone. As shown in fig. 4, the bluetooth connection method may include the steps of:
402. and the Bluetooth equipment starts LE Audio broadcasting in the first time period, and stops LE Audio broadcasting if the Bluetooth equipment does not successfully establish LE Audio Bluetooth connection with the terminal equipment in the first time period.
In this embodiment of the present application, the bluetooth device may first start LE Audio broadcast for a first period of time (for example, 100 seconds, 120 seconds, etc.), and if the LE Audio bluetooth connection is not successfully established with the terminal device during the first period of time, the LE Audio broadcast is stopped first, and if classical bluetooth connection is subsequently established with the terminal device, the LE Audio broadcast is then conditionally started. The broadcasting mode can avoid the continuous and long-time invalid broadcasting of the Bluetooth equipment, and effectively reduces the power consumption of the Bluetooth equipment in the process of establishing connection with the terminal equipment. It can be appreciated that if the bluetooth device successfully establishes an LE Audio bluetooth connection with the terminal device during the first duration, LE Audio broadcasting may be stopped immediately.
It should be noted that the bluetooth device may include a headset device, and is applicable to different situations including only a single headset or including a pair of headset (i.e., a first headset and a second headset). Optionally, if one of the two earphones successfully establishes the LE Audio bluetooth connection with the terminal device within the first duration, the one earphone may immediately stop the LE Audio broadcast, and at this time, the other earphone may continue broadcasting until the LE Audio bluetooth connection is successfully established with the terminal device, or the first duration is reached.
In some embodiments, when the bluetooth device includes a headset device, the headset device may be placed in a headset box, so that the first time period may be counted from a transition of the headset box from the closed state to the open state. For example, in a case where the headphone device is placed in the headphone case, the headphone device may turn on LE Audio broadcasting when it is determined that the headphone case is transitioned from the off state to the on state. On the basis, if the LE Audio Bluetooth connection is not successfully established between the earphone device and the terminal device in the first time period, the LE Audio broadcasting can be stopped.
Optionally, in the case where the above headset device includes a first headset and a second headset, if the first headset and the second headset are both placed in the headset box, when it is determined that the headset box is turned from the closed state to the open state, the first headset may first establish a classical bluetooth connection with the second headset, and the LE Audio broadcast is turned on by the first headset and the second headset, respectively.
For example, the earphone box may be used to simultaneously place the first earphone and the second earphone, so as to realize functions of charging, powering on, waking up, and the like for the first earphone and/or the second earphone. In some embodiments, the earphone box may have a box cover, and the user may open the cover to change the earphone box from the closed state to the open state, and close the cover to change the earphone box from the open state to the closed state. In other embodiments, the earphone box may also have an on button, and the user may change the earphone box from the off state to the on state by clicking the on button, and may change the earphone box from the on state to the off state by clicking the off button (the on button may be multiplexed).
Taking an earphone box with a box cover as an example, referring to fig. 5, fig. 5 is a schematic diagram illustrating a transition from a closed state to an open state of the earphone box according to an embodiment of the present application. As shown in fig. 5, both the first earphone 11 and the second earphone 12 may be placed in the earphone box 30, and when the earphone box is opened, the first earphone 11 may establish a classical bluetooth connection with the second earphone 12, and respectively start LE Audio broadcasting until the LE Audio bluetooth connection is successfully established with the terminal device, or until the first time period is reached.
404. And triggering the first earphone to start LE Audio broadcasting under the condition that the first earphone establishes classical Bluetooth connection with the terminal equipment.
406. The method comprises the steps that a first LE Audio connection request sent by terminal equipment is received by a first earphone, first synchronization information sent by the terminal equipment after the first LE Audio connection request is sent is received by the first earphone, first connection confirmation information is sent to the terminal equipment in response to the first synchronization information, so that LE Audio Bluetooth connection is established between the first earphone and the terminal equipment, wherein the first LE Audio connection request is fed back to the first earphone by the terminal equipment in response to LE Audio broadcast sent by the first earphone.
Step 404 and step 406 mainly describe a process that the first earphone starts LE Audio broadcasting and finally establishes LE Audio bluetooth connection with the terminal device, and a specific embodiment of the process may be referred to as the description of step 304 above. The above is merely exemplary, and the procedure for establishing the LE Audio bluetooth connection may also be specified with reference to the relevant bluetooth protocol.
408. When the second earphone acquires connection event information of the classical Bluetooth connection between the first earphone and the terminal equipment through Bluetooth connection between the second earphone and the first earphone, triggering the second earphone to start LE Audio broadcasting.
410. The second earphone receives a second LE Audio connection request sent by the terminal equipment, and second synchronization information sent by the terminal equipment after the second LE Audio connection request is sent, and sends second connection confirmation information to the terminal equipment in response to the second synchronization information, so that LE Audio Bluetooth connection is established between the second earphone and the terminal equipment, wherein the second LE Audio connection request is sent by the terminal equipment after LE Audio Bluetooth connection is established between the terminal equipment and the first earphone, and whether the first earphone is matched with the second earphone is judged in response to LE Audio broadcast sent by the second earphone, and feedback is carried out to the second earphone under the condition that the first earphone is matched with the second earphone.
Step 408 and step 410 mainly describe a process of starting LE Audio broadcast by the second earphone and finally establishing LE Audio bluetooth connection with the terminal device, and a specific embodiment of the process may also be referred to the description of step 304 above. It will be appreciated that this step 408 and step 410 may be performed immediately after step 402, in parallel with step 404 and step 406.
412. And when the first earphone and/or the second earphone are/is successfully connected with the terminal equipment, stopping LE Audio broadcasting of the corresponding earphone.
In this embodiment of the present application, if any one of the first earphone and the second earphone successfully establishes an LE Audio bluetooth connection with the terminal device, the earphone may immediately stop LE Audio broadcasting, and at this time, the other earphone may still continue broadcasting until the LE Audio bluetooth connection is successfully established with the terminal device, or until a second duration (for example, 100 seconds, 120 seconds, etc.) is reached. The second duration may be the same as or different from the first duration, which is not specifically limited in the embodiment of the present application.
Therefore, by implementing the bluetooth connection method described in the above embodiment, the bluetooth device can conditionally start LE Audio broadcasting, that is, associated with establishing a classical bluetooth connection, for example, when the bluetooth device starts to connect with a terminal device through the classical bluetooth, so that the possibility that the bluetooth device is connected with the terminal device is higher, and the classical bluetooth connection does not need to receive a broadcast packet sent by the bluetooth device first, and can be initiated by the terminal device only by opening a page scan mode of the bluetooth device, thereby avoiding continuous and long-time invalid broadcasting, effectively reducing the power consumption of the bluetooth device in the process of establishing connection with the terminal device, and being beneficial to improving the endurance time of the bluetooth device. In addition, when bluetooth equipment includes earphone equipment, open LE Audio broadcast respectively through a pair of earphone, can establish LE Audio bluetooth with terminal equipment independently respectively to can effectively reduce the time delay of bluetooth equipment on Audio data transmission, can realize dual mode connection simultaneously on classical bluetooth connection's basis, be favorable to promoting bluetooth equipment and terminal equipment and carry out bluetooth connection's flexibility and reliability. In addition, the Bluetooth connection method can be directly realized on one side of the Bluetooth device, so that the Bluetooth connection method can be adapted to various terminal devices without additionally setting a private protocol, and is beneficial to further improving the flexibility of Bluetooth connection between the Bluetooth device and the terminal device.
Referring to fig. 6, fig. 6 is a timing chart of a bluetooth connection method disclosed in an embodiment of the present application, where the method may be applied to a bluetooth communication system that is formed by the bluetooth device and a terminal device, where the bluetooth device may include an earphone device, and the earphone device may include a first earphone and a second earphone. The first earphone may be a master earphone, and the second earphone may be a slave earphone. As shown in fig. 6, the bluetooth connection method may include the steps of:
602. in the case where both the first earphone and the second earphone are placed in the earphone box, when it is determined that the earphone box is transitioned from the off state to the on state, a classical bluetooth connection is established by the first earphone and the second earphone.
604A, the LE Audio broadcast is turned on by the first earpiece.
604B, turning on LE Audio broadcasting by the second earphone.
606. If the LE Audio Bluetooth connection is not successfully established between the earphone device and the terminal device in the first time period, the LE Audio broadcasting is stopped.
It should be noted that, if the first earphone and/or the second earphone successfully establishes an LE Audio bluetooth connection with the terminal device in the first period (for example, 100 seconds, 120 seconds, etc.), the LE Audio broadcasting of the corresponding earphone is immediately stopped.
608A, triggering the first earphone to start LE Audio broadcasting under the condition that the first earphone establishes classical bluetooth connection with the terminal equipment.
610A, the first earphone receives a first LE Audio connection request sent by the terminal device, and first synchronization information sent by the terminal device after sending the first LE Audio connection request, and sends first connection confirmation information to the terminal device in response to the first synchronization information, so that the first earphone and the terminal device establish LE Audio bluetooth connection.
The first LE Audio connection request is fed back to the first earphone by the terminal device in response to the LE Audio broadcast sent by the first earphone.
608B, when the second earphone obtains connection event information of the classical bluetooth connection between the first earphone and the terminal device through bluetooth connection between the second earphone and the first earphone, triggering the second earphone to start LE Audio broadcasting.
610B, the second earphone receives a second LE Audio connection request sent by the terminal device, and second synchronization information sent by the terminal device after sending the second LE Audio connection request, and sends second connection confirmation information to the terminal device in response to the second synchronization information, so that the second earphone and the terminal device establish LE Audio bluetooth connection.
The second LE Audio connection request may be that the terminal device receives an LE Audio broadcast sent by the second earphone, determines whether the first earphone is matched with the second earphone according to analysis of a broadcast packet, and feeds back the first earphone and the second earphone if the first earphone is matched with the second earphone.
612. And when the first earphone and/or the second earphone are/is successfully connected with the terminal equipment, stopping LE Audio broadcasting of the corresponding earphone.
In this embodiment of the present application, if any one of the first earphone and the second earphone successfully establishes an LE Audio bluetooth connection with the terminal device, the earphone may immediately stop LE Audio broadcasting, and at this time, the other earphone may still continue broadcasting until the LE Audio bluetooth connection is successfully established with the terminal device, or until a second duration (for example, 100 seconds, 120 seconds, etc.) is reached. The second duration may be the same as or different from the first duration, which is not specifically limited in the embodiment of the present application.
Therefore, by implementing the Bluetooth connection method described in the above embodiment, the Bluetooth device can be prevented from continuously and continuously performing invalid broadcasting for a long time, and the power consumption of the Bluetooth device in the process of establishing connection with the terminal device is effectively reduced, so that the duration of the Bluetooth device is improved. In addition, when bluetooth equipment includes earphone equipment, open LE Audio broadcast respectively through a pair of earphone, can establish LE Audio bluetooth with terminal equipment independently respectively to can effectively reduce the time delay of bluetooth equipment on Audio data transmission, can realize dual mode connection simultaneously on classical bluetooth connection's basis, be favorable to promoting bluetooth equipment and terminal equipment and carry out bluetooth connection's flexibility and reliability. In addition, the Bluetooth connection method can be directly realized on one side of the Bluetooth device, so that the Bluetooth connection method can be adapted to various terminal devices without additionally setting a private protocol, and is beneficial to further improving the flexibility of Bluetooth connection between the Bluetooth device and the terminal device.
Referring to fig. 7, fig. 7 is a schematic block diagram of a bluetooth connection device according to an embodiment of the present application, where the bluetooth connection device may be applied to the bluetooth device. As shown in fig. 7, the bluetooth connection device may include a broadcast start unit 701 and a bluetooth connection unit 702, wherein:
a broadcast starting unit 701, configured to start low-power Audio LE Audio broadcast when the bluetooth device and the terminal device establish a classical bluetooth connection;
the bluetooth connection unit 702 is configured to receive an LE Audio connection request sent by the terminal device in response to the LE Audio broadcast feedback, and establish an LE Audio bluetooth connection with the terminal device according to the connection request.
It can be seen that, with the bluetooth connection device described in the foregoing embodiment, if the bluetooth device needs to establish an LE Audio bluetooth connection with the terminal device, the entire LE Audio connection procedure may be started by starting LE Audio broadcast when the bluetooth device establishes a classical bluetooth connection with the terminal device. Therefore, the Bluetooth device can conditionally start LE Audio broadcasting, for example, when the Bluetooth device starts to connect with the terminal device through classical Bluetooth, the possibility that the Bluetooth device is connected with the terminal device is higher, and invalid broadcasting can be avoided continuously and for a long time, so that the power consumption of the Bluetooth device in the process of establishing connection with the terminal device is effectively reduced, and the duration of the Bluetooth device is prolonged.
In an embodiment, the broadcast starting unit 701 may be specifically configured to start LE Audio broadcast when receiving a first classical bluetooth connection request sent by a terminal device to a bluetooth device.
In another embodiment, the broadcast starting unit 701 may be specifically configured to start LE Audio broadcast when the bluetooth device sends a second classical bluetooth connection request to the terminal device; or when the Bluetooth device sends a second classical Bluetooth connection request to the terminal device and receives the request feedback information fed back by the terminal device in response to the second classical Bluetooth connection request, starting LE Audio broadcasting.
In an embodiment, the bluetooth device may include a headset device, where the headset device may include a first headset and a second headset, and the broadcast starting unit 701 may be specifically configured to, when the headset device establishes a classical bluetooth connection with the terminal device, respectively start LE Audio broadcast by the first headset and the second headset;
the bluetooth connection unit 702 may specifically be configured to receive, by the first earphone and/or the second earphone, an LE Audio connection request of the terminal device in response to the LE Audio broadcast feedback, and according to the connection request, establish LE Audio bluetooth connection with the terminal device by the first earphone and the second earphone, respectively.
In an embodiment, the first earphone may be a master earphone, and the second earphone may be a slave earphone, and the broadcast start unit 701 may include a first promoter unit and a second promoter unit, which are not shown, where:
the first promoter unit can be used for triggering the first earphone to start LE Audio broadcasting under the condition that classical Bluetooth connection is established between the first earphone and the terminal equipment;
the second promoter unit may be configured to trigger the second earphone to start LE Audio broadcast when the second earphone obtains connection event information that the first earphone establishes classical bluetooth connection with the terminal device through bluetooth connection with the first earphone.
As an optional implementation manner, the first promoter unit may be further configured to send a broadcast start instruction to the second earphone by the first earphone when the first earphone and the second earphone establish a bluetooth connection, and then the second promoter unit may trigger the second earphone to start LE Audio broadcasting by using the broadcast start instruction, where the broadcast start instruction may include connection event information that the first earphone and the terminal device establish a classical bluetooth connection.
As another optional implementation manner, the first promoter unit may also be configured to, when the first earphone receives a third classical bluetooth connection request sent by the terminal device and the first earphone is in a scanning on state, turn on LE Audio broadcast by the first earphone;
And the second promoter unit may be configured to enable LE Audio broadcast by the second earphone when the second earphone receives the third classical bluetooth connection request.
In one embodiment, the bluetooth connection unit 702 may include a first connection subunit and a second connection subunit, which are not shown, wherein:
the first connection subunit may be configured to receive, by a first earpiece, a first LE Audio connection request sent by a terminal device, and first synchronization information sent by the terminal device after sending the first LE Audio connection request, and send, in response to the first synchronization information, first connection acknowledgement information to the terminal device, so that the first earpiece and the terminal device establish an LE Audio bluetooth connection, where the first LE Audio connection request is fed back to the first earpiece by the terminal device in response to an LE Audio broadcast sent by the first earpiece;
the second connection subunit may be configured to receive, by the second ue, a second LE Audio connection request sent by the terminal device, and second synchronization information sent by the terminal device after sending the second LE Audio connection request, and send, in response to the second synchronization information, second connection acknowledgement information to the terminal device, so that the second ue establishes an LE Audio bluetooth connection with the terminal device, where the second LE Audio connection request is sent by the terminal device after establishing an LE Audio bluetooth connection with the first ue, and in response to an LE Audio broadcast sent by the second ue, determine whether the first ue is matched with the second ue, and feedback, in case that the first ue is matched with the second ue, to the second ue.
Therefore, when the Bluetooth device comprises the earphone device, the LE Audio broadcast is started through the pair of earphones, and the LE Audio Bluetooth connection can be established with the terminal device independently, so that the time delay of the Bluetooth device on Audio data transmission can be effectively reduced, meanwhile, dual-mode connection can be realized on the basis of classical Bluetooth connection, and the flexibility and reliability of Bluetooth connection between the Bluetooth device and the terminal device can be improved.
In an embodiment, the bluetooth connection apparatus may further include a first broadcast control unit, not shown, where the first broadcast control unit is configured to start LE Audio broadcast for a first period of time before the broadcast start unit 701 starts the low-power consumption Audio LE Audio broadcast when the bluetooth device establishes a classical bluetooth connection with the terminal device, and stop the LE Audio broadcast if the bluetooth device does not successfully establish the LE Audio bluetooth connection with the terminal device for the first period of time.
In one embodiment, the bluetooth device may include an earphone device, and the first broadcast control unit may specifically be configured to:
when it is determined that the earphone box is transitioned from the off state to the on state in a case where the earphone device is placed in the earphone box, turning on LE Audio broadcasting by the earphone device;
If the earphone device does not successfully establish LE Audio Bluetooth connection with the terminal device within the first duration, the LE Audio broadcasting is stopped.
In an embodiment, the earphone device may include a first earphone and a second earphone, and the first broadcast control unit may specifically include:
in the case where both the first earphone and the second earphone are placed in the earphone box, when it is determined that the earphone box is transitioned from the closed state to the open state, a classical bluetooth connection is established by the first earphone and the second earphone;
and starting LE Audio broadcasting by the first earphone and the second earphone respectively.
In an embodiment, the bluetooth connection apparatus may further include a second broadcast control unit, which is not illustrated, and the second broadcast control unit may be configured to stop LE Audio broadcasting when the bluetooth device successfully establishes LE Audio bluetooth connection with the terminal device after the bluetooth connection unit 702 establishes LE Audio bluetooth connection with the terminal device according to the connection request.
Therefore, by adopting the Bluetooth connecting device described in the embodiment, the Bluetooth equipment can be prevented from continuously and invalidity broadcasting for a long time, and the power consumption of the Bluetooth equipment in the process of establishing connection with the terminal equipment is effectively reduced, so that the duration of the Bluetooth equipment is prolonged. In addition, when bluetooth equipment includes earphone equipment, open LE Audio broadcast respectively through a pair of earphone, can establish LE Audio bluetooth with terminal equipment independently respectively to can effectively reduce the time delay of bluetooth equipment on Audio data transmission, can realize dual mode connection simultaneously on classical bluetooth connection's basis, be favorable to promoting bluetooth equipment and terminal equipment and carry out bluetooth connection's flexibility and reliability. In addition, the Bluetooth connection method can be directly realized on one side of the Bluetooth device, so that the Bluetooth connection method can be adapted to various terminal devices without additionally setting a private protocol, and is beneficial to further improving the flexibility of Bluetooth connection between the Bluetooth device and the terminal device.
Referring to fig. 8, fig. 8 is a schematic diagram of a headset according to an embodiment of the present disclosure. As shown in fig. 8, the audio output device may include:
a memory 801 storing executable program code;
a processor 802 coupled to the memory 801;
the processor 802 invokes executable program codes stored in the memory 801, and may perform all or part of the steps of any of the bluetooth connection methods applied to the first earphone described in the above embodiments.
Further, the embodiments of the present application further disclose a computer-readable storage medium storing a computer program for electronic data exchange, wherein the computer program makes a computer execute all or part of the steps of any of the bluetooth connection methods applied to the audio output device, the first terminal device or the second terminal device described in the above embodiments.
Furthermore, the embodiments further disclose a computer program product which, when run on a computer, enables the computer to perform all or part of the steps of any of the bluetooth connection methods described in the above embodiments.
Those of ordinary skill in the art will appreciate that all or part of the steps of the various methods of the above embodiments may be implemented by a program that instructs associated hardware, the program may be stored in a computer readable storage medium including Read-Only Memory (ROM), random access Memory (Random Access Memory, RAM), programmable Read-Only Memory (Programmable Read-Only Memory, PROM), erasable programmable Read-Only Memory (Erasable Programmable Read Only Memory, EPROM), one-time programmable Read-Only Memory (OTPROM), electrically erasable programmable Read-Only Memory (EEPROM), compact disc Read-Only Memory (Compact Disc Read-Only Memory, CD-ROM) or other optical disk Memory, magnetic disk Memory, tape Memory, or any other medium that can be used for carrying or storing data that is readable by a computer.
The above describes in detail a bluetooth connection method and apparatus, a bluetooth device, and a storage medium disclosed in the embodiments of the present application, and specific examples are applied to illustrate the principles and embodiments of the present application, where the descriptions of the above embodiments are only used to help understand the method and core ideas of the present application; meanwhile, as those skilled in the art will have modifications in the specific embodiments and application scope in accordance with the ideas of the present application, the present description should not be construed as limiting the present application in view of the above.

Claims (15)

1. A bluetooth connection method, applied to a bluetooth device, the method comprising:
under the condition that the Bluetooth equipment and the terminal equipment establish classical Bluetooth connection, starting low-power Audio LE Audio broadcasting;
and receiving an LE Audio connection request of the terminal equipment in response to the LE Audio broadcast feedback, and establishing LE Audio Bluetooth connection with the terminal equipment according to the connection request.
2. The method according to claim 1, wherein said turning on low power Audio LE Audio broadcasting in case of said bluetooth device establishing a classical bluetooth connection with a terminal device, comprises:
And when receiving a first classical Bluetooth connection request sent by the terminal equipment to the Bluetooth equipment, starting LE Audio broadcasting.
3. The method according to claim 1, wherein said turning on low power Audio LE Audio broadcasting in case of said bluetooth device establishing a classical bluetooth connection with a terminal device, comprises:
when the Bluetooth equipment sends a second classical Bluetooth connection request to the terminal equipment, starting LE Audio broadcasting; or alternatively, the process may be performed,
and when the Bluetooth equipment sends a second classical Bluetooth connection request to the terminal equipment and receives request feedback information fed back by the terminal equipment in response to the second classical Bluetooth connection request, starting LE Audio broadcasting.
4. A method according to any of claims 1 to 3, wherein the bluetooth device comprises a headset device, the headset device comprising a first headset and a second headset, the turning on a low power Audio LE Audio broadcast in case the bluetooth device establishes a classical bluetooth connection with a terminal device, comprising:
under the condition that classical Bluetooth connection is established between the earphone equipment and the terminal equipment, respectively starting LE Audio broadcasting by the first earphone and the second earphone;
The receiving the LE Audio connection request of the terminal equipment in response to the LE Audio broadcast feedback, and establishing LE Audio bluetooth connection with the terminal equipment according to the connection request, including:
and receiving an LE Audio connection request of the terminal equipment in response to the LE Audio broadcasting feedback by the first earphone and/or the second earphone, and respectively establishing LE Audio Bluetooth connection with the terminal equipment by the first earphone and the second earphone according to the connection request.
5. The method according to claim 4, wherein the first earphone is a master earphone, the second earphone is a slave earphone, and the LE Audio broadcasting is turned on by the first earphone and the second earphone respectively in the case that the earphone device establishes a classical bluetooth connection with a terminal device, including:
triggering the first earphone to start LE Audio broadcasting under the condition that classical Bluetooth connection is established between the first earphone and terminal equipment;
when the second earphone acquires connection event information of classical Bluetooth connection between the first earphone and the terminal equipment through Bluetooth connection between the second earphone and the first earphone, triggering the second earphone to start LE Audio broadcasting.
6. The method as claimed in claim 5, wherein when the second earphone obtains a connection event that the first earphone establishes a classical bluetooth connection with the terminal device through a bluetooth connection with the first earphone, triggering the second earphone to start LE Audio broadcasting includes:
and under the condition that the first earphone and the second earphone are connected by Bluetooth, the first earphone sends a broadcast starting instruction to the second earphone, and the second earphone is triggered to start LE Audio broadcasting by the broadcast starting instruction, wherein the broadcast starting instruction comprises connection event information for establishing classical Bluetooth connection between the first earphone and the terminal equipment.
7. The method according to claim 4, wherein the starting LE Audio broadcasting by the first and second headphones, respectively, in the case where the headphone device establishes a classical bluetooth connection with a terminal device, comprises:
when the first earphone receives a third classical Bluetooth connection request sent by a terminal device under the condition that the first earphone and the second earphone are both in a scanning starting state, starting LE Audio broadcasting by the first earphone; the method comprises the steps of,
And when the second earphone receives the third classical Bluetooth connection request, starting LE Audio broadcasting by the second earphone.
8. The method according to claim 4, wherein the receiving, by the first earphone and/or the second earphone, the LE Audio connection request of the terminal device in response to the LE Audio broadcast feedback, and establishing, by the first earphone and the second earphone, LE Audio bluetooth connection with the terminal device according to the connection request, respectively, includes:
receiving a first LE Audio connection request sent by the terminal equipment by the first earphone, and sending first synchronization information by the terminal equipment after sending the first LE Audio connection request, and responding to the first synchronization information, and sending first connection confirmation information to the terminal equipment so as to enable the first earphone to establish LE Audio Bluetooth connection with the terminal equipment, wherein the first LE Audio connection request is sent by the terminal equipment in response to LE Audio broadcast sent by the first earphone and fed back to the first earphone;
the second earphone receives a second LE Audio connection request sent by the terminal equipment, and second synchronization information sent by the terminal equipment after the second LE Audio connection request is sent, and sends second connection confirmation information to the terminal equipment in response to the second synchronization information, so that LE Audio Bluetooth connection is established between the second earphone and the terminal equipment, wherein the second LE Audio connection request is sent by the terminal equipment after LE Audio Bluetooth connection is established between the second earphone and the first earphone, and whether the first earphone is matched with the second earphone is judged in response to LE Audio broadcast sent by the second earphone, and feedback is sent to the second earphone under the condition that the first earphone is matched with the second earphone.
9. A method according to any one of claims 1 to 3, wherein, in the case where the bluetooth device establishes a classical bluetooth connection with a terminal device, before starting low energy Audio LE Audio broadcasting, the method further comprises:
and starting LE Audio broadcasting in a first time period, and stopping LE Audio broadcasting if the Bluetooth equipment does not successfully establish LE Audio Bluetooth connection with the terminal equipment in the first time period.
10. The method as claimed in claim 9, wherein the bluetooth device includes an earphone device, the starting LE Audio broadcasting in a first duration, and stopping LE Audio broadcasting if the bluetooth device does not successfully establish the LE Audio bluetooth connection with the terminal device in the first duration, including:
when the earphone box is determined to be changed from a closed state to an open state under the condition that the earphone device is placed in the earphone box, the earphone device starts LE Audio broadcasting;
and if the LE Audio Bluetooth connection is not successfully established between the earphone equipment and the terminal equipment within the first duration, stopping LE Audio broadcasting.
11. The method according to claim 10, wherein the earphone device includes a first earphone and a second earphone, and wherein the earphone device turns on LE Audio broadcasting when it is determined that the earphone box is transitioned from the off state to the on state in a case where the earphone device is placed in the earphone box, comprising:
When it is determined that the earphone box is changed from the off state to the on state in a case where both the first earphone and the second earphone are placed in the earphone box, establishing a classical bluetooth connection by the first earphone and the second earphone;
and starting LE Audio broadcasting by the first earphone and the second earphone respectively.
12. A method according to any one of claims 1 to 3, characterized in that after said establishing an LE Audio bluetooth connection with said terminal device according to said connection request, said method further comprises:
and stopping LE Audio broadcasting when the Bluetooth equipment and the terminal equipment successfully establish LE Audio Bluetooth connection.
13. A bluetooth connection device, characterized in that it is applied to bluetooth equipment, said bluetooth connection device comprising:
the broadcasting starting unit is used for starting low-power-consumption Audio LE Audio broadcasting under the condition that the Bluetooth equipment and the terminal equipment establish classical Bluetooth connection;
and the Bluetooth connection unit is used for receiving the LE Audio connection request of the terminal equipment in response to the LE Audio broadcast feedback, and establishing LE Audio Bluetooth connection with the terminal equipment according to the connection request.
14. A bluetooth device comprising a memory and a processor, the memory having stored therein a computer program which, when executed by the processor, causes the processor to implement the method of any of claims 1 to 12.
15. A computer readable storage medium, on which a computer program is stored, which computer program, when being executed by a processor, implements the method according to any one of claims 1 to 12.
CN202111437251.2A 2021-11-29 2021-11-29 Bluetooth connection method and device, bluetooth equipment and storage medium Pending CN116193407A (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN202111437251.2A CN116193407A (en) 2021-11-29 2021-11-29 Bluetooth connection method and device, bluetooth equipment and storage medium
PCT/CN2022/118375 WO2023093223A1 (en) 2021-11-29 2022-09-13 Bluetooth connection method and apparatus, and bluetooth device and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111437251.2A CN116193407A (en) 2021-11-29 2021-11-29 Bluetooth connection method and device, bluetooth equipment and storage medium

Publications (1)

Publication Number Publication Date
CN116193407A true CN116193407A (en) 2023-05-30

Family

ID=86438964

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111437251.2A Pending CN116193407A (en) 2021-11-29 2021-11-29 Bluetooth connection method and device, bluetooth equipment and storage medium

Country Status (2)

Country Link
CN (1) CN116193407A (en)
WO (1) WO2023093223A1 (en)

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2014076527A1 (en) * 2012-11-19 2014-05-22 Nokia Corporation Method and apparatus for generating a bluetooth low energy data packet comprising audio payload data.
CN107277754B (en) * 2017-07-12 2020-02-28 深圳市冠旭电子股份有限公司 Bluetooth connection method and Bluetooth peripheral equipment
CN111436039B (en) * 2019-10-23 2023-05-09 珠海市杰理科技股份有限公司 Bluetooth reconnection method and system, bluetooth master and slave equipment reconnection method and Bluetooth master and slave equipment
CN111436038B (en) * 2019-10-23 2023-05-05 珠海市杰理科技股份有限公司 Bluetooth connection method and system, bluetooth master and slave device connection method and Bluetooth master and slave devices
CN111294737B (en) * 2020-02-28 2020-11-10 深圳市中科蓝讯科技股份有限公司 Method and system for generating and transmitting BLE broadcast packet through classic Bluetooth
CN112261638B (en) * 2020-09-30 2022-08-12 厦门亿联网络技术股份有限公司 Method and device for rapidly identifying dual-mode Bluetooth device, IOS device and medium

Also Published As

Publication number Publication date
WO2023093223A1 (en) 2023-06-01

Similar Documents

Publication Publication Date Title
US11438962B2 (en) Method and apparatus for establishing single-line connection, and wireless headset and charging box
CN108174457B (en) Charging box, communication system and communication method of Bluetooth headset
EP3493643B1 (en) Bluetooth communication method and terminal
EP3808115B1 (en) Low-latency audio streaming with communication coexistence
JP3790186B2 (en) Device hiding
CN108419226B (en) Method for connecting Bluetooth devices and Bluetooth devices
US20200322788A1 (en) Address management for bluetooth devices
CN111200769A (en) Communication method for Bluetooth headset device and Bluetooth headset device
US20160366263A1 (en) Method and device for transmitting or receiving data in wireless communication system
US20100151791A1 (en) Audio data service provision method and system
KR20210091154A (en) Extended connection method and extended connection system for Bluetooth devices
WO2016080798A1 (en) Method for performing pairing between devices in wireless communication system supporting bluetooth communication and apparatus therefor
WO2020077659A1 (en) Mode-switchable bluetooth device, bluetooth connection system, and bluetooth connection method
WO2023036178A1 (en) Bluetooth connection method and apparatus, earphone device, and computer-readable storage medium
CN111757306B (en) External playing method and system based on earphone charging box and readable storage medium
CN114040373A (en) Audio service processing method and device, electronic equipment and storage medium
JP7173956B2 (en) COMMUNICATION METHOD, COMMUNICATION DEVICE, ELECTRONIC DEVICE, AND COMPUTER-READABLE STORAGE MEDIUM
CN112995829B (en) Audio processing assembly for wireless communication and signal processing method thereof
CN116193407A (en) Bluetooth connection method and device, bluetooth equipment and storage medium
WO2008085882A1 (en) System and method for wireless communication
CN116321084A (en) Bluetooth communication method, bluetooth communication device, electronic equipment and computer readable medium
CN115967927A (en) Bluetooth connection method and device, earphone and storage medium
CN115278615A (en) Method and device for controlling transmission of Bluetooth equipment and electronic equipment
CN115396856A (en) Method, device, equipment and storage medium for establishing Bluetooth link
WO2024016885A1 (en) Bluetooth connection method and apparatus, electronic device, and computer readable storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination