CN116264678A - Bluetooth connection establishment method, device and system - Google Patents

Bluetooth connection establishment method, device and system Download PDF

Info

Publication number
CN116264678A
CN116264678A CN202111531867.6A CN202111531867A CN116264678A CN 116264678 A CN116264678 A CN 116264678A CN 202111531867 A CN202111531867 A CN 202111531867A CN 116264678 A CN116264678 A CN 116264678A
Authority
CN
China
Prior art keywords
bluetooth
information
pairing
pairing information
equipment
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202111531867.6A
Other languages
Chinese (zh)
Inventor
周学而
魏凡翔
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Huawei Technologies Co Ltd
Original Assignee
Huawei Technologies Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Huawei Technologies Co Ltd filed Critical Huawei Technologies Co Ltd
Priority to CN202111531867.6A priority Critical patent/CN116264678A/en
Priority to PCT/CN2022/137200 priority patent/WO2023109610A1/en
Publication of CN116264678A publication Critical patent/CN116264678A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/80Services using short range communication, e.g. near-field communication [NFC], radio-frequency identification [RFID] or low energy communication
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W76/00Connection management
    • H04W76/10Connection setup
    • H04W76/14Direct-mode setup

Abstract

The application discloses a Bluetooth connection establishment method, equipment and a system, relates to the technical field of communication, and can simplify the operation of a user in the Bluetooth connection establishment process. According to the method and the device, the matched device list is updated directly according to the matched information acquired from other terminal devices through sharing the matched information, so that the user operation in the Bluetooth connection establishment process is simplified, and the time required by Bluetooth matching is shortened. In addition, in the scene that some users use a plurality of terminal devices and perform cross-device service based on the Bluetooth technology, the Bluetooth connection establishment method provided by the embodiment of the application can greatly simplify user operation during Bluetooth connection switching, shorten the time required by Bluetooth switching, enable the Bluetooth connection switching process to be smoother, and improve the use experience of users.

Description

