WO2023093328A1 - Bluetooth back-connection method and apparatus, information storage method and apparatus, and terminal device - Google Patents

Bluetooth back-connection method and apparatus, information storage method and apparatus, and terminal device Download PDF

Info

Publication number
WO2023093328A1
WO2023093328A1 PCT/CN2022/124405 CN2022124405W WO2023093328A1 WO 2023093328 A1 WO2023093328 A1 WO 2023093328A1 CN 2022124405 W CN2022124405 W CN 2022124405W WO 2023093328 A1 WO2023093328 A1 WO 2023093328A1
Authority
WO
WIPO (PCT)
Prior art keywords
electronic device
bluetooth
connection
information
same group
Prior art date
Application number
PCT/CN2022/124405
Other languages
French (fr)
Chinese (zh)
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 WO2023093328A1 publication Critical patent/WO2023093328A1/en

Links

Images

Classifications

    • 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
    • H04W76/00Connection management
    • H04W76/10Connection setup
    • 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 field of communication technologies, and in particular to a Bluetooth connection back method and device, an information storage method and device, and a terminal device.
  • Bluetooth communication technology is a short-distance wireless communication connection technology, which has the advantages of low cost, low power consumption, fast data transmission, and wide application range. It has become one of the mainstream communication technologies supported by most electronic devices on the market. In order to enable faster Bluetooth connection between electronic devices, the electronic device can be connected back to other devices that have previously established a Bluetooth connection. At present, the bluetooth connection scheme needs to be further optimized.
  • Embodiments of the present application provide a Bluetooth connection back method and device, an information storage method and device, a terminal device, and a storage medium.
  • An embodiment of the present application provides a Bluetooth connection back method, which is applied to a terminal device, and the method includes:
  • the information to be connected back is generated according to the device information of one or more electronic devices that have established a Bluetooth connection with the terminal device, and the one or more electronic devices belong to the same group of Bluetooth devices middle;
  • An embodiment of the present application provides an information storage method, which is applied to a terminal device, and the method includes:
  • the same information combination set is used to determine the information to be connected back, and the information to be connected back is used to trigger a connection back with at least one target electronic device in the same group of bluetooth devices.
  • An embodiment of the present application provides a Bluetooth connection back device, which is applied to a terminal device, and the device includes:
  • An information determination module configured to determine the information to be connected back, the information to be connected back is generated according to the device information of one or more electronic devices that have established a Bluetooth connection with the terminal device, and the one or more electronic devices The device belongs to the same group of Bluetooth devices;
  • a Bluetooth connection module configured to perform a Bluetooth connection with at least one target electronic device in the same group of Bluetooth devices according to the information to be connected back.
  • An embodiment of the present application provides an information storage device, which is applied to a terminal device, and the device includes:
  • the Bluetooth connection module is used to respectively establish a classic Bluetooth connection and a first LE Audio connection with the first electronic device, and establish a second LE Audio connection with the second electronic device, wherein the first electronic device and the second electronic device belong to The same group of Bluetooth devices;
  • a storage module configured to store the device information of the first electronic device and the device information of the second electronic device in the same information combination set, the same information combination set is used to determine the information to be connected back, the The connection back information is used to trigger a connection back with at least one target electronic device in the same group of Bluetooth devices.
  • An embodiment of the present application provides a terminal device, including a memory and a processor, where a computer program is stored in the memory, and when the computer program is executed by the processor, the processor implements any of the methods described above .
  • An embodiment of the present application provides a computer-readable storage medium, on which a computer program is stored, and when the computer program is executed by a processor, any method described above is implemented.
  • FIG. 1A is an application scene diagram of a bluetooth connection back method in an embodiment
  • FIG. 1B is an application scenario diagram of an information storage method in an embodiment
  • Fig. 2 is the flow chart of bluetooth connection back method in one embodiment
  • FIG. 3 is a flow chart of performing a Bluetooth connection with at least one target electronic device in the same group of Bluetooth devices according to the connection-to-be-connected information in an embodiment
  • FIG. 4A is a schematic diagram of the sequence of the Bluetooth connection back method in an embodiment
  • FIG. 4B is a schematic diagram of the sequence of the Bluetooth connection back method in another embodiment
  • Fig. 5 is the flow chart of bluetooth connection back method in another embodiment
  • FIG. 6 is a schematic diagram of a sequence of bluetooth connections performed by a terminal device in an embodiment
  • Fig. 7 is a flowchart of an information storage method in an embodiment
  • FIG. 8 is a block diagram of a Bluetooth connection device in an embodiment
  • Fig. 9 is a block diagram of an information storage device in an embodiment
  • Fig. 10 is a structural block diagram of a terminal device in an embodiment.
  • first, second and the like used in this application may be used to describe various elements herein, but these elements are not limited by these terms. These terms are only used to distinguish one element from another.
  • a first electronic device could be termed a second electronic device, and, similarly, a second electronic device could be termed a first electronic device, without departing from the scope of the present application.
  • Both the first electronic device and the second electronic device are electronic devices, but they are not the same electronic device.
  • the term “plurality” used in this application refers to two or more than two.
  • the term “and/or” used in this application refers to one of them, or any combination of multiple of them.
  • FIG. 1A is an application scene diagram of a Bluetooth connection back method in an embodiment.
  • the electronic device 210 and the electronic device 220 belong to the same group of Bluetooth devices, and both the electronic device 210 and the electronic device 220 have previously established a Bluetooth connection with the terminal device 10 .
  • the terminal device 10 may include but not limited to a mobile phone, a smart wearable device, a vehicle terminal, a tablet computer, a PC (Personal Computer, personal computer), a PDA (Personal Digital Assistant, personal digital assistant) and the like.
  • the electronic device 210 and the electronic device 220 may include, but are not limited to, earphones, mobile phones, wearable devices, speaker devices, smart home devices, and the like.
  • the electronic device 210 and the electronic device 220 may be supporting devices, for example, the electronic device 210 and the electronic device 220 may belong to the same earphone device, the electronic device 210 is the left earphone in the earphone device, and the electronic device 220 is the earphone device The right earphone in the earphone device, or the electronic device 210 is the right earphone in the earphone device, and the electronic device 220 is the left earphone in the earphone device, etc.
  • the earphone device may be a TWS (True Wireless Stereo, true wireless stereo) earphone.
  • Bluetooth devices may also include other electronic devices except the electronic device 210 and the electronic device 220 , and is not limited to the electronic device 210 and the electronic device 220 in FIG. 1A .
  • the terminal device can determine the information to be connected back, the information to be connected back can be generated according to the device information of the electronic device 210 and the electronic device 220, and the electronic device 210 and/or Or the electronic device 220 performs a Bluetooth connection.
  • the terminal device may send a connection back request to the electronic device 210 and/or the electronic device 220 according to the connection back information, so as to perform a Bluetooth connection with the electronic device 210 and/or the electronic device 220 .
  • the terminal device, the electronic device 210 and the electronic device 220 can all be electronic devices supporting Bluetooth dual-mode, and the electronic device supporting Bluetooth dual-mode can refer to supporting both the classic Bluetooth protocol and the BLE (Bluetooth Low Energy, Bluetooth Low Energy) protocol electronic equipment.
  • the classic Bluetooth protocol can support data transmission with a large amount of data
  • the BLE protocol can support data transmission with high real-time requirements.
  • FIG. 1B is an application scenario diagram of an information storage method in an embodiment.
  • the establishment of the Bluetooth connection between the terminal device and the electronic device 210 and the electronic device 220 will now be described with reference to FIG. 1B .
  • the terminal device, the electronic device 210 and the electronic device 220 can all be electronic devices supporting Bluetooth dual-mode, and the terminal device, the electronic device 210 and the electronic device 220 can all support the classic Bluetooth protocol and BLE Audio (Bluetooth Low Energy Audio, Bluetooth Low Energy Audio, Power Consumption Audio) protocol for electronic devices.
  • the classic Bluetooth protocol generally refers to the Bluetooth protocol below the Bluetooth protocol version 4.0
  • the BLE protocol generally refers to the Bluetooth protocol above the Bluetooth protocol version 4.0.
  • the BLE Audio technology solves the problem that the BLE connection can only transmit data with a small amount of data, but cannot transmit audio data.
  • the BLE Audio protocol supports LC3 (Low Complexity Communications Codec, low-power audio codec) encoded audio Data, so that the transmission of audio data can better take into account various aspects of power consumption, real-time performance and sound quality.
  • the sound quality of LDAC encoding based on the classic Bluetooth protocol may be better than that of the LC3 encoding supported by the BLE Audio protocol, so it can be based on the classic Bluetooth Protocol for audio data transmission; when users play games through terminal devices, audio data transmission based on BLE Audio protocol can reduce delay and so on.
  • the terminal device 10 can establish a classic Bluetooth connection and a LE Audio Bluetooth connection with the electronic device 210 at the same time, and the terminal device 10 can establish a LE Audio Bluetooth connection with the electronic device 220.
  • the terminal device 10 may store the device information of the electronic device 210 and the device information of the electronic device 220 in the same information combination set.
  • the terminal device When the terminal device needs to connect back to the same group of Bluetooth devices to which the electronic device 210 and the electronic device 220 belong, it can determine the information to be connected back from the information combination, and perform Bluetooth back-up with the electronic device 210 and/or the electronic device 220. even.
  • a Bluetooth connection (which may be a classic Bluetooth connection or a BLE connection) may also be established between the electronic device 210 and the electronic device 220, so as to ensure that the electronic device 210 and the electronic device 220 belonging to the same group of Bluetooth devices realize data synchronization.
  • the electronic device 220 may monitor the classic Bluetooth connection between the terminal device and the electronic device 210, or the electronic device 210 may connect the classic Bluetooth connection with the The data transmitted between the terminal devices is synchronized to the electronic device 220 to ensure that when the terminal device transmits data with the electronic device 210 through the classic Bluetooth connection, the electronic device 220 can also obtain the transmitted data synchronously.
  • the terminal equipment After the terminal equipment establishes the first LE Audio Bluetooth connection with the electronic device 210 and the second LE Audio Bluetooth connection with the electronic device 220, it can respectively synchronize to the electronic device through the first LE Audio Bluetooth connection and the second LE Audio Bluetooth connection.
  • the device 210 and the electronic device 220 send audio data to ensure synchronization of audio data received between the electronic device 210 and the electronic device 220 .
  • a Bluetooth connection back method is provided, which can be applied to the above-mentioned terminal device, and the method may include the following steps:
  • Step 210 determine the information to be connected back, the information to be connected back is generated according to the device information of one or more electronic devices that have established a Bluetooth connection with the terminal device, and the one or more electronic devices belong to the same group of Bluetooth devices of.
  • the terminal device when the terminal device is in the connection back state, it can determine the connection back information, and perform the Bluetooth connection back according to the connection back information.
  • the trigger conditions for the terminal device to enter the reconnection state can be set according to actual needs. For example, when the terminal device turns on the Bluetooth module, it can trigger the terminal device to enter the reconnection state; or when the terminal device detects that it is disconnected from any electronic device with Bluetooth When connected, the terminal device can be triggered to enter the reconnection state; or when the terminal device detects that it is disconnected from all electronic devices through Bluetooth, it can trigger the terminal device to enter the reconnection state, etc., but is not limited to this.
  • the information to be connected back may be generated based on the device information of one or more electronic devices belonging to the same group of Bluetooth devices, and the information to be connected back may be used to represent the same group of Bluetooth devices, or may be used to represent Any electronic device in the same group of Bluetooth devices.
  • the information to be connected back may include the BLE address corresponding to each electronic device in the same group of Bluetooth devices; or the information to be connected back may include the classic Bluetooth address shared by each electronic device in the same group of Bluetooth devices, etc., but is not limited to this.
  • a connection record may be stored in the terminal device, and the connection record may be used to record device information corresponding to each electronic device with which the terminal device has established a Bluetooth connection, wherein the device information may include but not limited to At least one of the classic Bluetooth address, BLE address, device name, SIRK (Set Identity Resolving Key, combined identification resolution value), etc., where the BLE address can be used to identify the device identity of the electronic device in LE Audio Bluetooth technology.
  • the terminal device may store the device information of each electronic device belonging to the same group of Bluetooth devices in the same information combination set in the connection record.
  • CSIP Coordinated Set Identification Profile, Coordinated Set Identification Protocol
  • BLE Audio technology which allows each electronic device belonging to the same group of Bluetooth devices to exchange information with other external devices (such as the terminal device of this application) , achieve the goal of coordination and synchronization.
  • the terminal device can accurately identify each independent electronic device belonging to the same group of Bluetooth devices as the same combination. For example, each electronic device belonging to the same group of Bluetooth devices can correspond to the same The SIRK of each electronic device is judged, and the electronic devices with the same SIRK are identified as the same group of Bluetooth devices.
  • Bluetooth reconnection refers to re-establishing a Bluetooth connection based on the connection record after disconnecting the previously connected electronic device.
  • the bluetooth connection can be at least one of classic bluetooth connection, LE Audio bluetooth connection, BLE bluetooth connection.
  • Establishing a Bluetooth connection can be understood as establishing a communication link that can transmit data according to the relevant Bluetooth protocol.
  • establishing a classic Bluetooth connection can be understood as including establishing an ACL (Asynchronous Connectionless) asynchronous connectionless link or an SCO (Synchronous Connection Oriented) connection-oriented
  • ACL Asynchronous Connectionless
  • SCO Synchronous Connection Oriented
  • the terminal device when the terminal device is connected back, it usually only connects back to one electronic device (for example, only connects back to the electronic device that established the bluetooth connection last time), for multiple electronic devices in the same group of bluetooth devices
  • a pair of TWS earphones can be regarded as a group of Bluetooth devices. If the last time the terminal device established a Bluetooth connection is earphone A, then when the terminal device is connected back, only Headphone A will be connected back. If the user is currently using headset B, the connection will fail.
  • the terminal device can determine the information to be connected back according to the device information of one or more electronic devices belonging to the same group of Bluetooth devices, and according to the information to be connected back to the same group of Bluetooth devices that need to perform Bluetooth At least one target electronic device to be connected to ensure the accuracy and success rate of the connection back.
  • the terminal device may determine the same group of Bluetooth devices to be connected back, and determine the information to be connected back from the information combination set corresponding to the same group of Bluetooth devices to be connected back.
  • the same group of bluetooth devices to be connected back can be determined according to a preset connection back rule, which can include but not limited to: connect back with the electronic device that established a bluetooth connection with the terminal device last time, and the last time Connect back to the electronic device that has disconnected the Bluetooth connection with the terminal device, connect back to the electronic device that has established the most Bluetooth connections with the terminal device, and connect back to the electronic device specified by the user.
  • the same group of Bluetooth devices to be connected back determined according to the connection back rule may include, but not limited to, any of the following: the same group of Bluetooth devices to be connected back to is the electronic device that last established a Bluetooth connection with the terminal device.
  • a group of Bluetooth devices; the same group of Bluetooth devices to be connected back is the group of Bluetooth devices that belong to the electronic device that disconnected the Bluetooth connection with the terminal device last time; the same group of Bluetooth devices to be connected back to is to establish a Bluetooth connection with the terminal device
  • the group of bluetooth devices to which the electronic device with the most frequency belongs; the same group of bluetooth devices to be connected back to is a group of bluetooth devices determined according to the detected setting operation, etc.
  • the user can perform setting operations in the Bluetooth setting interface provided by the terminal device to select an electronic device or a group of Bluetooth devices to be connected.
  • the device information of each electronic device, or the group information corresponding to each group of Bluetooth devices that have established a Bluetooth connection with the terminal device such as the group number corresponding to each group of Bluetooth devices, the SIRK corresponding to each group of Bluetooth devices, and the The classic Bluetooth address corresponding to the group Bluetooth device, etc., but not limited thereto.
  • the information combination set corresponding to the same group of Bluetooth devices can store the device information of each electronic device in the same group of Bluetooth devices, or only store the information used for the connection back in the same group of Bluetooth devices, for example, the information combination Only the Bluetooth address and SIRK shared by each electronic device in the same group of Bluetooth devices can be stored centrally.
  • Step 220 perform a Bluetooth connection with at least one target electronic device in the same group of Bluetooth devices according to the pending connection information.
  • the terminal device connects back to at least one target electronic device belonging to the same group of Bluetooth devices, which may be an electronic device that needs to be connected to the same group of Bluetooth devices.
  • the Bluetooth connection may include but is not limited to LE Audio Bluetooth connection, BLE connection, classic At least one of Bluetooth connectivity, etc.
  • the bluetooth connection may include LE Audio bluetooth connection and/or classic bluetooth connection.
  • the target electronic device can be the electronic device that sends LE Audio broadcast signal in the same group of Bluetooth devices. Sending LE Audio broadcast signal indicates that the electronic device needs to perform LE Audio Bluetooth connection with the terminal device. .
  • the terminal device can establish a classic Bluetooth connection and LE Audio Bluetooth connection with it; when the target electronic device is a slave device in the same group of Bluetooth devices, the terminal device Only establish a LE Audio Bluetooth connection to it.
  • each electronic device in the same group of Bluetooth devices shares (or shares) the same classic Bluetooth address, for example, the relative terminal device shares the same classic Bluetooth address, that is to say, each electronic device in the same group of Bluetooth devices relative to the terminal device
  • the classic Bluetooth addresses of the devices are the same, so that the terminal device can perceive the same group of Bluetooth devices as a classic Bluetooth device, which facilitates the master-slave switching of classic Bluetooth between electronic devices.
  • Each electronic device in the same group of Bluetooth devices corresponds to a different BLE address.
  • Each electronic device in the same group of Bluetooth devices may have a corresponding master-slave relationship, and the same group of Bluetooth devices may include one electronic device with a master-slave relationship as a master device and at least one electronic device with a master-slave relationship as a slave device.
  • the electronic device with the master-slave relationship as the master device can directly establish a classic Bluetooth connection with other external devices (such as the above-mentioned terminal device), and the electronic device with the master-slave relationship as the slave device does not establish a classic Bluetooth connection with other external devices.
  • the same group of bluetooth devices may include a default master device and at least one default slave device.
  • the default master device refers to an electronic device with a default master-slave relationship as a master device when the same group of bluetooth devices leave the factory
  • the default slave device refers to an electronic device whose default master-slave relationship of the same group of Bluetooth devices is a slave device when it leaves the factory.
  • the BLE address of the default master device in the same group of Bluetooth devices is the same as the classic Bluetooth address shared by each electronic device in the same group of Bluetooth devices, and the default BLE address of the slave device in the same group of Bluetooth devices is the same as that of each The classic Bluetooth addresses shared by electronic devices are different. For example, if the classic Bluetooth address shared by each electronic device in the same group of Bluetooth devices is address A, the default BLE address of the master device is also address A, and the default BLE address of the slave device is address B.
  • each electronic device in the same group of Bluetooth devices may undergo master-slave switching, that is, the master-slave relationship of the electronic device changes, such as the master-slave relationship changes from a master device to a slave device, or Master-slave relationship
  • the slave device becomes the master device.
  • the terminal device usually only connects back to one electronic device.
  • the master device and the slave device share the same classic bluetooth
  • the terminal device only needs to record the Bluetooth address of the default master device.
  • the terminal device defaults to connect back to the Bluetooth address corresponding to the default master device.
  • the terminal device when the terminal device connects back, it will only Perform LE Audio Bluetooth connection with the electronic device whose BLE address is address A (that is, the default master device). In some cases (such as the default master device being put into the box, power failure, etc.), the current user is using the same group of Bluetooth
  • the electronic device whose BLE address is address B in the device that is, the default slave device
  • the master-slave relationship of the default slave device is changed to the master device, and a master-slave switch occurs, the terminal device cannot successfully communicate with the BLE address of the same group of Bluetooth devices.
  • B's electronic device performs LE Audio Bluetooth connection.
  • the terminal device can perform a Bluetooth connection with the electronic device as long as it recognizes that the electronic device to be connected belongs to the same group of Bluetooth devices according to the information to be connected. For example, if the terminal device receives the LE Audio broadcast signal sent by the electronic device with the BLE address of address B, and recognizes that the electronic device with the BLE address of address B and the electronic device with the BLE address of address A belong to the same group of Bluetooth devices, it will communicate with this The electronic device whose BLE address is address B performs LE Audio Bluetooth connection.
  • connection back can be guaranteed, and when there are multiple electronic devices that need to be connected in the same group of Bluetooth devices, the connection back can be performed at the same time to improve the efficiency of the connection back, and for the same group of Bluetooth devices, there is no need to change the Bluetooth address , eliminating the complicated design of each electronic device of the same group of Bluetooth devices.
  • the bluetooth address configuration scheme of each electronic device in the same group of bluetooth devices is not limited to the above-mentioned scheme, for example, the default BLE address of the master device can also be different from the shared classic bluetooth address, just like in a group of bluetooth devices
  • the classic Bluetooth address shared by each electronic device is address A
  • the default BLE address of the master device is address C.
  • the electronic device whose master-slave relationship is switched from the slave device to the master device will change the BLE address to be the same as the classic Bluetooth address, just like each electronic device in a group of Bluetooth devices
  • the shared classic Bluetooth address is address A
  • the default BLE address of the slave device is address B.
  • the master-slave relationship of the default slave device is changed to the master device and the default slave device disconnects from the Bluetooth connection with the terminal device and/or disconnects from the terminal device
  • the BLE address is changed to address A, etc.
  • the embodiment of the present application does not limit the Bluetooth address of each electronic device in the same group of Bluetooth devices.
  • the terminal device can perform a Bluetooth connection with at least one target electronic device in the same group of Bluetooth devices according to the information to be connected back, and the terminal device can automatically connect to each target electronic device in the same group of Bluetooth devices that needs to be connected.
  • the connection back can increase the speed of the Bluetooth connection back of the terminal device, and can improve the accuracy of the Bluetooth connection back.
  • the bluetooth connection back solution provided by the embodiment of the present application is only implemented on the terminal device side, which avoids the complicated design of each electronic device of the same group of bluetooth devices, and has better versatility.
  • the terminal device when the terminal device is connected back, it can perform classic Bluetooth connection back with a target electronic device in the same group of Bluetooth devices, and perform LE Audio Bluetooth connection with one or more target electronic devices in the same group of Bluetooth devices. Connect back.
  • the step is to perform a Bluetooth connection with at least one target electronic device in the same group of Bluetooth devices according to the information to be connected back, which may include the following steps:
  • Step 302 Send a first connection back request according to the classic Bluetooth address, and the first connection back request is used to trigger the first target electronic device whose current master-slave relationship is the master device in the same group of Bluetooth devices to establish a classic Bluetooth connection with the terminal device.
  • the terminal device can first determine the classic Bluetooth address to be connected back according to the above-mentioned connection back rules, such as using the classic Bluetooth address that was last disconnected from the Bluetooth connection as the classic Bluetooth address to be connected back, or using the latest The classic Bluetooth address of once established Bluetooth connection is used as the classic Bluetooth address to be connected back, or the classic Bluetooth address corresponding to an electronic device set by the user, etc., but not limited thereto. Therefore, the same group of Bluetooth devices to be connected back can be determined according to the classic Bluetooth address to be connected back.
  • the classic Bluetooth address to be connected back is the classic Bluetooth address shared by each electronic device in the same group of Bluetooth devices to be connected back.
  • the same group of Bluetooth devices to be connected back may be directly determined.
  • the terminal device only needs to determine the same group of Bluetooth devices to be connected back.
  • the same group of Bluetooth devices to be connected back can be determined according to the connection back rules in this application, that is, it is not necessary to first determine the same group of Bluetooth devices to be connected back according to the classic Bluetooth address of the connection back. For example, when the terminal device receives the LE Audio broadcast signal of an electronic device, it can be determined according to the LE Audio broadcast signal whether the electronic device sending the LE Audio broadcast signal belongs to the electronic device in the same group of Bluetooth devices to be connected back. It will further trigger the establishment of LE Audio Bluetooth connection without first determining the classic Bluetooth address to be connected back.
  • the information to be connected back may include a classic Bluetooth address, which is a classic Bluetooth address shared by all electronic devices in the same group of Bluetooth devices to be connected back.
  • the terminal device can send the first connection back request according to the classic Bluetooth address. If the current master-slave relationship in the same group of Bluetooth devices to be connected back is the first target electronic device of the master device, which is currently in a connectable state, and the first target electronic device is within a certain distance of the terminal device, then it can receive The terminal device sends a first connection back request, and after receiving the first connection back request, can establish a classic Bluetooth connection with the terminal device according to the first connection back request.
  • the connectable state may refer to that the first target electronic device is in the page scan mode, and in the page scan mode, can receive the Bluetooth connection request sent by the terminal device.
  • the first connection back request may be a paging (page) data packet
  • the terminal device may send the paging data packet in a frequency hopping manner
  • the first target electronic device may scan (scan) the externally sent paging data packet at fixed intervals.
  • Paging data packet if the first target electronic device scans the paging data packet sent by the terminal device, it will receive the first connection back request and establish a classic Bluetooth connection with the terminal device.
  • the classic Bluetooth connection please refer to the provisions of the Bluetooth standard protocol.
  • the first target electronic device cannot receive the first connection back request, and the terminal The device cannot successfully establish a classic Bluetooth connection with the first target electronic device, and the classic Bluetooth reconnection fails.
  • the terminal device may forego the classic Bluetooth connection back.
  • the same group of Bluetooth devices can perform master-slave switching, for example, select the electronic device that can receive the first connection back request as the master device, and establish a classic Bluetooth connection with the terminal device, or the terminal device also You can re-select the classic Bluetooth address to be connected back to ensure successful classic Bluetooth connection back.
  • the terminal device reselects the classic Bluetooth address for the connection back, and the corresponding connection back may be another group of Bluetooth devices.
  • Step 304 receiving the LE Audio broadcast signal sent by the second target electronic device, and judging whether the second target electronic device belongs to the same group of Bluetooth devices according to the LE Audio broadcast signal and the information to be connected back, if they belong to the same group of Bluetooth devices, then according to the LE
  • the BLE address corresponding to the Audio broadcast signal sends a second connection back request to the second target electronic device, and the second connection back request is used to trigger the second target electronic device to establish a LE Audio Bluetooth connection with the terminal device.
  • any electronic device in the same group of Bluetooth devices needs to establish a LE Audio Bluetooth connection with the terminal device, it can be in a broadcast state and send a LE Audio broadcast signal with its own BLE address. If the terminal device receives the LE Audio broadcast signal sent by the second target electronic device, it can judge whether the second target electronic device belongs to the same group of Bluetooth devices to be connected back according to the received LE Audio broadcast signal and the information to be connected back. , you can perform LE Audio Bluetooth connection back with the second target electronic device. The terminal device can send a second connection back request to the second target electronic device according to the BLE address corresponding to the received LE Audio broadcast signal, so as to trigger the second target electronic device to establish a LE Audio Bluetooth connection with the terminal device.
  • the terminal device can send a connection request command (which can be understood as a second connection request) to the second target electronic device based on the BLE address in the received LE Audio broadcast signal.
  • the connection request command is used to notify The second target electronic device is about to perform LE Audio Bluetooth connection with the second target electronic device.
  • the second target electronic device can prepare for receiving according to the connection request command.
  • the connection request command may include field information such as transmission window delay (Transmit window offset), transmission window size (Transmit window size). Among them, information such as transmission window delay and transmission window size can be used to determine the time interval from receiving the connection request command to receiving the LE Audio connection data packet of the second target electronic device.
  • the terminal device When reaching the connection anchor point, the terminal device can send an LE Audio connection data packet to the second target electronic device, and after receiving the LE Audio connection data packet, the second target electronic device can return a response signal to the terminal device, thereby communicating with the terminal
  • the device successfully establishes a LE Audio Bluetooth connection.
  • connection method please refer to the regulations of the relevant Bluetooth protocol.
  • the terminal device when the terminal device determines that the second target electronic device does not belong to the same group of Bluetooth devices to be connected back according to the received LE Audio broadcast signal and the information to be connected back, the terminal device may not respond to the LE Audio broadcast signal, No LE Audio Bluetooth connection is established with the second target electronic device.
  • the second target electronic device can be any electronic device in the same group of Bluetooth devices, such as the same group
  • the current master-slave relationship in the Bluetooth device is the electronic device of the master device (that is, the above-mentioned first target electronic device), or it can be the electronic device whose current master-slave relationship is the slave device in the same group of Bluetooth devices.
  • the first target electronic device A target electronic device and a second target electronic device may be the same electronic device or different electronic devices.
  • the terminal device can establish dual Bluetooth connections with the same group of Bluetooth devices, so as to meet different requirements in different business scenarios, and facilitate quick switching.
  • the terminal device judges whether the second target electronic device belongs to the same group of Bluetooth devices to be connected according to the received LE Audio broadcast signal and the information to be connected back, and can be judged in any of the following ways:
  • the information to be connected back may include the classic Bluetooth address shared by the same group of Bluetooth devices to be connected back, and the same SIRK corresponding to each electronic device of the same group of Bluetooth devices. Since each electronic device belonging to a group of Bluetooth devices corresponds to the same SIRK, it can be determined whether the second target electronic device belongs to the same group of Bluetooth devices through the SIRK corresponding to the same group of Bluetooth devices to be connected back.
  • the terminal device can analyze the received LE Audio broadcast signal to obtain the specific broadcast information carried by the LE Audio broadcast signal, and calculate the local value according to the SIRK contained in the information to be connected back and the specific broadcast information. If the local value is the same as If the target field values in the LE Audio broadcast signal are the same, it can be determined that the second target electronic device belongs to the same group of Bluetooth devices.
  • the LE Audio broadcast signal may include RSI (resolvable Set Identifier, resolvable set identifier), and the RSI may include two parts: 1. A hash sequence generated by the SIRK corresponding to the electronic device; 2. A random sequence of random numbers generated.
  • the specific broadcast information obtained by parsing the LE Audio broadcast signal may include a random sequence of RSI, and the target field value in the LE Audio broadcast signal may refer to the hash sequence of the RSI carried by the LE Audio broadcast signal.
  • the local value can be calculated according to the SIRK contained in the connected back information and the random sequence in the analyzed RSI, and the local value is compared with LE Audio
  • the broadcast signal is compared with the hash sequence of the RSI, and if the two are consistent, it can be determined that the second target electronic device belongs to the same group of Bluetooth devices to be connected back.
  • the LE Audio broadcast signal may directly include the SIRK.
  • the terminal device can obtain the SIRK carried in the received LE Audio broadcast signal. If the SIRK carried in the LE Audio broadcast signal is consistent with the SIRK contained in the information to be connected back, it is determined that the second target electronic device belongs to the same device to be connected back. Group bluetooth devices.
  • the information to be connected back can include the classic Bluetooth address shared by each electronic device in the same group of Bluetooth devices to be connected back, and the BLE address of each electronic device in the same group of Bluetooth devices. It should be noted that the same group of Bluetooth Each electronic device in the device refers to the electronic device that has established a LE Audio Bluetooth connection with the terminal device.
  • the terminal device can determine whether the BLE address corresponding to the received LE Audio broadcast signal is consistent with any BLE address contained in the information to be connected back, if the BLE address corresponding to the LE Audio broadcast signal is consistent with any BLE address contained in the information to be connected back If the addresses are consistent, it is determined that the second target electronic device belongs to the same group of Bluetooth devices.
  • the same group of Bluetooth devices can correspond to the same identity (such as the same product number, or the same random number, etc.), and the terminal device can determine whether the identity carried by the LE Audio broadcast signal is consistent with the identity contained in the connection information , if they are consistent, it is determined that the second target electronic device belongs to the same group of Bluetooth devices.
  • FIG. 4A is a schematic diagram of a timing sequence of a Bluetooth connection back method in an embodiment.
  • the first earphone and the second earphone belong to the same earphone device, that is, they belong to the same group of Bluetooth devices, and the first earphone and the second earphone can share the same classic Bluetooth address after the Bluetooth connection is established.
  • the terminal device may first perform a classic Bluetooth connection back, and send a first connection back request to the headset device based on the classic Bluetooth address to be connected back (that is, the classic Bluetooth address shared by the first earphone and the second earphone).
  • the main earphone of the current earphone device is the first earphone
  • the first earphone can establish a classic Bluetooth connection with the terminal device.
  • data synchronization is performed between the first earphone and the second earphone. Monitor, or the first earphone will synchronize the data transmitted with the terminal device through the classic Bluetooth connection to the second earphone.
  • the first earphone can be in a broadcast state and send LE Audio broadcast signals. If the terminal equipment receives the LE Audio broadcast signal, it can judge whether the electronic device sending the LE Audio broadcast signal belongs to the same group of Bluetooth devices as the first earphone according to the LE Audio broadcast signal. Since the LE Audio broadcast signal is sent by the first earphone, the terminal device can determine that it belongs to the same group of Bluetooth devices, and send a second connection request to the first earphone according to the BLE address of the first earphone, and establish a LE with the first earphone. Audio Bluetooth connection.
  • FIG. 4B is a schematic diagram of a sequence of a Bluetooth connection back method in an embodiment.
  • the second earphone sends LE Audio broadcast signals. If the terminal device receives the LE Audio broadcast signal, it can judge according to the LE Audio broadcast signal whether the electronic device sending the LE Audio broadcast signal belongs to the same group of Bluetooth devices to be connected back (for example, whether it belongs to the same group of Bluetooth devices as the first earphone) .
  • the second earphone can be sent to the second earphone according to the BLE address of the second earphone. Return connection request and establish LE Audio Bluetooth connection with the second earphone.
  • the terminal device can quickly and accurately perform classic Bluetooth and LE Audio Bluetooth back-connection with at least one target electronic device in the same group of Bluetooth devices that support both classic Bluetooth and BLE Audio, ensuring different scenarios The success rate and stability of the Bluetooth connection back.
  • the bluetooth connection back solution provided by the embodiment of the present application is only implemented on the terminal device side, which avoids the complicated design of each electronic device of the same group of bluetooth devices, and has better versatility.
  • a Bluetooth connection back method is provided, which can be applied to the above-mentioned terminal device, and the method may include the following steps:
  • Step 502 respectively establish a classic Bluetooth connection and a first LE Audio connection with the first electronic device, and establish a second LE Audio connection with the second electronic device, wherein the first electronic device and the second electronic device belong to the same group of Bluetooth devices.
  • Both the first electronic device and the second electronic device may be electronic devices that have made a Bluetooth connection with the terminal device for the first time, or although a classic Bluetooth connection has been established with the terminal device, the factory settings of the terminal device have been restored.
  • Device information of an electronic device and device information of a second electronic device may be electronic devices that have made a Bluetooth connection with the terminal device for the first time, or although a classic Bluetooth connection has been established with the terminal device, the factory settings of the terminal device have been restored.
  • the current master-slave relationship of the first electronic device may be a master device, and the current master-slave relationship of the second electronic device may be a slave device.
  • the terminal device can determine the classic Bluetooth address and the first BLE address corresponding to the first electronic device, and determine the second BLE address corresponding to the second electronic device, and establish a classic Bluetooth address with the first electronic device according to the classic Bluetooth address corresponding to the first electronic device.
  • Bluetooth connection establishing a first LE Audio connection with the first electronic device according to the first BLE address, and establishing a second LE Audio connection with the second electronic device according to the second BLE address.
  • the terminal device determining the classic Bluetooth address corresponding to the first electronic device may include: inquiring about the Bluetooth devices existing within the first distance range, and determining the corresponding address of the first electronic device according to the query response returned by the first electronic device.
  • Classic Bluetooth address The terminal device can start an inquiry mode (inquiry mode), and in this inquiry mode, the terminal device can send an inquiry command (inquiry command) every first time length to inquire about the Bluetooth devices existing within the first distance range.
  • the first electronic device can be in a discoverable state or a discoverable and connectable state. In this discoverable state, the first electronic device turns on the inquiry scan mode. In the discoverable and connectable state, both page scan and inquiry scan are turned on, and can scan Inquiry command sent to terminal equipment.
  • the first electronic device in the discoverable state receives the query instruction sent by the terminal device, it may return a query response to the terminal device, and the terminal device may determine the classic Bluetooth address corresponding to the first electronic device based on the query response.
  • the first electronic device can turn on the broadcast state, and in the broadcast state, the first electronic device can send the first LE Audio broadcast signal based on the first BLE address.
  • the terminal device may receive the first LE Audio broadcast signal sent by the first electronic device, and determine the first BLE address corresponding to the first electronic device according to the first LE Audio broadcast signal.
  • the second electronic device can also turn on the broadcast state, and in the broadcast state, the second electronic device can send a second LE Audio broadcast signal based on the second BLE address.
  • the terminal device can receive the second LE Audio broadcast signal sent by the second electronic device, and determine the second BLE address corresponding to the first electronic device according to the first LE Audio broadcast signal.
  • the terminal device can establish a first LE Audio connection with the first electronic device according to the first BLE address, and establish a classic Bluetooth connection with the first electronic device according to the classic Bluetooth address corresponding to the first electronic device, and determine the connection between the second electronic device and the first electronic device.
  • establish a second LE Audio connection with the second electronic device according to the second BLE address When an electronic device belongs to the same group of Bluetooth devices, establish a second LE Audio connection with the second electronic device according to the second BLE address.
  • the terminal device before the terminal device establishes the second LE Audio Bluetooth connection with the second electronic device according to the second BLE address, it can first send the first LE Audio broadcast signal according to the first electronic device and the second electronic device.
  • the second LE Audio broadcasts a signal to determine whether the first electronic device and the second electronic device belong to the same group of Bluetooth devices.
  • any one of the following methods can be adopted:
  • the first LE Audio broadcast signal includes a first identity
  • the second LE Audio broadcast signal includes a second identity.
  • the terminal device can determine whether the first identity in the first LE Audio broadcast signal is the same as the second identity in the second LE Audio broadcast signal, If the first identity is the same as the second identity, it is determined that the second electronic device and the first electronic device belong to the same group of Bluetooth devices.
  • Method 2 After receiving the first LE Audio broadcast signal, the terminal device can determine the target SIRK corresponding to the first electronic device according to the first LE Audio broadcast signal. After receiving the second LE Audio broadcast signal, the second LE Audio broadcast signal can be analyzed to obtain the target-specific broadcast information carried by the second LE Audio broadcast signal, and the target local area can be calculated according to the target SIRK and target-specific broadcast information. value. It can be determined whether the target local value is the same as the target field value in the second LE Audio broadcast signal, and if the target local value is the same as the target field value in the second LE Audio broadcast signal, then it is determined that the second electronic device and the first electronic device belong to same set of bluetooth devices.
  • the first LE Audio broadcast signal may directly carry a target SIRK corresponding to the first electronic device, and the terminal device may obtain the target SIRK by analyzing the first LE Audio broadcast signal.
  • the first LE Audio broadcast signal can also carry the first RSI, and the terminal device can analyze the first LE Audio broadcast signal to obtain the first hash sequence and the first random sequence of the first RSI, and then the first hash sequence and the first The random sequence is calculated to obtain the target SIRK corresponding to the first electronic device.
  • the target specific broadcast information carried by the second LE Audio broadcast signal may include a second random sequence of the second RSI carried by the second LE Audio broadcast signal, and the target field value in the second LE Audio broadcast signal may include the second RSI the second hash sequence.
  • the target local value can be calculated according to the target SIRK corresponding to the first electronic device and the second random sequence of the second RSI, and the target local value is compared with the second hash sequence of the second RSI, and if the two are consistent, then It may be determined that the second electronic device and the first electronic device belong to the same group of Bluetooth devices.
  • the terminal device can determine the target SIRK corresponding to the first electronic device according to the first LE Audio broadcast signal, and determine the SIRK corresponding to the second electronic device according to the second LE Audio broadcast signal, and determine the target SIRK corresponding to the first electronic device Whether the SIRK corresponding to the second electronic device is consistent, if consistent, it can be determined that the second electronic device and the first electronic device belong to the same group of Bluetooth devices.
  • the embodiment of the present application does not limit the order in which the first electronic device sends the first LE Audio broadcast signal and the second electronic device sends the second LE Audio broadcast signal. It may be that the first electronic device sends the first LE Audio broadcast signal first. Broadcast signal, the second electronic device then sends the second LE Audio broadcast signal, or the second electronic device first sends the second LE Audio broadcast signal, and the first electronic device sends the first LE Audio broadcast signal, or both at the same time send etc.
  • the embodiment of the present application also does not limit the order in which the terminal device determines the first BLE address, the classic Bluetooth address corresponding to the first electronic device, and the second BLE address.
  • FIG. 6 is a schematic diagram of a timing sequence of a terminal device performing a Bluetooth connection in an embodiment.
  • the first electronic device sends a first LE Audio broadcast signal to the terminal device, and the terminal device can obtain the first BLE address corresponding to the first electronic device according to the first LE Audio broadcast signal.
  • the second electronic device sends a second LE Audio broadcast signal to the terminal device, and the terminal device can obtain the second BLE address corresponding to the second electronic device according to the second LE Audio broadcast signal.
  • the terminal device is in the inquiry mode and sends an inquiry command
  • the first electronic device in the discoverable state that is, in the inquiry scan mode
  • the first electronic device returns an inquiry response to the terminal device, and the terminal device can according to the The inquiry responds to obtain the first classic bluetooth address corresponding to the first electronic device.
  • the terminal device may establish a first LE Audio Bluetooth connection with the first electronic device based on the first BLE address, and establish a classic Bluetooth connection with the first electronic device based on the first classic Bluetooth address.
  • the terminal device can determine whether the first electronic device and the second electronic device belong to the same group of Bluetooth devices, and if they belong to the same group of Bluetooth devices, establish a second LE Audio Bluetooth connection with the second electronic device based on the second BLE address. It should be noted that the terminal device may determine whether the first electronic device and the second electronic device belong to the same group of Bluetooth devices, or before outputting the information to be connected, the embodiment of the present application does not specifically limit the sequence of this step.
  • the first electronic device and the second electronic device can share the same classic Bluetooth address
  • the first BLE address of the first electronic device can be the same as the classic Bluetooth address
  • the second BLE address of the second electronic device can be the same as The classic bluetooth address is different.
  • the terminal device establishes a Bluetooth connection with the first electronic device and the second electronic device
  • only one pending connection information may be output for the first electronic device and the second electronic device belonging to the same group of Bluetooth devices
  • the pending connection The information may be used to represent the Bluetooth connection with the first electronic device and the second electronic device belonging to the same group of Bluetooth devices. Since the first BLE address of the first electronic device is the same as the shared classic Bluetooth address, the same information to be connected can be displayed.
  • the second LE Audio broadcast signal includes a non-displayable identifier, which is used to indicate that the LE Audio broadcast The pending connection information corresponding to the BLE address in the signal is not displayed on the terminal device.
  • the terminal device only displays a corresponding information to be connected, and the user only needs to perform a Bluetooth connection operation on the terminal device to trigger the connection between the terminal device and the first electronic device and the second electronic device belonging to the same group of Bluetooth devices.
  • the device respectively establishes LE Audio Bluetooth connection, and establishes a classic Bluetooth connection with the first electronic device, which can quickly perform LE Audio Bluetooth and classic Bluetooth connection with devices that support both classic Bluetooth and BLE Audio, and combine BLE Audio with classic Bluetooth to Meet users' needs for audio transmission in different scenarios.
  • Step 504 storing the device information of the first electronic device and the device information of the second electronic device in the same information combination set.
  • the terminal device After the terminal device successfully establishes the Bluetooth connection with the first electronic device, it may store the device information of the first electronic device in the connection record. After the terminal device successfully establishes the Bluetooth connection with the second electronic device, the device information of the second electronic device may be stored in the connection record. Since the first electronic device and the second electronic device belong to the same group of Bluetooth devices, the device information of the first electronic device and the device information of the second electronic device can be stored in the same information combination set of the connection record to facilitate subsequent connection back.
  • Step 506 determine the same group of Bluetooth devices to be connected back, and determine the information to be connected back from the information combination set corresponding to the same group of Bluetooth devices to be connected back.
  • the terminal device can The same group of Bluetooth devices to be connected back is determined from multiple groups of Bluetooth devices, and the information to be connected back is determined from the information combination set corresponding to the same group of Bluetooth devices to be connected back.
  • the pending connection information may include the classic Bluetooth address shared by each electronic device in the same group of Bluetooth devices to be connected back, and the same SRIK corresponding to each electronic device in the same group of Bluetooth devices; or, the pending connection information may include the pending connection The classic Bluetooth address shared by each electronic device in the same group of Bluetooth devices connected, and the BLE address of each electronic device in the same group of Bluetooth devices to be connected back.
  • Step 508 Send a first connection-back request according to the classic Bluetooth address contained in the information to be connected back, and the first connection-back request is used to trigger the current master-slave relationship with the same group of Bluetooth devices to be connected back.
  • the target electronic device establishes a classic Bluetooth connection with the terminal device.
  • Step 510 receiving the LE Audio broadcast signal sent by the second target electronic device, and judging whether the second target electronic device belongs to the same group of Bluetooth devices to be connected back according to the LE Audio broadcast signal and the information to be connected back, and if so, according to The BLE address corresponding to the LE Audio broadcast signal sends a second connection back request to the second target electronic device, and the second connection back request is used to trigger the second target electronic device to establish a LE Audio Bluetooth connection with the terminal device.
  • the same group of Bluetooth devices includes the same group of audio output devices, the same group of audio output devices includes a first audio output device and a second audio output device, and the first audio output device and the second audio output device form a pair of audio output device.
  • the device information of each electronic device belonging to the same group of Bluetooth devices can be stored in the same information combination set, which is convenient for subsequent
  • the terminal device can accurately and quickly perform Bluetooth connection with at least one target electronic device in the same group of Bluetooth devices to be connected back, which improves the success rate and stability of Bluetooth connection back.
  • an information storage method is provided, which can be applied to the above-mentioned terminal device, and the method may include the following steps:
  • Step 710 respectively establish a classic Bluetooth connection and a first LE Audio connection with the first electronic device, and establish a second LE Audio connection with the second electronic device, wherein the first electronic device and the second electronic device belong to the same group of Bluetooth devices.
  • the device information of the first electronic device includes at least one of the classic Bluetooth address corresponding to the first electronic device, the first BLE address, the device name, and SIRK; the device information of the second electronic device includes the second electronic At least one of the classic Bluetooth address, the second BLE address, the device name, and the SIRK corresponding to the device.
  • step 710 may include: receiving the first LE Audio broadcast signal sent by the first electronic device, and determining the first BLE address corresponding to the first electronic device according to the first LE Audio broadcast signal; The classic Bluetooth address corresponding to the device; receive the second LE Audio broadcast signal sent by the second electronic device, and determine the second BLE address corresponding to the first electronic device according to the first LE Audio broadcast signal; according to the first BLE address and the first electronic device The device establishes a first LE Audio connection, and establishes a classic Bluetooth connection with the first electronic device according to the classic Bluetooth address corresponding to the first electronic device, and when it is determined that the second electronic device and the first electronic device belong to the same group of Bluetooth devices, Establishing a second LE Audio connection with the second electronic device according to the second BLE address.
  • the first electronic device and the second electronic device share the same classic Bluetooth address
  • the first BLE address of the first electronic device is the same as the classic Bluetooth address
  • the second BLE address of the second electronic device is different from the classic Bluetooth address .
  • the first LE Audio broadcast signal includes a first identity
  • the second LE Audio broadcast signal includes a second identity; when it is determined that the second electronic device and the first electronic device belong to the same group of Bluetooth devices, Before establishing the second LE Audio connection with the second electronic device according to the second BLE address, the method further includes: if the first identity is the same as the second identity, then determining that the second electronic device and the first electronic device belong to the same Bluetooth group equipment.
  • the method when it is determined that the second electronic device and the first electronic device belong to the same group of Bluetooth devices, before establishing the second LE Audio connection with the second electronic device according to the second BLE address, the method further includes: The first LE Audio broadcast signal determines the SIRK corresponding to the first electronic device; the second LE Audio broadcast signal is analyzed to obtain the target-specific broadcast information carried by the second LE Audio broadcast signal; according to the SIRK corresponding to the first electronic device and the target The specific broadcast information is calculated to obtain the target local value; if the target local value is the same as the target field value in the second LE Audio broadcast signal, it is determined that the second electronic device and the first electronic device belong to the same group of Bluetooth devices.
  • Step 720 storing the device information of the first electronic device and the device information of the second electronic device in the same information combination set.
  • the same information combination set is used to determine information to be connected back, and the information to be connected back is used to trigger a connection back with at least one target electronic device in the same group of Bluetooth devices.
  • the device information of each electronic device belonging to the same group of Bluetooth devices can be stored in the same information combination set, which is convenient for subsequent
  • the terminal device can accurately and quickly perform Bluetooth connection with at least one target electronic device in the same group of Bluetooth devices to be connected back, which improves the success rate and stability of Bluetooth connection back.
  • a Bluetooth connection back device 800 is provided, which can be applied to the above-mentioned terminal equipment.
  • the Bluetooth connection back device 800 may include an information determination module 810 and a Bluetooth connection module 820 .
  • the information determination module 810 is configured to determine the information to be connected back, the information to be connected back is generated according to the device information of one or more electronic devices that have established a Bluetooth connection with the terminal device, and the one or more electronic devices belong to the same group of Bluetooth devices.
  • the same group of Bluetooth devices includes the same group of audio output devices, the same group of audio output devices includes a first audio output device and a second audio output device, and the first audio output device and the second audio output device form a pair of audio output device.
  • the device information includes at least one of a classic Bluetooth address, a BLE address, a device name, and a combined identification analysis value SIRK corresponding to the electronic device;
  • the information to be connected back includes the classic Bluetooth address shared by each electronic device in the same group of Bluetooth devices and the same SIRK corresponding to each electronic device in the same group of Bluetooth devices; or, the information to be connected back includes the classic Bluetooth address shared by each electronic device in the same group of Bluetooth devices.
  • Bluetooth address and the BLE address of each electronic device in the same group of Bluetooth devices include the classic Bluetooth address shared by each electronic device in the same group of Bluetooth devices.
  • the same set of Bluetooth devices includes any of the following:
  • the same group of Bluetooth devices refers to the group of Bluetooth devices to which the electronic device that established a Bluetooth connection with the terminal device last belongs;
  • the same group of Bluetooth devices refers to the group of Bluetooth devices to which the electronic device that disconnected the Bluetooth connection with the terminal device last time belongs to;
  • the same group of Bluetooth devices refers to the group of Bluetooth devices to which the electronic device that establishes the most Bluetooth connections with the terminal device belongs;
  • the same group of Bluetooth devices is a group of Bluetooth devices determined according to the detected setting operation.
  • the Bluetooth connection module 820 is configured to perform a Bluetooth connection with at least one target electronic device in the same group of Bluetooth devices according to the information to be connected back.
  • each electronic device in the same group of Bluetooth devices shares the same classic Bluetooth address, and each electronic device in the same group of Bluetooth devices corresponds to a different BLE address; and/or, the default master device in the same group of Bluetooth devices
  • the BLE address of the device is the same as the classic Bluetooth address, and the BLE address of the default slave device in the same group of Bluetooth devices is different from the classic Bluetooth address.
  • the terminal device can perform a Bluetooth connection with at least one target electronic device in the same group of Bluetooth devices according to the information to be connected back, and the terminal device can automatically connect to each target electronic device in the same group of Bluetooth devices that needs to be connected.
  • the connection back can increase the speed of the Bluetooth connection back of the terminal device, and can improve the accuracy of the Bluetooth connection back.
  • the bluetooth connection back solution provided by the embodiment of the present application is only implemented on the terminal device side, which avoids the complicated design of each electronic device of the same group of bluetooth devices, and has better versatility.
  • connection-to-be-connected information includes a classic Bluetooth address.
  • the Bluetooth connection module 820 is also used to send the first connection back request according to the classic Bluetooth address, and the first connection back request is used to trigger the establishment of the first target electronic device and the terminal device of the current master-slave relationship in the same group of Bluetooth devices as the master device Classical Bluetooth connection; and/or, used to receive the LE Audio broadcast signal sent by the second target electronic device, and judge whether the second target electronic device belongs to the same group of Bluetooth devices according to the LE Audio broadcast signal and the information to be connected back.
  • group bluetooth device then according to the BLE address corresponding to the LE Audio broadcast signal, send a second connection back request to the second target electronic device, and the second connection back request is used to trigger the second target electronic device to establish a LE Audio bluetooth connection with the terminal device.
  • the information to be connected back further includes SIRKs corresponding to the same group of Bluetooth devices.
  • the Bluetooth connection module 820 is also used to analyze the LE Audio broadcast signal to obtain the specific broadcast information carried by the LE Audio broadcast signal; calculate the local value according to SIRK and specific broadcast information; if the local value is consistent with the target in the LE Audio broadcast signal field values are the same, it is determined that the second target electronic device belongs to the same group of Bluetooth devices.
  • the information to be connected back further includes SIRKs corresponding to the same group of Bluetooth devices.
  • the Bluetooth connection module 820 is also used to obtain the SIRK carried in the LE Audio broadcast signal. If the SIRK carried in the LE Audio broadcast signal is consistent with the SIRK contained in the information to be connected back, it is determined that the second target electronic device belongs to the same group of Bluetooth devices .
  • connection-to-be-connected information further includes BLE addresses of electronic devices in the same group of Bluetooth devices.
  • the Bluetooth connection module 820 is also used to determine that the second target electronic device belongs to the same group of Bluetooth devices if the BLE address corresponding to the LE Audio broadcast signal is consistent with any BLE address contained in the information to be connected back.
  • the terminal device can quickly and accurately perform classic Bluetooth and LE Audio Bluetooth back-connection with at least one target electronic device in the same group of Bluetooth devices that support both classic Bluetooth and BLE Audio, ensuring different scenarios The success rate and stability of the Bluetooth connection back.
  • the bluetooth connection back solution provided by the embodiment of the present application is only implemented on the terminal device side, which avoids the complicated design of each electronic device of the same group of bluetooth devices, and has better versatility.
  • the Bluetooth connection back device 800 includes a storage module in addition to the information determination module 810 and the Bluetooth connection module 820 .
  • the Bluetooth connection module 820 is also used to respectively establish a classic Bluetooth connection and a first LE Audio connection with the first electronic device, and establish a second LE Audio connection with the second electronic device, wherein the first electronic device and the second electronic device belong to same set of bluetooth devices.
  • the Bluetooth connection module 820 is also used for the first LE Audio broadcast signal sent by the first electronic device, and determines the first BLE address corresponding to the first electronic device according to the first LE Audio broadcast signal; determine the first The classic Bluetooth address corresponding to the electronic device; receiving the second LE Audio broadcast signal sent by the second electronic device, and determining the second BLE address corresponding to the first electronic device according to the first LE Audio broadcast signal; and according to the first BLE address and the second BLE address An electronic device establishes a first LE Audio connection, establishes a classic Bluetooth connection with the first electronic device according to the classic Bluetooth address corresponding to the first electronic device, and determines that the second electronic device and the first electronic device belong to the same group of Bluetooth devices Next, establish a second LE Audio connection with the second electronic device according to the second BLE address.
  • the first LE Audio broadcast signal includes a first identity
  • the second LE Audio broadcast signal includes a second identity
  • the Bluetooth connection module 820 is further configured to determine that the second electronic device and the first electronic device belong to the same group of Bluetooth devices if the first identity is the same as the second identity.
  • the Bluetooth connection module 820 is also used to determine the target SIRK corresponding to the first electronic device according to the first LE Audio broadcast signal; analyze the second LE Audio broadcast signal to obtain the second LE Audio broadcast signal carried Target-specific broadcast information; calculate the target local value according to the target SIRK and target-specific broadcast information; if the target local value is the same as the target field value in the second LE Audio broadcast signal, it is determined that the second electronic device and the first electronic device belong to same set of bluetooth devices.
  • the storage module is configured to store the device information of the first electronic device and the device information of the second electronic device in the same information combination set.
  • the information determination module 810 is further configured to determine the same group of Bluetooth devices to be connected back, and determine the information to be connected back from the information combination set corresponding to the same group of Bluetooth devices to be connected back.
  • the device information of each electronic device belonging to the same group of Bluetooth devices can be stored in the same information combination set, which is convenient for subsequent
  • the terminal device can accurately and quickly perform Bluetooth connection with at least one target electronic device in the same group of Bluetooth devices to be connected back, which improves the success rate and stability of Bluetooth connection back.
  • an information storage device 900 is provided, which can be applied to the above-mentioned terminal equipment.
  • the information storage device 900 can include a Bluetooth connection module 910 and a storage module 920 .
  • Bluetooth connection module 910 configured to respectively establish a classic Bluetooth connection and a first LE Audio connection with the first electronic device, and establish a second LE Audio connection with the second electronic device, wherein the first electronic device and the second electronic device belong to the same Group bluetooth devices.
  • the Bluetooth connection module 910 is further configured to receive the first LE Audio broadcast signal sent by the first electronic device, and determine the first BLE address corresponding to the first electronic device according to the first LE Audio broadcast signal; determine the first BLE address corresponding to the first electronic device A classic Bluetooth address corresponding to an electronic device; receiving the second LE Audio broadcast signal sent by the second electronic device, and determining the second BLE address corresponding to the first electronic device according to the first LE Audio broadcast signal; according to the first BLE address and the second An electronic device establishes a first LE Audio connection, establishes a classic Bluetooth connection with the first electronic device according to the classic Bluetooth address corresponding to the first electronic device, and determines that the second electronic device and the first electronic device belong to the same group of Bluetooth devices Next, establish a second LE Audio connection with the second electronic device according to the second BLE address.
  • the storage module 920 is configured to store the device information of the first electronic device and the device information of the second electronic device in the same information combination set, the same information combination set is used to determine the information to be connected back, and the information to be connected back is used to trigger a connection back with at least one target electronic device in the same group of bluetooth devices.
  • the device information of the first electronic device includes at least one of the classic Bluetooth address corresponding to the first electronic device, the first BLE address, the device name, and SIRK; the device information of the second electronic device includes the second electronic At least one of the classic Bluetooth address, the second BLE address, the device name, and the SIRK corresponding to the device.
  • the first electronic device and the second electronic device share the same classic Bluetooth address
  • the first BLE address of the first electronic device is the same as the classic Bluetooth address
  • the second BLE address of the second electronic device is the same as the classic Bluetooth address. The address is different.
  • the device information of each electronic device belonging to the same group of Bluetooth devices can be stored in the same information combination set, which is convenient for subsequent
  • the terminal device can accurately and quickly perform Bluetooth connection with at least one target electronic device in the same group of Bluetooth devices to be connected back, which improves the success rate and stability of Bluetooth connection back.
  • Fig. 10 is a structural block diagram of a terminal device in an embodiment.
  • the terminal device 1000 may include one or more of the following components: a processor 1010, a memory 1020 coupled to the processor 1010, wherein the memory 1020 may store one or more computer programs, one or more computer programs It may be configured to implement the methods described in the foregoing embodiments when executed by one or more processors 1010 .
  • Processor 1010 may include one or more processing cores.
  • the processor 1010 uses various interfaces and lines to connect various parts of the entire terminal device 1000, and by running or executing instructions, programs, code sets or instruction sets stored in the memory 1020, and calling data stored in the memory 1020, execute Various functions and processing data of the terminal device 1000.
  • the processor 1010 may adopt at least one of Digital Signal Processing (Digital Signal Processing, DSP), Field-Programmable Gate Array (Field-Programmable Gate Array, FPGA), and Programmable Logic Array (Programmable Logic Array, PLA). implemented in the form of hardware.
  • DSP Digital Signal Processing
  • FPGA Field-Programmable Gate Array
  • PLA Programmable Logic Array
  • the processor 1010 may integrate one or a combination of a central processing unit (Central Processing Unit, CPU), an image processor (Graphics Processing Unit, GPU), a modem, and the like.
  • CPU Central Processing Unit
  • GPU Graphics Processing Unit
  • the CPU mainly handles the operating system, user interface and application programs, etc.
  • the GPU is used to render and draw the displayed content
  • the modem is used to handle wireless communication. It can be understood that the above modem may also not be integrated into the processor 1010, but implemented by a communication chip alone.
  • the memory 1020 may include random access memory (Random Access Memory, RAM), and may also include read-only memory (Read-Only Memory, ROM).
  • the memory 1020 may be used to store instructions, programs, codes, sets of codes or sets of instructions.
  • the memory 1020 may include a program storage area and a data storage area, wherein the program storage area may store instructions for implementing an operating system and instructions for implementing at least one function (such as a touch function, a sound playback function, an image playback function, etc.) , instructions for implementing the foregoing method embodiments, and the like.
  • the storage data area can also store data created by the terminal device 1000 during use, and the like.
  • the terminal device 1000 may further include a Bluetooth module, which may be used to provide a Bluetooth communication function, establish a Bluetooth connection with other electronic devices, and perform Bluetooth data transmission.
  • the Bluetooth module can support one or more Bluetooth protocols, such as classic Bluetooth, BLE, BLE Audio, etc.), but is not limited to this, and can change with the development of the Bluetooth protocol.
  • the processor 910 is configured to determine the information to be connected, the information to be connected is generated according to the device information of one or more electronic devices that have established a Bluetooth connection with the terminal device, and the one or more The electronic devices belong to the same group of Bluetooth devices; and it is used to instruct the Bluetooth module to perform Bluetooth connection with at least one target electronic device in the same group of Bluetooth devices according to the information to be connected back.
  • the terminal device 1000 may include more or less structural elements than those in the above structural block diagrams, for example, including a power module, physical keys, sensors, display screens, cameras, etc., which are not limited here.
  • the embodiment of the present application discloses a computer-readable storage medium, which stores a computer program, wherein when the computer program is executed by a processor, the methods described in the foregoing embodiments are implemented.
  • the embodiment of the present application discloses a computer program product, which includes a non-transitory computer-readable storage medium storing a computer program, and the computer program can be executed by a processor to implement the methods described in the foregoing embodiments.
  • the processes in the methods of the above embodiments can be realized through computer programs to instruct related hardware, and the programs can be stored in a non-volatile computer-readable storage medium When the program is executed, it may include the processes of the embodiments of the above-mentioned methods.
  • the storage medium may be a magnetic disk, an optical disk, a ROM, or the like.
  • Non-volatile memory may include ROM, Programmable ROM (PROM), Erasable PROM (Erasable PROM, EPROM), Electrically Erasable PROM (Electrically Erasable PROM, EEPROM) or flash memory.
  • Volatile memory can include random access memory (RAM), which acts as external cache memory.
  • RAM can take many forms, such as static RAM (Static RAM, SRAM), dynamic RAM (Dynamic Random Access Memory, DRAM), synchronous DRAM (synchronous DRAM, SDRAM), double data rate SDRAM (Double data rate Data Rate SDRAM, DDR SDRAM), enhanced SDRAM (Enhanced Synchronous DRAM, ESDRAM), synchronous link DRAM (Synchlink DRAM, SLDRAM), memory bus direct RAM (Rambus DRAM, RDRAM) and direct memory bus dynamic RAM (Direct Rambus DRAM) , DRDRAM).
  • static RAM Static RAM, SRAM
  • dynamic RAM Dynamic Random Access Memory
  • SDRAM synchronous DRAM
  • double data rate SDRAM Double data rate Data Rate SDRAM, DDR SDRAM
  • enhanced SDRAM Enhanced Synchronous DRAM, ESDRAM
  • synchronous link DRAM Synchlink DRAM, SLDRAM
  • memory bus direct RAM Rabus DRAM, RDRAM
  • Direct Rambus DRAM Direct Rambus DRAM
  • the units described above as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, located in one place, or distributed to multiple network units. Part or all of the units can be selected according to actual needs to achieve the purpose of the solution of this embodiment.
  • each functional unit in each embodiment of the present application may be integrated into one processing unit, each unit may exist separately physically, or two or more units may be integrated into one unit.
  • the above-mentioned integrated units can be implemented in the form of hardware or in the form of software functional units.

