WO2023165418A1 - 蓝牙连接方法和蓝牙连接装置 - Google Patents

蓝牙连接方法和蓝牙连接装置 Download PDF

Info

Publication number
WO2023165418A1
WO2023165418A1 PCT/CN2023/078059 CN2023078059W WO2023165418A1 WO 2023165418 A1 WO2023165418 A1 WO 2023165418A1 CN 2023078059 W CN2023078059 W CN 2023078059W WO 2023165418 A1 WO2023165418 A1 WO 2023165418A1
Authority
WO
WIPO (PCT)
Prior art keywords
bluetooth
target
connection
bluetooth device
classic
Prior art date
Application number
PCT/CN2023/078059
Other languages
English (en)
French (fr)
Inventor
陈开�
何刚
Original Assignee
维沃移动通信有限公司
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 维沃移动通信有限公司 filed Critical 维沃移动通信有限公司
Publication of WO2023165418A1 publication Critical patent/WO2023165418A1/zh

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/80Services using short range communication, e.g. near-field communication [NFC], radio-frequency identification [RFID] or low energy communication
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/06Selective distribution of broadcast services, e.g. multimedia broadcast multicast service [MBMS]; Services to user groups; One-way selective calling services
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W76/00Connection management
    • H04W76/10Connection setup
    • H04W76/11Allocation or use of connection identifiers
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W76/00Connection management
    • H04W76/10Connection setup
    • H04W76/14Direct-mode setup
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D30/00Reducing energy consumption in communication networks
    • Y02D30/70Reducing energy consumption in communication networks in wireless communication networks

