Connection establishment method, device, equipment, storage medium and program product

During the connection between Bluetooth audio equipment and terminal equipment, the audio equipment establishes a connection in advance after the terminal equipment completes the service query, which solves the problem of service query time-consuming and affects connection efficiency, and achieves faster connection establishment and better user experience.

CN114363876BActive Publication Date: 2025-08-22GUANGDONG OPPO MOBILE TELECOMMUNICATIONS CORP LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202210082409.7
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-01-24
Publication Date
2025-08-22
Estimated Expiration
2042-01-24

AI Technical Summary

Technical Problem

During the connection between Bluetooth audio equipment and terminal equipment, the service query process takes a long time, which affects the establishment efficiency of the LE-Audio protocol connection and leads to a decline in user experience.

Method used

After the terminal device completes the service query and has not completed the service query of the terminal device, the audio device establishes an audio connection in advance to control the completion time of the audio device before the audio device completes the query of the terminal device.

Benefits of technology

It greatly shortens the establishment time of audio connections, improves connection efficiency, avoids meaningless waiting, and improves user experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114363876B_ABST
    Figure CN114363876B_ABST
Patent Text Reader

Abstract

The embodiments of the present application disclose a connection establishment method, apparatus, device, storage medium and program product, which belong to the field of Bluetooth technology. The method comprises: accepting a service query initiated by a terminal device; establishing an audio connection with the terminal device after the terminal device completes the service query for the audio device and before the audio device completes the service query for the terminal device. In the above scheme, the audio connection between the audio device and the terminal device can be established before the audio device completes the query for the terminal device, thereby avoiding meaningless waiting, greatly shortening the time to establish the audio connection, and improving the efficiency of establishing the audio connection.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The embodiments of the present application relate to the field of Bluetooth technology, and in particular to a connection establishment method, apparatus, device, storage medium, and program product. Background Art

[0002] With the continuous development of short-range wireless communication technologies such as Bluetooth, the application of Bluetooth-based audio devices such as wireless headphones is becoming more and more widespread.

[0003] In related technologies, when an audio device is used, it can first establish a Bluetooth-based audio connection with a terminal device. Afterwards, the terminal device and the audio device can exchange audio data through the audio connection; for example, the terminal device sends audio data to the audio device through the audio connection, and the audio device plays the audio data. Summary of the Invention

[0004] The present invention provides a method, apparatus, device, storage medium, and program product for establishing a connection. The technical solution includes:

[0005] In one aspect, an embodiment of the present application provides a connection establishment method, which is performed by an audio device and includes:

[0006] Accept service inquiries initiated by terminal devices;

[0007] After the terminal device completes the service query for the audio device and before the audio device completes the service query for the terminal device, an audio connection is established with the terminal device.

[0008] In one aspect, an embodiment of the present application provides a connection establishment method, which is performed by a terminal device and includes:

[0009] Initiate service queries for audio devices;

[0010] After the terminal device completes the service query for the audio device and before the audio device completes the service query for the terminal device, an audio connection is established with the audio device.

[0011] In one aspect, an embodiment of the present application provides a connection establishment device, the device comprising:

[0012] A first query module, configured to accept a service query initiated by a terminal device;

[0013] The first establishing module is configured to establish an audio connection with the terminal device after the terminal device completes a service query for the audio device and before the audio device completes a service query for the terminal device.

[0014] In one aspect, an embodiment of the present application provides a connection establishment device, the device comprising:

[0015] A second query module is used to initiate a service query for the audio device;

[0016] The second establishing module is configured to establish an audio connection with the audio device after the terminal device completes the service query for the audio device and before the audio device completes the service query for the terminal device.

[0017] On the other hand, an embodiment of the present application provides a processing chip, which is used to execute the connection establishment method as described above.

[0018] On the other hand, an embodiment of the present application provides a processing chip, in which the connection establishment device as described in the above aspects is provided.

[0019] On the other hand, an embodiment of the present application provides a computer device, which includes a processor and a memory, and the processor and the memory are connected via a bus; the processor is used to execute computer instructions stored in the memory to implement the connection establishment method described in the above aspects.

[0020] On the other hand, an embodiment of the present application further provides a computer-readable storage medium, in which a computer program is stored. The computer program is loaded and executed by a processor to implement the above-mentioned connection establishment method.

[0021] In another aspect, the present application provides a computer program product, which includes computer instructions stored in a computer-readable storage medium. The computer program product is used to implement the above connection establishment method.

[0022] In another aspect, the present application provides a computer program product, the computer program product including computer instructions stored in a computer-readable storage medium. A processor of a computer device reads the computer instructions from the computer-readable storage medium and executes the computer instructions, causing the computer device to perform the above-mentioned connection establishment method.

[0023] On the other hand, the present application provides a computer program, which is executed by a processor of a computer device to implement the above connection establishment method.

[0024] The technical solutions provided by the embodiments of the present application include at least the following beneficial effects:

[0025] After the terminal device initiates and completes a service query to the audio device, and before the audio device completes the service query to the terminal device, an audio connection can be established between the audio device and the terminal device; that is, in the above scheme, when establishing an audio connection between the audio device and the terminal device, the completion time of the audio connection is controlled before the audio device completes the query to the terminal device, thereby avoiding meaningless waiting, greatly shortening the time to establish the audio connection, and improving the efficiency of establishing the audio connection. BRIEF DESCRIPTION OF THE DRAWINGS

[0026] Figure 1 is a system architecture diagram of a wireless audio playback system provided by an exemplary embodiment of the present application;

[0027] Figure 2 This is a schematic diagram of an audio connection process involved in this application;

[0028] Figure 3 A flow chart of a connection establishment method provided by an exemplary embodiment of the present application is shown;

[0029] Figure 4 A flow chart of a connection establishment method provided by an exemplary embodiment of the present application is shown;

[0030] Figure 5 A flow chart of a connection establishment method provided by an exemplary embodiment of the present application is shown;

[0031] Figure 6 A flow chart of a connection establishment method provided by an exemplary embodiment of the present application is shown;

[0032] Figure 7 yes Figure 6 A schematic diagram of a connection establishment process involved in the illustrated embodiment;

[0033] Figure 8 A flow chart of a connection establishment method provided by an exemplary embodiment of the present application is shown;

[0034] Figure 9 yes Figure 8 A schematic diagram of a connection establishment process involved in the illustrated embodiment;

[0035] Figure 10 is a structural diagram of a connection establishment device provided by an exemplary embodiment of the present application;

[0036] Figure 11 is a structural diagram of a connection establishment device provided by an exemplary embodiment of the present application;

[0037] Figure 12 It is a structural diagram of a computer device provided by an exemplary embodiment of the present application. DETAILED DESCRIPTION

[0038] In order to make the objectives, technical solutions and advantages of this application clearer, the implementation methods of this application will be further described in detail below with reference to the accompanying drawings.