Bluetooth connection establishment method, device and system
Technical Field
The embodiment of the application relates to the technical field of communication, in particular to a Bluetooth connection establishment method, equipment and a system.
Background
Bluetooth technology is a radio technology that supports short-range communications of devices. The bluetooth technology can exchange wireless information between terminal devices including smart phones, wireless headphones, notebook computers, and the like. By using the Bluetooth technology, communication between devices can be effectively simplified, and data transmission becomes quicker and more efficient.
For example, assuming that the user wishes to establish a bluetooth connection between device a and device B, the user may trigger discovery of surrounding bluetooth devices (e.g., turn on bluetooth functions) on a bluetooth master device (e.g., device a). The bluetooth master device scans for other bluetooth devices (e.g., bluetooth slave devices) in the vicinity. After the scanning is completed, the Bluetooth master device displays the scanned Bluetooth slave device. The user then authenticates and pairs by selecting a bluetooth slave device (e.g., device B), and after successful pairing, establishes a bluetooth connection between the master device (i.e., device a) and the slave device (i.e., device B) to transmit traffic data. Wherein, the user is required to manually input the pairing code or manually confirm during authentication. The above method is cumbersome for the user.
Disclosure of Invention
The application provides a Bluetooth connection establishment method, equipment and system, which can simplify the operation of a user in the Bluetooth connection establishment process.
In order to achieve the above purpose, the embodiment of the application adopts the following technical scheme:
in a first aspect, a method for establishing a bluetooth connection is provided, the method comprising: the second equipment receives Bluetooth information of the first equipment and pairing information of the first equipment, wherein the Bluetooth information of the first equipment and the pairing information of the first equipment are shared by the first equipment; and the second device performs Bluetooth pairing with the third device according to the Bluetooth information of the first device and the pairing information of the first device. The first device and the third device complete Bluetooth pairing, and the pairing information of the first device comprises Bluetooth pairing information of the first device and the third device.
For example, the sharing of the bluetooth information of the first device and the pairing information of the first device by the first device to the second device may refer to the sharing of the first device directly to the second device.
For example, the sharing of the bluetooth information of the first device and the pairing information of the first device by the first device to the second device may also refer to that the first device is shared to the second device through a third party (such as a fourth device).
The specific manner in which the first device shares the bluetooth information of the first device and the pairing information of the first device to the second device is not limited.
According to the scheme provided by the first aspect, the paired equipment list is directly updated according to the paired information acquired from other terminal equipment, so that the operation of a user in the Bluetooth connection establishment process is simplified, and the time required by Bluetooth pairing is shortened. In addition, in the scene that some users use a plurality of terminal devices and perform cross-device service based on the Bluetooth technology, the Bluetooth connection establishment method provided by the embodiment of the application can greatly simplify user operation during Bluetooth connection switching, shorten the time required by Bluetooth switching, enable the Bluetooth connection switching process to be smoother, and improve the use experience of users.
In one possible implementation manner, the receiving, by the second device, bluetooth information of the first device and pairing information of the first device, where the bluetooth information is shared by the first device includes: the second device receives Bluetooth information of the first device and pairing information of the first device from the first device through the communication connection after establishing the communication connection with the first device. The method and the device for sharing the pairing information between the devices are not limited to a specific mode, and the pairing information can be shared between the devices based on the established communication connection, so that the devices can update a paired device list directly based on the pairing information acquired from other devices, the operation of a user in the Bluetooth connection establishment process is simplified, and the time required by Bluetooth pairing is shortened.
In one possible implementation manner, the receiving, by the second device, bluetooth information of the first device and pairing information of the first device, where the bluetooth information is shared by the first device includes: the second device receives Bluetooth information of the first device and pairing information of the first device, which are sent by the fourth device, wherein the Bluetooth information of the first device and the pairing information of the first device are acquired from the first device by the fourth device. The method and the device for sharing the pairing information between the devices are not limited to a specific mode, and the pairing information can be forwarded by a third party between the devices, so that the devices can update a paired device list directly based on the pairing information forwarded by the third party, the operation of a user in the Bluetooth connection establishment process is simplified, and the time required by Bluetooth pairing is shortened.
In one possible implementation, the fourth device is a cloud-side device. The method and the device for sharing the pairing information between the devices are not limited to a specific mode, and the pairing information can be forwarded between the devices through the cloud side device, so that the devices can update the paired device list directly based on the pairing information forwarded by the cloud side device, the operation of a user in the Bluetooth connection establishment process is simplified, and the time required by Bluetooth pairing is shortened.
In one possible implementation manner, the bluetooth pairing information of the first device and the third device includes a bluetooth type of the third device; among them, bluetooth types include: classical bluetooth, low energy BLE bluetooth, or dual mode bluetooth. In order to facilitate pairing of the second device with the third device according to the specific bluetooth type of the third device, the first device may carry the bluetooth type of the third device in bluetooth pairing information shared to the second device.
In one possible implementation manner, the second device performs bluetooth pairing with a third device according to bluetooth information of the first device and pairing information of the first device, including: and the second device performs Bluetooth pairing with the third device based on the corresponding Bluetooth protocol according to the Bluetooth information of the first device and the Bluetooth type of the third device in the pairing information of the first device. To ensure that the bluetooth pairing is adapted to the bluetooth protocol of the respective bluetooth type, the second device may pair with the third device according to the specific bluetooth type of the third device shared by the first device.
In one possible implementation manner, the method further includes: in response to a user triggering an operation of establishing a bluetooth connection between the second device and the third device, the second device establishes a bluetooth connection with the third device based on a bluetooth pairing of the second device and the third device. Based on the scheme for sharing pairing information between devices, the devices can update a paired device list directly based on pairing information acquired from other devices, and further, based on pairing information, bluetooth connection between the devices is established.
In one possible implementation manner, after the second device establishes a bluetooth connection with the third device, the method further includes: the second device deletes the bluetooth information of the first device and bluetooth pairing information of the first device and the third device. In order not to affect the subsequent use of the second device (e.g., occupy storage space, etc.), and to ensure user privacy and security of the device pairing related data, after the bluetooth connection use is completed, the second device may delete bluetooth information and pairing information received from other devices (including deleting the third device from the paired device list of the second device).
In one possible implementation manner, the method further includes: the second device shares the Bluetooth information of the second device and the Bluetooth pairing information of the second device and the third device with the fifth device, so that the fifth device performs Bluetooth pairing with the third device according to the Bluetooth information of the second device and the Bluetooth pairing information of the second device and the third device. Further, based on the pairing information sharing scheme provided by the application, the second device can further share the pairing information obtained from the first device by the second device to other devices, such as the fifth device, so that the fifth device can update the pairing information list directly based on the pairing information of the first device, the operation of a user in the Bluetooth connection establishment process is simplified, and the time required by Bluetooth pairing is shortened.
In a second aspect, a method for establishing a bluetooth connection is provided, the method comprising: the first equipment shares Bluetooth information of the first equipment and pairing information of the first equipment to the second equipment so that the second equipment performs Bluetooth pairing with the third equipment according to the Bluetooth information of the first equipment and the pairing information of the first equipment; the first device and the third device complete Bluetooth pairing, and the pairing information of the first device comprises Bluetooth pairing information of the first device and the third device.
For example, the sharing of the bluetooth information of the first device and the pairing information of the first device by the first device to the second device may refer to the sharing of the first device directly to the second device.
For example, the sharing of the bluetooth information of the first device and the pairing information of the first device by the first device to the second device may also refer to that the first device is shared to the second device through a third party (such as a fourth device).
The specific manner in which the first device shares the bluetooth information of the first device and the pairing information of the first device to the second device is not limited.
According to the scheme provided by the second aspect, the paired equipment list is directly updated according to the pairing information obtained from other terminal equipment, so that the operation of a user in the Bluetooth connection establishment process is simplified, and the time required by Bluetooth pairing is shortened. In addition, in the scene that some users use a plurality of terminal devices and perform cross-device service based on the Bluetooth technology, the Bluetooth connection establishment method provided by the embodiment of the application can greatly simplify user operation during Bluetooth connection switching, shorten the time required by Bluetooth switching, enable the Bluetooth connection switching process to be smoother, and improve the use experience of users.
In one possible implementation manner, the sharing, by the first device, the bluetooth information of the first device and the pairing information of the first device to the second device includes: the first device shares Bluetooth information of the first device and pairing information of the first device with the second device according to a user-triggered operation of sharing one or more pieces of pairing information. In the application, the first device may share the bluetooth information of the first device and the corresponding pairing information to the second device according to the actual indication of the user, for example, the user selects specific pairing information to be shared, so as to avoid the problems of overlarge transmission data, redundant data or adverse user privacy and device pairing related data security caused by sharing all pairing information.
In one possible implementation manner, the sharing, by the first device, the bluetooth information of the first device and the pairing information of the first device to the second device includes: after the first device establishes a communication connection with the second device, the first device sends Bluetooth information of the first device and pairing information of the first device to the second device through the communication connection. The method and the device for sharing the pairing information between the devices are not limited to a specific mode, and the pairing information can be shared between the devices based on the established communication connection, so that the devices can update a paired device list directly based on the pairing information acquired from other devices, the operation of a user in the Bluetooth connection establishment process is simplified, and the time required by Bluetooth pairing is shortened.
In one possible implementation manner, the sharing, by the first device, the bluetooth information of the first device and the pairing information of the first device to the second device includes: the first device sends Bluetooth information of the first device and pairing information of the first device to the second device through the fourth device. The method and the device for sharing the pairing information between the devices are not limited to a specific mode, and the pairing information can be forwarded by a third party between the devices, so that the devices can update a paired device list directly based on the pairing information forwarded by the third party, the operation of a user in the Bluetooth connection establishment process is simplified, and the time required by Bluetooth pairing is shortened.
In one possible implementation, the fourth device is a cloud-side device. The method and the device for sharing the pairing information between the devices are not limited to a specific mode, and the pairing information can be forwarded between the devices through the cloud side device, so that the devices can update the paired device list directly based on the pairing information forwarded by the cloud side device, the operation of a user in the Bluetooth connection establishment process is simplified, and the time required by Bluetooth pairing is shortened.
In one possible implementation manner, the bluetooth pairing information of the first device and the third device includes a bluetooth type of the third device; among them, bluetooth types include: classical bluetooth, low energy BLE bluetooth, or dual mode bluetooth. In order to facilitate pairing of the second device with the third device according to the specific bluetooth type of the third device, the first device may carry the bluetooth type of the third device in bluetooth pairing information shared to the second device.
In a third aspect, there is provided a second apparatus comprising: the receiving and transmitting unit is used for receiving Bluetooth information of the first equipment and pairing information of the first equipment, which are shared by the first equipment; and the device sharing unit is used for carrying out Bluetooth pairing with the third device according to the Bluetooth information of the first device and the pairing information of the first device. The first device and the third device complete Bluetooth pairing, and the pairing information of the first device comprises Bluetooth pairing information of the first device and the third device.
According to the scheme provided by the third aspect, the paired equipment list is directly updated according to the paired information obtained from other terminal equipment, so that the operation of a user in the Bluetooth connection establishment process is simplified, and the time required by Bluetooth pairing is shortened. In addition, in the scene that some users use a plurality of terminal devices and perform cross-device service based on the Bluetooth technology, the Bluetooth connection establishment method provided by the embodiment of the application can greatly simplify user operation during Bluetooth connection switching, shorten the time required by Bluetooth switching, enable the Bluetooth connection switching process to be smoother, and improve the use experience of users.
In one possible implementation manner, the transceiver unit is specifically configured to: after the second device establishes a communication connection with the first device, bluetooth information of the first device and pairing information of the first device are received from the first device through the communication connection. The method and the device for sharing the pairing information between the devices are not limited to a specific mode, and the pairing information can be shared between the devices based on the established communication connection, so that the devices can update a paired device list directly based on the pairing information acquired from other devices, the operation of a user in the Bluetooth connection establishment process is simplified, and the time required by Bluetooth pairing is shortened.
In one possible implementation manner, the transceiver unit is specifically configured to: and receiving Bluetooth information of the first device and pairing information of the first device, which are sent by the fourth device, wherein the Bluetooth information of the first device and the pairing information of the first device are acquired from the first device by the fourth device. The method and the device for sharing the pairing information between the devices are not limited to a specific mode, and the pairing information can be forwarded by a third party between the devices, so that the devices can update a paired device list directly based on the pairing information forwarded by the third party, the operation of a user in the Bluetooth connection establishment process is simplified, and the time required by Bluetooth pairing is shortened.
In one possible implementation, the fourth device is a cloud-side device. The method and the device for sharing the pairing information between the devices are not limited to a specific mode, and the pairing information can be forwarded between the devices through the cloud side device, so that the devices can update the paired device list directly based on the pairing information forwarded by the cloud side device, the operation of a user in the Bluetooth connection establishment process is simplified, and the time required by Bluetooth pairing is shortened.
In one possible implementation manner, the bluetooth pairing information of the first device and the third device includes a bluetooth type of the third device; among them, bluetooth types include: classical bluetooth, low energy BLE bluetooth, or dual mode bluetooth. In order to facilitate pairing of the second device with the third device according to the specific bluetooth type of the third device, the first device may carry the bluetooth type of the third device in bluetooth pairing information shared to the second device.
In a possible implementation manner, the device sharing unit is specifically configured to perform bluetooth pairing with the third device based on the corresponding bluetooth protocol according to the bluetooth information of the first device and the bluetooth type of the third device in the pairing information of the first device. To ensure that the bluetooth pairing is adapted to the bluetooth protocol of the respective bluetooth type, the second device may be paired with the third device according to the specific bluetooth type of the third device shared by the first device
In one possible implementation manner, the second device further includes: bluetooth unit for: and responding to the operation that the user triggers the second device to establish Bluetooth connection with the third device, and establishing Bluetooth connection with the third device based on Bluetooth pairing of the second device and the third device. Based on the scheme for sharing pairing information between devices, the devices can update a paired device list directly based on pairing information acquired from other devices, and further, based on pairing information, bluetooth connection between the devices is established.
In one possible implementation manner, after the second device establishes a bluetooth connection with the third device, the device sharing unit is further configured to: and deleting the Bluetooth information of the first device and the Bluetooth pairing information of the first device and the third device. In order not to affect the subsequent use of the second device (e.g., occupy storage space, etc.), and to ensure user privacy and security of the device pairing related data, after the bluetooth connection use is completed, the second device may delete bluetooth information and pairing information received from other devices (including deleting the third device from the paired device list of the second device).
In a possible implementation manner, the transceiver unit is further configured to: and sharing the Bluetooth information of the second device and the Bluetooth pairing information of the second device and the third device to the fifth device, so that the fifth device performs Bluetooth pairing with the third device according to the Bluetooth information of the second device and the Bluetooth pairing information of the second device and the third device. Further, based on the pairing information sharing scheme provided by the application, the second device can further share the pairing information obtained from the first device by the second device to other devices, such as the fifth device, so that the fifth device can update the pairing information list directly based on the pairing information of the first device, the operation of a user in the Bluetooth connection establishment process is simplified, and the time required by Bluetooth pairing is shortened.
In a fourth aspect, there is provided a first device comprising: the receiving and transmitting unit is used for sharing the Bluetooth information of the first device and the pairing information of the first device to the second device so that the second device can carry out Bluetooth pairing with the third device according to the Bluetooth information of the first device and the pairing information of the first device; the first device and the third device complete Bluetooth pairing, and the pairing information of the first device comprises Bluetooth pairing information of the first device and the third device.
According to the scheme provided by the fourth aspect, the paired equipment list is directly updated according to the paired information obtained from other terminal equipment, so that the operation of a user in the Bluetooth connection establishment process is simplified, and the time required by Bluetooth pairing is shortened. In addition, in the scene that some users use a plurality of terminal devices and perform cross-device service based on the Bluetooth technology, the Bluetooth connection establishment method provided by the embodiment of the application can greatly simplify user operation during Bluetooth connection switching, shorten the time required by Bluetooth switching, enable the Bluetooth connection switching process to be smoother, and improve the use experience of users.
In one possible implementation manner, the transceiver unit is specifically configured to: and sharing the Bluetooth information of the first device and the pairing information of the first device to the second device according to the operation triggered by the user and sharing one or more pieces of pairing information. In the application, the first device may share the bluetooth information of the first device and the corresponding pairing information to the second device according to the actual indication of the user, for example, the user selects specific pairing information to be shared, so as to avoid the problems of overlarge transmission data, redundant data or adverse user privacy and device pairing related data security caused by sharing all pairing information.
In one possible implementation manner, the transceiver unit is specifically configured to: after the first device establishes a communication connection with the second device, bluetooth information of the first device and pairing information of the first device are sent to the second device through the communication connection. The method and the device for sharing the pairing information between the devices are not limited to a specific mode, and the pairing information can be shared between the devices based on the established communication connection, so that the devices can update a paired device list directly based on the pairing information acquired from other devices, the operation of a user in the Bluetooth connection establishment process is simplified, and the time required by Bluetooth pairing is shortened.
In one possible implementation manner, the transceiver unit is specifically configured to: and transmitting Bluetooth information of the first device and pairing information of the first device to the second device through the fourth device. The method and the device for sharing the pairing information between the devices are not limited to a specific mode, and the pairing information can be forwarded by a third party between the devices, so that the devices can update a paired device list directly based on the pairing information forwarded by the third party, the operation of a user in the Bluetooth connection establishment process is simplified, and the time required by Bluetooth pairing is shortened.
In one possible implementation, the fourth device is a cloud-side device. The method and the device for sharing the pairing information between the devices are not limited to a specific mode, and the pairing information can be forwarded between the devices through the cloud side device, so that the devices can update the paired device list directly based on the pairing information forwarded by the cloud side device, the operation of a user in the Bluetooth connection establishment process is simplified, and the time required by Bluetooth pairing is shortened.
In one possible implementation manner, the bluetooth pairing information of the first device and the third device includes a bluetooth type of the third device; among them, bluetooth types include: classical bluetooth, low energy BLE bluetooth, or dual mode bluetooth. In order to facilitate pairing of the second device with the third device according to the specific bluetooth type of the third device, the first device may carry the bluetooth type of the third device in bluetooth pairing information shared to the second device.
In a fifth aspect, there is provided a second device comprising: a memory for storing a computer program; a transceiver for receiving or transmitting radio signals; a processor for executing the computer program to cause the second device to perform the method as in any one of the possible implementations of the first aspect.
In a sixth aspect, there is provided a first device comprising: a memory for storing a computer program; a transceiver for receiving or transmitting radio signals; a processor for executing the computer program to cause the first device to perform the method as in any one of the possible implementations of the second aspect.
A seventh aspect provides a communication system comprising the second device as in any of the possible implementations of the third or fifth aspects and the first device as in any of the possible implementations of the fourth or sixth aspects.
In an eighth aspect, a computer readable storage medium is provided, on which computer program code is stored which, when executed by a processor, causes the processor to implement a method as in any one of the possible implementations of the first or second aspects.
In a ninth aspect, a chip system is provided, the chip system comprising a processor, a memory, the memory having computer program code stored therein; the computer program code, when executed by the processor, causes the processor to implement a method as in any one of the possible implementations of the first or second aspect. The chip system may be formed of a chip or may include a chip and other discrete devices.
In a tenth aspect, a computer program product is provided, the computer program product comprising computer instructions. The computer instructions, when executed on a computer, cause the computer to implement a method as in any one of the possible implementations of the first or second aspects.
Drawings
Fig. 1 is a schematic diagram of a conventional bluetooth connection establishment procedure;
fig. 2 is a schematic diagram of a pairing information sharing scenario provided in an embodiment of the present application;
fig. 3 is a schematic diagram of another pairing information sharing scenario provided in an embodiment of the present application;
fig. 4 is a schematic hardware structure of a terminal device according to an embodiment of the present application;
fig. 5A is a flowchart of a bluetooth connection establishment method according to an embodiment of the present application;
FIG. 5B is a diagram illustrating an example of pairing information provided in an embodiment of the present application;
FIG. 5C is a diagram showing an example of pairing information provided in an embodiment of the present application;
fig. 5D is a third exemplary diagram of pairing information provided in an embodiment of the present application;
fig. 6 is a logic schematic diagram of a bluetooth information and pairing information storage rule according to an embodiment of the present application;
fig. 7 is a block diagram of a bluetooth function structure of a terminal device according to an embodiment of the present application;
fig. 8 is an interaction schematic diagram of a bluetooth connection establishment method according to an embodiment of the present application;
Fig. 9 is an interaction flow chart of a bluetooth connection establishment method provided in an embodiment of the present application;
fig. 10 is a flowchart of another bluetooth connection establishment method according to an embodiment of the present application;
fig. 11 is a logic diagram of another bluetooth information and pairing information storage rule according to an embodiment of the present application;
fig. 12 is an interaction schematic diagram of another bluetooth connection establishment method according to an embodiment of the present application;
fig. 13 is an interaction flow chart of a bluetooth connection establishment method according to an embodiment of the present application.
Detailed Description
The technical solutions in the embodiments of the present application will be described below with reference to the drawings in the embodiments of the present application. Wherein, in the description of the embodiments of the present application, "/" means or is meant unless otherwise indicated, for example, a/B may represent a or B; "and/or" herein is merely an association relationship describing an association object, and means that three relationships may exist, for example, a and/or B may mean: a exists alone, A and B exist together, and B exists alone. In addition, in the description of the embodiments of the present application, "plurality" means two or more than two.
The terms "first" and "second" are used below for descriptive purposes only and are not to be construed as indicating or implying relative importance or implicitly indicating the number of technical features indicated. Thus, a feature defining "a first" or "a second" may explicitly or implicitly include one or more such feature. In the description of the present embodiment, unless otherwise specified, the meaning of "plurality" is two or more.
It is known that the establishment of bluetooth connections needs to be based on device discovery and connection authentication implementations. Wherein the device discovery is used for the master device to discover surrounding connectable slave devices. Connection authentication is used to guarantee the security of bluetooth communication.
The master device is a device initiating bluetooth connection, and the slave device is a bluetooth device which can be discovered by the master device. It will be appreciated that a master device is in contrast to a slave device, and that a terminal device may act as a master device to discover the slave device and initiate the establishment of a bluetooth connection, or may act as a slave device.
Illustratively, as shown in fig. 1, a master device may detect surrounding bluetooth devices (e.g., slave devices), record information (e.g., media access control (media access control, MAC) address) of the slave device upon detection of the slave device, and display an identification of the detected slave device. When the user selects to establish a bluetooth connection with a certain slave device (e.g. slave device a), the master device and the slave device perform an authentication pairing.
Wherein decryption can be performed by negotiation based on bluetooth technology between the master device and the slave device to establish a point-to-point connection, a process called bluetooth pairing. As an example, as shown in fig. 1, the pairing between a master device and a slave device (e.g., slave device a) may be performed by the following three steps:
Step 1: the master device and the slave device exchange authentication requirements (authentication requirements) and interaction capabilities.
Where interactive capabilities such as input/output (I/O) capabilities. The I/O capability determines the subsequent authentication mode. Exemplary, I/O capabilities are NoInputNoOutput, displayOnly, noInputNoOutput, displayYesNo, keyboardOnly or keyboard display.
Step 2: the master and slave exchange public keys.
Wherein a public key (public key) is used for the terminal device to calculate the key.
Step 3: the master and slave authenticate.
Illustratively, the master and slave devices may authenticate using the above-described keys based on a security management protocol (secure manager protocol, SMP). The SMP protocol is used for implementing operations such as pairing between the master device and the slave device, password transmission and the like based on logical link control and adaptation protocol (logical link control and adaptation protocol, L2 CAP) connection.
For example, the master device and the slave device may select a specific authentication mode for authentication according to the authentication requirement of the opposite terminal and the authentication capability of the master device and the slave device.
For example, if the master device and the slave device both support man-in-the-middle (MITM) authentication, the master device and the slave device may negotiate themselves to generate sequence codes (such as 6 digits) and display the sequence codes respectively, so that the user can confirm after comparing, for example, if the sequence codes displayed by the two devices are consistent, the authentication is passed; if the sequence codes displayed by the two devices are inconsistent, the authentication fails. Alternatively, one device (e.g., master device or slave device) randomly generates a serial code (e.g., 6 digits), and the other device displays a verification interface to facilitate authentication by the user by entering a pairing code, e.g., if the pairing code entered by the user is consistent with the serial code, then authentication is passed; and if the pairing code input by the user is inconsistent with the sequence code, the authentication fails. When the pairing code is input by the user, the device can synchronously transmit the pairing code input by the user to the opposite terminal device, and the opposite terminal device can verify the pairing code to achieve the aim of authentication.
If the authentication of the master device and the slave device is successful, the master device and the slave device are paired subsequently; if the authentication of the master device and the slave device fails, the pairing of the master device and the slave device fails.
It follows that the conventional bluetooth connection establishment method is relatively complex and cumbersome for the user to operate.
And, with the diversification of terminal technologies, the range of users using terminal devices is expanded from one terminal device to a plurality of terminal devices. For example, a user may use multiple terminal devices to conduct a cross-device service based on bluetooth technology. Problems in the scenes of bluetooth connection switching and the like are derived, for example, in the scene of initiating the establishment of bluetooth connection with the device B by the device a and switching to initiating the establishment of bluetooth connection with the device a by the device C, the following processes are generally required to be performed based on the conventional method for a user: the method comprises the steps of enabling a user to trigger equipment A to find slave equipment, enabling the user to manually select the found equipment B, enabling the user to conduct connection authentication of the equipment A and the equipment B, enabling the user to trigger equipment C to find the slave equipment, enabling the user to manually select the found equipment A, and enabling the user to conduct connection authentication of the equipment A and the equipment C. The conventional bluetooth connection establishment method is increasingly complex and tedious for users to operate, and has poor user experience.
In order to simplify the operation of a user in the process of establishing a bluetooth connection, the embodiment of the application provides a bluetooth connection establishment method, which can realize that a bluetooth connection is established between a pairing-free device and other devices (such as a third device) paired with a first device on a second device by sharing pairing information between terminal devices, for example, sharing pairing information from the first device to the second device. The pairing information includes bluetooth pairing information of the first device and other devices (such as a third device).
According to the Bluetooth connection establishment method provided by the embodiment of the application, for the third device, the third device only needs to be paired once (i.e. paired with the first device), and other terminal devices (such as the second device) can avoid pairing to establish Bluetooth connection with the third device.
As one implementation, the first device may share pairing information to the second device in a near-end sharing. For example, the first device may share pairing information with a terminal device (e.g., a second device) that has established a communication connection with the first device.
For example, taking the first device as a smart phone, the second device as a tablet computer, and the third device as a bluetooth headset as an example, as shown in fig. 2 (a), the smart phone and the bluetooth headset (the device identified as A1 as shown in fig. 2 (a)) have been paired, and the tablet computer and the bluetooth headset are not paired. After the smart phone shares the bluetooth pairing information of the smart phone and the bluetooth headset to the tablet computer in a near-end sharing manner, as shown in (b) in fig. 2, the paired device list of the tablet computer shows that the tablet computer and the bluetooth headset (the device identified as A1 as shown in (b) in fig. 2) are paired.
As another implementation, the first device may share pairing information to the second device through the fourth device. The fourth device may be a cloud side device (such as a cloud server), or may be other terminal devices, which is not limited in this application.
For example, taking the first device as a smart phone, the second device as a tablet computer, the third device as a bluetooth headset, and the fourth device as a cloud server, the first device and the second device log in the same cloud server account, as shown in fig. 3, the tablet computer and the bluetooth headset are not paired, the smart phone and the bluetooth headset (the device identified as A1 in fig. 3) are paired, and the smart phone synchronizes bluetooth pairing information of the smart phone and the bluetooth headset to the cloud server. After the tablet computer synchronizes from the cloud server to acquire the Bluetooth pairing information of the smart phone and the Bluetooth headset, the tablet computer and the Bluetooth headset (the device identified as A1 as shown in FIG. 3) are displayed in the paired device list of the tablet computer.
In some embodiments of the present application, the first device supports sharing pairing information of one or more devices paired with the first device to the second device according to actual needs of a user.
In other embodiments of the present application, the first device supports sharing pairing information of all devices paired with the first device to the second device.
Taking the example shown in fig. 2 and 3 as an example, the smart phone (i.e., the first device) completes pairing with both the bluetooth headset (the device identified as A1 in fig. 2 (a) and fig. 3) and the bluetooth mouse (the device identified as A2 in fig. 2 (a) and fig. 3), and when the smart phone shares pairing information with the tablet computer (i.e., the second device), the smart phone shares both bluetooth pairing information with the bluetooth headset and bluetooth pairing information with the bluetooth mouse with the tablet computer. The tablet computer (i.e. the second device) displays that the tablet computer is paired with both the bluetooth headset (the device identified as A1 in fig. 2 (b) and fig. 3) and the bluetooth mouse (the device identified as A2 in fig. 2 (b) and fig. 3) in the paired device list of the tablet computer according to the pairing information shared by the smart phone.
In the embodiment of the application, the terminal equipment supports Bluetooth communication or has a Bluetooth communication function. For example, a bluetooth function or module may be integrated in the terminal device. The terminal device may be a smart phone or tablet computer as shown in fig. 2 or fig. 3, and may further include, but not limited to, a personal computer (personal computer, PC), a netbook, a smart watch, a bluetooth peripheral (such as a bluetooth headset, a bluetooth mouse, etc.), a smart bracelet, a phone watch, a smart camera, a palm top, a bluetooth speaker, a personal digital assistant (personal digital assistant, PDA), a portable multimedia player (portable multimedia player, PMP), an augmented reality (augmented reality, AR)/Virtual Reality (VR) device, a television, or a motion sensing game machine in a human-computer interaction scenario, etc. The specific functions and structures of the terminal equipment are not limited in the application.
Referring to fig. 4, fig. 4 is a schematic diagram of a hardware structure of a terminal device provided in an embodiment of the present application, taking a smart phone as an example.
As shown in fig. 4, the terminal device may include a processor 410, a memory (including an external memory interface 420 and an internal memory 421), a universal serial bus (universal serial bus, USB) interface 430, a charge management module 440, a power management module 441, a battery 442, an antenna 1, an antenna 2, a mobile communication module 450, a wireless communication module 460, an audio module 470, a speaker 470A, a receiver 470B, a microphone 470C, an earphone interface 470D, a sensor module 480, keys 490, a motor 491, an indicator 492, a camera 493, a display screen 494, and a subscriber identity module (subscriber identification module, SIM) card interface 495, etc. The sensor module 480 may include, among other things, pressure sensors, gyroscope sensors, barometric pressure sensors, magnetic sensors, acceleration sensors, distance sensors, proximity sensors, fingerprint sensors, temperature sensors, touch sensors, ambient light sensors, bone conduction sensors, and the like.
It will be appreciated that the structure illustrated in the embodiments of the present invention does not constitute a specific limitation on the terminal device. In other embodiments of the present application, the terminal device may include more or less components than illustrated, or certain components may be combined, or certain components may be split, or different arrangements of components. The illustrated components may be implemented in hardware, software, or a combination of software and hardware.
Processor 410 may include one or more processing units. For example: the processor 410 may include an application processor (application processor, AP), a modem processor, a graphics processor (graphics processing unit, GPU), an image signal processor (image signal processor, ISP), a flight controller, a video codec, a digital signal processor (digital signal processor, DSP), a baseband processor, and/or a neural network processor (neural-network processing unit, NPU), etc. Wherein the different processing units may be separate devices or may be integrated in one or more processors.
A memory may also be provided in the processor 410 for storing instructions and data. In some embodiments, the memory in the processor 410 is a cache memory. The memory may hold instructions or data that the processor 410 has just used or recycled. If the processor 410 needs to reuse the instruction or data, it may be called directly from the memory. Repeated accesses are avoided, reducing the latency of the processor 410 and thus improving the efficiency of the system.
In some embodiments, processor 410 may include one or more interfaces. The interfaces may include an integrated circuit (inter-integrated circuit, I2C) interface, an integrated circuit built-in audio (inter-integrated circuit sound, I2S) interface, a pulse code modulation (pulse code modulation, PCM) interface, a universal asynchronous receiver transmitter (universal asynchronous receiver/transmitter, UART) interface, a mobile industry processor interface (mobile industry processor interface, MIPI), a general-purpose input/output (GPIO) interface, a subscriber identity module (subscriber identity module, SIM) interface, and/or a universal serial bus (universal serial bus, USB) interface, among others.
The charge management module 440 is configured to receive a charge input from a charger. The power management module 441 is configured to connect the battery 442, the charge management module 440 and the processor 410. The power management module 441 receives input from the battery 442 and/or the charge management module 440 to power the processor 410, the internal memory 421, the display screen 494, the camera 493, the wireless communication module 460, and the like.
The wireless communication function of the terminal device may be implemented by the antenna 1, the antenna 2, the mobile communication module 450, the wireless communication module 460, the modem processor, the baseband processor, and the like.
The antennas 1 and 2 are used for transmitting and receiving electromagnetic wave signals. Each antenna in the terminal device may be used to cover a single or multiple communication bands. Different antennas may also be multiplexed to improve the utilization of the antennas. For example: the antenna 1 may be multiplexed into a diversity antenna of a wireless local area network. In other embodiments, the antenna may be used in conjunction with a tuning switch.
The mobile communication module 450 may provide a solution for wireless communication including 2G/3G/4G/5G/6G etc. applied on a terminal device. The mobile communication module 450 may include at least one filter, switch, power amplifier, low noise amplifier (low noise amplifier, LNA), etc. The mobile communication module 450 may receive electromagnetic waves from the antenna 1, perform processes such as filtering, amplifying, and the like on the received electromagnetic waves, and transmit the processed electromagnetic waves to the modem processor for demodulation. The mobile communication module 450 may amplify the signal modulated by the modem processor, and convert the signal into electromagnetic waves through the antenna 1 to radiate the electromagnetic waves. In some embodiments, at least some of the functional modules of the mobile communication module 450 may be disposed in the processor 410. In some embodiments, at least some of the functional modules of the mobile communication module 450 may be disposed in the same device as at least some of the modules of the processor 410.
The modem processor may include a modulator and a demodulator. The modulator is used for modulating the low-frequency baseband signal to be transmitted into a medium-high frequency signal. The demodulator is used for demodulating the received electromagnetic wave signal into a low-frequency baseband signal. The demodulator then transmits the demodulated low frequency baseband signal to the baseband processor for processing. The low frequency baseband signal is processed by the baseband processor and then transferred to the application processor. The application processor outputs sound signals through audio means (not limited to speaker 470A, receiver 470B, etc.), or displays images or video through display screen 494. In some embodiments, the modem processor may be a stand-alone device. In other embodiments, the modem processor may be provided in the same device as the mobile communication module 450 or other functional module, independent of the processor 410.
The wireless communication module 460 may provide solutions for wireless communication including wireless local area network (wireless local area networks, WLAN) (e.g., wiFi network), bluetooth (BT), global navigation satellite system (global navigation satellite system, GNSS), frequency modulation (frequency modulation, FM), near field wireless communication technology (near field communication, NFC), infrared technology (IR), etc. applied on the terminal device. The wireless communication module 460 may be one or more devices that integrate at least one communication processing module. The wireless communication module 460 receives electromagnetic waves via the antenna 2, frequency modulates and filters the electromagnetic wave signals, and transmits the processed signals to the processor 410. The wireless communication module 460 may also receive a signal to be transmitted from the processor 410, frequency modulate it, amplify it, and convert it to electromagnetic waves for radiation via the antenna 2.
In some embodiments, the terminal device's antenna 1 and mobile communication module 450 are coupled, and the antenna 2 and wireless communication module 460 are coupled, so that the terminal device can communicate with the network and other devices through wireless communication technology. The wireless communication techniques may include the Global System for Mobile communications (global system for mobile communications, GSM), general packet radio service (general packet radio service, GPRS), code division multiple access (code division multiple access, CDMA), wideband code division multiple access (wideband code division multiple access, WCDMA), time division code division multiple access (time-division code division multiple access, TD-SCDMA), long term evolution (long term evolution, LTE), new Radio (NR), BT, GNSS, WLAN, NFC, FM, and/or IR techniques, among others. The GNSS may include a global satellite positioning system (global positioning system, GPS), a global navigation satellite system (global navigation satellite system, GLONASS), a beidou satellite navigation system (beidou navigation satellite system, BDS), a quasi zenith satellite system (quasi-zenith satellite system, QZSS) and/or a satellite based augmentation system (satellite based augmentation systems, SBAS), etc.
The terminal device implements display functions through the GPU, the display screen 494, and the application processor, etc. The GPU is a microprocessor for image processing, and is connected to the display screen 494 and the application processor. The GPU is used to perform mathematical and geometric calculations for graphics rendering. Processor 410 may include one or more GPUs that execute program instructions to generate or change display information.
The display screen 494 is used to display images, videos, and the like. The display screen 494 includes a display panel. The display panel may employ a liquid crystal display (liquid crystal display, LCD), an organic light-emitting diode (OLED), an active-matrix organic light-emitting diode (AMOLED) or an active-matrix organic light-emitting diode (matrix organic light emitting diode), a flexible light-emitting diode (flex), a mini, a Micro led, a Micro-OLED, a quantum dot light-emitting diode (quantum dot light emitting diodes, QLED), or the like. In some embodiments, the terminal device may include 1 or N displays 494, where N is a positive integer greater than 1.
In this embodiment of the present application, the terminal device may perform interface rendering (such as a device discovery interface, a paired device interface, a paired information sharing interface, etc.) through the GPU, and perform interface display through the display screen 494.
The terminal device may implement shooting functions through the ISP, the camera 493, the video codec, the GPU, the display screen 494, the application processor, and the like.
The external memory interface 420 may be used to connect an external memory card, such as a micro (SD) memory card, to enable expansion of the memory capability of the terminal device. The external memory card communicates with the processor 410 through an external memory interface 420 to implement data storage functions. For example, files such as music, video, etc. are stored in an external memory card.
The internal memory 421 may be used to store computer-executable program code that includes instructions. The internal memory 421 may include a storage program area and a storage data area. The storage program area may store an operating system, an application program required for at least one function, and the like. The storage data area may store data created during use of the terminal device, etc. In addition, the internal memory 421 may include a high-speed random access memory, and may further include a nonvolatile memory such as at least one magnetic disk storage device, a flash memory device, a universal flash memory (universal flash storage, UFS), and the like. The processor 410 performs various functional applications of the terminal device and data processing by executing instructions stored in the internal memory 421 and/or instructions stored in a memory provided in the processor.
The terminal device may implement audio functions through an audio module 470, a speaker 470A, a receiver 470B, a microphone 470C, an application processor, etc. Such as music playing, recording, etc. For the specific operation and function of the audio module 470, speaker 470A, receiver 470B and microphone 470C, reference may be made to the description in the conventional art.
The keys 490 include a power-on key, a volume key, etc. The keys 490 may be mechanical keys. Or may be a touch key. The terminal device may receive key inputs, generating key signal inputs related to user settings of the terminal device and function control.
It should be noted that, the hardware modules included in the terminal device shown in fig. 4 are only described by way of example, and the specific structure of the terminal device is not limited. For example, if the terminal device is a PC, the terminal device may further include a keyboard, a mouse, and the like.
In this embodiment, the terminal device may support one or more of a Base Rate (BR) bluetooth protocol, an enhanced data rate (enhanced data rate, EDR) bluetooth protocol, or a bluetooth low energy (bluetooth low energy, BLE) protocol. Wherein, BR bluetooth also refers to traditional bluetooth, EDR bluetooth also refers to high speed bluetooth, traditional bluetooth and high speed bluetooth also refer to classical bluetooth (classic bluetooth). Exemplary, classical bluetooth is BT V1.0 version-BT V3.0 version, wherein BT V1.0 version-BT V2.0 version is legacy bluetooth and BT V3.0 version is high speed bluetooth. BLE protocols such as the generic attribute profile (generic attribute profile, GATT) protocol, etc.
Compared with classical Bluetooth, the Bluetooth Low Energy (BLE) searching and connecting speed is faster, and the energy consumption is lower. Therefore, bluetooth Low Energy (BLE) is widely applied to battery power supply fields such as intelligent wearable devices (such as intelligent bracelets and intelligent watches), intelligent home fields (such as intelligent door locks), vehicle-mounted systems and bluetooth mouse keyboards. Classical bluetooth is widely used in bluetooth telephone answering, bluetooth headset, bluetooth speaker etc.
It should be noted that, in the embodiment of the present application, the terminal device may support any one of classical bluetooth or BLE bluetooth, and may also support both classical bluetooth and BLE bluetooth. Wherein a terminal device supporting only one bluetooth protocol is also referred to as a single mode bluetooth device, while a terminal device supporting classical bluetooth and BLE bluetooth is also referred to as a dual mode bluetooth device. The dual mode bluetooth device may enable communication with both the classical bluetooth device and the low energy bluetooth device by switching between the BLE bluetooth mode and the classical bluetooth mode. Illustratively, a dual mode bluetooth device such as a smart phone.
The following will take the scenario shown in fig. 2 and fig. 3 as an example, and specifically describe a bluetooth connection establishment method provided in the embodiments of the present application by referring to embodiment 1 and embodiment 2 with reference to the accompanying drawings.
Example 1:
in embodiment 1 of the present application, it is assumed that bluetooth pairing has been performed between the first device and the third device, and the first device shares pairing information of the first device to the second device in a near-end sharing manner, so that a bluetooth connection is directly established on the second device without pairing with other devices (such as the third device) that have been paired with the first device.
As shown in fig. 5A, a method for establishing a bluetooth connection provided in an embodiment of the present application may include the following S501-S505:
s501: the first device establishes a communication connection with the second device.
Illustratively, the communication connection is a near-end communication connection, such as a bluetooth connection, a WiFi direct connection, a peer-to-peer (P2P) connection, an NFC connection, or the like, or the first device and the second device access the same wireless lan, which is not limited in the specific manner of the communication connection.
As one possible implementation, the master device may detect surrounding slave devices based on device discovery techniques, thereby establishing a communication connection with the discovered slave devices. For example, the first device may establish a communication connection with the second device after discovering the second device in response to a user triggering an operation to establish a communication connection between the first device and the second device. As another example, the second device may establish a communication connection with the first device after discovering the first device in response to a user triggering an operation to establish a communication connection between the first device and the second device.
As another possible implementation, the terminal device may establish a communication connection with a device characterized by the entered device information based on the device information manually entered by the user. For example, the first device receives an identification of the second device entered by the user on a device discovery interface of the first device, and establishes a communication connection with the second device. Illustratively, the identifier of the second device may be a media access control (media access control, MAC) address, identity (ID), international mobile equipment identity (international mobile equipment identity, IMEI), etc. of the second device, which embodiments of the present application are not limited.
As another possible implementation manner, the terminal device may also establish a communication connection, such as an NFC connection, with other devices by touching, approaching, etc.
As another possible implementation, the terminal device may also establish a communication connection with other devices by scanning the device code. Regarding the specific manner and process of establishing the communication connection between the terminal devices, reference may be made to conventional techniques, and the embodiments of the present application will not be repeated.
In some embodiments, to ensure the security of the communication information, the first device and the second device may establish a communication connection based on a connection establishment mechanism with higher reliability. For example, the first device and the second device may be based on Huazhi
Figure BDA0003411089160000125
Figure BDA0003411089160000124
Establishing an end-to-end data encrypted communication connection, by->
Figure BDA0003411089160000123
And providing information transmission security guarantee in the process of equipment trust and subsequent information (such as Bluetooth information and pairing information) sharing.
S502: the first device acquires Bluetooth information of the first device and pairing information of the first device. The pairing information of the first device includes pairing information of the first device and the third device.
The bluetooth information of the first device may include, but is not limited to, an identification of the first device, a type of the first device, a bluetooth type of the first device, and the like. The identity of the first device, such as the MAC address, ID, IMEI, etc. of the first device. The type of the first device is, for example, a bluetooth peripheral, a terminal device supporting bluetooth functions, etc. The bluetooth type of the first device is used to characterize a bluetooth protocol that the first device is capable of supporting. The bluetooth type of the first device is e.g. classical bluetooth, BLE bluetooth, dual mode bluetooth, etc.
The pairing information of the first device may include an identification, type, bluetooth type, pairing key, etc. of the terminal device with which the first device has been paired. For example, assuming that bluetooth pairing has been performed between the first device and the third device, the pairing information of the first device includes pairing information of the first device and the third device. Illustratively, the pairing information for the first device includes an identification of a third device with which the first device has been paired, a type, a bluetooth type, a pairing key for the first device and the third device, and so on. By way of example, fig. 5B shows pairing information for a bluetooth peripheral of bluetooth type BLE bluetooth. Fig. 5C shows pairing information for a bluetooth peripheral of the bluetooth type classical bluetooth. Fig. 5D shows the relevant pairing information for a smart phone bluetooth adapter.
In some embodiments, the first device may obtain pairing information for all terminal devices that have been paired with the first device. For example, the terminal device paired with the first device includes a plurality of terminal devices, and the pairing information of the first device may include an identity, a type, a bluetooth type, a pairing key, and the like of the plurality of terminal devices paired with the first device.
In other embodiments, the first device may obtain pairing information of the first device and the other one or more terminal devices according to a selection operation of the user. For example, assuming that the user selects to share pairing information of the third device paired with the first device, the first device may acquire the pairing information of the first device and the third device according to a selection operation of the user.
S503: the first device sends the acquired Bluetooth information of the first device and pairing information of the first device to the second device. Correspondingly, the second device receives the Bluetooth information of the first device and the pairing information of the first device.
Optionally, the second device may also receive bluetooth information and pairing information of other devices.
In some embodiments, the second device may store the received bluetooth information and pairing information locally.
As one possible implementation, the second device may store and manage bluetooth information and pairing information in a classified manner according to predefined rules. For example, the second device may manage pairing information of each source device according to bluetooth information and source devices (including the first device) of the pairing information, respectively.
Illustratively, assuming that the second device receives respective bluetooth information and pairing information (N is a positive integer, N > 1) from the first device, … …, the nth device, respectively, where the first device successfully pairs with the third device, … …, the ith device, etc., and the nth device successfully pairs with the jth device, … …, the kth device, etc., the second device may logically store and manage the received bluetooth information and pairing information according to predefined rules as shown in fig. 6. For example, the second device may determine a source device of pairing information of the corresponding device according to bluetooth information of the first device, bluetooth information of the second device, … …, bluetooth information of the nth device, so as to store and manage pairing information from the source device according to different source devices.
S504: and the second device adds the information of the third device into a paired device list of the second device according to the Bluetooth information of the first device and the pairing information of the first device.
The paired device list of the second device includes information, such as a device identifier, of one or more terminal devices successfully paired with the second device. The identity of the device, such as a device name, a device model number, an ID, a MAC address, an IMEI, etc., is not limited in this application.
It will be appreciated that after the second device adds the information of the third device to the paired device list of the second device based on the bluetooth information of the first device and the pairing information of the first device, it has successfully paired with the third device for the second device. At this time, it may be displayed in the UI interface of the second device that the second device and the third device have been paired, for example, as shown in fig. 2 (a), the smartphone and the bluetooth headset (the device identified as A1 as shown in fig. 2 (a)) have completed pairing. Thus, the second device may enable the establishment of the bluetooth connection with the third device according to the operation of the user to establish the bluetooth connection between the second device and the third device, as shown in S505 below.
S505: and responding to the operation that the user triggers the second device to establish Bluetooth connection with the third device, and the second device establishes Bluetooth connection with the third device.
Illustratively, the user triggers the second device to establish a bluetooth connection with the third device such as: the user triggers an operation of establishing a bluetooth connection with the third device on a paired device User Interface (UI) of the second device.
For example, the operation that the user triggers the second device to establish bluetooth connection with the third device, such as the operation that the user clicks the third device identifier on the UI interface of the paired device, the operation that the user selects (e.g., clicks, long presses, points to the mouse, right keys of the mouse, etc.) the third device identifier and then selects the connection option on the corresponding selection interface, which is not limited in this application, and is specific to the supportable input mode of the second device.
In some embodiments, when receiving an operation that a user triggers the second device to establish a bluetooth connection with the third device, the second device may determine, according to the pairing information, a bluetooth type of a terminal device (such as the third device) paired with the first device, so as to establish a bluetooth connection between the second device and the third device based on a corresponding bluetooth protocol according to a specific bluetooth type. The bluetooth type of the terminal equipment is such as classical bluetooth, BLE bluetooth, dual-mode bluetooth and the like.
For example, if the bluetooth type of the third device is BLE bluetooth, when receiving an operation that the user triggers the second device to establish a bluetooth connection with the third device, the second device may generate a new resolution List (resolution List) entry according to the bluetooth information of the first device and the pairing information of the first device and the third device, and update the new resolution List entry into the resolution List of the second device, so that the second device establishes a bluetooth connection between the second device and the third device based on the updated resolution List.
For example, if the bluetooth type of the third device is classical bluetooth, when receiving the operation that the user triggers the second device to establish bluetooth connection with the third device, the second device may modify, according to bluetooth information of the first device and pairing information of the first device and the third device, a bluetooth MAC address in a module (such as a bluetooth Controller) of the second device for taking charge of bluetooth services to a bluetooth MAC address of the first device, so as to successfully establish bluetooth connection between the second device and the third device. Further, after the second device establishes a bluetooth connection with the third device (for example, when the bluetooth connection is successfully established, or after a preset interval after the bluetooth connection is successfully established), the second device may change the bluetooth MAC address in the module for taking charge of bluetooth service back to the bluetooth MAC address of the second device, so as to avoid affecting subsequent use of the second device.
In some embodiments, to ensure convenience of use, after the second device adds the information of the third device to the paired device list of the second device, the second device may retain the information of the third device in the paired device list, so that device discovery, device authentication, and device pairing do not need to be performed again when there is a bluetooth connection requirement later, or pairing information is acquired from other devices again, pairing information is resolved, and the bluetooth connection may be established directly based on the pairing information. For example, a agreed link key (link) is established with a personal identification number (personal identification number, PIN) for the establishment of a subsequent bluetooth connection.
In other embodiments, in order to not affect subsequent use of the second device (e.g., occupy storage space, etc.), and to ensure user privacy and security of device pairing related data, the second device may delete bluetooth information and pairing information received from other devices (including deleting the third device from the paired device list of the second device) after the bluetooth connection use is completed. Or after the trust relationship between the first device and the second device is released, the second device may delete bluetooth information and pairing information received from other devices (including deleting the third device from the paired device list of the second device). The trust relationship between the first device and the second device is illustratively broken, such as by the first device being communicatively disconnected from the second device.
As an example, the bluetooth connection establishment method provided in the embodiment of the present application may be implemented based on a plurality of bluetooth connection establishment related functional units in the terminal device. For example, as shown in fig. 7, the terminal device may include a bluetooth unit 710 and a device sharing unit 720.
The bluetooth unit 710 is responsible for slave device discovery, device authentication, bluetooth pairing, bluetooth connection establishment, paired device list management, data transmission, and the like. As shown in fig. 7, the architecture of the bluetooth unit 710 may include a bluetooth service layer, a bluetooth protocol stack (i.e., an implementation code implementing a bluetooth protocol), and a bluetooth Controller (e.g., a bluetooth chip) from top to bottom.
The device sharing unit 720 is configured to read pairing information of the terminal device (e.g., obtain from the bluetooth unit 710), establish a near-end connection, share the pairing information, synchronize the pairing information, parse the pairing information, and import the pairing information to the bluetooth unit 710. As shown in fig. 7, the device sharing unit 720 may include a bluetooth migration device management module and a pairing information storage module. The bluetooth migration device management module is responsible for pairing information reading, near-end connection establishment, pairing information sharing, pairing information synchronization, pairing information analysis, introduction of pairing information into the bluetooth unit 710, and the like. The pairing information storage module is used for managing non-native pairing information and the like, for example, storing pairing information shared by other terminal devices.
It should be noted that, the architecture of the bluetooth unit 710 and the device sharing unit 720 shown in fig. 7 is only an example of a structure, and the embodiments of the present application are not limited to the specific architecture of the bluetooth unit 710 and the device sharing unit 720, depending on the specific operating system.
Taking the bluetooth function structure of the first device and the second device as shown in fig. 7 as an example, as shown in fig. 8, the first device may be paired with the third device through a bluetooth unit 510-1 (such as a bluetooth service layer). After the first device and the third device are successfully paired, the bluetooth unit 510-1 (such as a bluetooth service layer) of the first device stores pairing information of the first device and the third device. Thus, the device sharing unit 520-1 (e.g., the mobility device management module) of the first device obtains the pairing information from the bluetooth unit 510-1 (e.g., the bluetooth service layer). The pairing information comprises pairing information of the first device and the third device.
Further, as shown in fig. 8, the device sharing unit 520-1 (e.g., the migration device management module) of the first device sends the bluetooth information and the pairing information of the first device to the second device. Correspondingly, the second device may send the received bluetooth information and the pairing information to the device sharing unit 520-2 (such as the migration device management module) of the second device for processing. For example, the migration device management module of the second device may store the received bluetooth information and pairing information of the first device in the pairing information storage module. So that the bluetooth unit 510-2 (e.g., bluetooth service layer) adds the third device to the paired device list of the second device based on the bluetooth information and pairing information of the first device.
With the bluetooth function structures of the first device and the second device as shown in fig. 7, the first device performs pairing information sharing according to the selection of the user, and the second device manages pairing information according to the bluetooth information and the source of the pairing information, as shown in fig. 9, for example, the method for establishing bluetooth connection provided in the embodiment of the present application may include the following S901-S906, and S907-1 or S907-2:
s901: the first device and the second device establish communication connection through the migration device management module.
For example, the first device or the second device may discover the peer based on a device discovery technique, thereby establishing a communication connection through the migration device management module. Alternatively, the first device or the second device may establish the communication connection based on the device information of the counterpart device manually input by the user. Alternatively, the first device and/or the second device may also establish a communication connection by touching, approaching, scanning a device code, etc. The embodiments of the present application are not limited to a specific manner of communication connection establishment.
To ensure the security of the communication information, in some embodiments, the first device and the second device may be based on, for example, huacheng
Figure BDA0003411089160000151
And a connection establishment mechanism with higher reliability is used for establishing communication connection of end data encryption.
S902: in response to a user selecting an operation of sharing pairing information on the first device, the migration device management module of the first device obtains bluetooth information of the first device and pairing information of the first device from the bluetooth service layer. The pairing information of the first device includes pairing information of the first device and the third device.
Wherein, the operation of selecting shared pairing information by the user on the first device is as follows: the user selects an operation of one or more paired devices on the pairing information sharing UI interface.
In some embodiments, the first device may obtain and share pairing information for all terminal devices that have been paired with the first device.
In other embodiments, the first device may support a user to select a particular paired device to obtain and share pairing information for one or more terminal devices selected by the user and paired with the first device.
S903: the first device sends the acquired Bluetooth information of the first device and pairing information of the first device to the second device through the migration device management module.
S904: and the migration equipment management module of the second equipment sends the received Bluetooth information of the first equipment and the received pairing information of the first equipment to the pairing information storage module and the Bluetooth service layer.
Optionally, the migration device management module of the second device may also send the received bluetooth information and pairing information of the other device to the pairing information storage module and the bluetooth service layer.
The migration device management module of the second device sends the received Bluetooth information and pairing information to the pairing information storage module for storing the received Bluetooth information and pairing information so that the information can be used at any time later. And the migration equipment management module of the second equipment sends the received Bluetooth information and pairing information to the Bluetooth service layer for establishing Bluetooth connection between the subsequent second equipment and the third equipment.
S905: the pairing information storage module of the second device stores the received Bluetooth information and pairing information according to the source.
S906: and the Bluetooth service layer of the second device updates a paired device list of the second device according to the Bluetooth information of the first device and the pairing information of the first device and the third device.
If the bluetooth type of the third device is BLE bluetooth, the second device performs the following S907-1; if the Bluetooth type of the three devices is classical Bluetooth, the second device performs the following S907-2:
s907-1: and in response to the user triggering the operation of establishing the Bluetooth connection between the second device and the third device, the Bluetooth service layer of the second device updates a resolution List of the second device according to the Bluetooth information of the first device and the pairing information of the first device and the third device, and establishes the Bluetooth connection with the third device.
S907-2: and responding to the operation that the user triggers the second device to establish Bluetooth connection with the third device, the Bluetooth service layer of the second device modifies the Bluetooth MAC address of the second device into the Bluetooth MAC address of the first device, and establishes Bluetooth connection with the third device.
Further, after the second device establishes a bluetooth connection with the third device (for example, when the bluetooth connection is established successfully, or after a preset interval after the bluetooth connection is established successfully), the bluetooth service layer of the second device may change the bluetooth MAC address in the module responsible for bluetooth service back to the bluetooth MAC address of the second device, so as to avoid affecting subsequent use of the second device.
According to the Bluetooth connection establishment method, the devices share pairing information through the near end, conventional device discovery, device authentication requirement and interaction capability exchange, device public key exchange and authentication and other steps can be avoided on the terminal device, a paired device list is updated directly according to the pairing information obtained from other terminal devices, user operation in the Bluetooth connection establishment process is simplified, and time required by Bluetooth pairing is shortened. In addition, in the scene that some users use a plurality of terminal devices and perform cross-device service based on the Bluetooth technology, the Bluetooth connection establishment method provided by the embodiment of the application can greatly simplify user operation during Bluetooth connection switching, shorten the time required by Bluetooth switching, enable the Bluetooth connection switching process to be smoother, and improve the use experience of users.
Example 2:
in embodiment 2 of the present application, it is assumed that bluetooth pairing has been performed between the first device and the third device, and the first device shares pairing information to the second device through the fourth device, so that no pairing is performed on the second device to directly establish a bluetooth connection with another device (such as the third device) that has been paired with the first device. The fourth device may be a cloud side device (such as a cloud server), or may be other terminal devices, which is not limited in this application.
Taking the cloud server as an example, as shown in fig. 10, a method for establishing bluetooth connection provided in the embodiment of the present application may include the following steps S1001 to S1004:
s1001: the first device sends Bluetooth information of the first device and pairing information of the first device to a cloud server (namely, a fourth device). The pairing information of the first device includes pairing information of the first device and the third device.
The bluetooth information of the first device may include, but is not limited to, an identification of the first device, a type of the first device, a bluetooth type of the first device, and the like. The identity of the first device, such as the MAC address, ID, IMEI, etc. of the first device. The type of the first device is, for example, a bluetooth peripheral, a terminal device supporting bluetooth functions, etc. The bluetooth type of the first device is used to characterize a bluetooth protocol that the first device is capable of supporting. The bluetooth type of the first device is e.g. classical bluetooth, BLE bluetooth, dual mode bluetooth, etc.
The pairing information of the first device includes an identification, a type, a bluetooth type, a pairing key, etc. of the terminal device paired with the first device. For example, assuming that bluetooth pairing has been performed between the first device and the third device, the pairing information of the first device includes pairing information of the first device and the third device. By way of example, the pairing information for the first device may include an identification of a third device with which the first device has been paired, a type, a bluetooth type, a pairing key for the first device and the third device, and so on.
In some embodiments, the first device may send the bluetooth information of the first device and pairing information of all terminal devices paired with the first device to the cloud server (i.e., the fourth device). For example, the terminal device paired with the first device includes a plurality of terminal devices, and the pairing information includes an identification, a type, a bluetooth type, a pairing key, and the like of the plurality of terminal devices paired with the first device.
In other embodiments, the first device may send pairing information of the first device and the other one or more terminal devices to the cloud server (i.e., the fourth device) according to a selection operation of the user. For example, assuming that the user selects a third device that has been paired with the first device, the first device may send pairing information of the first device and the third device to the cloud server (i.e., the fourth device) according to a selection operation of the user.
S1002: the second device obtains bluetooth information and pairing information from the cloud server (i.e., the fourth device).
For example, the second device may acquire the bluetooth information and the pairing information from the cloud server (i.e., the fourth device) when receiving an operation such as an operation of turning on the bluetooth function by the user or an operation of triggering device discovery by the user.
Alternatively, the second device may also obtain the bluetooth information and the pairing information from the cloud server (i.e. the fourth device) at power-on or periodically.
Alternatively, the cloud server (i.e., the fourth device) may also actively synchronize the bluetooth information and pairing information to the second device when the bluetooth information and/or pairing information is updated, such as when the bluetooth information and pairing information is received from the first device. The specific triggering mode and triggering time for the second device to acquire the bluetooth information and the pairing information from the cloud server (namely the fourth device) are not limited.
In some embodiments, to ensure user privacy and security of data related to device pairing, the cloud server may support synchronizing only bluetooth information and pairing information to a terminal device that logs in to the same account as the first device. That is, in the embodiment of the present application, the second device logs in the same account number as the first device. The account number may be a bluetooth connection related account number, may be a related account number of a mobile phone manager or the like, and may be a related account number of a cloud service or the like.
In some embodiments, the cloud server (i.e., the fourth device) may also store and manage the received bluetooth information and pairing information.
As a possible implementation manner, the cloud server (i.e., the fourth device) may store and manage bluetooth information and pairing information in a classified manner according to predefined rules.
In some embodiments, the predefined rules are such as rules managed by account number. For example, the cloud server (i.e. the fourth device) may respectively manage the pairing information corresponding to each account according to the account registered by the source device (including the first device) of the bluetooth information and the pairing information.
For example, assuming that the second device receives respective bluetooth information and pairing information (N is a positive integer, N > 1) from the first device, … …, the nth device, respectively, where the first device logs in the account a, the nth device logs in the account B, the first device successfully pairs with the third device, … …, the ith device, etc., the nth device successfully pairs with the jth device, … …, the kth device, etc., the second device may logically store and manage the received bluetooth information and pairing information according to predefined rules as shown in fig. 11.
In other embodiments, the predefined rules may also be rules managed by the sources of bluetooth information and pairing information, and reference may be made specifically to the stored rule logic diagram shown in fig. 6.
S1003: the second device adds the third device to the paired device list of the second device according to the Bluetooth information of the first device and the pairing information of the first device.
The paired device list of the second device includes information, such as a device identifier, of one or more terminal devices successfully paired with the second device. The identity of the device, such as a device name, a device model number, an ID, a MAC address, an IMEI, etc., is not limited in this application.
In some embodiments, the second device may also store and manage the received bluetooth information and pairing information. For example, the second device may store and manage bluetooth information and pairing information in a classified manner according to predefined rules. Illustratively, predefined rules are such as rules managed by account number (as shown in fig. 11), rules managed by sources of bluetooth information and pairing information (as shown in fig. 6), and so forth.
S1004: and responding to the operation that the user triggers the second device to establish Bluetooth connection with the third device, and the second device establishes Bluetooth connection with the third device.
Illustratively, the user triggers the second device to establish a bluetooth connection with the third device such as: the operation of triggering the second device to establish bluetooth connection with the third device on the paired UI interface of the second device by the user, such as the operation of clicking the third device identifier on the paired UI interface by the user, the operation of selecting (e.g. clicking, long pressing, pointing with a mouse, right clicking with a mouse, etc.) the third device identifier and then selecting a connection option on the corresponding selection interface, etc. the application is not limited, and depends on the supportable input mode of the second device specifically.
In some embodiments, when receiving an operation that a user triggers the second device to establish a bluetooth connection with the third device, the second device may determine, according to the pairing information, a bluetooth type of a terminal device (such as the third device) paired with the first device, so as to establish a bluetooth connection between the second device and the third device based on a corresponding bluetooth protocol according to a specific bluetooth type. The bluetooth type of the terminal equipment is such as classical bluetooth, BLE bluetooth, dual-mode bluetooth and the like.
For example, if the bluetooth type of the third device is BLE bluetooth, when receiving an operation that the user triggers the second device to establish bluetooth connection with the third device, the second device may generate a new resolution List entry according to the bluetooth information of the first device and the pairing information of the first device and the third device, and update the new resolution List entry into the resolution List of the second device, so that the second device establishes bluetooth connection between the second device and the third device based on the updated resolution List.
For example, if the bluetooth type of the third device is classical bluetooth, when receiving the operation that the user triggers the second device to establish bluetooth connection with the third device, the second device may modify, according to bluetooth information of the first device and pairing information of the first device and the third device, a bluetooth MAC address in a module (such as a bluetooth Controller) of the second device for taking charge of bluetooth services to a bluetooth MAC address of the first device, so as to successfully establish bluetooth connection between the second device and the third device. Further, after the second device establishes a bluetooth connection with the third device (for example, when the bluetooth connection is successfully established, or after a preset interval after the bluetooth connection is successfully established), the second device may change the bluetooth MAC address in the module for taking charge of bluetooth service back to the bluetooth MAC address of the second device, so as to avoid affecting subsequent use of the second device.
In some embodiments, to ensure ease of use, after the second device adds the third device to the paired device list of the second device, the second device may retain the third device in the paired device list so that a bluetooth connection may be established directly based on the pairing information when there is a subsequent bluetooth connection need.
In other embodiments, in order to not affect subsequent use of the second device (e.g., occupy storage space, etc.), and to ensure user privacy and security of device pairing related data, the second device may delete bluetooth information and pairing information received from other devices (including deleting the third device from the paired device list of the second device) after the bluetooth connection use is completed. Or after the trust relationship between the first device and the second device is released, the second device may delete bluetooth information and pairing information received from other devices (including deleting the third device from the paired device list of the second device). Illustratively, the trust relationship between the first device and the second device is relieved, such as the second device logging out of the logged-in account, or the like.
In some embodiments, the method for establishing a bluetooth connection according to the embodiments of the present application may be implemented based on the bluetooth connection establishment related functional unit with the structure shown in fig. 7. Wherein the first device may be paired with a third device via bluetooth unit 510-1 (e.g., bluetooth service layer). After the first device and the third device are successfully paired, the bluetooth unit 510-1 (such as a bluetooth service layer) of the first device stores pairing information of the first device and the third device. Thus, the device sharing unit 520-1 (e.g., the mobility device management module) of the first device obtains the pairing information from the bluetooth unit 510-1 (e.g., the bluetooth service layer). Further, the first device may send the bluetooth information and the pairing information of the first device to the cloud server (i.e. the fourth device) through the device sharing unit 520-1 (e.g. the migration device management module). Correspondingly, the second device may acquire bluetooth information and pairing information from the cloud server (i.e. the fourth device) through the device sharing unit 520-1 (e.g. the migration device management module), and send the received bluetooth information and pairing information to the bluetooth service layer of the second device for processing, for example, update the paired device list of the second device according to the bluetooth information and pairing information, and enable the second device to establish bluetooth connection with the third device in response to the user triggering the operation of establishing bluetooth connection between the second device and the third device.
Taking the bluetooth function structures of the first device and the second device as shown in fig. 7, the first device performs pairing information sharing according to the selection of the user, and the cloud server (i.e. the fourth device) and the second device manage pairing information according to the bluetooth information and the account number registered by the pairing information source device, as shown in fig. 12, the bluetooth connection establishment method provided in the embodiment of the present application may include the following steps S1201-S1204, and S904-S906, S907-1 or S907-2:
s1201: in response to a user selecting an operation of sharing pairing information on the first device, the migration device management module of the first device obtains bluetooth information of the first device and pairing information of the first device from the bluetooth service layer. The pairing information of the first device includes pairing information of the first device and the third device.
S1202: the first device sends the acquired Bluetooth information of the first device and pairing information of the first device to a cloud server (namely a fourth device) through a migration device management module.
Optionally, the cloud server (i.e. the fourth device) may also receive bluetooth information and pairing information of other devices.
S1203: the cloud server (namely the fourth device) stores the received Bluetooth information and pairing information according to the account number.
S1204: and the second device acquires the Bluetooth information of the first device and the pairing information of the first device from the cloud server (namely the fourth device) through the migration device management module.
S904: and the migration equipment management module of the second equipment sends the received Bluetooth information of the first equipment and the received pairing information of the first equipment to the pairing information storage module and the Bluetooth service layer.
S905: and the pairing information storage module of the second equipment stores the received Bluetooth information and pairing information according to the account number.
S906: and the Bluetooth service layer of the second device updates a paired device list of the second device according to the Bluetooth information of the first device and the pairing information of the first device and the third device.
If the bluetooth type of the third device is BLE bluetooth, the second device performs the following S907-1; if the Bluetooth type of the three devices is classical Bluetooth, the second device performs the following S907-2: :
s907-1: and in response to the user triggering the operation of establishing the Bluetooth connection between the second device and the third device, the Bluetooth service layer of the second device updates a resolution List of the second device according to the Bluetooth information of the first device and the pairing information of the first device and the third device, and establishes the Bluetooth connection with the third device.
S907-2: and responding to the operation that the user triggers the second device to establish Bluetooth connection with the third device, the Bluetooth service layer of the second device modifies the Bluetooth MAC address of the second device into the Bluetooth MAC address of the first device, and establishes Bluetooth connection with the third device.
Further, after the second device establishes a bluetooth connection with the third device (for example, when the bluetooth connection is established successfully, or after a preset interval after the bluetooth connection is established successfully), the bluetooth service layer of the second device may change the bluetooth MAC address in the module responsible for bluetooth service back to the bluetooth MAC address of the second device, so as to avoid affecting subsequent use of the second device.
According to the Bluetooth connection establishment method, pairing information is shared among devices through the far-field cloud service synchronization capability, for example, a first device can synchronously upload Bluetooth information and pairing information corresponding to paired devices to a cloud server, terminal devices (such as second devices) logged in the same account can synchronously acquire the information, so that conventional device discovery, device authentication requirements and interaction capability exchange, device public key exchange and authentication and other steps are avoided on the second devices, paired device lists are updated directly according to the acquired pairing information, user operation in the Bluetooth connection establishment process is simplified, and time required by Bluetooth pairing is shortened. In addition, when some users use a plurality of terminal devices and perform cross-device service based on the Bluetooth technology, the Bluetooth connection establishment method provided by the embodiment of the application can greatly simplify user operation during Bluetooth connection switching, shorten time required by Bluetooth switching, enable the Bluetooth connection switching process to be smoother, and improve user experience.
With respect to the specific procedures of S1201-S1204, reference may be made to the related description in the above embodiment 1 or the description and the explanation of fig. 10 in the above embodiment, and the details are not repeated here.
It should be noted that, in the embodiment of the present application, the specific structure of the functional unit related to bluetooth connection establishment in the terminal device is not limited. For example, the bluetooth connection establishment related functional unit in the terminal device may further include other functional modules, or the functional modules in the bluetooth connection establishment related functional unit in the terminal device may also be combined in other manners. For example, in other embodiments, the bluetooth connection establishment method provided in the embodiments of the present application may be implemented based on the bluetooth connection establishment related functional unit with the structure shown in fig. 13.
As shown in fig. 13, the terminal device may include a device management unit, a device sharing unit, and a bluetooth unit.
The device management unit is used for carrying out sharing management of Bluetooth information and pairing information, synchronous management of the Bluetooth information and the pairing information, management of login accounts (such as Bluetooth connection related accounts, mobile phone manager accounts and the like) and the like.
The bluetooth unit is responsible for slave device discovery, device authentication, pairing information synchronization, bluetooth pairing, bluetooth connection establishment, paired device list management, data transmission, and the like. The bluetooth unit may include a bluetooth service layer, a bluetooth protocol stack (i.e., an implementation code for implementing a bluetooth protocol), and a bluetooth Controller (Controller) (e.g., a bluetooth chip) from top to bottom.
The device sharing unit is used for establishing near-end connection, acquiring pairing information, analyzing the pairing information, importing the pairing information to the Bluetooth unit, storing the pairing information and the like. The equipment sharing unit comprises a connection control management module, a local pairing information storage module and a non-local pairing information storage module. The connection control management module is used for establishing near-end connection, acquiring pairing information, analyzing the pairing information, importing the pairing information to the Bluetooth unit and the like. The local pairing information storage module is used for storing the device related information which is successfully paired by the local pairing based on conventional device discovery, device authentication and device pairing. The non-native pairing information storage module is used for storing Bluetooth information and pairing information acquired from a fourth device (such as a cloud server).
Taking the bluetooth function structure of the first device and the second device as an example, as shown in fig. 13, the first device may be paired with the third device through a bluetooth unit 1320-1 (e.g., a bluetooth service layer). After the first device and the third device are successfully paired, the bluetooth unit 1320-1 (e.g. bluetooth service layer) may store the pairing information of the first device and the third device in the local pairing information storage module of the device sharing unit 1330-1. Therefore, the connection control management module of the first device may acquire the pairing information from the local pairing information storage module, and synchronize the bluetooth information of the first device and the pairing information to the cloud server (i.e., the fourth device) through the device management unit 1310-1. Correspondingly, the device management unit 1310-2 of the second device obtains the bluetooth information and the pairing information from the cloud server (i.e. the fourth device), and sends the received bluetooth information and pairing information to the connection control management module of the device sharing unit 1330-2 for processing, for example, storing the bluetooth information and the pairing information in the non-native pairing information storage module, analyzing the pairing information, and importing the pairing information into the bluetooth unit 1320-2. The bluetooth unit 1320-2 (e.g., a bluetooth service layer) may update a paired device list of the second device according to the pairing information, and enable the second device to establish a bluetooth connection with the third device in response to a user triggering an operation of the second device to establish a bluetooth connection with the third device.
Further, in some embodiments of the present application, after the second device adds the third device to the paired device list of the second device according to the bluetooth information and the pairing information obtained from the first device, the second device may share (e.g. share in a near-end sharing manner or share through far-field cloud service synchronization capability) the bluetooth information and the pairing information with other devices according to the user's requirement, so that other terminal devices may not perform conventional device discovery, device-to-device authentication requirement and interaction capability exchange, device-to-device public key exchange and authentication, and update the paired device list directly according to the pairing information shared by the second device. And so on.
In other embodiments of the present application, in order to ensure privacy of a private user and security of data related to device pairing, the method provided in the embodiment of the present application may support only one sharing and not forwarding sharing when sharing pairing information. For example, in the embodiment of the present application, the first device may share the pairing information of the third device that is successfully paired after the device discovery and authentication with the second device, but the second device cannot share the pairing information with other devices again. Or, when the pairing information is shared, the method provided by the embodiment of the application can only support forwarding for preset times.
It should be understood that various aspects of the embodiments of the present application may be used in reasonable combination, and that the explanation or illustration of the various terms presented in the embodiments may be referred to or explained in the various embodiments without limitation.
It should also be understood that, in various embodiments of the present application, the sequence numbers of the foregoing processes do not mean the order of execution, and the order of execution of the processes should be determined by the functions and internal logic thereof, and should not constitute any limitation on the implementation process of the embodiments of the present application.
It will be appreciated that, in order to implement the functions of any of the embodiments described above, the terminal device (including the first device and the second device) includes corresponding hardware structures and/or software modules that perform the respective functions. Those of skill in the art will readily appreciate that the elements and algorithm steps of the examples described in connection with the embodiments disclosed herein may be implemented as hardware or combinations of hardware and computer software. Whether a function is implemented as hardware or computer software driven hardware depends upon the particular application and design constraints imposed on the solution. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present application.
The embodiment of the application can divide the functional modules of the terminal equipment (including the first equipment and the second equipment), for example, each functional module can be divided corresponding to each function, and two or more functions can be integrated in one processing module. The integrated modules may be implemented in hardware or in software functional modules. It should be noted that, in the embodiment of the present application, the division of the modules is schematic, which is merely a logic function division, and other division manners may be implemented in actual implementation.
It should be understood that each module in the terminal device may be implemented in software and/or hardware, which is not particularly limited. In other words, the electronic device is presented in the form of functional modules. A "module" herein may refer to an application specific integrated circuit ASIC, an electronic circuit, a processor and memory that execute one or more software or firmware programs, an integrated logic circuit, and/or other devices that can provide the described functionality.
In an alternative, when data transmission is implemented using software, it may be implemented wholly or partly in the form of a computer program product. The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, the processes or functions described in the embodiments of the present application are fully or partially implemented. The computer may be a general purpose computer, a special purpose computer, a computer network, or other programmable apparatus. The computer instructions may be stored in a computer-readable storage medium or transmitted from one computer-readable storage medium to another computer-readable storage medium, for example, the computer instructions may be transmitted from one website, computer, server, or data center to another website, computer, server, or data center by wired (e.g., coaxial cable, fiber optic, digital subscriber line ((digital subscriber line, DSL)), or wireless (e.g., infrared, wireless, microwave, etc.), the computer-readable storage medium may be any available medium that can be accessed by the computer or a data storage device such as a server, data center, etc., that contains an integration of one or more available media, the available media may be magnetic media, (e.g., floppy disk, hard disk, tape), optical media (e.g., digital versatile disk (digital video disk, DVD)), or semiconductor media (e.g., solid State Disk (SSD)), etc.
The steps of a method or algorithm described in connection with the embodiments disclosed herein may be embodied in hardware or in software instructions executed by a processor. The software instructions may be comprised of corresponding software modules that may be stored in RAM memory, flash memory, ROM memory, EPROM memory, EEPROM memory, registers, hard disk, a removable disk, a CD-ROM, or any other form of storage medium known in the art. An exemplary storage medium is coupled to the processor such the processor can read information from, and write information to, the storage medium. In the alternative, the storage medium may be integral to the processor. The processor and the storage medium may reside in an ASIC. In addition, the ASIC may reside in an electronic device. The processor and the storage medium may reside as discrete components in a terminal device.
From the foregoing description of the embodiments, it will be apparent to those skilled in the art that, for convenience and brevity of description, only the above-described division of functional modules is illustrated, and in practical application, the above-described functional allocation may be implemented by different functional modules according to needs, i.e. the internal structure of the apparatus is divided into different functional modules to implement all or part of the functions described above.

Claims (21)

1. A method for bluetooth connection establishment, the method comprising:
the second equipment receives Bluetooth information of a first equipment and pairing information of the first equipment, wherein the Bluetooth information of the first equipment is shared by the first equipment, the pairing information of the first equipment comprises Bluetooth pairing information of the first equipment and third equipment, and the Bluetooth pairing of the first equipment and the third equipment is completed;
and the second equipment performs Bluetooth pairing with the third equipment according to the Bluetooth information of the first equipment and the pairing information of the first equipment.
2. The method of claim 1, wherein the second device receiving the bluetooth information of the first device and the pairing information of the first device shared by the first device comprises:
the second device receives Bluetooth information of the first device and pairing information of the first device from the first device through the communication connection after establishing the communication connection with the first device.
3. The method of claim 1, wherein the second device receiving the bluetooth information of the first device and the pairing information of the first device shared by the first device comprises:
the second device receives Bluetooth information of the first device and pairing information of the first device, which are sent by a fourth device, wherein the Bluetooth information of the first device and the pairing information of the first device are acquired from the first device by the fourth device.
4. A method according to claim 3, wherein the fourth device is a cloud-side device.
5. The method of any of claims 1-4, wherein the bluetooth pairing information of the first device and the third device includes a bluetooth type of the third device;
wherein, the bluetooth type includes: classical bluetooth, low energy BLE bluetooth, or dual mode bluetooth.
6. The method of claim 5, wherein the second device performs bluetooth pairing with the third device according to bluetooth information of the first device and pairing information of the first device, comprising:
and the second equipment performs Bluetooth pairing with the third equipment based on a corresponding Bluetooth protocol according to the Bluetooth information of the first equipment and the Bluetooth type of the third equipment in the pairing information of the first equipment.
7. The method according to any one of claims 1-6, further comprising:
and responding to the operation that a user triggers the second device to establish Bluetooth connection with the third device, wherein the second device establishes Bluetooth connection with the third device based on Bluetooth pairing of the second device and the third device.
8. The method of claim 7, wherein after the second device establishes a bluetooth connection with the third device, the method further comprises:
the second device deletes the Bluetooth information of the first device and the Bluetooth pairing information of the first device and the third device.
9. The method according to any one of claims 1-7, further comprising:
the second device shares Bluetooth information of the second device and Bluetooth pairing information of the second device and the third device with a fifth device, so that the fifth device performs Bluetooth pairing with the third device according to the Bluetooth information of the second device and the Bluetooth pairing information of the second device and the third device.
10. A method for bluetooth connection establishment, the method comprising:
the first equipment shares Bluetooth information of the first equipment and pairing information of the first equipment to the second equipment so that the second equipment carries out Bluetooth pairing with the third equipment according to the Bluetooth information of the first equipment and the pairing information of the first equipment;
the pairing information of the first device comprises Bluetooth pairing information of the first device and the third device, and the first device and the third device complete Bluetooth pairing.
11. The method of claim 10, wherein the first device sharing the bluetooth information of the first device and the pairing information of the first device with the second device comprises:
and the first equipment shares the Bluetooth information of the first equipment and the pairing information of the first equipment with the second equipment according to the operation of sharing one or more pieces of pairing information triggered by the user.
12. The method according to claim 10 or 11, wherein the first device shares bluetooth information of the first device and pairing information of the first device to the second device, comprising:
and after the first device establishes communication connection with the second device, the first device sends Bluetooth information of the first device and pairing information of the first device to the second device through the communication connection.
13. The method according to claim 10 or 11, wherein the first device shares bluetooth information of the first device and pairing information of the first device to the second device, comprising:
and the first device sends the Bluetooth information of the first device and the pairing information of the first device to the second device through the fourth device.
14. The method of claim 13, wherein the fourth device is a cloud-side device.
15. The method of any of claims 10-14, wherein the bluetooth pairing information of the first device and the third device includes a bluetooth type of the third device;
wherein, the bluetooth type includes: classical bluetooth, low energy BLE bluetooth, or dual mode bluetooth.
16. A second device, the second device comprising:
a memory for storing a computer program;
a transceiver for receiving or transmitting radio signals;
a processor for executing the computer program to cause the second device to implement the method of any of claims 1-9.
17. A first device, the first device comprising:
a memory for storing a computer program;
a transceiver for receiving or transmitting radio signals;
a processor for executing the computer program to cause the first device to implement the method of any of claims 10-15.
18. A communication system, the communication system comprising:
the second device of claim 16; the method comprises the steps of,
The first device of claim 17.
19. A computer readable storage medium, characterized in that the computer readable storage medium has stored thereon a computer program code which, when executed by a processing circuit, implements the method according to any of claims 1-9 or 10-15.
20. A chip system, comprising a processing circuit, a storage medium having computer program code stored therein; the computer program code implementing the method of any of claims 1-9 or 10-15 when executed by the processing circuit.
21. A computer program product for running on a computer to implement the method of any one of claims 1-9 or 10-15.
CN202111531867.6A 2021-12-14 2021-12-14 Bluetooth connection establishment method, device and system Pending CN116264678A (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN202111531867.6A CN116264678A (en) 2021-12-14 2021-12-14 Bluetooth connection establishment method, device and system
PCT/CN2022/137200 WO2023109610A1 (en) 2021-12-14 2022-12-07 Bluetooth connection establishment method, device and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111531867.6A CN116264678A (en) 2021-12-14 2021-12-14 Bluetooth connection establishment method, device and system

Publications (1)

Publication Number Publication Date
CN116264678A true CN116264678A (en) 2023-06-16

Family

ID=86722534

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111531867.6A Pending CN116264678A (en) 2021-12-14 2021-12-14 Bluetooth connection establishment method, device and system

Country Status (2)

Country Link
CN (1) CN116264678A (en)
WO (1) WO2023109610A1 (en)

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110611905B (en) * 2019-08-09 2023-11-21 华为技术有限公司 Information sharing method, terminal device, storage medium, and computer program product
CN113676879A (en) * 2020-05-14 2021-11-19 华为技术有限公司 Method, electronic device and system for sharing information
CN113613313A (en) * 2021-08-19 2021-11-05 杭州涂鸦信息技术有限公司 Communication method, device and medium for Bluetooth equipment pairing

Also Published As

Publication number Publication date
WO2023109610A1 (en) 2023-06-22

Similar Documents

Publication Publication Date Title
US11297666B2 (en) Electronic device and method for forming Wi-Fi direct group thereof
US10004095B2 (en) Method and apparatus for communicating using multiple frequency bands
WO2020233538A1 (en) Method for accessing wireless local area network and terminal
KR102251326B1 (en) Method for organizing proximity network and an electronic device thereof
CN112449328A (en) Bluetooth searching method, system and related device
WO2020062344A1 (en) Data transmission method and electronic device
CN111373713B (en) Message transmission method and device
WO2022068513A1 (en) Wireless communication method and terminal device
CN113196236A (en) Cross-device authentication method and electronic device
CN113676879A (en) Method, electronic device and system for sharing information
KR102343301B1 (en) Method for wireless connection and electronic device thereof
WO2020062304A1 (en) File transmission method and electronic device
CN114697879B (en) Bluetooth pairing method, electronic device, chip and storage medium
WO2022247638A1 (en) Method for controlling connection of stylus, and electronic device
WO2021227942A1 (en) Information sharing method, electronic devices and system
WO2020051916A1 (en) Method for transmitting information and electronic device
WO2023109610A1 (en) Bluetooth connection establishment method, device and system
US20230087282A1 (en) Dual wi-fi connection method and electronic device
CN112615891B (en) Pairing method and device
WO2023098356A1 (en) Fingerprint identification method and system, and electronic device
WO2023051229A1 (en) Method and apparatus for identifying device, and electronic device and medium
CN114844974B (en) Method for sharing address book, mobile device, electronic device and communication system
WO2021037208A1 (en) Bluetooth connection method and electronic apparatus
CN117009971A (en) Data processing method and device
CN115884140A (en) Cross-device connection method, electronic device, and storage medium

Legal Events

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