Landscapes

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

Abstract

Disclosed in the embodiments of the present application are a Bluetooth back-connection method and apparatus, an information storage method and apparatus, and a terminal device. The Bluetooth back-connection method is applied to a terminal device. The Bluetooth back-connection method may comprise: determining back-connection information, wherein the back-connection information is generated according to device information of one or more electronic devices, which once established a Bluetooth connection with a terminal device, and the one or more electronic devices belong to the same group of Bluetooth devices; and connecting, via Bluetooth, to at least one target electronic device in the same group of Bluetooth devices according to the back-connection information.

Description

蓝牙回连方法及装置、信息存储方法及装置、终端设备Bluetooth connection back method and device, information storage method and device, terminal equipment
本申请要求于2021年11月23日提交、申请号为202111396621.2、发明名称为“蓝牙回连方法及装置、信息存储方法及装置、终端设备”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。This application claims the priority of the Chinese patent application filed on November 23, 2021, with the application number 202111396621.2, and the title of the invention is "Bluetooth connection method and device, information storage method and device, terminal equipment", the entire content of which is incorporated by reference incorporated in this application.
技术领域technical field
本申请涉及通信技术领域,具体涉及一种蓝牙回连方法及装置、信息存储方法及装置、终端设备。The present application relates to the field of communication technologies, and in particular to a Bluetooth connection back method and device, an information storage method and device, and a terminal device.
背景技术Background technique
蓝牙通信技术是一种近距离无线通信连接技术,具备低成本、低功耗、传输数据快、应用范围广等优点,已经成了市面上大部分电子设备所支持的主流通信技术之一。为了让电子设备之间更快地进行蓝牙连接,电子设备可与之前建立过蓝牙连接的其它设备进行回连。目前,蓝牙回连方案还有待进一步优化。Bluetooth communication technology is a short-distance wireless communication connection technology, which has the advantages of low cost, low power consumption, fast data transmission, and wide application range. It has become one of the mainstream communication technologies supported by most electronic devices on the market. In order to enable faster Bluetooth connection between electronic devices, the electronic device can be connected back to other devices that have previously established a Bluetooth connection. At present, the bluetooth connection scheme needs to be further optimized.
发明内容Contents of the invention
本申请实施例提供一种蓝牙回连方法及装置、信息存储方法及装置、终端设备、存储介质。Embodiments of the present application provide a Bluetooth connection back method and device, an information storage method and device, a terminal device, and a storage medium.
本申请实施例提供一种蓝牙回连方法,应用于终端设备,所述方法包括:An embodiment of the present application provides a Bluetooth connection back method, which is applied to a terminal device, and the method includes:
确定待回连信息,所述待回连信息是根据与所述终端设备曾经建立过蓝牙连接的一个或多个电子设备的设备信息生成的,所述一个或多个电子设备属于同一组蓝牙设备中的;Determine the information to be connected back, the information to be connected back is generated according to the device information of one or more electronic devices that have established a Bluetooth connection with the terminal device, and the one or more electronic devices belong to the same group of Bluetooth devices middle;
根据所述待回连信息,与所述同一组蓝牙设备中的至少一个目标电子设备进行蓝牙连接。Perform a Bluetooth connection with at least one target electronic device in the same group of Bluetooth devices according to the pending connection information.
本申请实施例提供一种信息存储方法,应用于终端设备,所述方法包括:An embodiment of the present application provides an information storage method, which is applied to a terminal device, and the method includes:
分别与第一电子设备建立经典蓝牙连接及第一LE Audio连接,以及与第二电子设备建立第二LE Audio连接,其中,所述第一电子设备及第二电子设备属于同一组蓝牙设备;Establishing a classic Bluetooth connection and a first LE Audio connection with the first electronic device respectively, and establishing a second LE Audio connection with the second electronic device, wherein the first electronic device and the second electronic device belong to the same group of Bluetooth devices;
将所述第一电子设备的设备信息与所述第二电子设备的设备信息存储到同一个信息组合集中,所述同一个信息组合集用于确定待回连信息,所述待回连信息用于触发与所述同一组蓝牙设备中的至少一个目标电子设备进行回连。storing the device information of the first electronic device and the device information of the second electronic device in the same information combination set, the same information combination set is used to determine the information to be connected back, and the information to be connected back is used to trigger a connection back with at least one target electronic device in the same group of bluetooth devices.
本申请实施例提供一种蓝牙回连装置,应用于终端设备,所述装置包括:An embodiment of the present application provides a Bluetooth connection back device, which is applied to a terminal device, and the device includes:
信息确定模块,用于确定待回连信息,所述待回连信息是根据与所述终端设备曾经建立过蓝牙连接的一个或多个电子设备的设备信息生成的,所述一个或多个电子设备属于同一组蓝牙设备中的;An information determination module, configured to determine the information to be connected back, the information to be connected back is generated according to the device information of one or more electronic devices that have established a Bluetooth connection with the terminal device, and the one or more electronic devices The device belongs to the same group of Bluetooth devices;
蓝牙连接模块,用于根据所述待回连信息,与所述同一组蓝牙设备中的至少一个目标电子设备进行蓝牙连接。A Bluetooth connection module, configured to perform a Bluetooth connection with at least one target electronic device in the same group of Bluetooth devices according to the information to be connected back.
本申请实施例提供一种信息存储装置,应用于终端设备,所述装置包括:An embodiment of the present application provides an information storage device, which is applied to a terminal device, and the device includes:
蓝牙连接模块,用于分别与第一电子设备建立经典蓝牙连接及第一LE Audio连接,以及与第二电子设备建立第二LE Audio连接,其中,所述第一电子设备及第二电子设备属于同一组蓝牙设备;The Bluetooth connection module is used to respectively establish a classic Bluetooth connection and a first LE Audio connection with the first electronic device, and establish a second LE Audio connection with the second electronic device, wherein the first electronic device and the second electronic device belong to The same group of Bluetooth devices;
存储模块,用于将所述第一电子设备的设备信息与所述第二电子设备的设备信息存储到同一个信息组合集中,所述同一个信息组合集用于确定待回连信息,所述待回连信息用于触发与所述同一组蓝牙设备中的至少一个目标电子设备进行回连。A storage module, configured to store the device information of the first electronic device and the device information of the second electronic device in the same information combination set, the same information combination set is used to determine the information to be connected back, the The connection back information is used to trigger a connection back with at least one target electronic device in the same group of Bluetooth devices.
本申请实施例提供一种终端设备,包括存储器及处理器,所述存储器中存储有计算机 程序,所述计算机程序被所述处理器执行时,使得所述处理器实现如上任一所述的方法。An embodiment of the present application provides a terminal device, including a memory and a processor, where a computer program is stored in the memory, and when the computer program is executed by the processor, the processor implements any of the methods described above .
本申请实施例提供一种计算机可读存储介质,其上存储有计算机程序,所述计算机程序被处理器执行时实现如上任一所述的方法。An embodiment of the present application provides a computer-readable storage medium, on which a computer program is stored, and when the computer program is executed by a processor, any method described above is implemented.
本申请的一个或多个实施例的细节在下面的附图和描述中提出。本申请的其它特征和有益效果将从说明书、附图以及权利要求书中体现。The details of one or more embodiments of the application are set forth in the accompanying drawings and the description below. Other features and beneficial effects of the present application will appear from the description, drawings and claims.
附图说明Description of drawings
为了更清楚地说明本申请实施例中的技术方案,下面将对实施例中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本申请的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to more clearly illustrate the technical solutions in the embodiments of the present application, the following will briefly introduce the accompanying drawings that need to be used in the embodiments. Obviously, the accompanying drawings in the following description are only some embodiments of the present application. For Those of ordinary skill in the art can also obtain other drawings based on these drawings without making creative efforts.
图1A为一个实施例中蓝牙回连方法的应用场景图;FIG. 1A is an application scene diagram of a bluetooth connection back method in an embodiment;
图1B为一个实施例中信息存储方法的应用场景图;FIG. 1B is an application scenario diagram of an information storage method in an embodiment;
图2为一个实施例中蓝牙回连方法的流程图;Fig. 2 is the flow chart of bluetooth connection back method in one embodiment;
图3为一个实施例中根据待回连信息,与同一组蓝牙设备中的至少一个目标电子设备进行蓝牙连接的流程图;FIG. 3 is a flow chart of performing a Bluetooth connection with at least one target electronic device in the same group of Bluetooth devices according to the connection-to-be-connected information in an embodiment;
图4A为一个实施例中蓝牙回连方法的时序示意图;FIG. 4A is a schematic diagram of the sequence of the Bluetooth connection back method in an embodiment;
图4B为另一个实施例中蓝牙回连方法的时序示意图;FIG. 4B is a schematic diagram of the sequence of the Bluetooth connection back method in another embodiment;
图5为另一个实施例中蓝牙回连方法的流程图;Fig. 5 is the flow chart of bluetooth connection back method in another embodiment;
图6为一个实施例中终端设备进行蓝牙连接的时序示意图;FIG. 6 is a schematic diagram of a sequence of bluetooth connections performed by a terminal device in an embodiment;
图7为一个实施例中信息存储方法的流程图;Fig. 7 is a flowchart of an information storage method in an embodiment;
图8为一个实施例中蓝牙回连装置的框图;FIG. 8 is a block diagram of a Bluetooth connection device in an embodiment;
图9为一个实施例中信息存储装置的框图;Fig. 9 is a block diagram of an information storage device in an embodiment;
图10为一个实施例中终端设备的结构框图。Fig. 10 is a structural block diagram of a terminal device in an embodiment.
具体实施方式Detailed ways
下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅是本申请一部分实施例,而不是全部的实施例。基于本申请中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都属于本申请保护的范围。The following will clearly and completely describe the technical solutions in the embodiments of the application with reference to the drawings in the embodiments of the application. Apparently, the described embodiments are only some, not all, embodiments of the application. Based on the embodiments in this application, all other embodiments obtained by persons of ordinary skill in the art without making creative efforts belong to the scope of protection of this application.
需要说明的是,本申请实施例及附图中的术语“包括”和“具有”以及它们任何变形,意图在于覆盖不排他的包含。例如包含了一系列步骤或单元的过程、方法、系统、产品或设备没有限定于已列出的步骤或单元,而是可选地还包括没有列出的步骤或单元,或可选地还包括对于这些过程、方法、产品或设备固有的其它步骤或单元。It should be noted that the terms "comprising" and "having" and any variations thereof in the embodiments of the present application and the drawings are intended to cover non-exclusive inclusion. For example, a process, method, system, product or device comprising a series of steps or units is not limited to the listed steps or units, but optionally also includes unlisted steps or units, or optionally further includes For other steps or units inherent in these processes, methods, products or apparatuses.
可以理解,本申请所使用的术语“第一”、“第二”等可在本文中用于描述各种元件,但这些元件不受这些术语限制。这些术语仅用于将一个元件与另一个元件区分。举例来说,在不脱离本申请的范围的情况下,可以将第一电子设备称为第二电子设备,且类似地,可将第二电子设备称为第一电子设备。第一电子设备和第二电子设备两者都是电子设备,但其不是同一电子设备。本申请所使用的术语“多个”指的是两个及两个以上。本申请所使用的术语“和/或”指的是其中的一种方案,或是其中多种方案的任意组合。It can be understood that the terms "first", "second" and the like used in this application may be used to describe various elements herein, but these elements are not limited by these terms. These terms are only used to distinguish one element from another. For example, a first electronic device could be termed a second electronic device, and, similarly, a second electronic device could be termed a first electronic device, without departing from the scope of the present application. Both the first electronic device and the second electronic device are electronic devices, but they are not the same electronic device. The term "plurality" used in this application refers to two or more than two. The term "and/or" used in this application refers to one of them, or any combination of multiple of them.
图1A为一个实施例中蓝牙回连方法的应用场景图。如图1A所示,电子设备210及电子设备220属于同一组蓝牙设备,电子设备210及电子设备220均为之前曾经与终端设备10建立过蓝牙连接的电子设备。其中,终端设备10可包括但不限于手机、智能可穿戴设备、车载终端、平板电脑、PC(Personal Computer,个人电脑)、PDA(Personal Digital Assistant,个人数字助理)等。电子设备210及电子设备220可包括但不限于耳机、手机、可穿戴设 备、音箱设备、智能家居设备等。作为一种实施方式,电子设备210与电子设备220可以是配套设备,例如,电子设备210与电子设备220可属于同一耳机设备,电子设备210为耳机设备中的左耳机、电子设备220为耳机设备中的右耳机,或电子设备210为耳机设备中的右耳机、电子设备220为耳机设备中的左耳机等。进一步地,该耳机设备可以是TWS(True Wireless Stereo,真无线立体声)耳机。FIG. 1A is an application scene diagram of a Bluetooth connection back method in an embodiment. As shown in FIG. 1A , the electronic device 210 and the electronic device 220 belong to the same group of Bluetooth devices, and both the electronic device 210 and the electronic device 220 have previously established a Bluetooth connection with the terminal device 10 . Wherein, the terminal device 10 may include but not limited to a mobile phone, a smart wearable device, a vehicle terminal, a tablet computer, a PC (Personal Computer, personal computer), a PDA (Personal Digital Assistant, personal digital assistant) and the like. The electronic device 210 and the electronic device 220 may include, but are not limited to, earphones, mobile phones, wearable devices, speaker devices, smart home devices, and the like. As an implementation, the electronic device 210 and the electronic device 220 may be supporting devices, for example, the electronic device 210 and the electronic device 220 may belong to the same earphone device, the electronic device 210 is the left earphone in the earphone device, and the electronic device 220 is the earphone device The right earphone in the earphone device, or the electronic device 210 is the right earphone in the earphone device, and the electronic device 220 is the left earphone in the earphone device, etc. Further, the earphone device may be a TWS (True Wireless Stereo, true wireless stereo) earphone.
需要说明的是,同一组蓝牙设备还可包括除电子设备210及电子设备220以外的其它电子设备,并不仅限于图1A中的电子设备210及电子设备220。It should be noted that the same group of Bluetooth devices may also include other electronic devices except the electronic device 210 and the electronic device 220 , and is not limited to the electronic device 210 and the electronic device 220 in FIG. 1A .
终端设备可确定待回连信息,该待回连信息可以是根据电子设备210及电子设备220的设备信息生成的,可根据该待回连信息与属于同一组蓝牙设备中的电子设备210和/或电子设备220进行蓝牙连接。终端设备可根据该待回连信息,向电子设备210和/或电子设备220发送回连请求,以与电子设备210和/或电子设备220进行蓝牙连接。The terminal device can determine the information to be connected back, the information to be connected back can be generated according to the device information of the electronic device 210 and the electronic device 220, and the electronic device 210 and/or Or the electronic device 220 performs a Bluetooth connection. The terminal device may send a connection back request to the electronic device 210 and/or the electronic device 220 according to the connection back information, so as to perform a Bluetooth connection with the electronic device 210 and/or the electronic device 220 .
终端设备、电子设备210及电子设备220均可以是支持蓝牙双模的电子设备,支持蓝牙双模的电子设备可指的是同时支持经典蓝牙协议及BLE(Bluetooth Low Energy,蓝牙低功耗)协议的电子设备。经典蓝牙协议可支持数据量较大的数据传输,BLE协议可支持对实时性要求较高的数据传输。The terminal device, the electronic device 210 and the electronic device 220 can all be electronic devices supporting Bluetooth dual-mode, and the electronic device supporting Bluetooth dual-mode can refer to supporting both the classic Bluetooth protocol and the BLE (Bluetooth Low Energy, Bluetooth Low Energy) protocol electronic equipment. The classic Bluetooth protocol can support data transmission with a large amount of data, and the BLE protocol can support data transmission with high real-time requirements.
示例性地,图1B为一个实施例中信息存储方法的应用场景图。现结合图1B对终端设备与电子设备210、电子设备220建立蓝牙连接进行说明。Exemplarily, FIG. 1B is an application scenario diagram of an information storage method in an embodiment. The establishment of the Bluetooth connection between the terminal device and the electronic device 210 and the electronic device 220 will now be described with reference to FIG. 1B .
终端设备、电子设备210及电子设备220均可以是支持蓝牙双模的电子设备,终端设备、电子设备210及电子设备220均可以是同时支持经典蓝牙协议及BLE Audio(Bluetooth Low Energy Audio,蓝牙低功耗音频)协议的电子设备。其中,经典蓝牙协议通常泛指在蓝牙协议4.0版本以下的蓝牙协议,BLE协议通常泛指在蓝牙协议4.0版本以上的蓝牙协议。而BLE Audio技术则是解决了利用BLE连接只能传输数据量较小的数据,而不能传输音频数据的问题,BLE Audio协议支持LC3(Low Complexity Communications Codec,低功耗音频编解码)编码的音频数据,使得音频数据的传输能够更好地兼顾功耗、实时性及音质等各方面的问题。The terminal device, the electronic device 210 and the electronic device 220 can all be electronic devices supporting Bluetooth dual-mode, and the terminal device, the electronic device 210 and the electronic device 220 can all support the classic Bluetooth protocol and BLE Audio (Bluetooth Low Energy Audio, Bluetooth Low Energy Audio, Power Consumption Audio) protocol for electronic devices. Among them, the classic Bluetooth protocol generally refers to the Bluetooth protocol below the Bluetooth protocol version 4.0, and the BLE protocol generally refers to the Bluetooth protocol above the Bluetooth protocol version 4.0. The BLE Audio technology solves the problem that the BLE connection can only transmit data with a small amount of data, but cannot transmit audio data. The BLE Audio protocol supports LC3 (Low Complexity Communications Codec, low-power audio codec) encoded audio Data, so that the transmission of audio data can better take into account various aspects of power consumption, real-time performance and sound quality.
为了满足用户在不同场景下对于音频传输的需求,例如,用户在收听高清音乐时,基于经典蓝牙协议传输的LDAC编码的音质可能比BLE Audio协议支持的LC3编码的音质好,因此可基于经典蓝牙协议进行音频数据传输;用户在通过终端设备玩游戏时,基于BLE Audio协议进行音频数据传输可减延延迟等。终端设备10可同时与电子设备210建立经典蓝牙连接及LE Audio蓝牙连接,且终端设备10可与电子设备220建立LE Audio蓝牙连接。终端设备10可将电子设备210的设备信息及电子设备220的设备信息存储到同一个信息组合集中。当终端设备需要与电子设备210及电子设备220所属的同一组蓝牙设备进行回连时,即可从该信息组合集中确定待回连信息,并与电子设备210和/或电子设备220进行蓝牙回连。In order to meet the user's needs for audio transmission in different scenarios, for example, when the user is listening to high-definition music, the sound quality of LDAC encoding based on the classic Bluetooth protocol may be better than that of the LC3 encoding supported by the BLE Audio protocol, so it can be based on the classic Bluetooth Protocol for audio data transmission; when users play games through terminal devices, audio data transmission based on BLE Audio protocol can reduce delay and so on. The terminal device 10 can establish a classic Bluetooth connection and a LE Audio Bluetooth connection with the electronic device 210 at the same time, and the terminal device 10 can establish a LE Audio Bluetooth connection with the electronic device 220. The terminal device 10 may store the device information of the electronic device 210 and the device information of the electronic device 220 in the same information combination set. When the terminal device needs to connect back to the same group of Bluetooth devices to which the electronic device 210 and the electronic device 220 belong, it can determine the information to be connected back from the information combination, and perform Bluetooth back-up with the electronic device 210 and/or the electronic device 220. even.
在一些实施例中,电子设备210与电子设备220之间也可建立有蓝牙连接(可以是经典蓝牙连接或BLE连接),以保证属于同一组蓝牙设备的电子设备210与电子设备220之间实现数据同步。In some embodiments, a Bluetooth connection (which may be a classic Bluetooth connection or a BLE connection) may also be established between the electronic device 210 and the electronic device 220, so as to ensure that the electronic device 210 and the electronic device 220 belonging to the same group of Bluetooth devices realize data synchronization.
在一些实施例中,在终端设备与电子设备210建立经典蓝牙连接之后,电子设备220可对终端设备与电子设备210之间的经典蓝牙连接进行监听,或电子设备210可将通过经典蓝牙连接与终端设备之间传输的数据,同步给电子设备220,以保证终端设备在通过经典蓝牙连接与电子设备210进行数据传输时,电子设备220也可同步获取到传输的数据。In some embodiments, after the terminal device establishes a classic Bluetooth connection with the electronic device 210, the electronic device 220 may monitor the classic Bluetooth connection between the terminal device and the electronic device 210, or the electronic device 210 may connect the classic Bluetooth connection with the The data transmitted between the terminal devices is synchronized to the electronic device 220 to ensure that when the terminal device transmits data with the electronic device 210 through the classic Bluetooth connection, the electronic device 220 can also obtain the transmitted data synchronously.
在终端设备分别与电子设备210建立第一LE Audio蓝牙连接,以及与电子设备220建立第二LE Audio蓝牙连接之后,则可通过第一LE Audio蓝牙连接、第二LE Audio蓝牙连 接分别同步向电子设备210及电子设备220发送音频数据,以保证电子设备210及电子设备220之间接收的音频数据同步。After the terminal equipment establishes the first LE Audio Bluetooth connection with the electronic device 210 and the second LE Audio Bluetooth connection with the electronic device 220, it can respectively synchronize to the electronic device through the first LE Audio Bluetooth connection and the second LE Audio Bluetooth connection. The device 210 and the electronic device 220 send audio data to ensure synchronization of audio data received between the electronic device 210 and the electronic device 220 .
在同一组蓝牙设备与终端设备之间同时保持LE Audio蓝牙连接和经典蓝牙连接(终端设备可以只与同一组蓝牙设备中的主设备建立经典蓝牙连接),可以利用两种蓝牙协议各自的优势,也方便快速切换。Maintain LE Audio Bluetooth connection and classic Bluetooth connection between the same group of Bluetooth devices and terminal devices at the same time (the terminal device can only establish a classic Bluetooth connection with the master device in the same group of Bluetooth devices), you can use the respective advantages of the two Bluetooth protocols, It is also convenient for quick switching.
如图2所示,在一个实施例中,提供一种蓝牙回连方法,可应用于上述的终端设备,该方法可包括以下步骤:As shown in Figure 2, in one embodiment, a Bluetooth connection back method is provided, which can be applied to the above-mentioned terminal device, and the method may include the following steps:
步骤210,确定待回连信息,该待回连信息是根据与终端设备曾经建立过蓝牙连接的一个或多个电子设备的设备信息生成的,该一个或多个电子设备属于同一组蓝牙设备中的。 Step 210, determine the information to be connected back, the information to be connected back is generated according to the device information of one or more electronic devices that have established a Bluetooth connection with the terminal device, and the one or more electronic devices belong to the same group of Bluetooth devices of.
在一些实施例中,当终端设备处于回连状态时,可确定待回连信息,并根据该待回连信息进行蓝牙回连。终端设备进入回连状态的触发条件可根据实际需求进行设置,例如,在终端设备开启蓝牙模块时,可触发终端设备进入回连状态;或是在终端设备检测到与任一电子设备断开蓝牙连接时,可触发终端设备进入回连状态;或是在终端设备检测到与所有电子设备均断开蓝牙连接时,可触发终端设备进入回连状态等,但不限于此。In some embodiments, when the terminal device is in the connection back state, it can determine the connection back information, and perform the Bluetooth connection back according to the connection back information. The trigger conditions for the terminal device to enter the reconnection state can be set according to actual needs. For example, when the terminal device turns on the Bluetooth module, it can trigger the terminal device to enter the reconnection state; or when the terminal device detects that it is disconnected from any electronic device with Bluetooth When connected, the terminal device can be triggered to enter the reconnection state; or when the terminal device detects that it is disconnected from all electronic devices through Bluetooth, it can trigger the terminal device to enter the reconnection state, etc., but is not limited to this.
在本申请实施例中,待回连信息可以是根据属于同一组蓝牙设备的一个或多个电子设备的设备信息生成的,该待回连信息可用于表征该同一组蓝牙设备,或可用于表征该同一组蓝牙设备中的任一电子设备。例如,待回连信息可包括该同一组蓝牙设备中的各个电子设备对应的BLE地址;或待回连信息可包括该同一组蓝牙设备中各个电子设备所共用的经典蓝牙地址等,但不限于此。In this embodiment of the application, the information to be connected back may be generated based on the device information of one or more electronic devices belonging to the same group of Bluetooth devices, and the information to be connected back may be used to represent the same group of Bluetooth devices, or may be used to represent Any electronic device in the same group of Bluetooth devices. For example, the information to be connected back may include the BLE address corresponding to each electronic device in the same group of Bluetooth devices; or the information to be connected back may include the classic Bluetooth address shared by each electronic device in the same group of Bluetooth devices, etc., but is not limited to this.
在一些实施例中,终端设备中可存储有连接记录,连接记录可用于记录与终端设备曾经建立过蓝牙连接的各个电子设备对应的设备信息,其中,设备信息可包括但不限于电子设备对应的经典蓝牙地址、BLE地址、设备名称、SIRK(Set Identity Resolving Key,组合标识解析值)等中的至少一种,其中,BLE地址可用于标识电子设备在LE Audio蓝牙技术中的设备身份。In some embodiments, a connection record may be stored in the terminal device, and the connection record may be used to record device information corresponding to each electronic device with which the terminal device has established a Bluetooth connection, wherein the device information may include but not limited to At least one of the classic Bluetooth address, BLE address, device name, SIRK (Set Identity Resolving Key, combined identification resolution value), etc., where the BLE address can be used to identify the device identity of the electronic device in LE Audio Bluetooth technology.
进一步地,终端设备可将属于同一组蓝牙设备的各个电子设备的设备信息存储在连接记录中的同一个信息组合集中。在BLE Audio技术中提供了CSIP(Coordinated Set Identification Profile,协调集识别协议),该CSIP可以让属于同一组蓝牙设备的各个电子设备在与外部的其它设备(如本申请的终端设备)进行信息交互时,达成协调同步的目标。基于CSIP,终端设备可准确将属于同一组蓝牙设备的各个独立的电子设备识别为同一个组合,例如,属于同一组蓝牙设备的各个电子设备可分别对应相同的SIRK,终端设备可根据获取到的各个电子设备的SIRK进行判断,并将具有相同SIRK的电子设备识别为同一组蓝牙设备。Further, the terminal device may store the device information of each electronic device belonging to the same group of Bluetooth devices in the same information combination set in the connection record. CSIP (Coordinated Set Identification Profile, Coordinated Set Identification Protocol) is provided in BLE Audio technology, which allows each electronic device belonging to the same group of Bluetooth devices to exchange information with other external devices (such as the terminal device of this application) , achieve the goal of coordination and synchronization. Based on CSIP, the terminal device can accurately identify each independent electronic device belonging to the same group of Bluetooth devices as the same combination. For example, each electronic device belonging to the same group of Bluetooth devices can correspond to the same The SIRK of each electronic device is judged, and the electronic devices with the same SIRK are identified as the same group of Bluetooth devices.
蓝牙回连是指与之前连接过的电子设备在断开后基于连接记录重新建立蓝牙连接。蓝牙连接可以是经典蓝牙连接、LE Audio蓝牙连接、BLE蓝牙连接中的至少一种。建立蓝牙连接可以理解为建立能够依据相关蓝牙协议进行数据传输的通信链路,例如建立经典蓝牙连接可以理解为包括建立ACL(Asynchronous Connectionless)异步无连接链路或者SCO(Synchronous Connection Oriented)面向连接的同步链路等物理链路,或者包括建立上层协议(如A2dp/HFP)连接的传输链路,对此不做限制,具体根据业务需求或参考相关蓝牙协议的规定。Bluetooth reconnection refers to re-establishing a Bluetooth connection based on the connection record after disconnecting the previously connected electronic device. The bluetooth connection can be at least one of classic bluetooth connection, LE Audio bluetooth connection, BLE bluetooth connection. Establishing a Bluetooth connection can be understood as establishing a communication link that can transmit data according to the relevant Bluetooth protocol. For example, establishing a classic Bluetooth connection can be understood as including establishing an ACL (Asynchronous Connectionless) asynchronous connectionless link or an SCO (Synchronous Connection Oriented) connection-oriented There are no restrictions on physical links such as synchronization links, or transmission links that establish upper-layer protocol (such as A2dp/HFP) connections, depending on business requirements or referring to relevant Bluetooth protocols.
在传统的蓝牙回连方案中,终端设备在进行回连时,通常只会回连一个电子设备(如只回连最近一次建立蓝牙连接的电子设备),对于同一组蓝牙设备中的多个电子设备来说就可能出现回连错误的情况,例如,一对TWS耳机可认为是一组蓝牙设备,若终端设备最近一次建立蓝牙连接的是耳机A,则在终端设备进行回连时,也只会回连耳机A,如果用户 当前使用的是耳机B,则会导致回连失败。In the traditional bluetooth connection back scheme, when the terminal device is connected back, it usually only connects back to one electronic device (for example, only connects back to the electronic device that established the bluetooth connection last time), for multiple electronic devices in the same group of bluetooth devices For example, a pair of TWS earphones can be regarded as a group of Bluetooth devices. If the last time the terminal device established a Bluetooth connection is earphone A, then when the terminal device is connected back, only Headphone A will be connected back. If the user is currently using headset B, the connection will fail.
在本申请实施例中,终端设备可根据属于同一组蓝牙设备的一个或多个电子设备的设备信息确定待回连信息,并根据该待回连信息回连该同一组蓝牙设备中需要进行蓝牙连接的至少一个目标电子设备,以保证回连的准确性及成功率。In the embodiment of this application, the terminal device can determine the information to be connected back according to the device information of one or more electronic devices belonging to the same group of Bluetooth devices, and according to the information to be connected back to the same group of Bluetooth devices that need to perform Bluetooth At least one target electronic device to be connected to ensure the accuracy and success rate of the connection back.
在一些实施例中,终端设备可确定待回连的同一组蓝牙设备,并从该待回连的同一组蓝牙设备对应的信息组合集中确定待回连信息。该待回连的同一组蓝牙设备可以是根据预设的回连规则确定的,该回连规则可包括但不限于:和最近一次与终端设备建立蓝牙连接的电子设备进行回连、和最近一次与终端设备断开蓝牙连接的电子设备进行回连、和与终端设备建立蓝牙连接次数最多的电子设备进行回连以及和用户指定的电子设备进行回连等。In some embodiments, the terminal device may determine the same group of Bluetooth devices to be connected back, and determine the information to be connected back from the information combination set corresponding to the same group of Bluetooth devices to be connected back. The same group of bluetooth devices to be connected back can be determined according to a preset connection back rule, which can include but not limited to: connect back with the electronic device that established a bluetooth connection with the terminal device last time, and the last time Connect back to the electronic device that has disconnected the Bluetooth connection with the terminal device, connect back to the electronic device that has established the most Bluetooth connections with the terminal device, and connect back to the electronic device specified by the user.
根据该回连规则确定的待回连的同一组蓝牙设备,可包括但不限于以下的任一种:待回连的同一组蓝牙设备为,最近一次与终端设备建立蓝牙连接的电子设备所属的一组蓝牙设备;待回连的同一组蓝牙设备为,最近一次与终端设备断开蓝牙连接的电子设备所属的一组蓝牙设备;待回连的同一组蓝牙设备为,与终端设备建立蓝牙连接次数最多的电子设备所属的一组蓝牙设备;待回连的同一组蓝牙设备为根据检测到的设置操作确定的一组蓝牙设备等。其中,用户可在终端设备提供的蓝牙设置界面中进行设置操作,以选择所需进行连接的一个电子设备或一组蓝牙设备,该蓝牙设置界面中可包括终端设备存储的曾经建立过蓝牙连接的各个电子设备的设备信息,或用于表征与终端设备曾经建立过蓝牙连接的各组蓝牙设备对应的组别信息等,如每组蓝牙设备对应的组号、每组蓝牙设备对应的SIRK、每组蓝牙设备对应的经典蓝牙地址等,但不限于此。The same group of Bluetooth devices to be connected back determined according to the connection back rule may include, but not limited to, any of the following: the same group of Bluetooth devices to be connected back to is the electronic device that last established a Bluetooth connection with the terminal device. A group of Bluetooth devices; the same group of Bluetooth devices to be connected back is the group of Bluetooth devices that belong to the electronic device that disconnected the Bluetooth connection with the terminal device last time; the same group of Bluetooth devices to be connected back to is to establish a Bluetooth connection with the terminal device The group of bluetooth devices to which the electronic device with the most frequency belongs; the same group of bluetooth devices to be connected back to is a group of bluetooth devices determined according to the detected setting operation, etc. Among them, the user can perform setting operations in the Bluetooth setting interface provided by the terminal device to select an electronic device or a group of Bluetooth devices to be connected. The device information of each electronic device, or the group information corresponding to each group of Bluetooth devices that have established a Bluetooth connection with the terminal device, such as the group number corresponding to each group of Bluetooth devices, the SIRK corresponding to each group of Bluetooth devices, and the The classic Bluetooth address corresponding to the group Bluetooth device, etc., but not limited thereto.
需要说明的是,同一组蓝牙设备对应的信息组合集可存储有同一组蓝牙设备中的各个电子设备的设备信息,也可仅存储同一组蓝牙设备中用于回连的信息,例如,信息组合集中可仅存储同一组蓝牙设备中各个电子设备共用的蓝牙地址及SIRK等。It should be noted that the information combination set corresponding to the same group of Bluetooth devices can store the device information of each electronic device in the same group of Bluetooth devices, or only store the information used for the connection back in the same group of Bluetooth devices, for example, the information combination Only the Bluetooth address and SIRK shared by each electronic device in the same group of Bluetooth devices can be stored centrally.
步骤220,根据待回连信息,与同一组蓝牙设备中的至少一个目标电子设备进行蓝牙连接。 Step 220, perform a Bluetooth connection with at least one target electronic device in the same group of Bluetooth devices according to the pending connection information.
终端设备回连的属于同一组蓝牙设备中的至少一个目标电子设备,可以是该同一组蓝牙设备需要进行蓝牙连接的电子设备,该蓝牙连接可包括但不限于LE Audio蓝牙连接、BLE连接、经典蓝牙连接等中的至少一种。进一步地,该蓝牙连接可包括LE Audio蓝牙连接和/或经典蓝牙连接。以进行LE Audio蓝牙连接的回连为例,目标电子设备可以是该同一组蓝牙设备中发送LE Audio广播信号的电子设备,发送LE Audio广播信号表示该电子设备需要与终端设备进行LE Audio蓝牙连接。可以理解的,当目标电子设备为同一组蓝牙设备中的主设备时,终端设备可以与其建立经典蓝牙连接和LE Audio蓝牙连接;当目标电子设备为同一组蓝牙设备中的从设备时,终端设备仅与其建立LE Audio蓝牙连接。The terminal device connects back to at least one target electronic device belonging to the same group of Bluetooth devices, which may be an electronic device that needs to be connected to the same group of Bluetooth devices. The Bluetooth connection may include but is not limited to LE Audio Bluetooth connection, BLE connection, classic At least one of Bluetooth connectivity, etc. Further, the bluetooth connection may include LE Audio bluetooth connection and/or classic bluetooth connection. Taking the connection back of LE Audio Bluetooth connection as an example, the target electronic device can be the electronic device that sends LE Audio broadcast signal in the same group of Bluetooth devices. Sending LE Audio broadcast signal indicates that the electronic device needs to perform LE Audio Bluetooth connection with the terminal device. . It can be understood that when the target electronic device is the master device in the same group of Bluetooth devices, the terminal device can establish a classic Bluetooth connection and LE Audio Bluetooth connection with it; when the target electronic device is a slave device in the same group of Bluetooth devices, the terminal device Only establish a LE Audio Bluetooth connection to it.
在一些实施例中,同一组蓝牙设备中的各个电子设备共用(或共享)同一经典蓝牙地址,例如相对终端设备共用同一经典蓝牙地址,也就是说相对终端设备同一组蓝牙设备中的各个电子设备的经典蓝牙地址相同,从而可以使得终端设备感知同一组蓝牙设备为一个经典蓝牙设备,方便电子设备之间进行经典蓝牙的主从切换。同一组蓝牙设备中的各个电子设备分别对应不同的BLE地址。同一组蓝牙设备中各个电子设备可具有对应的主从关系,同一组蓝牙设备中可包括一个主从关系为主设备的电子设备,以及至少一个主从关系为从设备的电子设备。其中,主从关系为主设备的电子设备可与外部的其它设备(如上述的终端设备)直接建立经典蓝牙连接,主从关系为从设备的电子设备则不与外部的其它设备建立经典蓝牙连接,而是对主从关系为主设备的电子设备与外部的其它设备之间的经典蓝牙连接进行监听,或是由主从关系为主设备的电子设备将与外部的其它设备通过经典蓝牙连 接传输的数据转发给主从关系为从设备的电子设备,以此来实现同一组蓝牙设备中各个电子设备之间的主从同步。In some embodiments, each electronic device in the same group of Bluetooth devices shares (or shares) the same classic Bluetooth address, for example, the relative terminal device shares the same classic Bluetooth address, that is to say, each electronic device in the same group of Bluetooth devices relative to the terminal device The classic Bluetooth addresses of the devices are the same, so that the terminal device can perceive the same group of Bluetooth devices as a classic Bluetooth device, which facilitates the master-slave switching of classic Bluetooth between electronic devices. Each electronic device in the same group of Bluetooth devices corresponds to a different BLE address. Each electronic device in the same group of Bluetooth devices may have a corresponding master-slave relationship, and the same group of Bluetooth devices may include one electronic device with a master-slave relationship as a master device and at least one electronic device with a master-slave relationship as a slave device. Among them, the electronic device with the master-slave relationship as the master device can directly establish a classic Bluetooth connection with other external devices (such as the above-mentioned terminal device), and the electronic device with the master-slave relationship as the slave device does not establish a classic Bluetooth connection with other external devices. , but to monitor the classic Bluetooth connection between the electronic device with the master-slave relationship and other external devices, or the electronic device with the master-slave relationship as the master device will communicate with other external devices through the classic Bluetooth connection The data is forwarded to the electronic device whose master-slave relationship is the slave device, so as to realize the master-slave synchronization between the electronic devices in the same group of Bluetooth devices.
在一些实施例中,同一组蓝牙设备中可包括默认主设备,以及至少一个默认从设备,该默认主设备指的是同一组蓝牙设备在出厂时默认主从关系为主设备的电子设备,而默认从设备则指的是同一组蓝牙设备在出厂时默认主从关系为从设备的电子设备。同一组蓝牙设备中的默认主设备的BLE地址,与同一组蓝牙设备中各个电子设备所共用的经典蓝牙地址相同,同一组蓝牙设备中的默认从设备的BLE地址,与同一组蓝牙设备中各个电子设备所共用的经典蓝牙地址不同。例如,同一组蓝牙设备中各个电子设备所共用的经典蓝牙地址为地址A,则默认主设备的BLE地址也为地址A,而默认从设备的BLE地址为地址B。In some embodiments, the same group of bluetooth devices may include a default master device and at least one default slave device. The default master device refers to an electronic device with a default master-slave relationship as a master device when the same group of bluetooth devices leave the factory, and The default slave device refers to an electronic device whose default master-slave relationship of the same group of Bluetooth devices is a slave device when it leaves the factory. The BLE address of the default master device in the same group of Bluetooth devices is the same as the classic Bluetooth address shared by each electronic device in the same group of Bluetooth devices, and the default BLE address of the slave device in the same group of Bluetooth devices is the same as that of each The classic Bluetooth addresses shared by electronic devices are different. For example, if the classic Bluetooth address shared by each electronic device in the same group of Bluetooth devices is address A, the default BLE address of the master device is also address A, and the default BLE address of the slave device is address B.
在同一组蓝牙设备的使用过程中,同一组蓝牙设备中的各个电子设备可能会发生主从切换,也即电子设备的主从关系发生变化,如主从关系从主设备变为从设备,或主从关系从设备变为主设备。在传统的蓝牙回连方案中,终端设备在进行回连时,通常只会回连一个电子设备,例如,由于相关技术中,主设备与从设备相对终端设备共用同一个经典蓝牙地址,因此仅建立经典蓝牙连接时,终端设备只记录默认主设备的蓝牙地址即可,按照相关技术的规则,终端设备默认回连的是默认主设备对应的蓝牙地址,因此终端设备在回连时,只会与BLE地址为地址A的电子设备(即默认主设备)进行LE Audio蓝牙连接,在某些情况下(如默认主设备被放入盒中、断电等情况)当前用户使用的是同一组蓝牙设备中BLE地址为地址B的电子设备(即默认从设备),默认从设备的主从关系变更为主设备,发生了主从切换,则终端设备无法成功与同一组蓝牙设备中BLE地址为地址B的电子设备进行LE Audio蓝牙连接。During the use of the same group of Bluetooth devices, each electronic device in the same group of Bluetooth devices may undergo master-slave switching, that is, the master-slave relationship of the electronic device changes, such as the master-slave relationship changes from a master device to a slave device, or Master-slave relationship The slave device becomes the master device. In the traditional bluetooth connection back scheme, the terminal device usually only connects back to one electronic device. For example, in the related art, the master device and the slave device share the same classic bluetooth When establishing a classic Bluetooth connection, the terminal device only needs to record the Bluetooth address of the default master device. According to the rules of related technologies, the terminal device defaults to connect back to the Bluetooth address corresponding to the default master device. Therefore, when the terminal device connects back, it will only Perform LE Audio Bluetooth connection with the electronic device whose BLE address is address A (that is, the default master device). In some cases (such as the default master device being put into the box, power failure, etc.), the current user is using the same group of Bluetooth The electronic device whose BLE address is address B in the device (that is, the default slave device), the master-slave relationship of the default slave device is changed to the master device, and a master-slave switch occurs, the terminal device cannot successfully communicate with the BLE address of the same group of Bluetooth devices. B's electronic device performs LE Audio Bluetooth connection.
而在本申请实施例中,终端设备根据待回连信息,只要识别到需要进行连接的电子设备属于同一组蓝牙设备,即可与该电子设备进行蓝牙连接。例如,终端设备接收到了BLE地址为地址B的电子设备发送的LE Audio广播信号,识别到该BLE地址为地址B的电子设备与BLE地址为地址A的电子设备属于同一组蓝牙设备,则与该BLE地址为地址B的电子设备进行LE Audio蓝牙连接。可保证回连的准确性,且当同一组蓝牙设备中有多个需要连接的电子设备时可同时进行回连,提高回连效率,而对于同一组蓝牙设备来说,也不需要更改蓝牙地址,免去了对同一组蓝牙设备的各个电子设备的复杂设计。However, in the embodiment of the present application, the terminal device can perform a Bluetooth connection with the electronic device as long as it recognizes that the electronic device to be connected belongs to the same group of Bluetooth devices according to the information to be connected. For example, if the terminal device receives the LE Audio broadcast signal sent by the electronic device with the BLE address of address B, and recognizes that the electronic device with the BLE address of address B and the electronic device with the BLE address of address A belong to the same group of Bluetooth devices, it will communicate with this The electronic device whose BLE address is address B performs LE Audio Bluetooth connection. The accuracy of the connection back can be guaranteed, and when there are multiple electronic devices that need to be connected in the same group of Bluetooth devices, the connection back can be performed at the same time to improve the efficiency of the connection back, and for the same group of Bluetooth devices, there is no need to change the Bluetooth address , eliminating the complicated design of each electronic device of the same group of Bluetooth devices.
需要说明的是,同一组蓝牙设备中的各个电子设备的蓝牙地址配置方案并不仅限于上述的方案,例如,默认主设备的BLE地址也可与共用的经典蓝牙地址不同,如同一组蓝牙设备中各个电子设备所共用的经典蓝牙地址为地址A,则默认主设备的BLE地址为地址C。又例如,在同一组蓝牙设备发生主从切换时,主从关系由从设备切换为主设备的电子设备,会将BLE地址也改为与经典蓝牙地址相同,如同一组蓝牙设备中各个电子设备所共用的经典蓝牙地址为地址A,默认从设备的BLE地址为地址B,在默认从设备的主从关系变更为主设备且默认从设备断开与终端设备的蓝牙连接和/或断开与终端设备的蓝牙连接后又重新与终端设备建立蓝牙连接时,BLE地址变更为地址A等。本申请实施例对于同一组蓝牙设备中的各个电子设备的蓝牙地址不作限定。It should be noted that the bluetooth address configuration scheme of each electronic device in the same group of bluetooth devices is not limited to the above-mentioned scheme, for example, the default BLE address of the master device can also be different from the shared classic bluetooth address, just like in a group of bluetooth devices The classic Bluetooth address shared by each electronic device is address A, and the default BLE address of the master device is address C. For another example, when the master-slave switch occurs in the same group of Bluetooth devices, the electronic device whose master-slave relationship is switched from the slave device to the master device will change the BLE address to be the same as the classic Bluetooth address, just like each electronic device in a group of Bluetooth devices The shared classic Bluetooth address is address A, and the default BLE address of the slave device is address B. When the master-slave relationship of the default slave device is changed to the master device and the default slave device disconnects from the Bluetooth connection with the terminal device and/or disconnects from the terminal device When the Bluetooth connection of the terminal device is established again with the terminal device, the BLE address is changed to address A, etc. The embodiment of the present application does not limit the Bluetooth address of each electronic device in the same group of Bluetooth devices.
在本申请实施例中,终端设备可根据待回连信息,与同一组蓝牙设备中的至少一个目标电子设备进行蓝牙连接,终端设备可实现自动与同一组蓝牙设备中需要连接的各个目标电子设备进行回连,能够提高终端设备的蓝牙回连速度,且可提高蓝牙回连的准确性。而且,本申请实施例所提供的蓝牙回连方案仅在终端设备侧进行实现,免去了对同一组蓝牙设备的各个电子设备的复杂设计,通用性更好。In this embodiment of the application, the terminal device can perform a Bluetooth connection with at least one target electronic device in the same group of Bluetooth devices according to the information to be connected back, and the terminal device can automatically connect to each target electronic device in the same group of Bluetooth devices that needs to be connected. The connection back can increase the speed of the Bluetooth connection back of the terminal device, and can improve the accuracy of the Bluetooth connection back. Moreover, the bluetooth connection back solution provided by the embodiment of the present application is only implemented on the terminal device side, which avoids the complicated design of each electronic device of the same group of bluetooth devices, and has better versatility.
在一些实施例中,终端设备在进行回连时,可与同一组蓝牙设备中一个目标电子设备进行经典蓝牙回连,以及与同一组蓝牙设备中的一个或多个目标电子设备进行LE Audio蓝 牙回连。如图3所示,步骤根据待回连信息,与同一组蓝牙设备中的至少一个目标电子设备进行蓝牙连接,可包括以下步骤:In some embodiments, when the terminal device is connected back, it can perform classic Bluetooth connection back with a target electronic device in the same group of Bluetooth devices, and perform LE Audio Bluetooth connection with one or more target electronic devices in the same group of Bluetooth devices. Connect back. As shown in Figure 3, the step is to perform a Bluetooth connection with at least one target electronic device in the same group of Bluetooth devices according to the information to be connected back, which may include the following steps:
步骤302,根据经典蓝牙地址发送第一回连请求,第一回连请求用于触发同一组蓝牙设备中当前的主从关系为主设备的第一目标电子设备与终端设备建立经典蓝牙连接。Step 302: Send a first connection back request according to the classic Bluetooth address, and the first connection back request is used to trigger the first target electronic device whose current master-slave relationship is the master device in the same group of Bluetooth devices to establish a classic Bluetooth connection with the terminal device.
在一些实施例中,终端设备可先根据上述的回连规则确定待回连的经典蓝牙地址,如将最近一次断开蓝牙连接的经典蓝牙地址作为待回连的经典蓝牙地址,或是将最近一次建立蓝牙连接的经典蓝牙地址作为待回连的经典蓝牙地址,或者是用户设置的某个电子设备对应的经典蓝牙地址等,但不限于此。从而可根据该待回连的经典蓝牙地址确定待回连的同一组蓝牙设备,该待回连的经典蓝牙地址即为待回连的同一组蓝牙设备中各个电子设备所共用的经典蓝牙地址。In some embodiments, the terminal device can first determine the classic Bluetooth address to be connected back according to the above-mentioned connection back rules, such as using the classic Bluetooth address that was last disconnected from the Bluetooth connection as the classic Bluetooth address to be connected back, or using the latest The classic Bluetooth address of once established Bluetooth connection is used as the classic Bluetooth address to be connected back, or the classic Bluetooth address corresponding to an electronic device set by the user, etc., but not limited thereto. Therefore, the same group of Bluetooth devices to be connected back can be determined according to the classic Bluetooth address to be connected back. The classic Bluetooth address to be connected back is the classic Bluetooth address shared by each electronic device in the same group of Bluetooth devices to be connected back.
需要说明的,在一些实施例中,也可不先确定待回连的经典蓝牙地址,而是直接确定待回连的同一组蓝牙设备,终端设备只要确定待回连的同一组蓝牙设备即可,该待回连的同一组蓝牙设备可以根据本申请中的回连规则确定,也就是说,并不一定要先根据回连的经典蓝牙地址来确定待回连的同一组蓝牙设备。例如,在终端设备接收到某个电子设备的LE Audio广播信号,根据该LE Audio广播信号可确定发送LE Audio广播信号的电子设备是否属于待回连的同一组蓝牙设备中的电子设备,如果属于就进一步触发建立LE Audio蓝牙连接,而无需先确定待回连的经典蓝牙地址。It should be noted that in some embodiments, instead of first determining the classic Bluetooth address to be connected back, the same group of Bluetooth devices to be connected back may be directly determined. The terminal device only needs to determine the same group of Bluetooth devices to be connected back. The same group of Bluetooth devices to be connected back can be determined according to the connection back rules in this application, that is, it is not necessary to first determine the same group of Bluetooth devices to be connected back according to the classic Bluetooth address of the connection back. For example, when the terminal device receives the LE Audio broadcast signal of an electronic device, it can be determined according to the LE Audio broadcast signal whether the electronic device sending the LE Audio broadcast signal belongs to the electronic device in the same group of Bluetooth devices to be connected back. It will further trigger the establishment of LE Audio Bluetooth connection without first determining the classic Bluetooth address to be connected back.
待回连信息可包括经典蓝牙地址,该经典蓝牙地址即为待回连的同一组蓝牙设备中各个电子设备所共用的经典蓝牙地址。终端设备可根据经典蓝牙地址发送第一回连请求。若待回连的同一组蓝牙设备中当前的主从关系为主设备的第一目标电子设备当前处于可连接状态,且该第一目标电子设备处于终端设备的一定距离范围内,则可接收到终端设备发送的第一回连请求,并在接收到该第一回连请求后,可根据该第一回连请求与终端设备建立经典蓝牙连接。The information to be connected back may include a classic Bluetooth address, which is a classic Bluetooth address shared by all electronic devices in the same group of Bluetooth devices to be connected back. The terminal device can send the first connection back request according to the classic Bluetooth address. If the current master-slave relationship in the same group of Bluetooth devices to be connected back is the first target electronic device of the master device, which is currently in a connectable state, and the first target electronic device is within a certain distance of the terminal device, then it can receive The terminal device sends a first connection back request, and after receiving the first connection back request, can establish a classic Bluetooth connection with the terminal device according to the first connection back request.
其中,可连接状态可指的是第一目标电子设备处于page scan模式,在page scan模式下,能够接收到终端设备发送的蓝牙连接请求。进一步地,该第一回连请求可以是寻呼(page)数据包,终端设备可采用跳频的方式发送寻呼数据包,第一目标电子设备可固定间隔地扫描(scan)外部发送的寻呼数据包,若第一目标电子设备扫描到终端设备发送的寻呼数据包,即接收到第一回连请求,并与终端设备建立经典蓝牙连接。经典蓝牙连接的具体过程,可参考蓝牙标准协议的规定。Wherein, the connectable state may refer to that the first target electronic device is in the page scan mode, and in the page scan mode, can receive the Bluetooth connection request sent by the terminal device. Further, the first connection back request may be a paging (page) data packet, the terminal device may send the paging data packet in a frequency hopping manner, and the first target electronic device may scan (scan) the externally sent paging data packet at fixed intervals. Paging data packet, if the first target electronic device scans the paging data packet sent by the terminal device, it will receive the first connection back request and establish a classic Bluetooth connection with the terminal device. For the specific process of the classic Bluetooth connection, please refer to the provisions of the Bluetooth standard protocol.
可选地,若第一目标电子设备当前未处于可连接状态,或第一目标电子设备不处于终端设备的一定距离范围内,则第一目标电子设备无法接收到该第一回连请求,终端设备无法成功与第一目标电子设备建立经典蓝牙连接,经典蓝牙回连失败。在一些实施例中,终端设备可放弃经典蓝牙回连。在另一些实施例中,该同一组蓝牙设备可进行主从切换,例如选择可接收到该第一回连请求的电子设备作为主设备,并与终端设备建立经典蓝牙连接,或是终端设备也可重新选择待回连的经典蓝牙地址,以保证成功进行经典蓝牙回连。当然,可以理解的,终端设备重新选择回连的经典蓝牙地址,对应回连的可能是另一组蓝牙设备。Optionally, if the first target electronic device is not currently in a connectable state, or the first target electronic device is not within a certain distance of the terminal device, the first target electronic device cannot receive the first connection back request, and the terminal The device cannot successfully establish a classic Bluetooth connection with the first target electronic device, and the classic Bluetooth reconnection fails. In some embodiments, the terminal device may forego the classic Bluetooth connection back. In other embodiments, the same group of Bluetooth devices can perform master-slave switching, for example, select the electronic device that can receive the first connection back request as the master device, and establish a classic Bluetooth connection with the terminal device, or the terminal device also You can re-select the classic Bluetooth address to be connected back to ensure successful classic Bluetooth connection back. Of course, it is understandable that the terminal device reselects the classic Bluetooth address for the connection back, and the corresponding connection back may be another group of Bluetooth devices.
步骤304,接收第二目标电子设备发送的LE Audio广播信号,并根据LE Audio广播信号及待回连信息判断第二目标电子设备是否属于同一组蓝牙设备,若属于同一组蓝牙设备,则根据LE Audio广播信号对应的BLE地址向第二目标电子设备发送第二回连请求,第二回连请求用于触发第二目标电子设备与终端设备建立LE Audio蓝牙连接。 Step 304, receiving the LE Audio broadcast signal sent by the second target electronic device, and judging whether the second target electronic device belongs to the same group of Bluetooth devices according to the LE Audio broadcast signal and the information to be connected back, if they belong to the same group of Bluetooth devices, then according to the LE The BLE address corresponding to the Audio broadcast signal sends a second connection back request to the second target electronic device, and the second connection back request is used to trigger the second target electronic device to establish a LE Audio Bluetooth connection with the terminal device.
在同一组蓝牙设备中的任一电子设备需要与终端设备进行LE Audio蓝牙连接时,可处于广播状态,并以自身的BLE地址发送LE Audio广播信号。若终端设备接收到第二目标电子设备发送的LE Audio广播信号,可根据接收的LE Audio广播信号及待回连信息判断 该第二目标电子设备是否属于待回连的同一组蓝牙设备,若属于,则可与第二目标电子设备进行LE Audio蓝牙回连。终端设备可根据接收的LE Audio广播信号对应的BLE地址向第二目标电子设备发送第二回连请求,以触发第二目标电子设备与终端设备建立LE Audio蓝牙连接。When any electronic device in the same group of Bluetooth devices needs to establish a LE Audio Bluetooth connection with the terminal device, it can be in a broadcast state and send a LE Audio broadcast signal with its own BLE address. If the terminal device receives the LE Audio broadcast signal sent by the second target electronic device, it can judge whether the second target electronic device belongs to the same group of Bluetooth devices to be connected back according to the received LE Audio broadcast signal and the information to be connected back. , you can perform LE Audio Bluetooth connection back with the second target electronic device. The terminal device can send a second connection back request to the second target electronic device according to the BLE address corresponding to the received LE Audio broadcast signal, so as to trigger the second target electronic device to establish a LE Audio Bluetooth connection with the terminal device.
作为一种具体实施方式,终端设备可基于接收到的LE Audio广播信号中的BLE地址向第二目标电子设备发送connection request命令(可以理解为第二回连请求),该connection request命令用于通知第二目标电子设备即将要与第二目标电子设备进行LE Audio蓝牙连接。第二目标电子设备在接收到该connection request命令后,可根据该connection request命令进行接收准备。例如,该connection request命令可包括传输窗口时延(Transmit window offset)、传输窗口尺寸(Transmit window size)等字段信息。其中,传输窗口时延、传输窗口尺寸等信息可用于确定第二目标电子设备从接收到connection request命令,到接收到LE Audio连接数据包的时间间隔。在到达连接锚点时,终端设备可向第二目标电子设备发送LE Audio连接数据包,第二目标电子设备在接收到该LE Audio连接数据包后,可向终端设备返回响应信号,从而与终端设备成功建立LE Audio蓝牙连接。具体连接方式也可以参考相关蓝牙协议的规定。As a specific implementation, the terminal device can send a connection request command (which can be understood as a second connection request) to the second target electronic device based on the BLE address in the received LE Audio broadcast signal. The connection request command is used to notify The second target electronic device is about to perform LE Audio Bluetooth connection with the second target electronic device. After receiving the connection request command, the second target electronic device can prepare for receiving according to the connection request command. For example, the connection request command may include field information such as transmission window delay (Transmit window offset), transmission window size (Transmit window size). Among them, information such as transmission window delay and transmission window size can be used to determine the time interval from receiving the connection request command to receiving the LE Audio connection data packet of the second target electronic device. When reaching the connection anchor point, the terminal device can send an LE Audio connection data packet to the second target electronic device, and after receiving the LE Audio connection data packet, the second target electronic device can return a response signal to the terminal device, thereby communicating with the terminal The device successfully establishes a LE Audio Bluetooth connection. For the specific connection method, please refer to the regulations of the relevant Bluetooth protocol.
在一些实施例中,在终端设备根据接收的LE Audio广播信号及待回连信息确定第二目标电子设备不属于待回连的同一组蓝牙设备时,则终端设备可不响应该LE Audio广播信号,不与第二目标电子设备建立LE Audio蓝牙连接。In some embodiments, when the terminal device determines that the second target electronic device does not belong to the same group of Bluetooth devices to be connected back according to the received LE Audio broadcast signal and the information to be connected back, the terminal device may not respond to the LE Audio broadcast signal, No LE Audio Bluetooth connection is established with the second target electronic device.
需要说明的是,在第二目标电子设备属于待回连的同一组蓝牙设备的情况下,该第二目标电子设备可以是该同一组蓝牙设备中的任一电子设备,如可以是该同一组蓝牙设备中当前的主从关系为主设备的电子设备(即上述的第一目标电子设备),也可以是同一组蓝牙设备中当前的主从关系为从设备的电子设备,可以理解的,第一目标电子设备和第二目标电子设备可以是同一个电子设备也可以是不同的电子设备。本申请实施例中,终端设备可与同一组蓝牙设备建立双蓝牙连接,以满足不同业务场景下的不同需求,也方便快速切换。It should be noted that, in the case that the second target electronic device belongs to the same group of Bluetooth devices to be connected back, the second target electronic device can be any electronic device in the same group of Bluetooth devices, such as the same group The current master-slave relationship in the Bluetooth device is the electronic device of the master device (that is, the above-mentioned first target electronic device), or it can be the electronic device whose current master-slave relationship is the slave device in the same group of Bluetooth devices. It can be understood that the first target electronic device A target electronic device and a second target electronic device may be the same electronic device or different electronic devices. In the embodiment of the present application, the terminal device can establish dual Bluetooth connections with the same group of Bluetooth devices, so as to meet different requirements in different business scenarios, and facilitate quick switching.
在一些实施例中,终端设备根据接收的LE Audio广播信号及待回连信息判断该第二目标电子设备是否属于待回连的同一组蓝牙设备,可采用以下中的任一种方式进行判断:In some embodiments, the terminal device judges whether the second target electronic device belongs to the same group of Bluetooth devices to be connected according to the received LE Audio broadcast signal and the information to be connected back, and can be judged in any of the following ways:
方式一、待回连信息可包括待回连的同一组蓝牙设备共用的经典蓝牙地址,及该同一组蓝牙设备各个电子设备对应的同一SIRK。由于属一组蓝牙设备的各个电子设备对应相同的SIRK,因此可通过待回连的同一组蓝牙设备对应的SIRK来判断是否第二目标电子设备是否属于该同一组蓝牙设备。Method 1. The information to be connected back may include the classic Bluetooth address shared by the same group of Bluetooth devices to be connected back, and the same SIRK corresponding to each electronic device of the same group of Bluetooth devices. Since each electronic device belonging to a group of Bluetooth devices corresponds to the same SIRK, it can be determined whether the second target electronic device belongs to the same group of Bluetooth devices through the SIRK corresponding to the same group of Bluetooth devices to be connected back.
终端设备可对接收到的LE Audio广播信号进行解析,得到LE Audio广播信号所携带的特定广播信息,并根据待回连信息中包含的SIRK与该特定广播信息计算得到本地值,若本地值与LE Audio广播信号中的目标字段值相同,则可确定第二目标电子设备属于同一组蓝牙设备。The terminal device can analyze the received LE Audio broadcast signal to obtain the specific broadcast information carried by the LE Audio broadcast signal, and calculate the local value according to the SIRK contained in the information to be connected back and the specific broadcast information. If the local value is the same as If the target field values in the LE Audio broadcast signal are the same, it can be determined that the second target electronic device belongs to the same group of Bluetooth devices.
作为一种具体的实施方式,该LE Audio广播信号可包括RSI(resolvable Set Identifier,可解析集标识符),RSI可包括两部分:1、由电子设备对应的SIRK生成的哈希序列;2、随机数产生的随机序列。解析LE Audio广播信号得到的特定广播信息可包括RSI的随机序列,LE Audio广播信号中的目标字段值可指的是LE Audio广播信号所携带的RSI的哈希序列。在已知待回连的同一组蓝牙设备对应的SIRK的情况下,可根据待回连信息中包含的SIRK及解析得到的RSI中的随机序列,计算得到本地值,并将本地值与LE Audio广播信号与RSI的哈希序列进行比对,若二者一致,则可确定第二目标电子设备属于待回连的同一组蓝牙设备。As a specific implementation, the LE Audio broadcast signal may include RSI (resolvable Set Identifier, resolvable set identifier), and the RSI may include two parts: 1. A hash sequence generated by the SIRK corresponding to the electronic device; 2. A random sequence of random numbers generated. The specific broadcast information obtained by parsing the LE Audio broadcast signal may include a random sequence of RSI, and the target field value in the LE Audio broadcast signal may refer to the hash sequence of the RSI carried by the LE Audio broadcast signal. When the SIRK corresponding to the same group of Bluetooth devices to be connected back is known, the local value can be calculated according to the SIRK contained in the connected back information and the random sequence in the analyzed RSI, and the local value is compared with LE Audio The broadcast signal is compared with the hash sequence of the RSI, and if the two are consistent, it can be determined that the second target electronic device belongs to the same group of Bluetooth devices to be connected back.
方式二、作为利用电子设备对应的SIRK来判断第二目标电子设备是否属于待回连的 同一组蓝牙设备的另一种方式,该LE Audio广播信号可直接包括SIRK。终端设备可获取接收到的LE Audio广播信号中携带的SIRK,若该LE Audio广播信号中携带的SIRK与待回连信息中包含的SIRK一致,则确定第二目标电子设备属于待回连的同一组蓝牙设备。Mode 2: As another way of using the SIRK corresponding to the electronic device to determine whether the second target electronic device belongs to the same group of Bluetooth devices to be connected back, the LE Audio broadcast signal may directly include the SIRK. The terminal device can obtain the SIRK carried in the received LE Audio broadcast signal. If the SIRK carried in the LE Audio broadcast signal is consistent with the SIRK contained in the information to be connected back, it is determined that the second target electronic device belongs to the same device to be connected back. Group bluetooth devices.
方式三、待回连信息可包括待回连的同一组蓝牙设备中各个电子设备共用的经典蓝牙地址,及该同一组蓝牙设备中各个电子设备的BLE地址,需要说明的是,该同一组蓝牙设备中的各个电子设备指的是与终端设备建立过LE Audio蓝牙连接的电子设备。终端设备可判断接收到的LE Audio广播信号对应的BLE地址是否与待回连信息中包含的任一BLE地址一致,若LE Audio广播信号对应的BLE地址与待回连信息中包含的任一BLE地址一致,则确定第二目标电子设备属于该同一组蓝牙设备。Method 3. The information to be connected back can include the classic Bluetooth address shared by each electronic device in the same group of Bluetooth devices to be connected back, and the BLE address of each electronic device in the same group of Bluetooth devices. It should be noted that the same group of Bluetooth Each electronic device in the device refers to the electronic device that has established a LE Audio Bluetooth connection with the terminal device. The terminal device can determine whether the BLE address corresponding to the received LE Audio broadcast signal is consistent with any BLE address contained in the information to be connected back, if the BLE address corresponding to the LE Audio broadcast signal is consistent with any BLE address contained in the information to be connected back If the addresses are consistent, it is determined that the second target electronic device belongs to the same group of Bluetooth devices.
需要说明的是,根据接收的LE Audio广播信号及待回连信息判断该第二目标电子设备是否属于待回连的同一组蓝牙设备,并不仅限于上述的几种方式,也可采用其它方式,例如同一组蓝牙设备可对应同一个身份标识(如同一个产品编号,或是同一个随机数等),终端设备可判断LE Audio广播信号携带的身份标识与待回连信息中包含的身份标识是否一致,若一致,则确定第二目标电子设备属于该同一组蓝牙设备。It should be noted that judging whether the second target electronic device belongs to the same group of Bluetooth devices to be connected according to the received LE Audio broadcast signal and the information to be connected back is not limited to the above-mentioned several methods, and other methods can also be used. For example, the same group of Bluetooth devices can correspond to the same identity (such as the same product number, or the same random number, etc.), and the terminal device can determine whether the identity carried by the LE Audio broadcast signal is consistent with the identity contained in the connection information , if they are consistent, it is determined that the second target electronic device belongs to the same group of Bluetooth devices.
示例性地,图4A为一个实施例中蓝牙回连方法的时序示意图。如图4A所示,第一耳机与第二耳机属于同一个耳机设备,即属于同一组蓝牙设备,第一耳机与第二耳机在建立蓝牙连接后可共享同一经典蓝牙地址。终端设备在进行回连时,可先进行经典蓝牙回连,基于待回连的经典蓝牙地址(即第一耳机与第二耳机共用的经典蓝牙地址)向耳机设备发送第一回连请求。假设当前耳机设备的主耳机为第一耳机,则第一耳机若接收到第一回连请求,则可与终端设备建立经典蓝牙连接。可选地,在第一耳机与终端设备建立经典蓝牙连接之后,第一耳机与第二耳机之间进行数据同步,例如,第二耳机可对第一耳机与终端设备之间的经典蓝牙连接进行监听,或第一耳机将与终端设备通过经典蓝牙连接传输的数据同步给第二耳机。Exemplarily, FIG. 4A is a schematic diagram of a timing sequence of a Bluetooth connection back method in an embodiment. As shown in FIG. 4A , the first earphone and the second earphone belong to the same earphone device, that is, they belong to the same group of Bluetooth devices, and the first earphone and the second earphone can share the same classic Bluetooth address after the Bluetooth connection is established. When performing a connection back, the terminal device may first perform a classic Bluetooth connection back, and send a first connection back request to the headset device based on the classic Bluetooth address to be connected back (that is, the classic Bluetooth address shared by the first earphone and the second earphone). Assuming that the main earphone of the current earphone device is the first earphone, if the first earphone receives the first connection request, it can establish a classic Bluetooth connection with the terminal device. Optionally, after the first earphone establishes a classic Bluetooth connection with the terminal device, data synchronization is performed between the first earphone and the second earphone. Monitor, or the first earphone will synchronize the data transmitted with the terminal device through the classic Bluetooth connection to the second earphone.
第一耳机可处于广播状态,并发送LE Audio广播信号。若终端设备接收到该LE Audio广播信号,可根据该LE Audio广播信号判断发送LE Audio广播信号的电子设备是否与第一耳机属于同一组蓝牙设备。由于该LE Audio广播信号是由第一耳机发送的,因此终端设备可确定属于同一组蓝牙设备,并根据第一耳机的BLE地址向第一耳机发送第二回连请求,与第一耳机建立LE Audio蓝牙连接。The first earphone can be in a broadcast state and send LE Audio broadcast signals. If the terminal equipment receives the LE Audio broadcast signal, it can judge whether the electronic device sending the LE Audio broadcast signal belongs to the same group of Bluetooth devices as the first earphone according to the LE Audio broadcast signal. Since the LE Audio broadcast signal is sent by the first earphone, the terminal device can determine that it belongs to the same group of Bluetooth devices, and send a second connection request to the first earphone according to the BLE address of the first earphone, and establish a LE with the first earphone. Audio Bluetooth connection.
示例性地,图4B为一个实施例中蓝牙回连方法的时序示意图。与图4A的区别在于,图4B中是第二耳机发送LE Audio广播信号。若终端设备接收到该LE Audio广播信号,可根据该LE Audio广播信号判断发送LE Audio广播信号的电子设备是否属于待回连的同一组蓝牙设备(例如是否与第一耳机属于同一组蓝牙设备)。在根据该LE Audio广播信号确定属于待回连的同一组蓝牙设备时(例如确定第一耳机与第二耳机属于同一组蓝牙设备),可根据第二耳机的BLE地址向第二耳机发送第二回连请求,与第二耳机建立LE Audio蓝牙连接。Exemplarily, FIG. 4B is a schematic diagram of a sequence of a Bluetooth connection back method in an embodiment. The difference from FIG. 4A is that in FIG. 4B, the second earphone sends LE Audio broadcast signals. If the terminal device receives the LE Audio broadcast signal, it can judge according to the LE Audio broadcast signal whether the electronic device sending the LE Audio broadcast signal belongs to the same group of Bluetooth devices to be connected back (for example, whether it belongs to the same group of Bluetooth devices as the first earphone) . When it is determined according to the LE Audio broadcast signal that it belongs to the same group of Bluetooth devices to be connected back (for example, it is determined that the first earphone and the second earphone belong to the same group of Bluetooth devices), the second earphone can be sent to the second earphone according to the BLE address of the second earphone. Return connection request and establish LE Audio Bluetooth connection with the second earphone.
在本申请实施例中,终端设备可快速且准确地与同时支持经典蓝牙和BLE Audio的同一组蓝牙设备中的至少一个目标电子设备进行经典蓝牙回连及LE Audio蓝牙回连,保证了不同场景下蓝牙回连的成功率及稳定性。且本申请实施例所提供的蓝牙回连方案仅在终端设备侧进行实现,免去了对同一组蓝牙设备的各个电子设备的复杂设计,通用性更好。In the embodiment of this application, the terminal device can quickly and accurately perform classic Bluetooth and LE Audio Bluetooth back-connection with at least one target electronic device in the same group of Bluetooth devices that support both classic Bluetooth and BLE Audio, ensuring different scenarios The success rate and stability of the Bluetooth connection back. Moreover, the bluetooth connection back solution provided by the embodiment of the present application is only implemented on the terminal device side, which avoids the complicated design of each electronic device of the same group of bluetooth devices, and has better versatility.
如图5所示,在另一个实施例中,提供一种蓝牙回连方法,可应用于上述的终端设备,该方法可包括以下步骤:As shown in FIG. 5, in another embodiment, a Bluetooth connection back method is provided, which can be applied to the above-mentioned terminal device, and the method may include the following steps:
步骤502,分别与第一电子设备建立经典蓝牙连接及第一LE Audio连接,以及与第二电子设备建立第二LE Audio连接,其中,第一电子设备及第二电子设备属于同一组蓝牙设 备。 Step 502, respectively establish a classic Bluetooth connection and a first LE Audio connection with the first electronic device, and establish a second LE Audio connection with the second electronic device, wherein the first electronic device and the second electronic device belong to the same group of Bluetooth devices.
第一电子设备与第二电子设备均可以是首次与终端设备进行蓝牙连接的电子设备,或是虽然与终端设备建立过经典蓝牙连接,但是恢复了终端设备出厂设置,即终端设备中未存储第一电子设备的设备信息及第二电子设备的设备信息。Both the first electronic device and the second electronic device may be electronic devices that have made a Bluetooth connection with the terminal device for the first time, or although a classic Bluetooth connection has been established with the terminal device, the factory settings of the terminal device have been restored. Device information of an electronic device and device information of a second electronic device.
第一电子设备当前的主从关系可为主设备,第二电子设备当前的主从关系可为从设备。终端设备可确定第一电子设备对应的经典蓝牙地址及第一BLE地址,以及确定第二电子设备对应的第二BLE地址,并根据第一电子设备对应的经典蓝牙地址与第一电子设备建立经典蓝牙连接,根据第一BLE地址与第一电子设备建立第一LE Audio连接,以及根据第二BLE地址与第二电子设备建立第二LE Audio连接。The current master-slave relationship of the first electronic device may be a master device, and the current master-slave relationship of the second electronic device may be a slave device. The terminal device can determine the classic Bluetooth address and the first BLE address corresponding to the first electronic device, and determine the second BLE address corresponding to the second electronic device, and establish a classic Bluetooth address with the first electronic device according to the classic Bluetooth address corresponding to the first electronic device. Bluetooth connection, establishing a first LE Audio connection with the first electronic device according to the first BLE address, and establishing a second LE Audio connection with the second electronic device according to the second BLE address.
作为一种实施方式,终端设备确定第一电子设备对应的经典蓝牙地址,可包括:查询第一距离范围内存在的蓝牙设备,并根据第一电子设备返回的查询响应确定第一电子设备对应的经典蓝牙地址。终端设备可开启查询模式(inquiry模式),在该查询模式下,终端设备可每隔第一时长发送一次查询指令(inquiry指令),以查询第一距离范围内存在的蓝牙设备。第一电子设备可处于可发现状态也可处于可发现可连接状态,在该可发现状态下第一电子设备开启inquiry scan模式,在可发现可连接状态下page scan和inquiry scan均开启,能够扫描到终端设备发送的查询指令。在处于可发现状态的第一电子设备接收到终端设备发送的查询指令时,可向终端设备返回查询响应,终端设备可基于该查询响应确定第一电子设备对应的经典蓝牙地址。As an implementation manner, the terminal device determining the classic Bluetooth address corresponding to the first electronic device may include: inquiring about the Bluetooth devices existing within the first distance range, and determining the corresponding address of the first electronic device according to the query response returned by the first electronic device. Classic Bluetooth address. The terminal device can start an inquiry mode (inquiry mode), and in this inquiry mode, the terminal device can send an inquiry command (inquiry command) every first time length to inquire about the Bluetooth devices existing within the first distance range. The first electronic device can be in a discoverable state or a discoverable and connectable state. In this discoverable state, the first electronic device turns on the inquiry scan mode. In the discoverable and connectable state, both page scan and inquiry scan are turned on, and can scan Inquiry command sent to terminal equipment. When the first electronic device in the discoverable state receives the query instruction sent by the terminal device, it may return a query response to the terminal device, and the terminal device may determine the classic Bluetooth address corresponding to the first electronic device based on the query response.
在一些实施例中,第一电子设备可开启广播状态,在该广播状态下,第一电子设备可基于第一BLE地址发送第一LE Audio广播信号。终端设备可接收第一电子设备发送的第一LE Audio广播信号,并根据该第一LE Audio广播信号确定第一电子设备对应的第一BLE地址。第二电子设备也可开启广播状态,在该广播状态下,第二电子设备可基于第二BLE地址发送第二LE Audio广播信号。终端设备可接收第二电子设备发送的第二LE Audio广播信号,并根据第一LE Audio广播信号确定第一电子设备对应的第二BLE地址。In some embodiments, the first electronic device can turn on the broadcast state, and in the broadcast state, the first electronic device can send the first LE Audio broadcast signal based on the first BLE address. The terminal device may receive the first LE Audio broadcast signal sent by the first electronic device, and determine the first BLE address corresponding to the first electronic device according to the first LE Audio broadcast signal. The second electronic device can also turn on the broadcast state, and in the broadcast state, the second electronic device can send a second LE Audio broadcast signal based on the second BLE address. The terminal device can receive the second LE Audio broadcast signal sent by the second electronic device, and determine the second BLE address corresponding to the first electronic device according to the first LE Audio broadcast signal.
终端设备可根据第一BLE地址与第一电子设备建立第一LE Audio连接,并根据第一电子设备对应的经典蓝牙地址与第一电子设备建立经典蓝牙连接,以及在确定第二电子设备与第一电子设备属于同一组蓝牙设备的情况下,根据第二BLE地址与第二电子设备建立第二LE Audio连接。The terminal device can establish a first LE Audio connection with the first electronic device according to the first BLE address, and establish a classic Bluetooth connection with the first electronic device according to the classic Bluetooth address corresponding to the first electronic device, and determine the connection between the second electronic device and the first electronic device. When an electronic device belongs to the same group of Bluetooth devices, establish a second LE Audio connection with the second electronic device according to the second BLE address.
在一些实施例中,终端设备在根据第二BLE地址与第二电子设备建立第二LE Audio蓝牙连接之前,可先根据第一电子设备发送的第一LE Audio广播信号及第二电子设备发送的第二LE Audio广播信号,判断第一电子设备及第二电子设备是否属于同一组蓝牙设备。判断第一电子设备及第二电子设备是否属于同一组蓝牙设备,可采用以下几种方式中的任一种:In some embodiments, before the terminal device establishes the second LE Audio Bluetooth connection with the second electronic device according to the second BLE address, it can first send the first LE Audio broadcast signal according to the first electronic device and the second electronic device. The second LE Audio broadcasts a signal to determine whether the first electronic device and the second electronic device belong to the same group of Bluetooth devices. To determine whether the first electronic device and the second electronic device belong to the same group of Bluetooth devices, any one of the following methods can be adopted:
方式一、第一LE Audio广播信号包括第一身份标识,第二LE Audio广播信号包括第二身份标识。终端设备在接收到第一LE Audio广播信号及第二LE Audio广播信号后,可判断第一LE Audio广播信号中的第一身份标识与第二LE Audio广播信号中的第二身份标识是否相同,若第一身份标识与第二身份标识相同,则确定第二电子设备与第一电子设备属于同一组蓝牙设备。Method 1: The first LE Audio broadcast signal includes a first identity, and the second LE Audio broadcast signal includes a second identity. After receiving the first LE Audio broadcast signal and the second LE Audio broadcast signal, the terminal device can determine whether the first identity in the first LE Audio broadcast signal is the same as the second identity in the second LE Audio broadcast signal, If the first identity is the same as the second identity, it is determined that the second electronic device and the first electronic device belong to the same group of Bluetooth devices.
方式二、终端设备在接收到第一LE Audio广播信号后,可根据第一LE Audio广播信号确定第一电子设备对应的目标SIRK。在接收到第二LE Audio广播信号后,可对第二LE Audio广播信号进行解析,得到第二LE Audio广播信号所携带的目标特定广播信息,并根据目标SIRK与目标特定广播信息计算得到目标本地值。可判断目标本地值与第二LE Audio广播信号中的目标字段值是否相同,若目标本地值与第二LE Audio广播信号中的目标字段 值相同,则确定第二电子设备与第一电子设备属于同一组蓝牙设备。Method 2: After receiving the first LE Audio broadcast signal, the terminal device can determine the target SIRK corresponding to the first electronic device according to the first LE Audio broadcast signal. After receiving the second LE Audio broadcast signal, the second LE Audio broadcast signal can be analyzed to obtain the target-specific broadcast information carried by the second LE Audio broadcast signal, and the target local area can be calculated according to the target SIRK and target-specific broadcast information. value. It can be determined whether the target local value is the same as the target field value in the second LE Audio broadcast signal, and if the target local value is the same as the target field value in the second LE Audio broadcast signal, then it is determined that the second electronic device and the first electronic device belong to same set of bluetooth devices.
可选地,第一LE Audio广播信号可直接携带有第一电子设备对应的目标SIRK,终端设备对第一LE Audio广播信号进行解析可得到该目标SIRK。第一LE Audio广播信号也可携带第一RSI,终端设备可对第一LE Audio广播信号进行解析得到第一RSI的第一哈希序列及第一随机序列,再第一哈希序列及第一随机序列计算得到第一电子设备对应的目标SIRK。Optionally, the first LE Audio broadcast signal may directly carry a target SIRK corresponding to the first electronic device, and the terminal device may obtain the target SIRK by analyzing the first LE Audio broadcast signal. The first LE Audio broadcast signal can also carry the first RSI, and the terminal device can analyze the first LE Audio broadcast signal to obtain the first hash sequence and the first random sequence of the first RSI, and then the first hash sequence and the first The random sequence is calculated to obtain the target SIRK corresponding to the first electronic device.
第二LE Audio广播信号所携带的目标特定广播信息可包括第二LE Audio广播信号所携带的第二RSI的第二随机序列,第二LE Audio广播信号中的目标字段值可包括第二RSI的第二哈希序列。可根据第一电子设备对应的目标SIRK及第二RSI的第二随机序列计算得到目标本地值,并将目标本地值与第二RSI的第二哈希序列进行比对,若二者一致,则可确定第二电子设备与第一电子设备属于同一组蓝牙设备。The target specific broadcast information carried by the second LE Audio broadcast signal may include a second random sequence of the second RSI carried by the second LE Audio broadcast signal, and the target field value in the second LE Audio broadcast signal may include the second RSI the second hash sequence. The target local value can be calculated according to the target SIRK corresponding to the first electronic device and the second random sequence of the second RSI, and the target local value is compared with the second hash sequence of the second RSI, and if the two are consistent, then It may be determined that the second electronic device and the first electronic device belong to the same group of Bluetooth devices.
方式三、终端设备可根据第一LE Audio广播信号确定第一电子设备对应的目标SIRK,并根据第二LE Audio广播信号确定第二电子设备对应的SIRK,并判断第一电子设备对应的目标SIRK与第二电子设备对应的SIRK是否一致,若一致,则可确定第二电子设备与第一电子设备属于同一组蓝牙设备。Method 3: The terminal device can determine the target SIRK corresponding to the first electronic device according to the first LE Audio broadcast signal, and determine the SIRK corresponding to the second electronic device according to the second LE Audio broadcast signal, and determine the target SIRK corresponding to the first electronic device Whether the SIRK corresponding to the second electronic device is consistent, if consistent, it can be determined that the second electronic device and the first electronic device belong to the same group of Bluetooth devices.
确定第一电子设备对应的目标SIRK及确定第二电子设备对应的SIRK的方式可参考上述各实施例中的相关描述,在此不再重复赘述。For the manner of determining the target SIRK corresponding to the first electronic device and the SIRK corresponding to the second electronic device, reference may be made to relevant descriptions in the foregoing embodiments, and details are not repeated here.
需要说明的是,本申请实施例不对第一电子设备发送第一LE Audio广播信号及第二电子设备发送第二LE Audio广播信号的顺序进行限定,可以是第一电子设备先发送第一LE Audio广播信号,第二电子设备再发送第二LE Audio广播信号,也可以是第二电子设备先发送第二LE Audio广播信号,第一电子设备再发送第一LE Audio广播信号,或是二者同时发送等。本申请实施例也不对终端设备确定第一BLE地址、第一电子设备对应的经典蓝牙地址、第二BLE地址的先后顺序进行限定。It should be noted that the embodiment of the present application does not limit the order in which the first electronic device sends the first LE Audio broadcast signal and the second electronic device sends the second LE Audio broadcast signal. It may be that the first electronic device sends the first LE Audio broadcast signal first. Broadcast signal, the second electronic device then sends the second LE Audio broadcast signal, or the second electronic device first sends the second LE Audio broadcast signal, and the first electronic device sends the first LE Audio broadcast signal, or both at the same time send etc. The embodiment of the present application also does not limit the order in which the terminal device determines the first BLE address, the classic Bluetooth address corresponding to the first electronic device, and the second BLE address.
示例性地,图6为一个实施例中终端设备进行蓝牙连接的时序示意图。如图6所示,第一电子设备向终端设备发送第一LE Audio广播信号,终端设备可根据该第一LE Audio广播信号获取第一电子设备对应的第一BLE地址。第二电子设备向终端设备发送第二LE Audio广播信号,终端设备可根据该第二LE Audio广播信号获取第二电子设备对应的第二BLE地址。终端设备处于inquiry模式,并发送inquiry指令,处于可发现状态(即处于inquiry scan模式)的第一电子设备可接收到该inquiry指令,第一电子设备向终端设备返回inquiry响应,终端设备可根据该inquiry响应获取第一电子设备对应的第一经典蓝牙地址。Exemplarily, FIG. 6 is a schematic diagram of a timing sequence of a terminal device performing a Bluetooth connection in an embodiment. As shown in Figure 6, the first electronic device sends a first LE Audio broadcast signal to the terminal device, and the terminal device can obtain the first BLE address corresponding to the first electronic device according to the first LE Audio broadcast signal. The second electronic device sends a second LE Audio broadcast signal to the terminal device, and the terminal device can obtain the second BLE address corresponding to the second electronic device according to the second LE Audio broadcast signal. The terminal device is in the inquiry mode and sends an inquiry command, and the first electronic device in the discoverable state (that is, in the inquiry scan mode) can receive the inquiry command, and the first electronic device returns an inquiry response to the terminal device, and the terminal device can according to the The inquiry responds to obtain the first classic bluetooth address corresponding to the first electronic device.
终端设备可基于第一BLE地址与第一电子设备建立第一LE Audio蓝牙连接,基于第一经典蓝牙地址与第一电子设备建立经典蓝牙连接。终端设备可判断第一电子设备与第二电子设备是否属于同一组蓝牙设备,若属于同一组蓝牙设备,则基于第二BLE地址与第二电子设备建立第二LE Audio蓝牙连接。需要说明的是,终端设备判断第一电子设备与第二电子设备是否属于同一组蓝牙设备,也可在输出待连接信息之前进行判断,本申请实施例不对该步骤时序进行具体限定。在一些实施例中,第一电子设备与第二电子设备可共用同一经典蓝牙地址,第一电子设备的第一BLE地址可与该经典蓝牙地址相同,第二电子设备的第二BLE地址可与该经典蓝牙地址不同。可选地,在终端设备与第一电子设备及第二电子设备建立蓝牙连接之前,针对属于同一组蓝牙设备的第一电子设备及第二电子设备,可仅输出一个待连接信息,该待连接信息可用于表示与属于同一组蓝牙设备的第一电子设备及第二电子设备进行蓝牙连接。由于第一电子设备的第一BLE地址与共用的经典蓝牙地址相同,因此可显示同一待连接信息,进一步地,第二LE Audio广播信号包括不可显示标识,该不可显示标识用于指示LE Audio广播信号中的BLE地址对应的待连接信息不在终端设 备中显示。The terminal device may establish a first LE Audio Bluetooth connection with the first electronic device based on the first BLE address, and establish a classic Bluetooth connection with the first electronic device based on the first classic Bluetooth address. The terminal device can determine whether the first electronic device and the second electronic device belong to the same group of Bluetooth devices, and if they belong to the same group of Bluetooth devices, establish a second LE Audio Bluetooth connection with the second electronic device based on the second BLE address. It should be noted that the terminal device may determine whether the first electronic device and the second electronic device belong to the same group of Bluetooth devices, or before outputting the information to be connected, the embodiment of the present application does not specifically limit the sequence of this step. In some embodiments, the first electronic device and the second electronic device can share the same classic Bluetooth address, the first BLE address of the first electronic device can be the same as the classic Bluetooth address, and the second BLE address of the second electronic device can be the same as The classic bluetooth address is different. Optionally, before the terminal device establishes a Bluetooth connection with the first electronic device and the second electronic device, only one pending connection information may be output for the first electronic device and the second electronic device belonging to the same group of Bluetooth devices, the pending connection The information may be used to represent the Bluetooth connection with the first electronic device and the second electronic device belonging to the same group of Bluetooth devices. Since the first BLE address of the first electronic device is the same as the shared classic Bluetooth address, the same information to be connected can be displayed. Further, the second LE Audio broadcast signal includes a non-displayable identifier, which is used to indicate that the LE Audio broadcast The pending connection information corresponding to the BLE address in the signal is not displayed on the terminal device.
针对同一组蓝牙设备,终端设备仅显示一个对应的待连接信息,用户只需要在终端设备上进行一次蓝牙连接操作,即可触发终端设备与属于同一组蓝牙设备的第一电子设备及第二电子设备分别建立LE Audio蓝牙连接,以及与第一电子设备建立经典蓝牙连接,可快速与同时支持经典蓝牙和BLE Audio的设备进行LE Audio蓝牙及经典蓝牙连接,将BLE Audio与经典蓝牙相结合,以满足用户在不同场景下对于音频传输的需求。For the same group of Bluetooth devices, the terminal device only displays a corresponding information to be connected, and the user only needs to perform a Bluetooth connection operation on the terminal device to trigger the connection between the terminal device and the first electronic device and the second electronic device belonging to the same group of Bluetooth devices. The device respectively establishes LE Audio Bluetooth connection, and establishes a classic Bluetooth connection with the first electronic device, which can quickly perform LE Audio Bluetooth and classic Bluetooth connection with devices that support both classic Bluetooth and BLE Audio, and combine BLE Audio with classic Bluetooth to Meet users' needs for audio transmission in different scenarios.
步骤504,将第一电子设备的设备信息与第二电子设备的设备信息存储到同一个信息组合集中。 Step 504, storing the device information of the first electronic device and the device information of the second electronic device in the same information combination set.
在终端设备在成功与第一电子设备建立蓝牙连接后,可在连接记录中存储第一电子设备的设备信息。在终端设备成功与第二电子设备建立蓝牙连接后,可在连接记录中存储第二电子设备的设备信息。由于第一电子设备及第二电子设备属于同一组蓝牙设备,可将第一电子设备的设备信息与第二电子设备的设备信息存储到连接记录的同一个信息组合集中,方便后续进行回连。After the terminal device successfully establishes the Bluetooth connection with the first electronic device, it may store the device information of the first electronic device in the connection record. After the terminal device successfully establishes the Bluetooth connection with the second electronic device, the device information of the second electronic device may be stored in the connection record. Since the first electronic device and the second electronic device belong to the same group of Bluetooth devices, the device information of the first electronic device and the device information of the second electronic device can be stored in the same information combination set of the connection record to facilitate subsequent connection back.
步骤506,确定待回连的同一组蓝牙设备,并从待回连的同一组蓝牙设备对应的信息组合集中确定待回连信息。 Step 506, determine the same group of Bluetooth devices to be connected back, and determine the information to be connected back from the information combination set corresponding to the same group of Bluetooth devices to be connected back.
在一些实施例中,若连接记录中包括有多个信息组合集,也即存储有多组蓝牙设备的各个电子设备对应的设备信息,每个信息组合集对应一组蓝牙设备,则终端设备可从多组蓝牙设备中确定待回连的同一组蓝牙设备,并从待回连的同一组蓝牙设备对应的信息组合集中确定待回连信息。该待回连信息可包括待回连的同一组蓝牙设备中各个电子设备共用的经典蓝牙地址,以及同一组蓝牙设备中各个电子设备对应的同一SRIK;或,该待回连信息可包括待回连的同一组蓝牙设备中各个电子设备共用的经典蓝牙地址,以及待回连的同一组蓝牙设备中各个电子设备的BLE地址等。In some embodiments, if the connection record includes multiple information combination sets, that is, device information corresponding to each electronic device that stores multiple groups of Bluetooth devices, and each information combination set corresponds to a group of Bluetooth devices, the terminal device can The same group of Bluetooth devices to be connected back is determined from multiple groups of Bluetooth devices, and the information to be connected back is determined from the information combination set corresponding to the same group of Bluetooth devices to be connected back. The pending connection information may include the classic Bluetooth address shared by each electronic device in the same group of Bluetooth devices to be connected back, and the same SRIK corresponding to each electronic device in the same group of Bluetooth devices; or, the pending connection information may include the pending connection The classic Bluetooth address shared by each electronic device in the same group of Bluetooth devices connected, and the BLE address of each electronic device in the same group of Bluetooth devices to be connected back.
步骤508,根据待回连信息包含的经典蓝牙地址发送第一回连请求,该第一回连请求用于触发与待回连的同一组蓝牙设备中当前的主从关系为主设备的第一目标电子设备与终端设备建立经典蓝牙连接。Step 508: Send a first connection-back request according to the classic Bluetooth address contained in the information to be connected back, and the first connection-back request is used to trigger the current master-slave relationship with the same group of Bluetooth devices to be connected back. The target electronic device establishes a classic Bluetooth connection with the terminal device.
步骤510,接收第二目标电子设备发送的LE Audio广播信号,并根据该LE Audio广播信号及待回连信息判断第二目标电子设备是否属于待回连的同一组蓝牙设备,若属于,则根据该LE Audio广播信号对应的BLE地址向第二目标电子设备发送第二回连请求,第二回连请求用于触发第二目标电子设备与终端设备建立LE Audio蓝牙连接。 Step 510, receiving the LE Audio broadcast signal sent by the second target electronic device, and judging whether the second target electronic device belongs to the same group of Bluetooth devices to be connected back according to the LE Audio broadcast signal and the information to be connected back, and if so, according to The BLE address corresponding to the LE Audio broadcast signal sends a second connection back request to the second target electronic device, and the second connection back request is used to trigger the second target electronic device to establish a LE Audio Bluetooth connection with the terminal device.
步骤508~510的描述可参考上述各实施例中的相关描述,在此不再一一赘述。For descriptions of steps 508-510, reference may be made to relevant descriptions in the foregoing embodiments, and details are not repeated here.
在一些实施例中,同一组蓝牙设备包括同一组音频输出设备,同一组音频输出设备包括第一音频输出设备及第二音频输出设备,第一音频输出设备及第二音频输出设备组成一对音频输出设备。In some embodiments, the same group of Bluetooth devices includes the same group of audio output devices, the same group of audio output devices includes a first audio output device and a second audio output device, and the first audio output device and the second audio output device form a pair of audio output device.
在本申请实施例中,在终端设备与同一组蓝牙设备中的多个电子设备建立蓝牙连接时,可将属于同一组蓝牙设备的各个电子设备的设备信息存储到同一信息组合集中,方便后续在进行蓝牙回连时,终端设备可准确、快速地与待回连的同一组蓝牙设备中的至少一个目标电子设备进行蓝牙连接,提高了蓝牙回连的成功率及稳定性。In the embodiment of the present application, when a terminal device establishes a Bluetooth connection with multiple electronic devices in the same group of Bluetooth devices, the device information of each electronic device belonging to the same group of Bluetooth devices can be stored in the same information combination set, which is convenient for subsequent When performing Bluetooth connection back, the terminal device can accurately and quickly perform Bluetooth connection with at least one target electronic device in the same group of Bluetooth devices to be connected back, which improves the success rate and stability of Bluetooth connection back.
如图7所示,在一个实施例中,提供一种信息存储方法,可应用于上述的终端设备,该方法可包括以下步骤:As shown in FIG. 7, in an embodiment, an information storage method is provided, which can be applied to the above-mentioned terminal device, and the method may include the following steps:
步骤710,分别与第一电子设备建立经典蓝牙连接及第一LE Audio连接,以及与第二电子设备建立第二LE Audio连接,其中,第一电子设备及第二电子设备属于同一组蓝牙设备。 Step 710, respectively establish a classic Bluetooth connection and a first LE Audio connection with the first electronic device, and establish a second LE Audio connection with the second electronic device, wherein the first electronic device and the second electronic device belong to the same group of Bluetooth devices.
在一个实施例中,第一电子设备的设备信息包括第一电子设备对应的经典蓝牙地址、 第一BLE地址、设备名称、SIRK中的至少一种;第二电子设备的设备信息包括第二电子设备对应的经典蓝牙地址、第二BLE地址、设备名称、SIRK中的至少一种。In one embodiment, the device information of the first electronic device includes at least one of the classic Bluetooth address corresponding to the first electronic device, the first BLE address, the device name, and SIRK; the device information of the second electronic device includes the second electronic At least one of the classic Bluetooth address, the second BLE address, the device name, and the SIRK corresponding to the device.
在一个实施例中,步骤710,可包括:接收第一电子设备发送的第一LE Audio广播信号,并根据第一LE Audio广播信号确定第一电子设备对应的第一BLE地址;确定第一电子设备对应的经典蓝牙地址;接收第二电子设备发送的第二LE Audio广播信号,并根据第一LE Audio广播信号确定第一电子设备对应的第二BLE地址;根据第一BLE地址与第一电子设备建立第一LE Audio连接,并根据第一电子设备对应的经典蓝牙地址与第一电子设备建立经典蓝牙连接,以及在确定第二电子设备与第一电子设备属于同一组蓝牙设备的情况下,根据第二BLE地址与第二电子设备建立第二LE Audio连接。In one embodiment, step 710 may include: receiving the first LE Audio broadcast signal sent by the first electronic device, and determining the first BLE address corresponding to the first electronic device according to the first LE Audio broadcast signal; The classic Bluetooth address corresponding to the device; receive the second LE Audio broadcast signal sent by the second electronic device, and determine the second BLE address corresponding to the first electronic device according to the first LE Audio broadcast signal; according to the first BLE address and the first electronic device The device establishes a first LE Audio connection, and establishes a classic Bluetooth connection with the first electronic device according to the classic Bluetooth address corresponding to the first electronic device, and when it is determined that the second electronic device and the first electronic device belong to the same group of Bluetooth devices, Establishing a second LE Audio connection with the second electronic device according to the second BLE address.
在一个实施例中,第一电子设备与第二电子设备共用同一经典蓝牙地址,第一电子设备的第一BLE地址与经典蓝牙地址相同,第二电子设备的第二BLE地址与经典蓝牙地址不同。In one embodiment, the first electronic device and the second electronic device share the same classic Bluetooth address, the first BLE address of the first electronic device is the same as the classic Bluetooth address, and the second BLE address of the second electronic device is different from the classic Bluetooth address .
在一个实施例中,第一LE Audio广播信号包括第一身份标识,第二LE Audio广播信号包括第二身份标识;在确定第二电子设备与第一电子设备属于同一组蓝牙设备的情况下,根据第二BLE地址与第二电子设备建立第二LE Audio连接之前,该方法还包括:若第一身份标识与第二身份标识相同,则确定第二电子设备与第一电子设备属于同一组蓝牙设备。In one embodiment, the first LE Audio broadcast signal includes a first identity, and the second LE Audio broadcast signal includes a second identity; when it is determined that the second electronic device and the first electronic device belong to the same group of Bluetooth devices, Before establishing the second LE Audio connection with the second electronic device according to the second BLE address, the method further includes: if the first identity is the same as the second identity, then determining that the second electronic device and the first electronic device belong to the same Bluetooth group equipment.
在一个实施例中,在确定第二电子设备与第一电子设备属于同一组蓝牙设备的情况下,根据第二BLE地址与第二电子设备建立第二LE Audio连接之前,该方法还包括:根据第一LE Audio广播信号确定第一电子设备对应的SIRK;对第二LE Audio广播信号进行解析,得到第二LE Audio广播信号所携带的目标特定广播信息;根据第一电子设备对应的SIRK与目标特定广播信息计算得到目标本地值;若目标本地值与第二LE Audio广播信号中的目标字段值相同,则确定第二电子设备与第一电子设备属于同一组蓝牙设备。In one embodiment, when it is determined that the second electronic device and the first electronic device belong to the same group of Bluetooth devices, before establishing the second LE Audio connection with the second electronic device according to the second BLE address, the method further includes: The first LE Audio broadcast signal determines the SIRK corresponding to the first electronic device; the second LE Audio broadcast signal is analyzed to obtain the target-specific broadcast information carried by the second LE Audio broadcast signal; according to the SIRK corresponding to the first electronic device and the target The specific broadcast information is calculated to obtain the target local value; if the target local value is the same as the target field value in the second LE Audio broadcast signal, it is determined that the second electronic device and the first electronic device belong to the same group of Bluetooth devices.
步骤720,将第一电子设备的设备信息与第二电子设备的设备信息存储到同一个信息组合集中。同一个信息组合集用于确定待回连信息,所述待回连信息用于触发与所述同一组蓝牙设备中的至少一个目标电子设备进行回连。 Step 720, storing the device information of the first electronic device and the device information of the second electronic device in the same information combination set. The same information combination set is used to determine information to be connected back, and the information to be connected back is used to trigger a connection back with at least one target electronic device in the same group of Bluetooth devices.
需要说明的是,本申请实施例提供的信息存储方法的描述,可参考上述各实施例中提供的蓝牙回连方法的相关描述,在此不再重复赘述。It should be noted that, for the description of the information storage method provided in the embodiment of the present application, reference may be made to the relevant description of the Bluetooth connection back method provided in the foregoing embodiments, and details will not be repeated here.
在本申请实施例中,在终端设备与同一组蓝牙设备中的多个电子设备建立蓝牙连接时,可将属于同一组蓝牙设备的各个电子设备的设备信息存储到同一信息组合集中,方便后续在进行蓝牙回连时,终端设备可准确、快速地与待回连的同一组蓝牙设备中的至少一个目标电子设备进行蓝牙连接,提高了蓝牙回连的成功率及稳定性。In the embodiment of the present application, when a terminal device establishes a Bluetooth connection with multiple electronic devices in the same group of Bluetooth devices, the device information of each electronic device belonging to the same group of Bluetooth devices can be stored in the same information combination set, which is convenient for subsequent When performing Bluetooth connection back, the terminal device can accurately and quickly perform Bluetooth connection with at least one target electronic device in the same group of Bluetooth devices to be connected back, which improves the success rate and stability of Bluetooth connection back.
如图8所示,在一个实施例中,提供一种蓝牙回连装置800,可应用于上述的终端设备。该蓝牙回连装置800,可包括信息确定模块810及蓝牙连接模块820。As shown in FIG. 8 , in one embodiment, a Bluetooth connection back device 800 is provided, which can be applied to the above-mentioned terminal equipment. The Bluetooth connection back device 800 may include an information determination module 810 and a Bluetooth connection module 820 .
信息确定模块810,用于确定待回连信息,该待回连信息是根据与终端设备曾经建立过蓝牙连接的一个或多个电子设备的设备信息生成的,该一个或多个电子设备属于同一组蓝牙设备中的。The information determination module 810 is configured to determine the information to be connected back, the information to be connected back is generated according to the device information of one or more electronic devices that have established a Bluetooth connection with the terminal device, and the one or more electronic devices belong to the same group of Bluetooth devices.
在一个实施例中,同一组蓝牙设备包括同一组音频输出设备,同一组音频输出设备包括第一音频输出设备及第二音频输出设备,第一音频输出设备及第二音频输出设备组成一对音频输出设备。In one embodiment, the same group of Bluetooth devices includes the same group of audio output devices, the same group of audio output devices includes a first audio output device and a second audio output device, and the first audio output device and the second audio output device form a pair of audio output device.
在一个实施例中,设备信息包括电子设备对应的经典蓝牙地址、BLE地址、设备名称、组合标识解析值SIRK中的至少一种;In one embodiment, the device information includes at least one of a classic Bluetooth address, a BLE address, a device name, and a combined identification analysis value SIRK corresponding to the electronic device;
待回连信息包括同一组蓝牙设备中各个电子设备共用的经典蓝牙地址及同一组蓝牙设备中各个电子设备对应的同一SIRK;或,待回连信息包括同一组蓝牙设备中各个电子设备 共用的经典蓝牙地址及同一组蓝牙设备中各个电子设备的BLE地址。The information to be connected back includes the classic Bluetooth address shared by each electronic device in the same group of Bluetooth devices and the same SIRK corresponding to each electronic device in the same group of Bluetooth devices; or, the information to be connected back includes the classic Bluetooth address shared by each electronic device in the same group of Bluetooth devices. Bluetooth address and the BLE address of each electronic device in the same group of Bluetooth devices.
在一个实施例中,同一组蓝牙设备包括以下中的任一种:In one embodiment, the same set of Bluetooth devices includes any of the following:
同一组蓝牙设备为,最近一次与终端设备建立蓝牙连接的电子设备所属的一组蓝牙设备;The same group of Bluetooth devices refers to the group of Bluetooth devices to which the electronic device that established a Bluetooth connection with the terminal device last belongs;
同一组蓝牙设备为,最近一次与终端设备断开蓝牙连接的电子设备所属的一组蓝牙设备;The same group of Bluetooth devices refers to the group of Bluetooth devices to which the electronic device that disconnected the Bluetooth connection with the terminal device last time belongs to;
同一组蓝牙设备为,与终端设备建立蓝牙连接次数最多的电子设备所属的一组蓝牙设备;The same group of Bluetooth devices refers to the group of Bluetooth devices to which the electronic device that establishes the most Bluetooth connections with the terminal device belongs;
同一组蓝牙设备为根据检测到的设置操作确定的一组蓝牙设备。The same group of Bluetooth devices is a group of Bluetooth devices determined according to the detected setting operation.
蓝牙连接模块820,用于根据待回连信息,与同一组蓝牙设备中的至少一个目标电子设备进行蓝牙连接。The Bluetooth connection module 820 is configured to perform a Bluetooth connection with at least one target electronic device in the same group of Bluetooth devices according to the information to be connected back.
在一个实施例中,同一组蓝牙设备中的各个电子设备共用同一经典蓝牙地址,同一组蓝牙设备中的各个电子设备分别对应不同的BLE地址;和/或,同一组蓝牙设备中的默认主设备的BLE地址与经典蓝牙地址相同,同一组蓝牙设备中的默认从设备的BLE地址与经典蓝牙地址不相同。In one embodiment, each electronic device in the same group of Bluetooth devices shares the same classic Bluetooth address, and each electronic device in the same group of Bluetooth devices corresponds to a different BLE address; and/or, the default master device in the same group of Bluetooth devices The BLE address of the device is the same as the classic Bluetooth address, and the BLE address of the default slave device in the same group of Bluetooth devices is different from the classic Bluetooth address.
在本申请实施例中,终端设备可根据待回连信息,与同一组蓝牙设备中的至少一个目标电子设备进行蓝牙连接,终端设备可实现自动与同一组蓝牙设备中需要连接的各个目标电子设备进行回连,能够提高终端设备的蓝牙回连速度,且可提高蓝牙回连的准确性。而且,本申请实施例所提供的蓝牙回连方案仅在终端设备侧进行实现,免去了对同一组蓝牙设备的各个电子设备的复杂设计,通用性更好。In this embodiment of the application, the terminal device can perform a Bluetooth connection with at least one target electronic device in the same group of Bluetooth devices according to the information to be connected back, and the terminal device can automatically connect to each target electronic device in the same group of Bluetooth devices that needs to be connected. The connection back can increase the speed of the Bluetooth connection back of the terminal device, and can improve the accuracy of the Bluetooth connection back. Moreover, the bluetooth connection back solution provided by the embodiment of the present application is only implemented on the terminal device side, which avoids the complicated design of each electronic device of the same group of bluetooth devices, and has better versatility.
在一个实施例中,待回连信息包括经典蓝牙地址。蓝牙连接模块820,还用于根据经典蓝牙地址发送第一回连请求,第一回连请求用于触发同一组蓝牙设备中当前的主从关系为主设备的第一目标电子设备与终端设备建立经典蓝牙连接;和/或,用于接收第二目标电子设备发送的LE Audio广播信号,并根据LE Audio广播信号及待回连信息判断第二目标电子设备是否属于同一组蓝牙设备,若属于同一组蓝牙设备,则根据LE Audio广播信号对应的BLE地址向第二目标电子设备发送第二回连请求,第二回连请求用于触发第二目标电子设备与终端设备建立LE Audio蓝牙连接。In one embodiment, the connection-to-be-connected information includes a classic Bluetooth address. The Bluetooth connection module 820 is also used to send the first connection back request according to the classic Bluetooth address, and the first connection back request is used to trigger the establishment of the first target electronic device and the terminal device of the current master-slave relationship in the same group of Bluetooth devices as the master device Classical Bluetooth connection; and/or, used to receive the LE Audio broadcast signal sent by the second target electronic device, and judge whether the second target electronic device belongs to the same group of Bluetooth devices according to the LE Audio broadcast signal and the information to be connected back. group bluetooth device, then according to the BLE address corresponding to the LE Audio broadcast signal, send a second connection back request to the second target electronic device, and the second connection back request is used to trigger the second target electronic device to establish a LE Audio bluetooth connection with the terminal device.
在一个实施例中,待回连信息还包括同一组蓝牙设备对应的SIRK。蓝牙连接模块820,还用于对LE Audio广播信号进行解析,得到LE Audio广播信号所携带的特定广播信息;根据SIRK与特定广播信息计算得到本地值;若本地值与LE Audio广播信号中的目标字段值相同,则确定第二目标电子设备属于同一组蓝牙设备。In an embodiment, the information to be connected back further includes SIRKs corresponding to the same group of Bluetooth devices. The Bluetooth connection module 820 is also used to analyze the LE Audio broadcast signal to obtain the specific broadcast information carried by the LE Audio broadcast signal; calculate the local value according to SIRK and specific broadcast information; if the local value is consistent with the target in the LE Audio broadcast signal field values are the same, it is determined that the second target electronic device belongs to the same group of Bluetooth devices.
在一个实施例中,待回连信息还包括同一组蓝牙设备对应的SIRK。蓝牙连接模块820,还用于获取LE Audio广播信号中携带的SIRK,若LE Audio广播信号中携带的SIRK与待回连信息中包含的SIRK一致,则确定第二目标电子设备属于同一组蓝牙设备。In an embodiment, the information to be connected back further includes SIRKs corresponding to the same group of Bluetooth devices. The Bluetooth connection module 820 is also used to obtain the SIRK carried in the LE Audio broadcast signal. If the SIRK carried in the LE Audio broadcast signal is consistent with the SIRK contained in the information to be connected back, it is determined that the second target electronic device belongs to the same group of Bluetooth devices .
在一个实施例中,待回连信息还包括同一组蓝牙设备中各个电子设备的BLE地址。蓝牙连接模块820,还用于若LE Audio广播信号对应的BLE地址与待回连信息中包含的任一BLE地址一致,则确定第二目标电子设备属于同一组蓝牙设备。In one embodiment, the connection-to-be-connected information further includes BLE addresses of electronic devices in the same group of Bluetooth devices. The Bluetooth connection module 820 is also used to determine that the second target electronic device belongs to the same group of Bluetooth devices if the BLE address corresponding to the LE Audio broadcast signal is consistent with any BLE address contained in the information to be connected back.
在本申请实施例中,终端设备可快速且准确地与同时支持经典蓝牙和BLE Audio的同一组蓝牙设备中的至少一个目标电子设备进行经典蓝牙回连及LE Audio蓝牙回连,保证了不同场景下蓝牙回连的成功率及稳定性。且本申请实施例所提供的蓝牙回连方案仅在终端设备侧进行实现,免去了对同一组蓝牙设备的各个电子设备的复杂设计,通用性更好。In the embodiment of this application, the terminal device can quickly and accurately perform classic Bluetooth and LE Audio Bluetooth back-connection with at least one target electronic device in the same group of Bluetooth devices that support both classic Bluetooth and BLE Audio, ensuring different scenarios The success rate and stability of the Bluetooth connection back. Moreover, the bluetooth connection back solution provided by the embodiment of the present application is only implemented on the terminal device side, which avoids the complicated design of each electronic device of the same group of bluetooth devices, and has better versatility.
在一个实施例中,蓝牙回连装置800,除了包括信息确定模块810及蓝牙连接模块820,还包括存储模块。In one embodiment, the Bluetooth connection back device 800 includes a storage module in addition to the information determination module 810 and the Bluetooth connection module 820 .
蓝牙连接模块820,还用于分别与第一电子设备建立经典蓝牙连接及第一LE Audio连接,以及与第二电子设备建立第二LE Audio连接,其中,第一电子设备及第二电子设备属于同一组蓝牙设备。The Bluetooth connection module 820 is also used to respectively establish a classic Bluetooth connection and a first LE Audio connection with the first electronic device, and establish a second LE Audio connection with the second electronic device, wherein the first electronic device and the second electronic device belong to same set of bluetooth devices.
在一个实施例中,蓝牙连接模块820,还用于第一电子设备发送的第一LE Audio广播信号,并根据第一LE Audio广播信号确定第一电子设备对应的第一BLE地址;确定第一电子设备对应的经典蓝牙地址;接收第二电子设备发送的第二LE Audio广播信号,并根据第一LE Audio广播信号确定第一电子设备对应的第二BLE地址;以及根据第一BLE地址与第一电子设备建立第一LE Audio连接,并根据第一电子设备对应的经典蓝牙地址与第一电子设备建立经典蓝牙连接,以及在确定第二电子设备与第一电子设备属于同一组蓝牙设备的情况下,根据第二BLE地址与第二电子设备建立第二LE Audio连接。In one embodiment, the Bluetooth connection module 820 is also used for the first LE Audio broadcast signal sent by the first electronic device, and determines the first BLE address corresponding to the first electronic device according to the first LE Audio broadcast signal; determine the first The classic Bluetooth address corresponding to the electronic device; receiving the second LE Audio broadcast signal sent by the second electronic device, and determining the second BLE address corresponding to the first electronic device according to the first LE Audio broadcast signal; and according to the first BLE address and the second BLE address An electronic device establishes a first LE Audio connection, establishes a classic Bluetooth connection with the first electronic device according to the classic Bluetooth address corresponding to the first electronic device, and determines that the second electronic device and the first electronic device belong to the same group of Bluetooth devices Next, establish a second LE Audio connection with the second electronic device according to the second BLE address.
在一个实施例中,第一LE Audio广播信号包括第一身份标识,第二LE Audio广播信号包括第二身份标识。蓝牙连接模块820,还用于若第一身份标识与第二身份标识相同,则确定第二电子设备与第一电子设备属于同一组蓝牙设备。In one embodiment, the first LE Audio broadcast signal includes a first identity, and the second LE Audio broadcast signal includes a second identity. The Bluetooth connection module 820 is further configured to determine that the second electronic device and the first electronic device belong to the same group of Bluetooth devices if the first identity is the same as the second identity.
在一个实施例中,蓝牙连接模块820,还用于根据第一LE Audio广播信号确定第一电子设备对应的目标SIRK;对第二LE Audio广播信号进行解析,得到第二LE Audio广播信号所携带的目标特定广播信息;根据目标SIRK与目标特定广播信息计算得到目标本地值;若目标本地值与第二LE Audio广播信号中的目标字段值相同,则确定第二电子设备与第一电子设备属于同一组蓝牙设备。In one embodiment, the Bluetooth connection module 820 is also used to determine the target SIRK corresponding to the first electronic device according to the first LE Audio broadcast signal; analyze the second LE Audio broadcast signal to obtain the second LE Audio broadcast signal carried Target-specific broadcast information; calculate the target local value according to the target SIRK and target-specific broadcast information; if the target local value is the same as the target field value in the second LE Audio broadcast signal, it is determined that the second electronic device and the first electronic device belong to same set of bluetooth devices.
存储模块,用于将第一电子设备的设备信息与第二电子设备的设备信息存储到同一个信息组合集中。The storage module is configured to store the device information of the first electronic device and the device information of the second electronic device in the same information combination set.
信息确定模块810,还用于确定待回连的同一组蓝牙设备,并从待回连的同一组蓝牙设备对应的信息组合集中确定待回连信息。The information determination module 810 is further configured to determine the same group of Bluetooth devices to be connected back, and determine the information to be connected back from the information combination set corresponding to the same group of Bluetooth devices to be connected back.
在本申请实施例中,在终端设备与同一组蓝牙设备中的多个电子设备建立蓝牙连接时,可将属于同一组蓝牙设备的各个电子设备的设备信息存储到同一信息组合集中,方便后续在进行蓝牙回连时,终端设备可准确、快速地与待回连的同一组蓝牙设备中的至少一个目标电子设备进行蓝牙连接,提高了蓝牙回连的成功率及稳定性。In the embodiment of the present application, when a terminal device establishes a Bluetooth connection with multiple electronic devices in the same group of Bluetooth devices, the device information of each electronic device belonging to the same group of Bluetooth devices can be stored in the same information combination set, which is convenient for subsequent When performing Bluetooth connection back, the terminal device can accurately and quickly perform Bluetooth connection with at least one target electronic device in the same group of Bluetooth devices to be connected back, which improves the success rate and stability of Bluetooth connection back.
如图9所示,在一个实施例中,提供一种信息存储装置900,可应用于上述的终端设备,该信息存储装置900,可包括蓝牙连接模块910及存储模块920。As shown in FIG. 9 , in one embodiment, an information storage device 900 is provided, which can be applied to the above-mentioned terminal equipment. The information storage device 900 can include a Bluetooth connection module 910 and a storage module 920 .
蓝牙连接模块910,用于分别与第一电子设备建立经典蓝牙连接及第一LE Audio连接,以及与第二电子设备建立第二LE Audio连接,其中,第一电子设备及第二电子设备属于同一组蓝牙设备。 Bluetooth connection module 910, configured to respectively establish a classic Bluetooth connection and a first LE Audio connection with the first electronic device, and establish a second LE Audio connection with the second electronic device, wherein the first electronic device and the second electronic device belong to the same Group bluetooth devices.
在一个实施例中,蓝牙连接模块910,还用于接收第一电子设备发送的第一LE Audio广播信号,并根据第一LE Audio广播信号确定第一电子设备对应的第一BLE地址;确定第一电子设备对应的经典蓝牙地址;接收第二电子设备发送的第二LE Audio广播信号,并根据第一LE Audio广播信号确定第一电子设备对应的第二BLE地址;根据第一BLE地址与第一电子设备建立第一LE Audio连接,并根据第一电子设备对应的经典蓝牙地址与第一电子设备建立经典蓝牙连接,以及在确定第二电子设备与第一电子设备属于同一组蓝牙设备的情况下,根据第二BLE地址与第二电子设备建立第二LE Audio连接。In one embodiment, the Bluetooth connection module 910 is further configured to receive the first LE Audio broadcast signal sent by the first electronic device, and determine the first BLE address corresponding to the first electronic device according to the first LE Audio broadcast signal; determine the first BLE address corresponding to the first electronic device A classic Bluetooth address corresponding to an electronic device; receiving the second LE Audio broadcast signal sent by the second electronic device, and determining the second BLE address corresponding to the first electronic device according to the first LE Audio broadcast signal; according to the first BLE address and the second An electronic device establishes a first LE Audio connection, establishes a classic Bluetooth connection with the first electronic device according to the classic Bluetooth address corresponding to the first electronic device, and determines that the second electronic device and the first electronic device belong to the same group of Bluetooth devices Next, establish a second LE Audio connection with the second electronic device according to the second BLE address.
存储模块920,用于将第一电子设备的设备信息与第二电子设备的设备信息存储到同一个信息组合集中,同一个信息组合集用于确定待回连信息,所述待回连信息用于触发与所述同一组蓝牙设备中的至少一个目标电子设备进行回连。The storage module 920 is configured to store the device information of the first electronic device and the device information of the second electronic device in the same information combination set, the same information combination set is used to determine the information to be connected back, and the information to be connected back is used to trigger a connection back with at least one target electronic device in the same group of bluetooth devices.
在一个实施例中,第一电子设备的设备信息包括第一电子设备对应的经典蓝牙地址、第一BLE地址、设备名称、SIRK中的至少一种;第二电子设备的设备信息包括第二电子 设备对应的经典蓝牙地址、第二BLE地址、设备名称、SIRK中的至少一种。In one embodiment, the device information of the first electronic device includes at least one of the classic Bluetooth address corresponding to the first electronic device, the first BLE address, the device name, and SIRK; the device information of the second electronic device includes the second electronic At least one of the classic Bluetooth address, the second BLE address, the device name, and the SIRK corresponding to the device.
在一个实施例中,第一电子设备与第二电子设备共用同一经典蓝牙地址,第一电子设备的第一BLE地址与该经典蓝牙地址相同,第二电子设备的第二BLE地址与该经典蓝牙地址不同。In one embodiment, the first electronic device and the second electronic device share the same classic Bluetooth address, the first BLE address of the first electronic device is the same as the classic Bluetooth address, and the second BLE address of the second electronic device is the same as the classic Bluetooth address. The address is different.
在本申请实施例中,在终端设备与同一组蓝牙设备中的多个电子设备建立蓝牙连接时,可将属于同一组蓝牙设备的各个电子设备的设备信息存储到同一信息组合集中,方便后续在进行蓝牙回连时,终端设备可准确、快速地与待回连的同一组蓝牙设备中的至少一个目标电子设备进行蓝牙连接,提高了蓝牙回连的成功率及稳定性。In the embodiment of the present application, when a terminal device establishes a Bluetooth connection with multiple electronic devices in the same group of Bluetooth devices, the device information of each electronic device belonging to the same group of Bluetooth devices can be stored in the same information combination set, which is convenient for subsequent When performing Bluetooth connection back, the terminal device can accurately and quickly perform Bluetooth connection with at least one target electronic device in the same group of Bluetooth devices to be connected back, which improves the success rate and stability of Bluetooth connection back.
图10为一个实施例中终端设备的结构框图。如图10所示,终端设备1000可以包括一个或多个如下部件:处理器1010、与处理器1010耦合的存储器1020,其中存储器1020可存储有一个或多个计算机程序,一个或多个计算机程序可以被配置为由一个或多个处理器1010执行时实现如上述各实施例描述的方法。Fig. 10 is a structural block diagram of a terminal device in an embodiment. As shown in Figure 10, the terminal device 1000 may include one or more of the following components: a processor 1010, a memory 1020 coupled to the processor 1010, wherein the memory 1020 may store one or more computer programs, one or more computer programs It may be configured to implement the methods described in the foregoing embodiments when executed by one or more processors 1010 .
处理器1010可以包括一个或者多个处理核。处理器1010利用各种接口和线路连接整个终端设备1000内的各个部分,通过运行或执行存储在存储器1020内的指令、程序、代码集或指令集,以及调用存储在存储器1020内的数据,执行终端设备1000的各种功能和处理数据。可选地,处理器1010可以采用数字信号处理(Digital Signal Processing,DSP)、现场可编程门阵列(Field-Programmable Gate Array,FPGA)、可编程逻辑阵列(Programmable Logic Array,PLA)中的至少一种硬件形式来实现。处理器1010可集成中央处理器(Central Processing Unit,CPU)、图像处理器(Graphics Processing Unit,GPU)和调制解调器等中的一种或几种的组合。其中,CPU主要处理操作系统、用户界面和应用程序等;GPU用于负责显示内容的渲染和绘制;调制解调器用于处理无线通信。可以理解的是,上述调制解调器也可以不集成到处理器1010中,单独通过一块通信芯片进行实现。 Processor 1010 may include one or more processing cores. The processor 1010 uses various interfaces and lines to connect various parts of the entire terminal device 1000, and by running or executing instructions, programs, code sets or instruction sets stored in the memory 1020, and calling data stored in the memory 1020, execute Various functions and processing data of the terminal device 1000. Optionally, the processor 1010 may adopt at least one of Digital Signal Processing (Digital Signal Processing, DSP), Field-Programmable Gate Array (Field-Programmable Gate Array, FPGA), and Programmable Logic Array (Programmable Logic Array, PLA). implemented in the form of hardware. The processor 1010 may integrate one or a combination of a central processing unit (Central Processing Unit, CPU), an image processor (Graphics Processing Unit, GPU), a modem, and the like. Among them, the CPU mainly handles the operating system, user interface and application programs, etc.; the GPU is used to render and draw the displayed content; the modem is used to handle wireless communication. It can be understood that the above modem may also not be integrated into the processor 1010, but implemented by a communication chip alone.
存储器1020可以包括随机存储器(Random Access Memory,RAM),也可以包括只读存储器(Read-Only Memory,ROM)。存储器1020可用于存储指令、程序、代码、代码集或指令集。存储器1020可包括存储程序区和存储数据区,其中,存储程序区可存储用于实现操作系统的指令、用于实现至少一个功能的指令(比如触控功能、声音播放功能、图像播放功能等)、用于实现上述各个方法实施例的指令等。存储数据区还可以存储终端设备1000在使用中所创建的数据等。The memory 1020 may include random access memory (Random Access Memory, RAM), and may also include read-only memory (Read-Only Memory, ROM). The memory 1020 may be used to store instructions, programs, codes, sets of codes or sets of instructions. The memory 1020 may include a program storage area and a data storage area, wherein the program storage area may store instructions for implementing an operating system and instructions for implementing at least one function (such as a touch function, a sound playback function, an image playback function, etc.) , instructions for implementing the foregoing method embodiments, and the like. The storage data area can also store data created by the terminal device 1000 during use, and the like.
终端设备1000还可包括蓝牙模块,蓝牙模块可用于提供蓝牙通信功能,与其它电子设备建立蓝牙连接,并进行蓝牙数据传输。蓝牙模块可支持一种或多种蓝牙协议,如经典蓝牙、BLE、BLE Audio等),但不限于此,可随着蓝牙协议的发展而变化。The terminal device 1000 may further include a Bluetooth module, which may be used to provide a Bluetooth communication function, establish a Bluetooth connection with other electronic devices, and perform Bluetooth data transmission. The Bluetooth module can support one or more Bluetooth protocols, such as classic Bluetooth, BLE, BLE Audio, etc.), but is not limited to this, and can change with the development of the Bluetooth protocol.
在一些实施例中,处理器910,用于确定待回连信息,该待回连信息是根据与终端设备曾经建立过蓝牙连接的一个或多个电子设备的设备信息生成的,该一个或多个电子设备属于同一组蓝牙设备中的;以及用于根据待回连信息,指示蓝牙模块与同一组蓝牙设备中的至少一个目标电子设备进行蓝牙连接。In some embodiments, the processor 910 is configured to determine the information to be connected, the information to be connected is generated according to the device information of one or more electronic devices that have established a Bluetooth connection with the terminal device, and the one or more The electronic devices belong to the same group of Bluetooth devices; and it is used to instruct the Bluetooth module to perform Bluetooth connection with at least one target electronic device in the same group of Bluetooth devices according to the information to be connected back.
可以理解地,终端设备1000可包括比上述结构框图中更多或更少的结构元件,例如,包括电源模块、物理按键、传感器、显示屏、摄像头等,还可在此不进行限定。It can be understood that the terminal device 1000 may include more or less structural elements than those in the above structural block diagrams, for example, including a power module, physical keys, sensors, display screens, cameras, etc., which are not limited here.
本申请实施例公开一种计算机可读存储介质,其存储计算机程序,其中,该计算机程序被处理器执行时实现如上述各实施例描述的方法。The embodiment of the present application discloses a computer-readable storage medium, which stores a computer program, wherein when the computer program is executed by a processor, the methods described in the foregoing embodiments are implemented.
本申请实施例公开一种计算机程序产品,该计算机程序产品包括存储了计算机程序的非瞬时性计算机可读存储介质,且该计算机程序可被处理器执行时实现如上述各实施例描述的方法。The embodiment of the present application discloses a computer program product, which includes a non-transitory computer-readable storage medium storing a computer program, and the computer program can be executed by a processor to implement the methods described in the foregoing embodiments.
本领域普通技术人员可以理解实现上述实施例方法中的全部或部分流程,是可以通过 计算机程序来指令相关的硬件来完成,所述的程序可存储于一非易失性计算机可读取存储介质中,该程序在执行时,可包括如上述各方法的实施例的流程。其中,所述的存储介质可为磁碟、光盘、ROM等。Those of ordinary skill in the art can understand that all or part of the processes in the methods of the above embodiments can be realized through computer programs to instruct related hardware, and the programs can be stored in a non-volatile computer-readable storage medium When the program is executed, it may include the processes of the embodiments of the above-mentioned methods. Wherein, the storage medium may be a magnetic disk, an optical disk, a ROM, or the like.
如此处所使用的对存储器、存储、数据库或其它介质的任何引用可包括非易失性和/或易失性存储器。合适的非易失性存储器可包括ROM、可编程ROM(Programmable ROM,PROM)、可擦除PROM(Erasable PROM,EPROM)、电可擦除PROM(Electrically Erasable PROM,EEPROM)或闪存。易失性存储器可包括随机存取存储器(random access memory,RAM),它用作外部高速缓冲存储器。作为说明而非局限,RAM可为多种形式,诸如静态RAM(Static RAM,SRAM)、动态RAM(Dynamic Random Access Memory,DRAM)、同步DRAM(synchronous DRAM,SDRAM)、双倍数据率SDRAM(Double Data Rate SDRAM,DDR SDRAM)、增强型SDRAM(Enhanced Synchronous DRAM,ESDRAM)、同步链路DRAM(Synchlink DRAM,SLDRAM)、存储器总线直接RAM(Rambus DRAM,RDRAM)及直接存储器总线动态RAM(Direct Rambus DRAM,DRDRAM)。Any reference to memory, storage, database or other medium as used herein may include non-volatile and/or volatile memory. Suitable non-volatile memory may include ROM, Programmable ROM (PROM), Erasable PROM (Erasable PROM, EPROM), Electrically Erasable PROM (Electrically Erasable PROM, EEPROM) or flash memory. Volatile memory can include random access memory (RAM), which acts as external cache memory. By way of illustration and not limitation, RAM can take many forms, such as static RAM (Static RAM, SRAM), dynamic RAM (Dynamic Random Access Memory, DRAM), synchronous DRAM (synchronous DRAM, SDRAM), double data rate SDRAM (Double data rate Data Rate SDRAM, DDR SDRAM), enhanced SDRAM (Enhanced Synchronous DRAM, ESDRAM), synchronous link DRAM (Synchlink DRAM, SLDRAM), memory bus direct RAM (Rambus DRAM, RDRAM) and direct memory bus dynamic RAM (Direct Rambus DRAM) , DRDRAM).
应理解,说明书通篇中提到的“一个实施例”或“一实施例”意味着与实施例有关的特定特征、结构或特性包括在本申请的至少一个实施例中。因此,在整个说明书各处出现的“在一个实施例中”或“在一实施例中”未必一定指相同的实施例。此外,这些特定特征、结构或特性可以以任意适合的方式结合在一个或多个实施例中。本领域技术人员也应该知悉,说明书中所描述的实施例均属于可选实施例,所涉及的动作和模块并不一定是本申请所必须的。It should be understood that reference throughout the specification to "one embodiment" or "an embodiment" means that a particular feature, structure, or characteristic related to the embodiment is included in at least one embodiment of the present application. Thus, appearances of "in one embodiment" or "in an embodiment" in various places throughout the specification are not necessarily referring to the same embodiment. Furthermore, the particular features, structures or characteristics may be combined in any suitable manner in one or more embodiments. Those skilled in the art should also know that the embodiments described in the specification are all optional embodiments, and the actions and modules involved are not necessarily required by this application.
在本申请的各种实施例中,应理解,上述各过程的序号的大小并不意味着执行顺序的必然先后,各过程的执行顺序应以其功能和内在逻辑确定,而不应对本申请实施例的实施过程构成任何限定。In various embodiments of the present application, it should be understood that the sequence numbers of the above-mentioned processes do not necessarily mean the order of execution. The implementation of the examples constitutes no limitation.
上述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可位于一个地方,或者也可以分布到多个网络单元上。可根据实际的需要选择其中的部分或全部单元来实现本实施例方案的目的。The units described above as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, located in one place, or distributed to multiple network units. Part or all of the units can be selected according to actual needs to achieve the purpose of the solution of this embodiment.
另外,在本申请各实施例中的各功能单元可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中。上述集成的单元既可以采用硬件的形式实现,也可以采用软件功能单元的形式实现。In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, each unit may exist separately physically, or two or more units may be integrated into one unit. The above-mentioned integrated units can be implemented in the form of hardware or in the form of software functional units.
以上对本申请实施例公开的一种蓝牙回连方法及装置、信息存储方法及装置、终端设备、存储介质进行了详细介绍,本文中应用了具体个例对本申请的原理及实施方式进行了阐述,以上实施例的说明只是用于帮助理解本申请的方法及其核心思想。同时,对于本领域的一般技术人员,依据本申请的思想,在具体实施方式及应用范围上均会有改变之处,综上所述,本说明书内容不应理解为对本申请的限制。A Bluetooth connection back method and device, an information storage method and device, a terminal device, and a storage medium disclosed in the embodiments of the present application have been described above in detail. In this paper, specific examples are used to illustrate the principle and implementation of the present application. The descriptions of the above embodiments are only used to help understand the method and the core idea of the present application. At the same time, for those skilled in the art, based on the idea of this application, there will be changes in the specific implementation and application scope. In summary, the content of this specification should not be construed as limiting the application.