[0039] In this document, "plurality" refers to two or more. "And / or" describes a relationship between associated objects, indicating that three possible relationships exist. For example, "A and / or B" can mean: A exists alone, A and B exist simultaneously, or B exists alone. The character " / " generally indicates an "or" relationship between the associated objects.

[0040] It should be understood that the "indication" mentioned in the embodiments of this application can be a direct indication, an indirect indication, or an indication of an association. For example, "A indicates B" can mean that A directly indicates B, for example, B can be obtained through A; it can also mean that A indirectly indicates B, for example, A indicates C, and B can be obtained through C; it can also mean that there is an association between A and B.

[0041] In the description of the embodiments of the present application, the term "corresponding" may indicate a direct or indirect correspondence between the two, or an association relationship between the two, or a relationship between indication and being indicated, configuration and being configured, etc.

[0042] In the embodiments of the present application, "predefined" can be implemented by pre-storing corresponding codes, tables, or other methods that can be used to indicate relevant information in a device (for example, a terminal device and a network device). The present application does not limit the specific implementation method. For example, predefined can refer to information defined in a protocol.

[0043] Thanks to the development of short-range wireless communication technologies such as Bluetooth (BT), Bluetooth-based audio devices such as wireless headphones are becoming increasingly popular among users, and their implementation is becoming increasingly diverse. For example, current wireless headphones include True Wireless Stereo (TWS) Bluetooth headphones.

[0044] When using audio devices such as wireless headphones, they need to establish a Bluetooth-based wireless audio connection with the terminal device (i.e., the audio source device) and play the audio data pushed by the terminal device. In some business scenarios, the audio device can also provide feedback to the terminal device on user operations and user voice data.

[0045] Please refer to Figure 1 , which shows a system architecture diagram of a wireless audio playback system provided by an exemplary embodiment of the present application. Figure 1 As shown, the system includes an audio device 110 and a terminal device 120 .

[0046] The audio device 110 may be a Bluetooth headset or other audio playback device supporting the Bluetooth protocol, such as a Bluetooth speaker, etc. The audio device 110 may also be a computer device supporting the Bluetooth protocol, such as a smart phone, tablet computer, smart TV, or personal computer, etc.

[0047] The audio device 110 has a function of playing audio. For example, a speaker component is provided in the audio device 110 .

[0048] Optionally, the audio device 110 also has an audio collection function, an operation receiving function, etc. For example, the audio device 110 is also provided with a pickup / microphone, operation buttons, a touch sensor, etc.

[0049] The terminal device 120 may be a computer device that supports the Bluetooth protocol. For example, the terminal device 120 may be a smart phone, a tablet computer, a smart TV, a personal computer, and the like.

[0050] After the terminal device 120 and the audio device 110 are connected via the Bluetooth protocol, the terminal device 120 can push audio data to the audio device 110, and the audio device plays the audio data.

[0051] Optionally, the audio device 110 may collect the user's voice (for example, in a call scenario or a voice control scenario), obtain the user's voice data, and transmit the voice data back to the terminal device 120 .

[0052] Optionally, when the audio device 110 receives an operation on an operation button or touch sensor in the audio device 110 , the audio device 110 may transmit an operation signal to the terminal device 120 , and the terminal device 120 may perform a corresponding operation according to the operation signal.

[0053] For example, in some scenarios, the audio device 110 can send control information to the terminal device 120 based on the received user operations to control the functions related to audio playback in the terminal device 120, such as switching to the previous song, switching to the next song, adjusting the volume, answering / hanging up the phone, etc.

[0054] Low Energy Audio (LE-Audio) is a new audio transmission technology of the Bluetooth protocol, which provides people with wireless audio services with lower power consumption, lower cost, higher quality, and lower latency. TWS earphones are one of the hottest Bluetooth products in the market. Figure 2 , which shows a schematic diagram of an audio connection process involved in this application. Figure 2As shown in the figure, taking the LE-Audio connection between TWS headphones (audio device) and mobile phones (terminal devices) as an example, the audio connection process is as follows:

[0055] S21: The headset is opened and starts sending Bluetooth Low Energy (BLE) broadcasts after pairing.

[0056] S22, turn on Bluetooth on your phone and start BLE scanning at the same time.

[0057] After the mobile phone scans the headset, the user can click in the mobile phone's Bluetooth user interface (UI) to trigger a connection with the headset.

[0058] In step S23, the mobile phone and the headset first complete the connection of the underlying LE link.

[0059] S24: The mobile phone and the headset negotiate and bind keys via the Security Management Protocol (SMP), that is, store the keys so that subsequent reconnections do not require re-key negotiation.

[0060] S25, then, the link layer data is encrypted between the mobile phone and the headset, and the subsequent communications are all ciphertext.

[0061] S26, after encryption is completed, the mobile phone and the headset each initiate a service query to the other device, that is, the service discovery process. The purpose of this process is to learn the services supported by the other device and the functions of the corresponding attributes to facilitate subsequent connection and use.

[0062] S27: After the mobile phone and the headset complete their respective service queries, the mobile phone initiates an LE-Audio protocol connection with the headset, completing the entire connection process.

[0063] However, due to the development of the LE-Audio protocol, both the mobile phone and the headset support a large number of services and attributes. Therefore, the service query process on both the mobile phone and the headset takes a long time. The mobile phone needs to complete the service query initiated by itself before it can connect to the LE-Audio related protocols. The information used to initiate the protocol connection does not involve the information obtained by the service query process on the headset.

[0064] In the above-mentioned LE-Audio protocol connection method, the mutual initiation of service discovery between the mobile phone and the headset will reduce the efficiency of the mobile phone in completing the service query, and then affect the start time of the mobile phone initiating the LE-Audio protocol connection, because the mobile phone still has to respond to the service query instruction of the headset at this time, which ultimately affects the establishment time of the entire LE-Audio protocol connection, reduces the efficiency of establishing the LE-Audio protocol connection, and has a significant impact on the user experience.

[0065] Please refer to Figure 3 , which shows a flow chart of a connection establishment method provided by an exemplary embodiment of the present application. The method can be used in an audio device; wherein, the audio device can be the above-mentioned Figure 1 The audio device 110 in the system is shown. The method may include the following steps.

[0066] Step 301: accepting a service query initiated by a terminal device.

[0067] In an embodiment of the present application, after the audio device establishes a connection with the terminal device via the underlying LE link and completes security protocol encryption with the terminal device, it can accept service queries initiated by the terminal device to provide the terminal device with relevant information about the services it supports.

[0068] Step 302: After the terminal device completes the service query for the audio device and before the audio device completes the service query for the terminal device, establish an audio connection with the terminal device.

[0069] Among them, the above-mentioned establishing an audio connection with the terminal device after the terminal device completes the service query for the audio device and before the audio device completes the service query for the terminal device may mean that after the terminal device completes the service query for the audio device, the audio device completes the establishment of the audio connection with the terminal device before completing the service query for the terminal device.