Definitions

  • the application belongs to the bluetooth technology, and in particular relates to a bluetooth connection method and a bluetooth connection device.
  • Classic Bluetooth (BT for short) and Bluetooth low energy (Bluetooth low energy, BLE for short) are two different Bluetooth modes.
  • the classic Bluetooth mode is suitable for the transmission of a relatively large amount of data and supports wireless transmission of audio streams.
  • Classic Bluetooth mode can be used to directly connect to almost any Bluetooth device, suitable for Bluetooth phone answering, Bluetooth headsets, Bluetooth speakers and other scenarios.
  • the Bluetooth low energy module is characterized by low power consumption and fast connection speed. At present, it is generally used for the transmission of a relatively small amount of data, such as remote control (mouse, keyboard), sensor equipment (heartbeat belt, blood pressure monitor, temperature sensor, shared bicycle lock), etc.
  • the purpose of the embodiments of the present application is to provide a Bluetooth connection method and a Bluetooth connection device, which can solve the problem that different Bluetooth devices of the same user need to connect with the target Bluetooth device in the classic Bluetooth mode one by one.
  • the embodiment of the present application provides a Bluetooth connection method applied to a target Bluetooth device.
  • the method includes: performing classic Bluetooth pairing with the first Bluetooth device; receiving the first Bluetooth device The target account sent by the device, the target account is the account logged in by the first Bluetooth device; send a low-power Bluetooth broadcast, and receive a low-power Bluetooth connection request; establish a low-power Bluetooth connection with the second Bluetooth device, wherein , the Bluetooth low energy connection request sent by the second Bluetooth device includes the target account; based on the Bluetooth low energy connection, establish a classic Bluetooth connection with the second Bluetooth device.
  • the establishing a classic Bluetooth connection with the second Bluetooth device based on the Bluetooth low energy connection includes: negotiating with the second Bluetooth device to determine a link based on the Bluetooth low energy connection A key; based on the link key, establish a classic Bluetooth connection with the second Bluetooth device.
  • the establishing a classic Bluetooth connection with the second Bluetooth device based on the Bluetooth low energy connection includes: receiving a setting command sent by the second Bluetooth device based on the Bluetooth low energy connection ; Responding to the setting command, setting the target Bluetooth device to a target pairing mode, wherein, in the target pairing mode, the second Bluetooth device and the target Bluetooth device can directly establish a classic Bluetooth connection; Describe a classic Bluetooth connection to a second Bluetooth device.
  • the embodiment of the present application provides a Bluetooth connection method, which is applied to a second Bluetooth device registered with a target account, and the method includes: receiving the target media access control sent by the first Bluetooth device registered with the target account address; scan low-power bluetooth broadcast; send a low-power bluetooth connection request to the target bluetooth device, and establish a low-power bluetooth connection with the target bluetooth device, wherein the low-power bluetooth sent by the target bluetooth device
  • the broadcast contains the target media access control address; based on the low-power bluetooth connection, establish a classic bluetooth connection with the target bluetooth device.
  • the establishing a classic Bluetooth connection with the target Bluetooth device based on the Bluetooth low energy connection includes: negotiating with the target Bluetooth device to determine a link key based on the Bluetooth low energy connection ; Based on the link key, establish a classic Bluetooth connection with the target Bluetooth device.
  • the establishing a classic Bluetooth connection with the target Bluetooth device based on the Bluetooth low energy connection includes: sending a setting command to the target Bluetooth device based on the Bluetooth low energy connection to control
  • the target Bluetooth device enters a target pairing mode, wherein, in the target pairing mode, the second Bluetooth device and the target Bluetooth device can directly establish a classic Bluetooth connection; establish a classic Bluetooth connection with the target Bluetooth device .
  • the embodiment of the present application provides a Bluetooth connection device, which is applied to a target Bluetooth device, and the device includes: a classic Bluetooth pairing module, configured to perform classic Bluetooth pairing with a first Bluetooth device; an account receiving module, configured to Receive the target account sent by the first Bluetooth device, the target account is the account logged in by the first Bluetooth device; the Bluetooth low power connection module is used to send low Bluetooth low energy broadcasting, receiving a Bluetooth low energy connection request; and establishing a Bluetooth low energy connection with the second Bluetooth device, wherein the Bluetooth low energy connection request sent by the second Bluetooth device contains The target account; a classic Bluetooth connection module, configured to establish a classic Bluetooth connection with the second Bluetooth device based on the low-power Bluetooth connection.
  • the classic Bluetooth connection module includes a negotiation submodule and a connection submodule; the negotiation submodule is configured to negotiate with the second Bluetooth device to determine a link key based on the Bluetooth low energy connection; The connection submodule is configured to establish a classic Bluetooth connection with the second Bluetooth device based on the link key.
  • the classic Bluetooth connection module includes a pairing submodule and a connection submodule; the pairing submodule is configured to receive a setting command sent by the second Bluetooth device based on the Bluetooth low energy connection; and, In response to the setting command, setting the target Bluetooth device to a target pairing mode, wherein, in the target pairing mode, the second Bluetooth device and the target Bluetooth device can directly establish a classic Bluetooth connection; the The connection submodule is used to establish a classic Bluetooth connection with the second Bluetooth device.
  • the embodiment of the present application provides a Bluetooth connection device, which is applied to a second Bluetooth device registered with a target account, and the device includes: a media access control address receiving module, configured to receive the second A target media access control address sent by a bluetooth device; a low-power bluetooth connection module for scanning low-power bluetooth broadcasts, sending a low-power bluetooth connection request to the target bluetooth device, and establishing a low-power connection with the target bluetooth device Bluetooth connection, wherein the Bluetooth low energy broadcast sent by the target Bluetooth device contains the target media access control address; the classic Bluetooth connection module is used to establish a connection with the Bluetooth low energy connection based on the Bluetooth low energy connection Describe the classic Bluetooth connection of the target Bluetooth device.
  • the classic Bluetooth connection module includes a negotiation submodule and a connection submodule; the negotiation submodule is configured to negotiate with the target Bluetooth device to determine a link key based on the Bluetooth low energy connection; The connection submodule is configured to establish a classic Bluetooth connection with the target Bluetooth device based on the link key.
  • the classic Bluetooth connection module includes a pairing submodule and a connection submodule; the pairing submodule is configured to send a setting command to the target Bluetooth device based on the low-power Bluetooth connection to control the The target Bluetooth device enters the target pairing mode, wherein, in the target pairing mode, the second Bluetooth device and the target Bluetooth device can directly establish a classic Bluetooth connection; the connection submodule is used to establish a connection with the target Classic Bluetooth connection for Bluetooth devices.
  • the embodiment of the present application provides a bluetooth device
  • the bluetooth device includes a processor and a memory
  • the memory stores programs or instructions that can run on the processor, and when the programs or instructions are executed by the processor, the steps of the method as described in the first aspect or the second aspect are implemented.
  • the embodiment of the present application provides a readable storage medium, on which a program or instruction is stored, and when the program or instruction is executed by a processor, the implementation as described in the first aspect or the second aspect is realized. steps of the method.
  • the embodiment of the present application provides a chip, the chip includes a processor and a communication interface, the communication interface is coupled to the processor, and the processor is used to run programs or instructions, so as to implement the first aspect Or the method described in the second aspect.
  • an embodiment of the present application provides a computer program product, the program product is stored in a storage medium, and the program product is executed by at least one processor to implement the method described in the first aspect or the second aspect.
  • a Bluetooth connection method In the embodiment of the present application, a Bluetooth connection method, a Bluetooth connection device, a Bluetooth device, a readable storage medium, a chip, and a computer program product are provided. If the user performs too many operations, other devices logged into the target account can also establish a classic Bluetooth connection with the target Bluetooth device, which simplifies the user's connection process and improves the user's experience.
  • Fig. 1 shows a schematic diagram of a Bluetooth connection method according to an embodiment of the present disclosure.
  • Fig. 2 shows a schematic diagram of a Bluetooth connection method according to an embodiment of the present disclosure.
  • Fig. 3 shows a schematic diagram of a Bluetooth connection method according to an embodiment of the present disclosure.
  • Fig. 4 shows a schematic diagram of a Bluetooth connection method according to an embodiment of the present disclosure.
  • Fig. 5 shows a block diagram of a Bluetooth connection device according to an embodiment of the present disclosure.
  • Fig. 6 shows a block diagram of a Bluetooth connection device according to an embodiment of the present disclosure.
  • Fig. 7 shows a block diagram of a Bluetooth connection device according to an embodiment of the present disclosure.
  • Fig. 8 shows a block diagram of a Bluetooth device according to an embodiment of the present disclosure.
  • Fig. 9 shows a schematic diagram of a hardware structure of a bluetooth device according to an embodiment of the present disclosure.
  • An embodiment of the present disclosure provides a Bluetooth connection method, as shown in FIG. 1 .
  • the Bluetooth connection method provided by the embodiments of the present disclosure is applicable to the scenario of pairing connection between multiple Bluetooth devices logged into the same target account and the target Bluetooth device.
  • the target account may be a system account of the Bluetooth device, an application account of an application carried by the device, and the like. It should be noted that although a specific example of the target account is introduced, those skilled in the art can understand that the present disclosure is not limited thereto, and the specific type of target account can be flexibly set by those skilled in the art according to actual application scenarios or personal preferences.
  • the above-mentioned multiple bluetooth devices logged in with the same target account include the first bluetooth device and the second bluetooth device.
  • the first Bluetooth device may be any device supporting the classic Bluetooth mode, such as a mobile phone, a tablet, a vehicle terminal, and the like.
  • the second bluetooth device may be any device supporting the classic bluetooth mode and the low power bluetooth mode, such as a mobile phone, a tablet, a vehicle terminal, and the like.
  • the target Bluetooth device can be any device that supports classic Bluetooth mode and Bluetooth low energy mode, such as Bluetooth headsets, Bluetooth speakers, and so on.
  • the first Bluetooth device performs classic Bluetooth pairing with the target Bluetooth device.
  • the first Bluetooth device After the first Bluetooth device performs classic Bluetooth pairing with the target Bluetooth device, the first Bluetooth device sends the target Media Access Control (MAC) address to the second Bluetooth device that has logged in the target account, wherein the target The media access control address is the MAC address of the target Bluetooth device. And, the first bluetooth device sends the target account to the target bluetooth device.
  • MAC Media Access Control
  • the second Bluetooth device obtains the MAC address of the target Bluetooth device, and the target Bluetooth device obtains the target account.
  • the first Bluetooth device based on the networking information of the login status of the target account, the first Bluetooth device The device can learn that the second Bluetooth device has also logged into the target account.
  • the first bluetooth device learns that the second bluetooth device has also logged in the target account, it sends the target account to the target bluetooth device, and sends the target media access control address to the second bluetooth device, so as to facilitate the second bluetooth device in subsequent steps.
  • the second Bluetooth device establishes a classic Bluetooth connection with the target Bluetooth device.
  • the target Bluetooth device sends a low-power Bluetooth broadcast.
  • the Bluetooth low energy broadcast sent by the target Bluetooth device carries the MAC address of the target Bluetooth device, that is, the aforementioned target MAC address.
  • the target Bluetooth device has a built-in program instruction, and after receiving the target account number sent by the first Bluetooth device, the program instruction automatically sends a low-power Bluetooth broadcast to facilitate connection with other Bluetooth devices that have logged in the target account .
  • the second Bluetooth device scans the Bluetooth LE broadcast, and sends a Bluetooth LE connection request containing the target account to the target Bluetooth device, wherein the Bluetooth LE broadcast sent by the target Bluetooth device contains the target MAC address. That is to say, if the Bluetooth LE broadcast contains the target MAC address, the device sending the Bluetooth LE broadcast is determined as the target Bluetooth device.
  • a pop-up window may be displayed on the second Bluetooth device, and the target Bluetooth device is displayed on the pop-up window , so that the user can determine whether the second Bluetooth device needs to connect to the target Bluetooth device.
  • a Bluetooth low energy connection request containing the target account is sent to the target Bluetooth device.
  • the second Bluetooth device sends a Bluetooth low energy connection request containing the target account to the target Bluetooth device according to the target media access control address, so as to indicate to the target Bluetooth device that it is another Bluetooth device that has logged in the target account and Hope to establish a connection with the target Bluetooth device.
  • the target Bluetooth device After receiving the Bluetooth low energy connection request containing the target account, the target Bluetooth device establishes a Bluetooth low energy connection with the second Bluetooth device.
  • the target Bluetooth device has built-in program instructions to detect whether the received Bluetooth LE connection request contains the target account after sending the above-mentioned Bluetooth LE broadcast. If the received Bluetooth low energy connection request contains the target account, a Bluetooth low energy connection is established with the Bluetooth device containing the target account, that is, the second Bluetooth device.
  • the basic Bluetooth pairing between the device that has logged in the target account and the target Bluetooth device can also establish a classic Bluetooth connection with the target Bluetooth device without the need for the user to perform too many operations, which simplifies the user's connection process and improves the user's experience.
  • establishing a classic Bluetooth connection between the target Bluetooth device and the second Bluetooth device based on the Bluetooth low energy connection further includes: based on the Bluetooth low energy connection, the target Bluetooth device negotiates with the second Bluetooth device to determine the link Road secret key (link key), based on the link key, the target Bluetooth device establishes a classic Bluetooth connection with the second Bluetooth device.
  • the target Bluetooth device negotiates with the second Bluetooth device to determine the link Road secret key (link key), based on the link key, the target Bluetooth device establishes a classic Bluetooth connection with the second Bluetooth device.
  • the target Bluetooth device and the second Bluetooth device negotiate a link key through the low-power Bluetooth connection, and the second Bluetooth device and the target Bluetooth device respectively save the negotiation key.
  • the following link key The second Bluetooth device initiates a classic Bluetooth connection request to the target Bluetooth device. Since the second Bluetooth device and the target Bluetooth device have saved the link key, the second Bluetooth device and the target Bluetooth device can directly perform a classic Bluetooth connection based on the link key. , no need to go through the classic Bluetooth pairing process.
  • the target Bluetooth device and the second Bluetooth device can negotiate a link key through a Bluetooth low energy connection, and automatically perform a classic Bluetooth connection based on the link key. In this way, the steps of the classic Bluetooth connection are simplified and the user experience is improved.
  • the target Bluetooth device and the second Bluetooth device have built-in program codes related to the key negotiation mechanism, so that the target Bluetooth device and the second Bluetooth device can negotiate the link key through the Bluetooth low energy connection.
  • the key negotiation mechanism may include an existing negotiation mechanism, a key generation algorithm, etc., which are not limited in this embodiment of the present disclosure.
  • establishing a classic Bluetooth connection between the target Bluetooth device and the second Bluetooth device further includes: based on the Bluetooth low energy connection, the second Bluetooth device sends A setting command, in response to the setting command, setting the target Bluetooth device to a target pairing mode, wherein, in the target pairing mode, the second Bluetooth device and the target Bluetooth device can directly establish a classic Bluetooth connection. Establish a classic Bluetooth connection.
  • the target pairing mode includes direct use (Just Work) pairing mode
  • the Just Work pairing mode is a mode in which two Bluetooth devices negotiate and pair themselves without user participation. Specifically, after the target Bluetooth device establishes a low-power Bluetooth connection with the second Bluetooth device, the second Bluetooth device can send a setting command to the target Bluetooth device through the low-power Bluetooth connection, and set the target Bluetooth device to the Just Work pairing mode. According to the Just Work pairing mode, the target Bluetooth device and the second Bluetooth device do not need user authorization to complete the pairing. The second Bluetooth device initiates a classic Bluetooth connection request to the target Bluetooth device to establish a classic Bluetooth connection.
  • the second Bluetooth device can connect to the target Bluetooth device via Bluetooth Low Energy
  • the pairing mode is set to Just Work mode.
  • the target Bluetooth device can quickly establish a Bluetooth connection with the second Bluetooth device without user participation, which simplifies user operations and improves user experience.
  • the embodiment of the present disclosure also provides a Bluetooth connection method, which is applied to a target Bluetooth device, as shown in FIG. 2 , the method includes:
  • Step S21 performing classic Bluetooth pairing with the first Bluetooth device.
  • Step S22 receiving the target account sent by the first bluetooth device, where the target account is the account registered by the first bluetooth device.
  • the first bluetooth device After the first bluetooth device and the target bluetooth device perform classic bluetooth pairing, the first bluetooth device sends the account registered by the first bluetooth device, that is, the target account, to the target bluetooth device, and the target bluetooth device receives the target account.
  • the first bluetooth device learns that the second bluetooth device has also logged in the target account. After the first Bluetooth device performs classic Bluetooth pairing with the target Bluetooth device, it sends the target media access control address to the second Bluetooth device that has registered the target account, and the target Bluetooth device receives the target account sent by the first Bluetooth device, wherein the target The media access control address is the MAC address of the target Bluetooth device.
  • Step S23 sending a Bluetooth low energy broadcast, and receiving a Bluetooth low energy connection request.
  • the target Bluetooth device sends a Bluetooth low energy broadcast containing the target MAC address.
  • the target Bluetooth device has a built-in program instruction, and after receiving the target account number sent by the first Bluetooth device, the program instruction automatically sends a Bluetooth low energy broadcast, and the Bluetooth low energy broadcast contains the target media access control address , so as to connect with the second Bluetooth device registered with the target account.
  • Step S24 establishing a Bluetooth low energy connection with the second Bluetooth device, wherein the Bluetooth low energy connection request sent by the second Bluetooth device contains the target account.
  • the second Bluetooth device when the second Bluetooth device scans a Bluetooth low energy broadcast containing the target media access control address, it sends a Bluetooth low energy broadcast containing the target account to the target Bluetooth device according to the target media access control address.
  • the target Bluetooth device has built-in program instructions to detect whether the received Bluetooth LE connection request contains the target account after sending the above-mentioned Bluetooth LE broadcast. if If the received Bluetooth low energy connection request contains the target account, a Bluetooth low energy connection is established with the Bluetooth device containing the target account, that is, the second Bluetooth device.
  • Step S25 based on the Bluetooth low energy connection, establish a classic Bluetooth connection with the second Bluetooth device.
  • step S25 includes: based on the Bluetooth low energy connection, negotiating with the second Bluetooth device to determine a link key. Based on the link key, a classic Bluetooth connection is established with the second Bluetooth device.
  • the target Bluetooth device and the second Bluetooth device negotiate a link key through the low-power Bluetooth connection, and the second Bluetooth device and the target Bluetooth device respectively save the negotiation key.
  • the following link key The second Bluetooth device initiates a classic Bluetooth connection request to the target Bluetooth device. Since the second Bluetooth device and the target Bluetooth device have saved the link key, the second Bluetooth device and the target Bluetooth device can directly perform a classic Bluetooth connection based on the link key. , no need to go through the classic Bluetooth pairing process.
  • the target Bluetooth device and the second Bluetooth device can negotiate a link key through a Bluetooth low energy connection, and automatically perform a classic Bluetooth connection based on the link key. In this way, the steps of the classic Bluetooth connection are simplified and the user experience is improved.
  • the target Bluetooth device and the second Bluetooth device have built-in program codes related to the key negotiation mechanism, so that the target Bluetooth device and the second Bluetooth device can negotiate the link key through the Bluetooth low energy connection.
  • the key negotiation mechanism may include an existing negotiation mechanism, a key generation algorithm, etc., which are not limited in this embodiment of the present disclosure.
  • step S25 further includes: receiving a setting command sent by the second Bluetooth device based on the Bluetooth low energy connection.
  • the target Bluetooth device is set into a target pairing mode.
  • the second Bluetooth device and the target Bluetooth device can directly establish a classic Bluetooth connection. Establish a classic Bluetooth connection with the target Bluetooth device.
  • the target pairing mode includes a Just Work pairing mode
  • the Just Work pairing mode is a mode in which two Bluetooth devices negotiate and pair themselves without user participation. Specifically, after the target Bluetooth device establishes a low-power Bluetooth connection with the second Bluetooth device, the second Bluetooth device can send a setting command to the target Bluetooth device through the low-power Bluetooth connection to set the target Bluetooth device to the Just Work pairing mode. According to the Just Work pairing mode, the target Bluetooth device and the second Bluetooth device do not need user authorization to complete the pairing. The second Bluetooth device initiates a classic Bluetooth connection to the target Bluetooth device Request to establish a classic Bluetooth connection.
  • the second Bluetooth device can connect via Bluetooth Low Energy and set the pairing mode of the target Bluetooth device to Just Work mode.
  • the target Bluetooth device can quickly establish a Bluetooth connection with the second Bluetooth device without user participation, which simplifies user operations and improves user experience.
  • the embodiment of the present disclosure also provides a Bluetooth connection method, which is applied to a second Bluetooth device logged in with a target account, as shown in FIG. 3 , the method includes:
  • Step S31 receiving the target MAC address sent by the first bluetooth device registered with the target account.
  • the first Bluetooth device after the first Bluetooth device performs classic Bluetooth pairing with the target Bluetooth device, the first Bluetooth device sends the target media access control address to the second Bluetooth device registered with the target account, wherein the target media access control address is the MAC address of the target Bluetooth device. Specifically, it may be the networking information based on the login status of the target account. The first Bluetooth device learns that the second Bluetooth device has also logged in the target account. After the first Bluetooth device and the target Bluetooth device perform classic Bluetooth pairing, the target media The access control address is sent to the second bluetooth device registered with the target account.
  • the first bluetooth device After the first bluetooth device and the target bluetooth device perform classic bluetooth pairing, the first bluetooth device sends the account registered by the first bluetooth device, that is, the target account, to the target bluetooth device, and the target bluetooth device receives the target account.
  • Step S32 scanning for Bluetooth low energy broadcasts.
  • the target Bluetooth device sends a Bluetooth low energy broadcast containing the target MAC address.
  • the target Bluetooth device has a built-in program instruction, and after receiving the target account number sent by the first Bluetooth device, the program instruction automatically sends a Bluetooth low energy broadcast, and the Bluetooth low energy broadcast contains the target media access control address , so as to connect with the second Bluetooth device registered with the target account.
  • Step S33 sending a Bluetooth low energy connection request to the target Bluetooth device to establish a Bluetooth low energy connection with the target Bluetooth device, wherein the Bluetooth low energy broadcast sent by the target Bluetooth device contains the target MAC address.
  • the second Bluetooth device when the second Bluetooth device scans a Bluetooth low energy broadcast containing the target media access control address, it sends a Bluetooth low energy broadcast containing the target account to the target Bluetooth device according to the target media access control address.
  • the target Bluetooth device has built-in program instructions to transmit the Bluetooth Low Energy After Bluetooth broadcast, detect whether the received Bluetooth low energy connection request contains the target account. If the received Bluetooth low energy connection request contains the target account, a Bluetooth low energy connection is established with the Bluetooth device containing the target account, that is, the second Bluetooth device.
  • Step S34 based on the Bluetooth low energy connection, establish a classic Bluetooth connection with the target Bluetooth device.
  • step S34 further includes: based on the Bluetooth low energy connection, negotiating with the target Bluetooth device to determine a link key. Based on the link key, a classic Bluetooth connection is established with the target Bluetooth device.
  • the target Bluetooth device and the second Bluetooth device negotiate a link key through the low-power Bluetooth connection, and the second Bluetooth device and the target Bluetooth device respectively save the negotiation key.
  • the following link key The second Bluetooth device initiates a classic Bluetooth connection request to the target Bluetooth device. Since the second Bluetooth device and the target Bluetooth device have saved the link key, the second Bluetooth device and the target Bluetooth device can directly perform a classic Bluetooth connection based on the link key. , no need to go through the classic Bluetooth pairing process.
  • the target Bluetooth device and the second Bluetooth device can negotiate a link key through a Bluetooth low energy connection, and automatically perform a classic Bluetooth connection based on the link key. In this way, the steps of the classic Bluetooth connection are simplified and the user experience is improved.
  • the target Bluetooth device and the second Bluetooth device have built-in program codes related to the key negotiation mechanism, so that the target Bluetooth device and the second Bluetooth device can negotiate the link key through the Bluetooth low energy connection.
  • the key negotiation mechanism may include an existing negotiation mechanism, a key generation algorithm, etc., which are not limited in this embodiment of the present disclosure.
  • step S34 further includes: based on the Bluetooth low energy connection, sending a setting command to the target Bluetooth device, so as to control the target Bluetooth device to enter the target pairing mode.
  • the second Bluetooth device and the target Bluetooth device can directly establish a classic Bluetooth connection. Establish a classic Bluetooth connection with the target Bluetooth device.
  • the target pairing mode includes a Just Work pairing mode
  • the Just Work pairing mode is a mode in which two Bluetooth devices negotiate and pair themselves without user participation. Specifically, after the target Bluetooth device establishes a low-power Bluetooth connection with the second Bluetooth device, the second Bluetooth device can send a setting command to the target Bluetooth device through the low-power Bluetooth connection to set the target Bluetooth device to the Just Work pairing mode. According to the Just Work pairing mode, the target Bluetooth device and the second Bluetooth device do not need to The user authorizes to complete the pairing by himself. The second Bluetooth device initiates a classic Bluetooth connection request to the target Bluetooth device to establish a classic Bluetooth connection.
  • the second Bluetooth device can connect via Bluetooth Low Energy and set the pairing mode of the target Bluetooth device to Just Work mode.
  • the target Bluetooth device can quickly establish a Bluetooth connection with the second Bluetooth device without user participation, which simplifies user operations and improves user experience.
  • the embodiment of the present disclosure also provides a Bluetooth connection method, which is applied to the first Bluetooth device that has logged in the target account, as shown in FIG. 4 , the method includes:
  • Step S41 performing classic Bluetooth pairing with the target Bluetooth device.
  • Step S42 sending the target media access control address to the second bluetooth device that has registered the target account, and sending the target account to the target bluetooth device, so that the second bluetooth device and the target bluetooth device can establish a low-power bluetooth connection and based on low-power Bluetooth Energy Consumption establishes a classic Bluetooth connection.
  • the target MAC address is the MAC address of the target Bluetooth device.
  • the first Bluetooth device can learn that the second Bluetooth device has also logged in the target account.
  • the first bluetooth device learns that the second bluetooth device has also logged in the target account, it sends the target account to the target bluetooth device, and sends the target media access control address to the second bluetooth device, so as to facilitate the second bluetooth device in subsequent steps.
  • the second Bluetooth device establishes a classic Bluetooth connection with the target Bluetooth device.
  • the first Bluetooth device can send the target media access control address to the second Bluetooth device that also logs in the target account without requiring too many operations by the user.
  • the target account is sent to the target Bluetooth device, so that the second Bluetooth device can establish a classic Bluetooth connection with the target Bluetooth device, which simplifies the connection process of the user and improves the user experience.
  • establishing the Bluetooth low energy connection between the second Bluetooth device and the target Bluetooth device includes: the target Bluetooth device sending a Bluetooth low energy broadcast containing the target MAC address.
  • the second Bluetooth device scans the Bluetooth LE broadcast containing the target MAC address, and sends a Bluetooth LE connection request containing the target account to the target Bluetooth device.
  • the target Bluetooth device receives the Bluetooth low energy connection request containing the target account, and establishes a Bluetooth low energy connection with the second Bluetooth device.
  • the target Bluetooth device has a built-in program instruction, and after receiving the target account number sent by the first Bluetooth device, the program instruction automatically sends a low-power Bluetooth broadcast to facilitate connection with other Bluetooth devices that have logged in the target account .
  • the second Bluetooth device when the second Bluetooth device scans a Bluetooth low energy broadcast containing the target media access control address, it sends a Bluetooth low energy broadcast containing the target account to the target Bluetooth device according to the target media access control address.
  • the target Bluetooth device has built-in program instructions to detect whether the received Bluetooth LE connection request contains the target account after sending the above-mentioned Bluetooth LE broadcast. If the received Bluetooth low energy connection request contains the target account, a Bluetooth low energy connection is established with the Bluetooth device containing the target account, that is, the second Bluetooth device.
  • the second Bluetooth device and the target Bluetooth device establish a classic Bluetooth connection based on the Bluetooth low energy connection, including: based on the Bluetooth low energy connection, the second Bluetooth device and the target Bluetooth device negotiate and determine the link key key. Based on the link key, the second Bluetooth device establishes a classic Bluetooth connection with the target Bluetooth device.
  • the target Bluetooth device and the second Bluetooth device negotiate a link key through the low-power Bluetooth connection, and the second Bluetooth device and the target Bluetooth device respectively save the negotiation key.
  • the subsequent link key The second Bluetooth device initiates a classic Bluetooth connection request to the target Bluetooth device. Since the second Bluetooth device and the target Bluetooth device have saved the link key, the second Bluetooth device and the target Bluetooth device can directly perform a classic Bluetooth connection based on the link key. , no need to go through the classic Bluetooth pairing process.
  • the target Bluetooth device and the second Bluetooth device can negotiate a link key through a Bluetooth low energy connection, and automatically perform a classic Bluetooth connection based on the link key. In this way, the steps of the classic Bluetooth connection are simplified and the user experience is improved.
  • the target Bluetooth device and the second Bluetooth device have built-in program codes related to the key negotiation mechanism, so that the target Bluetooth device and the second Bluetooth device can negotiate the link key through the Bluetooth low energy connection.
  • the key negotiation mechanism may include an existing negotiation mechanism, a key generation algorithm, etc., which are not limited in this embodiment of the present disclosure.
  • the second Bluetooth device and the target Bluetooth device establish a classic Bluetooth connection based on the Bluetooth low energy connection, including: based on the Bluetooth low energy connection, the second Bluetooth device sends a setting command to the target Bluetooth device, To control the target Bluetooth device to enter target pairing mode.
  • the target pairing mode the second Bluetooth device and the target Bluetooth device can directly establish a classic Bluetooth connection.
  • the second Bluetooth device establishes a classic Bluetooth connection with the target Bluetooth device.
  • the target pairing mode includes a Just Work pairing mode
  • the Just Work pairing mode is a mode in which two Bluetooth devices negotiate and pair themselves without user participation. Specifically, after the target Bluetooth device establishes a Bluetooth Low Energy connection with the second Bluetooth device, the second Bluetooth device can The Bluetooth connection sends a setting command to the target Bluetooth device, and sets the target Bluetooth device to the Just Work pairing mode. According to the Just Work pairing mode, the target Bluetooth device and the second Bluetooth device do not need user authorization to complete the pairing. The second Bluetooth device initiates a classic Bluetooth connection request to the target Bluetooth device to establish a classic Bluetooth connection.
  • the second Bluetooth device can connect via Bluetooth Low Energy and set the pairing mode of the target Bluetooth device to Just Work mode.
  • the target Bluetooth device can quickly establish a Bluetooth connection with the second Bluetooth device without user participation, which simplifies user operations and improves user experience.
  • the Bluetooth connection method provided in the embodiment of the present application may be executed by a Bluetooth connection device.
  • the method for performing the Bluetooth connection by the Bluetooth connection device is taken as an example to illustrate the Bluetooth connection device provided in the embodiment of the present application.
  • the Bluetooth connection device 200 includes a classic Bluetooth pairing module 201, an account receiving module 202, a Bluetooth A connection module 203 and a classic Bluetooth connection module 204 .
  • the classic Bluetooth pairing module 201 is configured to perform classic Bluetooth pairing with the first Bluetooth device.
  • the account receiving module 202 is configured to receive the target account sent by the first Bluetooth device, where the target account is the account logged in by the first Bluetooth device.
  • the low-power Bluetooth connection module 203 is configured to send a low-power Bluetooth broadcast and receive a low-power Bluetooth connection request; and, establish a low-power Bluetooth connection with a second Bluetooth device, wherein the low-power The Bluetooth connection request contains the target account.
  • the classic Bluetooth connection module 204 is configured to establish a classic Bluetooth connection with the second Bluetooth device based on the low-power Bluetooth connection.
  • the classic Bluetooth connection module 204 includes a negotiation submodule and a connection submodule.
  • the negotiation submodule is configured to negotiate with the second Bluetooth device to determine a link key based on the Bluetooth low energy connection.
  • the connection submodule is used to establish a classic Bluetooth connection with the second Bluetooth device based on the link key.
  • the classic Bluetooth connection module 204 includes a pairing submodule and a connection submodule.
  • the pairing submodule is configured to receive a setting command sent by the second Bluetooth device based on the Bluetooth low energy connection, and, in response to the setting command, set the target Bluetooth device to a target pairing mode, wherein, in the target pairing mode, the second The Bluetooth device and the target Bluetooth device can directly establish a classic Bluetooth connection.
  • the connection sub-module is used to establish a classic Bluetooth connection with the second Bluetooth device.
  • the Bluetooth connection device 300 includes a media access control address receiving module 301 , a Bluetooth low energy connection module 302 and a classic Bluetooth connection module 303 .
  • the media access control address receiving module is configured to receive the target media access control address sent by the first bluetooth device registered with the target account.
  • the low-power Bluetooth connection module is used to scan the low-power Bluetooth broadcast, send a low-power Bluetooth connection request to the target Bluetooth device, and establish a low-power Bluetooth connection with the target Bluetooth device.
  • the Bluetooth broadcast contains the target media access control address.
  • the classic bluetooth connection module is used to establish a classic bluetooth connection with a target bluetooth device based on a low-power bluetooth connection.
  • the classic Bluetooth connection module 303 includes a negotiation submodule and a connection submodule; the negotiation submodule is configured to negotiate with the target Bluetooth device to determine a link key based on the Bluetooth low energy connection.
  • the connection sub-module is used to establish a classic Bluetooth connection with the target Bluetooth device based on the link key.
  • the classic Bluetooth connection module 303 includes a pairing submodule and a connection submodule.
  • the pairing sub-module is used to send a setting command to the target Bluetooth device based on the low-power Bluetooth connection, so as to control the target Bluetooth device to enter the target pairing mode, wherein, in the target pairing mode, the second Bluetooth device and the target Bluetooth device can directly establish Classic Bluetooth connection.
  • the connection sub-module is used to establish a classic Bluetooth connection with the target Bluetooth device.
  • FIG. 7 shows a block diagram of a Bluetooth connection device according to an embodiment of the present disclosure, which is applied to a first Bluetooth device.
  • the Bluetooth connection device 400 includes a classic Bluetooth pairing module 401 and a sending module 402 .
  • the classic Bluetooth pairing module 401 is used for performing classic Bluetooth pairing with the target Bluetooth device.
  • the sending module 402 is used to send the target media access control address to the second bluetooth device registered with the target account, and send the target account to the target bluetooth device, so that the second bluetooth device and the target bluetooth device can establish bluetooth low energy Connect and establish a classic Bluetooth connection based on the Bluetooth low energy connection; wherein, the target media access control address is the MAC address of the target Bluetooth device.
  • a Bluetooth connection device On the basis of classic Bluetooth pairing between the device logged in the target account and the target Bluetooth device, other devices logged in the target account can be connected to the target Bluetooth device without too many operations by the user.
  • the target Bluetooth device also establishes a classic Bluetooth connection, which simplifies the user's connection process and improves the user's experience.
  • the Bluetooth connection device in the embodiment of the present application may be a Bluetooth device, or may be a component in the Bluetooth device, such as an integrated circuit or a chip.
  • the bluetooth device may be a terminal, or other devices other than the terminal.
  • the Bluetooth device can be a mobile phone, a tablet computer, a notebook computer, Handheld computers, automotive electronic equipment, mobile Internet devices (Mobile Internet Device, MID), augmented reality (augmented reality, AR) / virtual reality (virtual reality, VR) equipment, robots, wearable devices, ultra-mobile personal computers (ultra- mobile personal computer (UMPC), netbook or personal digital assistant (personal digital assistant, PDA), etc., and can also be a server, network attached storage (Network Attached Storage, NAS), personal computer (personal computer, PC), television (television , TV), teller machines or self-service machines, etc., are not specifically limited in this embodiment of the present application.
  • the Bluetooth connection device in the embodiment of the present application may be a device with an operating system.
  • the operating system may be an Android operating system, an Apple mobile device operating system (iPhone Operation System, ios), or other possible operating systems, which are not specifically limited in the embodiment of the present application.
  • the Bluetooth connection device provided by the embodiment of the present application can realize various processes realized by the method embodiments in FIG. 1 to FIG. 4 , and details are not repeated here to avoid repetition.
  • the embodiment of the present application also provides a Bluetooth device 500, including a processor 501 and a memory 502, and the memory 502 stores programs or instructions that can run on the processor 501, the When the programs or instructions are executed by the processor 501, the various steps of the above-mentioned Bluetooth connection method embodiments can be achieved, and the same technical effect can be achieved. To avoid repetition, details are not repeated here.
  • the electronic devices in the embodiments of the present application include the above-mentioned mobile electronic devices and non-mobile electronic devices.
  • a Bluetooth device On the basis of classic Bluetooth pairing between the device logged in the target account and the target Bluetooth device, other devices logged in the target account can be connected to the target without too many operations by the user.
  • the Bluetooth device also establishes a classic Bluetooth connection, which simplifies the user's connection process and improves the user's experience.
  • FIG. 9 is a schematic diagram of a hardware structure of an electronic device implementing an embodiment of the present application.
  • the electronic device is a device with bluetooth function.
  • the electronic device 1000 includes, but is not limited to: a radio frequency unit 1001, a network module 1002, an audio output unit 1003, an input unit 1004, a sensor 1005, a display unit 1006, a user input unit 1007, an interface unit 1008, a memory 1009, and a processor 1010, etc. part.
  • the electronic device 1000 may also include a power supply (such as a battery) for supplying power to various components, and the power supply may be logically connected to the processor 1010 through a power management system, In this way, functions such as management of charging, discharging, and power consumption management are realized through the power management system.
  • a power supply such as a battery
  • the bluetooth device structure shown in FIG. 9 does not constitute a limitation to the bluetooth device.
  • the bluetooth device may include more or less components than shown in the figure, or combine certain components, or arrange different components, and details will not be repeated here. .
  • the processor 1010 is configured to perform classic Bluetooth pairing with the first Bluetooth device.
  • Send Bluetooth Low Energy broadcasts and receive Bluetooth Low Energy connection requests.
  • the processor 1010 is configured to establish a classic Bluetooth connection with the second Bluetooth device based on the Bluetooth low energy connection, including: negotiating with the second Bluetooth device to determine a link key based on the Bluetooth low energy connection. Based on the link key, a classic Bluetooth connection is established with the second Bluetooth device.
  • the processor 1010 is configured to establish a classic Bluetooth connection with the second Bluetooth device based on the Bluetooth low energy connection, including: receiving a setting command sent by the second Bluetooth device based on the Bluetooth low energy connection.
  • set the target Bluetooth device to a target pairing mode, wherein, in the target pairing mode, the second Bluetooth device and the target Bluetooth device can directly establish a classic Bluetooth connection.
  • an electronic device On the basis of classic Bluetooth pairing between the device logged in the target account and the electronic device, other devices logged in the target account can be connected to the electronic device without too many operations by the user.
  • the device also establishes a classic Bluetooth connection, which simplifies the user's connection process and improves the user's experience.
  • the processor 1010 is configured to receive the target MAC address sent by the first Bluetooth device registered with the target account.
  • Scan for Bluetooth Low Energy broadcasts Sending a Bluetooth low energy connection request to the target Bluetooth device to establish a Bluetooth low energy connection with the target Bluetooth device, wherein the Bluetooth low energy broadcast sent by the target Bluetooth device contains the target media access control address. Based on the Bluetooth low energy connection, establish a classic Bluetooth connection with the target Bluetooth device.
  • the processor 1010 is configured to establish a classic Bluetooth connection with the target Bluetooth device based on the Bluetooth low energy connection, including: negotiating with the target Bluetooth device to determine a link key based on the Bluetooth low energy connection. Based on the link key, a classic Bluetooth connection is established with the target Bluetooth device.
  • the processor 1010 is configured to establish a classic Bluetooth connection with the target Bluetooth device based on the Bluetooth low-power connection, including: sending a setting command to the target Bluetooth device based on the Bluetooth low-power connection, so as to control the target Bluetooth device to enter the target A pairing mode, wherein, in the target pairing mode, the second Bluetooth device can directly establish a classic Bluetooth connection with the target Bluetooth device. Establish a classic Bluetooth connection with the target Bluetooth device.
  • an electronic device On the basis of classic Bluetooth pairing between the device logged in with the target account and the target Bluetooth device, the electronic device and the target Bluetooth device can also establish classic Bluetooth pairing without the need for the user to perform too many operations. Bluetooth connection simplifies the user's connection process and improves the user's experience.
  • the processor 1010 is configured to perform classic Bluetooth pairing with the target Bluetooth device. Send the target media access control address to the second bluetooth device that has logged in the target account, and send the target account to the target bluetooth device, so that the second bluetooth device and the target bluetooth device can establish a low-power bluetooth connection and based on low-power bluetooth Connect to establish a classic Bluetooth connection.
  • the target MAC address is the MAC address of the target Bluetooth device.
  • an electronic device On the basis of classic Bluetooth pairing with the target Bluetooth device, the electronic device can send the target to the second Bluetooth device that also logs in the target account without requiring the user to perform too many operations.
  • the media access control address sends the target account to the target Bluetooth device, so that the second Bluetooth device can establish a classic Bluetooth connection with the target Bluetooth device, which simplifies the connection process of the user and improves the user experience.
  • the input unit 1004 may include a graphics processor (Graphics Processing Unit, GPU) 10041 and a microphone 10042, and the graphics processor 10041 is used for the image capture device (such as the image data of the still picture or video obtained by the camera) for processing.
  • the display unit 1006 may include a display panel 10061, and the display panel 10061 may be configured in the form of a liquid crystal display, an organic light emitting diode, or the like.
  • the user input unit 1007 includes at least one of a touch panel 10071 and other input devices 10072 .
  • the touch panel 10071 is also called a touch screen.
  • the touch panel 10071 may include two parts, a touch detection device and a touch controller.
  • Other input devices 10072 may include, but are not limited to, physical keyboards, function keys (such as volume control keys, switch keys, etc.), trackballs, mice, and joysticks, which will not be repeated here.
  • the memory 1009 can be used to store software programs as well as various data.
  • Memory 1009 can mainly include It includes a first storage area for storing programs or instructions and a second storage area for storing data, wherein the first storage area can store operating systems, application programs or instructions required by at least one function (such as sound playback functions, image playback functions, etc.) )wait.
  • memory 1009 may include volatile memory or nonvolatile memory, or, memory 1009 may include both volatile and nonvolatile memory.
  • the non-volatile memory may be a read-only memory (Read-Only Memory, ROM), a programmable read-only memory (Programmable ROM, PROM), an erasable programmable read-only memory (Erasable PROM, EPROM), an electronically programmable Erase Programmable Read-Only Memory (Electrically EPROM, EEPROM) or Flash.
  • ROM Read-Only Memory
  • PROM programmable read-only memory
  • Erasable PROM Erasable PROM
  • EPROM electronically programmable Erase Programmable Read-Only Memory
  • Flash Flash
  • Volatile memory can be random access memory (Random Access Memory, RAM), static random access memory (Static RAM, SRAM), dynamic random access memory (Dynamic RAM, DRAM), synchronous dynamic random access memory (Synchronous DRAM, SDRAM), double data rate synchronous dynamic random access memory (Double Data Rate SDRAM, DDRSDRAM), enhanced synchronous dynamic random access memory (Enhanced SDRAM, ESDRAM), synchronous connection dynamic random access memory (Synch link DRAM , SLDRAM) and Direct Memory Bus Random Access Memory (Direct Rambus RAM, DRRAM).
  • RAM Random Access Memory
  • SRAM static random access memory
  • DRAM dynamic random access memory
  • DRAM synchronous dynamic random access memory
  • SDRAM double data rate synchronous dynamic random access memory
  • Double Data Rate SDRAM Double Data Rate SDRAM
  • DDRSDRAM double data rate synchronous dynamic random access memory
  • Enhanced SDRAM, ESDRAM enhanced synchronous dynamic random access memory
  • Synch link DRAM , SLDRAM
  • Direct Memory Bus Random Access Memory Direct Rambus
  • the processor 1010 may include one or more processing units; optionally, the processor 1010 integrates an application processor and a modem processor, wherein the application processor mainly processes operations related to the operating system, user interface, and application programs, etc., Modem processors mainly process wireless communication signals, such as baseband processors. It can be understood that the foregoing modem processor may not be integrated into the processor 1010 .
  • the embodiment of the present application also provides a readable storage medium, the readable storage medium stores a program or an instruction, and when the program or instruction is executed by the processor, the various processes of the above-mentioned Bluetooth connection method embodiment are realized, and the same To avoid repetition, the technical effects will not be repeated here.
  • the processor is the processor in the Bluetooth device described in the above embodiments.
  • the readable storage medium includes a computer-readable storage medium, such as a computer read-only memory ROM, a random access memory RAM, a magnetic disk or an optical disk, and the like.
  • the embodiment of the present application further provides a chip, the chip includes a processor and a communication interface, the communication interface is coupled to the processor, and the processor is used to run programs or instructions to realize the above Bluetooth connection method embodiment Each process, and can achieve the same technical effect, in order to avoid duplication, I won't go into details here.
  • chips mentioned in the embodiments of the present application may also be called system-on-chip, system-on-chip, system-on-a-chip, or system-on-a-chip.
  • the embodiment of the present application provides a computer program product, the program product is stored in a storage medium, and the program product is executed by at least one processor to implement the various processes in the above-mentioned Bluetooth connection method embodiment, and can achieve the same technical effect , to avoid repetition, it will not be repeated here.
  • the term “comprising”, “comprising” or any other variation thereof is intended to cover a non-exclusive inclusion such that a process, method, article or apparatus comprising a set of elements includes not only those elements, It also includes other elements not expressly listed, or elements inherent in the process, method, article, or device. Without further limitations, an element defined by the phrase “comprising a " does not preclude the presence of additional identical elements in the process, method, article, or apparatus comprising that element.
  • the scope of the methods and devices in the embodiments of the present application is not limited to performing functions in the order shown or discussed, and may also include performing functions in a substantially simultaneous manner or in reverse order according to the functions involved. Functions are performed, for example, the described methods may be performed in an order different from that described, and various steps may also be added, omitted, or combined. Additionally, features described with reference to certain examples may be combined in other examples.
  • the disclosed devices and methods may be implemented in other ways.
  • the device embodiments described above are only illustrative.
  • the division of the units is only a logical function division. In actual implementation, there may be other division methods.
  • multiple units or components can be combined or May be integrated into another system, or some features may be ignored, or not implemented.
  • Another point, the mutual coupling or direct The indirect coupling or communication connection may be through some interfaces, the indirect coupling or communication connection of devices or units, and may be in electrical, mechanical or other forms.
  • the units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place, or may be distributed to multiple network units. Part or all of the units can be selected according to actual needs to achieve the purpose of the solution of this embodiment.
  • each functional unit in each embodiment of the present disclosure may be integrated into one processing unit, each unit may exist separately physically, or two or more units may be integrated into one unit.
  • modules, units, and subunits can be implemented in one or more application specific integrated circuits (Application Specific Integrated Circuits, ASIC), digital signal processor (Digital Signal Processor, DSP), digital signal processing equipment (DSP Device, DSPD ), programmable logic device (Programmable Logic Device, PLD), field-programmable gate array (Field-Programmable Gate Array, FPGA), general-purpose processor, controller, microcontroller, microprocessor, for implementing the disclosure other electronic units or combinations thereof.
  • ASIC Application Specific Integrated Circuits
  • DSP Digital Signal Processor
  • DSP Device digital signal processing equipment
  • PLD programmable logic device
  • FPGA field-programmable gate array
  • controller microcontroller, microprocessor
  • the technologies described in the embodiments of the present disclosure may be implemented through modules (such as procedures, functions, etc.) that execute the functions described in the embodiments of the present disclosure.
  • Software codes can be stored in memory and executed by a processor.
  • Memory can be implemented within the processor or external to the processor.

