Equipment connection method and device, electronic equipment, storage medium and program product

By establishing a Bluetooth low-power connection between the Bluetooth terminal and the mobile terminal, obtaining a random Bluetooth MAC address and actively launching a classic Bluetooth pairing request, the problem of complex and inefficient pairing process in the existing technology is solved, and more efficient connection establishment and a better user experience is achieved.

CN120018319APending Publication Date: 2025-05-16SHANGHAI XIAODU TECHNOLOGY CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202510157563.X
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-02-12
Publication Date
2025-05-16

AI Technical Summary

Technical Problem

The classic Bluetooth pairing process between existing Bluetooth terminals and mobile terminals is complex, inefficient, poor user experience, and Bluetooth terminals cannot actively initiate pairing connections.

Method used

By establishing a Bluetooth low-power connection between the Bluetooth terminal and the mobile terminal, the random Bluetooth MAC address of the mobile terminal is obtained, and the classic Bluetooth pairing request is actively sent to the mobile terminal based on the address until the pairing is established.

Benefits of technology

The classic Bluetooth pairing process between Bluetooth terminals and mobile terminals is simplified, the efficiency of connection establishment is improved, and the user experience is improved.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120018319A_ABST
    Figure CN120018319A_ABST
Patent Text Reader

Abstract

The invention provides an equipment connection method and device, a computer readable storage medium and a computer program product, and relates to the technical field of short-distance wireless connection, in particular to the technical field of Bluetooth wireless connection. The equipment connection method comprises the following steps: in response to successful establishment of Bluetooth low-power-consumption connection with a mobile terminal, acquiring a random Bluetooth media access control address of the mobile terminal; sending a classic Bluetooth pairing request to the mobile terminal based on the random Bluetooth media access control address; and in response to a received confirmation response message of the mobile terminal for the classic Bluetooth pairing request, establishing classic Bluetooth pairing with the mobile terminal. According to the method, the classic Bluetooth pairing process between the Bluetooth terminal and the mobile terminal can be simplified, the efficiency of establishing the classic Bluetooth connection is improved, and the user experience is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present disclosure relates to the field of short-range wireless connection technology, specifically to the field of Bluetooth wireless connection technology, and in particular to a device connection method, apparatus, electronic device, storage medium and program product. Background Art

[0002] With the development of Bluetooth wireless connection technology, applications based on Bluetooth wireless connection technology are becoming more and more abundant and very common and widespread. Specifically, Bluetooth peripherals (also called Bluetooth terminals, such as Bluetooth headsets, glasses, speakers, etc.) can establish Bluetooth wireless connections with mobile terminals (such as mobile phones) to achieve data transmission. Summary of the invention

[0003] The embodiments of the present disclosure provide a device connection method, a device connection apparatus, an electronic device, a computer-readable storage medium, and a computer program product. The device connection solution provided by the embodiments of the present disclosure can simplify the classic Bluetooth pairing process between a Bluetooth terminal and a mobile terminal, improve the efficiency of establishing a classic Bluetooth connection, and enhance the user experience.

[0004] In a first aspect, an embodiment of the present disclosure proposes a device connection method, including: in response to successfully establishing a Bluetooth low energy connection with a mobile terminal, obtaining a random Bluetooth media access control address of the mobile terminal; sending a classic Bluetooth pairing request to the mobile terminal based on the random Bluetooth media access control address; in response to receiving a confirmation response message from the mobile terminal to the classic Bluetooth pairing request, establishing a classic Bluetooth pairing with the mobile terminal.

[0005] In the second aspect, an embodiment of the present disclosure proposes a device connection method, including: in response to successfully establishing a Bluetooth low energy connection with a Bluetooth terminal, receiving a classic Bluetooth pairing request sent by the Bluetooth terminal based on a random Bluetooth media access control address of the mobile terminal; in response to confirming pairing with the Bluetooth terminal based on the classic Bluetooth pairing request, sending a confirmation response message to the Bluetooth terminal, and establishing a classic Bluetooth pairing with the Bluetooth terminal.

[0006] In a third aspect, an embodiment of the present disclosure proposes a device connection apparatus, comprising: an acquisition module, a sending module and a first processing module. The acquisition module is configured to acquire a random Bluetooth media access control address of a mobile terminal in response to successfully establishing a Bluetooth low energy connection with a mobile terminal; the sending module is configured to send a classic Bluetooth pairing request to the mobile terminal based on the random Bluetooth media access control address; and the first processing module is configured to establish a classic Bluetooth pairing with the mobile terminal in response to receiving a confirmation response message from the mobile terminal to the classic Bluetooth pairing request.

[0007] In a fourth aspect, an embodiment of the present disclosure proposes a device connection apparatus, comprising: a receiving module and a second processing module. The receiving module is configured to, in response to successfully establishing a Bluetooth low energy connection with a Bluetooth terminal, receive a classic Bluetooth pairing request sent by the Bluetooth terminal based on a random Bluetooth media access control address of a mobile terminal; the second processing module is configured to, in response to confirming pairing with the Bluetooth terminal based on the classic Bluetooth pairing request, send a confirmation response message to the Bluetooth terminal, and establish classic Bluetooth pairing with the Bluetooth terminal.

[0008] In a fifth aspect, an embodiment of the present disclosure provides an electronic device, comprising: at least one processor; and a memory communicatively connected to the at least one processor; wherein the memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor so that when the at least one processor executes, the device connection method described in any implementation method in the first aspect or the second aspect can be implemented.

[0009] In a sixth aspect, an embodiment of the present disclosure provides a non-transitory computer-readable storage medium storing computer instructions, which are used to enable a computer to implement a device connection method as described in any implementation method of the first aspect or the second aspect when executed.

[0010] In a seventh aspect, an embodiment of the present disclosure provides a computer program product comprising a computer program, which, when executed by a processor, can implement the device connection method described in any implementation manner in the first aspect or the second aspect.

[0011] It should be understood that the content described in this section is not intended to identify the key or important features of the embodiments of the present disclosure, nor is it intended to limit the scope of the present disclosure. Other features of the present disclosure will become easily understood through the following description. BRIEF DESCRIPTION OF THE DRAWINGS

[0012] Other features, objects and advantages of the present disclosure will become more apparent from the detailed description of non-limiting embodiments made with reference to the following drawings:

[0013] Figure 1 is an exemplary system architecture in which the present disclosure may be applied;

[0014] Figure 2 A flow chart of a device connection method provided by an embodiment of the present disclosure;

[0015] Figure 3 A flowchart of another device connection method provided by an embodiment of the present disclosure;

[0016] Figure 4 A flowchart of another device connection method provided in an embodiment of the present disclosure;

[0017] Figure 5 A flowchart of another device connection method provided in an embodiment of the present disclosure;

[0018] Figure 6 An interactive flow chart of device connection in an application scenario provided by an embodiment of the present disclosure;

[0019] Figure 7 A structural block diagram of a device connection apparatus provided in an embodiment of the present disclosure;

[0020] Figure 8 A structural block diagram of another device connection device provided in an embodiment of the present disclosure;

[0021] Fig. 9 A schematic diagram of the structure of an electronic device suitable for executing a device connection method provided in an embodiment of the present disclosure. DETAILED DESCRIPTION

[0022] The following is a description of exemplary embodiments of the present disclosure in conjunction with the accompanying drawings, including various details of the embodiments of the present disclosure to facilitate understanding, which should be considered as merely exemplary. Therefore, it should be recognized by those of ordinary skill in the art that various changes and modifications may be made to the embodiments described herein without departing from the scope and spirit of the present disclosure. Similarly, for clarity and conciseness, descriptions of well-known functions and structures are omitted in the following description. It should be noted that the embodiments in the present disclosure and the features in the embodiments may be combined with each other without conflict.

[0023] It should be pointed out that in the technical solution of the present disclosure, the collection, acquisition, storage, processing, transmission, provision, disclosure and application of user personal information (such as account information, etc.) are all carried out with the user's knowledge and explicit authorization, comply with the relevant laws and regulations, and do not violate public order and good morals.

[0024] With the development of Bluetooth wireless connection technology, applications based on Bluetooth wireless connection technology are becoming more and more abundant and very common and widespread. Specifically, Bluetooth peripherals (also called Bluetooth terminals, such as Bluetooth headsets, smart glasses, speakers, car computers, etc.) can establish Bluetooth wireless connections with mobile terminals (such as mobile phones) to achieve data transmission.