[0070] That is to say, in an embodiment of the present application, when the audio device executes the process of establishing an audio connection and the process of querying the service of the terminal device, the execution time and / or execution order of the above two processes can be controlled, so that the audio connection can be established between the audio device and the terminal device after the terminal device completes the service query with the audio device and before the audio device completes the service query with the terminal device.

[0071] To sum up, through the scheme shown in the embodiment of the present application, an audio connection can be established between the audio device and the terminal device after the terminal device initiates and completes a service query to the audio device, and before the audio device completes the service query to the terminal device; in the above scheme, when establishing an audio connection between the audio device and the terminal device, the completion time of the audio connection is controlled before the audio device completes the query to the terminal device, thereby avoiding meaningless waiting, greatly shortening the time to establish the audio connection, and improving the efficiency of establishing the audio connection.

[0072] Please refer to Figure 4 , which shows a flow chart of a connection establishment method provided by an exemplary embodiment of the present application. The method can be used in a terminal device; wherein the terminal device can be the above-mentioned Figure 1 The terminal device 120 in the system is shown. The method may include the following steps.

[0073] Step 401: Initiate a service query for the audio device.

[0074] In an embodiment of the present application, the terminal device can establish a connection with the underlying LE link of the audio device and initiate a service query to the audio device after completing security protocol encryption between the terminal device and the audio device.

[0075] Step 402: After the terminal device completes the service query for the audio device and before the audio device completes the service query for the terminal device, establish an audio connection with the audio device.

[0076] In the embodiment of the present application, the audio connection between the terminal device and the audio device is completed before the audio device completes the service query of the terminal device. In other words, the audio connection between the terminal device and the audio device is established before the audio device initiates the service query of the terminal device, or before the audio device completes the service query of the terminal device.

[0077] To sum up, through the scheme shown in the embodiment of the present application, an audio connection can be established between the audio device and the terminal device after the terminal device initiates and completes a service query to the audio device, and before the audio device completes the service query to the terminal device; in the above scheme, when establishing an audio connection between the audio device and the terminal device, the completion time of the audio connection is controlled before the audio device completes the query to the terminal device, thereby avoiding meaningless waiting, greatly shortening the time to establish the audio connection, and improving the efficiency of establishing the audio connection.

[0078] Based on the above Figure 3 or Figure 4 For the scheme shown, please refer to Figure 5, which shows a flow chart of a connection establishment method provided by an exemplary embodiment of the present application. Taking the terminal device as a mobile phone, the audio device as a Bluetooth headset, and the established connection as an LE-Audio connection as an example, the method may include the following steps.

[0079] Step 501: The headset opens its cover and starts sending Bluetooth low energy broadcasts after pairing.

[0080] Step 502: The mobile phone turns on Bluetooth and starts BLE scanning.

[0081] In step 503, the mobile phone and the headset first complete the connection of the underlying LE link.

[0082] Step 504: The mobile phone and the headset negotiate and bind keys via SMP.

[0083] Step 505: The link layer data is encrypted between the mobile phone and the headset.

[0084] Step 506: After the encryption between the mobile phone and the headset is completed, the mobile phone initiates a service query to the headset.

[0085] Step 507: After the mobile phone completes the service query of the headset, and before the headset completes the service query of the mobile phone, an LE-Audio protocol connection is established between the mobile phone and the headset.

[0086] Among them, the above Figure 3 or Figure 4 In the solution shown, the time for establishing the audio connection between the terminal device and the audio device needs to be later than the time when the terminal device completes the service query of the audio device, and earlier than the time when the audio device completes the service query of the terminal device.

[0087] In the above Figure 3 or Figure 4 In one possible implementation of the scheme shown, the moment when the audio device initiates the service query of the terminal device can be after the moment when the terminal device initiates the service query of the audio device, so that the terminal device can complete the service query of the audio device as soon as possible, thereby initiating the process of establishing the audio connection with the audio device as soon as possible. On this basis, the time for establishing the audio connection is controlled to be earlier than the time when the audio device completes the service query of the terminal device, so as to shorten the time for establishing the audio connection as much as possible.

[0088] It can be understood that in a feasible implementation mode, the audio device initiates a service query to the terminal device, and the time when the audio device initiates the service query to the terminal device is after the time when the terminal device initiates the service query to the audio device.

[0089] It is understandable that the audio device may start a timer when detecting a service query initiated by the terminal device, and initiate a service query to the terminal device after the timer reaches a preset duration.

[0090] Alternatively, the audio device may also initiate a service query for the terminal device after the terminal device completes the service query initiated by the audio device. For example, when the audio device detects that the terminal device has initiated the establishment of an audio connection (for example, after receiving an audio connection establishment request sent by the terminal device), the audio device initiates a service query for the terminal device; or when the audio device receives a service query completion response sent by the terminal device after completing the service query for the audio device, the audio device initiates a service query for the terminal device.

[0091] In one feasible implementation, the audio device initiates a service query to the terminal device, and the audio device initiates the service query to the terminal device at a preset time after the completion of link layer encryption between the audio device and the terminal device (for example, step 505, the completion of link layer data encryption between the mobile phone and the headset). It can be understood that by setting this preset time, the impact of the audio device's service query process on the audio connection establishment process between the audio device and the terminal device is reduced, that is, the audio connection between the two can be established earlier.

[0092] For example, the audio device starts timing after confirming that the link layer encryption with the terminal device is complete, and then initiates a service query to the terminal device after a preset time has passed, thereby advancing the time when the audio connection between the audio device and the terminal device is established. In other words, by setting a preset time, this solution delays the time when the audio device initiates the service query to the terminal device. Compared with the methods in the related art, this solution can enable the terminal device to complete the service query to the audio device more quickly, thereby advancing the time when the audio connection between the audio device and the terminal device is established, allowing audio communication to proceed earlier.

[0093] It is understandable that the preset time can be set according to the desired advance effect.

[0094] In the above Figure 3 or Figure 4 In another possible implementation of the illustrated solution, to ensure that the audio connection is established later than the terminal device completes its service query for the audio device and earlier than the audio device completes its service query for the terminal device, the audio device may initiate a service query for the terminal device after the terminal device completes its service query for the audio device and the audio connection is established between the audio device and the terminal device. In other words, the process of establishing the audio connection between the audio device and the terminal device is initiated by the terminal device after the terminal device completes its service query for the audio device and before the audio device initiates a service query for the terminal device.

[0095] In some embodiments, the audio device initiates a service query to the terminal device after the audio connection between the audio device and the terminal device is established. That is, unlike related technologies, in this embodiment, the audio device initiates a service query to the terminal device only after the audio connection is established. This minimizes the impact of the audio device's service query on the terminal device on the audio connection, allowing the audio connection to be established earlier and audio transmission to be performed more quickly.