Landscapes

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

Abstract

本申请公开了一种蓝牙连接方法和蓝牙连接装置,属于蓝牙技术领域。所述蓝牙连接方法,应用于目标蓝牙设备,所述方法包括:与第一蓝牙设备进行经典蓝牙配对;接收所述第一蓝牙设备发送的目标账号,所述目标账号为所述第一蓝牙设备登录的账号;发送低功耗蓝牙广播,接收低功耗蓝牙连接请求;建立与第二蓝牙设备的低功耗蓝牙连接,其中,所述第二蓝牙设备发送的所述低功耗蓝牙连接请求中含有所述目标账号;基于所述低功耗蓝牙连接,建立与所述第二蓝牙设备的经典蓝牙连接。

Description

蓝牙连接方法和蓝牙连接装置
相关申请的交叉引用
本申请要求在2022年03月01日提交中国专利局、申请号为202210196409.X、名称为“蓝牙连接方法和蓝牙连接装置”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。
技术领域
本申请属于蓝牙技术,具体涉及一种蓝牙连接方法和蓝牙连接装置。
背景技术
经典蓝牙(Classic Bluetooth,简称为BT)和低功耗蓝牙(Bluetooth low energy,简称为BLE)是两种不同的蓝牙模式。经典蓝牙模式适用于数据量比较大的传输并且支持音频流无线传输。经典蓝牙模式可以用来直接连接到几乎任何蓝牙设备,适用于蓝牙电话接听,蓝牙耳机,蓝牙音箱等场景。低功耗蓝牙模块的特点是功耗低、连接速度快。目前一般用于数据量比较小的传输,例如用于遥控类(鼠标、键盘),传感设备(心跳带、血压计、温度传感器、共享单车锁)等。
现有技术中,同一个用户的多个设备(例如手机和平板)都需要连接耳机时,需要这些设备分别一一去和耳机进行配对连接。以蓝牙耳机为例,长按蓝牙耳机的功能键可以使得蓝牙耳机进入配对状态,或者,在蓝牙耳机正确放置在耳机充电盒的情况下,长按耳机充电盒的功能键,就可以使得蓝牙耳机进入配对状态。用户此时在手机的蓝牙设置界面中查看到该蓝牙耳机的名称,点击该蓝牙耳机的名称就可以和蓝牙耳机进行配对连接。这种方式比较繁琐,需要用户进行多次配对操作。
发明内容
本申请实施例的目的是提供蓝牙连接方法和蓝牙连接装置,能够解决同一用户的不同蓝牙设备需要一一与目标蓝牙设备进行经典蓝牙模式的连接的问题。
第一方面,本申请实施例提供了一种蓝牙连接方法,应用于目标蓝牙设备,该方法包括:与第一蓝牙设备进行经典蓝牙配对;接收所述第一蓝牙设 备发送的目标账号,所述目标账号为所述第一蓝牙设备登录的账号;发送低功耗蓝牙广播,接收低功耗蓝牙连接请求;建立与第二蓝牙设备的低功耗蓝牙连接,其中,所述第二蓝牙设备发送的所述低功耗蓝牙连接请求中含有所述目标账号;基于所述低功耗蓝牙连接,建立与所述第二蓝牙设备的经典蓝牙连接。
可选的,所述基于所述低功耗蓝牙连接,建立与所述第二蓝牙设备的经典蓝牙连接,包括:基于所述低功耗蓝牙连接,与所述第二蓝牙设备协商确定链路密钥;基于所述链路密钥,与所述第二蓝牙设备建立经典蓝牙连接。
可选的,所述基于所述低功耗蓝牙连接,建立与所述第二蓝牙设备的经典蓝牙连接,包括:基于所述低功耗蓝牙连接,接收所述第二蓝牙设备发送的设置命令;响应于所述设置命令,将所述目标蓝牙设备设置为目标配对模式,其中,在所述目标配对模式下,第二蓝牙设备与所述目标蓝牙设备可直接建立经典蓝牙连接;建立与所述第二蓝牙设备的经典蓝牙连接。
第二方面,本申请实施例提供了一种蓝牙连接方法,应用于登录了目标账号的第二蓝牙设备,所述方法包括:接收登录了目标账号的第一蓝牙设备发送的目标媒体存取控制地址;扫描低功耗蓝牙广播;向目标蓝牙设备发送低功耗蓝牙连接请求,建立与所述目标蓝牙设备的低功耗蓝牙连接,其中,所述目标蓝牙设备发送的所述低功耗蓝牙广播中含有所述目标媒体存取控制地址;基于所述低功耗蓝牙连接,建立与所述目标蓝牙设备的经典蓝牙连接。
可选的,所述基于所述低功耗蓝牙连接,建立与所述目标蓝牙设备的经典蓝牙连接,包括:基于所述低功耗蓝牙连接,与所述目标蓝牙设备协商确定链路密钥;基于所述链路密钥,与所述目标蓝牙设备建立经典蓝牙连接。
可选的,所述基于所述低功耗蓝牙连接,建立与所述目标蓝牙设备的经典蓝牙连接,包括:基于所述低功耗蓝牙连接,向所述目标蓝牙设备发送设置命令,以控制所述目标蓝牙设备进入目标配对模式,其中,在所述目标配对模式下,所述第二蓝牙设备与所述目标蓝牙设备可直接建立经典蓝牙连接;建立与所述目标蓝牙设备的经典蓝牙连接。
第三方面,本申请实施例提供了一种蓝牙连接装置,应用于目标蓝牙设备,所述装置包括:经典蓝牙配对模块,用于与第一蓝牙设备进行经典蓝牙配对;账号接收模块,用于接收所述第一蓝牙设备发送的目标账号,所述目标账号为所述第一蓝牙设备登录的账号;低功耗蓝牙连接模块,用于发送低 功耗蓝牙广播,接收低功耗蓝牙连接请求;以及,建立与所述第二蓝牙设备的低功耗蓝牙连接,其中,所述第二蓝牙设备发送的所述低功耗蓝牙连接请求中含有所述目标账号;经典蓝牙连接模块,用于基于所述低功耗蓝牙连接,建立与所述第二蓝牙设备的经典蓝牙连接。
可选的,所述经典蓝牙连接模块包括协商子模块和连接子模块;所述协商子模块,用于基于所述低功耗蓝牙连接,与所述第二蓝牙设备协商确定链路密钥;所述连接子模块,用于基于所述链路密钥,与所述第二蓝牙设备建立经典蓝牙连接。
可选的,所述经典蓝牙连接模块包括配对子模块和连接子模块;所述配对子模块,用于基于所述低功耗蓝牙连接,接收所述第二蓝牙设备发送的设置命令;以及,响应于所述设置命令,将所述目标蓝牙设备设置为目标配对模式,其中,在所述目标配对模式下,所述第二蓝牙设备与所述目标蓝牙设备可直接建立经典蓝牙连接;所述连接子模块,用于建立与所述第二蓝牙设备的经典蓝牙连接。
第四方面,本申请实施例提供了一种蓝牙连接装置,应用于登录了目标账号的第二蓝牙设备,所述装置包括:媒体存取控制地址接收模块,用于接收登录了目标账号的第一蓝牙设备发送的目标媒体存取控制地址;低功耗蓝牙连接模块,用于扫描低功耗蓝牙广播,向目标蓝牙设备发送低功耗蓝牙连接请求,建立与所述目标蓝牙设备的低功耗蓝牙连接,其中,所述目标蓝牙设备发送的所述低功耗蓝牙广播中含有所述目标媒体存取控制地址;经典蓝牙连接模块,用于基于所述低功耗蓝牙连接,建立与所述目标蓝牙设备的经典蓝牙连接。
可选的,所述经典蓝牙连接模块包括协商子模块和连接子模块;所述协商子模块,用于基于所述低功耗蓝牙连接,与所述目标蓝牙设备协商确定链路密钥;所述连接子模块,用于基于所述链路密钥,与所述目标蓝牙设备建立经典蓝牙连接。
可选的,所述经典蓝牙连接模块包括配对子模块和连接子模块;所述配对子模块,用于基于所述低功耗蓝牙连接,向所述目标蓝牙设备发送设置命令,以控制所述目标蓝牙设备进入目标配对模式,其中,在所述目标配对模式下,所述第二蓝牙设备与所述目标蓝牙设备可直接建立经典蓝牙连接;所述连接子模块,用于建立与所述目标蓝牙设备的经典蓝牙连接。
第五方面,本申请实施例提供了一种蓝牙设备,该蓝牙设备包括处理器 和存储器,所述存储器存储可在所述处理器上运行的程序或指令,所述程序或指令被所述处理器执行时实现如第一方面或第二方面所述的方法的步骤。
第六方面,本申请实施例提供了一种可读存储介质,所述可读存储介质上存储程序或指令,所述程序或指令被处理器执行时实现如第一方面或第二方面所述的方法的步骤。
第七方面,本申请实施例提供了一种芯片,所述芯片包括处理器和通信接口,所述通信接口和所述处理器耦合,所述处理器用于运行程序或指令,实现如第一方面或第二方面所述的方法。
第八方面,本申请实施例提供一种计算机程序产品,该程序产品被存储在存储介质中,该程序产品被至少一个处理器执行以实现如第一方面或第二方面所述的方法。
在本申请实施例中,提供了蓝牙连接方法、蓝牙连接装置、蓝牙设备、可读存储介质、芯片和计算机程序产品,在登录了目标账号的设备与目标蓝牙设备经典蓝牙配对的基础上,无需用户进行过多操作,就可以使其他登录了目标账户的设备与该目标蓝牙设备也建立经典蓝牙连接,简化了用户的连接过程,提升了用户的体验。
附图说明
图1示出了本公开实施例的一种蓝牙连接方法的示意图。
图2示出了本公开实施例的一种蓝牙连接方法的示意图。
图3示出了本公开实施例的一种蓝牙连接方法的示意图。
图4示出了本公开实施例的一种蓝牙连接方法的示意图。
图5示出了本公开实施例的一种蓝牙连接装置的框图。
图6示出了本公开实施例的一种蓝牙连接装置的框图。
图7示出了本公开实施例的一种蓝牙连接装置的框图。
图8示出了本公开实施例的一种蓝牙设备的框图。
图9示出了本公开实施例的一种蓝牙设备的硬件结构示意图。
具体实施例
下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行清楚地描述,显然,所描述的实施例是本申请一部分实施例,而不是全部的实施例。基于本申请中的实施例,本领域普通技术人员获得的所有其他实施 例,都属于本申请保护的范围。
本申请的说明书和权利要求书中的术语“第一”、“第二”等是用于区别类似的对象,而不用于描述特定的顺序或先后次序。应该理解这样使用的数据在适当情况下可以互换,以便本申请的实施例能够以除了在这里图示或描述的那些以外的顺序实施,且“第一”、“第二”等所区分的对象通常为一类,并不限定对象的个数。此外,说明书以及权利要求中“和/或”表示所连接对象的至少其中之一,字符“/”,一般表示前后关联对象是一种“或”的关系。
下面结合附图,通过具体的实施例及其应用场景对本申请实施例提供的拍摄方法进行详细地说明。
本公开实施例提供了一种蓝牙连接方法,如图1所示。
本公开实施例提供的蓝牙连接方法,适用于登录了同一目标账号的多个蓝牙设备与目标蓝牙设备的配对连接的场景。
具体的,目标账号可以是蓝牙设备的系统账号、设备所搭载的应用的应用账号等。需要说明的是,尽管介绍了目标账号的具体示例,但是本领域技术人员能够理解,本公开不限于此,目标账号的具体种类,本领域技术人员可以根据实际应用场景或个人喜好灵活设置。
上述登录了同一目标账号的多个蓝牙设备中,包括第一蓝牙设备和第二蓝牙设备。第一蓝牙设备可以是支持经典蓝牙模式的任何设备,例如手机、平板、车载终端等等。第二蓝牙设备可以是支持经典蓝牙模式和低功耗蓝牙模式的任何设备,例如手机、平板、车载终端等。
目标蓝牙设备可以是支持经典蓝牙模式和低功耗蓝牙模式的任何设备,例如蓝牙耳机、蓝牙音箱等等。
下面参照图1所示对本公开实施例提供的蓝牙连接方法进行说明:
S11、第一蓝牙设备与目标蓝牙设备进行经典蓝牙配对。
S12、在第一蓝牙设备与目标蓝牙设备进行经典蓝牙配对后,第一蓝牙设备将目标媒体存取控制(Media Access Control,MAC)地址发送给登录了目标账号的第二蓝牙设备,其中,目标媒体存取控制地址是目标蓝牙设备的MAC地址。以及,第一蓝牙设备将目标账号发送给目标蓝牙设备。
基于该步骤,第二蓝牙设备获知到目标蓝牙设备的MAC地址,目标蓝牙设备获知到目标账号。
本公开实施例中,基于目标账号的被登录情况的联网信息,第一蓝牙设 备可以获知到第二蓝牙设备同样也登录了目标账号。第一蓝牙设备在获知到第二蓝牙设备同样也登录了目标账号时,将目标账号发送给目标蓝牙设备,将目标媒体存取控制地址发送给第二蓝牙设备,以便于在后续步骤中方便第二蓝牙设备与目标蓝牙设备建立经典蓝牙连接。
S13、目标蓝牙设备发送低功耗蓝牙广播。其中,目标蓝牙设备发送的低功耗蓝牙广播带有目标蓝牙设备的媒体存取控制地址,也就是前述目标媒体存取控制地址。
在一个例子中,目标蓝牙设备内置有程序指令,在接收到第一蓝牙设备发送的目标账号后,该程序指令自动发送低功耗蓝牙广播,以便于与登录了目标账号的其他蓝牙设备进行连接。
S14、第二蓝牙设备扫描低功耗蓝牙广播,向目标蓝牙设备发送含有目标账号的低功耗蓝牙连接请求,其中,目标蓝牙设备发送的低功耗蓝牙广播中含有目标媒体存取控制地址。也就是说,在低功耗蓝牙广播中含有目标媒体存取控制地址的情况下,将发送低功耗蓝牙广播的设备确定为目标蓝牙设备。
在本实施例的一个示例中,第二蓝牙设备扫描到含有目标媒体存取控制地址的低功耗蓝牙广播时,可以在第二蓝牙设备上显示弹窗,在该弹窗上显示目标蓝牙设备的名称,以便于用户确定是否需要第二蓝牙设备连接目标蓝牙设备。响应于用户在弹窗上的确认操作,向目标蓝牙设备发送含有目标账号的低功耗蓝牙连接请求。
在一个例子中,第二蓝牙设备按照目标媒体存取控制地址向目标蓝牙设备发送含有目标账号的低功耗蓝牙连接请求,以向目标蓝牙设备表明自己是登录了目标账号的另一蓝牙设备并且希望与目标蓝牙设备建立连接。
S15、目标蓝牙设备接收到含有目标账号的低功耗蓝牙连接请求后,建立与第二蓝牙设备的低功耗蓝牙连接。
在一个例子中,目标蓝牙设备内置有程序指令,在发送上述的低功耗蓝牙广播之后,检测接收到的低功耗蓝牙连接请求中是否含有目标账号。如果接收到的低功耗蓝牙连接请求含有该目标账号,则与含有该目标账号的蓝牙设备,也就是第二蓝牙设备,建立低功耗蓝牙连接。
S16、基于与第二蓝牙设备的低功耗蓝牙连接,建立与第二蓝牙设备的经典蓝牙连接。
在本例中,在登录了目标账号的设备与目标蓝牙设备经典蓝牙配对的基 础上,无需用户进行过多操作,就可以使其他登录了目标账户的设备与该目标蓝牙设备也建立经典蓝牙连接,简化了用户的连接过程,提升了用户的体验。
在本示例的一个示例中,基于低功耗蓝牙连接,建立目标蓝牙设备与第二蓝牙设备的经典蓝牙连接,还包括:基于低功耗蓝牙连接,目标蓝牙设备与第二蓝牙设备协商确定链路秘钥(link key),基于该链路密钥,目标蓝牙设备与第二蓝牙设备建立经典蓝牙连接。
具体的,目标蓝牙设备与第二蓝牙设备建立低功耗蓝牙连接后,目标蓝牙设备与第二蓝牙设备通过低功耗蓝牙连接协商链路秘钥,第二蓝牙设备和目标蓝牙设备分别保存协商后的链路秘钥。第二蓝牙设备向目标蓝牙设备发起经典蓝牙连接请求,由于第二蓝牙设备和目标蓝牙设备已经保存了链路秘钥,第二蓝牙设备与目标蓝牙设备可以基于链路秘钥直接进行经典蓝牙连接,不需要再进行经典蓝牙配对流程。
在本例中,目标蓝牙设备与第二蓝牙设备可以通过低功耗蓝牙连接协商链路秘钥,并基于链路秘钥自动进行经典蓝牙连接。通过这种方式,简化了经典蓝牙连接的步骤,提升了用户的体验。目标蓝牙设备与第二蓝牙设备中内置有秘钥协商机制相关的程序代码,使得目标蓝牙设备与第二蓝牙设备可以通过低功耗蓝牙连接协商链路秘钥。该秘钥协商机制可以含有现有的协商机制、秘钥生成算法等,本公开实施例对此不作限定。
在本实施例的另一个示例中,基于低功耗蓝牙连接,建立目标蓝牙设备与第二蓝牙设备的经典蓝牙连接,还包括:基于低功耗蓝牙连接,第二蓝牙设备向目标蓝牙设备发送设置命令,响应于设置命令,将目标蓝牙设备设置为目标配对模式,其中,在目标配对模式下,第二蓝牙设备与目标蓝牙设备可直接建立经典蓝牙连接。建立经典蓝牙连接。
其中,目标配对模式包括直接使用(Just Work)配对模式,Just Work配对模式是不需要用户参与,两个蓝牙设备自行协商进行配对的模式。具体的,目标蓝牙设备与第二蓝牙设备建立低功耗蓝牙连接后,第二蓝牙设备可以通过低功耗蓝牙连接向目标蓝牙设备发出设置指令,将目标蓝牙设备设置成Just Work配对模式。按照Just Work配对模式,目标蓝牙设备与第二蓝牙设备不需要用户授权自行完成配对。第二蓝牙设备向目标蓝牙设备发起经典蓝牙连接的请求,建立经典蓝牙连接。
在本例中,第二蓝牙设备可以通过低功耗蓝牙连接,将目标蓝牙设备的 配对模式设置为Just Work模式。通过这种方式,使目标蓝牙设备可以不需要用户参与的情况下与第二蓝牙设备快速建立蓝牙连接,简化了用户操作,提升了用户的体验。
本公开实施例还提供了一种蓝牙连接方法,应用于目标蓝牙设备,如图2所示,方法包括:
步骤S21,与第一蓝牙设备进行经典蓝牙配对。
步骤S22,接收第一蓝牙设备发送的目标账号,目标账号为第一蓝牙设备登录的账号。
第一蓝牙设备与目标蓝牙设备进行经典蓝牙配对后,第一蓝牙设备将第一蓝牙设备登录的账号,也就是目标账号,发送给目标蓝牙设备,目标蓝牙设备接收到第一蓝牙设备发送的目标账号。
基于目标账号的被登录情况的联网信息,第一蓝牙设备获知到第二蓝牙设备同样也登录了目标账号。第一蓝牙设备与目标蓝牙设备进行经典蓝牙配对后,将目标媒体存取控制地址发送给登录了目标账号的第二蓝牙设备,目标蓝牙设备接收到第一蓝牙设备发送的目标账号,其中,目标媒体存取控制地址是目标蓝牙设备的MAC地址。
步骤S23,发送低功耗蓝牙广播,接收低功耗蓝牙连接请求。
在本公开实施例中,目标蓝牙设备发送含有目标媒体存取控制地址的低功耗蓝牙广播。
在一个例子中,目标蓝牙设备内置有程序指令,在接收到第一蓝牙设备发送的目标账号后,该程序指令自动发送低功耗蓝牙广播,低功耗蓝牙广播中含有目标媒体存取控制地址,以便于与登录了目标账号的第二蓝牙设备进行连接。
步骤S24,建立与第二蓝牙设备的低功耗蓝牙连接,其中,第二蓝牙设备发送的低功耗蓝牙连接请求中含有目标账号。
在本实施例的一个示例中,第二蓝牙设备扫描到含有目标媒体存取控制地址的低功耗蓝牙广播时,按照目标媒体存取控制地址向目标蓝牙设备发送含有目标账号的低功耗蓝牙连接请求,以向目标蓝牙设备表明自己是登录了目标账号的另一蓝牙设备并且希望与目标蓝牙设备建立连接。
在一个例子中,目标蓝牙设备内置有程序指令,在发送上述的低功耗蓝牙广播之后,检测接收到的低功耗蓝牙连接请求中是否含有目标账号。如果 接收到的低功耗蓝牙连接请求含有该目标账号,则与含有该目标账号的蓝牙设备,也就是第二蓝牙设备,建立低功耗蓝牙连接。
步骤S25,基于低功耗蓝牙连接,建立与第二蓝牙设备的经典蓝牙连接。
在本例中,在目标蓝牙设备与登录了目标账号的设备经典蓝牙配对的基础上,无需用户进行过多操作,就可以使其他登录了目标账户的设备与该目标蓝牙设备也建立经典蓝牙连接,简化了用户的连接过程,提升了用户的体验。
在本实施例的一个示例中,步骤S25包括:基于低功耗蓝牙连接,与第二蓝牙设备协商确定链路密钥。基于链路密钥,与第二蓝牙设备建立经典蓝牙连接。
具体的,目标蓝牙设备与第二蓝牙设备建立低功耗蓝牙连接后,目标蓝牙设备与第二蓝牙设备通过低功耗蓝牙连接协商链路秘钥,第二蓝牙设备和目标蓝牙设备分别保存协商后的链路秘钥。第二蓝牙设备向目标蓝牙设备发起经典蓝牙连接请求,由于第二蓝牙设备和目标蓝牙设备已经保存了链路秘钥,第二蓝牙设备与目标蓝牙设备可以基于链路秘钥直接进行经典蓝牙连接,不需要再进行经典蓝牙配对流程。
在本例中,目标蓝牙设备与第二蓝牙设备可以通过低功耗蓝牙连接协商链路秘钥,并基于链路秘钥自动进行经典蓝牙连接。通过这种方式,简化了经典蓝牙连接的步骤,提升了用户的体验。目标蓝牙设备与第二蓝牙设备中内置有秘钥协商机制相关的程序代码,使得目标蓝牙设备与第二蓝牙设备可以通过低功耗蓝牙连接协商链路秘钥。该秘钥协商机制可以含有现有的协商机制、秘钥生成算法等,本公开实施例对此不作限定。
在本实施例的另一个示例中,步骤S25还包括:基于低功耗蓝牙连接,接收第二蓝牙设备发送的设置命令。响应于设置命令,将目标蓝牙设备设置为目标配对模式。其中,在目标配对模式下,第二蓝牙设备与目标蓝牙设备可直接建立经典蓝牙连接。建立与所述目标蓝牙设备的经典蓝牙连接。
其中,目标配对模式包括Just Work配对模式,Just Work配对模式是不需要用户参与,两个蓝牙设备自行协商进行配对的模式。具体的,目标蓝牙设备与第二蓝牙设备建立低功耗蓝牙连接后,第二蓝牙设备可以通过低功耗蓝牙连接向目标蓝牙设备发出设置指令,将目标蓝牙设备设置成Just Work配对模式。按照Just Work配对模式,目标蓝牙设备与第二蓝牙设备不需要用户授权自行完成配对。第二蓝牙设备向目标蓝牙设备发起经典蓝牙连接的 请求,建立经典蓝牙连接。
在本例中,第二蓝牙设备可以通过低功耗蓝牙连接,将目标蓝牙设备的配对模式设置为Just Work模式。通过这种方式,使目标蓝牙设备可以不需要用户参与的情况下与第二蓝牙设备快速建立蓝牙连接,简化了用户操作,提升了用户的体验。
本公开实施例还提供了一种蓝牙连接方法,应用于登录了目标账号的第二蓝牙设备,如图3所示,方法包括:
步骤S31,接收登录了目标账号的第一蓝牙设备发送的目标媒体存取控制地址。
在一个例子中,第一蓝牙设备与目标蓝牙设备进行经典蓝牙配对后,第一蓝牙设备将目标媒体存取控制地址发送给登录了目标账号的第二蓝牙设备,其中,目标媒体存取控制地址是目标蓝牙设备的MAC地址。具体的,可以是基于目标账号的被登录情况的联网信息,第一蓝牙设备获知到第二蓝牙设备同样也登录了目标账号,第一蓝牙设备与目标蓝牙设备进行经典蓝牙配对后,将目标媒体存取控制地址发送给登录了目标账号的第二蓝牙设备。
第一蓝牙设备与目标蓝牙设备进行经典蓝牙配对后,第一蓝牙设备将第一蓝牙设备登录的账号,也就是目标账号,发送给目标蓝牙设备,目标蓝牙设备接收到第一蓝牙设备发送的目标账号。
步骤S32,扫描低功耗蓝牙广播。
在本公开实施例中,目标蓝牙设备发送含有目标媒体存取控制地址的低功耗蓝牙广播。在一个例子中,目标蓝牙设备内置有程序指令,在接收到第一蓝牙设备发送的目标账号后,该程序指令自动发送低功耗蓝牙广播,低功耗蓝牙广播中含有目标媒体存取控制地址,以便于与登录了目标账号的第二蓝牙设备进行连接。
步骤S33,向目标蓝牙设备发送低功耗蓝牙连接请求,建立与目标蓝牙设备的低功耗蓝牙连接,其中,目标蓝牙设备发送的低功耗蓝牙广播中含有所述目标媒体存取控制地址。
在本实施例的一个示例中,第二蓝牙设备扫描到含有目标媒体存取控制地址的低功耗蓝牙广播时,按照目标媒体存取控制地址向目标蓝牙设备发送含有目标账号的低功耗蓝牙连接请求,以向目标蓝牙设备表明自己是登录了目标账号的另一蓝牙设备并且希望与目标蓝牙设备建立连接。
在一个例子中,目标蓝牙设备内置有程序指令,在发送上述的低功耗蓝 牙广播之后,检测接收到的低功耗蓝牙连接请求中是否含有目标账号。如果接收到的低功耗蓝牙连接请求含有该目标账号,则与含有该目标账号的蓝牙设备,也就是第二蓝牙设备,建立低功耗蓝牙连接。
步骤S34,基于低功耗蓝牙连接,建立与目标蓝牙设备的经典蓝牙连接。
在本例中,在登录了目标账号的设备与目标蓝牙设备经典蓝牙配对的基础上,无需用户进行过多操作,就可以使其他登录了目标账户的设备与该目标蓝牙设备也建立经典蓝牙连接,简化了用户的连接过程,提升了用户的体验。
在本实施例的一个示例中,步骤S34还包括:基于低功耗蓝牙连接,与目标蓝牙设备协商确定链路密钥。基于链路密钥,与目标蓝牙设备建立经典蓝牙连接。
具体的,目标蓝牙设备与第二蓝牙设备建立低功耗蓝牙连接后,目标蓝牙设备与第二蓝牙设备通过低功耗蓝牙连接协商链路秘钥,第二蓝牙设备和目标蓝牙设备分别保存协商后的链路秘钥。第二蓝牙设备向目标蓝牙设备发起经典蓝牙连接请求,由于第二蓝牙设备和目标蓝牙设备已经保存了链路秘钥,第二蓝牙设备与目标蓝牙设备可以基于链路秘钥直接进行经典蓝牙连接,不需要再进行经典蓝牙配对流程。
在本例中,目标蓝牙设备与第二蓝牙设备可以通过低功耗蓝牙连接协商链路秘钥,并基于链路秘钥自动进行经典蓝牙连接。通过这种方式,简化了经典蓝牙连接的步骤,提升了用户的体验。目标蓝牙设备与第二蓝牙设备中内置有秘钥协商机制相关的程序代码,使得目标蓝牙设备与第二蓝牙设备可以通过低功耗蓝牙连接协商链路秘钥。该秘钥协商机制可以含有现有的协商机制、秘钥生成算法等,本公开实施例对此不作限定。
在本实施例的另一个示例中,步骤S34还包括:基于低功耗蓝牙连接,向目标蓝牙设备发送设置命令,以控制目标蓝牙设备进入目标配对模式。其中,在目标配对模式下,第二蓝牙设备与目标蓝牙设备可直接建立经典蓝牙连接。建立与所述目标蓝牙设备的经典蓝牙连接。
其中,目标配对模式包括Just Work配对模式,Just Work配对模式是不需要用户参与,两个蓝牙设备自行协商进行配对的模式。具体的,目标蓝牙设备与第二蓝牙设备建立低功耗蓝牙连接后,第二蓝牙设备可以通过低功耗蓝牙连接向目标蓝牙设备发出设置指令,将目标蓝牙设备设置成Just Work配对模式。按照Just Work配对模式,目标蓝牙设备与第二蓝牙设备不需要 用户授权自行完成配对。第二蓝牙设备向目标蓝牙设备发起经典蓝牙连接的请求,建立经典蓝牙连接。
在本例中,第二蓝牙设备可以通过低功耗蓝牙连接,将目标蓝牙设备的配对模式设置为Just Work模式。通过这种方式,使目标蓝牙设备可以不需要用户参与的情况下与第二蓝牙设备快速建立蓝牙连接,简化了用户操作,提升了用户的体验。
本公开实施例还提供了一种蓝牙连接方法,应用于登录了目标账号的第一蓝牙设备,如图4所示,方法包括:
步骤S41,与目标蓝牙设备进行经典蓝牙配对。
步骤S42,将目标媒体存取控制地址发送给登录了目标账号的第二蓝牙设备,将目标账号发送给目标蓝牙设备,以便于第二蓝牙设备和目标蓝牙设备建立低功耗蓝牙连接并且基于低功耗蓝牙连接建立经典蓝牙连接。其中,目标媒体存取控制地址为目标蓝牙设备的MAC地址。
本公开实施例中,基于目标账号的被登录情况的联网信息,第一蓝牙设备可以获知到第二蓝牙设备同样也登录了目标账号。第一蓝牙设备在获知到第二蓝牙设备同样也登录了目标账号时,将目标账号发送给目标蓝牙设备,将目标媒体存取控制地址发送给第二蓝牙设备,以便于在后续步骤中方便第二蓝牙设备与目标蓝牙设备建立经典蓝牙连接。
在本例中,第一蓝牙设备在与目标蓝牙设备经典蓝牙配对的基础上,无需用户进行过多的操作,就可以向同样登录了目标账号的第二蓝牙设备发送目标媒体存取控制地址,向目标蓝牙设备发送目标账号,以便第二蓝牙设备与目标蓝牙设备建立经典蓝牙连接,简化了用户的连接过程,提升了用户的体验。
在本实施例的一个示例中,第二蓝牙设备和目标蓝牙设备建立低功耗蓝牙连接,包括:目标蓝牙设备发送含有目标媒体存取控制地址的低功耗蓝牙广播。第二蓝牙设备扫描到含有目标媒体存取控制地址的低功耗蓝牙广播,向目标蓝牙设备发送含有目标账号的低功耗蓝牙连接请求。目标蓝牙设备接收到含有目标账号的低功耗蓝牙连接请求,建立与第二蓝牙设备的低功耗蓝牙连接。
在一个例子中,目标蓝牙设备内置有程序指令,在接收到第一蓝牙设备发送的目标账号后,该程序指令自动发送低功耗蓝牙广播,以便于与登录了目标账号的其他蓝牙设备进行连接。
在本实施例的一个示例中,第二蓝牙设备扫描到含有目标媒体存取控制地址的低功耗蓝牙广播时,按照目标媒体存取控制地址向目标蓝牙设备发送含有目标账号的低功耗蓝牙连接请求,以向目标蓝牙设备表明自己是登录了目标账号的另一蓝牙设备并且希望与目标蓝牙设备建立连接。
在一个例子中,目标蓝牙设备内置有程序指令,在发送上述的低功耗蓝牙广播之后,检测接收到的低功耗蓝牙连接请求中是否含有目标账号。如果接收到的低功耗蓝牙连接请求含有该目标账号,则与含有该目标账号的蓝牙设备,也就是第二蓝牙设备,建立低功耗蓝牙连接。
在本实施例的一个示例中,第二蓝牙设备和目标蓝牙设备基于低功耗蓝牙连接建立经典蓝牙连接,包括:基于低功耗蓝牙连接,第二蓝牙设备和目标蓝牙设备协商确定链路密钥。基于链路密钥,第二蓝牙设备和目标蓝牙设备建立经典蓝牙连接。
具体的,目标蓝牙设备与第二蓝牙设备建立低功耗蓝牙连接后,目标蓝牙设备与第二蓝牙设备通过低功耗蓝牙连接协商链路秘钥,第二蓝牙设备和目标蓝牙设备分别保存协商后的链路秘钥。第二蓝牙设备向目标蓝牙设备发起经典蓝牙连接请求,由于第二蓝牙设备和目标蓝牙设备已经保存了链路秘钥,第二蓝牙设备与目标蓝牙设备可以基于链路秘钥直接进行经典蓝牙连接,不需要再进行经典蓝牙配对流程。
在本例中,目标蓝牙设备与第二蓝牙设备可以通过低功耗蓝牙连接协商链路秘钥,并基于链路秘钥自动进行经典蓝牙连接。通过这种方式,简化了经典蓝牙连接的步骤,提升了用户的体验。目标蓝牙设备与第二蓝牙设备中内置有秘钥协商机制相关的程序代码,使得目标蓝牙设备与第二蓝牙设备可以通过低功耗蓝牙连接协商链路秘钥。该秘钥协商机制可以含有现有的协商机制、秘钥生成算法等,本公开实施例对此不作限定。
在本实施例的另一个示例中,第二蓝牙设备和目标蓝牙设备基于低功耗蓝牙连接建立经典蓝牙连接,包括:基于低功耗蓝牙连接,第二蓝牙设备向目标蓝牙设备发送设置命令,以控制目标蓝牙设备进入目标配对模式。其中,在目标配对模式下,第二蓝牙设备与目标蓝牙设备可直接建立经典蓝牙连接。第二蓝牙设备与目标蓝牙设备建立经典蓝牙连接。
其中,目标配对模式包括Just Work配对模式,Just Work配对模式是不需要用户参与,两个蓝牙设备自行协商进行配对的模式。具体的,目标蓝牙设备与第二蓝牙设备建立低功耗蓝牙连接后,第二蓝牙设备可以通过低功耗 蓝牙连接向目标蓝牙设备发出设置指令,将目标蓝牙设备设置成Just Work配对模式。按照Just Work配对模式,目标蓝牙设备与第二蓝牙设备不需要用户授权自行完成配对。第二蓝牙设备向目标蓝牙设备发起经典蓝牙连接的请求,建立经典蓝牙连接。
在本例中,第二蓝牙设备可以通过低功耗蓝牙连接,将目标蓝牙设备的配对模式设置为Just Work模式。通过这种方式,使目标蓝牙设备可以不需要用户参与的情况下与第二蓝牙设备快速建立蓝牙连接,简化了用户操作,提升了用户的体验。
本申请实施例提供的蓝牙连接方法,执行主体可以为一种蓝牙连接装置。本申请实施例中以蓝牙连接装置执行蓝牙连接的方法为例,说明本申请实施例提供的蓝牙连接的装置。
图5示出根据本公开一实施例的蓝牙连接装置的框图,应用于目标蓝牙设备,如图5所示,该蓝牙连接装置200包括经典蓝牙配对模块201、账号接收模块202、低功耗蓝牙连接模块203以及经典蓝牙连接模块204。
经典蓝牙配对模块201,用于与第一蓝牙设备进行经典蓝牙配对。账号接收模块202,用于接收第一蓝牙设备发送的目标账号,目标账号为第一蓝牙设备登录的账号。低功耗蓝牙连接模块203,用于发送低功耗蓝牙广播,接收低功耗蓝牙连接请求;以及,建立与第二蓝牙设备的低功耗蓝牙连接,其中,第二蓝牙设备发送的低功耗蓝牙连接请求中含有目标账号。经典蓝牙连接模块204,用于基于低功耗蓝牙连接,建立与第二蓝牙设备的经典蓝牙连接。
可选的,作为本实施例的一个示例,经典蓝牙连接模块204包括协商子模块和连接子模块。协商子模块,用于基于低功耗蓝牙连接,与第二蓝牙设备协商确定链路密钥。连接子模块,用于基于链路密钥,与第二蓝牙设备建立经典蓝牙连接。
可选的,作为本实施例的一个示例,经典蓝牙连接模块204包括配对子模块和连接子模块。配对子模块,用于基于低功耗蓝牙连接,接收第二蓝牙设备发送的设置命令,以及,响应于设置命令,将目标蓝牙设备设置为目标配对模式,其中,在目标配对模式下,第二蓝牙设备与目标蓝牙设备可直接建立经典蓝牙连接。连接子模块,用于建立与第二蓝牙设备的经典蓝牙连接。
图6示出根据本公开一实施例的蓝牙连接装置的框图,应用于第二蓝牙 设备,如图6所示,该蓝牙连接装置300包括媒体存取控制地址接收模块301、低功耗蓝牙连接模块302以及经典蓝牙连接模块303。
媒体存取控制地址接收模块,用于接收登录了目标账号的第一蓝牙设备发送的目标媒体存取控制地址。低功耗蓝牙连接模块,用于扫描低功耗蓝牙广播,向目标蓝牙设备发送低功耗蓝牙连接请求,建立与目标蓝牙设备的低功耗蓝牙连接,其中,目标蓝牙设备发送的低功耗蓝牙广播中含有目标媒体存取控制地址。经典蓝牙连接模块,用于基于低功耗蓝牙连接,建立与目标蓝牙设备的经典蓝牙连接。
可选的,经典蓝牙连接模块303包括协商子模块和连接子模块;协商子模块,用于基于低功耗蓝牙连接,与目标蓝牙设备协商确定链路密钥。连接子模块,用于基于链路密钥,与目标蓝牙设备建立经典蓝牙连接。
可选的,经典蓝牙连接模块303包括配对子模块和连接子模块。配对子模块,用于基于低功耗蓝牙连接,向目标蓝牙设备发送设置命令,以控制目标蓝牙设备进入目标配对模式,其中,在目标配对模式下,第二蓝牙设备与目标蓝牙设备可直接建立经典蓝牙连接。连接子模块,用于建立与目标蓝牙设备的经典蓝牙连接。
图7示出根据本公开一实施例的蓝牙连接装置的框图,应用于第一蓝牙设备,如图7所示,该蓝牙连接装置400包括经典蓝牙配对模块401和发送模块402。
经典蓝牙配对模块401用于与目标蓝牙设备进行经典蓝牙配对。发送模块402用于将目标媒体存取控制地址发送给登录了目标账号的第二蓝牙设备,将目标账号发送给所述目标蓝牙设备,以便于第二蓝牙设备和目标蓝牙设备建立低功耗蓝牙连接并且基于所述低功耗蓝牙连接建立经典蓝牙连接;其中,所述目标媒体存取控制地址为所述目标蓝牙设备的MAC地址。
在本例中,提供了一种蓝牙连接装置,在登录了目标账号的设备与目标蓝牙设备经典蓝牙配对的基础上,无需用户进行过多操作,就可以使其他登录了目标账户的设备与该目标蓝牙设备也建立经典蓝牙连接,简化了用户的连接过程,提升了用户的体验。
本申请实施例中的蓝牙连接装置可以是蓝牙设备,也可以是蓝牙设备中的部件,例如集成电路或芯片。该蓝牙设备可以是终端,也可以为除终端之外的其他设备。示例性的,蓝牙设备可以为手机、平板电脑、笔记本电脑、 掌上电脑、车载电子设备、移动上网装置(Mobile Internet Device,MID)、增强现实(augmented reality,AR)/虚拟现实(virtual reality,VR)设备、机器人、可穿戴设备、超级移动个人计算机(ultra-mobile personal computer,UMPC)、上网本或者个人数字助理(personal digital assistant,PDA)等,还可以为服务器、网络附属存储器(Network Attached Storage,NAS)、个人计算机(personal computer,PC)、电视机(television,TV)、柜员机或者自助机等,本申请实施例不作具体限定。
本申请实施例中的蓝牙连接装置可以为具有操作系统的装置。该操作系统可以为安卓(Android)操作系统,可以为苹果移动设备操作系统(iPhone Operation System,ios),还可以为其他可能的操作系统,本申请实施例不作具体限定。
本申请实施例提供的蓝牙连接装置能够实现图1至图4的方法实施例实现的各个过程,为避免重复,这里不再赘述。
可选的,如图8所示,本申请实施例还提供一种蓝牙设备500,包括处理器501和存储器502,存储器502上存储有可在所述处理器501上运行的程序或指令,该程序或指令被处理器501执行时实现上述蓝牙连接方法实施例的各个步骤,且能达到相同的技术效果,为避免重复,这里不再赘述。
需要说明的是,本申请实施例中的电子设备包括上述所述的移动电子设备和非移动电子设备。
在本例中,提供了一种蓝牙设备,在登录了目标账号的设备与目标蓝牙设备经典蓝牙配对的基础上,无需用户进行过多操作,就可以使其他登录了目标账户的设备与该目标蓝牙设备也建立经典蓝牙连接,简化了用户的连接过程,提升了用户的体验。
图9为实现本申请实施例的一种电子设备的硬件结构示意图。该电子设备为具有蓝牙功能的设备。
该电子设备1000包括但不限于:射频单元1001、网络模块1002、音频输出单元1003、输入单元1004、传感器1005、显示单元1006、用户输入单元1007、接口单元1008、存储器1009、以及处理器1010等部件。
本领域技术人员可以理解,电子设备1000还可以包括给各个部件供电的电源(比如电池),电源可以通过电源管理系统与处理器1010逻辑相连, 从而通过电源管理系统实现管理充电、放电、以及功耗管理等功能。图9中示出的蓝牙设备结构并不构成对蓝牙设备的限定,蓝牙设备可以包括比图示更多或更少的部件,或者组合某些部件,或者不同的部件布置,在此不再赘述。
在电子设备为目标蓝牙设备的情况下,处理器1010用于与第一蓝牙设备进行经典蓝牙配对。接收第一蓝牙设备发送的目标账号,目标账号为第一蓝牙设备登录的账号。发送低功耗蓝牙广播,接收低功耗蓝牙连接请求。建立与第二蓝牙设备的低功耗蓝牙连接,其中,第二蓝牙设备发送的低功耗蓝牙连接请求中含有目标账号。基于低功耗蓝牙连接,建立与第二蓝牙设备的经典蓝牙连接。
可选的,处理器1010用于基于低功耗蓝牙连接,建立与第二蓝牙设备的经典蓝牙连接,包括:基于低功耗蓝牙连接,与第二蓝牙设备协商确定链路密钥。基于链路密钥,与第二蓝牙设备建立经典蓝牙连接。
可选的,处理器1010用于基于低功耗蓝牙连接,建立与第二蓝牙设备的经典蓝牙连接,包括:基于低功耗蓝牙连接,接收第二蓝牙设备发送的设置命令。响应于设置命令,将目标蓝牙设备设置为目标配对模式,其中,在目标配对模式下,第二蓝牙设备与目标蓝牙设备可直接建立经典蓝牙连接。建立与第二蓝牙设备的经典蓝牙连接。
在本例中,提供了一种电子设备,在登录了目标账号的设备与该电子设备经典蓝牙配对的基础上,无需用户进行过多操作,就可以使其他登录了目标账户的设备与该电子设备也建立经典蓝牙连接,简化了用户的连接过程,提升了用户的体验。
在电子设备为登录了目标账号的第二蓝牙设备的情况下,处理器1010用于接收登录了目标账号的第一蓝牙设备发送的目标媒体存取控制地址。扫描低功耗蓝牙广播。向目标蓝牙设备发送低功耗蓝牙连接请求,建立与目标蓝牙设备的低功耗蓝牙连接,其中,目标蓝牙设备发送的低功耗蓝牙广播中含有目标媒体存取控制地址。基于低功耗蓝牙连接,建立与目标蓝牙设备的经典蓝牙连接。
可选的,处理器1010用于基于低功耗蓝牙连接,建立与目标蓝牙设备的经典蓝牙连接,包括:基于低功耗蓝牙连接,与目标蓝牙设备协商确定链路密钥。基于链路密钥,与目标蓝牙设备建立经典蓝牙连接。
可选的,处理器1010用于基于低功耗蓝牙连接,建立与目标蓝牙设备的经典蓝牙连接,包括:基于低功耗蓝牙连接,向目标蓝牙设备发送设置命令,以控制目标蓝牙设备进入目标配对模式,其中,在目标配对模式下,第二蓝牙设备与目标蓝牙设备可直接建立经典蓝牙连接。建立与目标蓝牙设备的经典蓝牙连接。
在本例中,提供了一种电子设备,在登录了目标账号的设备与目标蓝牙设备经典蓝牙配对的基础上,无需用户进行过多操作,就可以使该电子设备与目标蓝牙设备也建立经典蓝牙连接,简化了用户的连接过程,提升了用户的体验。
在电子设备为登录了目标账号的第一蓝牙设备的情况下,处理器1010用于与目标蓝牙设备进行经典蓝牙配对。将目标媒体存取控制地址发送给登录了目标账号的第二蓝牙设备,将目标账号发送给目标蓝牙设备,以便于第二蓝牙设备和目标蓝牙设备建立低功耗蓝牙连接并且基于低功耗蓝牙连接建立经典蓝牙连接。其中,目标媒体存取控制地址为目标蓝牙设备的MAC地址。
在本例中,提供了一种电子设备,该电子设备在与目标蓝牙设备经典蓝牙配对的基础上,无需用户进行过多的操作,就可以向同样登录了目标账号的第二蓝牙设备发送目标媒体存取控制地址,向目标蓝牙设备发送目标账号,以便第二蓝牙设备与目标蓝牙设备建立经典蓝牙连接,简化了用户的连接过程,提升了用户的体验。
应理解的是,本申请实施例中,输入单元1004可以包括图形处理器(Graphics Processing Unit,GPU)10041和麦克风10042,图形处理器10041对在视频捕获模式或图像捕获模式中由图像捕获装置(如摄像头)获得的静态图片或视频的图像数据进行处理。显示单元1006可包括显示面板10061,可以采用液晶显示器、有机发光二极管等形式来配置显示面板10061。用户输入单元1007包括触控面板10071以及其他输入设备10072中的至少一种。触控面板10071,也称为触摸屏。触控面板10071可包括触摸检测装置和触摸控制器两个部分。其他输入设备10072可以包括但不限于物理键盘、功能键(比如音量控制按键、开关按键等)、轨迹球、鼠标、操作杆,在此不再赘述。
存储器1009可用于存储软件程序以及各种数据。存储器1009可主要包 括存储程序或指令的第一存储区和存储数据的第二存储区,其中,第一存储区可存储操作系统、至少一个功能所需的应用程序或指令(比如声音播放功能、图像播放功能等)等。此外,存储器1009可以包括易失性存储器或非易失性存储器,或者,存储器1009可以包括易失性和非易失性存储器两者。其中,非易失性存储器可以是只读存储器(Read-Only Memory,ROM)、可编程只读存储器(Programmable ROM,PROM)、可擦除可编程只读存储器(Erasable PROM,EPROM)、电可擦除可编程只读存储器(Electrically EPROM,EEPROM)或闪存。易失性存储器可以是随机存取存储器(Random Access Memory,RAM),静态随机存取存储器(Static RAM,SRAM)、动态随机存取存储器(Dynamic RAM,DRAM)、同步动态随机存取存储器(Synchronous DRAM,SDRAM)、双倍数据速率同步动态随机存取存储器(Double Data Rate SDRAM,DDRSDRAM)、增强型同步动态随机存取存储器(Enhanced SDRAM,ESDRAM)、同步连接动态随机存取存储器(Synch link DRAM,SLDRAM)和直接内存总线随机存取存储器(Direct Rambus RAM,DRRAM)。本申请实施例中的存储器1009包括但不限于这些和任意其它适合类型的存储器。
处理器1010可包括一个或多个处理单元;可选的,处理器1010集成应用处理器和调制解调处理器,其中,应用处理器主要处理涉及操作系统、用户界面和应用程序等的操作,调制解调处理器主要处理无线通信信号,如基带处理器。可以理解的是,上述调制解调处理器也可以不集成到处理器1010中。
本申请实施例还提供一种可读存储介质,所述可读存储介质上存储有程序或指令,该程序或指令被处理器执行时实现上述蓝牙连接方法实施例的各个过程,且能达到相同的技术效果,为避免重复,这里不再赘述。
其中,所述处理器为上述实施例中所述的蓝牙设备中的处理器。所述可读存储介质,包括计算机可读存储介质,如计算机只读存储器ROM、随机存取存储器RAM、磁碟或者光盘等。
本申请实施例另提供了一种芯片,所述芯片包括处理器和通信接口,所述通信接口和所述处理器耦合,所述处理器用于运行程序或指令,实现上述蓝牙连接方法实施例的各个过程,且能达到相同的技术效果,为避免重复, 这里不再赘述。
应理解,本申请实施例提到的芯片还可以称为系统级芯片、系统芯片、芯片系统或片上系统芯片等。
本申请实施例提供一种计算机程序产品,该程序产品被存储在存储介质中,该程序产品被至少一个处理器执行以实现如上述蓝牙连接方法实施例的各个过程,且能达到相同的技术效果,为避免重复,这里不再赘述。
需要说明的是,在本文中,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、物品或者装置不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、物品或者装置所固有的要素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括该要素的过程、方法、物品或者装置中还存在另外的相同要素。此外,需要指出的是,本申请实施方式中的方法和装置的范围不限按示出或讨论的顺序来执行功能,还可包括根据所涉及的功能按基本同时的方式或按相反的顺序来执行功能,例如,可以按不同于所描述的次序来执行所描述的方法,并且还可以添加、省去、或组合各种步骤。另外,参照某些示例所描述的特征可在其他示例中被组合。
本领域普通技术人员可以意识到,结合本文中所公开的实施例描述的各示例的单元及算法步骤,能够以电子硬件、或者计算机软件和电子硬件的结合来实现。这些功能究竟以硬件还是软件方式来执行,取决于技术方案的特定应用和设计约束条件。专业技术人员可以对每个特定的应用来使用不同方法来实现所描述的功能,但是这种实现不应认为超出本公开的范围。
所属领域的技术人员可以清楚地了解到,为描述的方便和简洁,上述描述的系统、装置和单元的具体工作过程,可以参考前述方法实施例中的对应过程,在此不再赘述。
在本申请所提供的实施例中,应该理解到,所揭露的装置和方法,可以通过其它的方式实现。例如,以上所描述的装置实施例仅仅是示意性的,例如,所述单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如多个单元或组件可以结合或者可以集成到另一个系统,或一些特征可以忽咯,或不执行。另一点,所显示或讨论的相互之间的耦合或直 接耦合或通信连接可以是通过一些接口,装置或单元的间接耦合或通信连接,可以是电性,机械或其它的形式。
所述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部单元来实现本实施例方案的目的。
另外,在本公开各个实施例中的各功能单元可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中。
通过以上的实施方式的描述,本领域的技术人员可以清楚地了解到上述实施例方法可借助软件加必需的通用硬件平台的方式来实现,当然也可以通过硬件,但很多情况下前者是更佳的实施方式。基于这样的理解,本申请的技术方案本质上或者说对现有技术做出贡献的部分可以以计算机软件产品的形式体现出来,该计算机软件产品存储在一个存储介质(如ROM/RAM、磁碟、光盘)中,包括若干指令用以使得一台终端(可以是手机,计算机,服务器,或者网络设备等)执行本申请各个实施例所述的方法。
可以理解的是,本公开实施例描述的这些实施例可以用硬件、软件、固件、中间件、微码或其组合来实现。对于硬件实现,模块、单元、子单元可以实现在一个或多个专用集成电路(Application Specific Integrated Circuits,ASIC)、数字信号处理器(Digital Signal Processor,DSP)、数字信号处理设备(DSP Device,DSPD)、可编程逻辑设备(Programmable Logic Device,PLD)、现场可编程门阵列(Field-Programmable Gate Array,FPGA)、通用处理器、控制器、微控制器、微处理器、用于执行本公开所述功能的其它电子单元或其组合中。
对于软件实现,可通过执行本公开实施例所述功能的模块(例如过程、函数等)来实现本公开实施例所述的技术。软件代码可存储在存储器中并通过处理器执行。存储器可以在处理器中或在处理器外部实现。
上面结合附图对本申请的实施例进行了描述,但是本申请并不局限于上述的具体实施方式,上述的具体实施方式仅仅是示意性的,而不是限制性的,本领域的普通技术人员在本申请的启示下,在不脱离本申请宗旨和权利要求所保护的范围情况下,还可做出很多形式,均属于本申请的保护之内。

