CN117319970A - Device connection method and device, storage medium and chip - Google Patents

Device connection method and device, storage medium and chip Download PDF

Info

Publication number
CN117319970A
CN117319970A CN202210705490.XA CN202210705490A CN117319970A CN 117319970 A CN117319970 A CN 117319970A CN 202210705490 A CN202210705490 A CN 202210705490A CN 117319970 A CN117319970 A CN 117319970A
Authority
CN
China
Prior art keywords
bluetooth
bluetooth audio
audio
target
low
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202210705490.XA
Other languages
Chinese (zh)
Inventor
包建全
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guangdong Oppo Mobile Telecommunications Corp Ltd
Original Assignee
Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Guangdong Oppo Mobile Telecommunications Corp Ltd filed Critical Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority to CN202210705490.XA priority Critical patent/CN117319970A/en
Priority to PCT/CN2022/142139 priority patent/WO2023246056A1/en
Publication of CN117319970A publication Critical patent/CN117319970A/en
Pending legal-status Critical Current

Links

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

Abstract

A device connection method and apparatus, storage medium, chip, the method is applied to the first Bluetooth audio device, including: based on a security management protocol between a first Bluetooth audio device and a first target device, acquiring identification information of the first target device; transmitting a low-power-consumption Bluetooth broadcast message corresponding to the identification information, wherein the low-power-consumption Bluetooth broadcast message is used for indicating that the first Bluetooth audio device can respond to a low-power-consumption Bluetooth audio connection request initiated by the first target device; receiving a low-power consumption Bluetooth audio connection request sent by first target equipment; and responding to the low-power Bluetooth audio connection request, and establishing the low-power Bluetooth audio connection with the first target equipment. By implementing the embodiment of the application, the possibility of mistakenly connecting the Bluetooth audio equipment with the terminal equipment can be reduced, and the accuracy and the flexibility of communication connection of the Bluetooth audio equipment are improved.

Description