[0096] Please refer to Figure 6 , which shows a flow chart of a connection establishment method provided by an exemplary embodiment of the present application. The method can be interactively executed by a terminal device and an audio device; wherein the audio device can be the above-mentioned Figure 1 The audio device 110 in the system shown, the terminal device can be Figure 1 The terminal device 120 in the system is shown. The method may include the following steps.

[0097] Step 601: The terminal device initiates a service query to the audio device. Correspondingly, the audio device accepts the service query initiated by the terminal device.

[0098] Before performing service queries and establishing audio connections between the terminal device and the audio device, an underlying LE connection can be established first.

[0099] For example, an audio device can send a BLE broadcast message and establish a low-level LE connection with a terminal device that has detected the BLE broadcast message.

[0100] Accordingly, the terminal device can search for BLE broadcast messages and establish an underlying LE connection with the audio device when a BLE broadcast message sent by the audio device is found.

[0101] Among them, after the underlying LE connection is established between the terminal device and the audio device, and before initiating a service query, key negotiation can also be performed to achieve encryption of link layer data.

[0102] Among them, the above-mentioned steps such as establishing the underlying LE connection and encrypting the link layer data can be performed in accordance with the method specified in the BLE standard.

[0103] The service query process initiated by the terminal device to the audio device can query which services the audio device supports, as well as information such as capabilities / attributes corresponding to the services supported by the audio device.

[0104] For example, the terminal device may query the audio device for at least one of the following information:

[0105] 1) Whether the audio device supports media playback function;

[0106] 2) Whether the audio device supports the call function;

[0107] 3) Whether the audio device supports operation control;

[0108] 4) What control operations does the audio device support (for example, whether it supports pause playback, whether it supports switching to the next song, whether it supports switching to the previous song, etc.);

[0109] 5) The encoding capability / encoding method of the audio device;

[0110] 6) The encoding parameters used by the audio device.

[0111] When the terminal device initiates a service query to the audio device, the terminal device may send a service query instruction to the audio device. After receiving the service query instruction, the audio device may return relevant information of the services it supports to the terminal device.

[0112] The service query process may be performed in accordance with the method specified in the BLE standard (eg, a standard related to the LE Audio protocol).

[0113] Step 602: After the terminal device completes the service query for the audio device, an audio connection is established between the terminal device and the audio device.

[0114] In a possible implementation, after the terminal device completes the service query for the audio device and before receiving the service query instruction sent by the audio device, the terminal device may initiate the process of establishing the audio connection.

[0115] In an embodiment of the present application, after the terminal device completes the service query for the audio device and before the audio device initiates the service query for the terminal device, the terminal device can initiate the audio connection establishment process with the audio device.

[0116] For example, after completing the service query of the audio device, the terminal device can send an audio connection establishment request to the audio device. After receiving the audio connection establishment request, the audio device can complete the audio connection establishment process between the terminal device and the audio device according to the audio connection establishment request.

[0117] When the terminal device sends the audio connection establishment request to the audio device, the audio connection establishment request may be sent according to the information related to the services supported by the audio device queried in step 601 .

[0118] For example, after completing a service query for an audio device, the terminal device can send an instruction to the audio device for configuring an audio connection, such as an ATT (Attribute Protocol) write instruction. The ATT write instruction is used to write relevant configuration information of the audio connection to the audio device to complete the audio connection. Correspondingly, after receiving the ATT write instruction, the audio device configures the audio connection according to the relevant configuration information in the ATT write instruction.

[0119] The audio connection establishment process may be performed in accordance with the audio connection establishment method specified in the BLE standard (eg, a standard related to the LE Audio protocol).

[0120] After the audio connection is established, audio data can be transmitted between the terminal device and the audio device. For example, the terminal device and the audio device can transmit audio data without waiting for the audio device to complete the service query of the terminal device.

[0121] Step 603: After the audio connection is established, the audio device initiates a service query to the terminal device. Correspondingly, the terminal device accepts the service query initiated by the audio device.

[0122] Among them, the service query process initiated by the audio device to the terminal device can query which services the terminal device supports, as well as information such as the capabilities / attributes corresponding to the services supported by the terminal device, so that the audio device can subsequently provide corresponding services to the terminal device based on the queried information, or accept corresponding services provided by the terminal device.

[0123] For example, when the audio device queries that the terminal device supports the call function, when the terminal device subsequently receives an incoming call notification, the audio device can provide the call answering / hanging up function service (for example, the user answers / hangs up the call by pressing a button on the audio device).

[0124] For example, the audio device may query the terminal device for at least one of the following information:

[0125] 1) Whether the terminal device supports the call function;

[0126] 2) Whether the terminal device supports operation control;

[0127] 3) What operations and controls does the terminal device support (e.g., whether it supports pause playback, whether it supports switching to the next song, whether it supports switching to the previous song, etc.);

[0128] 4) The coding capability / coding method of the terminal device;

[0129] 5) The encoding parameters used by the terminal device.

[0130] When the audio device initiates a service query to the terminal device, the audio device may send a service query instruction to the terminal device. After receiving the service query instruction, the terminal device may return relevant information of the services it supports to the audio device.

[0131] In a possible implementation, when the audio connection is established, the terminal device may send an audio connection establishment completion message to the audio device; the audio connection establishment completion message is used to trigger the audio device to send a service query instruction.

[0132] For example, after the audio device completes the configuration of the audio connection according to the ATT write instruction sent by the terminal device, it can return a confirmation response to the ATT write instruction to the terminal device, notifying the terminal device that the audio device has completed the configuration of the audio connection; at this time, the terminal device can send another audio connection establishment completion message to the audio device to inform the audio device that it can start initiating service queries to the terminal device.

[0133] Correspondingly, after receiving the audio connection establishment completion message sent by the terminal device, the audio device may initiate a service query to the terminal device, for example, by sending a service query instruction to the terminal device.

[0134] In another possible implementation, during the process of establishing an audio connection between the audio device and the terminal device, when it is proactively determined that the audio connection establishment is complete, a service query may be initiated to the terminal device.

[0135] For example, when the audio device receives an audio connection establishment request sent by the terminal device and completes the last step in the audio connection process performed by the audio device, it can initiate a service query to the terminal device. For example, when the audio device completes the configuration of the audio connection according to the ATT write command sent by the terminal device, it can initiate a service query to the terminal device.

[0136] In a possible implementation, within a specified time period after the terminal device completes the service query initiated by the terminal device to the audio device, if the audio device does not receive the audio connection establishment request sent by the terminal device, the audio device may also initiate a service query to the terminal device.

[0137] In an embodiment of the present application, after the terminal device completes the service query initiated by the terminal device to the audio device, if the communication condition between the terminal device and the audio device is poor, the audio connection establishment request sent by the terminal device may not be accurately received; at this time, the terminal device may need to wait for a period of time before re-initiating the audio connection (for example, the interval between the two initiations of the audio connection establishment process by the terminal device is set to be longer). If the terminal device is waited for to initiate the audio connection again, the service query process of the audio device to the terminal device will be further delayed.