Claims (16)

  1. 一种蓝牙连接方法,应用于目标蓝牙设备,所述方法包括:
    与第一蓝牙设备进行经典蓝牙配对;
    接收所述第一蓝牙设备发送的目标账号,所述目标账号为所述第一蓝牙设备登录的账号;
    发送低功耗蓝牙广播,接收低功耗蓝牙连接请求;
    建立与第二蓝牙设备的低功耗蓝牙连接,其中,所述第二蓝牙设备发送的所述低功耗蓝牙连接请求中含有所述目标账号;
    基于所述低功耗蓝牙连接,建立与所述第二蓝牙设备的经典蓝牙连接。
  2. 根据权利要求1所述的方法,其中,所述基于所述低功耗蓝牙连接,建立与所述第二蓝牙设备的经典蓝牙连接,包括:
    基于所述低功耗蓝牙连接,与所述第二蓝牙设备协商确定链路密钥;
    基于所述链路密钥,与所述第二蓝牙设备建立经典蓝牙连接。
  3. 根据权利要求1所述的方法,其中,所述基于所述低功耗蓝牙连接,建立与所述第二蓝牙设备的经典蓝牙连接,包括:
    基于所述低功耗蓝牙连接,接收所述第二蓝牙设备发送的设置命令;
    响应于所述设置命令,将所述目标蓝牙设备设置为目标配对模式,其中,在所述目标配对模式下,所述第二蓝牙设备与所述目标蓝牙设备可直接建立经典蓝牙连接;
    建立与所述第二蓝牙设备的经典蓝牙连接。
  4. 一种蓝牙连接方法,其中,应用于登录了目标账号的第二蓝牙设备,所述方法包括:
    接收登录了目标账号的第一蓝牙设备发送的目标媒体存取控制地址;
    扫描低功耗蓝牙广播;
    向目标蓝牙设备发送低功耗蓝牙连接请求,建立与所述目标蓝牙设备的低功耗蓝牙连接,其中,所述目标蓝牙设备发送的所述低功耗蓝牙广播中含有所述目标媒体存取控制地址;
    基于所述低功耗蓝牙连接,建立与所述目标蓝牙设备的经典蓝牙连接。
  5. 根据权利要求4所述的方法,其中,所述基于所述低功耗蓝牙连接,建立与所述目标蓝牙设备的经典蓝牙连接,包括:
    基于所述低功耗蓝牙连接,与所述目标蓝牙设备协商确定链路密钥;
    基于所述链路密钥,与所述目标蓝牙设备建立经典蓝牙连接。
  6. 根据权利要求4所述的方法,其中,所述基于所述低功耗蓝牙连接,建立与所述目标蓝牙设备的经典蓝牙连接,包括:
    基于所述低功耗蓝牙连接,向所述目标蓝牙设备发送设置命令,以控制所述目标蓝牙设备进入目标配对模式,其中,在所述目标配对模式下,所述第二蓝牙设备与所述目标蓝牙设备可直接建立经典蓝牙连接;
    建立与所述目标蓝牙设备的经典蓝牙连接。
  7. 一种蓝牙连接装置,应用于目标蓝牙设备,所述装置包括:
    经典蓝牙配对模块,用于与第一蓝牙设备进行经典蓝牙配对;
    账号接收模块,用于接收所述第一蓝牙设备发送的目标账号,所述目标账号为所述第一蓝牙设备登录的账号;
    低功耗蓝牙连接模块,用于发送低功耗蓝牙广播,接收低功耗蓝牙连接请求;以及,建立与第二蓝牙设备的低功耗蓝牙连接,其中,所述第二蓝牙设备发送的所述低功耗蓝牙连接请求中含有所述目标账号;
    经典蓝牙连接模块,用于基于所述低功耗蓝牙连接,建立与所述第二蓝牙设备的经典蓝牙连接。
  8. 根据权利要求7所述的装置,其中,所述经典蓝牙连接模块包括协商子模块和连接子模块;
    所述协商子模块,用于基于所述低功耗蓝牙连接,与所述第二蓝牙设备协商确定链路密钥;
    所述连接子模块,用于基于所述链路密钥,与所述第二蓝牙设备建立经典蓝牙连接。
  9. 根据权利要求7所述的装置,其中,所述经典蓝牙连接模块包括配对子模块和连接子模块;
    所述配对子模块,用于基于所述低功耗蓝牙连接,接收所述第二蓝牙设备发送的设置命令;以及,响应于所述设置命令,将所述目标蓝牙设备设置为目标配对模式,其中,在所述目标配对模式下,所述第二蓝牙设备与所述目标蓝牙设备可直接建立经典蓝牙连接;
    所述连接子模块,用于建立与所述第二蓝牙设备的经典蓝牙连接。
  10. 一种蓝牙连接装置,其中,应用于登录了目标账号的第二蓝牙设备,所述装置包括:
    媒体存取控制地址接收模块,用于接收登录了目标账号的第一蓝牙设备发送的目标媒体存取控制地址;
    低功耗蓝牙连接模块,用于扫描低功耗蓝牙广播,向目标蓝牙设备发送低功耗蓝牙连接请求,建立与所述目标蓝牙设备的低功耗蓝牙连接,其中,所述目标蓝牙设备发送的所述低功耗蓝牙广播中含有所述目标媒体存取控制地址;
    经典蓝牙连接模块,用于基于所述低功耗蓝牙连接,建立与所述目标蓝牙设备的经典蓝牙连接。
  11. 根据权利要求10所述的装置,其中,所述经典蓝牙连接模块包括协商子模块和连接子模块;
    所述协商子模块,用于基于所述低功耗蓝牙连接,与所述目标蓝牙设备协商确定链路密钥;
    所述连接子模块,用于基于所述链路密钥,与所述目标蓝牙设备建立经典蓝牙连接。
  12. 根据权利要求10所述的装置,其中,所述经典蓝牙连接模块包括配对子模块和连接子模块;
    所述配对子模块,用于基于所述低功耗蓝牙连接,向所述目标蓝牙设备发送设置命令,以控制所述目标蓝牙设备进入目标配对模式,其中,在所述目标配对模式下,所述第二蓝牙设备与所述目标蓝牙设备可直接建立经典蓝牙连接;
    所述连接子模块,用于建立与所述目标蓝牙设备的经典蓝牙连接。
  13. 一种蓝牙设备,其中,所述蓝牙设备包括处理器和存储器,所述存储器存储可在所述处理器上运行的程序或指令,所述程序或指令被所述处理器执行时实现如权利要求1-6中的任一项所述的蓝牙连接方法的步骤。
  14. 一种可读存储介质,其中,所述可读存储介质上存储程序或指令,所述程序或指令被处理器执行时实现如权利要求1-6任一项所述的蓝牙连接方法的步骤。
  15. 一种芯片,其中,所述芯片包括处理器和通信接口,所述通信接口和所述处理器耦合,所述处理器用于运行程序或指令,实现如权利要求1-6任一项所述的蓝牙连接方法的步骤。
  16. 一种计算机程序产品,其中,所述程序产品被存储在存储介质中,所述程序产品被至少一个处理器执行以实现如权利要求1-6任一项所述的蓝牙连接方法的步骤。