Claims (24)

  1. 一种蓝牙回连方法,其特征在于,应用于终端设备,所述方法包括:A bluetooth connection back method is characterized in that it is applied to a terminal device, and the method includes:
    确定待回连信息,所述待回连信息是根据与所述终端设备曾经建立过蓝牙连接的一个或多个电子设备的设备信息生成的,所述一个或多个电子设备属于同一组蓝牙设备中的;Determine the information to be connected back, the information to be connected back is generated according to the device information of one or more electronic devices that have established a Bluetooth connection with the terminal device, and the one or more electronic devices belong to the same group of Bluetooth devices middle;
    根据所述待回连信息,与所述同一组蓝牙设备中的至少一个目标电子设备进行蓝牙连接。Perform a Bluetooth connection with at least one target electronic device in the same group of Bluetooth devices according to the pending connection information.
  2. 根据权利要求1所述的方法,其特征在于,所述同一组蓝牙设备中的各个电子设备共用同一经典蓝牙地址,所述同一组蓝牙设备中的各个电子设备分别对应不同的BLE地址;和/或,The method according to claim 1, wherein each electronic device in the same group of Bluetooth devices shares the same classic Bluetooth address, and each electronic device in the same group of Bluetooth devices corresponds to a different BLE address; and/ or,
    所述同一组蓝牙设备中的默认主设备的BLE地址与所述经典蓝牙地址相同,所述同一组蓝牙设备中的默认从设备的BLE地址与所述经典蓝牙地址不相同。The BLE address of the default master device in the same group of Bluetooth devices is the same as the classic Bluetooth address, and the BLE address of the default slave device in the same group of Bluetooth devices is different from the classic Bluetooth address.
  3. 根据权利要求1所述的方法,其特征在于,所述待回连信息包括所述同一组蓝牙设备中的各个电子设备共用的经典蓝牙地址;The method according to claim 1, wherein the information to be connected back includes a classic Bluetooth address shared by each electronic device in the same group of Bluetooth devices;
    所述根据所述待回连信息,与所述同一组蓝牙设备中的至少一个目标电子设备进行蓝牙连接,包括:The performing a Bluetooth connection with at least one target electronic device in the same group of Bluetooth devices according to the pending connection information includes:
    根据所述经典蓝牙地址发送第一回连请求,所述第一回连请求用于触发所述同一组蓝牙设备中当前的主从关系为主设备的第一目标电子设备与所述终端设备建立经典蓝牙连接;和/或,Send a first connection back request according to the classic Bluetooth address, and the first connection back request is used to trigger the establishment of the first target electronic device of the master device and the terminal device in the current master-slave relationship among the same group of Bluetooth devices Classic Bluetooth connectivity; and/or,
    接收第二目标电子设备发送的LE Audio广播信号,并根据所述LE Audio广播信号及所述待回连信息判断所述第二目标电子设备是否属于所述同一组蓝牙设备,若属于所述同一组蓝牙设备,则根据所述LE Audio广播信号对应的BLE地址向所述第二目标电子设备发送第二回连请求,所述第二回连请求用于触发所述第二目标电子设备与所述终端设备建立LE Audio蓝牙连接。receiving the LE Audio broadcast signal sent by the second target electronic device, and judging whether the second target electronic device belongs to the same group of Bluetooth devices according to the LE Audio broadcast signal and the information to be connected; Bluetooth device, then send a second connection back request to the second target electronic device according to the BLE address corresponding to the LE Audio broadcast signal, and the second connection back request is used to trigger the connection between the second target electronic device and the The terminal device establishes a LE Audio Bluetooth connection.
  4. 根据权利要求3所述的方法,其特征在于,所述第一回连请求为寻呼数据包。The method according to claim 3, wherein the first connection back request is a paging data packet.
  5. 根据权利要求4所述的方法,其特征在于,所述寻呼数据包是采用跳频方式发送的。The method according to claim 4, characterized in that, the paging data packet is sent in a frequency hopping manner.
  6. 根据权利要求3所述的方法,其特征在于,所述待回连信息还包括所述同一组蓝牙设备对应的组合标识解析值SIRK;The method according to claim 3, wherein the connection-to-be-returned information further includes a combination identification analysis value SIRK corresponding to the same group of Bluetooth devices;
    所述根据所述LE Audio广播信号及所述待回连信息判断所述第二目标电子设备是否属于所述同一组蓝牙设备,包括:The judging whether the second target electronic device belongs to the same group of Bluetooth devices according to the LE Audio broadcast signal and the connection-to-be-connected information includes:
    对所述LE Audio广播信号进行解析,得到所述LE Audio广播信号所携带的特定广播信息;Analyzing the LE Audio broadcast signal to obtain the specific broadcast information carried by the LE Audio broadcast signal;
    根据所述SIRK与所述特定广播信息计算得到本地值;calculating a local value according to the SIRK and the specific broadcast information;
    若所述本地值与所述LE Audio广播信号中的目标字段值相同,则确定所述第二目标电子设备属于所述同一组蓝牙设备。If the local value is the same as the target field value in the LE Audio broadcast signal, it is determined that the second target electronic device belongs to the same group of Bluetooth devices.
  7. 根据权利要求3所述的方法,其特征在于,所述待回连信息还包括所述同一组蓝牙设备对应的组合标识解析值SIRK;The method according to claim 3, wherein the connection-to-be-returned information further includes a combination identification analysis value SIRK corresponding to the same group of Bluetooth devices;
    所述根据所述LE Audio广播信号及所述待回连信息判断所述第二目标电子设备是否属于所述同一组蓝牙设备,包括:The judging whether the second target electronic device belongs to the same group of Bluetooth devices according to the LE Audio broadcast signal and the connection-to-be-connected information includes:
    获取所述LE Audio广播信号中携带的SIRK,若所述LE Audio广播信号中携带的SIRK与所述待回连信息中包含的SIRK一致,则确定所述第二目标电子设备属于所述同一组蓝牙设备。Obtain the SIRK carried in the LE Audio broadcast signal, and if the SIRK carried in the LE Audio broadcast signal is consistent with the SIRK contained in the information to be connected back, then determine that the second target electronic device belongs to the same group bluetooth device.
  8. 根据权利要求3所述的方法,其特征在于,所述待回连信息还包括所述同一组蓝牙设备中各个电子设备的BLE地址;The method according to claim 3, wherein the information to be connected back further includes the BLE address of each electronic device in the same group of Bluetooth devices;
    所述根据所述LE audio广播信号及所述待回连信息判断所述第二目标电子设备是否属于所述同一组蓝牙设备,包括:The judging whether the second target electronic device belongs to the same group of Bluetooth devices according to the LE audio broadcast signal and the connection-to-be-connected information includes:
    若所述LE Audio广播信号对应的BLE地址与所述待回连信息中包含的任一BLE地址一致,则确定所述第二目标电子设备属于所述同一组蓝牙设备。If the BLE address corresponding to the LE Audio broadcast signal is consistent with any BLE address contained in the information to be connected back, it is determined that the second target electronic device belongs to the same group of Bluetooth devices.
  9. 根据权利要求1~8任一所述的方法,其特征在于,所述设备信息包括电子设备对应的经典蓝牙地址、BLE地址、设备名称、组合标识解析值SIRK中的至少一种;The method according to any one of claims 1 to 8, wherein the device information includes at least one of a classic Bluetooth address, a BLE address, a device name, and a combined identification analysis value SIRK corresponding to the electronic device;
    所述待回连信息包括所述同一组蓝牙设备中各个电子设备共用的经典蓝牙地址及所述同一组蓝牙设备中各个电子设备对应的同一SIRK;或,所述待回连信息包括所述同一组蓝牙设备中的各个电子设备共用的经典蓝牙地址及所述同一组蓝牙设备中各个电子设备的BLE地址。The information to be connected back includes the classic Bluetooth address shared by each electronic device in the same group of Bluetooth devices and the same SIRK corresponding to each electronic device in the same group of Bluetooth devices; or, the information to be connected back includes the same The classic Bluetooth address shared by each electronic device in the group of Bluetooth devices and the BLE address of each electronic device in the same group of Bluetooth devices.
  10. 根据权利要求1~8任一所述的方法,其特征在于,所述同一组蓝牙设备包括以下中的任一种:The method according to any one of claims 1-8, wherein the same group of Bluetooth devices includes any of the following:
    所述同一组蓝牙设备为,最近一次与所述终端设备建立蓝牙连接的电子设备所属的一组蓝牙设备;The same group of Bluetooth devices is a group of Bluetooth devices to which the electronic device that established a Bluetooth connection with the terminal device last time belongs to;
    所述同一组蓝牙设备为,最近一次与所述终端设备断开蓝牙连接的电子设备所属的一组蓝牙设备;The same group of Bluetooth devices is a group of Bluetooth devices to which the electronic device that disconnected the Bluetooth connection with the terminal device last time belongs to;
    所述同一组蓝牙设备为,与所述终端设备建立蓝牙连接次数最多的电子设备所属的一组蓝牙设备;The same group of bluetooth devices is a group of bluetooth devices to which the electronic device that establishes the most number of bluetooth connections with the terminal device belongs;
    所述同一组蓝牙设备为根据检测到的设置操作确定的一组蓝牙设备。The same group of Bluetooth devices is a group of Bluetooth devices determined according to the detected setting operation.
  11. 根据权利要求1~8任一所述的方法,其特征在于,在所述确定待回连信息之前,所述方法还包括:The method according to any one of claims 1-8, characterized in that, before the determination of the information to be connected back, the method further includes:
    分别与第一电子设备建立经典蓝牙连接及第一LE Audio连接,以及与第二电子设备建立第二LE Audio连接,其中,所述第一电子设备及第二电子设备属于同一组蓝牙设备;Establishing a classic Bluetooth connection and a first LE Audio connection with the first electronic device respectively, and establishing a second LE Audio connection with the second electronic device, wherein the first electronic device and the second electronic device belong to the same group of Bluetooth devices;
    将所述第一电子设备的设备信息与所述第二电子设备的设备信息存储到同一个信息组合集中;storing the device information of the first electronic device and the device information of the second electronic device in the same information combination set;
    所述确定待回连信息,包括:确定待回连的同一组蓝牙设备,并从所述待回连的同一组蓝牙设备对应的信息组合集中确定待回连信息。The determining the information to be connected back includes: determining the same group of Bluetooth devices to be connected back, and determining the information to be connected back from the information combination set corresponding to the same group of Bluetooth devices to be connected back.
  12. 根据权利要求11所述的方法,其特征在于,所述分别与第一电子设备建立经典蓝牙连接及第一LE Audio连接,以及与第二电子设备建立第二LE Audio连接,包括:The method according to claim 11, wherein said establishing a classic Bluetooth connection and a first LE Audio connection with the first electronic device respectively, and establishing a second LE Audio connection with the second electronic device include:
    接收第一电子设备发送的第一LE Audio广播信号,并根据所述第一LE Audio广播信号确定所述第一电子设备对应的第一BLE地址;Receiving the first LE Audio broadcast signal sent by the first electronic device, and determining the first BLE address corresponding to the first electronic device according to the first LE Audio broadcast signal;
    确定所述第一电子设备对应的经典蓝牙地址;determining the classic bluetooth address corresponding to the first electronic device;
    接收第二电子设备发送的第二LE Audio广播信号,并根据所述第一LE Audio广播信号确定所述第一电子设备对应的第二BLE地址;Receive the second LE Audio broadcast signal sent by the second electronic device, and determine the second BLE address corresponding to the first electronic device according to the first LE Audio broadcast signal;
    根据所述第一BLE地址与所述第一电子设备建立第一LE Audio连接,并根据所述第一电子设备对应的经典蓝牙地址与所述第一电子设备建立经典蓝牙连接,以及在确定所述第二电子设备与所述第一电子设备属于同一组蓝牙设备的情况下,根据所述第二BLE地址与所述第二电子设备建立第二LE Audio连接。Establish a first LE Audio connection with the first electronic device according to the first BLE address, and establish a classic Bluetooth connection with the first electronic device according to the classic Bluetooth address corresponding to the first electronic device, and determine the first electronic device. When the second electronic device and the first electronic device belong to the same group of Bluetooth devices, establish a second LE Audio connection with the second electronic device according to the second BLE address.
  13. 根据权利要求12所述的方法,其特征在于,所述确定所述第一电子设备对应的经典蓝牙地址,包括:The method according to claim 12, wherein the determining the classic Bluetooth address corresponding to the first electronic device comprises:
    向所述第一电子设备发送查询指令,以使所述第一设备在接收到所述查询指令时,反馈所述第一电子设备对应的经典蓝牙地址;Sending a query instruction to the first electronic device, so that the first device feeds back the classic Bluetooth address corresponding to the first electronic device when receiving the query instruction;
    接收所述第一电子设备对应的经典蓝牙地址。Receive the classic Bluetooth address corresponding to the first electronic device.
  14. 根据权利要求12所述的方法,其特征在于,所述第一LE Audio广播信号包括第一身份标识,所述第二LE Audio广播信号包括第二身份标识;在所述在确定所述第二电子设备与所述第一电子设备属于同一组蓝牙设备的情况下,根据所述第二BLE地址与所述第二电子设备建立第二LE Audio连接之前,所述方法还包括:The method according to claim 12, wherein the first LE Audio broadcast signal includes a first identity, and the second LE Audio broadcast signal includes a second identity; In the case that the electronic device and the first electronic device belong to the same group of Bluetooth devices, before establishing a second LE Audio connection with the second electronic device according to the second BLE address, the method further includes:
    若所述第一身份标识与所述第二身份标识相同,则确定所述第二电子设备与所述第一电子设备属于所述同一组蓝牙设备。If the first identity is the same as the second identity, it is determined that the second electronic device and the first electronic device belong to the same group of Bluetooth devices.
  15. 根据权利要求12所述的方法,其特征在于,在所述在确定所述第二电子设备与所述第一电子设备属于同一组蓝牙设备的情况下,根据所述第二BLE地址与所述第二电子设备建立第二LE Audio连接之前,所述方法还包括:The method according to claim 12, wherein, when it is determined that the second electronic device and the first electronic device belong to the same group of Bluetooth devices, according to the second BLE address and the Before the second electronic device establishes the second LE Audio connection, the method also includes:
    根据所述第一LE Audio广播信号确定所述第一电子设备对应的目标SIRK;determining a target SIRK corresponding to the first electronic device according to the first LE Audio broadcast signal;
    对所述第二LE Audio广播信号进行解析,得到所述第二LE Audio广播信号所携带的目标特定广播信息;Analyzing the second LE Audio broadcast signal to obtain the target-specific broadcast information carried by the second LE Audio broadcast signal;
    根据所述目标SIRK与所述目标特定广播信息计算得到目标本地值;calculating a target local value according to the target SIRK and the target-specific broadcast information;
    若所述目标本地值与所述第二LE Audio广播信号中的目标字段值相同,则确定所述第二电子设备与所述第一电子设备属于同一组蓝牙设备。If the target local value is the same as the target field value in the second LE Audio broadcast signal, it is determined that the second electronic device and the first electronic device belong to the same group of Bluetooth devices.
  16. 根据权利要求1~8、12~15任一所述的方法,其特征在于,所述同一组蓝牙设备包括同一组音频输出设备,所述同一组音频输出设备包括第一音频输出设备及第二音频输出设备,所述第一音频输出设备及第二音频输出设备组成一对音频输出设备。The method according to any one of claims 1-8, 12-15, wherein the same group of Bluetooth devices includes the same group of audio output devices, and the same group of audio output devices includes the first audio output device and the second audio output device. The audio output device, the first audio output device and the second audio output device form a pair of audio output devices.
  17. 一种信息存储方法,其特征在于,应用于终端设备,所述方法包括:An information storage method, characterized in that it is applied to a terminal device, the method comprising:
    分别与第一电子设备建立经典蓝牙连接及第一LE Audio连接,以及与第二电子设备建立第二LE Audio连接,其中,所述第一电子设备及第二电子设备属于同一组蓝牙设备;Establishing a classic Bluetooth connection and a first LE Audio connection with the first electronic device respectively, and establishing a second LE Audio connection with the second electronic device, wherein the first electronic device and the second electronic device belong to the same group of Bluetooth devices;
    将所述第一电子设备的设备信息与所述第二电子设备的设备信息存储到同一个信息组合集中,所述同一个信息组合集用于确定待回连信息,所述待回连信息用于触发与所述同一组蓝牙设备中的至少一个目标电子设备进行回连。storing the device information of the first electronic device and the device information of the second electronic device in the same information combination set, the same information combination set is used to determine the information to be connected back, and the information to be connected back is used to trigger a connection back with at least one target electronic device in the same group of bluetooth devices.
  18. 根据权利要求17所述的方法,其特征在于,所述第一电子设备的设备信息包括所述第一电子设备对应的经典蓝牙地址、第一BLE地址、设备名称、SIRK中的至少一种;所述第二电子设备的设备信息包括所述第二电子设备对应的经典蓝牙地址、第二BLE地址、设备名称、SIRK中的至少一种。The method according to claim 17, wherein the device information of the first electronic device includes at least one of a classic Bluetooth address, a first BLE address, a device name, and a SIRK corresponding to the first electronic device; The device information of the second electronic device includes at least one of a classic Bluetooth address, a second BLE address, a device name, and a SIRK corresponding to the second electronic device.
  19. 根据权利要求17所述的方法,其特征在于,所述分别与第一电子设备建立经典蓝牙连接及第一LE Audio连接,以及与第二电子设备建立第二LE Audio连接,包括:The method according to claim 17, wherein said establishing a classic Bluetooth connection and a first LE Audio connection with the first electronic device respectively, and establishing a second LE Audio connection with the second electronic device comprises:
    接收第一电子设备发送的第一LE Audio广播信号,并根据所述第一LE Audio广播信号确定所述第一电子设备对应的第一BLE地址;Receiving the first LE Audio broadcast signal sent by the first electronic device, and determining the first BLE address corresponding to the first electronic device according to the first LE Audio broadcast signal;
    确定所述第一电子设备对应的经典蓝牙地址;determining the classic bluetooth address corresponding to the first electronic device;
    接收第二电子设备发送的第二LE Audio广播信号,并根据所述第一LE Audio广播信号确定所述第一电子设备对应的第二BLE地址;Receive the second LE Audio broadcast signal sent by the second electronic device, and determine the second BLE address corresponding to the first electronic device according to the first LE Audio broadcast signal;
    根据所述第一BLE地址与所述第一电子设备建立第一LE Audio连接,并根据所述第一电子设备对应的经典蓝牙地址与所述第一电子设备建立经典蓝牙连接,以及在确定所述第二电子设备与所述第一电子设备属于同一组蓝牙设备的情况下,根据所述第二BLE地址与所述第二电子设备建立第二LE Audio连接。Establish a first LE Audio connection with the first electronic device according to the first BLE address, and establish a classic Bluetooth connection with the first electronic device according to the classic Bluetooth address corresponding to the first electronic device, and determine the first electronic device. When the second electronic device and the first electronic device belong to the same group of Bluetooth devices, establish a second LE Audio connection with the second electronic device according to the second BLE address.
  20. 根据权利要求18或19所述的方法,其特征在于,所述第一电子设备与所述第二电子设备共用同一经典蓝牙地址,所述第一电子设备的所述第一BLE地址与所述经典蓝牙地址相同,所述第二电子设备的所述第二BLE地址与所述经典蓝牙地址不同。The method according to claim 18 or 19, wherein the first electronic device and the second electronic device share the same classic Bluetooth address, and the first BLE address of the first electronic device and the The classic Bluetooth address is the same, and the second BLE address of the second electronic device is different from the classic Bluetooth address.
  21. 一种蓝牙回连装置,其特征在于,应用于终端设备,所述装置包括:A bluetooth connection back device is characterized in that it is applied to terminal equipment, and the device includes:
    信息确定模块,用于确定待回连信息,所述待回连信息是根据与所述终端设备曾经建立过蓝牙连接的一个或多个电子设备的设备信息生成的,所述一个或多个电子设备属于同一组蓝牙设备中的;An information determination module, configured to determine the information to be connected back, the information to be connected back is generated according to the device information of one or more electronic devices that have established a Bluetooth connection with the terminal device, and the one or more electronic devices The device belongs to the same group of Bluetooth devices;
    蓝牙连接模块,用于根据所述待回连信息,与所述同一组蓝牙设备中的至少一个目标电子设备进行蓝牙连接。A Bluetooth connection module, configured to perform a Bluetooth connection with at least one target electronic device in the same group of Bluetooth devices according to the information to be connected back.
  22. 一种信息存储装置,其特征在于,应用于终端设备,所述装置包括:An information storage device is characterized in that it is applied to a terminal device, and the device includes:
    蓝牙连接模块,用于分别与第一电子设备建立经典蓝牙连接及第一LE Audio连接,以及与第二电子设备建立第二LE Audio连接,其中,所述第一电子设备及第二电子设备属于同一组蓝牙设备;The Bluetooth connection module is used to respectively establish a classic Bluetooth connection and a first LE Audio connection with the first electronic device, and establish a second LE Audio connection with the second electronic device, wherein the first electronic device and the second electronic device belong to The same group of Bluetooth devices;
    存储模块,用于将所述第一电子设备的设备信息与所述第二电子设备的设备信息存储到同一个信息组合集中,所述同一个信息组合集用于确定待回连信息,所述待回连信息用于触发与所述同一组蓝牙设备中的至少一个目标电子设备进行回连。A storage module, configured to store the device information of the first electronic device and the device information of the second electronic device in the same information combination set, the same information combination set is used to determine the information to be connected back, the The connection back information is used to trigger a connection back with at least one target electronic device in the same group of Bluetooth devices.
  23. 一种终端设备,其特征在于,包括存储器及处理器,所述存储器中存储有计算机程序,所述计算机程序被所述处理器执行时,使得所述处理器实现如权利要求1~20任一所述的方法。A terminal device, characterized in that it includes a memory and a processor, wherein a computer program is stored in the memory, and when the computer program is executed by the processor, the processor realizes any one of claims 1-20. the method described.
  24. 一种计算机可读存储介质,其上存储有计算机程序,其特征在于,所述计算机程序被处理器执行时实现如权利要求1~20任一所述的方法。A computer-readable storage medium on which a computer program is stored, wherein the computer program implements the method according to any one of claims 1-20 when executed by a processor.