[0138] Alternatively, if the terminal device does not support initiating the audio connection establishment process before the audio device completes the service query of the terminal device, for example, the terminal device is configured to perform the audio connection establishment operation only after the audio device completes its service query, then after the service query initiated by the terminal device to the audio device is completed, the terminal device will not immediately send an audio connection establishment request, but will wait for the audio device to complete the service query of the terminal device.

[0139] For the above two situations, within a period of time after the terminal device completes the service query initiated by the terminal device to the audio device (the length of this period of time may be less than the interval between the two initiations of the audio connection establishment process by the terminal device), if the audio device does not receive the audio connection establishment request sent by the terminal device, it may first initiate a service query to the terminal device.

[0140] In a possible implementation, before initiating a service query for the audio device, the following steps are further included:

[0141] The terminal device and the audio device can reduce the connection interval between the terminal device and the audio device, thereby shortening the service query process of the terminal device to the audio device and the audio connection establishment process between the terminal device and the audio device.

[0142] The connection interval is the time interval between two adjacent connection events between the terminal device and the audio device.

[0143] In the BLE protocol, to conserve device power and reduce device power consumption, there is a certain connection interval (such as connection interval) between the terminal device and the audio device. That is, every period of time (the above connection interval) between the terminal device and the audio device, the master device (usually the terminal device) initiates a communication (each communication process lasts for a period of time, and the interval between the start of the two communication processes is the above connection interval). During each communication process, information can be exchanged between the two. Among them, one such communication process can be called a connection event.

[0144] In an embodiment of the present application, the connection interval between the terminal device and the audio device is dynamically adjustable. For example, the terminal device and the audio device support multiple connection intervals, each of which is in units of 1.25ms. The minimum connection interval can be set to 6 units (i.e., 7.5ms), and the maximum connection interval can be set to 3200 units (i.e., 4s). After the terminal device and the audio device complete LE link encryption, the connection interval between the two can be reduced.

[0145] The lowered connection interval may be a pre-set target connection interval. After completing LE link encryption, the terminal device and the audio device may determine whether the current connection interval is higher than the target connection interval. If so, the connection interval between the terminal device and the audio device may be lowered to the target connection interval.

[0146] Alternatively, after completing the LE link encryption, the terminal device and the audio device may further negotiate to obtain the above-mentioned target connection interval. After the negotiation is completed, the terminal device and the audio device lower the connection interval between them to the above-mentioned target connection interval obtained through negotiation.

[0147] In a possible implementation, after the audio connection is established, the terminal device and the audio device resume the connection interval.

[0148] In an exemplary solution of an embodiment of the present application, after the audio connection is established and before the audio device initiates a service query to the terminal device, the terminal device and the audio device may resume the above connection interval.

[0149] Alternatively, in another exemplary solution of the embodiment of the present application, after the audio device completes the service query of the terminal device, the terminal device and the audio device can restore the above connection interval to reduce the power consumption of the audio device and the terminal device.

[0150] Please refer to Figure 7 , which is a schematic diagram of the connection establishment process involved in the embodiment of the present application. Taking the terminal device as a mobile phone, the audio device as a Bluetooth headset, and the established connection as an LE-Audio connection as an example, the method may include the following steps.

[0151] Step 701: The headset opens its cover, enters pairing, and starts sending Bluetooth low energy broadcasts.

[0152] Step 702: The mobile phone turns on Bluetooth and starts BLE scanning.

[0153] In step 703, the mobile phone and the headset first complete the connection of the underlying LE link.

[0154] Step 704: The mobile phone and the headset negotiate and bind keys via SMP.

[0155] Step 705: The link layer data is encrypted between the mobile phone and the headset.

[0156] Step 706: After the encryption between the mobile phone and the headset is completed, the mobile phone initiates a service query to the headset.

[0157] Step 707: The headset returns information about the services it supports to the mobile phone.

[0158] Step 708: After the mobile phone completes the service query of the headset, the mobile phone initiates an LE-Audio protocol connection with the headset.

[0159] Step 709: After the LE-Audio connection is established, the headset initiates a service query to the mobile phone.

[0160] Step 710: The mobile phone returns information about the services it supports to the headset.

[0161] The solution presented in this application primarily provides a method for optimizing LE-audio connection speeds. Specifically, after the phone and headset complete link-layer encryption, the phone prioritizes completing service queries and LE-audio protocol connections. The headset initiates service queries only after the phone completes its LE-audio protocol connection.

[0162] By adjusting the timing of the headset initiating service queries, the headset-initiated service query process is moved to after the phone and headset complete the LE audio protocol connection. This prevents the phone from asynchronously interleaving service queries initiated by the headset during the service query and protocol connection phase. Since service queries are a relatively time-consuming process, interleaving them would consume considerable time and slow down the overall connection speed. However, after adjusting the solution shown in the embodiment of this application, the overall LE-Audio connection speed can be increased by 2 to 3 seconds.

[0163] To sum up, through the scheme shown in the embodiment of the present application, an audio connection can be established between the audio device and the terminal device after the terminal device initiates and completes a service query to the audio device, and before the audio device initiates a service query to the terminal device; in the above scheme, when establishing an audio connection between the audio device and the terminal device, the completion time of the audio connection is controlled before the audio device completes the query to the terminal device, thereby avoiding meaningless waiting, greatly shortening the time to establish the audio connection, and improving the efficiency of establishing the audio connection.

[0164] In the above Figure 3 or Figure 4In another possible implementation of the scheme shown, if it is to be ensured that the time when the audio connection is established is earlier than the time when the terminal device completes the service query of the audio device, and later than the time when the audio device completes the service query of the terminal device, the audio device may also initiate a service query to the terminal device during the process of the terminal device querying the audio device, or during the process of establishing an audio connection between the audio device and the terminal device, and the terminal device may not respond to the service query initiated for the audio connection before the above-mentioned audio connection is established.

[0165] Please refer to Figure 8 , which shows a flow chart of a connection establishment method provided by an exemplary embodiment of the present application. The method can be interactively executed by a terminal device and an audio device; wherein the audio device can be the above-mentioned Figure 1 The audio device 110 in the system shown, the terminal device can be Figure 1 The terminal device 120 in the system is shown. The method may include the following steps.

[0166] Step 801: The terminal device initiates a service query to the audio device. Correspondingly, the audio device accepts the service query initiated by the terminal device.

[0167] Among them, after the underlying LE connection is established between the terminal device and the audio device, the terminal device can initiate a service query process to the audio device, for example, it can query which services the audio device supports, and the capabilities / attributes corresponding to the services supported by the audio device.

[0168] This step is the same as above Figure 6 Step 601 in the illustrated embodiment is similar and will not be described again here.

[0169] In step 802, the audio device initiates a service query to the terminal device, and the terminal device does not respond to the service query initiated by the audio device.