[0025] In some scenarios, audio data transmission can be achieved between Bluetooth peripherals and mobile terminals, such as listening to songs, making and receiving calls based on Bluetooth wireless connection. In these scenarios, it is necessary to establish a classic Bluetooth connection between the Bluetooth terminal and the mobile terminal, including but not limited to the classic Bluetooth connection based on the Advanced Audio Distribution Profile (A2DP). In the related art, the user usually manually initiates the pairing and connection between the Bluetooth terminal to be connected based on the visual interface of the mobile terminal (generally the system settings page). Specifically, it is necessary to manually trigger the scanning of the Bluetooth terminal near the mobile terminal. At this time, the opposite device, that is, the Bluetooth terminal, needs to be in a scannable state. After the mobile terminal responds to the scanning of the opposite device, it initiates Bluetooth pairing. In this way, since the Bluetooth terminal cannot obtain the Bluetooth media access control (Media Access Control Address, MAC) address of the mobile terminal, the Bluetooth peripheral cannot actively initiate Bluetooth pairing with the mobile terminal, and the user experience of the overall Bluetooth pairing process in the related art is poor, and the process is not smooth enough. Among them, A2DP is mainly used for wireless transmission of audio data, which is suitable for application scenarios that require high-quality audio transmission, and the transmission of audio data requires continuous connection and relatively high bandwidth.

[0026] Moreover, the above-mentioned pairing initiated by the mobile terminal with the Bluetooth terminal requires calling the system-level application programming interface (Application Programming Interface, API) of the mobile terminal. As the system version of the mobile terminal becomes higher, the permissions of its system-level API become tighter. The applications (such as third-party applications) (APPlication, APP) installed on the mobile terminal cannot call the system APP to achieve active pairing connection with the Bluetooth peripheral, that is, it is impossible to actively initiate Bluetooth pairing within the application of the mobile terminal.

[0027] Figure 1 An exemplary system architecture 100 is shown to which embodiments of the device connection scheme of the present disclosure may be applied.

[0028] like Figure 1As shown, the system architecture 100 may include mobile terminals 101, 102, 103, a network 104 and Bluetooth terminals 105, 106, 107. The network 104 is used to provide a medium for communication links between the mobile terminals 101, 102, 103 and the Bluetooth terminals 105, 106, 107. The network 104 may include wireless communication links, etc. In the embodiment of the present disclosure, exemplarily, the Bluetooth terminal 105 may include smart glasses, the Bluetooth terminal 106 may include a Bluetooth headset, and the Bluetooth terminal 107 may include a speaker. Users can use the mobile terminals 101, 102, 103 to interact with the Bluetooth terminals 105, 106, 107 through the network 104. Various applications for realizing information communication between the two may be installed on the mobile terminals 101, 102, 103, such as applications corresponding to each Bluetooth terminal.

[0029] Mobile terminals 101, 102, 103 and Bluetooth terminals 105, 106, 107 can be hardware or software. When mobile terminals 101, 102, 103 are hardware, they can be various electronic devices with display screens, including but not limited to smart phones, tablet computers, laptop portable computers and desktop computers, etc.; when mobile terminals 101, 102, 103 are software, they can be installed in the electronic devices listed above, which can be implemented as multiple software or software modules, or as a single software or software module, which is not specifically limited here. When Bluetooth terminals 105, 106, 107 are hardware, they can be various electronic devices with corresponding functions, including but not limited to smart glasses, speakers, Bluetooth headsets, etc., and further, Bluetooth terminals 105, 106, 107 can also have display screens; when Bluetooth terminals 105, 106, 107 are software, they can be implemented as multiple software or software modules, or as a single software or software module, which is not specifically limited here.

[0030] The mobile terminals 101, 102, and 103 can provide various services through various built-in applications. For example, the applications that can interact or communicate with the corresponding Bluetooth terminals 105, 106, and 107 can be provided. When the Bluetooth terminals 105, 106, and 107 establish a connection with the mobile terminals 101, 102, and 103, the following effects can be achieved: after the Bluetooth terminal successfully establishes a Bluetooth low-power connection with the mobile terminal, the random Bluetooth MAC address of the mobile terminal can be obtained. Further, the Bluetooth terminal can actively initiate a classic Bluetooth pairing request to the mobile terminal based on the random Bluetooth MAC address, and establish a classic Bluetooth pairing with the mobile terminal when receiving a confirmation response message from the mobile terminal for the classic Bluetooth pairing request. In this way, the Bluetooth terminal can successfully and actively initiate a classic Bluetooth pairing to the mobile terminal through the Bluetooth low-power connection established with the mobile terminal, and further based on the obtained random Bluetooth MAC address of the mobile terminal, thereby simplifying the classic Bluetooth pairing process between the Bluetooth terminal and the mobile terminal, improving the efficiency of establishing a classic Bluetooth connection, and improving the user experience.

[0031] It should be understood that Figure 1 The number of Bluetooth terminals, networks and mobile terminals is only for illustration. Any number of Bluetooth terminals, networks and mobile terminals may be provided as required. It should be noted that the Bluetooth peripherals (or Bluetooth terminals) and the mobile terminals in the embodiments of the present disclosure are different terminal devices respectively provided with Bluetooth communication modules.

[0032] Please refer to Figure 2 , Figure 2 A flow chart of a device connection method provided in an embodiment of the present disclosure, wherein the process 200 of the device connection method includes the following steps:

[0033] Step 201: In response to successfully establishing a Bluetooth low energy connection with a mobile terminal, a random Bluetooth media access control address of the mobile terminal is obtained.