PCT/CN2022/124405 2021-11-23 2022-10-10 Bluetooth back-connection method and apparatus, information storage method and apparatus, and terminal device WO2023093328A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202111396621.2 2021-11-23
CN202111396621 2021-11-23

Publications (1)

Publication Number Publication Date
WO2023093328A1 true WO2023093328A1 (en) 2023-06-01

Family

ID=86355222

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2022/124405 WO2023093328A1 (en) 2021-11-23 2022-10-10 Bluetooth back-connection method and apparatus, information storage method and apparatus, and terminal device

Country Status (2)

Country Link
CN (1) CN116156470A (en)
WO (1) WO2023093328A1 (en)

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105471481A (en) * 2014-06-06 2016-04-06 环汇系统有限公司 System and method of bluetooth pairing with a group of bluetooth devices
CN107197346A (en) * 2017-05-27 2017-09-22 深圳Tcl新技术有限公司 Television terminal and bluetooth equipment return even method and computer-readable recording medium
CN110191450A (en) * 2019-04-02 2019-08-30 华为技术有限公司 Business connection establishment method, bluetooth master, chip and Bluetooth system
US20200322788A1 (en) * 2019-04-04 2020-10-08 Qualcomm Incorporated Address management for bluetooth devices
CN111800695A (en) * 2020-06-30 2020-10-20 深圳市中科蓝讯科技股份有限公司 TWS earphone, connection team forming method thereof and computer readable storage medium
CN112449332A (en) * 2019-08-30 2021-03-05 华为技术有限公司 Bluetooth connection method and electronic equipment
CN112449328A (en) * 2019-08-30 2021-03-05 华为技术有限公司 Bluetooth searching method, system and related device
CN113225693A (en) * 2019-04-18 2021-08-06 华为技术有限公司 Bluetooth connection method, equipment and system

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105471481A (en) * 2014-06-06 2016-04-06 环汇系统有限公司 System and method of bluetooth pairing with a group of bluetooth devices
CN107197346A (en) * 2017-05-27 2017-09-22 深圳Tcl新技术有限公司 Television terminal and bluetooth equipment return even method and computer-readable recording medium
CN110191450A (en) * 2019-04-02 2019-08-30 华为技术有限公司 Business connection establishment method, bluetooth master, chip and Bluetooth system
US20200322788A1 (en) * 2019-04-04 2020-10-08 Qualcomm Incorporated Address management for bluetooth devices
CN113225693A (en) * 2019-04-18 2021-08-06 华为技术有限公司 Bluetooth connection method, equipment and system
CN112449332A (en) * 2019-08-30 2021-03-05 华为技术有限公司 Bluetooth connection method and electronic equipment
CN112449328A (en) * 2019-08-30 2021-03-05 华为技术有限公司 Bluetooth searching method, system and related device
CN111800695A (en) * 2020-06-30 2020-10-20 深圳市中科蓝讯科技股份有限公司 TWS earphone, connection team forming method thereof and computer readable storage medium