PCT/CN2023/078059 2022-03-01 2023-02-24 蓝牙连接方法和蓝牙连接装置 WO2023165418A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202210196409.XA CN114449503A (zh) 2022-03-01 2022-03-01 蓝牙连接方法和蓝牙连接装置
CN202210196409.X 2022-03-01

Publications (1)

Publication Number Publication Date
WO2023165418A1 true WO2023165418A1 (zh) 2023-09-07

Family

ID=81359647

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2023/078059 WO2023165418A1 (zh) 2022-03-01 2023-02-24 蓝牙连接方法和蓝牙连接装置

Country Status (2)

Country Link
CN (1) CN114449503A (zh)
WO (1) WO2023165418A1 (zh)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114449503A (zh) * 2022-03-01 2022-05-06 维沃移动通信有限公司 蓝牙连接方法和蓝牙连接装置
CN117880782A (zh) * 2022-09-30 2024-04-12 Oppo广东移动通信有限公司 设备连接方法、装置、蓝牙设备及存储介质
CN116567858B (zh) * 2023-04-27 2024-06-07 百洋智能科技集团股份有限公司 一种跨平台的ble设备自动连接方法

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107277754A (zh) * 2017-07-12 2017-10-20 深圳市冠旭电子股份有限公司 一种蓝牙连接的方法及蓝牙外围设备
WO2018000134A1 (zh) * 2016-06-27 2018-01-04 华为技术有限公司 一种蓝牙连接的方法及终端
US20180103499A1 (en) * 2016-10-06 2018-04-12 Htc Corporation Control method for bluetooth communication and bluetooth low energy communication
CN110753330A (zh) * 2019-10-14 2020-02-04 合肥星空物联信息科技有限公司 一种蓝牙配对方法及蓝牙耳机
CN113676879A (zh) * 2020-05-14 2021-11-19 华为技术有限公司 一种分享信息的方法、电子设备和系统
CN114449503A (zh) * 2022-03-01 2022-05-06 维沃移动通信有限公司 蓝牙连接方法和蓝牙连接装置

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2018000134A1 (zh) * 2016-06-27 2018-01-04 华为技术有限公司 一种蓝牙连接的方法及终端
US20180103499A1 (en) * 2016-10-06 2018-04-12 Htc Corporation Control method for bluetooth communication and bluetooth low energy communication
CN107277754A (zh) * 2017-07-12 2017-10-20 深圳市冠旭电子股份有限公司 一种蓝牙连接的方法及蓝牙外围设备
CN110753330A (zh) * 2019-10-14 2020-02-04 合肥星空物联信息科技有限公司 一种蓝牙配对方法及蓝牙耳机
CN113676879A (zh) * 2020-05-14 2021-11-19 华为技术有限公司 一种分享信息的方法、电子设备和系统
CN114449503A (zh) * 2022-03-01 2022-05-06 维沃移动通信有限公司 蓝牙连接方法和蓝牙连接装置