[0034] This step is intended to be performed by the above-mentioned execution subject of the device connection method (for example Figure 1The Bluetooth terminals 105, 106, and 107 shown in the figure respond to having successfully established a Bluetooth Low Energy (BLE) connection with the mobile terminal. The successful establishment of this lightweight Bluetooth connection based on the BLE protocol can be independent of any user confirmation operation, thereby achieving a user-imperceptible connection with high connection efficiency (for example, a connection can be established within a few milliseconds), and enabling efficient data transmission. In order to protect privacy issues and ensure the communication security based on the BLE connection, the Bluetooth MAC address of the mobile terminal that can be obtained by the Bluetooth terminal based on the BLE connection is randomly generated, and the random Bluetooth MAC address of the mobile terminal can point to the mobile terminal, but is different from the real Bluetooth MAC address of the mobile terminal.

[0035] Among them, the BLE protocol is a wireless personal area network technology, which is mainly used for low-power, short-distance data transmission. It is suitable for application scenarios that require low energy consumption and fast response. Devices that transmit data based on the BLE protocol will enter low-power mode when not in use, and will only wake up to transmit data when needed, which will extend the battery life of the device.

[0036] Step 202: Send a classic Bluetooth pairing request to the mobile terminal based on the random Bluetooth media access control address.

[0037] On the basis of step 201, this step aims to enable the above-mentioned execution subject to actively send a classic Bluetooth pairing request to the mobile terminal based on the random Bluetooth MAC address of the mobile terminal obtained above. Compared with the situation in the related art that the Bluetooth terminal cannot actively initiate Bluetooth pairing with the mobile terminal due to the inability to obtain the Bluetooth MAC address of the mobile terminal, the embodiment of the present disclosure introduces BLE connection technology, so that the Bluetooth terminal can efficiently initiate classic Bluetooth pairing to the mobile terminal based on the acquired random Bluetooth MAC address of the mobile terminal, and since the classic Bluetooth pairing is initiated by the Bluetooth terminal rather than the mobile terminal, the mobile terminal does not need to be in a state that can be scanned or discovered, that is, there is no need for the user to manually enter the visual interface of the mobile terminal to start it into the scanned or discovered mode, and there will be no situation where the classic Bluetooth pairing pop-up window on the mobile terminal side cannot pop up due to failure to enter the mode and the pairing cannot be completed.

[0038] Step 203: In response to receiving a confirmation response message from the mobile terminal to the classic Bluetooth pairing request, establish classic Bluetooth pairing with the mobile terminal.

[0039] On the basis of step 202, this step aims at enabling the execution subject to establish classic Bluetooth pairing with the mobile terminal when successfully receiving a confirmation response message from the peer device, i.e., the mobile terminal, in response to the classic Bluetooth pairing request.

[0040] In the device connection method provided by the embodiment of the present disclosure, after the Bluetooth terminal successfully establishes a Bluetooth low energy connection with the mobile terminal, the random Bluetooth MAC address of the mobile terminal can be obtained. Further, the Bluetooth terminal can actively initiate a classic Bluetooth pairing request to the mobile terminal based on the random Bluetooth MAC address, and establish a classic Bluetooth pairing with the mobile terminal upon receiving a confirmation response message from the mobile terminal for the classic Bluetooth pairing request. In this way, the Bluetooth terminal can successfully actively initiate a classic Bluetooth pairing to the mobile terminal based on the acquired random Bluetooth MAC address of the mobile terminal through the Bluetooth low energy connection established with the mobile terminal, thereby simplifying the classic Bluetooth pairing process between the Bluetooth terminal and the mobile terminal, improving the efficiency of establishing a classic Bluetooth connection, and enhancing the user experience.

[0041] Please refer to Figure 3 , Figure 3 A flowchart of a device connection method provided in an embodiment of the present disclosure, wherein an execution subject (eg Figure 1 The Bluetooth terminals 105, 106, and 107 shown in the figure can send (or broadcast) a Bluetooth low energy BLE broadcast message including a service universally unique identifier (UUID) and a feature UUID for the mobile terminal to scan and identify, as well as the manufacturer identification information of the Bluetooth terminal, so that the efficiency and accuracy of scanning and identifying the Bluetooth terminal can be improved. Among them, the service UUID can be used to identify the services that the Bluetooth terminal can provide, and the feature UUID can be used to identify various characteristics under the services that the Bluetooth terminal can provide.

[0042] In some optional implementations of the embodiments of the present disclosure, the execution subject may enter the periodic sending mode of the BLE broadcast message in response to the working power being activated, so as to simplify the process of scanning or discovering the Bluetooth terminal, thereby improving the efficiency of establishing a BLE connection. In some other optional implementations of the embodiments of the present disclosure, the operation of the execution subject sending the BLE broadcast message may be based on the following: Figure 3 The following steps 301 and 302 in the process 300 shown are implemented:

[0043] Step 301: receiving a broadcast indication sent by a mobile terminal based on an application corresponding to a Bluetooth terminal.

[0044] Step 302: Send a Bluetooth low energy broadcast message based on the broadcast indication.

[0045] The above steps 301 and 302 are intended to be performed by the above execution subject of the device connection method (for example Figure 1The Bluetooth terminals 105, 106, and 107 shown can passively start broadcasting BLE broadcast messages upon receiving a broadcast instruction sent by a mobile terminal based on an application APP corresponding to the Bluetooth terminal installed thereon, thereby reducing the power consumption of the Bluetooth terminal and extending the service life of the device.

[0046] In some optional implementations of the embodiments of the present disclosure, the above-mentioned execution subject can receive the above-mentioned broadcast indication based on other wireless communication methods different from the Bluetooth wireless communication method, which is not specifically limited here.

[0047] Step 303: Receive a Bluetooth low energy connection request sent by the mobile terminal in response to the Bluetooth low energy broadcast message.

[0048] Step 304: Establish a Bluetooth low energy connection with the mobile terminal based on the Bluetooth low energy connection request.

[0049] On the basis of the above step 302, the above execution entity can efficiently establish a user-imperceptible BLE connection with the mobile terminal in response to a BLE connection request initiated by the mobile terminal based on scanning the above BLE broadcast message.

[0050] Step 305: In response to successfully establishing a Bluetooth low energy connection with the mobile terminal, a random Bluetooth media access control address of the mobile terminal is obtained.

[0051] Step 306: Send a classic Bluetooth pairing request to the mobile terminal based on the random Bluetooth media access control address.

[0052] Step 307: in response to receiving a confirmation response message from the mobile terminal to the classic Bluetooth pairing request, establishing classic Bluetooth pairing with the mobile terminal.

[0053] The above steps 305-307 are similar to Figure 2 Steps 201-203 shown are consistent, and for the same contents, please refer to the corresponding parts of the previous embodiment, which will not be repeated here.

[0054] In the device connection method provided by the embodiment of the present disclosure, the Bluetooth terminal can passively start broadcasting the BLE broadcast message after receiving the broadcast instruction sent by the mobile terminal based on the APP corresponding to the Bluetooth terminal installed thereon, thereby reducing the power consumption of the Bluetooth terminal and extending the service life of the device. After further successfully and efficiently establishing a user-unaware BLE connection with the mobile terminal, the Bluetooth terminal can actively initiate a classic Bluetooth pairing request to the mobile terminal based on the acquired random Bluetooth MAC address of the mobile terminal, and establish classic Bluetooth pairing with the mobile terminal upon receiving a confirmation response message from the mobile terminal for the classic Bluetooth pairing request. In this way, the Bluetooth terminal can successfully initiate classic Bluetooth pairing to the mobile terminal through the Bluetooth low-power connection established with the mobile terminal, and further based on the acquired random Bluetooth MAC address of the mobile terminal, thereby simplifying the classic Bluetooth pairing process between the Bluetooth terminal and the mobile terminal, improving the efficiency of establishing a classic Bluetooth connection, and enhancing the user experience.

[0055] In some optional implementations of the embodiments of the present disclosure, in the above Figure 2 or Figure 3 On the basis of the corresponding embodiment, the above confirmation response message is fed back by the mobile terminal based on the pairing confirmation pop-up window displayed for the classic Bluetooth pairing request.

[0056] In this embodiment, the confirmation response message received by the execution subject from the mobile terminal side can be fed back by the mobile terminal based on the pairing confirmation pop-up window displayed in response to the received classic Bluetooth pairing request. Specifically, the mobile terminal can feed back the confirmation response message in response to receiving an indication of confirmation to pair with the Bluetooth terminal based on the pairing confirmation pop-up window. In this way, the Bluetooth terminal can actively initiate a classic Bluetooth pairing request to ensure that the pairing confirmation pop-up window on the mobile terminal side pops up smoothly, thereby ensuring the pairing accuracy between the Bluetooth terminal and the mobile terminal, thereby ensuring the user experience.

[0057] In some optional implementations of the embodiments of the present disclosure, in the above Figure 2 or Figure 3 Based on the corresponding embodiments, the above step 203 or step 307 can be specifically executed as follows: in response to the confirmation response message including a preset pairing confirmation code, display the preset pairing confirmation code; in response to the verification operation for the preset pairing code being successful, establish classic Bluetooth pairing with the mobile terminal.

[0058] In this embodiment, in order to ensure the security of Bluetooth pairing connection, the preset pairing confirmation code included in the confirmation response message fed back by the mobile terminal is displayed for the user to visually confirm, and the preset pairing confirmation code is further verified, and the pairing connection is completed if the verification operation is successful. Further, in response to the above-mentioned execution subject being provided with a screen, the relevant content in the confirmation response message (such as the above-mentioned preset pairing confirmation code) can be displayed on the screen for the user to confirm the classic Bluetooth pairing and connection, thereby ensuring the accuracy of the classic Bluetooth pairing and connection; wherein, the above-mentioned verification operation in this scenario can input the above-mentioned preset pairing confirmation code based on the above-mentioned screen, and verify whether the input preset pairing confirmation code is correct.

[0059] Furthermore, in some optional implementations of the embodiments of the present disclosure, the preset pairing confirmation code may include but is not limited to at least one of a personal identification number (PIN) (often referred to as a PIN code) and a passkey. In this way, appropriate verification methods can be provided for different hardware and security requirements, thereby ensuring a balance between security and user experience.

[0060] In some other optional implementations of the embodiments of the present disclosure, in response to the confirmation response message including the preset pairing confirmation code and the execution entity not setting the screen, there is no need to display the preset pairing confirmation code, and further in response to the verification operation for the preset pairing code being successful, a classic Bluetooth pairing is established with the mobile terminal.

[0061] In some optional implementations of the embodiments of the present disclosure, in the above Figure 2 or Figure 3 Based on the corresponding embodiment, the above step 203 or step 307 may further specifically include the following contents: outputting pairing confirmation prompt information corresponding to the confirmation response message; in response to detecting a preset confirmation operation for the pairing confirmation prompt information, establishing classic Bluetooth pairing with the mobile terminal.

[0062] In this embodiment, in order to confirm the user's interactive experience in the classic Bluetooth pairing process, thereby improving the user experience, the corresponding pairing confirmation prompt information can be output when the confirmation response message is received to prompt the user to confirm the pairing, and further, when the preset confirmation operation input by the user and the pairing confirmation prompt information is detected, the classic Bluetooth pairing can be established with the mobile terminal. Among them, the above pairing confirmation prompt information can be output in the form of audio (such as a prompt word or a prompt tone), and / or the pairing confirmation prompt information can be output in the form of a flashing signal light, etc.; and the above preset confirmation operation can include but is not limited to: detecting a preset gesture (such as an OK gesture, etc.) displayed by the user through a camera set on the above execution subject, detecting the user's behavior (such as a nod, etc.) through a sensor set on the above execution subject, the user presses a specific physical button set on the above execution subject, and the audio collection device (such as a microphone, etc.) set on the above execution subject collects the user's voice command confirmation operation.

[0063] In some optional implementations of the embodiments of the present disclosure, in the above Figure 2 or Figure 3 On the basis of the corresponding embodiment, the above-mentioned execution entity can also obtain the real Bluetooth media access control MAC address of the mobile terminal when successfully establishing classic Bluetooth pairing with the mobile terminal, thereby successfully establishing a classic Bluetooth connection with the mobile terminal, so as to at least realize audio data transmission based on the classic Bluetooth connection.

[0064] In some optional implementations of the embodiments of the present disclosure, in the above Figure 2 or Figure 3 On the basis of the corresponding embodiments, the establishment of classic Bluetooth pairing with the mobile terminal in the above step 203 or step 307 may include: establishing classic Bluetooth pairing with the mobile terminal based on the Advanced Audio Distribution Protocol A2DP. Thus, in the disclosed embodiment, by introducing the BLE connection technology to obtain the random Bluetooth MAC address of the mobile terminal during the Bluetooth pairing connection process based on A2DP, and actively initiating A2DP pairing to the mobile terminal, high-quality audio data transmission can be performed after successfully achieving Bluetooth pairing connection based on A2DP with the mobile terminal.

[0065] Please refer to Figure 4 , Figure 4 A flow chart of a device connection method provided in an embodiment of the present disclosure, wherein the process 400 of the device connection method includes the following steps:

[0066] Step 401: In response to successfully establishing a Bluetooth low energy connection with a Bluetooth terminal, receiving a classic Bluetooth pairing request sent by the Bluetooth terminal based on a random Bluetooth media access control address of a mobile terminal.

[0067] This step is intended to be performed by the above-mentioned execution subject of the device connection method (for example Figure 1 The mobile terminals 101, 102, and 103 shown in the figure can send their random Bluetooth MAC addresses to the Bluetooth terminal in response to successfully establishing a Bluetooth low energy (BLE) connection with the Bluetooth terminal, and can further receive a classic Bluetooth pairing request actively initiated by the Bluetooth terminal in response to receiving the random Bluetooth MAC address of the mobile terminal based on the random Bluetooth MAC address of the mobile terminal. Compared with the situation in the related art where the Bluetooth terminal cannot actively initiate Bluetooth pairing with the mobile terminal due to the inability to obtain the Bluetooth MAC address of the mobile terminal, the embodiment of the present disclosure introduces BLE connection technology, so that the Bluetooth terminal can efficiently initiate classic Bluetooth pairing based on the random Bluetooth MAC address sent by the mobile terminal, and since the classic Bluetooth pairing is initiated by the Bluetooth terminal rather than the mobile terminal, the mobile terminal does not need to be in a state that can be scanned or discovered, that is, the user does not need to manually enter the visual interface of the mobile terminal to start it into a scanned or discovered mode, and there will be no situation where the mobile terminal cannot pop up a classic Bluetooth pairing pop-up window due to not entering this mode, thereby failing to complete the pairing.

[0068] Among them, the successful establishment of the lightweight Bluetooth connection based on the BLE protocol does not rely on any user confirmation operation, realizes a user-imperceptible connection with high connection efficiency (for example, a connection can be established within a few milliseconds), can achieve efficient data transmission, and in order to protect privacy issues and ensure the communication security based on the BLE connection, the mobile terminal can also obtain the random Bluetooth MAC address of the Bluetooth terminal based on the BLE connection. The random Bluetooth MAC address of the Bluetooth terminal can point to the Bluetooth terminal, but is different from the real Bluetooth MAC address of the Bluetooth terminal.

[0069] Step 402: In response to confirming pairing with the Bluetooth terminal based on the classic Bluetooth pairing request, sending a confirmation response message to the Bluetooth terminal, and establishing classic Bluetooth pairing with the Bluetooth terminal.

[0070] On the basis of step 401, this step aims at enabling the execution subject to, upon receiving a classic Bluetooth pairing request actively initiated by the peer device, i.e., the Bluetooth terminal, feedback a confirmation response message in response to the classic Bluetooth pairing request, i.e., establish classic Bluetooth pairing with the Bluetooth terminal.

[0071] In the device connection method provided by the embodiment of the present disclosure, after the mobile terminal successfully establishes a Bluetooth low energy connection with the Bluetooth terminal, it can successfully receive the classic Bluetooth pairing request actively initiated by the Bluetooth terminal based on the random Bluetooth MAC address of the mobile terminal, and respond to the classic Bluetooth pairing request to feedback a confirmation response message to the Bluetooth terminal to establish classic Bluetooth pairing with the Bluetooth terminal. In this way, the mobile terminal can establish a Bluetooth low energy connection with the Bluetooth terminal, and further respond to the classic Bluetooth pairing successfully and actively initiated by the Bluetooth terminal based on the random Bluetooth MAC address of the mobile terminal, thereby simplifying the classic Bluetooth pairing process between the mobile terminal and the Bluetooth terminal, improving the efficiency of establishing a classic Bluetooth connection, and enhancing the user experience.

[0072] Please refer to Figure 5 , Figure 5 A flowchart of a device connection method provided in an embodiment of the present disclosure, wherein an execution subject (eg Figure 1 The mobile terminals 101, 102, and 103 shown in the figure can receive Bluetooth transmission (or broadcast) including a service universally unique identifier (UUID) and a feature UUID for scanning and identifying the Bluetooth terminal, as well as the Bluetooth low energy consumption BLE broadcast message of the manufacturer identification information of the Bluetooth terminal, so that the efficiency and accuracy of scanning and identifying the Bluetooth terminal can be improved. Among them, the service UUID can be used to identify the services that the Bluetooth terminal can provide, and the feature UUID can be used to identify various characteristics under the services that the Bluetooth terminal can provide.

[0073] In some optional implementations of the embodiments of the present disclosure, the execution subject may receive the BLE broadcast message sent by the Bluetooth terminal in response to the activation of its working power supply (e.g., periodically) without sending any instructions to the Bluetooth terminal, thereby simplifying the process of scanning or discovering the Bluetooth terminal, thereby improving the efficiency of establishing a BLE connection. In some other optional implementations of the embodiments of the present disclosure, the operation of the execution subject receiving the BLE broadcast message sent by the Bluetooth terminal may be based on the following: Figure 5 The following steps 501 and 502 in the process 500 shown are implemented:

[0074] Step 501: Send a broadcast instruction to a Bluetooth terminal based on an application corresponding to the Bluetooth terminal; wherein the broadcast instruction is used to instruct the Bluetooth terminal to send a Bluetooth low energy broadcast message.

[0075] Step 502: Receive a Bluetooth low energy broadcast message sent by a Bluetooth terminal.

[0076] The above steps 501 and 502 are intended to be performed by the above execution subject of the device connection method (for example Figure 1 The mobile terminals 101, 102, and 103 shown in the figure can actively start the operation of the Bluetooth terminal sending a BLE broadcast message based on the application APP corresponding to the Bluetooth terminal installed thereon. Specifically, the Bluetooth terminal can be instructed to start broadcasting by sending a broadcast indication to the Bluetooth terminal based on the APP corresponding to the Bluetooth terminal, and the BLE broadcast message broadcast by the terminal can be received to reduce the power consumption of the Bluetooth terminal and extend the service life of the device.

[0077] In some optional implementations of the embodiments of the present disclosure, the above-mentioned execution entity can implement the sending of the above-mentioned broadcast indication based on other wireless communication methods different from the Bluetooth wireless communication method, which is not specifically limited here.

[0078] Step 503: Based on the application corresponding to the Bluetooth terminal, a Bluetooth low energy connection request generated in response to the Bluetooth low energy broadcast message is sent to the Bluetooth terminal, and a Bluetooth low energy connection is established with the Bluetooth terminal.

[0079] Based on the above step 502, the above execution entity can send a BLE connection request generated in response to the above BLE broadcast message scanned by the Bluetooth terminal to the Bluetooth terminal based on the application corresponding to the above Bluetooth terminal, thereby efficiently establishing a user-imperceptible BLE connection with the Bluetooth terminal.

[0080] Step 504: In response to successfully establishing a Bluetooth low energy connection with the Bluetooth terminal, receiving a classic Bluetooth pairing request sent by the Bluetooth terminal based on the random Bluetooth media access control address of the mobile terminal.

[0081] Step 505: In response to confirming pairing with the Bluetooth terminal based on the classic Bluetooth pairing request, sending a confirmation response message to the Bluetooth terminal, and establishing classic Bluetooth pairing with the Bluetooth terminal.

[0082] The above steps 504-505 are similar to Figure 4 Steps 401-402 shown are consistent, and for the same contents, please refer to the corresponding parts of the previous embodiment, which will not be repeated here.

[0083] The device connection method provided by the embodiment of the present disclosure is that the mobile terminal can actively start the operation of sending a BLE broadcast message by the Bluetooth terminal based on the application APP corresponding to the Bluetooth terminal installed thereon. Specifically, the Bluetooth terminal can be instructed to start broadcasting by sending a broadcast instruction to the Bluetooth terminal based on the APP corresponding to the Bluetooth terminal, and the BLE broadcast message broadcast by it can be received to reduce the power consumption of the Bluetooth terminal and extend the service life of the device. After successfully establishing a Bluetooth low-power connection with the Bluetooth terminal, the classic Bluetooth pairing request actively initiated by the Bluetooth terminal based on the random Bluetooth MAC address of the mobile terminal can be successfully received based on this, and a confirmation response message is fed back to the Bluetooth terminal in response to the classic Bluetooth pairing request to establish a classic Bluetooth pairing with the Bluetooth terminal. In this way, the mobile terminal can establish a Bluetooth low-power connection with the Bluetooth terminal, and further can respond to the classic Bluetooth pairing successfully and actively initiated by the received Bluetooth terminal based on the random Bluetooth MAC address of the mobile terminal, thereby simplifying the classic Bluetooth pairing process between the mobile terminal and the Bluetooth terminal, improving the efficiency of establishing a classic Bluetooth connection, and improving the user experience.

[0084] In some optional implementations of the embodiments of the present disclosure, in the above Figure 2 or Figure 3 On the basis of the corresponding embodiments, the step of sending a confirmation response message to the Bluetooth terminal in response to confirming the pairing with the Bluetooth terminal based on the classic Bluetooth pairing request in the above 402 or step 505 can be specifically implemented as follows: in response to receiving the classic Bluetooth pairing request, displaying a pairing confirmation pop-up window; in response to receiving an indication of confirmation for pairing with the Bluetooth terminal based on the pairing confirmation pop-up window, sending a confirmation response message to the Bluetooth terminal.

[0085] In this implementation, the mobile terminal can, in response to receiving a classic Bluetooth pairing request actively initiated by the Bluetooth terminal, display a pairing confirmation pop-up window to display relevant information of the Bluetooth terminal with which the classic Bluetooth pairing is to be established for the mobile terminal, for the user to confirm, and further in response to receiving an indication of confirmation to pair with the Bluetooth terminal based on the pairing confirmation pop-up window, feed back a confirmation response message to the Bluetooth terminal. In this way, the Bluetooth terminal can actively initiate a classic Bluetooth pairing request to ensure that the pairing confirmation pop-up window on the mobile terminal side pops up smoothly, thereby ensuring the pairing accuracy between the Bluetooth terminal and the mobile terminal and ensuring the user experience.

[0086] In some optional implementations of the embodiments of the present disclosure, in the above Figure 4 or Figure 5 On the basis of the corresponding embodiment, the above confirmation response message includes a preset pairing confirmation code for confirming the establishment of classic Bluetooth pairing with the Bluetooth terminal.

[0087] In this embodiment, in order to ensure the security of Bluetooth pairing connection, a preset pairing confirmation code can be included in the confirmation response message fed back to the Bluetooth terminal for visual confirmation by the user, and for the Bluetooth terminal to further verify the preset pairing confirmation code and complete the pairing connection if the verification operation is successful. Furthermore, in response to the Bluetooth terminal being provided with a screen, the relevant content in the confirmation response message (such as the preset pairing confirmation code) can be displayed on the screen of the Bluetooth terminal for the user to confirm the classic Bluetooth pairing and connection, thereby ensuring the accuracy of the classic Bluetooth pairing and connection.

[0088] Furthermore, in some optional implementations of the embodiments of the present disclosure, the preset pairing confirmation code may include but is not limited to at least one of a PIN code and a Passkey. In this way, appropriate verification methods can be provided for different hardware and security requirements, thereby ensuring a balance between security and user experience.

[0089] In some optional implementations of the embodiments of the present disclosure, in the above Figure 4 or Figure 5 On the basis of the corresponding embodiments, the above-mentioned execution subject can also obtain the real Bluetooth media access control MAC address of the Bluetooth terminal when successfully establishing a classic Bluetooth pairing with the Bluetooth terminal, thereby successfully establishing a classic Bluetooth connection with the Bluetooth terminal, so as to at least realize audio data transmission based on the classic Bluetooth connection.

[0090] In some optional implementations of the embodiments of the present disclosure, in the above Figure 4 or Figure 5 On the basis of the corresponding embodiments, the establishment of classic Bluetooth pairing with the mobile terminal in the above step 402 or step 505 may include: establishing classic Bluetooth pairing with the Bluetooth terminal based on the Advanced Audio Transmission Protocol A2DP. Thus, in the disclosed embodiment, by introducing the BLE connection technology in the Bluetooth pairing connection process based on A2DP to respond to the classic Bluetooth pairing request actively initiated by the Bluetooth terminal based on the random Bluetooth MAC address of the mobile terminal obtained, and actively establishing A2DP pairing with the Bluetooth terminal, high-quality audio data transmission can be performed after successfully achieving Bluetooth pairing connection based on A2DP with the Bluetooth terminal.

[0091] To deepen understanding, the present disclosure also provides a specific implementation solution in combination with a specific application scenario, see Figure 6 The interaction process shown in the figure is described by taking the mobile terminal as a mobile phone and the Bluetooth terminal as an Android Bluetooth peripheral as an example, and may specifically include the following contents:

[0092] Step 601: The mobile phone starts the Bluetooth pairing process.

[0093] Step 602: The Android Bluetooth peripheral turns on BLE broadcasting.

[0094] Specifically, after the mobile phone initiates the connection process based on the peripheral APP (which can be developed by the Bluetooth peripheral manufacturer) corresponding to the Android Bluetooth peripheral terminal installed on the mobile phone, the Android Bluetooth peripheral can first start BLE broadcasting, and at the same time the APP starts scanning nearby BLE broadcast signals.

[0095] Step 603: The mobile phone successfully scans the BLE signal broadcast by the Android Bluetooth peripheral.

[0096] Step 604: The mobile phone initiates a BLE connection to the Android Bluetooth peripheral.

[0097] Specifically, after the mobile phone successfully scans the BLE signal, the APP initiates a BLE connection. This step does not rely on user operation confirmation, the user is unaware, and the connection process is very fast.

[0098] Step 605: In response to the successful establishment of a BLE connection with the mobile phone, the Android Bluetooth peripheral obtains the random Bluetooth MAC address of the mobile phone. Accordingly, the mobile phone can also obtain the random Bluetooth MAC address of the Android Bluetooth peripheral.

[0099] Specifically, after the BLE connection is successful, both the BLE server (i.e., Android Bluetooth peripheral) and the BLE client (i.e., mobile phone) will receive a broadcast notification, and the broadcast carries information about the connected Bluetooth device on the other end, including but not limited to a random Bluetooth MAC address.

[0100] Step 606: Initiate A2DP pairing to the mobile phone. Since the real Bluetooth MAC address is required to implement the A2DP connection, the Android Bluetooth peripheral can initiate Bluetooth pairing with the random Bluetooth MAC address of the mobile phone.

[0101] Step 607: A pairing confirmation pop-up window appears.

[0102] Step 608: In response to receiving a click confirmation operation input by the user based on the pairing confirmation pop-up window, A2DP pairing confirmation is performed.

[0103] Specifically, after the Bluetooth peripheral initiates pairing, the mobile phone system receives the pairing notification and a pairing confirmation pop-up window will pop up to guide the user to confirm the pairing. In particular, it should be noted that for iOS (iPhone Operating System) system (a mobile operating system) mobile phones, only when the BLE connection is established, the Bluetooth pairing of the random Bluetooth MAC address of the BLE device is initiated, the pairing confirmation pop-up window will pop up effectively. Otherwise, iOS needs to manually enter the mobile phone Bluetooth settings page to switch the phone to discoverable mode, in order to effectively pop up the confirmation pop-up window.

[0104] Step 609: In response to the successful A2DP pairing with the mobile phone, the real Bluetooth MAC address of the mobile phone is obtained. Accordingly, the mobile phone can also obtain the real Bluetooth MAC address of the Bluetooth peripheral.

[0105] Step 610: Initiate an A2DP connection.

[0106] Step 611: The mobile phone successfully establishes an A2DP connection with the Android Bluetooth peripheral.

[0107] Specifically, after the user confirms, the Bluetooth device is paired successfully. The system will issue a Bluetooth broadcast notification, and the notification content is the pairing success status. Due to the system Bluetooth mechanism, the broadcast of successful pairing will carry the real Bluetooth MAC address of the other device. At this time, the Bluetooth peripheral can obtain the real Bluetooth MAC address information of the mobile phone, and can actively initiate a Bluetooth connection based on this, thereby completing the Bluetooth A2DP pairing connection process and connecting successfully.

[0108] The solution provided by the disclosed embodiment introduces the Bluetooth BLE connection technology to enable the Bluetooth A2DP pairing to be initiated by the Bluetooth peripheral, so as to solve the problems encountered in establishing the A2DP pairing connection between the Bluetooth peripheral and the mobile phone. Therefore, there is no need to be restricted by the tightening of the system API permissions on the mobile phone, nor is there any need to rely on the user to manually enter the system settings interface of the mobile phone to operate. At the same time, it is not restricted by the different logics of initiating A2DP pairing due to different mobile phone brands and system (such as Android, iOS) platforms. Specifically, it only needs to start the APP corresponding to the Bluetooth peripheral installed on the mobile phone, and the mobile phone will automatically pop up a pairing confirmation pop-up window. After the user completes the click operation, all connections are automatically completed.

[0109] Further references Figure 7 As an implementation of the methods shown in the above figures, the present disclosure provides an embodiment of a device connection device, and the device embodiment is Figure 2-Figure 3 Corresponding to the method embodiment shown, the device can be specifically applied to various Bluetooth terminals.

[0110] like Figure 7 As shown, the device connection apparatus 700 of the embodiment of the present disclosure may include: an acquisition module 701, a sending module 702 and a first processing module 703. The acquisition module 701 is configured to acquire a random Bluetooth media access control address of the mobile terminal in response to successfully establishing a Bluetooth low energy connection with the mobile terminal; the sending module 702 is configured to send a classic Bluetooth pairing request to the mobile terminal based on the random Bluetooth media access control address; the first processing module 703 is configured to establish a classic Bluetooth pairing with the mobile terminal in response to receiving a confirmation response message from the mobile terminal to the classic Bluetooth pairing request.

[0111] In the embodiment of the present disclosure, the specific processing of the acquisition module 701, the sending module 702 and the first processing module 703 and the technical effects thereof can be referred to in detail. Figure 2 The relevant descriptions of steps 201 - 203 in the corresponding embodiment are not repeated here.

[0112] In some optional implementations of the embodiments of the present disclosure, the sending module 702 is further configured to send a Bluetooth low energy broadcast message; the acquisition module 701 is further configured to receive a Bluetooth low energy connection request sent by the mobile terminal in response to the Bluetooth low energy broadcast message; the first processing module 703 is further configured to establish a Bluetooth low energy connection with the mobile terminal based on the Bluetooth low energy connection request.

[0113] In some optional implementations of the embodiments of the present disclosure, the acquisition module 701 is further configured to receive a broadcast indication sent by the mobile terminal based on an application corresponding to the Bluetooth terminal; the sending module 702 is further configured to send a Bluetooth low energy broadcast message based on the broadcast indication.

[0114] In the embodiment of the present disclosure, the specific processing of the acquisition module 701, the sending module 702 and the first processing module 703 and the technical effects thereof can also be referred to in Figure 3 The relevant descriptions of steps 301 - 307 in the corresponding embodiment are not repeated here.

[0115] In some optional implementations of the embodiments of the present disclosure, the above-mentioned Bluetooth low energy broadcast message includes a service universal unique identifier, a feature universal unique identifier and manufacturer identification information of the Bluetooth terminal.

[0116] In some optional implementations of the embodiments of the present disclosure, the above-mentioned confirmation response message is fed back by the mobile terminal based on a pairing confirmation pop-up window displayed for the classic Bluetooth pairing request.

[0117] In some optional implementations of the embodiments of the present disclosure, the above-mentioned first processing module 703 is further configured to: in response to the confirmation response message including a preset pairing confirmation code, display the preset pairing confirmation code; in response to the verification operation for the preset pairing code being successful, establish classic Bluetooth pairing with the mobile terminal.

[0118] In some optional implementations of the embodiments of the present disclosure, the above-mentioned first processing module 703 is further configured to: output pairing confirmation prompt information corresponding to the confirmation response message; in response to detecting a preset confirmation operation for the pairing confirmation prompt information, establish classic Bluetooth pairing with the mobile terminal.

[0119] In some optional implementations of the embodiments of the present disclosure, the acquisition module 701 is further configured to acquire a real Bluetooth media access control address of the mobile terminal.

[0120] In some optional implementations of the embodiments of the present disclosure, the first processing module 703 is further configured to establish a classic Bluetooth pairing with the mobile terminal based on the Advanced Audio Transport Protocol.

[0121] This embodiment exists as a device embodiment corresponding to the above method embodiment. After the Bluetooth terminal successfully establishes a Bluetooth low energy connection with the mobile terminal, it can obtain the random Bluetooth MAC address of the mobile terminal. Further, the Bluetooth terminal can actively initiate a classic Bluetooth pairing request to the mobile terminal based on the random Bluetooth MAC address, and establish a classic Bluetooth pairing with the mobile terminal upon receiving a confirmation response message from the mobile terminal for the classic Bluetooth pairing request. In this way, the Bluetooth terminal can successfully and actively initiate a classic Bluetooth pairing to the mobile terminal based on the acquired random Bluetooth MAC address of the mobile terminal through the Bluetooth low energy connection established with the mobile terminal, thereby simplifying the classic Bluetooth pairing process between the Bluetooth terminal and the mobile terminal, improving the efficiency of establishing a classic Bluetooth connection, and enhancing the user experience.

[0122] Further references Figure 8 As an implementation of the methods shown in the above figures, the present disclosure provides an embodiment of a device connection device, and the device embodiment is Figure 4-Figure 5 Corresponding to the method embodiment shown, the device can be specifically applied to various mobile terminals.

[0123] like Figure 8 As shown, the device connection apparatus 800 of the embodiment of the present disclosure may include: a receiving module 801 and a second processing module 802. The receiving module 801 is configured to receive a classic Bluetooth pairing request sent by the Bluetooth terminal based on a random Bluetooth media access control address of the mobile terminal in response to successfully establishing a Bluetooth low energy connection with the Bluetooth terminal; the second processing module 802 is configured to send a confirmation response message to the Bluetooth terminal in response to confirming pairing with the Bluetooth terminal based on the classic Bluetooth pairing request, and establish classic Bluetooth pairing with the Bluetooth terminal.

[0124] In the device connection apparatus 800, the specific processing of the receiving module 801 and the second processing module 802 and the technical effects thereof can be referred to in Figure 4 The relevant descriptions of steps 401 - 402 in the corresponding embodiment are not repeated here.

[0125] In some optional implementations of the embodiments of the present disclosure, the above-mentioned receiving module 801 is further configured to receive a Bluetooth low-power broadcast message sent by a Bluetooth terminal; the above-mentioned second processing module 802 is further configured to send a Bluetooth low-power connection request generated in response to the Bluetooth low-power broadcast message to the Bluetooth terminal based on an application corresponding to the Bluetooth terminal, and establish a Bluetooth low-power connection with the Bluetooth terminal.

[0126] In some optional implementations of the embodiments of the present disclosure, the second processing module 802 is further configured to send a broadcast indication to the Bluetooth terminal based on an application corresponding to the Bluetooth terminal; wherein the broadcast indication is used to instruct the Bluetooth terminal to send a Bluetooth low energy broadcast message.

[0127] In the device connection apparatus 800, the specific processing of the receiving module 801 and the second processing module 802 and the technical effects thereof can also be referred to in Figure 5 The relevant descriptions of steps 501-505 in the corresponding embodiment are not repeated here.

[0128] In some optional implementations of the embodiments of the present disclosure, the above-mentioned second processing module 802 is further configured to display a pairing confirmation pop-up window in response to receiving a classic Bluetooth pairing request; in response to receiving an indication of confirmation for pairing with the Bluetooth terminal based on the pairing confirmation pop-up window, send a confirmation response message to the Bluetooth terminal.

[0129] In some optional implementations of the embodiments of the present disclosure, the receiving module 801 is further configured to obtain a real Bluetooth media access control address of the Bluetooth terminal.

[0130] In some optional implementations of the embodiments of the present disclosure, the above-mentioned confirmation response message includes a preset pairing confirmation code for confirming the establishment of a classic Bluetooth pairing with the Bluetooth terminal; and the above-mentioned establishment of a classic Bluetooth pairing with the Bluetooth terminal includes: establishing a classic Bluetooth pairing with the Bluetooth terminal based on the Advanced Audio Transport Protocol.

[0131] This embodiment exists as an apparatus embodiment corresponding to the above method embodiment. After the mobile terminal successfully establishes a Bluetooth low energy connection with the Bluetooth terminal, it can successfully receive a classic Bluetooth pairing request initiated by the Bluetooth terminal based on the random Bluetooth MAC address of the mobile terminal, and respond to the classic Bluetooth pairing request to feedback a confirmation response message to the Bluetooth terminal to establish classic Bluetooth pairing with the Bluetooth terminal. In this way, the mobile terminal can establish a Bluetooth low energy connection with the Bluetooth terminal, and further respond to the classic Bluetooth pairing successfully initiated by the Bluetooth terminal based on the random Bluetooth MAC address of the mobile terminal, thereby simplifying the classic Bluetooth pairing process between the mobile terminal and the Bluetooth terminal, improving the efficiency of establishing a classic Bluetooth connection, and enhancing the user experience.

[0132] According to an embodiment of the present disclosure, the present disclosure further provides an electronic device, the electronic device comprising: at least one processor; and a memory connected to the at least one processor in communication; wherein the memory stores instructions executable by the at least one processor, the instructions are executed by the at least one processor, so that the at least one processor can implement the device connection method described in any of the above embodiments when executing. In some embodiments of the present disclosure, the electronic device may include a Bluetooth terminal or a mobile terminal involved in any of the above embodiments.

[0133] According to an embodiment of the present disclosure, the present disclosure further provides a readable storage medium, which stores computer instructions, and the computer instructions are used to enable a computer to implement the device connection method described in any of the above embodiments when executed.

[0134] According to an embodiment of the present disclosure, the present disclosure further provides a computer program product, which, when executed by a processor, can implement the device connection method described in any of the above embodiments.

[0135] Fig. 9 A schematic block diagram of an example electronic device 900 that can be used to implement an embodiment of the present disclosure is shown. The electronic device is intended to represent various forms of digital computers, such as laptop computers, desktop computers, workstations, personal digital assistants, servers, blade servers, mainframe computers, and other suitable computers. The electronic device can also represent various forms of mobile devices, such as personal digital processing, cellular phones, smart phones, wearable devices, and other similar computing devices. The components shown herein, their connections and relationships, and their functions are merely examples and are not intended to limit the implementation of the present disclosure described and / or required herein.

[0136] like Fig. 9 As shown, the electronic device 900 includes a computing unit 901, which can perform various appropriate actions and processes according to a computer program stored in a read-only memory (ROM) 902 or a computer program loaded from a storage unit 908 into a random access memory (RAM) 903. In the RAM 903, various programs and data required for the operation of the device 900 can also be stored. The computing unit 901, the ROM 902, and the RAM 903 are connected to each other via a bus 904. An input / output (I / O) interface 905 is also connected to the bus 904.

[0137] Multiple components in the electronic device 900 are connected to the I / O interface 905, including: an input unit 906, such as a keyboard, a mouse, etc.; an output unit 907, such as various types of displays, speakers, etc.; a storage unit 908, such as a disk, an optical disk, etc.; and a communication unit 909, such as a network card, a modem, a wireless communication transceiver, etc. The communication unit 909 allows the electronic device 900 to exchange information / data with other devices through a computer network such as the Internet and / or various telecommunication networks.

[0138] The computing unit 901 may be a variety of general and / or special processing components with processing and computing capabilities. Some examples of the computing unit 901 include, but are not limited to, a central processing unit (CPU), a graphics processing unit (GPU), various dedicated artificial intelligence (AI) computing chips, various computing units running machine learning model algorithms, digital signal processors (DSPs), and any appropriate processors, controllers, microcontrollers, etc. The computing unit 901 performs the various methods and processes described above, such as the device connection method. For example, in some embodiments, the device connection method may be implemented as a computer software program, which is tangibly contained in a machine-readable medium, such as a storage unit 908. In some embodiments, part or all of the computer program may be loaded and / or installed on the electronic device 900 via the ROM 902 and / or the communication unit 909. When the computer program is loaded into the RAM 1003 and executed by the computing unit 901, one or more steps of the device connection method described above may be performed. Alternatively, in other embodiments, the computing unit 901 may be configured to perform the device connection method in any other appropriate manner (e.g., by means of firmware).

[0139] Various implementations of the systems and techniques described above herein can be implemented in digital electronic circuit systems, integrated circuit systems, field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), systems on chips (SOCs), load programmable logic devices (CPLDs), computer hardware, firmware, software, and / or combinations thereof. These various implementations can include: being implemented in one or more computer programs that can be executed and / or interpreted on a programmable system including at least one programmable processor, which can be a special purpose or general purpose programmable processor that can receive data and instructions from a storage system, at least one input device, and at least one output device, and transmit data and instructions to the storage system, the at least one input device, and the at least one output device.

[0140] The program code for implementing the method of the present disclosure may be written in any combination of one or more programming languages. These program codes may be provided to a processor or controller of a general-purpose computer, a special-purpose computer, or other programmable data processing device, so that the program code, when executed by the processor or controller, enables the functions / operations specified in the flow chart and / or block diagram to be implemented. The program code may be executed entirely on the machine, partially on the machine, partially on the machine and partially on a remote machine as a stand-alone software package, or entirely on a remote machine or server.

[0141] In the context of the present disclosure, a machine-readable medium may be a tangible medium that may contain or store a program for use by or in conjunction with an instruction execution system, device, or equipment. A machine-readable medium may be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium may include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, device, or equipment, or any suitable combination of the foregoing. A more specific example of a machine-readable storage medium may include an electrical connection based on one or more lines, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.

[0142] To provide interaction with a user, the systems and techniques described herein can be implemented on a computer having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to the user; and a keyboard and pointing device (e.g., a mouse or trackball) through which the user can provide input to the computer. Other types of devices can also be used to provide interaction with the user; for example, the feedback provided to the user can be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user can be received in any form (including acoustic input, voice input, or tactile input).

[0143] The systems and techniques described herein may be implemented in a computing system that includes back-end components (e.g., as a data server), or a computing system that includes middleware components (e.g., an application server), or a computing system that includes front-end components (e.g., a user computer with a graphical user interface or a web browser through which a user can interact with implementations of the systems and techniques described herein), or a computing system that includes any combination of such back-end components, middleware components, or front-end components. The components of the system may be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: a local area network (LAN), a wide area network (WAN), and the Internet.

[0144] A computer system may include a client and a server. The client and the server are generally remote from each other and usually interact through a communication network. The relationship between the client and the server is generated by computer programs running on the corresponding computers and having a client-server relationship with each other. The server may be a cloud server, a server of a distributed system, or a server combined with a blockchain. Among them, a cloud server, also known as a cloud computing server or a cloud host, is a host product in the cloud computing service system to solve the defects of difficult management and weak business scalability in traditional physical hosts and virtual private servers (VPS, Virtual Private Server) services.

[0145] According to the device connection scheme of the embodiment of the present disclosure, after the Bluetooth terminal successfully establishes a Bluetooth low-power connection with the mobile terminal, it can obtain the random Bluetooth MAC address of the mobile terminal. Further, the Bluetooth terminal can actively initiate a classic Bluetooth pairing request to the mobile terminal based on the random Bluetooth MAC address, and establish a classic Bluetooth pairing with the mobile terminal upon receiving a confirmation response message from the mobile terminal for the classic Bluetooth pairing request. In this way, the Bluetooth terminal can successfully actively initiate a classic Bluetooth pairing to the mobile terminal based on the acquired random Bluetooth MAC address of the mobile terminal through the Bluetooth low-power connection established with the mobile terminal, thereby simplifying the classic Bluetooth pairing process between the Bluetooth terminal and the mobile terminal, improving the efficiency of establishing a classic Bluetooth connection, and enhancing the user experience.

[0146] It should be understood that the various forms of processes shown above can be used to reorder, add or delete steps. For example, the steps recorded in this disclosure can be executed in parallel, sequentially or in different orders, as long as the desired results of the technical solutions disclosed in this disclosure can be achieved, and this document does not limit this.

[0147] The above specific implementations do not constitute a limitation on the protection scope of the present disclosure. It should be understood by those skilled in the art that various modifications, combinations, sub-combinations and substitutions can be made according to design requirements and other factors. Any modification, equivalent substitution and improvement made within the spirit and principle of the present disclosure shall be included in the protection scope of the present disclosure.

Claims

1. A device connection method, comprising: In response to successfully establishing a Bluetooth low energy connection with a mobile terminal, obtaining a random Bluetooth media access control address of the mobile terminal; Sending a classic Bluetooth pairing request to the mobile terminal based on the random Bluetooth media access control address; In response to receiving a confirmation response message from the mobile terminal to the classic Bluetooth pairing request, establishing classic Bluetooth pairing with the mobile terminal.

2. The method according to claim 1, further comprising: Send Bluetooth low energy broadcast messages; receiving a Bluetooth low energy connection request sent by the mobile terminal in response to the Bluetooth low energy broadcast message; The Bluetooth low energy connection is established with the mobile terminal based on the Bluetooth low energy connection request.

3. The method according to claim 2, wherein: The sending of a Bluetooth low energy broadcast message comprises: receiving a broadcast indication sent by the mobile terminal based on an application corresponding to the Bluetooth terminal; Based on the broadcast indication, the Bluetooth low energy broadcast message is sent.

4. The method according to claim 2, wherein: The Bluetooth low energy broadcast message includes a service universal unique identifier, a feature universal unique identifier and manufacturer identification information of the Bluetooth terminal.

5. The method according to claim 1, wherein: The confirmation response message is fed back by the mobile terminal based on a pairing confirmation pop-up window displayed for the classic Bluetooth pairing request.

6. The method according to claim 5, wherein: The step of establishing classic Bluetooth pairing with the mobile terminal in response to receiving a confirmation response message from the mobile terminal to the classic Bluetooth pairing request includes: In response to the confirmation response message including a preset pairing confirmation code, displaying the preset pairing confirmation code; In response to a successful verification operation for the preset pairing code, the classic Bluetooth pairing is established with the mobile terminal.

7. The method according to claim 5, wherein: The step of establishing classic Bluetooth pairing with the mobile terminal in response to receiving a confirmation response message from the mobile terminal to the classic Bluetooth pairing request includes: Outputting pairing confirmation prompt information corresponding to the confirmation response message; In response to detecting a preset confirmation operation for the pairing confirmation prompt information, establishing the classic Bluetooth pairing with the mobile terminal.

8. The method according to claim 1, further comprising: Obtain the real Bluetooth media access control address of the mobile terminal.

9. The method according to any one of claims 1 to 8, wherein: The establishing of classic Bluetooth pairing with the mobile terminal comprises: The classic Bluetooth pairing is established with the mobile terminal based on the Advanced Audio Transport Protocol.

10. A device connection method, comprising: In response to successfully establishing a Bluetooth low energy connection with the Bluetooth terminal, receiving a classic Bluetooth pairing request sent by the Bluetooth terminal based on a random Bluetooth media access control address of the mobile terminal; In response to confirming pairing with the Bluetooth terminal based on the classic Bluetooth pairing request, sending a confirmation response message to the Bluetooth terminal, and establishing classic Bluetooth pairing with the Bluetooth terminal.

11. The method according to claim 10, further comprising: Receiving a Bluetooth low energy broadcast message sent by the Bluetooth terminal; Based on an application corresponding to the Bluetooth terminal, a Bluetooth low energy connection request generated in response to the Bluetooth low energy broadcast message is sent to the Bluetooth terminal, and the Bluetooth low energy connection is established with the Bluetooth terminal.

12. The method according to claim 11, further comprising: Sending a broadcast indication to the Bluetooth terminal based on an application corresponding to the Bluetooth terminal; wherein the broadcast indication is used to instruct the Bluetooth terminal to send the Bluetooth low energy broadcast message.

13. The method according to claim 10, wherein: The step of sending a confirmation response message to the Bluetooth terminal in response to confirming pairing with the Bluetooth terminal based on the classic Bluetooth pairing request includes: In response to receiving the classic Bluetooth pairing request, displaying a pairing confirmation pop-up window; In response to receiving an indication of confirming pairing with the Bluetooth terminal based on the pairing confirmation pop-up window, sending the confirmation response message to the Bluetooth terminal.

14. The method according to claim 10, further comprising: Obtain the real Bluetooth media access control address of the Bluetooth terminal.

15. The method according to any one of claims 10 to 14, wherein: The confirmation response message includes a preset pairing confirmation code for confirming the establishment of the classic Bluetooth pairing with the Bluetooth terminal; as well as The establishing of classic Bluetooth pairing with the Bluetooth terminal includes: The classic Bluetooth pairing is established with the Bluetooth terminal based on the Advanced Audio Transport Protocol.

16. A device connection device, comprising: an acquisition module, configured to acquire a random Bluetooth media access control address of the mobile terminal in response to successfully establishing a Bluetooth low energy connection with the mobile terminal; A sending module, configured to send a classic Bluetooth pairing request to the mobile terminal based on the random Bluetooth media access control address; The first processing module is configured to establish a classic Bluetooth pairing with the mobile terminal in response to receiving a confirmation response message from the mobile terminal to the classic Bluetooth pairing request.

17. A device connection device, comprising: a receiving module configured to, in response to successfully establishing a Bluetooth low energy connection with a Bluetooth terminal, receive a classic Bluetooth pairing request sent by the Bluetooth terminal based on a random Bluetooth media access control address of the mobile terminal; The second processing module is configured to, in response to confirming pairing with the Bluetooth terminal based on the classic Bluetooth pairing request, send a confirmation response message to the Bluetooth terminal, and establish classic Bluetooth pairing with the Bluetooth terminal.

18. An electronic device, comprising: at least one processor; as well as a memory communicatively connected to the at least one processor; wherein, The memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor so that the at least one processor can execute the device connection method described in any one of claims 1-9, or execute the device connection method described in any one of claims 10-15.

19. A non-transitory computer-readable storage medium storing computer instructions, wherein the computer instructions are used to cause the computer to execute the device connection method according to any one of claims 1 to 9, or to execute the device connection method according to any one of claims 10 to 15.

20. A computer program product, comprising a computer program, wherein when the computer program is executed by a processor, the computer program implements the steps of the device connection method according to any one of claims 1 to 9, or implements the steps of the device connection method according to any one of claims 10 to 15.