Also Published As

Publication number Publication date
CN116156470A (en) 2023-05-23

Similar Documents

Publication Publication Date Title
EP3629562B1 (en) Data transmitting method and system
US10820087B2 (en) Wireless audio source switching
KR102509480B1 (en) Ring network of bluetooth speakers
WO2020077658A1 (en) Extended connection method and extended connection system for bluetooth devices
WO2023036178A1 (en) Bluetooth connection method and apparatus, earphone device, and computer-readable storage medium
WO2024016948A1 (en) Information updating method and apparatus, audio sharing method and system, and electronic device
WO2024066694A1 (en) Connection method and apparatus for audio devices, and storage medium and device
WO2023103732A1 (en) State control method and apparatus for earphone device, earphone device and storage medium
WO2024055738A1 (en) Method and apparatus for audio data sharing, and electronic device and storage medium
WO2023093328A1 (en) Bluetooth back-connection method and apparatus, information storage method and apparatus, and terminal device
WO2021239032A1 (en) Bluetooth protocol connection method and apparatus, storage medium, and related device
EP3843495B1 (en) Communication method and apparatus, and device
WO2023098423A1 (en) Bluetooth connection method and apparatus, and bluetooth address configuration method and apparatus
WO2020038393A1 (en) Data transmission method and terminal
WO2023065881A1 (en) Bluetooth connection method and apparatus, electronic device, and storage medium
WO2023246017A1 (en) Bluetooth device configuration method and apparatus, and electronic device and storage medium
WO2024016885A1 (en) Bluetooth connection method and apparatus, electronic device, and computer readable storage medium
WO2023246055A1 (en) Bluetooth device configuration method and apparatus, electronic device, and storage medium
WO2023246056A1 (en) Device connection method and apparatus, and storage medium and chip
WO2024060750A1 (en) Bluetooth switching method and apparatus, bluetooth connection method and apparatus, and electronic device
WO2024066688A1 (en) Device connection method and apparatus, bluetooth device, and storage medium
WO2023035782A1 (en) Bluetooth connection method and apparatus, earphone device and computer-readable storage medium
CN118057899A (en) Equipment control method, device, terminal equipment and storage medium
EP4266711A1 (en) Wireless communication method and system
WO2023093223A1 (en) Bluetooth connection method and apparatus, and bluetooth device and storage medium

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 22897413

Country of ref document: EP

Kind code of ref document: A1