Also Published As

Publication number Publication date
CN114449503A (zh) 2022-05-06

Similar Documents

Publication Publication Date Title
WO2023165418A1 (zh) 蓝牙连接方法和蓝牙连接装置
CN104683938A (zh) 智能设备的配置方法和装置
RU2637470C2 (ru) Способ и устройство для обнаружения интеллектуального устройства
WO2021129481A1 (zh) 界面分享方法及电子设备
EP3203755B1 (en) Audio processing device and audio processing method
WO2021129529A1 (zh) 设备切换方法及相关设备
CN104010222A (zh) 评论信息展示方法、装置及系统
US11792886B2 (en) Method for accessing network by network node, and electronic equipment
CN105357262A (zh) 设备控制方法及装置
CN105163366A (zh) 无线网络连接方法和装置
EP3588890A1 (en) Method and device for wireless connection of multiple devices
WO2020199986A1 (zh) 视频通话方法及终端设备
CN105100074A (zh) 数据操作处理方法、装置以及终端设备
CN109376519B (zh) 一种指纹解锁方法及终端设备
WO2019200928A1 (zh) 智能交互一体机
WO2021190373A1 (zh) 一种交互方法、交互系统和显示设备
CN103986631B (zh) 局域网设备发现方法及装置
KR20160102109A (ko) 데이터 전송 방법, 장치, 기기, 프로그램 및 기록매체
EP4138462A1 (en) Information sharing method, electronic devices and system
WO2024001956A1 (zh) 视频通话方法、装置、第一电子设备及第二电子设备
CN105306567A (zh) 用于终端连接的方法及装置
CN109992430B (zh) 一种数据传输方法、第一终端和第二终端
EP4344162A1 (en) Information processing method, device, and storage medium
WO2021238824A1 (zh) 屏幕控制方法及装置
WO2021197235A1 (zh) 热点分享方法及电子设备

Legal Events

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

Ref document number: 23762818

Country of ref document: EP

Kind code of ref document: A1