Device connection method and device, storage medium and chip
Technical Field
The present disclosure relates to the field of bluetooth communication technologies, and in particular, to a device connection method and apparatus, a storage medium, and a chip.
Background
Currently, when a user connects with a terminal device (such as a smart phone, a tablet computer, an intelligent wearable device, etc.) by using a bluetooth Audio device, besides adopting a classical bluetooth connection mode, the user can also establish a connection by adopting a BLE (Bluetooth Low Energy ) mode based on a new generation bluetooth technology, and particularly can include an LE Audio (Low Energy Audio) bluetooth connection. However, in practice, it is found that, for the bluetooth Audio device and the terminal device that support LE Audio at present, a situation of misconnection often occurs in the connection process, that is, the bluetooth Audio device is prone to misconnection with a terminal device different from the user's expectation, which reduces accuracy and flexibility of communication connection of the bluetooth Audio device.
Disclosure of Invention
The embodiment of the application discloses a device connection method and device, a storage medium and a chip, which can reduce the possibility of mistakenly connecting a Bluetooth audio device with a terminal device and improve the accuracy and flexibility of communication connection of the Bluetooth audio device.
An embodiment of the present application in a first aspect discloses a device connection method, applied to a first bluetooth audio device, including:
acquiring identification information of a first target device based on a security management protocol between the first Bluetooth audio device and the first target device;
transmitting a low-power-consumption Bluetooth broadcast message corresponding to the identification information, wherein the low-power-consumption Bluetooth broadcast message is used for indicating that the first Bluetooth audio device can respond to a low-power-consumption Bluetooth audio connection request initiated by the first target device;
receiving a low-power consumption Bluetooth audio connection request sent by the first target equipment;
and responding to the low-power Bluetooth audio connection request, and establishing low-power Bluetooth audio connection with the first target equipment.
A second aspect of the embodiments of the present application discloses a device connection method, applied to a second bluetooth audio device, including:
Monitoring a Bluetooth link between a first Bluetooth audio device and a first target device to obtain monitoring data, wherein the second Bluetooth audio device and the first Bluetooth audio device belong to the same Bluetooth device set;
according to the monitoring data, the identification information of the first target equipment is obtained through calculation;
transmitting a low-power-consumption Bluetooth broadcast message corresponding to the identification information, wherein the low-power-consumption Bluetooth broadcast message is used for indicating that the second Bluetooth audio device can respond to a low-power-consumption Bluetooth audio connection request initiated by the first target device;
receiving a low-power consumption Bluetooth audio connection request sent by the first target equipment;
and responding to the low-power Bluetooth audio connection request, and establishing low-power Bluetooth audio connection with the first target equipment.
The second aspect of the embodiment of the application also discloses another device connection method, which is applied to a second bluetooth audio device, and comprises the following steps:
receiving identification information of a first target device sent by a first Bluetooth audio device, wherein the second Bluetooth audio device and the first Bluetooth audio device belong to the same Bluetooth device set;
transmitting a low-power-consumption Bluetooth broadcast message corresponding to the identification information, wherein the low-power-consumption Bluetooth broadcast message is used for indicating that the second Bluetooth audio device can respond to a low-power-consumption Bluetooth audio connection request initiated by the first target device;
Receiving a low-power consumption Bluetooth audio connection request sent by the first target equipment;
and responding to the low-power Bluetooth audio connection request, and establishing low-power Bluetooth audio connection with the first target equipment.
A third aspect of the embodiments of the present application discloses a device connection method, applied to a terminal device, where the method includes:
based on a security management protocol between a first Bluetooth audio device and the terminal device, security management information corresponding to the identification information of the terminal device is sent to the first Bluetooth audio device;
receiving a first low-power-consumption Bluetooth broadcast message sent by the first Bluetooth audio device in response to the security management information;
and under the condition that the first Bluetooth low energy broadcasting message corresponds to the identification information of the terminal equipment, responding to the first Bluetooth low energy broadcasting message, sending a Bluetooth low energy audio connection request to the first Bluetooth audio equipment, so that the first Bluetooth audio equipment responds to the Bluetooth low energy audio connection request and establishes Bluetooth low energy audio connection with the terminal equipment.
A fourth aspect of the present application discloses a device connection apparatus, applied to a first bluetooth audio device, including:
An information obtaining unit, configured to obtain identification information of a first target device based on a security management protocol between the first bluetooth audio device and the first target device;
the first broadcast sending unit is used for sending a low-power-consumption Bluetooth broadcast message corresponding to the identification information, wherein the low-power-consumption Bluetooth broadcast message is used for indicating that the first Bluetooth audio device can respond to a low-power-consumption Bluetooth audio connection request initiated by the first target device;
the first request receiving unit is used for receiving a low-power consumption Bluetooth audio connection request sent by the first target equipment;
the first connection unit is used for responding to the low-power Bluetooth audio connection request and establishing low-power Bluetooth audio connection with the first target equipment.
A fifth aspect of the embodiments of the present application discloses a device connection apparatus, applied to a second bluetooth audio device, the device connection apparatus includes:
the monitoring unit is used for monitoring a Bluetooth link between the first Bluetooth audio device and the first target device to obtain monitoring data, wherein the second Bluetooth audio device and the first Bluetooth audio device belong to the same Bluetooth device set;
The calculating unit is used for calculating and obtaining the identification information of the first target equipment according to the monitoring data;
the second broadcast sending unit is used for sending a low-power-consumption Bluetooth broadcast message corresponding to the identification information, wherein the low-power-consumption Bluetooth broadcast message is used for indicating the second Bluetooth audio device to respond to a low-power-consumption Bluetooth audio connection request initiated by the first target device;
the second request receiving unit is used for receiving a low-power consumption Bluetooth audio connection request sent by the first target device;
and the second connection unit is used for responding to the low-power Bluetooth audio connection request and establishing low-power Bluetooth audio connection with the first target equipment.
A fifth aspect of the embodiments of the present application discloses another device connection apparatus, applied to a second bluetooth audio device, the device connection apparatus includes:
the information receiving unit is used for receiving the identification information of the first target device sent by the first Bluetooth audio device, wherein the second Bluetooth audio device and the first Bluetooth audio device belong to the same Bluetooth device set;
a third broadcast transmitting unit, configured to transmit a bluetooth low energy broadcast message corresponding to the identification information, where the bluetooth low energy broadcast message is used to instruct the second bluetooth audio device to respond to a bluetooth low energy audio connection request initiated by the first target device;
A third request receiving unit, configured to receive a bluetooth low energy audio connection request sent by the first target device;
and the third connection unit is used for responding to the low-power Bluetooth audio connection request and establishing low-power Bluetooth audio connection with the first target equipment.
A sixth aspect of the embodiments of the present application discloses a device connection apparatus, applied to a terminal device, where the device connection apparatus includes:
an information sending unit, configured to send security management information corresponding to identification information of a terminal device to a first bluetooth audio device based on a security management protocol between the first bluetooth audio device and the terminal device;
a broadcast receiving unit, configured to receive a bluetooth low energy broadcast message sent by the first bluetooth audio device in response to the security management information;
and the request sending unit is used for responding to the low-power-consumption Bluetooth broadcast message and sending a low-power-consumption Bluetooth audio connection request to the first Bluetooth audio device under the condition that the low-power-consumption Bluetooth broadcast message corresponds to the identification information of the terminal device, so that the first Bluetooth audio device responds to the low-power-consumption Bluetooth audio connection request and establishes low-power-consumption Bluetooth audio connection with the terminal device.
A seventh aspect of the embodiments of the present application discloses a bluetooth audio device, including a memory and a processor, where the memory stores a computer program, where the computer program, when executed by the processor, causes the processor to implement all or part of the steps in any one of the device connection methods disclosed in the first aspect or the second aspect of the embodiments of the present application.
An eighth aspect of the present embodiment discloses a terminal device, including a memory and a processor, where the memory stores a computer program, where the computer program, when executed by the processor, causes the processor to implement all or part of the steps in any one of the device connection methods disclosed in the third aspect of the present embodiment.
A ninth aspect of the embodiments of the present application discloses a computer-readable storage medium storing a computer program, wherein the computer program, when executed by a processor, implements all or part of the steps of any one of the device connection methods as disclosed in the first aspect, the second aspect, or the third aspect of the embodiments of the present application.
A tenth aspect of the embodiments of the present application discloses a chip, comprising a processor for reading and executing a computer program stored in a memory to perform all or part of the steps of any one of the device connection methods as disclosed in the first, second or third aspects of the embodiments of the present application.
Compared with the related art, the embodiment of the application has the following beneficial effects:
the device connection method in the embodiment of the application can be applied to the first Bluetooth audio device, and the first Bluetooth audio device can acquire the identification information of the first target device based on the security management protocol between the first Bluetooth audio device and the first target device, so that the low-power consumption Bluetooth broadcast message corresponding to the identification information can be sent. The bluetooth low energy broadcast message is used for indicating that the first bluetooth audio device can respond to the bluetooth low energy audio connection initiated by the first target device. On the basis, the first Bluetooth audio device can receive a Bluetooth low energy audio connection request sent by the first target device, and establish Bluetooth low energy audio connection with the first target device in response to the Bluetooth low energy audio connection request. It can be seen that, by implementing the embodiment of the present application, the first bluetooth Audio device may send a "directionally connectable" bluetooth low energy broadcast message (i.e. an LE Audio broadcast message) to the first target device based on the identification information of the first target device acquired by the first bluetooth Audio device through the security management protocol (Security Manager Protocol, SMP), so that the first target device may establish bluetooth low energy Audio connection (i.e. LE Audio bluetooth connection) with the first bluetooth Audio device under the triggering of the targeted LE Audio broadcast message. By means of the device connection mode, it can be ensured that the LE Audio broadcast message sent by the first Bluetooth Audio device can only be responded by the first target device expected by the user, and the second target device with different identification information can not respond when receiving the LE Audio broadcast message. Therefore, the LE Audio Bluetooth connection can be established between the first Bluetooth Audio device and the first target device preferentially, the first Bluetooth Audio device and the second target device are prevented from being connected by mistake, the possibility that the Bluetooth Audio device is connected by mistake to the terminal device is reduced, and the accuracy and the flexibility of communication connection of the Bluetooth Audio device are improved effectively.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present application, the following description will briefly explain the drawings needed in the embodiments, and it is obvious that the drawings in the following description are only some embodiments of the present application, and that other drawings can be obtained according to these drawings without inventive effort for a person skilled in the art.
Fig. 1A is a schematic view of an application scenario of a device connection method disclosed in an embodiment of the present application;
fig. 1B is a schematic diagram of another application scenario of the device connection method disclosed in the embodiments of the present application;
fig. 2 is a basic frame diagram of a bluetooth protocol in the related art;
fig. 3 is a flowchart of a device connection method applied to a first bluetooth audio device according to an embodiment of the present application;
fig. 4 is a flowchart of another device connection method applied to a first bluetooth audio device according to an embodiment of the present application;
fig. 5 is a flowchart of still another device connection method applied to a first bluetooth audio device according to an embodiment of the present disclosure;
fig. 6 is a flowchart of a device connection method applied to a second bluetooth audio device according to an embodiment of the present application;
Fig. 7 is a schematic flow chart of a device connection method applied to a terminal device according to an embodiment of the present application;
FIG. 8 is a timing diagram of a device connection method disclosed in an embodiment of the present application;
FIG. 9 is a timing diagram of another device connection method disclosed in an embodiment of the present application;
FIG. 10 is a modular schematic diagram of a device connection apparatus disclosed in an embodiment of the present application;
FIG. 11 is a modular schematic view of another device connection apparatus disclosed in an embodiment of the present application;
FIG. 12 is a modular schematic view of yet another device connection apparatus disclosed in an embodiment of the present application;
FIG. 13 is a modular schematic view of a fourth device connection apparatus disclosed in an embodiment of the present application;
fig. 14 is a modular schematic diagram of a bluetooth audio device disclosed in an embodiment of the present application;
fig. 15 is a schematic diagram of modularization of a terminal device disclosed in an embodiment of the present application.
Detailed Description
The following description of the embodiments of the present application will be made clearly and completely with reference to the accompanying drawings of the embodiments of the present application, and it is apparent that the described embodiments are only some embodiments of the present application, not all embodiments. All other embodiments, which can be made by one of ordinary skill in the art without undue burden from the present disclosure, are within the scope of the present disclosure.
It should be noted that the terms "comprises" and "comprising," along with any variations thereof, in the embodiments of the present application are intended to cover non-exclusive inclusion, such that a process, method, system, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed or inherent to such process, method, article, or apparatus, but may include other steps or elements not expressly listed. In case of no conflict, the embodiments, implementations and related technical features in the present application may be combined with each other and replaced, and the explanations in the different embodiments and implementations may be mutually applicable. The term "plurality" in this application means two or more.
The embodiment of the application discloses a device connection method and device, a storage medium and a chip, which can reduce the possibility of mistakenly connecting a Bluetooth audio device with a terminal device and improve the accuracy and flexibility of communication connection of the Bluetooth audio device.
The following detailed description will be given with reference to the accompanying drawings.
Referring to fig. 1A and fig. 1B together, fig. 1A is a schematic view of an application scenario of a device connection method disclosed in an embodiment of the present application, and fig. 1B is a schematic view of another application scenario of a device connection method disclosed in an embodiment of the present application. As shown in fig. 1A, the application scenario may include a first bluetooth audio device 10 and a terminal device 20, where the first bluetooth audio device 10 may establish a bluetooth connection with the terminal device 20, such as a classical bluetooth connection, a BLE (Bluetooth Low Energy ) connection, or the like. The classical Bluetooth connection refers to a Bluetooth connection scheme implemented based on technologies (or modes) such as BR/EDR (Basic Rate/Enhanced Data Rate) and AMP (alternative MAC/phy) specified in each version of Bluetooth protocol (for example, each version of protocol before Bluetooth 4.0 and each version of protocol after Bluetooth 4.0 formulated by Bluetooth special interest (Bluetooth SIG); the above-mentioned BLE connection refers to a Bluetooth connection scheme implemented by using BLE technology (or mode) based on a new generation Bluetooth protocol (for example, bluetooth 4.0 and later versions of protocols formulated by Bluetooth SIG).
In the related art, in order to achieve Audio data transmission with larger data traffic on the basis of maintaining Low power consumption of the device, the first bluetooth Audio device 10 may also establish an LE Audio (Low Energy Audio) bluetooth connection with the terminal device 20, which may have a higher compression rate and better sound quality compared to the classical A2DP (Advanced Audio Distribution Profile, advanced Audio allocation specification) based on the new generation bluetooth core specification corespec5.2, and may achieve the effect of sound quality enhancement at Low data rates. It should be noted that, for the purpose of making the device compatible, the first bluetooth Audio device 10 may use dual-mode bluetooth technology, that is, support both the classical bluetooth connection and the LE Audio bluetooth connection, where the first bluetooth Audio device 10 may establish at least one classical bluetooth link and at least one LE Audio bluetooth link simultaneously with the terminal device 20. When the first bluetooth Audio device 10 needs to establish the LE Audio bluetooth connection with the terminal device 20, the first bluetooth Audio device 10 generally needs to send a bluetooth low energy broadcast message (i.e., an LE Audio broadcast message) in a broadcast manner, after receiving the LE Audio broadcast message, the terminal device 20 may automatically or manually send a bluetooth low energy Audio connection request to the first bluetooth Audio device 10 by a user, and then the first bluetooth Audio device 10 may respond to the bluetooth low energy Audio connection request and establish an LE Audio bluetooth connection with the terminal device 20.
By way of example, fig. 2 shows a basic framework of a bluetooth protocol suitable for supporting devices that establish classical bluetooth connections and/or LE Audio bluetooth connections. The framework may include, but is not limited to, an application layer (Profiles), a Host layer (Host), and a control layer (Controller). The application layer may include various application specifications (profiles) defined by Bluetooth SIG, for example, the above-mentioned A2DP, HFP (handles-Free Profile), HDP (Health Device Profile, health device specification), etc., that is, for each application, a respective message format and application rule may be defined, so as to be suitable for various application scenarios. The host layer defines the core protocol (protocol) in the framework and may include, but is not limited to, bluetooth basic service discovery protocol (Service Discover Protocol, SDP), logical link control and adaptation protocol (Logical Link Control and Adaptation Protocol, L2 CAP), etc. The control layer defines underlying hardware components such as a host control interface (Host Controller Interface, HCI), radio Frequency (RF), baseband (BB), and link management layer based on link management protocol (Link Management Protocol, LMP), etc.
On this basis, for the first bluetooth Audio device 10 supporting the LE Audio bluetooth connection, there may be a maximum connectable number depending on the respective performance configuration. In some embodiments, for a first bluetooth Audio device 10 supporting one-to-one connection, the maximum number of connections is 1, that is, only one terminal device 20 is allowed to maintain the LE Audio bluetooth connection at the same time, and when the first bluetooth Audio device 10 has established the LE Audio bluetooth connection with a certain terminal device 20, the LE Audio bluetooth connection with the terminal device 20 needs to be disconnected first, and then the LE Audio bluetooth connection can be established with a new terminal device 20. In other embodiments, for the first bluetooth Audio device 10 supporting one-to-many connection, the maximum connectable number is greater than 1, that is, the LE Audio bluetooth connection is allowed to be simultaneously maintained with multiple terminal devices 20, and when the number of terminal devices 20 that establish the LE Audio bluetooth connection with the first bluetooth Audio device 10 does not reach the maximum connectable number, the LE Audio bluetooth connection is allowed to be established with the new terminal device 20; when the number of the terminal devices 20 establishing LE Audio bluetooth connection with the first bluetooth Audio device 10 has reached the maximum connectable number, the LE Audio bluetooth connection with a part of the terminal devices 20 needs to be disconnected first, and then the LE Audio bluetooth connection with a new terminal device 20 can be established.
The inventor researches that the problem of misconnection of the first bluetooth audio device 10 to the terminal device exists in the related art is found: the first bluetooth Audio device 10 may broadcast an LE Audio broadcast message outwards in a state in which the first bluetooth Audio device 10 is LE Audio connectable. If the maximum connectable number of the first bluetooth Audio device 10 is N1, and at this time, N2 (N1, N2 are both positive integers, and N2> N1) terminal devices 20 receive the LE Audio broadcast message and send a bluetooth low energy Audio connection request to the first bluetooth Audio device 10, a situation may occur that the terminal device 20 that the user expects to connect cannot establish an LE Audio bluetooth connection with the first bluetooth Audio device 10.
To solve this problem, in the embodiment of the present application, the identification information of the terminal device 20 may be acquired based on the security management protocol (Security Manager Protocol, SMP) between the first bluetooth Audio device 10 and the terminal device 20, and then the first bluetooth Audio device 10 may send an LE Audio broadcast message carrying the identification information. The LE Audio broadcast message may be used to instruct the terminal device 20 to initiate an LE Audio bluetooth connection request to the first bluetooth Audio device 10, and the first bluetooth Audio device 10 may be capable of responding to the LE Audio bluetooth connection request. On this basis, the first bluetooth Audio device 10 may receive the bluetooth low energy Audio connection request sent by the terminal device 20, and establish an LE Audio bluetooth connection with the terminal device 20 in response to the bluetooth low energy Audio connection request.
By implementing the method, the first bluetooth Audio device 10 may perform the related interaction operation based on the security management protocol with the terminal device 20 on the classical bluetooth link, so as to quickly and accurately obtain the identification information of the terminal device 20, and further may send the ue Audio broadcast message of "directional connectable" to the terminal device 20 based on the obtained identification information, so that the terminal device 20 may establish the LE Audio bluetooth connection with the first bluetooth Audio device 10 under the triggering of the specific LE Audio broadcast message. Such a device connection manner may ensure that the LE Audio broadcast message sent by the first bluetooth Audio device 10 can only be responded by the terminal device 20 intended by the user, and that other devices having different identification information may not respond at all when receiving the LE Audio broadcast message. Therefore, the LE Audio bluetooth connection can be preferentially established between the first bluetooth Audio device 10 and the terminal device 20, and the first bluetooth Audio device 10 is prevented from being connected with other devices selected by a non-user by mistake, so that the possibility that the first bluetooth Audio device 10 is connected with the terminal device by mistake is reduced, and the accuracy and the flexibility of the communication connection of the first bluetooth Audio device 10 are effectively improved.
By way of example, the first bluetooth audio device 10 may include various types of bluetooth headsets, bluetooth speakers, etc., and may include, inter alia, TWS (True Wireless Stereo ) headsets. For example, the terminal device 20 may include various devices or systems with bluetooth communication functions, such as a mobile phone, a smart wearable device, a vehicle-mounted terminal, a tablet computer, a PC (Personal Computer, a personal computer), a PDA (Personal Digital Assistant, a personal digital assistant), and the like, which are not limited in the embodiments of the present application. It should be noted that, the first bluetooth audio device 10 shown in fig. 1A and fig. 1B is a bluetooth headset, and the terminal device 20 is a mobile phone, which is merely an example, and does not constitute limitation of the device types of the bluetooth audio device 10 and the terminal device 20 in the embodiment of the present application. Taking the example that the first bluetooth audio device 10 described above includes a headset device, in some embodiments, the first bluetooth audio device 10 may be a single headset, as shown in fig. 1A. In yet other embodiments, as shown in fig. 1B, the application scenario may further include a second bluetooth audio device 30, where the second bluetooth audio device 30 may belong to the same bluetooth device set as the first bluetooth audio device 10. Alternatively, one of the first bluetooth audio device 10 and the second bluetooth audio device 30 may establish a classical bluetooth connection (which may be understood as a current master earphone or master device) with the terminal device 20, so that the first bluetooth audio device 10 and the second bluetooth audio device 30 may be distinguished as master-slave ears to implement the classical bluetooth connection with the terminal device 20; meanwhile, the first bluetooth Audio device 10 and the second bluetooth Audio device 30 may also respectively establish LE Audio bluetooth connection with the terminal device 20. Alternatively, the first bluetooth Audio device 10 and the second bluetooth Audio device 30 may not distinguish between a master-slave relationship, so that the first bluetooth Audio device 10 and the second bluetooth Audio device 30 may simultaneously implement a classical bluetooth connection and an LE Audio bluetooth connection with the terminal device 20, respectively.
It will be appreciated that the above described bluetooth audio device may also comprise more than two identical groups of devices, i.e. may also comprise other bluetooth devices than the first bluetooth audio device 10 and the second bluetooth audio device 30, each of which may establish a bluetooth connection with the terminal device 20 in a similar manner as the above described first bluetooth audio device 10 and second bluetooth audio device 30 establish a bluetooth connection with the terminal device 20.
Referring to fig. 3, fig. 3 is a schematic flow chart of a device connection method disclosed in an embodiment of the present application, and the method may be applied to the first bluetooth audio device. As shown in fig. 3, the device connection method may include the steps of:
302. based on a security management protocol between the first Bluetooth audio device and the first target device, identification information of the first target device is obtained.
In this embodiment of the present application, in order to enable a first bluetooth Audio device to establish a bluetooth connection with a terminal device (i.e., a first target device specified by a user) that the user expects to connect to, the method particularly includes establishing an LE Audio bluetooth connection, where the first bluetooth Audio device may first acquire identification information of the first target device, and then may send, in a subsequent step, according to the identification information, an LE Audio broadcast message for "directional connectable" of the first target device, so as to specify that the first target device may establish an LE Audio bluetooth connection with the first bluetooth Audio device, and meanwhile avoid erroneous responses of other devices in a connectable state, thereby being beneficial to improving accuracy of communication connection performed by the first bluetooth Audio device.
The identification information of the first target device may include device address identification information (for example, a device bluetooth address, including a classical bluetooth address, a BLE address, etc.), device identity identification information, device name identification information, device model identification information, etc. of the first target device. According to the identification information, the first Bluetooth audio device can confirm that the only corresponding terminal device is the first target device, so that Bluetooth connection can be established with the first target device in a targeted manner based on the identification information.
In this embodiment of the present application, the first bluetooth Audio device may use a dual-mode bluetooth technology, that is, the first bluetooth Audio device may support both a classical bluetooth connection and an LE Audio bluetooth connection. On the basis, the first Bluetooth Audio device can firstly establish a classical Bluetooth connection with the first target device, and under the condition that the classical Bluetooth connection is established, the identification information of the first target device is acquired through configuring a security management protocol between the first Bluetooth Audio device and the first target device on the classical Bluetooth link and executing interaction operation (namely SMP operation) related to the security management protocol, so that the identification information is applied to the LE Audio Bluetooth connection between the first Bluetooth Audio device and the first target device. The security management protocol may be used to manage bluetooth device interaction specified in a protocol such as pairing, authentication, encryption, etc. between the first bluetooth audio device and the first target device, including implementing transfer of specified private information, etc. to assist in implementing directional connection between the first bluetooth audio device and the first target device.
In some embodiments, the first bluetooth Audio device may only support LE Audio bluetooth connection (i.e. LE single mode bluetooth), and the device connection method disclosed in the embodiments of the present application may also be implemented. For example, the first bluetooth audio device may establish an LE bluetooth connection with the first target device, configure a security management protocol between the first bluetooth audio device and the first target device on an LE bluetooth link, and perform an interaction operation (i.e., SMP operation) related to the security management protocol to obtain identification information of the first target device. On the basis, the first Bluetooth Audio device can further establish LE Audio Bluetooth connection between the first Bluetooth Audio device and the first target device by using the identification information.
The SMP operation described above may be performed, for example, on a bluetooth link (including a classical bluetooth link or an LE bluetooth link) between the first bluetooth audio device and the first target device. Taking the process of establishing a classical bluetooth connection between a first bluetooth audio device and a first target device as an example, a BR/EDR channel may be configured between the first bluetooth audio device and the first target device, which means that the first bluetooth audio device and the first target device may establish a bluetooth physical link of a type such as ACL (Asynchronous Connection Less, asynchronous no link) or SCO (Synchronous Connection Oriented, synchronous directional link) based on BR/EDR technology, or may also mean that both establish an upper layer protocol connection, for example, A2DP (Advanced Audio Distribution Profile, advanced audio transmission specification), HFP (handles-Free-Profile) or the like, or an intermediate protocol SPP (Serial Port Profile, serial port protocol) or the like, and specifically may refer to the specification of a relevant version of bluetooth protocol. Preferably, the SMP operation may be implemented based on an ACL link between the first bluetooth audio device and the first target device, and related interactive information transfer is completed in a process of establishing a classical bluetooth connection between the first bluetooth audio device and the first target device.
Based on the bluetooth link (for example, ACL link, etc.), the first bluetooth audio device may receive security management information sent by the first target device through SMP operation, and further may determine identification information of the first target device according to the security management information. In some embodiments, the security management information may only include an IRK (Identity Resolving Key, bluetooth device address resolution key) corresponding to the first target device, so that after receiving the IRK, the first bluetooth audio device may directly calculate the IRK to obtain the identification information of the first target device, and may particularly include a BLE address for the first target device, and so on.
In other embodiments, the security management information may also include an encrypted data packet carrying the IRK, for example, a data packet obtained by encrypting the IRK through an STK/LTK (Short Term Key/Long Term Key) generated in an SMP operation. After receiving the security management information, the first bluetooth audio device can analyze the security management information to obtain the IRK of the corresponding first target device, and further can calculate the IRK to obtain the identification information of the first target device, and particularly can include a BLE address and the like for the first target device.
For example, the SMP operation may include four main steps of exchanging information (S1), generating an encryption key (S2), encrypting a connection (S3), and distributing an IRK (S4). The step of exchanging information (S1) is mainly used for exchanging related Pairing parameters or characteristic information (Pairing Feature) between the first bluetooth audio device and the first target device, so that based on different Pairing situations, corresponding different processes can be adopted to generate the STK/LTK. On a link encrypted by using the STK/LTK, the first target device can encrypt and transmit the corresponding IRK to the first Bluetooth audio device, so that the first Bluetooth audio device can safely acquire the IRK of the first target device for calculating the identification information (such as the Bluetooth address of the device) of the first target device, and a subsequent directional connection process is realized.
304. And sending a low-power-consumption Bluetooth broadcast message corresponding to the identification information, wherein the low-power-consumption Bluetooth broadcast message is used for indicating that the first Bluetooth audio device can respond to the low-power-consumption Bluetooth audio connection request initiated by the first target device.
In this embodiment of the present application, after obtaining the identification information of the first target device, the first bluetooth Audio device may generate and send an LE Audio broadcast message corresponding to the identification information based on the identification information, so that after receiving the LE Audio broadcast message, the first target device may establish LE Audio bluetooth connection with the first bluetooth Audio device under the condition that it is confirmed that the LE Audio broadcast message corresponds to the identification information of the first target device.
For example, if the above identification information includes a device bluetooth address of the first target device, and may include a BLE address of the first target device in particular, the first bluetooth audio device may generate a directionally connectable broadcast message (adv_direct_ind) for the first target device based on the identification information. The broadcast message may be a "directional connectable" LE Audio broadcast message. It can be appreciated that, for the identification information of different terminal devices, the LE Audio broadcast messages generated and sent by the first bluetooth Audio device may also be different so as to point to the corresponding terminal device.
On the basis, the first Bluetooth Audio device can send the LE Audio broadcast message in a broadcast mode, so that the terminal device receiving the LE Audio broadcast message can be indicated to judge the terminal device, and if the terminal device judges that the terminal device is the first target device designated by the LE Audio broadcast message, the first target device can send a corresponding low-power Bluetooth Audio connection request to the first Bluetooth Audio device, so that the first Bluetooth Audio device and the first target device can establish LE Audio Bluetooth connection.
306. And receiving a low-power Bluetooth audio connection request sent by the first target equipment.
In this embodiment of the present application, since the LE Audio broadcast message sent by the first bluetooth Audio device corresponds to the identification information of the first target device, after the first target device receives the LE Audio broadcast message, it may be determined that the identification information corresponding to the LE Audio broadcast message matches with the identification information of the first target device itself, and further, the low-power bluetooth Audio connection request (that is, initiate low-power bluetooth Audio connection or so-called initiate low-power bluetooth Audio connection request) may be sent to the first bluetooth Audio device in response to the LE Audio broadcast message. On the basis, the first Bluetooth Audio device can receive the low-power Bluetooth Audio connection request, the low-power Bluetooth Audio connection request can refer to a request instruction data packet, and accordingly, LE Audio Bluetooth connection is established with the first target device in a targeted manner.
It should be noted that after receiving the LE Audio broadcast message, the second target device having different identification information may determine that the identification information corresponding to the LE Audio broadcast message is not matched with the identification information of the second target device, so that the second target device may not respond to the LE Audio broadcast message (e.g., directly discard a broadcast packet corresponding to the LE Audio broadcast message, etc.), thereby effectively avoiding the erroneous connection between the first bluetooth Audio device and the second target device.
308. And responding to the low-power Bluetooth audio connection request, and establishing the low-power Bluetooth audio connection with the first target equipment.
In this embodiment of the present application, after receiving the bluetooth low energy Audio connection request sent by the first target device, the first bluetooth Audio device may respond to the bluetooth low energy Audio connection request to pertinently establish an LE Audio bluetooth connection with the first target device, which is not described herein.
It can be seen that, by implementing the device connection method described in the foregoing embodiment, the first bluetooth Audio device may perform SMP operation with the first target device on the classical bluetooth link, so as to quickly and accurately obtain the identification information of the first target device, and further may send an LE Audio broadcast message that is "directionally connectable" to the first target device based on the identification information of the first target device, so that the first target device may establish LE Audio bluetooth connection with the first bluetooth Audio device under the triggering of the targeted LE Audio broadcast message. By means of the device connection mode, it can be ensured that the LE Audio broadcast message sent by the first Bluetooth Audio device can only be responded by the first target device expected by the user, and the second target device with different identification information can not respond when receiving the LE Audio broadcast message. Therefore, the LE Audio Bluetooth connection can be established between the first Bluetooth Audio device and the first target device preferentially, the first Bluetooth Audio device and the second target device are prevented from being connected by mistake, the possibility that the first Bluetooth Audio device is connected by mistake to the terminal device is reduced, and the accuracy and the flexibility of communication connection of the first Bluetooth Audio device are improved effectively.
Referring to fig. 4, fig. 4 is a flowchart of another device connection method disclosed in an embodiment of the present application, and the method may be applied to the first bluetooth audio device. As shown in fig. 4, the device connection method may include the steps of:
402. and receiving the security management information sent by the first target device based on a security management protocol between the first Bluetooth audio device and the first target device.
In this embodiment of the present application, the first bluetooth audio device obtains the identification information of the first target device based on a security management protocol between the first bluetooth audio device and the first target device, which may specifically be obtained by processing the security management information sent by the first target device. For example, the security management information may include only the bluetooth device address resolution key IRK corresponding to the first target device, or may include an encrypted data packet carrying the IRK, or the like.
In some embodiments, a SMP operation based on a security management protocol may be performed between the first bluetooth audio device and the first target device, so that the first bluetooth audio device may obtain security management information sent by the first target device through the SMP operation. For example, in the case where the first bluetooth audio device establishes a classical bluetooth connection with the first target device, a security management protocol between the first bluetooth audio device and the first target device may be configured on a classical bluetooth link therebetween, so that both may perform SMP operations based on the classical bluetooth link, and mutually communicate respective IRKs to each other. Taking the example that the security management information includes the IRK of the first target device, the first bluetooth audio device may receive the security management information sent by the first target device based on the above security management protocol, and may further directly obtain the security management information, or parse the security management information to obtain the IRK corresponding to the first target device, so as to calculate, in a subsequent step, the identification information for the first target device based on the relevant parsing calculation rule for the IRK by using the IRK.
404. And calculating the security management information according to the calculation rule corresponding to the security management information so as to generate the device Bluetooth address of the first target device.
In this embodiment of the present application, the identification information of the first target device may include a device bluetooth address of the first target device. Illustratively, the bluetooth address of the device may include a BLE address of RPA (Resolvable Private Address ) type, and the first bluetooth Audio device may generate a "directionally connectable" LE Audio broadcast message based on the BLE address to instruct the first target device that receives the LE Audio broadcast message to establish a corresponding LE Audio bluetooth connection with the first bluetooth Audio device after confirming that the first target device points to itself.
In some embodiments, the bluetooth device address may include two parts, where one part may include a random number prand for performing a hash operation, and the other part may be obtained by performing a hash operation with the IRK by using the random number prand. For example, the bluetooth device address may include 48bits, where the high 24bits may include a random number prand of 22bits and a specified bit of 2bits (e.g. 10, 01, etc. may be used for identification, verification, etc.), and the low 24bits may be obtained by performing hash operation by the first bluetooth audio device according to the random number prand of 22bits and the IRK corresponding to the first target device. On the basis, the first Bluetooth Audio device can generate an LE Audio broadcast message containing the Bluetooth address of the device in a subsequent step, and send the LE Audio broadcast message in a broadcast mode.
406. And generating a low-power consumption Bluetooth broadcast message carrying the Bluetooth address of the equipment according to the Bluetooth address of the equipment.
In this embodiment of the present application, the first bluetooth Audio device may further generate, according to the generated device bluetooth address for the first target device, an LE Audio broadcast message carrying the device bluetooth address. Optionally, the LE Audio broadcast message may further include identification information of the first bluetooth Audio device itself, for example, device address identification information, device identity identification information, device name identification information, device model identification information, etc., so that after confirming that the terminal device receiving the LE Audio broadcast message is itself the first target device specified by the LE Audio broadcast message, the terminal device may initiate a bluetooth low energy Audio connection to the first bluetooth Audio device according to the identification information.
In some embodiments, after receiving the LE Audio broadcast message, the first target device may acquire a bluetooth address of a device carried by the first target device and further extract a random number prand therein. On the basis, the first target device may perform hash operation on the random number prand and its IRK, and if the verification bluetooth address obtained from the hash operation matches with the device bluetooth address carried by the LE Audio broadcast message, it may be confirmed that the LE Audio broadcast message points to the first target device.
In other embodiments, after receiving the LE Audio broadcast message, the second target device may also extract a random number prand in the device bluetooth address carried by the second target device, and perform hash operation on the random number prand and the IRK of the second target device, and if the verification bluetooth address obtained by this method does not match with the device bluetooth address carried by the LE Audio broadcast message, it may be determined that the LE Audio broadcast message is not directed to the second target device. On the basis, the matched first target device can initiate low-power consumption Bluetooth Audio connection to the first Bluetooth Audio device, and the unmatched second target device can ignore the LE Audio broadcast message, so that the directional connection of the first Bluetooth Audio device can be realized.
408. And transmitting a low-power-consumption Bluetooth broadcast message carrying the Bluetooth address of the device.
Step 408 is similar to step 304 described above. It should be noted that, after receiving the LE Audio broadcast message carrying the bluetooth address of the device, if the terminal device determines that the terminal device itself is the first target device specified by the LE Audio broadcast message, the first target device may send a corresponding bluetooth low energy Audio connection request to the first bluetooth Audio device, so that the first bluetooth Audio device and the first target device establish an LE Audio bluetooth connection.
410. And receiving a low-power Bluetooth audio connection request sent by the first target equipment.
412. And responding to the low-power Bluetooth audio connection request, and establishing the low-power Bluetooth audio connection with the first target equipment.
Step 410 and step 412 are similar to step 306 and step 308 described above, and are not repeated here.
It can be seen that, by implementing the device connection method described in the foregoing embodiment, the first bluetooth Audio device may send a "directionally connectable" LE Audio broadcast message to the first target device based on the identification information of the first target device that is quickly and accurately obtained by the first bluetooth Audio device through SMP operation, so that the first target device may establish LE Audio bluetooth connection with the first bluetooth Audio device under the triggering of the targeted LE Audio broadcast message. By means of the device connection mode, the LE Audio broadcast message sent by the first Bluetooth Audio device can be ensured to be responded by the first target device expected by the user, so that the first Bluetooth Audio device and the second target device can be prevented from being connected by mistake, the possibility that the first Bluetooth Audio device is connected with the terminal device by mistake is reduced, and the accuracy and the flexibility of communication connection of the first Bluetooth Audio device are effectively improved. In addition, the first Bluetooth Audio device calculates the BLE address of the RPA type by using the IRK of the first target device, so that the corresponding LE Audio broadcast message can be ensured to be correctly analyzed and matched by the first target device, the characteristic of directional connectable of the LE Audio broadcast message can be endowed, and the accuracy and the reliability of the directional connection terminal device of the first Bluetooth Audio device can be improved.
Referring to fig. 5, fig. 5 is a schematic flow chart of another device connection method disclosed in the embodiment of the present application, where the method may be applied to the first bluetooth audio device described above, and the first bluetooth audio device may establish communication connection with a second bluetooth audio device, where the second bluetooth audio device and the first bluetooth audio device may belong to the same bluetooth device set. As shown in fig. 5, the device connection method may include the steps of:
502. and receiving the security management information sent by the first target device based on a security management protocol between the first Bluetooth audio device and the first target device.
Step 502 is similar to step 402 described above. In this embodiment of the application, the first bluetooth Audio device and the second bluetooth Audio device that have established classical bluetooth connection can establish LE Audio bluetooth connection with the first target device respectively to promote bluetooth Audio device and carry out communication connection's flexibility, also be favorable to promoting each bluetooth Audio device simultaneously and transmit Audio data's reliability based on BLE technique.
It should be noted that, based on the body difference of the classical bluetooth connection request (for example, the first target device, the first bluetooth audio device or the second bluetooth audio device may issue a page packet in different scenarios), or the body difference of the classical bluetooth connection request is responded (for example, the first target device, the second bluetooth audio device or the second bluetooth audio device may start a page scan mode in different scenarios to receive the page packet), when the classical bluetooth connection needs to be established with the first target device, the classical bluetooth connection may be established with the first target device by the first bluetooth audio device, or the classical bluetooth connection may be established with the first target device by the same group of devices of the first bluetooth audio device (i.e., the second bluetooth audio device), or the first bluetooth audio device and the second bluetooth audio device may simultaneously establish the classical bluetooth connection with the first target device. On the basis, no matter how the first Bluetooth Audio device and/or the second Bluetooth Audio device are connected with the first target device in a classical Bluetooth manner, the first Bluetooth Audio device and the second Bluetooth Audio device can synchronize the security management information sent by the first target device in the subsequent steps, or directly synchronize the identification information of the first target device determined by the security management information, and start respective LE Audio broadcasting so as to respectively send LE Audio broadcasting messages corresponding to the identification information, and further respectively establish LE Audio Bluetooth connection with the first target device.
In some embodiments, the first bluetooth audio device and the second bluetooth audio device may have a master-slave relationship, and take the first bluetooth audio device and the second bluetooth audio device as earphone devices as examples, where the first bluetooth audio device may be a master earphone, and the second bluetooth audio device may be a slave earphone, where a classical bluetooth connection may be established between the first bluetooth audio device as the master earphone and the first target device, and based on a security management protocol between the first bluetooth audio device and the first target device, security management information sent by the first target device is received. On the basis, the second Bluetooth audio device can synchronously acquire the safety management information or synchronously acquire the identification information of the first target device determined by the safety management information through classical Bluetooth connection between the second Bluetooth audio device and the first Bluetooth audio device.
504. And determining the identification information of the first target equipment according to the safety management information, and sending a low-power consumption Bluetooth broadcast message corresponding to the identification information.
Step 504 is similar to step 404 and step 406, where the identification information of the first target device may include a device bluetooth address of the first target device, that is, the first bluetooth Audio device may send an LE Audio broadcast message carrying the device bluetooth address, where the LE Audio broadcast message may be used to instruct the first target device to initiate a bluetooth low energy Audio connection to the first bluetooth Audio device.
506. And transmitting the identification information of the first target device to the second Bluetooth audio device so that the second Bluetooth audio device transmits a low-power Bluetooth broadcast message corresponding to the identification information.
In this embodiment of the present application, after determining the identification information of the first target device according to the security management information, the first bluetooth audio device may actively send the identification information to the second bluetooth audio device, so as to achieve information synchronization between the first bluetooth audio device and the second bluetooth audio device. The identification information may include a device bluetooth address of the first target device, so that the second bluetooth Audio device may also send an LE Audio broadcast message carrying the device bluetooth address, where the LE Audio broadcast message may be used to instruct the first target device to initiate a bluetooth low energy Audio connection to the second bluetooth Audio device.
As an optional implementation manner, the second bluetooth audio device may also acquire the identification information of the first target device by using the listening data in a listening manner, so as to achieve information synchronization between the first bluetooth audio device and the second bluetooth audio device. It should be noted that, because the process of calculating the security management information sent by the first target device to obtain the identification information of the first target device is completed in the first bluetooth audio device, the second bluetooth audio device does not directly obtain the identification information through monitoring, but obtains the security management information (i.e. the monitoring data may include the security management information), and the second bluetooth audio device performs similar calculation on the security management information to obtain the identification information of the first target device. Illustratively, the first bluetooth audio device may receive, through a classical bluetooth link between the first bluetooth audio device and the first target device, security management information sent by the first target device, where the security management information may include an IRK of the first target device, so that the first bluetooth audio device may calculate the IRK using a specified random number prand_1 to obtain a BLE address for the first target device. Meanwhile, the second bluetooth audio device may monitor the classical bluetooth link between the first bluetooth audio device and the first target device, and obtain, according to the monitored data, security management information sent by the first target device, and further calculate an IRK included in the security management information by using another specified random number prand_2 (which may be the same as prand_1 or different from prand_1), so as to obtain a BLE address for the first target device. On the basis, the first Bluetooth Audio device and the second Bluetooth Audio device can both send an LE Audio broadcast message which is directed at the first target device and can be connected in a directional mode, so that the first target device is indicated to respectively establish LE Audio Bluetooth connection with the first Bluetooth Audio device and the second Bluetooth Audio device.
508. And receiving a low-power Bluetooth audio connection request sent by the first target equipment.
510. And responding to the low-power Bluetooth audio connection request, and establishing the low-power Bluetooth audio connection with the first target equipment.
Wherein step 508 and step 510 are similar to step 306 and step 308 described above. It should be noted that, in the embodiment of the present application, the second bluetooth Audio device may also perform the above step 508 and step 510 simultaneously, except for the first bluetooth Audio device, that is, the first bluetooth Audio device and the second bluetooth Audio device may respectively establish LE Audio bluetooth connection with the first target device.
It can be seen that, by implementing the device connection method described in the foregoing embodiment, the bluetooth Audio device may send a "directionally connectable" LE Audio broadcast message to the first target device based on the identification information of the first target device that is quickly and accurately obtained by the bluetooth Audio device through SMP operation, so that the first target device may establish LE Audio bluetooth connection with the bluetooth Audio device under the triggering of the targeted LE Audio broadcast message. By means of the device connection mode, the LE Audio broadcast message sent by the Bluetooth Audio device can be ensured to be responded by the first target device expected by the user, so that the Bluetooth Audio device and the second target device can be prevented from being connected by mistake, the possibility that the Bluetooth Audio device is connected with the terminal device by mistake is reduced, and the accuracy and the flexibility of communication connection of the Bluetooth Audio device are effectively improved. In addition, through the identification information of synchronous first target equipment between first bluetooth Audio equipment and second bluetooth Audio equipment, can make this first bluetooth Audio equipment and second bluetooth Audio equipment establish LE Audio bluetooth with first target equipment respectively and be connected to promote bluetooth Audio equipment and carry out communication connection's flexibility, also be favorable to promoting each bluetooth Audio equipment simultaneously and transmit Audio data's reliability based on BLE technique.
Referring to fig. 6, fig. 6 is a flowchart of another device connection method disclosed in an embodiment of the present application, and the method may be applied to the second bluetooth audio device. As shown in fig. 6, the device connection method may include the steps of:
602. and monitoring a Bluetooth link between the first Bluetooth audio device and the first target device to obtain monitoring data, wherein the second Bluetooth audio device and the first Bluetooth audio device belong to the same Bluetooth device set.
604. And according to the monitoring data, calculating to obtain the identification information of the first target equipment.
The implementation process of step 602 and step 604 for obtaining the identification information of the first target device by using the listening data in the listening manner of the second bluetooth audio device in the above embodiment is similar, and will not be described herein. It should be noted that, when the above-mentioned listening data includes security management information of the first target device, and the security management information includes a bluetooth device address resolution key IRK, and the above-mentioned identification information includes a device bluetooth address, the second bluetooth audio device may calculate the IRK according to the relevant resolution calculation rule of the above-mentioned IRK, so as to generate the device bluetooth address of the first target device.
606. And sending a low-power-consumption Bluetooth broadcast message corresponding to the identification information, wherein the low-power-consumption Bluetooth broadcast message is used for indicating that the second Bluetooth audio device can respond to the low-power-consumption Bluetooth audio connection request initiated by the first target device.
608. And receiving a low-power Bluetooth audio connection request sent by the first target equipment.
610. And responding to the low-power Bluetooth audio connection request, and establishing the low-power Bluetooth audio connection with the first target equipment.
Step 606, step 608, and step 610 are similar to steps 304, step 306, and step 308, respectively, described above. The second bluetooth Audio device may send a "directionally connectable" LE Audio broadcast message to the first target device in the same manner as the first bluetooth Audio device to purposefully establish a LE Audio bluetooth connection with the first target device.
As an optional implementation manner, the first bluetooth audio device may send the identification information of the first target device directly to the second bluetooth audio device after the first bluetooth audio device successfully obtains the identification information of the first target device according to the security management information of the first target device. On this basis, the second bluetooth audio device may directly acquire the identification information of the first target device through a receiving manner, that is, the second bluetooth audio device may receive the identification information of the first target device sent by the first bluetooth audio device, and then execute the above steps 606, 608 and 610, and establish a bluetooth low energy audio connection with the first target device.
Referring to fig. 7, fig. 7 is a schematic flow chart of a device connection method disclosed in the embodiment of the present application, and the method may be applied to the terminal device (i.e., the first target device in the embodiment). As shown in fig. 7, the device connection method may include the steps of:
702. and based on a security management protocol between the first Bluetooth audio device and the terminal device, sending security management information corresponding to the identification information of the terminal device to the first Bluetooth audio device.
In this embodiment of the present application, in order to enable a bluetooth Audio device (e.g., the first bluetooth Audio device and/or the second bluetooth Audio device) to specifically establish a bluetooth connection with the terminal device, including in particular establishing an LE Audio bluetooth connection, an LE Audio broadcast message of "directionally connectable" needs to be sent by the first bluetooth Audio device to instruct the terminal device to send a corresponding bluetooth low energy Audio connection request to the first bluetooth Audio device. The terminal device may send security management information corresponding to the identification information to the first bluetooth Audio device, so that the first bluetooth Audio device may obtain the identification information of the terminal device in response to the security management information, and send an LE Audio broadcast message for the terminal device based on the identification information.
In some embodiments, the terminal device may configure a security management protocol between the first bluetooth audio device and the terminal device through a bluetooth link (including a classical bluetooth link or an LE bluetooth link) between the terminal device and the first bluetooth audio device, so that the terminal device and the first bluetooth audio device may perform an SMP operation based on the security management protocol on the bluetooth link between the terminal device and the first bluetooth audio device, and thus the security management information may be transmitted using the SMP operation. The security management protocol may be used to manage bluetooth device interaction specified in the protocols such as pairing, authentication, encryption, etc. between the bluetooth audio device and the terminal device, including implementing transfer of specified private information, etc. to assist in implementing directional connection between the bluetooth audio device and the terminal device.
Based on the security management protocol, the terminal device can send security management information corresponding to the identification information of the terminal device to the first Bluetooth audio device through SMP operation. For example, the identification information may include a device bluetooth address of the terminal device, where the device bluetooth address may be determined by a bluetooth device address resolution key IRK corresponding to the terminal device, and the security management information may include only the IRK corresponding to the terminal device, or may include an encrypted data packet carrying the IRK, and so on. After receiving the security management information, the first bluetooth Audio device can extract IRK corresponding to the terminal device from the security management information, further calculate a device bluetooth address for the terminal device according to a calculation rule corresponding to the security management information, and further generate and send an LE Audio broadcast message carrying the device bluetooth address.
704. And receiving a first Bluetooth low energy broadcast message sent by the first Bluetooth audio device in response to the safety management information.
In this embodiment of the present application, after the terminal device sends the security management information to the first bluetooth Audio device, the first bluetooth Audio device may obtain, according to the security management information, identification information of the terminal device (for example, a bluetooth address of the device of the terminal device, etc.), and may further send an LE Audio broadcast message corresponding to the identification information. On the basis, the terminal equipment can receive the LE Audio broadcast message, judge the LE Audio broadcast message in the subsequent step, and initiate LE Audio Bluetooth connection to the first Bluetooth Audio equipment according to the LE Audio broadcast message if the LE Audio broadcast message is confirmed to point to the terminal equipment.
706. And under the condition that the first low-power-consumption Bluetooth broadcast message corresponds to the identification information of the terminal equipment, transmitting a low-power-consumption Bluetooth audio connection request to the first Bluetooth audio equipment in response to the first low-power-consumption Bluetooth broadcast message, so that the first Bluetooth audio equipment establishes low-power-consumption Bluetooth audio connection with the terminal equipment in response to the low-power-consumption Bluetooth audio connection request.
In this embodiment of the present application, when receiving a first LE Audio broadcast message of "directional connectable" sent by a first bluetooth Audio device, a terminal device may determine whether the first LE Audio broadcast message points to the terminal device itself, so as to determine whether to establish LE Audio bluetooth connection with the first bluetooth Audio device.
In an exemplary embodiment, when the identification information includes a bluetooth address of the device, the terminal device may calculate, according to a calculation rule corresponding to the security management information, the security management information sent by the terminal device and the target bluetooth address, to obtain the verified bluetooth address. Specifically, for example, the terminal device may perform hash operation on the IRK of the terminal device included in the security management information and the random number prand extracted from the target bluetooth address to obtain a corresponding check bluetooth address. The terminal device may compare the target bluetooth address with the check bluetooth address, and if the target bluetooth address matches with the check bluetooth address, determine that the first LE Audio broadcast message corresponds to the device bluetooth address of the terminal device, that is, may confirm that the first LE Audio broadcast message points to the terminal device. On the basis, the terminal equipment can respond to the first LE Audio broadcast message and send a low-power Bluetooth Audio connection request to the first Bluetooth Audio equipment so as to establish LE Audio Bluetooth connection with the first Bluetooth Audio equipment.
As an optional implementation manner, the second bluetooth Audio device belonging to the same bluetooth device set as the first bluetooth Audio device may also establish an LE Audio bluetooth connection with the terminal device. In the process that the terminal equipment sends the safety management information corresponding to the identification information of the terminal equipment to the first Bluetooth audio equipment, the first Bluetooth audio equipment can perform information synchronization with the second Bluetooth audio equipment before and after determining the identification information of the terminal equipment according to the safety management information, so that the second Bluetooth audio equipment can acquire the identification information of the terminal equipment.
In some embodiments, after determining the identification information, the first bluetooth Audio device may actively send the identification information to the second bluetooth Audio device, so that the second bluetooth Audio device may also similarly send a second LE Audio broadcast message corresponding to the identification information.
In other embodiments, the second bluetooth Audio device may monitor a bluetooth link between the first bluetooth Audio device and the terminal device, and independently determine, according to the security management information obtained by monitoring, identification information of the terminal device, and then may send a second LE Audio broadcast message corresponding to the identification information.
On the basis, the terminal device can respectively determine whether the LE Audio broadcast messages sent by the first Bluetooth Audio device and the second Bluetooth Audio device correspond to the identification information of the terminal device, and send corresponding low-power Bluetooth Audio connection requests to the sending end (namely the first Bluetooth Audio device and/or the second Bluetooth Audio device) for confirming the corresponding LE Audio broadcast messages, so that the first Bluetooth Audio device and/or the second Bluetooth Audio device can respond to the low-power Bluetooth Audio connection requests to establish LE Audio Bluetooth connection with the terminal device.
In some embodiments, after receiving the second LE Audio broadcast message sent by the second bluetooth Audio device, the terminal device may also preferentially determine whether the second bluetooth Audio device and the first bluetooth Audio device belong to the same bluetooth device set, and allow to establish LE Audio bluetooth connection with the second bluetooth Audio device only if the second bluetooth Audio device and the first bluetooth Audio device belong to the same bluetooth device set, so as to avoid erroneous connection with other bluetooth Audio devices belonging to different sets.
The terminal device may determine whether the corresponding second bluetooth Audio device and the first bluetooth Audio device belong to the same bluetooth device set according to the second LE Audio broadcast message and the first LE Audio broadcast message. For example, after receiving the first LE Audio broadcast message, the terminal device may acquire a device identifier (such as IRK, a device bluetooth address, a product identifier, etc.) of the corresponding first bluetooth Audio device, and add the device identifier to the candidate list or the whitelist. Then, after receiving the second LE Audio broadcast message, the terminal device may acquire the device identifier of the same type for the second bluetooth Audio device, and compare the device identifier with the device identifier in the candidate list or the white list. If the device identification of the first bluetooth Audio device is matched with the device identification of the second bluetooth Audio device through comparison, the terminal device can determine that the first bluetooth Audio device and the second bluetooth Audio device belong to the same bluetooth device set, and further can send a low-power-consumption bluetooth Audio connection request to the second bluetooth Audio device under the condition that the second LE Audio broadcast message is determined to correspond to the identification information of the terminal device, so that the second bluetooth Audio device responds to the low-power-consumption bluetooth Audio connection request and establishes LE Audio bluetooth connection with the terminal device.
It can be seen that, by implementing the device connection method described in the above embodiment, the terminal device may perform SMP operation with the bluetooth Audio device, so that the bluetooth Audio device may quickly and accurately obtain the identification information of the terminal device, and send a "directionally connectable" LE Audio broadcast message to the terminal device, so that the terminal device may establish LE Audio bluetooth connection with the bluetooth Audio device under the triggering of the targeted LE Audio broadcast message. By means of the equipment connection mode, the LE Audio broadcast message sent by the Bluetooth Audio equipment can be ensured to be responded by the terminal equipment expected by the user, so that the Bluetooth Audio equipment can be prevented from being connected with other equipment in a connectable state by mistake, the possibility that the Bluetooth Audio equipment is connected with the terminal equipment by mistake is reduced, and the accuracy and the flexibility of communication connection of the Bluetooth Audio equipment are effectively improved. In addition, through sending the IRK of the terminal equipment to the Bluetooth Audio equipment, the Bluetooth Audio equipment can calculate the BLE address of the corresponding RPA type, so that the corresponding LE Audio broadcast message can be ensured to be correctly analyzed and matched by the terminal equipment, and the accuracy and the reliability of the directional connection of the Bluetooth Audio equipment to the terminal equipment are improved. In addition, through the identification information of synchronous this terminal equipment between first bluetooth Audio equipment and second bluetooth Audio equipment, terminal equipment can establish LE Audio bluetooth with this first bluetooth Audio equipment and second bluetooth Audio equipment respectively and be connected to promote terminal equipment and bluetooth Audio equipment and carry out communication connection's flexibility, also be favorable to promoting each earphone simultaneously and based on the reliability of BLE technique transmission Audio data.
Referring to fig. 8, fig. 8 is a timing chart of a device connection method according to an embodiment of the present application, and the method may be applied to a bluetooth communication system including the first bluetooth audio device and a terminal device (i.e., a first target device). As shown in fig. 8, the device connection method may include the steps of:
802. under the condition that the first Bluetooth audio device and the first target device establish classical Bluetooth connection, the first target device sends security management information corresponding to identification information of the first target device to the first Bluetooth audio device based on a security management protocol between the first Bluetooth audio device and the first target device.
For example, the above-mentioned security management information may contain the IRK of the first target device, i.e. the first target device may transmit its IRK to the first bluetooth audio device by SMP operation based on the security management protocol.
804. The first Bluetooth audio device receives the security management information sent by the first target device based on a security management protocol between the first Bluetooth audio device and the first target device, and determines the identification information of the first target device according to the security management information.
806. The first Bluetooth audio device sends a first Bluetooth low energy broadcast message corresponding to the identification information.
For example, the identification information may include a device bluetooth address, and the first bluetooth Audio device may calculate the security management information (i.e. calculate an IRK of the first target device) according to a calculation rule corresponding to the security management information, so as to generate the device bluetooth address of the first target device, and may further generate and send, according to the device bluetooth address, an LE Audio broadcast message carrying the device bluetooth address.
808. The first target device receives the first bluetooth low energy broadcast message, and sends a bluetooth low energy audio connection request to the first bluetooth audio device in response to the first bluetooth low energy broadcast message if the first bluetooth low energy broadcast message is determined to correspond to the identification information of the first target device.
810. The first Bluetooth audio device receives the Bluetooth low energy audio connection request sent by the first target device, and establishes Bluetooth low energy audio connection with the first target device in response to the Bluetooth low energy audio connection request.
Optionally, the first bluetooth audio device may also establish a bluetooth connection with another device (which may be denoted as a second target device) before establishing a bluetooth connection with the first target device. Illustratively, prior to performing step 802 above, the device connection method may further include the steps of:
801A, the first bluetooth audio device disconnects bluetooth from a second target device, the identification information of which is different from the identification information of the first target device.
The bluetooth connection may include a classical bluetooth connection and/or an LE Audio bluetooth connection, which are not specifically limited in the embodiments of the present application.
801B, the first bluetooth audio device enters a pairing state.
The pairing state refers to a state that the first bluetooth Audio device is discoverable and connectable, and in the pairing state, the first bluetooth Audio device may stop sending any LE Audio broadcast message.
801C, under the condition that the first bluetooth audio device is determined to be in a pairing state, the first target device sends a classical bluetooth connection request to the first bluetooth audio device.
It should be noted that, the first target device may find the first bluetooth audio device in the pairing state by means of scanning, and automatically or manually confirm by the user that the classical bluetooth connection is initiated to the first bluetooth audio device. In some embodiments, the first target device may add the first bluetooth Audio device to the white list of the first target device when initiating the classical bluetooth connection to the first bluetooth Audio device, so as to facilitate subsequent fast operations such as reconnection and reconnection, and also facilitate verification assistance when establishing the LE Audio bluetooth connection with the first bluetooth Audio device. In other embodiments, the first target device may add the first bluetooth Audio device to the white list of the first target device when the LE Audio bluetooth connection is initiated to the first bluetooth Audio device, so that by maintaining the white list, a process of subsequently confirming whether the LE Audio broadcast message sent by the first bluetooth Audio device corresponds to the identification information of the first target device may be accelerated, which is helpful for improving efficiency of establishing the bluetooth connection between the first bluetooth Audio device and the terminal device, especially establishing the LE Audio bluetooth connection.
801D, the first bluetooth audio device receives a classical bluetooth connection request sent by the first target device, and establishes a classical bluetooth connection with the first target device in response to the classical bluetooth connection request.
On this basis, by further performing the above steps 802 to 810, the bluetooth Audio device may be directed to establish an LE Audio bluetooth connection with the first target device intended by the user.
It should be noted that, when receiving the LE Audio broadcast message corresponding to the identification information of the first target device sent by the first bluetooth Audio device, the second target device may not respond to and discard the LE Audio broadcast message, so as to effectively avoid the erroneous connection between the first bluetooth Audio device and the second target device.
Referring to fig. 9 together, fig. 9 is a timing chart of another device connection method disclosed in the embodiment of the present application, where the method may be applied to a bluetooth communication system that is formed by the first bluetooth audio device, the second bluetooth audio device, and the terminal device (i.e., the first target device), where the first bluetooth audio device and the second bluetooth audio device may belong to the same bluetooth device set. For example, taking the example that the first bluetooth audio device and the second bluetooth audio device are both bluetooth audio devices, the first bluetooth audio device may be a master bluetooth audio device, and the second bluetooth audio device may be a slave bluetooth audio device. As shown in fig. 9, the device connection method may include the steps of:
902. The first target device sends security management information corresponding to the identification information of the first target device to the first bluetooth audio device based on a security management protocol between the first bluetooth audio device and the first target device.
904. The first Bluetooth audio device receives the security management information sent by the first target device based on a security management protocol between the first Bluetooth audio device and the first target device, and determines the identification information of the first target device according to the security management information.
For example, the above-mentioned security management information may contain the IRK of the first target device, i.e. the first target device may transmit its IRK to the first bluetooth audio device by SMP operation based on the security management protocol. On the basis, the identification information may include a device bluetooth address, and the first bluetooth Audio device may calculate the security management information (i.e. calculate the IRK of the first target device) according to a calculation rule corresponding to the security management information, so as to determine the device bluetooth address of the first target device, and apply the device bluetooth address to a subsequent step of sending a "directionally connectable" LE Audio broadcast message.
906. The first Bluetooth audio device sends the identification information of the first target device to the second Bluetooth audio device.
In this embodiment of the present application, after determining the identification information of the first target device (for example, the device bluetooth address of the first target device, etc.), the first bluetooth audio device may actively send the identification information to the second bluetooth audio device, so as to achieve information synchronization between the first bluetooth audio device and the second bluetooth audio device.
In other embodiments, the second bluetooth audio device may also obtain the identification information of the first target device by using a listening manner, so as to achieve information synchronization between the first bluetooth audio device and the second bluetooth audio device. The second bluetooth Audio device may monitor the classical bluetooth link between the first bluetooth Audio device and the first target device, obtain the security management information sent by the first target device, and further independently determine the identification information of the first target device, and apply the identification information to the subsequent step of sending the LE Audio broadcast message that is "directionally connectable".
908A, the first bluetooth audio device sends a first bluetooth low energy broadcast message corresponding to the identification information.
908B, the second bluetooth audio device sends a second bluetooth low energy broadcast message corresponding to the identification information.
910. The first target device receives the low-power-consumption Bluetooth broadcast messages sent by the first Bluetooth audio device and the second Bluetooth audio device respectively, and responds to the low-power-consumption Bluetooth broadcast messages under the condition that the low-power-consumption Bluetooth broadcast messages are determined to correspond to the identification information of the first target device, and sends a low-power-consumption Bluetooth audio connection request to the corresponding first Bluetooth audio device and/or second Bluetooth audio device.
912A, the first bluetooth audio device receives the bluetooth low energy audio connection request sent by the first target device, and establishes a bluetooth low energy audio connection with the first target device in response to the bluetooth low energy audio connection request.
912B, the second bluetooth audio device receives the bluetooth low energy audio connection request sent by the first target device, and establishes a bluetooth low energy audio connection with the first target device in response to the bluetooth low energy audio connection request.
It should be noted that, similar to the above steps 701A to 701D, the first bluetooth audio device and the second bluetooth audio device may also establish a bluetooth connection with the second target device, which is not shown in fig. 9. When receiving the LE Audio broadcast message corresponding to the identification information of the first target device, the second target device may not respond to and discard the LE Audio broadcast message, so as to effectively avoid erroneous connection with the first bluetooth Audio device and/or the second bluetooth Audio device.
It can be seen that, by implementing the device connection method described in the foregoing embodiment, the bluetooth Audio device may perform SMP operation with the first target device on the classical bluetooth link, so as to quickly and accurately obtain the identification information of the first target device, and further may send an LE Audio broadcast message that is "directionally connectable" to the first target device based on the identification information of the first target device, so that the first target device may establish LE Audio bluetooth connection with the bluetooth Audio device under the triggering of the targeted LE Audio broadcast message. By means of the device connection mode, it can be ensured that the LE Audio broadcast message sent by the Bluetooth Audio device can only be responded by the first target device expected by the user, and the second target device with different identification information can not respond when receiving the LE Audio broadcast message. Therefore, the LE Audio Bluetooth connection can be established between the Bluetooth Audio equipment and the first target equipment preferentially, and the Bluetooth Audio equipment and the second target equipment are prevented from being connected by mistake, so that the possibility of the Bluetooth Audio equipment being connected by mistake to the terminal equipment is reduced, and the accuracy and the flexibility of communication connection of the Bluetooth Audio equipment are effectively improved.
Referring to fig. 10, fig. 10 is a schematic modularized view of a device connection apparatus according to an embodiment of the present application, where the device connection apparatus may be applied to the first bluetooth audio device. As shown in fig. 10, the device connection apparatus may include an information acquisition unit 1001, a first broadcast transmission unit 1002, a first request reception unit 1003, and a first connection unit 1004, wherein:
an information obtaining unit 1001, configured to obtain identification information of a first target device based on a security management protocol between the first bluetooth audio device and the first target device;
a first broadcast sending unit 1002, configured to send a bluetooth low energy broadcast message corresponding to the identification information, where the bluetooth low energy broadcast message is used to instruct a first bluetooth audio device to respond to a first target device to initiate a bluetooth low energy audio connection request;
a first request receiving unit 1003, configured to receive a bluetooth low energy audio connection request sent by a first target device;
a first connection unit 1004, configured to establish a bluetooth low energy audio connection with a first target device in response to the bluetooth low energy audio connection request.
Therefore, by adopting the device connection apparatus described in the above embodiment, the bluetooth Audio device may perform SMP operation with the first target device on the classical bluetooth link, so as to quickly and accurately obtain the identification information of the first target device, and further may send an LE Audio broadcast message that is "directionally connectable" to the first target device based on the identification information of the first target device, so that the first target device may establish LE Audio bluetooth connection with the bluetooth Audio device under the triggering of the targeted LE Audio broadcast message. By means of the device connection mode, it can be ensured that the LE Audio broadcast message sent by the Bluetooth Audio device can only be responded by the first target device expected by the user, and the second target device with different identification information can not respond when receiving the LE Audio broadcast message. Therefore, the LE Audio Bluetooth connection can be established between the Bluetooth Audio equipment and the first target equipment preferentially, and the Bluetooth Audio equipment and the second target equipment are prevented from being connected by mistake, so that the possibility of the Bluetooth Audio equipment being connected by mistake to the terminal equipment is reduced, and the accuracy and the flexibility of communication connection of the Bluetooth Audio equipment are effectively improved.
In one embodiment, the device connection apparatus may further include an information synchronization unit, not shown, which may be configured to send identification information of the first target device to the second bluetooth audio device, so that the second bluetooth audio device sends a bluetooth low energy broadcast message corresponding to the identification information.
Optionally, the second bluetooth audio device may monitor a bluetooth link between the first bluetooth audio device and the first target device, and calculate to obtain the identification information of the first target device according to the monitored data.
The second bluetooth audio device may belong to the same bluetooth device set as the first bluetooth audio device.
In one embodiment, the information obtaining unit 1001 may include a receiving subunit and a determining subunit, which are not shown, where:
a receiving subunit, configured to receive, based on a security management protocol between the first bluetooth audio device and the first target device, security management information sent by the first target device;
and the determining subunit is used for determining the identification information of the first target equipment according to the security management information.
In one embodiment, the receiving subunit may be specifically configured to:
Configuring a security management protocol between a first Bluetooth audio device and a first target device through a Bluetooth link between the first Bluetooth audio device and the first target device;
and receiving the security management information sent by the first target equipment based on the security management protocol.
The bluetooth link may be an asynchronous connectionless ACL type bluetooth link.
In one embodiment, the identification information may include a bluetooth address of the device, the security management information may include a bluetooth device address resolution key IRK, and the determining subunit may be specifically configured to:
and calculating the IRK according to the calculation rule corresponding to the IRK so as to generate the device Bluetooth address of the first target device.
In some embodiments, the first bluetooth audio device may be a device supporting simultaneous establishment of a classical bluetooth connection and a bluetooth low energy audio connection, and on the basis that the device connection apparatus may further enter a pairing state before the information obtaining unit 1001 obtains the identification information of the first target device, where the pairing state refers to that the bluetooth audio device is in a discoverable and connectable state;
on this basis, the first request receiving unit 1003 may be further configured to:
Receiving a classical Bluetooth connection request sent by first target equipment;
the first connection unit 1004 may be further configured to:
establishing a classical Bluetooth connection with a first target device in response to the classical Bluetooth connection request;
the information obtaining unit 1001 may be specifically configured to obtain, on a classical bluetooth link with a first target device, identification information of the first target device based on a security management protocol between the first bluetooth audio device and the first target device.
Optionally, before entering the pairing state, the device connection apparatus may disconnect bluetooth connection with a second target device, where identification information of the second target device is different from identification information of the first target device;
when receiving the bluetooth low energy broadcast message corresponding to the identification information of the first target device sent by the bluetooth audio device, the second target device may not respond to and discard the bluetooth low energy broadcast message.
Alternatively, the first bluetooth audio device may be a device only supporting establishment of a bluetooth low energy audio connection, and on the basis of this, the first connection unit 1004 may be further configured to:
establishing a low-power Bluetooth connection with a first target device;
The information obtaining unit 1001 may be specifically configured to obtain, on a bluetooth low energy link with a first target device, identification information of the first target device based on a security management protocol between the first bluetooth audio device and the first target device.
Therefore, by adopting the device connection apparatus described in the above embodiment, the bluetooth Audio device may send the LE Audio broadcast message that is "directionally connectable" to the first target device based on the identification information of the first target device that is quickly and accurately obtained by the bluetooth Audio device through SMP operation, so that the first target device may establish LE Audio bluetooth connection with the bluetooth Audio device under the triggering of the targeted LE Audio broadcast message. By means of the device connection mode, the LE Audio broadcast message sent by the Bluetooth Audio device can be ensured to be responded by the first target device expected by the user, so that the Bluetooth Audio device and the second target device can be prevented from being connected by mistake, the possibility that the Bluetooth Audio device is connected with the terminal device by mistake is reduced, and the accuracy and the flexibility of communication connection of the Bluetooth Audio device are effectively improved. In addition, the Bluetooth Audio device calculates the BLE address of the RPA type by using the IRK of the first target device, so that the corresponding LE Audio broadcast message can be ensured to be correctly analyzed and matched by the first target device, the characteristic of directional connectable of the LE Audio broadcast message can be endowed, and the accuracy and the reliability of the directional connection terminal device of the Bluetooth Audio device can be improved. In addition, through the identification information of synchronous first target equipment between first bluetooth Audio equipment and second bluetooth Audio equipment, can make this first bluetooth Audio equipment and second bluetooth Audio equipment establish LE Audio bluetooth with first target equipment respectively and be connected to promote bluetooth Audio equipment and carry out communication connection's flexibility, also be favorable to promoting each earphone simultaneously and based on the reliability of BLE technique transmission Audio data.
Referring to fig. 11, fig. 11 is a schematic block diagram of another device connection apparatus according to an embodiment of the present application, where the device connection apparatus may be applied to the second bluetooth audio device. As shown in fig. 11, the device connection apparatus may include a listening unit 1101, a calculating unit 1102, a second broadcast transmitting unit 1103, a second request receiving unit 1104, and a second connection unit 1105, wherein:
a monitoring unit 1101, configured to monitor a bluetooth link between a first bluetooth audio device and a first target device, to obtain monitored data, where the second bluetooth audio device and the first bluetooth audio device belong to the same bluetooth device set;
a calculating unit 1102, configured to calculate, according to the listening data, identification information of the first target device;
a second broadcast sending unit 1103, configured to send a bluetooth low energy broadcast message corresponding to the identification information, where the bluetooth low energy broadcast message is used to instruct the second bluetooth audio device to respond to the bluetooth low energy audio connection request initiated by the first target device;
a second request receiving unit 1104, configured to receive a bluetooth low energy audio connection request sent by the first target device;
a second connection unit 1105, configured to establish a bluetooth low energy audio connection with the first target device in response to the bluetooth low energy audio connection request.
In one embodiment, the listening data may include security management information of the first target device, where the security management information may include a bluetooth device address resolution key IRK, and the identification information may include a bluetooth device address, so that the computing unit 1102 may be specifically configured to:
and calculating the IRK according to a calculation rule corresponding to the IRK so as to generate the device Bluetooth address of the first target device.
Referring to fig. 12 together, fig. 12 is a schematic block diagram of another device connection apparatus according to an embodiment of the present application, and the device connection apparatus may also be applied to the second bluetooth audio device. As shown in fig. 12, the device connection apparatus may include an information receiving unit 1201, a third broadcast transmitting unit 1202, a third request receiving unit 1203, and a third connection unit 1204, wherein:
an information receiving unit 1201, configured to receive identification information of a first target device sent by a first bluetooth audio device, where a second bluetooth audio device and the first bluetooth audio device belong to the same bluetooth device set;
a third broadcast transmitting unit 1202, configured to transmit a bluetooth low energy broadcast message corresponding to the identification information, where the bluetooth low energy broadcast message is used to instruct the second bluetooth audio device to respond to the bluetooth low energy audio connection request initiated by the first target device;
A third request receiving unit 1203, configured to receive a bluetooth low energy audio connection request sent by the first target device;
and a third connection unit 1204, configured to establish a bluetooth low energy audio connection with the first target device in response to the bluetooth low energy audio connection request.
Referring to fig. 13, fig. 13 is a schematic modularized view of a fourth device connection apparatus according to an embodiment of the present application, and the device connection apparatus may be applied to the above-mentioned terminal device. As shown in fig. 13, the device connection apparatus may include an information transmission unit 1301, a broadcast reception unit 1302, and a request transmission unit 1303, wherein:
an information transmitting unit 1301 configured to transmit security management information corresponding to identification information of a terminal device to a first bluetooth audio device based on a security management protocol between the first bluetooth audio device and the terminal device;
a broadcast receiving unit 1302, configured to receive a first bluetooth low energy broadcast message sent by a first bluetooth audio device in response to the security management information;
the request sending unit 1303 is configured to send, in response to the first bluetooth low energy broadcast message, a bluetooth low energy audio connection request to a first bluetooth audio device, where the first bluetooth low energy bluetooth broadcast message corresponds to the identification information of the terminal device, so that the first bluetooth audio device establishes a bluetooth low energy audio connection with the terminal device in response to the bluetooth low energy audio connection request.
In one embodiment, the information sending unit 1301 may include a protocol configuration subunit and an information sending subunit, which are not illustrated, where:
a protocol configuration subunit, configured to configure a security management protocol between the first bluetooth audio device and the terminal device through a bluetooth link between the first bluetooth audio device and the terminal device;
and the information sending subunit is used for sending the safety management information corresponding to the identification information of the terminal equipment to the first Bluetooth audio equipment based on the safety management protocol, wherein the safety management information is used for enabling the first Bluetooth audio equipment to determine the identification information of the terminal equipment according to the safety management information and sending a first low-power Bluetooth broadcast message corresponding to the identification information.
In one embodiment, the identification information may include a bluetooth address of the device, and the broadcast receiving unit 1302 may specifically be configured to:
and receiving a first Bluetooth low energy broadcast message which is sent by the first Bluetooth audio device in response to the safety management information and carries a target Bluetooth address.
On this basis, the request transmitting unit 1303 may include a computing subunit, a comparing subunit, and a transmitting subunit, which are not illustrated, wherein:
The computing subunit is used for computing the security management information and the target Bluetooth address according to the computing rule corresponding to the security management information to obtain a verification Bluetooth address;
the comparison subunit is used for comparing the target Bluetooth address with the check Bluetooth address;
and the transmitting subunit is used for determining that the first low-power-consumption Bluetooth broadcast message corresponds to the equipment Bluetooth address of the terminal equipment under the condition that the target Bluetooth address is matched with the verification Bluetooth address, and responding to the first low-power-consumption Bluetooth broadcast message and transmitting a low-power-consumption Bluetooth audio connection request to the first Bluetooth audio equipment.
In one embodiment, the device connection apparatus may further include a connection unit, not shown, in which:
the request sending unit 1303 may be further configured to send a classical bluetooth connection request to the first bluetooth audio device if it is determined that the first bluetooth audio device is in a pairing state before the information sending unit 1301 sends security management information corresponding to identification information of the terminal device to the first bluetooth audio device, where the pairing state refers to a state in which the first bluetooth audio device is discoverable and connectable;
And the connection unit is used for establishing a classical Bluetooth connection with the first Bluetooth audio device responding to the classical Bluetooth connection request.
In one embodiment, the security management information may be used to enable the first bluetooth audio device to determine identification information of the terminal device according to the security management information, and send the identification information of the terminal device to the second bluetooth audio device by using the first bluetooth audio device, where the second bluetooth audio device and the first bluetooth audio device belong to the same bluetooth device set; or, the second Bluetooth audio device monitors the Bluetooth link between the first Bluetooth audio device and the terminal device, and calculates the identification information of the terminal device according to the security management information obtained by monitoring;
the identification information of the terminal device is used for sending a low-power-consumption Bluetooth broadcast message corresponding to the identification information by the first Bluetooth audio device and/or the second Bluetooth audio device.
In one embodiment, the broadcast receiving unit 1302 may be further configured to:
receiving a second low-power-consumption Bluetooth broadcast message sent by a second Bluetooth audio device;
on the basis, the device connecting device can also judge whether the first Bluetooth audio device and the second Bluetooth audio device belong to the same Bluetooth device set according to the second low-power Bluetooth broadcast message and the first low-power Bluetooth broadcast message;
On this basis, the request transmitting unit 1303 described above may be specifically configured to:
and under the condition that the first Bluetooth audio device and the second Bluetooth audio device belong to the same Bluetooth device set and the second Bluetooth low energy broadcasting message corresponds to the identification information of the terminal device, responding to the second Bluetooth low energy broadcasting message, sending a Bluetooth low energy audio connection request to the second Bluetooth audio device so that the second Bluetooth audio device responds to the Bluetooth low energy audio connection request and establishes Bluetooth low energy audio connection with the terminal device.
It can be seen that, with the device connection apparatus described in the foregoing embodiment, the terminal device may perform SMP operation with the bluetooth Audio device, so that the bluetooth Audio device may quickly and accurately obtain the identification information of the terminal device, and send a "directionally connectable" LE Audio broadcast message to the terminal device, so that the terminal device may establish LE Audio bluetooth connection with the bluetooth Audio device under the triggering of the targeted LE Audio broadcast message. By means of the equipment connection mode, the LE Audio broadcast message sent by the Bluetooth Audio equipment can be ensured to be responded by the terminal equipment expected by the user, so that the Bluetooth Audio equipment can be prevented from being connected with other equipment in a connectable state by mistake, the possibility that the Bluetooth Audio equipment is connected with the terminal equipment by mistake is reduced, and the accuracy and the flexibility of communication connection of the Bluetooth Audio equipment are effectively improved. In addition, through sending the IRK of the terminal equipment to the Bluetooth Audio equipment, the Bluetooth Audio equipment can calculate the BLE address of the corresponding RPA type, so that the corresponding LE Audio broadcast message can be ensured to be correctly analyzed and matched by the terminal equipment, and the accuracy and the reliability of the directional connection of the Bluetooth Audio equipment to the terminal equipment are improved. In addition, through the identification information of synchronous this terminal equipment between first bluetooth Audio equipment and second bluetooth Audio equipment, terminal equipment can establish LE Audio bluetooth with this first bluetooth Audio equipment and second bluetooth Audio equipment respectively and be connected to promote terminal equipment and bluetooth Audio equipment and carry out communication connection's flexibility, also be favorable to promoting each earphone simultaneously and based on the reliability of BLE technique transmission Audio data.
Referring to fig. 14, fig. 14 is a schematic diagram of a bluetooth audio device according to an embodiment of the present application. As shown in fig. 14, the bluetooth audio device may include:
a memory 1401 storing executable program code;
a processor 1402 coupled to the memory 1401;
wherein the processor 1402 invokes the executable program code stored in the memory 1401, may perform all or part of the steps of any of the device connection methods described in the above embodiments as applied to the first bluetooth audio device or the second bluetooth audio device.
Referring to fig. 15, fig. 15 is a schematic diagram of modularization of a terminal device according to an embodiment of the present application. As shown in fig. 15, the terminal device may include:
a memory 1501 in which executable program codes are stored;
a processor 1502 coupled to the memory 1501;
wherein the processor 1502 invokes the executable program code stored in the memory 1501, may perform all or part of the steps of any of the device connection methods applied to the terminal device described in the above embodiments.
Further, the present application further discloses a computer-readable storage medium storing a computer program for electronic data exchange, wherein the computer program makes a computer execute all or part of the steps of any one of the device connection methods described in the above embodiments.
Furthermore, the embodiments further disclose a computer program product which, when run on a computer, enables the computer to perform all or part of the steps of any of the device connection methods described in the above embodiments.
Those of ordinary skill in the art will appreciate that all or part of the steps of the various methods of the above embodiments may be implemented by a program that instructs associated hardware, the program may be stored in a computer readable storage medium including Read-Only Memory (ROM), random access Memory (Random Access Memory, RAM), programmable Read-Only Memory (Programmable Read-Only Memory, PROM), erasable programmable Read-Only Memory (Erasable Programmable Read Only Memory, EPROM), one-time programmable Read-Only Memory (OTPROM), electrically erasable programmable Read-Only Memory (EEPROM), compact disc Read-Only Memory (Compact Disc Read-Only Memory, CD-ROM) or other optical disk Memory, magnetic disk Memory, tape Memory, or any other medium that can be used for carrying or storing data that is readable by a computer.
The foregoing describes in detail a device connection method and apparatus, a storage medium, and a chip disclosed in the embodiments of the present application, and specific examples are applied to describe the principles and embodiments of the present application, where the descriptions of the foregoing embodiments are only used to help understand the method and core idea of the present application; meanwhile, as those skilled in the art will have modifications in the specific embodiments and application scope in accordance with the ideas of the present application, the present description should not be construed as limiting the present application in view of the above.

Claims (27)

1. A device connection method for use with a first bluetooth audio device, the method comprising:
acquiring identification information of a first target device based on a security management protocol between the first Bluetooth audio device and the first target device;
transmitting a low-power-consumption Bluetooth broadcast message corresponding to the identification information, wherein the low-power-consumption Bluetooth broadcast message is used for indicating that the first Bluetooth audio device can respond to a low-power-consumption Bluetooth audio connection request initiated by the first target device;
receiving a low-power consumption Bluetooth audio connection request sent by the first target equipment;
And responding to the low-power Bluetooth audio connection request, and establishing low-power Bluetooth audio connection with the first target equipment.
2. The method according to claim 1, wherein the method further comprises:
transmitting identification information of the first target device to a second Bluetooth audio device so that the second Bluetooth audio device transmits a low-power Bluetooth broadcast message corresponding to the identification information, wherein the second Bluetooth audio device and the first Bluetooth audio device belong to the same Bluetooth device set; or,
the second Bluetooth audio device monitors a Bluetooth link between the first Bluetooth audio device and the first target device, and calculates identification information of the first target device according to monitoring data.
3. The method of claim 1, wherein the obtaining the identification information of the first target device based on a security management protocol between the first bluetooth audio device and the first target device comprises:
receiving security management information sent by first target equipment based on a security management protocol between the first Bluetooth audio equipment and the first target equipment;
And determining the identification information of the first target equipment according to the security management information.
4. The method of claim 3, wherein receiving security management information sent by the first target device based on a security management protocol between the first bluetooth audio device and the first target device comprises:
configuring a security management protocol between the first Bluetooth audio device and the first target device through a Bluetooth link between the first Bluetooth audio device and the first target device;
and receiving the security management information sent by the first target equipment based on the security management protocol.
5. The method of claim 4, wherein the bluetooth link is an asynchronous connectionless ACL type bluetooth link.
6. The method of claim 3, wherein the identification information comprises a device bluetooth address, the security management information comprises a bluetooth device address resolution key IRK, and wherein determining the identification information of the first target device based on the security management information comprises:
and calculating the IRK according to the calculation rule corresponding to the IRK so as to generate the device Bluetooth address of the first target device.
7. The method according to any one of claims 1 to 6, wherein the first bluetooth audio device is a device supporting simultaneous establishment of a classical bluetooth connection and a bluetooth low energy audio connection;
alternatively, the first bluetooth audio device is a device that only supports establishing bluetooth low energy audio connections.
8. The method of claim 7, wherein in the case where the first bluetooth audio device is a device that supports simultaneous establishment of a classical bluetooth connection and a bluetooth low energy audio connection, before the acquiring of the identification information of the first target device based on a security management protocol between the first bluetooth audio device and the first target device, the method further comprises:
entering a pairing state, wherein the pairing state refers to a state that the first Bluetooth audio device is in a discoverable and connectable state;
receiving a classical Bluetooth connection request sent by a first target device, and establishing classical Bluetooth connection with the first target device in response to the classical Bluetooth connection request;
the obtaining, based on a security management protocol between the first bluetooth audio device and a first target device, identification information of the first target device includes:
And acquiring identification information of the first target device on a classical Bluetooth link between the first target device and the first Bluetooth audio device based on a security management protocol between the first Bluetooth audio device and the first target device.
9. The method of claim 7, wherein in the case where the first bluetooth audio device is a device that only supports establishing bluetooth low energy audio connections, prior to the acquiring the identification information of the first target device based on a security management protocol between the first bluetooth audio device and the first target device, the method further comprises:
establishing a low-power Bluetooth connection with the first target device;
the obtaining, based on a security management protocol between the first bluetooth audio device and a first target device, identification information of the first target device includes:
and acquiring identification information of the first target device on a low-power consumption Bluetooth link between the first target device and the first Bluetooth audio device based on a security management protocol between the first Bluetooth audio device and the first target device.
10. The method of claim 8, wherein prior to the entering the pairing state, the method further comprises:
Disconnecting Bluetooth connection with second target equipment, wherein the identification information of the second target equipment is different from the identification information of the first target equipment;
and the second target device does not respond to the low-power-consumption Bluetooth broadcast message when receiving the low-power-consumption Bluetooth broadcast message which is sent by the first Bluetooth audio device and corresponds to the identification information of the first target device.
11. A device connection method for a second bluetooth audio device, the method comprising:
monitoring a Bluetooth link between a first Bluetooth audio device and a first target device to obtain monitoring data, wherein the second Bluetooth audio device and the first Bluetooth audio device belong to the same Bluetooth device set;
according to the monitoring data, the identification information of the first target equipment is obtained through calculation;
transmitting a low-power-consumption Bluetooth broadcast message corresponding to the identification information, wherein the low-power-consumption Bluetooth broadcast message is used for indicating that the second Bluetooth audio device can respond to a low-power-consumption Bluetooth audio connection request initiated by the first target device;
receiving a low-power consumption Bluetooth audio connection request sent by the first target equipment;
And responding to the low-power Bluetooth audio connection request, and establishing low-power Bluetooth audio connection with the first target equipment.
12. The method of claim 11, wherein the listening data comprises security management information of the first target device, the security management information comprises a bluetooth device address resolution key IRK, the identification information comprises a device bluetooth address, and the calculating the identification information of the first target device according to the listening data comprises:
and calculating the IRK according to the calculation rule corresponding to the IRK so as to generate the device Bluetooth address of the first target device.
13. A device connection method for a second bluetooth audio device, the method comprising:
receiving identification information of a first target device sent by a first Bluetooth audio device, wherein the second Bluetooth audio device and the first Bluetooth audio device belong to the same Bluetooth device set;
transmitting a low-power-consumption Bluetooth broadcast message corresponding to the identification information, wherein the low-power-consumption Bluetooth broadcast message is used for indicating that the second Bluetooth audio device can respond to a low-power-consumption Bluetooth audio connection request initiated by the first target device;
Receiving a low-power consumption Bluetooth audio connection request sent by the first target equipment;
and responding to the low-power Bluetooth audio connection request, and establishing low-power Bluetooth audio connection with the first target equipment.
14. A device connection method, applied to a terminal device, the method comprising:
based on a security management protocol between a first Bluetooth audio device and the terminal device, security management information corresponding to the identification information of the terminal device is sent to the first Bluetooth audio device;
receiving a first low-power-consumption Bluetooth broadcast message sent by the first Bluetooth audio device in response to the security management information;
and under the condition that the first Bluetooth low energy broadcasting message corresponds to the identification information of the terminal equipment, responding to the first Bluetooth low energy broadcasting message, sending a Bluetooth low energy audio connection request to the first Bluetooth audio equipment, so that the first Bluetooth audio equipment responds to the Bluetooth low energy audio connection request and establishes Bluetooth low energy audio connection with the terminal equipment.
15. The method according to claim 14, wherein the transmitting security management information corresponding to the identification information of the terminal device to the first bluetooth audio device based on a security management protocol between the first bluetooth audio device and the terminal device includes:
Configuring a security management protocol between a first Bluetooth audio device and terminal equipment through a Bluetooth link between the first Bluetooth audio device and the terminal equipment;
based on the security management protocol, security management information corresponding to the identification information of the terminal equipment is sent to the first Bluetooth audio equipment, and the security management information is used for enabling the first Bluetooth audio equipment to determine the identification information of the terminal equipment according to the security management information and sending a first low-power Bluetooth broadcast message corresponding to the identification information.
16. The method of claim 14, wherein the identification information comprises a device bluetooth address, and wherein the receiving a first bluetooth low energy broadcast message transmitted by the first bluetooth audio device in response to the security management information comprises:
receiving a first low-power-consumption Bluetooth broadcast message which is sent by the first Bluetooth audio device in response to the security management information and carries a target Bluetooth address;
and under the condition that the first bluetooth low energy broadcast message is determined to correspond to the identification information of the terminal equipment, responding to the first bluetooth low energy broadcast message, and sending a bluetooth low energy audio connection request to the first bluetooth audio equipment, wherein the method comprises the following steps:
According to the calculation rule corresponding to the safety management information, calculating the safety management information and the target Bluetooth address to obtain a verification Bluetooth address;
and comparing the target Bluetooth address with the verification Bluetooth address, if the target Bluetooth address is matched with the verification Bluetooth address, determining that the first low-power-consumption Bluetooth broadcast message corresponds to the equipment Bluetooth address of the terminal equipment, and responding to the first low-power-consumption Bluetooth broadcast message, and sending a low-power-consumption Bluetooth audio connection request to the first Bluetooth audio equipment.
17. The method according to any one of claims 14 to 16, wherein before the sending the security management information corresponding to the identification information of the terminal device to the first bluetooth audio device based on a security management protocol between the first bluetooth audio device and the terminal device, the method further comprises:
under the condition that the first Bluetooth audio device is in a pairing state, a classical Bluetooth connection request is sent to the first Bluetooth audio device, wherein the pairing state refers to the state that the first Bluetooth audio device is in a discoverable and connectable state;
And establishing a classical Bluetooth connection with the first Bluetooth audio device responding to the classical Bluetooth connection request.
18. The method according to any one of claims 14 to 16, wherein the security management information is used for enabling the first bluetooth audio device to determine identification information of the terminal device according to the security management information, and transmitting the identification information of the terminal device to a second bluetooth audio device by the first bluetooth audio device, wherein the second bluetooth audio device and the first bluetooth audio device belong to the same bluetooth device set; or the second Bluetooth audio device monitors a Bluetooth link between the first Bluetooth audio device and the terminal device, and calculates to obtain the identification information of the terminal device according to the security management information obtained by monitoring;
the identification information of the terminal equipment is used for sending a low-power-consumption Bluetooth broadcast message corresponding to the identification information by the first Bluetooth audio equipment and/or the second Bluetooth audio equipment.
19. The method of claim 18, wherein the method further comprises:
receiving a second Bluetooth low energy broadcast message sent by the second Bluetooth audio device;
Judging whether the first Bluetooth audio device and the second Bluetooth audio device belong to the same Bluetooth device set according to the second Bluetooth low energy broadcast message and the first Bluetooth low energy broadcast message;
and under the condition that the first Bluetooth audio device and the second Bluetooth audio device belong to the same Bluetooth device set and the second low-power Bluetooth broadcast message corresponds to the identification information of the terminal device, responding to the second low-power Bluetooth broadcast message, sending a low-power Bluetooth audio connection request to the second Bluetooth audio device so that the second Bluetooth audio device responds to the low-power Bluetooth audio connection request and establishes low-power Bluetooth audio connection with the terminal device.
20. A device connection apparatus for use with a first bluetooth audio device, the device connection apparatus comprising:
an information obtaining unit, configured to obtain identification information of a first target device based on a security management protocol between the first bluetooth audio device and the first target device;
the first broadcast sending unit is used for sending a low-power-consumption Bluetooth broadcast message corresponding to the identification information, wherein the low-power-consumption Bluetooth broadcast message is used for indicating that the first Bluetooth audio device can respond to a low-power-consumption Bluetooth audio connection request initiated by the first target device;
The first request receiving unit is used for receiving a low-power consumption Bluetooth audio connection request sent by the first target equipment;
the first connection unit is used for responding to the low-power Bluetooth audio connection request and establishing low-power Bluetooth audio connection with the first target equipment.
21. A device connection apparatus for use with a second bluetooth audio device, the device connection apparatus comprising:
the monitoring unit is used for monitoring a Bluetooth link between the first Bluetooth audio device and the first target device to obtain monitoring data, wherein the second Bluetooth audio device and the first Bluetooth audio device belong to the same Bluetooth device set;
the calculating unit is used for calculating and obtaining the identification information of the first target equipment according to the monitoring data;
the second broadcast sending unit is used for sending a low-power-consumption Bluetooth broadcast message corresponding to the identification information, wherein the low-power-consumption Bluetooth broadcast message is used for indicating the second Bluetooth audio device to respond to a low-power-consumption Bluetooth audio connection request initiated by the first target device;
the second request receiving unit is used for receiving a low-power consumption Bluetooth audio connection request sent by the first target device;
And the second connection unit is used for responding to the low-power Bluetooth audio connection request and establishing low-power Bluetooth audio connection with the first target equipment.
22. A device connection apparatus for use with a second bluetooth audio device, the device connection apparatus comprising:
the information receiving unit is used for receiving the identification information of the first target device sent by the first Bluetooth audio device, wherein the second Bluetooth audio device and the first Bluetooth audio device belong to the same Bluetooth device set;
a third broadcast transmitting unit, configured to transmit a bluetooth low energy broadcast message corresponding to the identification information, where the bluetooth low energy broadcast message is used to instruct the second bluetooth audio device to respond to a bluetooth low energy audio connection request initiated by the first target device;
a third request receiving unit, configured to receive a bluetooth low energy audio connection request sent by the first target device;
and the third connection unit is used for responding to the low-power Bluetooth audio connection request and establishing low-power Bluetooth audio connection with the first target equipment.
23. A device connection apparatus, characterized by being applied to a terminal device, comprising:
An information sending unit, configured to send security management information corresponding to identification information of a terminal device to a first bluetooth audio device based on a security management protocol between the first bluetooth audio device and the terminal device;
a broadcast receiving unit, configured to receive a bluetooth low energy broadcast message sent by the first bluetooth audio device in response to the security management information;
and the request sending unit is used for responding to the low-power-consumption Bluetooth broadcast message and sending a low-power-consumption Bluetooth audio connection request to the first Bluetooth audio device under the condition that the low-power-consumption Bluetooth broadcast message corresponds to the identification information of the terminal device, so that the first Bluetooth audio device responds to the low-power-consumption Bluetooth audio connection request and establishes low-power-consumption Bluetooth audio connection with the terminal device.
24. A bluetooth audio device comprising a memory and a processor, the memory having stored therein a computer program which, when executed by the processor, causes the processor to implement the method of any one of claims 1 to 10 or the method of any one of claims 11 to 13.
25. A terminal device comprising a memory and a processor, the memory having stored therein a computer program which, when executed by the processor, causes the processor to implement the method of any of claims 14 to 19.
26. A computer readable storage medium, on which a computer program is stored, which when being executed by a processor implements the method of any one of claims 1 to 10, or the method of any one of claims 11 to 13, or the method of any one of claims 14 to 19.
27. A chip comprising a processor, characterized in that the processor is adapted to read and execute a computer program stored in a memory for performing the method according to any one of claims 1 to 10, or the method according to any one of claims 11 to 13, or the method according to any one of claims 14 to 19.
CN202210705490.XA 2022-06-21 2022-06-21 Device connection method and device, storage medium and chip Pending CN117319970A (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN202210705490.XA CN117319970A (en) 2022-06-21 2022-06-21 Device connection method and device, storage medium and chip
PCT/CN2022/142139 WO2023246056A1 (en) 2022-06-21 2022-12-27 Device connection method and apparatus, and storage medium and chip

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210705490.XA CN117319970A (en) 2022-06-21 2022-06-21 Device connection method and device, storage medium and chip

Publications (1)

Publication Number Publication Date
CN117319970A true CN117319970A (en) 2023-12-29

Family

ID=89248577

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210705490.XA Pending CN117319970A (en) 2022-06-21 2022-06-21 Device connection method and device, storage medium and chip

Country Status (2)

Country Link
CN (1) CN117319970A (en)
WO (1) WO2023246056A1 (en)

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109862549A (en) * 2019-03-28 2019-06-07 南昌黑鲨科技有限公司 Bluetooth connecting method, device, readable storage medium storing program for executing and mobile device
CN112351390A (en) * 2019-08-09 2021-02-09 华为技术有限公司 Method for mutual identification or mutual communication of Bluetooth devices
CN114449491A (en) * 2020-10-30 2022-05-06 华为技术有限公司 Communication method, device and electronic equipment
CN113038442B (en) * 2021-03-16 2023-07-25 北京百瑞互联技术有限公司 Low-power consumption Bluetooth equipment matched connection method, device and system
CN113286284B (en) * 2021-05-26 2023-01-10 江苏紫米电子技术有限公司 Connection control method, device, equipment and medium for terminal and Bluetooth equipment

Also Published As

Publication number Publication date
WO2023246056A1 (en) 2023-12-28

Similar Documents

Publication Publication Date Title
EP3794853B1 (en) Secure systems and methods for establishing wireless audio sharing connection
US11395213B2 (en) Systems and methods for implementing multiple band service discovery
US11824892B2 (en) Terminal matching method and apparatus
EP3128718B1 (en) Service discovery method and device
EP2291017B1 (en) Method for network connection
JP2011254469A (en) Method, device and system for configuring wifi parameter
WO2014040506A1 (en) Terminal discovery, discovery processing method and device
WO2013174154A1 (en) Terminal device discovery method, device and system
US20160119859A1 (en) Wireless network access method and access apparatus
WO2020077658A1 (en) Extended connection method and extended connection system for bluetooth devices
US20150249946A1 (en) Network connection method and device supporting same
JP2017533660A (en) Device-to-device discovery method and apparatus
CN106982423B (en) Communication device and control method
EP3182787B1 (en) Communication method and device
CN108605277B (en) Method and device for establishing wireless local area network connection
US9842499B2 (en) Device enabling exchange of abnormal signal among vehicles via Wi-Fi direct network, and control method therefor
US20150215861A1 (en) Device and method for performing machine-to-machine communication
CN113455026A (en) Access method and communication device
CN105101465A (en) Wireless network configuration method and wireless network configuration system
CN113132983A (en) Intelligent terminal network disconnection reconnection method
CN117319970A (en) Device connection method and device, storage medium and chip
CN112714009B (en) Network distribution method, network equipment to be distributed and network equipment
WO2014000489A1 (en) Method for establishing communication link between multi-mode rru and bbu, multi-mode rru and bbu
US10349456B2 (en) Video communication system, video transmission terminal, video reception terminal, communication method, and recording medium
CN115209510B (en) Wireless network connection method and device, electronic equipment and storage medium

Legal Events

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