[0170] In an embodiment of the present application, before the audio connection is established, if the terminal device receives a service query instruction sent by the audio device, the terminal device may suspend responding to the service query instruction sent by the audio device.

[0171] In an embodiment of the present application, after the underlying LE link encryption is completed between the terminal device and the audio device, the audio device can initiate a service query to the terminal device, for example, by sending a service query instruction to the terminal device. At this time, if the terminal device receives the service query instruction sent by the audio device before the audio connection is established, the terminal device can temporarily not initiate relevant information about the services supported by the terminal device to the audio device, so as to avoid occupying communication resources between the terminal device and the audio device.

[0172] Step 803: After the terminal device completes the service query for the audio device, an audio connection is established between the terminal device and the audio device.

[0173] In an embodiment of the present application, after the terminal device completes the service query for the audio device, the terminal device can initiate the process of establishing an audio connection regardless of whether the terminal device receives the service query instruction sent by the audio device.

[0174] The service query process between the terminal device and the audio device can refer to the above Figure 6 The description of step 802 in the illustrated embodiment will not be repeated here.

[0175] Step 804: After the audio connection is established, the terminal device responds to the service query initiated by the audio device.

[0176] In an embodiment of the present application, after the audio connection is established, the terminal device can send relevant information about the services supported by the terminal device to the audio device according to the service query instruction previously sent by the audio device, so as to complete the service query of the terminal device by the audio device.

[0177] In another possible implementation, after receiving the service query instruction sent by the audio device, if the terminal device determines that the audio connection has not been established, the terminal device can return a rejection response to the audio device, which can be used to instruct the audio device to postpone the service query of the terminal device.

[0178] Accordingly, after receiving the postponement response, the audio device will not initiate a service query to the terminal device for a subsequent specified period of time. For example, after receiving the postponement response, the audio device can start a timer with a specified duration, and when the timer expires, it will initiate a service query to the terminal device again.

[0179] The specified length may be indicated by the rejection response, or may be a default value set in the audio device.

[0180] In a possible implementation, before initiating a service query for the audio device, the following steps are further included:

[0181] The terminal device and the audio device can reduce the connection interval between the terminal device and the audio device, thereby shortening the service query process of the terminal device to the audio device and the audio connection establishment process between the terminal device and the audio device.

[0182] In a possible implementation, after the audio connection is established, the terminal device and the audio device resume the connection interval.

[0183] The above connection interval reduction and recovery process can be referred to Figure 6 The relevant descriptions in the illustrated embodiments will not be repeated here.

[0184] Please refer to Figure 9 , which is a schematic diagram of the connection establishment process involved in the embodiment of the present application. Taking the terminal device as a mobile phone, the audio device as a Bluetooth headset, and the established connection as an LE-Audio connection as an example, the method may include the following steps.

[0185] Step 901: Open the headset cover, pair it, and start sending Bluetooth low energy broadcasts.

[0186] Step 902: The mobile phone turns on Bluetooth and starts BLE scanning.

[0187] In step 903, the mobile phone and the headset first complete the connection of the underlying LE link.

[0188] Step 904: The mobile phone and the headset negotiate and bind keys via SMP.

[0189] Step 905: The link layer data is encrypted between the mobile phone and the headset.

[0190] Step 906: After the encryption between the mobile phone and the headset is completed, the mobile phone initiates a service query to the headset.

[0191] Step 907: The headset returns information about the services it supports to the mobile phone.

[0192] Step 908: The headset initiates a service query to the mobile phone.

[0193] Step 909: The mobile phone does not respond to the headset's service query.

[0194] Step 910: After the mobile phone completes the service query of the headset, the mobile phone initiates an LE-Audio protocol connection with the headset.

[0195] Step 911: After the LE-Audio connection is established, the mobile phone returns information about the services it supports to the headset.

[0196] To sum up, through the scheme shown in the embodiment of the present application, the terminal device can initiate the process of establishing an audio connection with the audio device after initiating a service query to the audio device and completing the service query, and before completing the establishment of the audio connection, the terminal device does not respond to the audio device's service query to the terminal device. In the above scheme, when establishing an audio connection between the audio device and the terminal device, the completion time of the audio connection is controlled before the audio device completes the query to the terminal device, thereby avoiding meaningless waiting, greatly shortening the establishment time of the audio connection, and improving the efficiency of establishing the audio connection.

[0197] Please refer to Figure 10 , which shows a schematic diagram of the structure of a connection establishment device provided by an exemplary embodiment of the present application. The connection establishment device 1000 can be used to perform the above Figure 3 、 Figure 6 or Figure 8 In the embodiment shown, all or part of the steps are performed by the audio device; the apparatus includes:

[0198] The first query module 1001 is used to accept service queries initiated by terminal devices;

[0199] The first establishing module 1002 is configured to establish an audio connection with the terminal device after the terminal device completes the service query for the audio device and before the audio device completes the service query for the terminal device.

[0200] In a possible implementation, the audio device initiates a service query for the terminal device at a time later than the terminal device initiates a service query for the audio device.

[0201] In a possible implementation, the process of establishing the audio connection with the terminal device is initiated by the terminal device after completing a service query for the audio device and before the audio device initiates a service query for the terminal device.

[0202] In a possible implementation, the first query module 1001 is further configured to initiate a service query for the terminal device after the audio connection with the terminal device is established.

[0203] In a possible implementation, the apparatus further includes:

[0204] The first interval adjustment module is used to reduce the connection interval between the terminal device and the audio device before the first query module accepts the service query initiated by the terminal device; the connection interval is the time interval between two adjacent connection events between the terminal device and the audio device.

[0205] In a possible implementation, the first interval adjustment module is further configured to restore the connection interval after the audio connection is established.

[0206] In one possible implementation, the audio connection is a Bluetooth Low Energy (LE) audio connection.

[0207] In a possible implementation, the apparatus further includes:

[0208] A broadcast sending module, configured to send a BLE broadcast message before the first query module accepts a service query initiated by the terminal device;

[0209] The first establishing module 1002 is further configured to establish a bottom-layer LE connection with the terminal device that has searched for the BLE broadcast message.

[0210] To sum up, through the scheme shown in the embodiment of the present application, an audio connection can be established between the audio device and the terminal device after the terminal device initiates and completes a service query to the audio device, and before the audio device completes the service query to the terminal device; in the above scheme, when establishing an audio connection between the audio device and the terminal device, the completion time of the audio connection is controlled before the audio device completes the query to the terminal device, thereby avoiding meaningless waiting, greatly shortening the time to establish the audio connection, and improving the efficiency of establishing the audio connection.

[0211] Please refer to Figure 11 , which shows a schematic diagram of the structure of a connection establishment device provided by an exemplary embodiment of the present application. The connection establishment device 1100 can be used to perform the above Figure 4 、 Figure 6 or Figure 8 In the embodiment shown, all or part of the steps are performed by the terminal device; the apparatus includes:

[0212] The second query module 1101 is used to initiate a service query for the audio device;

[0213] The second establishing module 1102 is configured to establish an audio connection with the audio device after the terminal device completes the service query for the audio device and before the audio device completes the service query for the terminal device.

[0214] In a possible implementation, the audio device initiates a service query for the terminal device at a time later than the terminal device initiates a service query for the audio device.

[0215] In a possible implementation, the second establishing module 1102 is configured to establish the audio connection after the terminal device completes the service query for the audio device and before the audio device initiates the service query for the terminal device.

[0216] In a possible implementation, the apparatus further includes:

[0217] The response suspension module is configured to suspend responding to the service query instruction if a service query instruction sent by the audio device is received before the audio connection is established.

[0218] In a possible implementation, the apparatus further includes:

[0219] The response module is configured to return a response message to the service query instruction to the audio device after the audio connection is established.

[0220] In a possible implementation, the apparatus further includes:

[0221] The message sending module is used to send an audio connection establishment completion message to the audio device when the audio connection establishment is completed; the audio connection establishment completion message is used to trigger the audio device to send the service query instruction.

[0222] In a possible implementation, the apparatus further includes:

[0223] The second interval adjustment module is used to reduce the connection interval between the terminal device and the audio device before the second query module initiates a service query for the audio device; the connection interval is the time interval between two adjacent connection events between the terminal device and the audio device.

[0224] In a possible implementation, the second interval adjustment module is further configured to restore the connection interval after the audio connection is established.

[0225] In one possible implementation, the audio connection is a Bluetooth Low Energy (LE) audio connection.

[0226] In a possible implementation, the apparatus further includes:

[0227] A search module, configured to search for BLE broadcast messages before the second query module initiates a service query for the audio device;

[0228] The second establishing module 1102 is further configured to establish a bottom layer LE connection with the audio device when the BLE broadcast message sent by the audio device is searched.

[0229] To sum up, through the scheme shown in the embodiment of the present application, an audio connection can be established between the audio device and the terminal device after the terminal device initiates and completes a service query to the audio device, and before the audio device completes the service query to the terminal device; in the above scheme, when establishing an audio connection between the audio device and the terminal device, the completion time of the audio connection is controlled before the audio device completes the query to the terminal device, thereby avoiding meaningless waiting, greatly shortening the time to establish the audio connection, and improving the efficiency of establishing the audio connection.

[0230] It should be noted that the device provided in the above embodiment only uses the division of the above-mentioned functional modules as an example to implement its functions. In actual applications, the above-mentioned functions can be assigned to different functional modules according to actual needs, that is, the content structure of the device can be divided into different functional modules to complete all or part of the functions described above.

[0231] Regarding the apparatus in the above embodiment, the specific manner in which each module performs operations has been described in detail in the embodiment of the method, and will not be elaborated here.

[0232] Please refer to Figure 12 , which shows a schematic diagram of the structure of a computer device 1200 provided in one embodiment of the present application. The computer device 1200 may include: a processor 1201, a receiver 1202, a transmitter 1203, a memory 1204 and a bus 1205.

[0233] The processor 1201 includes one or more processing cores. The processor 1201 executes various functional applications and information processing by running software programs and modules.

[0234] The receiver 1202 and the transmitter 1203 may be implemented as a communication component, which may be a communication chip, which may also be called a transceiver.

[0235] The memory 1204 is connected to the processor 1201 via a bus 1205 .

[0236] The memory 1204 may be used to store a computer program, and the processor 1201 may be used to execute the computer program to implement each step in the above method embodiment.

[0237] In addition, the memory 1204 can be implemented by any type of volatile or non-volatile storage device or a combination thereof, including but not limited to: magnetic disk or optical disk, electrically erasable programmable read-only memory, erasable programmable read-only memory, static random access memory, read-only memory, magnetic memory, flash memory, and programmable read-only memory.

[0238] In an exemplary embodiment, when the computer device 1200 is implemented as a terminal device, the transceiver 1202 is used to initiate a service query for the audio device; after the terminal device completes the service query for the audio device and before the audio device completes the service query for the terminal device, an audio connection is established with the audio device.

[0239] The processes executed by the processor 1201 and / or the transceiver 1202 in the computer device 1200 may refer to the steps executed by the terminal device in the above-mentioned method embodiments.

[0240] In another exemplary embodiment, when the computer device 1200 is implemented as an audio device, the transceiver 1202 is used to accept a service query initiated by a terminal device; after the terminal device completes the service query for the audio device and before the audio device completes the service query for the terminal device, establish an audio connection with the terminal device.

[0241] The processes executed by the processor 1201 and / or the transceiver 1202 in the computer device 1200 may refer to the steps executed by the audio device in the above-mentioned method embodiments.

[0242] An embodiment of the present application also provides a computer-readable storage medium, which stores a computer program. The computer program is loaded and executed by a processor to implement all or part of the steps performed by the terminal device or audio device in the above-mentioned various method embodiments.

[0243] The present application also provides a chip, which is used to run in a computer device so that the computer device executes all or part of the steps executed by the terminal device or audio device in the above-mentioned various method embodiments.

[0244] The present application also provides a computer program product, which includes computer instructions stored in a computer-readable storage medium. The computer program product can be used to implement all or part of the steps performed by the terminal device or audio device in the above-mentioned various method embodiments.

[0245] The present application also provides a computer program product, which includes computer instructions stored in a computer-readable storage medium. A processor of a computer device reads the computer instructions from the computer-readable storage medium and executes the computer instructions, causing the computer device to perform all or part of the steps performed by the terminal device or audio device in each of the above-mentioned method embodiments.

[0246] The present application also provides a computer program, which is executed by a processor of a computer device to implement all or part of the steps executed by a terminal device or an audio device in the above-mentioned various method embodiments.

[0247] Those skilled in the art will appreciate that in one or more of the above examples, the functions described in the embodiments of the present application can be implemented using hardware, software, firmware, or any combination thereof. When implemented using software, these functions can be stored in a computer-readable medium or transmitted as one or more instructions or codes on a computer-readable medium. Computer-readable media include computer storage media and communication media, wherein communication media include any media that facilitates the transmission of computer programs from one place to another. The storage medium can be any available medium that can be accessed by a general-purpose or special-purpose computer.

[0248] The above description is merely an exemplary embodiment of the present application and is not intended to limit the present application. Any modifications, equivalent replacements, improvements, etc. made within the spirit and principles of the present application shall be included in the scope of protection of the present application.

Claims

1. A connection establishment method, characterized in that: The method is performed by an audio device, and includes: Accept service inquiries initiated by terminal devices; After the terminal device completes the service query for the audio device and before the audio device completes the service query for the terminal device, an audio connection is established with the terminal device.

2. The method according to claim 1, characterized in that The time when the audio device initiates the service query for the terminal device is after the time when the terminal device initiates the service query for the audio device.

3. The method according to claim 1, characterized in that The process of establishing the audio connection with the terminal device is initiated by the terminal device after completing the service query of the audio device and before the audio device initiates the service query of the terminal device.

4. The method according to claim 1, wherein The method further comprises: After the audio connection with the terminal device is established, a service query for the terminal device is initiated.

5. The method according to claim 1, wherein Before accepting the service query initiated by the terminal device, the method further includes: Reduce the connection interval between the terminal device and the audio device; the connection interval is the time interval between two adjacent connection events between the terminal device and the audio device.

6. The method according to claim 5, characterized in that The method further comprises: After the audio connection is established, the connection interval is restored.

7. The method according to any one of claims 1 to 6, characterized in that: The audio connection is a Bluetooth Low Energy LE audio connection.

8. The method according to claim 7, characterized in that Before accepting the service query initiated by the terminal device, the method further includes: Send Bluetooth Low Energy (BLE) broadcast messages; Establish an underlying low-power LE connection with the terminal device that searches for the BLE broadcast message.

9. A connection establishment method, characterized in that: The method is executed by a terminal device, and includes: Initiate service queries for audio devices; After the terminal device completes the service query for the audio device and before the audio device completes the service query for the terminal device, an audio connection is established with the audio device.

10. The method according to claim 9, characterized in that The time when the audio device initiates the service query for the terminal device is after the time when the terminal device initiates the service query for the audio device.

11. The method according to claim 9, characterized in that The establishing of an audio connection with the audio device after the terminal device completes the service query for the audio device and before the audio device completes the service query for the terminal device includes: The audio connection is established after the terminal device completes the service query for the audio device and before the audio device initiates the service query for the terminal device.

12. The method according to claim 9, characterized in that The method further comprises: Before the audio connection is established, if a service query instruction sent by the audio device is received, responding to the service query instruction is suspended.

13. The method according to claim 12, characterized in that The method further comprises: After the audio connection is established, a response message to the service query instruction is returned to the audio device.

14. The method according to claim 9, characterized in that Before initiating a service query for the audio device, the method further includes: Reduce the connection interval between the terminal device and the audio device; the connection interval is the time interval between two adjacent connection events between the terminal device and the audio device.

15. The method according to claim 14, characterized in that The method further comprises: After the audio connection is established, the connection interval is restored.

16. The method according to any one of claims 9 to 15, characterized in that The audio connection is a Bluetooth Low Energy LE audio connection.

17. The method according to claim 16, characterized in that Before initiating a service query for the audio device, the method further includes: Search for BLE broadcast messages; When the BLE broadcast message sent by the audio device is searched, an underlying LE connection is established with the audio device.

18. A connection establishment device, characterized in that: The device comprises: A first query module, configured to accept a service query initiated by a terminal device; The first establishing module is configured to establish an audio connection with the terminal device after the terminal device completes a service query for the audio device and before the audio device completes a service query for the terminal device.

19. The device according to claim 18, characterized in that The time when the audio device initiates the service query for the terminal device is after the time when the terminal device initiates the service query for the audio device.

20. The device according to claim 18, characterized in that The process of establishing the audio connection with the terminal device is initiated by the terminal device after completing the service query of the audio device and before the audio device initiates the service query of the terminal device.

21. The device according to claim 18, characterized in that The first query module is further configured to initiate a service query for the terminal device after the audio connection with the terminal device is established.

22. The device according to claim 18, characterized in that The device further comprises: The first interval adjustment module is used to reduce the connection interval between the terminal device and the audio device before the first query module accepts the service query initiated by the terminal device; the connection interval is the time interval between two adjacent connection events between the terminal device and the audio device.

23. The device according to claim 22, characterized in that The first interval adjustment module is further configured to restore the connection interval after the audio connection is established.

24. The device according to any one of claims 18 to 23, characterized in that The audio connection is a Bluetooth Low Energy LE audio connection.

25. The device according to claim 24, characterized in that The device further comprises: A broadcast sending module, configured to send a BLE broadcast message before the first query module accepts a service query initiated by the terminal device; The first establishing module is further used to establish an underlying LE connection with the terminal device that searches for the BLE broadcast message.

26. A connection establishment device, characterized in that: The device comprises: A second query module is used to initiate a service query for the audio device; The second establishing module is configured to establish an audio connection with the audio device after the terminal device completes the service query for the audio device and before the audio device completes the service query for the terminal device.

27. The device according to claim 26, characterized in that The time when the audio device initiates the service query for the terminal device is after the time when the terminal device initiates the service query for the audio device.

28. The device according to claim 26, characterized in that The second establishing module is configured to establish the audio connection after the terminal device completes the service query for the audio device and before the audio device initiates the service query for the terminal device.

29. The device according to claim 26, characterized in that The device further comprises: The response suspension module is configured to suspend responding to the service query instruction if a service query instruction sent by the audio device is received before the audio connection is established.

30. The device according to claim 29, characterized in that The device further comprises: The response module is configured to return a response message to the service query instruction to the audio device after the audio connection is established.

31. The device according to claim 26, characterized in that The device further comprises: The second interval adjustment module is used to reduce the connection interval between the terminal device and the audio device before the second query module initiates a service query for the audio device; the connection interval is the time interval between two adjacent connection events between the terminal device and the audio device.

32. The device according to claim 31, characterized in that The second interval adjustment module is further configured to restore the connection interval after the audio connection is established.

33. The device according to any one of claims 26 to 32, characterized in that The audio connection is a Bluetooth Low Energy LE audio connection.

34. The device according to claim 33, characterized in that The device further comprises: A search module, configured to search for BLE broadcast messages before the second query module initiates a service query for the audio device; The second establishing module is further configured to establish a bottom layer LE connection with the audio device when the BLE broadcast message sent by the audio device is searched.

35. A computer device, characterized in that: The computer device includes a processor, a memory and a transceiver; The memory stores a computer program, and the processor executes the computer program to enable the computer device to implement the connection establishment method according to any one of claims 1 to 8, or to implement the connection establishment method according to any one of claims 9 to 17.

36. A computer-readable storage medium, characterized in that The storage medium stores a computer program, and the computer program is used to be executed by a processor to implement the connection establishment method according to any one of claims 1 to 8, or to implement the connection establishment method according to any one of claims 9 to 17.

37. A chip, characterized in that: The chip is used to run in a computer device, so that the computer device executes the connection establishment method according to any one of claims 1 to 8, or implements the connection establishment method according to any one of claims 9 to 17.

38. A computer program product, characterized in that The computer program product includes computer instructions, which are stored in a computer-readable storage medium; the computer program product is used to implement the connection establishment method according to any one of claims 1 to 8, or to implement the connection establishment method according to any one of claims 9 to 17.

Citation Information

Patent Citations

  • Audio data transmission method and device, chip and electronic equipment

    CN111294783A

  • Bluetooth equipment, Bluetooth preemption method and device thereof, and computer readable storage medium

    CN111741456A