WO2021037208A1 - Procédé de connexion bluetooth et appareil électronique - Google Patents

Procédé de connexion bluetooth et appareil électronique Download PDF

Info

Publication number
WO2021037208A1
WO2021037208A1 PCT/CN2020/112126 CN2020112126W WO2021037208A1 WO 2021037208 A1 WO2021037208 A1 WO 2021037208A1 CN 2020112126 W CN2020112126 W CN 2020112126W WO 2021037208 A1 WO2021037208 A1 WO 2021037208A1
Authority
WO
WIPO (PCT)
Prior art keywords
electronic device
bluetooth
accessory device
authentication information
user
Prior art date
Application number
PCT/CN2020/112126
Other languages
English (en)
Chinese (zh)
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
Priority claimed from CN201910844294.9A external-priority patent/CN112449332B/zh
Application filed by 华为技术有限公司 filed Critical 华为技术有限公司
Publication of WO2021037208A1 publication Critical patent/WO2021037208A1/fr

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04BTRANSMISSION
    • H04B5/00Near-field transmission systems, e.g. inductive or capacitive transmission systems
    • H04B5/40Near-field transmission systems, e.g. inductive or capacitive transmission systems characterised by components specially adapted for near-field transmission
    • H04B5/48Transceivers
    • 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

Definitions

  • This application relates to the field of communications, and more specifically, to a Bluetooth connection method and electronic device.
  • accessory devices for example, Bluetooth headsets, etc.
  • the accessory device needs to be connected to another electronic device, the accessory device needs to enter a pairable state before it can establish a Bluetooth connection with the other electronic device.
  • the user needs to press the function key on the headset box for 2-3 seconds to trigger the iPod to enter the pairable state, so that another electronic device can establish a Bluetooth connection with the iPod.
  • the function key For the user, such an operation is relatively cumbersome.
  • the user wants to connect the iPod to different electronic devices, they must press the function key before each connection. At the same time, this will also increase the delay of the connection between the electronic device and the iPod.
  • This application provides a Bluetooth connection method and electronic device, which helps to improve the intelligence and privacy of the electronic device, and avoids cumbersome operations by users.
  • a system in a first aspect, includes a first electronic device and an accessory device.
  • the accessory device is configured to detect a user's first operation;
  • An electronic device sends first information, the first information includes the media access control MAC address of the accessory device and authentication information, and the authentication information is used to indicate that the accessory device needs to be interactively authenticated;
  • the first electronic device For prompting the user to input the first authentication information when it is determined that the MAC address is not saved; the first electronic device is also used for, when detecting that the user has input the first authentication information, compare the first authentication information with the
  • the accessory device performs interactive authentication; the accessory device is also used to enter a pairable mode after the interactive authentication with the second electronic device is passed; the first electronic device is also used to establish a Bluetooth connection with the accessory device.
  • the electronic device may prompt the user to input authentication information when the accessory device establishes a Bluetooth connection. After the interactive authentication of the electronic device and the accessory device is passed, the accessory device can automatically enter the pairable mode. It can be realized that the electronic device and the accessory device can be paired without the user's operation on the accessory device, which simplifies the Bluetooth pairing process and reduces the difficulty for the user to operate the accessory device. At the same time, it can also improve the privacy between electronic devices and accessory devices.
  • the first electronic device performs interactive authentication with the accessory device. After the first electronic device sends the first authentication information input by the user to the accessory device, the accessory device performs the first authentication information on the accessory device. Certification. It may also be that the accessory device authenticates the first authentication information, and the first electronic device also authenticates the authentication information sent by the accessory device; after both the authentication information of the other party is successfully authenticated, the first electronic device and the accessory The device has passed the mutual authentication.
  • the accessory device is further configured to send second information to the first electronic device before establishing a Bluetooth connection with the first electronic device, and the first electronic device
  • the second information is used to indicate that the accessory device enters the pairable mode; the first electronic device is specifically used to: in response to receiving the second information, use the MAC address to automatically send a paging page message to the accessory device; and the accessory device Perform the standard Bluetooth pairing process.
  • the accessory device after the accessory device enters the pairable mode, it can indicate that the electronic device has entered the pairable mode, so that the electronic device can automatically send a paging message to the accessory device after receiving the instruction, so as to perform standardization with the accessory device Bluetooth pairing process. It can be realized that the electronic device can initiate a paging to the accessory device without requiring the user to operate the electronic device, which simplifies the Bluetooth pairing process and reduces the difficulty for the user to operate the accessory device.
  • the system further includes a second electronic device, wherein the accessory device is configured to communicate with the second electronic device before detecting the first operation Establish a Bluetooth connection; the second electronic device is used to prompt the user to add authentication information to the accessory device after the Bluetooth connection is established with the accessory device; the second electronic device is also used to add the accessory device to the accessory device when it is detected that the user After the operation of the first authentication information, the first authentication information is sent to the accessory device.
  • the accessory device is configured to communicate with the second electronic device before detecting the first operation Establish a Bluetooth connection
  • the second electronic device is used to prompt the user to add authentication information to the accessory device after the Bluetooth connection is established with the accessory device
  • the second electronic device is also used to add the accessory device to the accessory device when it is detected that the user After the operation of the first authentication information, the first authentication information is sent to the accessory device.
  • the accessory device can establish a Bluetooth connection with the second electronic device before establishing a Bluetooth connection with the first electronic device.
  • the second electronic device can prompt the user to add authentication information to the accessory device. After the authentication information is added, After the second electronic device sends the first authentication information set by the user to the accessory device, so that when the accessory device is connected to the next electronic device, it can use the first authentication information to perform the authentication on the next electronic device. Certification.
  • the first authentication information may also be authentication information set inside the accessory device when the accessory device leaves the factory.
  • the first electronic device is further configured to prompt the user to modify the first authentication information after establishing a Bluetooth connection with the accessory device, or to prompt the user Cancel the first authentication information; the first electronic device is also used to send the second authentication information to the accessory device after detecting the user's operation of modifying the first authentication information to the second authentication information.
  • the first electronic device may also prompt the user to modify the first authentication information, or prompt the user to cancel the first authentication information .
  • the first electronic device detects the user's operation of modifying the first authentication information to the second authentication information, the first electronic device can send the second authentication information to the accessory device, so that the accessory device can use the second authentication information to pair The next electronic device to be connected performs interactive authentication.
  • the first electronic device can modify the authentication information of the accessory device, which can further improve the privacy between the electronic device and the accessory device.
  • the system further includes a third electronic device, and the third electronic device is a device that has been connected to the accessory device before and is not connected last time.
  • the device is also used to send the first information to the third electronic device;
  • the third electronic device is used to prompt the user whether to establish a Bluetooth connection with the accessory device after determining that the third electronic device saves the MAC address;
  • the third electronic device is also used to perform interactive authentication with the accessory device through the third authentication information after the operation of establishing a connection with the accessory device is detected, and the third authentication information indicates that the user is on the third electronic device Authentication information added for the accessory device;
  • the accessory device is also used to enter the pairable mode and disconnect the Bluetooth connection with the first electronic device after the interactive authentication with the third electronic device is passed;
  • the third electronic device Also used to establish a Bluetooth connection with the accessory device.
  • the user may be prompted whether to connect the accessory device.
  • the accessory device determines that the accessory device needs to be connected, the accessory device The device also needs to perform interactive authentication with the third electronic device. Because it is possible that after connecting the third electronic device before, other devices modify the authentication information of the accessory device. This can improve the privacy between the electronic device and the accessory device.
  • the accessory device is a Bluetooth headset
  • the first operation is an operation for the user to open the headset box.
  • a Bluetooth connection method is provided.
  • the method is applied to an electronic device.
  • the method includes: receiving first information sent by an accessory device, where the first information includes the media access control MAC address of the accessory device and Authentication information, the authentication information is used to indicate that the accessory device needs to be interactively authenticated; when it is determined that the MAC address is not saved, the user is prompted to enter the first authentication information; when it is detected that the user has entered the first authentication information, according to The first authentication information performs interactive authentication with the accessory device; after the interactive authentication with the accessory device is passed, a Bluetooth connection is established with the accessory device.
  • the electronic device may prompt the user to input authentication information when the accessory device establishes a Bluetooth connection. After the interactive authentication of the electronic device and the accessory device is passed, the accessory device can automatically enter the pairable mode. It can be realized that the electronic device and the accessory device can be paired without the user's operation on the accessory device, which simplifies the Bluetooth pairing process and reduces the difficulty for the user to operate the accessory device. At the same time, the privacy between electronic devices and accessory devices can also be improved.
  • the method before the Bluetooth connection is established with the accessory device, the method further includes: receiving instruction information sent by the accessory device, where the instruction information is used to indicate the accessory device The device enters a pairable mode; wherein, establishing a Bluetooth connection with the accessory device includes: sending a paging message to the accessory device in response to receiving the instruction information; and performing a standard Bluetooth pairing process with the Bluetooth headset.
  • the accessory device after the accessory device enters the pairable mode, it can indicate that the electronic device has entered the pairable mode, so that the electronic device can automatically send a paging message to the accessory device after receiving the instruction, so as to perform standardization with the accessory device Bluetooth pairing process. It can be realized that the electronic device can initiate a paging to the accessory device without requiring the user to operate the electronic device, which simplifies the Bluetooth pairing process and reduces the difficulty for the user to operate the accessory device.
  • the method further includes: after establishing a Bluetooth connection with the accessory device, prompting the user to modify the first authentication information, or prompting the user whether to cancel the The first authentication information; after detecting the user's operation of modifying the first authentication information to the second authentication information, the second authentication information is sent to the accessory device.
  • the electronic device may also prompt the user to modify the first authentication information, or prompt the user to cancel the first authentication information.
  • the electronic device detects the user's operation to modify the first authentication information to the second authentication information, the electronic device can send the second authentication information to the accessory device, so that the accessory device can use the second authentication information to connect to the next one.
  • Electronic equipment for interactive authentication The electronic device can modify the authentication information of the accessory device, which can further improve the privacy between the electronic device and the accessory device.
  • a Bluetooth connection method is provided.
  • the method is applied to an accessory device.
  • the method includes: detecting a first operation of a user; in response to the first operation, sending first information to a first electronic device, the The first information includes the media access control MAC address and authentication information of the accessory device, and the authentication information is used to indicate that the accessory device needs to be interactively authenticated; according to the first authentication information and the first electronic device, interactive authentication is performed
  • the first authentication information is the authentication information input by the user detected on the first electronic device; after successful interactive authentication with the first electronic device, enters the pairable mode; and establishes a Bluetooth connection with the first electronic device.
  • the method further includes: before establishing a Bluetooth connection with the first electronic device, sending second information to the first electronic device, and the second information Used to instruct the accessory device to enter a pairable mode; wherein, establishing a Bluetooth connection with the first electronic device includes: receiving a paging message sent by the first electronic device; and performing a standard Bluetooth pairing process with the first electronic device.
  • the accessory device can automatically enter the pairable mode. It can be realized that the electronic device and the accessory device can be paired without the user's operation on the accessory device, which simplifies the Bluetooth pairing process and reduces the difficulty for the user to operate the accessory device. At the same time, the privacy between electronic devices and accessory devices can also be improved.
  • the method further includes: before detecting the first operation, establishing a Bluetooth connection with the second electronic device; and receiving the second electronic device sent by the second electronic device.
  • the first authentication information before detecting the first operation, establishing a Bluetooth connection with the second electronic device; and receiving the second electronic device sent by the second electronic device. The first authentication information.
  • the method further includes: after establishing a Bluetooth connection with the first electronic device, receiving the second authentication information sent by the first electronic device; and saving the The second authentication information is authentication information used when the accessory device and the next electronic device to be connected perform interactive authentication.
  • the accessory device is a Bluetooth headset
  • the first operation is an operation for the user to open the headset box.
  • a chip system which is set in an electronic device.
  • the chip system includes a Bluetooth chip and a processor.
  • the Bluetooth chip is used to receive first information sent by an accessory device. Including the media access control MAC address and authentication information of the accessory device, the authentication information is used to indicate that the accessory device needs to be interactively authenticated; the processor is used to control the display screen when it is determined that the MAC address is not saved The user is prompted to enter the first authentication information; the processor is also used to determine the first authentication information; the Bluetooth chip is also used to perform interactive authentication with the accessory device according to the first authentication information; the Bluetooth chip is also used After passing the interactive authentication with the accessory device, establish a Bluetooth connection with the accessory device.
  • the Bluetooth chip is also used to receive instruction information sent by the accessory device, and the instruction information is used to instruct the accessory device to enter the pairable mode; the Bluetooth chip is also used to respond to receiving the Instruct information, send a paging message to the accessory device; perform a standard Bluetooth pairing process with the Bluetooth headset.
  • the processor is further configured to prompt the user to modify the first authentication information through the display screen, or to prompt the user to cancel the first authentication information; the processor is also configured to receive the first authentication information detected by the touch sensor Two authentication information; the Bluetooth chip is also used to send the second authentication information to the accessory device.
  • a chip system which is set in an accessory device.
  • the chip system includes a Bluetooth chip and a processor.
  • the Bluetooth chip is used to send first information to a first electronic device.
  • the media access control MAC address and authentication information of the accessory device are included in the accessory device.
  • the authentication information is used to indicate that interactive authentication is required to connect to the accessory device;
  • the Bluetooth chip is also used to The device performs interactive authentication, and the first authentication information is the authentication information input by the user detected on the first electronic device; the Bluetooth chip is also used to enter the pairable mode after successful interactive authentication with the first electronic device;
  • the Bluetooth chip is also used to establish a Bluetooth connection with the first electronic device.
  • the Bluetooth chip is also used to send second information to the first electronic device before establishing a Bluetooth connection with the first electronic device, and the second information is used to instruct the accessory device to enter the Pairing mode; the Bluetooth chip is also used to receive a paging message sent by the first electronic device; the Bluetooth chip is also used to perform a standard Bluetooth pairing process with the first electronic device.
  • the Bluetooth chip is also used to establish a Bluetooth connection with the second electronic device before detecting the first operation; the Bluetooth chip is also used to receive the second electronic device sent by the second electronic device One authentication information.
  • the Bluetooth chip is also used to receive the second authentication information sent by the first electronic device after the Bluetooth connection is established with the first electronic device; the Bluetooth chip is also used to save the first electronic device 2. Certification information.
  • a device in a sixth aspect, is provided, the device is included in an electronic device, and the device has the function of realizing the behavior of the electronic device in the foregoing aspect and possible implementation manners of the foregoing aspect.
  • the function can be realized by hardware, or the corresponding software can be executed by hardware.
  • the hardware or software includes one or more modules or units corresponding to the above-mentioned functions.
  • a device in a seventh aspect, is provided, the device is included in an accessory device, and the device has the function of realizing the foregoing aspects and the behavior of the accessory sub-device in the possible implementation manners of the foregoing aspects.
  • the function can be realized by hardware, or the corresponding software can be executed by hardware.
  • the hardware or software includes one or more modules or units corresponding to the above-mentioned functions.
  • an electronic device including: a Bluetooth chip; a display screen; one or more processors; a memory; and one or more computer programs.
  • the Bluetooth chip supports BR/EDR connection and BLE connection.
  • One or more computer programs are stored in the memory, and the one or more computer programs include instructions. When the instruction is executed by the electronic device, the electronic device is caused to execute the Bluetooth connection method in the possible implementation of the second aspect described above.
  • an accessory device including: a Bluetooth chip; one or more processors; a memory; and one or more computer programs.
  • the Bluetooth chip supports BR/EDR connection and BLE connection.
  • One or more computer programs are stored in the memory, and the one or more computer programs include instructions. When the instruction is executed by the accessory device, the accessory device is caused to execute the Bluetooth connection method in the possible implementation of the third aspect.
  • the present technical solution provides a computer-readable storage medium, including computer instructions, which when the computer instructions run on an electronic device, cause the electronic device to execute the Bluetooth connection in any one of the possible implementations of the above-mentioned aspects. method.
  • the present technical solution provides a computer program product that, when the computer program product runs on an electronic device, causes the electronic device to execute any one of the above-mentioned methods of Bluetooth connection in any possible design.
  • the present application provides a Bluetooth pairing method and related devices, which can realize the pairing of the terminal and the Bluetooth device without requiring the user to operate the Bluetooth device, simplify the pairing process, and reduce the difficulty for the user to operate the Bluetooth device.
  • this application provides a Bluetooth pairing method applied to a Bluetooth system.
  • the Bluetooth system includes a terminal and a Bluetooth device.
  • the method includes: First, the Bluetooth device broadcasts a low-power Bluetooth BLE broadcast packet. Wherein, the BLE broadcast packet includes the first pairing mode information and the Bluetooth address of the Bluetooth device. Then, the terminal receives the BLE broadcast packet broadcast by the Bluetooth device. Then, when the terminal determines that the Bluetooth device is not currently in the pairable mode according to the first pairing mode information, the terminal sends a pairing mode modification request to the Bluetooth device. Wherein, the pairing mode request is used for the Bluetooth device to switch to a pairable mode. Then, the Bluetooth device enters the pairable mode after receiving the pairing mode modification request. Finally, the terminal performs Bluetooth pairing with the Bluetooth device.
  • the Bluetooth device can indicate whether the Bluetooth device enters the pairable mode through a specific field in the Bluetooth low energy (bluetooth low energy, BLE) broadcast. Then, the terminal interacts with the Bluetooth device through the command on the BLE connection to let the Bluetooth device enter the pairable mode, which can realize the pairing of the terminal and the Bluetooth device without the user's operation on the Bluetooth device, which simplifies the Bluetooth pairing process , And reduce the difficulty for users to operate Bluetooth devices.
  • BLE Bluetooth low energy
  • the terminal may also be an electronic device, and the Bluetooth device may also be an accessory device.
  • the method further includes: when the terminal determines that the Bluetooth device has currently entered a pairable mode according to the first pairing mode information, the terminal performs Bluetooth pairing with the Bluetooth device. In this way, when the Bluetooth device enters the pairable mode, the terminal can directly pair with the Bluetooth device.
  • the method further includes: after the terminal receives the BLE broadcast packet broadcast by the Bluetooth device, the method further includes: first, the terminal displays the device options of the Bluetooth device. Then, the terminal receives the user's pairing operation for the Bluetooth device. Then, in response to the pairing operation, when the terminal determines that the Bluetooth device is not currently in the pairable mode according to the first pairing mode information, the terminal sends the pairing mode modification request to the Bluetooth device. In this way, the terminal can perform Bluetooth pairing with the Bluetooth device according to the needs of the user, thereby improving the user experience.
  • the method further includes: the terminal establishes a BLE connection with the Bluetooth device.
  • the terminal sends the pairing mode modification request to the Bluetooth device through the echo signaling of the logical link control and adaptation protocol L2CAP.
  • the method further includes: the Bluetooth device sends a pairing mode modification response to the terminal.
  • the pairing mode modification response includes the second pairing mode information of the Bluetooth device.
  • the Bluetooth device sends the pairing mode modification response to the terminal through the echo signaling of the L2CAP.
  • the Bluetooth device when the Bluetooth device enters the pairable mode, the Bluetooth device enters the inquiry scan state.
  • the Bluetooth device After the Bluetooth device receives the pairing mode modification request, the Bluetooth device outputs a first prompt, and the first prompt is used to prompt the user that the terminal requests pairing with the Bluetooth device.
  • the Bluetooth device receives a pairing confirmation operation from the user.
  • the Bluetooth device enters a pairable mode.
  • this application provides a Bluetooth system, which includes a terminal and a Bluetooth device; wherein, the Bluetooth device is used to broadcast a low-power Bluetooth BLE broadcast packet.
  • the BLE broadcast packet includes the first pairing mode information and the Bluetooth address of the Bluetooth device.
  • the terminal is used to receive the BLE broadcast packet broadcast by the Bluetooth device.
  • the terminal is further configured to send a pairing mode modification request to the Bluetooth device when it is determined according to the first pairing mode information that the Bluetooth device is not currently in the pairable mode.
  • the pairing mode request is used for the Bluetooth device to switch to the pairable mode.
  • the Bluetooth device is also used to enter the pairable mode after receiving the pairing mode modification request.
  • the terminal is also used to perform Bluetooth pairing with the Bluetooth device.
  • the Bluetooth device can indicate whether the Bluetooth device enters the pairable mode through a specific field in the Bluetooth low energy BLE broadcast. Then, the terminal interacts with the Bluetooth device through the command on the BLE connection to let the Bluetooth device enter the pairable mode, which can realize the pairing of the terminal and the Bluetooth device without the user's operation on the Bluetooth device, which simplifies the Bluetooth pairing process , And reduce the difficulty for users to operate Bluetooth devices.
  • the terminal is further configured to perform Bluetooth pairing with the Bluetooth device when it is determined that the Bluetooth device has currently entered a pairable mode according to the first pairing mode information. In this way, when the Bluetooth device enters the pairable mode, the terminal can directly pair with the Bluetooth device.
  • the terminal is further configured to: after receiving the BLE broadcast packet broadcast by the Bluetooth device, display the device options of the Bluetooth device.
  • the terminal is also used to receive the pairing operation of the user for the Bluetooth device.
  • the terminal is also configured to respond to the pairing operation, when the terminal determines that the Bluetooth device is not currently in the pairable mode according to the first pairing mode information, the terminal sends the pairing mode modification request to the Bluetooth device. In this way, the terminal can perform Bluetooth pairing with the Bluetooth device according to the needs of the user, thereby improving the user experience.
  • the terminal is also used to establish a BLE connection with the Bluetooth device.
  • the terminal is specifically configured to send the pairing mode modification request to the Bluetooth device through echo signaling of the logical link control and adaptation protocol L2CAP.
  • the Bluetooth device is also used to send a pairing mode modification response to the terminal after the Bluetooth device enters the pairable mode.
  • the pairing mode modification response includes the second pairing mode information of the Bluetooth device.
  • the terminal is specifically configured to perform pairing with the Bluetooth device when it is determined that the Bluetooth device has currently entered the pairable mode according to the second pairing mode information. In this way, after the Bluetooth device is switched to the pairing mode, it can notify the terminal that it has entered the pairable mode so as to complete the pairing as soon as possible.
  • the Bluetooth device is specifically configured to send the pairing mode modification response to the terminal through the echo signaling of the L2CAP.
  • the Bluetooth device when the Bluetooth device enters the pairable mode, the Bluetooth device enters the inquiry scan state.
  • this application provides a terminal, including: a Bluetooth chip, a memory, a touch screen, and a processor; the memory is coupled with the processor.
  • the Bluetooth chip supports the classic Bluetooth BR/EDR function and the low-power Bluetooth BLE function.
  • the Bluetooth chip is used to receive low-power Bluetooth BLE broadcast packets broadcast by Bluetooth devices.
  • the BLE broadcast packet includes the first pairing mode information and the Bluetooth address of the Bluetooth device.
  • the processor is configured to instruct the Bluetooth chip to send a pairing mode modification request to the Bluetooth device when it is determined that the Bluetooth device is not currently in the pairable mode according to the first pairing mode information.
  • the pairing mode request is used for the Bluetooth device to switch to a pairable mode.
  • the Bluetooth chip is also used to perform Bluetooth pairing with the Bluetooth device when the Bluetooth device enters the pairable mode.
  • the Bluetooth device can indicate whether the Bluetooth device enters the pairable mode through a specific field in the Bluetooth low energy BLE broadcast. Then, the terminal interacts with the Bluetooth device through the command on the BLE connection to let the Bluetooth device enter the pairable mode, which can realize the pairing of the terminal and the Bluetooth device without the user's operation on the Bluetooth device, which simplifies the Bluetooth pairing process , And reduce the difficulty for users to operate Bluetooth devices.
  • the processor is further configured to instruct the Bluetooth chip to perform Bluetooth pairing with the Bluetooth device when it is determined that the Bluetooth device has currently entered a pairable mode according to the first pairing mode information. In this way, when the Bluetooth device enters the pairable mode, the terminal can directly pair with the Bluetooth device.
  • the touch screen is configured to display the device options of the Bluetooth device after receiving the BLE broadcast packet broadcast by the Bluetooth device.
  • the touch screen is also used to receive the pairing operation of the user for the Bluetooth device.
  • the processor is specifically configured to: in response to the pairing operation, when it is determined that the Bluetooth device is not currently in the pairable mode according to the first pairing mode information, instruct the Bluetooth chip to send the pairing mode modification request to the Bluetooth device .
  • the terminal can perform Bluetooth pairing with the Bluetooth device according to the needs of the user to improve the user experience.
  • the Bluetooth chip is also used to establish a BLE connection with the Bluetooth device.
  • the Bluetooth chip is specifically used to send the pairing mode modification request to the Bluetooth device through the echo signaling of the logical link control and adaptation protocol L2CAP.
  • the Bluetooth chip is also used to receive a pairing mode modification response sent by the Bluetooth device after entering the pairable mode.
  • the pairing mode modification response includes the second pairing mode information of the Bluetooth device.
  • the processor is specifically configured to: when it is determined that the Bluetooth device has currently entered a pairable mode according to the second pairing mode information, instruct the Bluetooth chip to pair with the Bluetooth device. In this way, after the Bluetooth device is switched to the pairing mode, it can notify the terminal that it has entered the pairable mode so as to complete the pairing as soon as possible.
  • the Bluetooth chip is specifically used to send the pairing mode modification response to the terminal through the echo signaling of the L2CAP.
  • the Bluetooth device when the Bluetooth device enters the pairable mode, the Bluetooth device enters the inquiry scan state.
  • this application provides a Bluetooth device, which is characterized by a Bluetooth chip, a memory, and a processor; the memory is coupled to the processor; wherein the Bluetooth chip supports the classic Bluetooth BR/EDR function and low power Consumption of Bluetooth BLE function.
  • the Bluetooth chip is used to broadcast low-power Bluetooth BLE broadcast packets. Wherein, the BLE broadcast packet includes the first pairing mode information and the Bluetooth address of the Bluetooth device.
  • the Bluetooth chip is also used to receive a pairing mode modification request sent by the terminal. Wherein, the pairing mode request is used for the Bluetooth chip to switch to a pairable mode.
  • the Bluetooth chip is also used for Bluetooth pairing with the Bluetooth chip.
  • the Bluetooth device can indicate whether the Bluetooth device enters the pairable mode through a specific field in the Bluetooth low energy BLE broadcast. Then, the terminal interacts with the Bluetooth device through the command on the BLE connection to let the Bluetooth device enter the pairable mode, which can realize the pairing of the terminal and the Bluetooth device without the user's operation on the Bluetooth device, which simplifies the Bluetooth pairing process , And reduce the difficulty for users to operate Bluetooth devices.
  • the Bluetooth chip is also used to perform Bluetooth pairing with the terminal when the terminal determines that the Bluetooth device has currently entered the pairable mode according to the first pairing mode information.
  • the Bluetooth chip is also used to establish a BLE connection with the terminal before receiving the pairing mode request.
  • the Bluetooth chip is specifically used to: receive the pairing mode modification request sent by the terminal through the echo signaling of the L2CAP response.
  • the Bluetooth chip is also used to send a pairing mode modification response to the terminal.
  • the pairing mode modification response includes the second pairing mode information of the Bluetooth device.
  • the Bluetooth chip is specifically used to perform Bluetooth pairing with the terminal when the terminal determines that the Bluetooth device has currently entered the pairable mode according to the second pairing mode information.
  • the Bluetooth chip is specifically used to send the pairing mode modification response to the terminal through the echo signaling of the L2CAP.
  • the Bluetooth chip when the Bluetooth chip enters the pairable mode, the Bluetooth chip enters the inquiry scan state.
  • the present application provides a chip system, which is set in a terminal, and the chip system includes a Bluetooth chip and a processor.
  • the Bluetooth chip is used to receive low-power Bluetooth BLE broadcast packets broadcast by the Bluetooth device.
  • the BLE broadcast packet includes the first pairing mode information and the Bluetooth address of the Bluetooth device.
  • the processor is configured to instruct the Bluetooth chip to send a pairing mode modification request to the Bluetooth device when it is determined that the Bluetooth device is not currently in the pairable mode according to the first pairing mode information.
  • the pairing mode request is used for the Bluetooth device to switch to a pairable mode.
  • the Bluetooth chip is also used to perform Bluetooth pairing with the Bluetooth device when the Bluetooth device enters the pairable mode.
  • the Bluetooth device can indicate whether the Bluetooth device enters the pairable mode through a specific field in the Bluetooth low energy BLE broadcast. Then, the terminal interacts with the Bluetooth device through the command on the BLE connection to let the Bluetooth device enter the pairable mode, which can realize the pairing of the terminal and the Bluetooth device without the user's operation on the Bluetooth device, which simplifies the Bluetooth pairing process , And reduce the difficulty for users to operate Bluetooth devices.
  • the processor is further configured to instruct the Bluetooth chip to perform Bluetooth pairing with the Bluetooth device when it is determined that the Bluetooth device has currently entered a pairable mode according to the first pairing mode information.
  • the Bluetooth chip is also used to establish a BLE connection with the Bluetooth device.
  • the Bluetooth chip is specifically used to send the pairing mode modification request to the Bluetooth device through the echo signaling of the logical link control and adaptation protocol L2CAP.
  • the Bluetooth chip is also used to receive a pairing mode modification response sent by the Bluetooth device after entering the pairable mode.
  • the pairing mode modification response includes the second pairing mode information of the Bluetooth device.
  • the processor is specifically configured to: when it is determined that the Bluetooth device has currently entered a pairable mode according to the second pairing mode information, instruct the Bluetooth chip to pair with the Bluetooth device.
  • the Bluetooth chip is specifically used to send the pairing mode modification response to the terminal through the echo signaling of the L2CAP.
  • this application provides a chip system, which is set in a Bluetooth device, and the chip system includes: a Bluetooth chip and a processor.
  • the Bluetooth chip supports the classic Bluetooth BR/EDR function and the low-power Bluetooth BLE function.
  • the Bluetooth chip is used to broadcast low-power Bluetooth BLE broadcast packets.
  • the BLE broadcast packet includes the first pairing mode information and the Bluetooth address of the Bluetooth device.
  • the Bluetooth chip is also used to receive a pairing mode modification request sent by the terminal.
  • the pairing mode request is used for the Bluetooth chip to switch to a pairable mode.
  • the Bluetooth chip is also used for Bluetooth pairing with the Bluetooth chip.
  • the Bluetooth device can indicate whether the Bluetooth device enters the pairable mode through a specific field in the Bluetooth low energy BLE broadcast. Then, the terminal interacts with the Bluetooth device through the command on the BLE connection to let the Bluetooth device enter the pairable mode, which can realize the pairing of the terminal and the Bluetooth device without the user's operation on the Bluetooth device, which simplifies the Bluetooth pairing process , And reduce the difficulty for users to operate Bluetooth devices.
  • the Bluetooth chip is also used to perform Bluetooth pairing with the terminal when the terminal determines that the Bluetooth device has currently entered the pairable mode according to the first pairing mode information.
  • the Bluetooth chip is also used to establish a BLE connection with the terminal before receiving the pairing mode request.
  • the Bluetooth chip is specifically used to: receive the pairing mode modification request sent by the terminal through the echo signaling of the L2CAP response.
  • the Bluetooth chip is also used to send a pairing mode modification response to the terminal.
  • the pairing mode modification response includes the second pairing mode information of the Bluetooth device.
  • the Bluetooth chip is specifically used to perform Bluetooth pairing with the terminal when the terminal determines that the Bluetooth device has currently entered the pairable mode according to the second pairing mode information.
  • the Bluetooth chip is specifically used to send the pairing mode modification response to the terminal through the echo signaling of the L2CAP.
  • the Bluetooth chip when the Bluetooth chip enters the pairable mode, the Bluetooth chip enters the inquiry scan state.
  • Fig. 1 is a schematic structural diagram of an electronic device provided by an embodiment of the present application.
  • Fig. 2 is a schematic diagram of a Bluetooth protocol framework provided by an embodiment of the present application.
  • Fig. 3 is a schematic structural diagram of an accessory device provided by an embodiment of the present application.
  • Figure 4 is a set of GUIs provided by an embodiment of the present application.
  • Figure 5 is another set of GUIs provided by an embodiment of the present application.
  • Fig. 6 is another set of GUI provided by an embodiment of the present application.
  • Fig. 7 is another set of GUI provided by an embodiment of the present application.
  • FIG. 8 is a schematic flowchart when the Bluetooth headset provided by an embodiment of the present application discovers that it is connected to the mobile phone A for the first time by approaching.
  • FIG. 9 is a schematic flowchart of a method for performing Bluetooth pairing and connection between a mobile phone A and a Bluetooth headset according to an embodiment of the present application.
  • FIG. 10 is a schematic flowchart of a process of establishing a Bluetooth connection between a Bluetooth headset and a mobile phone B provided by an embodiment of the present application.
  • FIG. 11 is a schematic flowchart of interactive authentication between a Bluetooth headset and a mobile phone B according to an embodiment of the present application.
  • FIG. 12 is another schematic flowchart of interactive authentication between a Bluetooth headset and a mobile phone B according to an embodiment of the present application.
  • FIG. 13 is another schematic flowchart of interactive authentication between a Bluetooth headset and a mobile phone B according to an embodiment of the present application.
  • FIG. 14 is a schematic flowchart of a process of establishing a Bluetooth connection between a Bluetooth headset and a mobile phone C provided by an embodiment of the present application.
  • Figure 15 is another set of GUIs provided by an embodiment of the present application.
  • Figure 16 is a schematic diagram of a set of interfaces provided by an embodiment of the application.
  • FIG. 17 is a schematic diagram of another set of interfaces provided by an embodiment of the application.
  • FIG. 18 is a schematic flowchart of a Bluetooth pairing method provided by an embodiment of the application.
  • FIG. 19 is a schematic diagram of a BLE broadcast packet format provided by an embodiment of the application.
  • FIG. 20 is a schematic diagram of an L2CAP signaling format provided by an embodiment of this application.
  • FIG. 20 is a schematic diagram of another L2CAP signaling format provided by an embodiment of the application.
  • FIG. 21 is a schematic diagram of a system architecture provided by an embodiment of the application.
  • references described in this specification to "one embodiment” or “some embodiments”, etc. mean that one or more embodiments of the present application include a specific feature, structure, or characteristic described in conjunction with the embodiment. Therefore, the sentences “in one embodiment”, “in some embodiments”, “in some other embodiments”, “in some other embodiments”, etc. appearing in different places in this specification are not necessarily All refer to the same embodiment, but mean “one or more but not all embodiments” unless it is specifically emphasized otherwise.
  • the terms “including”, “including”, “having” and their variations all mean “including but not limited to”, unless otherwise specifically emphasized.
  • the electronic device may be a portable electronic device that also contains other functions such as a personal digital assistant and/or a music player function, such as a mobile phone, a tablet computer, and a wearable electronic device with wireless communication function (such as a smart watch) Wait.
  • portable electronic devices include, but are not limited to, carrying Or portable electronic devices with other operating systems.
  • the aforementioned portable electronic device may also be other portable electronic devices, such as a laptop computer (Laptop) and the like. It should also be understood that, in some other embodiments, the above-mentioned electronic device may not be a portable electronic device, but a desktop computer.
  • FIG. 1 shows a schematic structural diagram of an electronic device 100.
  • the electronic device 100 may include a processor 110, an external memory interface 120, an internal memory 121, a universal serial bus (USB) interface 130, a charging management module 140, a power management module 141, a battery 142, an antenna 1, and an antenna 2.
  • Mobile communication module 150 wireless communication module 160, audio module 170, speaker 170A, receiver 170B, microphone 170C, earphone interface 170D, sensor module 180, compass 190, motor 191, indicator 192, camera 193, display screen 194, and user Identification module (subscriber identification module, SIM) card interface 195, etc.
  • SIM subscriber identification module
  • the structure illustrated in the embodiment of the present application does not constitute a specific limitation on the electronic device 100.
  • the electronic device 100 may include more or fewer components than shown, or combine certain components, or split certain components, or arrange different components.
  • the illustrated components can be implemented in hardware, software, or a combination of software and hardware.
  • the processor 110 may include one or more processing units.
  • the processor 110 may include an application processor (AP), a modem processor, a graphics processing unit (GPU), and an image signal processor. (image signal processor, ISP), controller, video codec, digital signal processor (digital signal processor, DSP), baseband processor, and/or neural-network processing unit (NPU), etc.
  • different processing units may be independent components, or may be integrated in one or more processors.
  • the electronic device 101 may also include one or more processors 110.
  • the controller can generate operation control signals according to the instruction operation code and timing signals, and complete the control of fetching instructions and executing instructions.
  • a memory may also be provided in the processor 110 for storing instructions and data.
  • the memory in the processor 110 may be a cache memory.
  • the memory can store instructions or data that the processor 110 has just used or used cyclically. If the processor 110 needs to use the instruction or data again, it can be directly called from the memory. In this way, repeated accesses are avoided, the waiting time of the processor 110 is reduced, and the efficiency of the electronic device 101 in processing data or executing instructions is improved.
  • the processor 110 may include one or more interfaces.
  • the interface may include an inter-integrated circuit (I2C) interface, an inter-integrated circuit sound (I2S) interface, a pulse code modulation (PCM) interface, and a universal asynchronous transceiver (universal asynchronous transceiver) interface.
  • asynchronous receiver/transmitter, UART) interface mobile industry processor interface (MIPI), general-purpose input/output (GPIO) interface, SIM card interface and/or USB interface, etc.
  • the USB interface 130 is an interface that complies with the USB standard specification, and specifically may be a Mini USB interface, a Micro USB interface, a USB Type C interface, and the like.
  • the USB interface 130 can be used to connect a charger to charge the electronic device 101, and can also be used to transfer data between the electronic device 101 and peripheral devices.
  • the USB interface 130 can also be used to connect earphones and play audio through the earphones.
  • the interface connection relationship between the modules illustrated in the embodiment of the present application is merely a schematic description, and does not constitute a structural limitation of the electronic device 100.
  • the electronic device 100 may also adopt different interface connection modes in the foregoing embodiments, or a combination of multiple interface connection modes.
  • the charging management module 140 is used to receive charging input from the charger.
  • the charger can be a wireless charger or a wired charger.
  • the charging management module 140 may receive the charging input of the wired charger through the USB interface 130.
  • the charging management module 140 may receive the wireless charging input through the wireless charging coil of the electronic device 100. While the charging management module 140 charges the battery 142, it can also supply power to the electronic device through the power management module 141.
  • the power management module 141 is used to connect the battery 142, the charging management module 140 and the processor 110.
  • the power management module 141 receives input from the battery 142 and/or the charging management module 140, and supplies power to the processor 110, the internal memory 121, the external memory, the display screen 194, the camera 193, and the wireless communication module 160.
  • the power management module 141 can also be used to monitor parameters such as battery capacity, battery cycle times, and battery health status (leakage, impedance).
  • the power management module 141 may also be provided in the processor 110.
  • the power management module 141 and the charging management module 140 may also be provided in the same device.
  • the wireless communication function of the electronic device 100 can be implemented by the antenna 1, the antenna 2, the mobile communication module 150, the wireless communication module 160, the modem processor, and the baseband processor.
  • the antenna 1 and the antenna 2 are used to transmit and receive electromagnetic wave signals.
  • Each antenna in the electronic device 100 can be used to cover a single or multiple communication frequency bands. Different antennas can also be reused to improve antenna utilization.
  • Antenna 1 can be multiplexed as a diversity antenna of a wireless local area network.
  • the antenna can be used in combination with a tuning switch.
  • the mobile communication module 150 can provide a wireless communication solution including 2G/3G/4G/5G and the like applied to the electronic device 100.
  • the mobile communication module 150 may include at least one filter, switch, power amplifier, low noise amplifier (LNA), etc.
  • the mobile communication module 150 can receive electromagnetic waves by the antenna 1, and perform processing such as filtering, amplifying and transmitting the received electromagnetic waves to the modem processor for demodulation.
  • the mobile communication module 150 can also amplify the signal modulated by the modem processor, and convert it into electromagnetic wave radiation via the antenna 1.
  • at least part of the functional modules of the mobile communication module 150 may be provided in the processor 110.
  • at least part of the functional modules of the mobile communication module 150 and at least part of the modules of the processor 110 may be provided in the same device.
  • the wireless communication module 160 can provide applications on the electronic device 100 including wireless local area networks (WLAN) (such as wireless fidelity (Wi-Fi) networks), bluetooth (BT), and global navigation satellites.
  • WLAN wireless local area networks
  • BT wireless fidelity
  • GNSS global navigation satellite system
  • FM frequency modulation
  • NFC near field communication technology
  • infrared technology infrared, IR
  • the wireless communication module 160 may be one or more devices integrating at least one communication processing module.
  • the wireless communication module 160 receives electromagnetic waves via the antenna 2, frequency modulates and filters the electromagnetic wave signals, and sends the processed signals to the processor 110.
  • the wireless communication module 160 may also receive the signal to be sent from the processor 110, perform frequency modulation, amplify it, and convert it into electromagnetic waves to radiate through the antenna 2.
  • the electronic device 100 implements a display function through a GPU, a display screen 194, an application processor, and the like.
  • the GPU is an image processing microprocessor, which is connected to the display screen 194 and the application processor.
  • the GPU is used to perform mathematical and geometric calculations for graphics rendering.
  • the processor 110 may include one or more GPUs, which execute program instructions to generate or change display information.
  • the display screen 194 is used to display images, videos, and the like.
  • the display screen 194 includes a display panel.
  • the display panel can adopt liquid crystal display (LCD), organic light-emitting diode (OLED), active matrix organic light-emitting diode or active-matrix organic light-emitting diode (active-matrix organic light-emitting diode).
  • LCD liquid crystal display
  • OLED organic light-emitting diode
  • active-matrix organic light-emitting diode active-matrix organic light-emitting diode
  • AMOLED flexible light-emitting diode
  • FLED flexible light-emitting diode
  • mini light-emitting diode miniled
  • MicroLed Micro-oLed
  • quantum dot light emitting diode QLED
  • the electronic device 100 may include one or more display screens 194.
  • the display screen 194 in FIG. 1 may be bent.
  • the above-mentioned display screen 194 can be bent means that the display screen can be bent to any angle at any position, and can be maintained at that angle.
  • the display screen 194 can be folded in half from the center. You can also fold up and down from the middle.
  • the display screen 194 of the electronic device 100 may be a flexible screen.
  • the flexible screen has attracted much attention due to its unique characteristics and great potential.
  • flexible screens have the characteristics of strong flexibility and bendability, and can provide users with new interactive methods based on bendable characteristics, which can meet users' more needs for electronic devices.
  • the foldable display screen on the electronic device can be switched between a small screen in a folded configuration and a large screen in an unfolded configuration at any time. Therefore, users use the split screen function on electronic devices equipped with foldable display screens more and more frequently.
  • the electronic device 100 can realize a shooting function through an ISP, a camera 193, a video codec, a GPU, a display screen 194, and an application processor.
  • the ISP is used to process the data fed back by the camera 193. For example, when taking a picture, the shutter is opened, the light is transmitted to the photosensitive element of the camera through the lens, the light signal is converted into an electrical signal, and the photosensitive element of the camera transmits the electrical signal to the ISP for processing and is converted into an image visible to the naked eye.
  • ISP can also optimize the image noise, brightness, and skin color. ISP can also optimize the exposure, color temperature and other parameters of the shooting scene.
  • the ISP may be provided in the camera 193.
  • the camera 193 is used to capture still images or videos.
  • the object generates an optical image through the lens and is projected to the photosensitive element.
  • the photosensitive element may be a charge coupled device (CCD) or a complementary metal-oxide-semiconductor (CMOS) phototransistor.
  • CMOS complementary metal-oxide-semiconductor
  • the photosensitive element converts the optical signal into an electrical signal, and then transfers the electrical signal to the ISP to convert it into a digital image signal.
  • ISP outputs digital image signals to DSP for processing.
  • DSP converts digital image signals into standard RGB, YUV and other formats of image signals.
  • the electronic device 100 may include one or more cameras 193.
  • Digital signal processors are used to process digital signals. In addition to digital image signals, they can also process other digital signals. For example, when the electronic device 100 selects a frequency point, the digital signal processor is used to perform Fourier transform on the energy of the frequency point.
  • Video codecs are used to compress or decompress digital video.
  • the electronic device 100 may support one or more video codecs. In this way, the electronic device 100 can play or record videos in multiple encoding formats, such as: moving picture experts group (MPEG) 1, MPEG2, MPEG3, MPEG4, and so on.
  • MPEG moving picture experts group
  • MPEG2 MPEG2, MPEG3, MPEG4, and so on.
  • NPU is a neural-network (NN) computing processor.
  • NN neural-network
  • applications such as intelligent cognition of the electronic device 100 can be realized, such as image recognition, face recognition, voice recognition, text understanding, and so on.
  • the external memory interface 120 may be used to connect an external memory card, such as a Micro SD card, to expand the storage capacity of the electronic device 100.
  • the external memory card communicates with the processor 110 through the external memory interface 120 to realize the data storage function. For example, save music, video and other files in an external memory card.
  • the internal memory 121 may be used to store one or more computer programs, and the one or more computer programs include instructions.
  • the processor 110 can run the above-mentioned instructions stored in the internal memory 121 to enable the electronic device 101 to execute the Bluetooth pairing and connection methods provided in some embodiments of the present application, as well as various applications and data processing.
  • the internal memory 121 may include a storage program area and a storage data area. Among them, the storage program area can store the operating system; the storage program area can also store one or more applications (such as photo galleries, contacts, etc.) and so on.
  • the data storage area can store data (such as photos, contacts, etc.) created during the use of the electronic device 101.
  • the internal memory 121 may include a high-speed random access memory, and may also include a non-volatile memory, such as one or more disk storage components, flash memory components, universal flash storage (UFS), and the like.
  • the processor 110 may execute the instructions stored in the internal memory 121 and/or the instructions stored in the memory provided in the processor 110 to cause the electronic device 101 to execute the instructions provided in the embodiments of the present application.
  • the electronic device 100 may implement audio functions through the audio module 170, the speaker 170A, the receiver 170B, the microphone 170C, the earphone interface 170D, and an application processor. For example, music playback, recording, etc.
  • the sensor module 180 may include a pressure sensor 180A, a gyroscope sensor 180B, an air pressure sensor 180C, a magnetic sensor 180D, an acceleration sensor 180E, a distance sensor 180F, a proximity light sensor 180G, a fingerprint sensor 180H, a temperature sensor 180J, a touch sensor 180K, and an ambient light sensor 180L, bone conduction sensor 180M, etc.
  • the pressure sensor 180A is used to sense a pressure signal, and can convert the pressure signal into an electrical signal.
  • the pressure sensor 180A may be provided on the display screen 194.
  • the capacitive pressure sensor may include at least two parallel plates with conductive material. When a force is applied to the pressure sensor 180A, the capacitance between the electrodes changes.
  • the electronic device 100 determines the intensity of the pressure according to the change in capacitance.
  • the electronic device 100 detects the intensity of the touch operation according to the pressure sensor 180A.
  • the electronic device 100 may also calculate the touched position according to the detection signal of the pressure sensor 180A.
  • touch operations that act on the same touch position but have different touch operation strengths may correspond to different operation instructions. For example: when a touch operation whose intensity is less than the first pressure threshold is applied to the short message application icon, the command to view the short message is executed. When a touch operation with a touch operation intensity greater than or equal to the first pressure threshold acts on the short message application icon, an instruction to create a new short message is executed.
  • the gyro sensor 180B may be used to determine the movement posture of the electronic device 100.
  • the angular velocity of the electronic device 100 around three axes ie, X, Y, and Z axes
  • the gyro sensor 180B can be used for image stabilization.
  • the gyro sensor 180B detects the shake angle of the electronic device 100, calculates the distance that the lens module needs to compensate according to the angle, and allows the lens to counteract the shake of the electronic device 100 through reverse movement to achieve anti-shake.
  • the gyro sensor 180B can also be used for navigation and somatosensory game scenes.
  • the acceleration sensor 180E can detect the magnitude of the acceleration of the electronic device 100 in various directions (generally three axes). When the electronic device 100 is stationary, the magnitude and direction of gravity can be detected. It can also be used to identify the posture of electronic devices, and apply to applications such as horizontal and vertical screen switching, pedometers and so on.
  • the ambient light sensor 180L is used to sense the brightness of the ambient light.
  • the electronic device 100 can adaptively adjust the brightness of the display screen 194 according to the perceived brightness of the ambient light.
  • the ambient light sensor 180L can also be used to automatically adjust the white balance when taking pictures.
  • the ambient light sensor 180L can also cooperate with the proximity light sensor 180G to detect whether the electronic device 100 is in the pocket to prevent accidental touch.
  • the fingerprint sensor 180H is used to collect fingerprints.
  • the electronic device 100 can use the collected fingerprint characteristics to realize fingerprint unlocking, access application locks, fingerprint photographs, fingerprint answering calls, and so on.
  • the temperature sensor 180J is used to detect temperature.
  • the electronic device 100 uses the temperature detected by the temperature sensor 180J to execute a temperature processing strategy. For example, when the temperature reported by the temperature sensor 180J exceeds a threshold value, the electronic device 100 reduces the performance of the processor located near the temperature sensor 180J, so as to reduce power consumption and implement thermal protection.
  • the electronic device 100 when the temperature is lower than another threshold, the electronic device 100 heats the battery 142 to avoid abnormal shutdown of the electronic device 100 due to low temperature.
  • the electronic device 100 boosts the output voltage of the battery 142 to avoid abnormal shutdown caused by low temperature.
  • Touch sensor 180K also called “touch panel”.
  • the touch sensor 180K may be disposed on the display screen 194, and the touch screen is composed of the touch sensor 180K and the display screen 194, which is also called a “touch screen”.
  • the touch sensor 180K is used to detect touch operations acting on or near it.
  • the touch sensor can pass the detected touch operation to the application processor to determine the type of touch event.
  • the visual output related to the touch operation can be provided through the display screen 194.
  • the touch sensor 180K may also be disposed on the surface of the electronic device 100, which is different from the position of the display screen 194.
  • an embodiment of the present application provides a Bluetooth protocol framework, including but not limited to a host protocol stack, a host controller interface (HCI), and a controller.
  • a Bluetooth protocol framework including but not limited to a host protocol stack, a host controller interface (HCI), and a controller.
  • the Host protocol stack defines multiple applications (profiles) and core protocols (protocol) in the Bluetooth framework, each profile defines its own corresponding message format and application rules, and the profile is a Bluetooth service (application).
  • the Bluetooth protocol has formulated specifications for various possible and universal application scenarios, such as the Bluetooth audio distribution profile (advanced audio distribution profile, A2DP), Bluetooth free Proposal agreement (hands-free profile, HFP) and so on.
  • Core protocols include but are not limited to Bluetooth's basic service discovery protocol (service discovery protocol, SDP), logical link control and adaptation protocol (logical link control and adaptation protocol, L2CAP), etc.
  • SDP service discovery protocol
  • L2CAP logical link control and adaptation protocol
  • the core protocol is indispensable in the Bluetooth protocol stack.
  • HCI provides a unified interface for the upper layer protocol to enter the link manager and a unified way to enter the baseband.
  • SIG Bluetooth Special Interest Group
  • the Bluetooth Special Interest Group (SIG) specifies four physical bus methods for connecting with hardware, namely, four HCI transmission layers: USB, RS232, UART and PC card.
  • the controller defines the underlying hardware, including radio frequency (RF), baseband (BB), and link management (LM).
  • RF radio frequency
  • BB baseband
  • LM link management
  • the RF layer uses the 2.4GHz unlicensed ISM band microwave to achieve data bit stream filtering and transmission. It mainly defines the conditions that the Bluetooth transceiver needs to meet in this frequency band.
  • the baseband is responsible for frequency hopping and the transmission of Bluetooth data and information frames.
  • Link management is responsible for connecting, establishing and dismantling links and performing security control.
  • the link manager (LM) layer is the link management layer protocol of the Bluetooth protocol stack, which is responsible for translating upper-layer HCI commands into operations acceptable to the baseband, establishing asynchronous connection-oriented link (ACL) and synchronous links Road (synchronous connection-oriented/extended, SCO) and working modes that enable accessory equipment to enter an energy-saving state, etc.
  • the link control (LC) layer is responsible for responding to upper-layer LM commands (such as executing LM commands for establishing the transmission link of the data packet and maintaining the link) during the transmission of a batch of data packets.
  • Part of the content of the method described in the embodiment of the present application that is implemented by the wireless communication module 160 of the electronic device 100 shown in FIG. 1 may be specifically executed by a Bluetooth module or a Bluetooth chip.
  • FIG. 3 exemplarily shows a schematic structural diagram of an accessory device 200 provided in an embodiment of the present application.
  • the accessory device 200 shown in FIG. 3 is only an example, and the accessory device 200 may have more or fewer components than those shown in FIG. 3, two or more components may be combined, or There are different component configurations.
  • the various components shown in the figure can be implemented in hardware, software, or a combination of hardware and software including one or more signal processing and/or application specific integrated circuits,
  • the accessory device 200 may include: a processor 201, a memory 202, a Bluetooth communication module 203, an antenna 204, a power switch 205, a USB communication processing module 206, and an audio module 207. among them:
  • the processor 201 can be used to read and execute computer-readable instructions.
  • the processor 201 may mainly include a controller, an arithmetic unit, and a register.
  • the controller is mainly responsible for the instruction decoding, and sends out control signals for the operation corresponding to the instruction.
  • the arithmetic unit is mainly responsible for saving the register operands and intermediate operation results temporarily stored during the execution of instructions.
  • the hardware architecture of the processor 201 may be an application specific integrated circuit (ASIC) architecture, MIPS architecture, ARM architecture, or NP architecture, and so on.
  • ASIC application specific integrated circuit
  • the processor 201 may be used to parse the signal received by the Bluetooth communication processing module 203, such as a pairing mode modification request sent by the electronic device 100, and so on.
  • the processor 201 may be configured to perform corresponding processing operations according to the analysis result, such as generating a pairing mode modification response, and so on.
  • the memory 202 is coupled with the processor 201, and is used to store various software programs and/or multiple sets of instructions.
  • the memory 202 may include a high-speed random access memory, and may also include a non-volatile memory, such as one or more magnetic disk storage devices, flash memory devices, or other non-volatile solid-state storage devices.
  • the memory 202 may store an operating system, such as embedded operating systems such as uCOS, VxWorks, and RTLinux.
  • the memory 202 may also store a communication program, which may be used to communicate with the electronic device 100, one or more servers, or other devices.
  • the Bluetooth communication module 203 may include a classic Bluetooth (BT) module and a Bluetooth low energy (Bluetooth low energy, BLE) module,
  • the Bluetooth communication module 203 can monitor signals emitted by other devices (such as the electronic device 100), such as detection requests, scan signals, etc., and can send response signals, scan responses, etc., so that other devices (such as The electronic device 100) can discover the accessory device 200, and go to other devices (such as the electronic device 100) to establish a wireless communication connection, and communicate with the other devices (such as the electronic device 100) via Bluetooth.
  • other devices such as the electronic device 100
  • the Bluetooth communication module 203 can monitor signals emitted by other devices (such as the electronic device 100), such as detection requests, scan signals, etc., and can send response signals, scan responses, etc., so that other devices (such as The electronic device 100) can discover the accessory device 200, and go to other devices (such as the electronic device 100) to establish a wireless communication connection, and communicate with the other devices (such as the electronic device 100) via Bluetooth.
  • the Bluetooth communication module 203 can also transmit signals, such as broadcasting BLE signals, so that other devices (such as the electronic device 100) can discover the accessory device 200 and establish a wireless communication connection with other devices (such as the electronic device 100) , Communicate with other devices (such as the electronic device 100) via Bluetooth.
  • signals such as broadcasting BLE signals
  • the wireless communication function of the accessory device 200 can be realized by the antenna 204, the Bluetooth communication module 203, the modem processor, and the like.
  • the antenna 204 can be used to transmit and receive electromagnetic wave signals.
  • Each antenna in the accessory device 200 can be used to cover a single or multiple communication frequency bands.
  • the power switch 205 can be used to control the power supply to the accessory device 200 from the power source.
  • the USB communication processing module 206 can be used to communicate with other devices through a USB interface (not shown).
  • the audio module 26 can be used to output audio signals through an audio output interface, so that the accessory device 200 can support audio playback.
  • the audio module can also be used to receive audio data through the audio input interface.
  • the accessory device 200 may be a media playback device such as a Bluetooth headset.
  • the accessory device 200 may further include a display screen (not shown), where the display screen can be used to display images, prompt information, and the like.
  • the display can adopt LCD display, OLED display, AMOLED display, FLED display, QLED display and so on.
  • the accessory device 200 may also include a serial interface such as an RS-232 interface.
  • the serial interface can be connected to other devices, such as audio amplifiers such as speakers, so that the accessory device 200 and the audio amplifiers can cooperate to play audio and video.
  • the structure illustrated in FIG. 3 does not constitute a specific limitation on the accessory device 200.
  • the accessory device 200 may include more or fewer components than shown, or combine certain components, or split certain components, or arrange different components.
  • the illustrated components can be implemented in hardware, software, or a combination of software and hardware.
  • the Bluetooth protocol framework used by the accessory device can be referred to as shown in FIG. 2 above, which will not be repeated here.
  • the following embodiments of the present application will take the mobile phone with the structure shown in FIG. 1 and FIG. 2 and the accessory device shown in FIG. 3 as a Bluetooth headset as an example. The method is elaborated in detail.
  • Fig. 4 shows a set of graphical user interfaces (GUI) provided by an embodiment of the present application.
  • GUI graphical user interfaces
  • mobile phone A is in a bright screen state and displays the mobile phone desktop.
  • the mobile desktop includes applications (applications, APPs) such as Alipay applications, task card stores, Weibo, photo albums, WeChat, card packages, settings, and themes.
  • applications applications, APPs
  • Alipay applications such as Alipay applications, task card stores, Weibo, photo albums, WeChat, card packages, settings, and themes.
  • the Bluetooth headset is now in the headset box.
  • the Bluetooth headset when the Bluetooth headset detects that the user opens the headset box, the Bluetooth headset can send broadcast messages to surrounding devices, and mobile phone A will automatically pop up a reminder box 401 after receiving the broadcast message , The device name of the Bluetooth headset can be displayed in the reminder box 401.
  • the mobile phone A detects that the user clicks on the control 402
  • the mobile phone A can establish a Bluetooth connection with the Bluetooth headset, and display as shown in Figure 4 (c) GUI.
  • the mobile phone A after the mobile phone A detects that the user clicks on the control 402, it can automatically pop up a reminder box 403, where the reminder box 403 can prompt the user "has been successfully connected to the Bluetooth headset" and display the Bluetooth headset and headset Power information of the box.
  • the mobile phone A detects that the user clicks on the control 404, the mobile phone A can learn that the user wants to set a password for the Bluetooth headset, and the mobile phone A can display the GUI as shown in (d) in FIG. 4.
  • the mobile phone A after the mobile phone A detects that the user clicks on the control 404, it can automatically pop up a reminder box 405, where the reminder box 405 can remind the user "please enter the 4-digit encryption password".
  • mobile phone A detects that the user clicks on the control 406, mobile phone A can save the 4-digit encryption password "1234" set by the user for the Bluetooth headset, and mobile phone A can send the password to the Bluetooth headset.
  • the aforementioned encryption password may be a 4-digit number or a combination of numbers and letters.
  • mobile phone A may also prompt the user to enter a 6-digit encryption password.
  • the 6-digit encryption password may be a pure number or a combination of numbers and letters.
  • the authentication information added by the mobile phone A to the accessory device is not limited to a password, and may also be other authentication information.
  • mobile phone A can add fingerprint authentication information, face recognition authentication information, etc. to the accessory device, which is not limited in the embodiment of the present application.
  • the mobile phone B can automatically pop up a reminder box 407.
  • the reminder box 407 may prompt the user "a encryption device (Bluetooth headset) is detected, if a connection needs to be established, please enter the encryption password" and the device type and device name of the Bluetooth headset. Among them, prompting the user device type and device name can facilitate the user to identify the Bluetooth device.
  • mobile phone B when mobile phone B detects that the user has entered an encryption password and detects that the user clicks on the control 408, mobile phone B can perform authentication interaction with the Bluetooth headset according to the encryption password input by the user. After the authentication interaction is passed, mobile phone B can establish a Bluetooth connection with the Bluetooth headset.
  • mobile phone A can encrypt the Bluetooth headset.
  • new mobile phone B needs to establish a Bluetooth connection with the Bluetooth headset, the user can directly enter the encryption password on mobile phone B to connect, avoiding the need for the user to press the headset.
  • the function keys on the box enable the Bluetooth headset to enter the pairing state before establishing a Bluetooth connection with the mobile phone B, which helps to avoid the cumbersome operation of the user when pairing the Bluetooth headset with a new device and enhance the user experience.
  • After encrypting the device it can prevent malicious use by illegal users.
  • the new device in the embodiment of the present application may refer to a device that has not established a Bluetooth connection with a Bluetooth headset before.
  • the mobile phone may not remind the user to set an encryption password for the Bluetooth headset.
  • the user can set the encryption password in Figure 7 (b)
  • the setting interface of the Bluetooth headset shown is to set a password for the Bluetooth headset.
  • (c) in Figure 7 can display functional options such as "add password” and "close password”.
  • the mobile phone can provide the user with an interface to set the encryption password, so that the user can encrypt the Bluetooth headset.
  • Fig. 5 shows another set of graph GUI provided by an embodiment of the present application.
  • the mobile phone B when the mobile phone detects that the user has clicked on the control 408, the mobile phone B can also automatically pop up a reminder box 501.
  • the reminder box 501 can prompt the user "whether the encryption password needs to be changed".
  • the mobile phone B detects that the user clicks on the control 502
  • the mobile phone B determines that the user wants to modify the encryption password of the mobile phone A, and displays the GUI as shown in (b) in FIG. 5.
  • a reminder box 503 can automatically pop up.
  • the reminder box 503 can prompt the user "please enter a 4-digit encryption password”.
  • mobile phone B detects that the user has entered the new encryption password "4321" and detects that the user has clicked on the control 504, it can send the new encryption password to the Bluetooth headset.
  • the electronic device can be connected to the Bluetooth headset after detecting that the user has entered the new encryption password "4321". Further, the electronic device may also prompt the user whether to modify the encryption password.
  • the new device when the Bluetooth headset is connected to a new device, if the new device is successfully paired with the Bluetooth headset, the new device can continue to remind the user whether to modify the encryption password, which helps to ensure that the Bluetooth headset is connected to the new device. Privacy between devices.
  • Fig. 6 shows another set of graph GUI provided by an embodiment of the present application.
  • the GUI is a mobile phone desktop.
  • the mobile phone desktop includes icons of multiple application programs, and the icons of the multiple application programs include a set icon 601.
  • the mobile phone detects the user's operation of clicking the icon 601 on the desktop, it can start to set the mobile phone related functions, and display the GUI as shown in (b) in FIG. 6.
  • the GUI includes multiple functional options.
  • the multiple functional options include wireless and network, device connection, desktop, wallpaper, and sound.
  • the user can set Bluetooth, NFC, and mobile phone screen projection through the device connection function.
  • the mobile phone After the mobile phone detects the operation of clicking the device connection function 602 with the user, the mobile phone can enter the device connection setting interface and display the GUI as shown in (c) in FIG. 6.
  • the GUI shown in (c) in FIG. 6, which is a device connection setting interface of a mobile phone.
  • the GUI includes multiple function options for device connection, and the multiple function options include device connection options such as Bluetooth, NFC, Huawei beam, Huawei share, and mobile phone screen projection.
  • the mobile phone detects the operation of the user to open the control 603, the mobile phone can open the Bluetooth-enabled device interface and display the GUI as shown in (d) in FIG. 6.
  • the setting interface includes functions such as the Bluetooth function opening control 604, and the device name "Huawei P30".
  • the mobile phone detects that the user clicks on the control 604, the mobile phone can turn on the Bluetooth function, and the display shown in (e) in FIG. 6 can be displayed.
  • the setting interface can display paired devices and available devices.
  • the pairable devices can be Bluetooth devices that the mobile phone has previously connected to, and the available devices can be Bluetooth devices searched by the mobile phone.
  • the Bluetooth devices searched by the mobile phone can be displayed in the available devices in the setting interface, including "Bluetooth headset" 605.
  • the mobile phone detects that the user clicks on the "Bluetooth headset” 605, the mobile phone can establish a Bluetooth connection with the Bluetooth headset and display the GUI as shown in (g) in FIG. 6.
  • the paired devices can display that the Bluetooth device with the device name "Bluetooth headset" and the mobile phone are connected, and the GUI shown in (h) in Figure 6 is automatically displayed.
  • the mobile phone can automatically pop up a reminder box 606.
  • the reminder box 606 can prompt the user "Do you need to set a password for the Bluetooth headset".
  • the mobile phone detects that the user clicks on the control 607, the mobile phone can learn that the user wants to set a password for the Bluetooth headset, and it can display as shown in Figure 6 ( i) GUI shown.
  • the reminder box 606 can be used to remind the user to set a password for the Bluetooth headset.
  • the password setting can also be performed on the setting interface of the Bluetooth headset.
  • the mobile phone can remind the user to enter the encryption password of the Bluetooth headset and remind the user to confirm the encryption password again.
  • the password setting interface includes a reminder window 608.
  • the reminder window 608 can prompt the user "please enter a 4-digit encryption password".
  • the mobile phone detects that the user has entered a 4-digit encryption password, and the mobile phone detects that the user clicks on the control 609, the mobile phone completes the password setting for the Bluetooth headset.
  • the mobile phone can send the set password to the Bluetooth headset.
  • the Bluetooth headset when the Bluetooth headset is connected to a new device, interactive authentication is performed between the new device and the Bluetooth headset. For example, a new device can prompt the user to enter an encryption password. After the certification is passed, the new device can establish a Bluetooth connection with the Bluetooth headset.
  • the user can also change the password of the Bluetooth headset in the setting interface of the Bluetooth function.
  • Fig. 7 shows another set of graph GUI provided by an embodiment of the present application.
  • the mobile phone When the mobile phone detects that the user clicks on the control 701, the mobile phone can enter the setting interface of the Bluetooth headset, and can display the GUI as shown in (b) in FIG. 7.
  • the setting interface includes function options such as call audio, media audio, sharing contacts, and setting passwords.
  • the mobile phone detects that the user has clicked the operation of the control 702 corresponding to the password setting, the mobile phone can set a password for the Bluetooth headset, and can display the GUI as shown in (c) in FIG. 7.
  • FIG. 7 is an interface for setting a password.
  • This interface includes two functional options: change the password and close the password.
  • the mobile phone detects that the user has clicked the operation of the control 703 corresponding to the password change, the mobile phone can enter the password change interface and can display the GUI as shown in (d) in FIG. 7.
  • the mobile phone when the mobile phone detects that the user clicks to close the password, the mobile phone can cancel the encryption of the Bluetooth headset. At this point, the mobile phone can inform the Bluetooth headset that the encryption password has been cancelled. Then when the new device is connected to the Bluetooth headset, there is no need to enter the encryption password.
  • FIG. 7 is an interface for inputting the old device password.
  • the user can enter the previously set encryption password (for example, "1234") on this interface.
  • the mobile phone detects that the user has entered the old encryption password and the user clicks on the control 704, the mobile phone can determine that the user has entered the old password. If the old password is successfully entered, the mobile phone can display (e ) As shown in the GUI.
  • FIG. 7 is an interface for setting a new Bluetooth device password.
  • the user can enter a new encryption password (for example, "4321") on this interface.
  • the mobile phone detects that the user has entered the new encryption password and the user has clicked on the control 705
  • the mobile phone determines that the user has entered the updated encryption password for the first time.
  • the mobile phone can continue to prompt the user to confirm the updated encryption password.
  • the GUI shown in (f) in Fig. 7 can be displayed.
  • the mobile phone may prompt the user to select the type of password to be set, such as a 4-digit password, a 6-digit password, and so on.
  • FIG. 7 is another interface for setting a new Bluetooth device password.
  • the user can confirm the new password on this interface (for example, enter "4321" again).
  • the mobile phone detects that the user has successfully entered the new encryption password again and detects that the user clicks on the control 706, the mobile phone has successfully set the new password for the Bluetooth device, and the mobile phone can send the new password of the Bluetooth device to the Bluetooth device. headset.
  • a reminder box may be displayed on the new device to remind the user to enter the encryption password (for example, "4321").
  • the new device detects that the user has entered the encryption password and detects After the user confirms the operation, the new device can establish a Bluetooth connection with the Bluetooth headset.
  • the encryption password of the Bluetooth headset can also be modified in the new device, and the modification method can refer to the GUI in FIG. 5 or FIG. 7. For the sake of brevity, it will not be repeated here.
  • FIG. 8 shows a schematic flowchart when the Bluetooth headset provided by an embodiment of the present application is found to be connected to the mobile phone A for the first time by approaching. As shown in Figure 8, the process includes:
  • S801 After the Bluetooth headset is opened, it sends a BLE broadcast message to surrounding devices, carrying its own MAC address and identity.
  • the identification may include the device type and device name of the Bluetooth headset.
  • mobile phone A can display the device name of the Bluetooth headset after receiving it.
  • the device name of the Bluetooth headset may be displayed in the reminder box 401.
  • S803 The mobile phone A detects the operation of connecting with the Bluetooth headset.
  • the mobile phone A In response to the operation, the mobile phone A initiates a page (page) for the MAC address of the Bluetooth headset, and at this time the Bluetooth headset is page scan.
  • the mobile phone A and the Bluetooth headset establish a standard Bluetooth pairing process.
  • the mobile phone A may prompt the user to set the password of the Bluetooth headset.
  • the mobile phone A may display a reminder box 403, where the reminder box 403 may prompt the user "whether a password needs to be set for the Bluetooth headset".
  • the Bluetooth headset may also send the power information of the Bluetooth headset and the power information of the headset box to the mobile phone A.
  • the mobile phone A can also display the power information of the Bluetooth headset and the headset box.
  • the BLE broadcast message in S801 may include specific bytes, 1 bit indicates whether the headset has been encrypted, and 1 bit indicates whether the headset can be encrypted.
  • 01 means that the headset is not encrypted, but can be encrypted, then the mobile phone can display a reminder box as shown in (c) in Figure 4 at this time.
  • 00 means that the headset is not encrypted and cannot be encrypted, so the mobile phone may not display the reminder box as shown in (c) in Figure 4 at this time. There is no S806-S808 process.
  • the Bluetooth headset when the Bluetooth headset is paired for the first time, after detecting the user's operation of opening the headset box, the Bluetooth headset can be in a pairable state, or in an inquiry scan state, and other devices can discover the Bluetooth headset.
  • FIG. 9 shows a schematic flowchart of a method 900 for performing a Bluetooth pairing connection between a mobile phone A and a Bluetooth headset according to an embodiment of the present application. As shown in FIG. 9, the method 900 includes:
  • S901 The Bluetooth headset detects the user's operation to open the headset box.
  • the first link is a BR/EDR link.
  • S904 Mobile phone A detects that the user has turned on the Bluetooth function.
  • S905 Mobile phone A sends an inquiry message to surrounding devices.
  • the Bluetooth headset After receiving the inquiry message sent by mobile phone A, the Bluetooth headset sends an FHS packet to the mobile phone, where the FHS packet includes the MAC address of the Bluetooth headset.
  • the mobile phone A sends request information to the Bluetooth headset for the MAC address in the FHS packet, and the request information is used to request the device name of the Bluetooth headset.
  • the main ear In response to the request information, the main ear sends the device name of the Bluetooth headset to the mobile phone A.
  • S909 Mobile phone A displays the device name of the Bluetooth headset in the available devices in the Bluetooth device search interface.
  • the device name of the Bluetooth headset may be "Bluetooth headset”.
  • S910 Mobile phone A detects that the user clicks on the "Bluetooth headset”.
  • the mobile phone A in response to the user's operation of clicking the "Bluetooth headset", the mobile phone A initiates a page message for the MAC address of the Bluetooth headset.
  • the main ear is in a page scan (page scan) state, and after receiving the page message sent by the mobile phone, the mobile phone and the Bluetooth headset perform a standard Bluetooth pairing process.
  • S913 Data transmission is performed between the mobile phone and the Bluetooth headset.
  • an HFP connection can be made between the mobile phone and the main ear.
  • an A2DP connection can be made between the mobile phone and the main ear.
  • the mobile phone A may prompt the user to set the password of the Bluetooth headset.
  • the mobile phone A prompts the user to set the password of the Bluetooth headset as an example for description. It can also be that mobile phone A adds other authentication information to the Bluetooth headset. For example, mobile phone A adds fingerprints and face recognition to the Bluetooth headset. And so on authentication information.
  • the type of authentication information is not limited in the embodiment of this application.
  • the mobile phone A may display a reminder box 403, where the reminder box 403 may prompt the user "whether a password needs to be set for the Bluetooth headset".
  • the Bluetooth headset can establish a Bluetooth connection with the mobile phone A, and the Bluetooth headset sends instruction information to the mobile phone.
  • the instruction information can carry specific bytes. For example, 1 bit indicates that the Bluetooth headset can be encrypted. Indicates that the Bluetooth headset has not been encrypted.
  • the mobile phone can prompt the user to set the password of the Bluetooth headset.
  • the mobile phone After the mobile phone receives the instruction information, it can prompt the user to make encryption settings in the pop-up reminder box 403; it can also add setting items in the Bluetooth function setting interface. For example, it can be shown in (b) in Figure 7 Click Set Password on the setting interface of the Bluetooth headset to encrypt the Bluetooth headset.
  • 01 means that the headset is not encrypted, but can be encrypted, then the mobile phone can display a reminder box as shown in (c) in Figure 4 at this time.
  • 00 means that the headset is not encrypted and cannot be encrypted, so the mobile phone may not display the reminder box as shown in (c) in Figure 4 at this time. There is no S806-S808 process.
  • S916 Mobile phone A sends the password to the headset.
  • FIG. 10 shows a schematic flowchart of a process of establishing a Bluetooth connection between a Bluetooth headset and a mobile phone B provided in an embodiment of the present application. As shown in Figure 10, the process includes:
  • the Bluetooth headset detects the user's operation to open the headset box.
  • the Bluetooth headset in response to the operation, connects back to the mobile phone A.
  • the Bluetooth headset can initiate a page to the mobile phone based on the MAC address of the mobile phone, and perform a page between the Bluetooth headset and mobile phone A. Standard Bluetooth pairing process.
  • S1002 is actually an optional step. After the Bluetooth headset detects the user's operation to open the headset box, it can connect back to the last connected mobile phone A.
  • the result of the connection back can be a successful connection or a failure of the connection back (for example, if the distance between the mobile phone A and the Bluetooth headset is too far, the connection back may fail). It can also be that when the Bluetooth headset is connected to mobile phone A, mobile phone A actively disconnects the connection with the Bluetooth headset after detecting the user's operation, then the next time the Bluetooth headset detects the user's operation to open the headset box, the Bluetooth headset will also It is not necessary to connect the phone A back.
  • the Bluetooth headset broadcasts a BLE broadcast data packet to surrounding devices, where the BLE broadcast data packet carries an authentication identifier, and the authentication identifier is used to indicate that the Bluetooth headset needs to perform an authentication process to establish a Bluetooth connection.
  • mobile phone A can also receive BLE broadcast data packets. After mobile phone A receives the BLE broadcast data packet, it can confirm that the MAC address carried in the broadcast data packet is the MAC address of the Bluetooth headset it is currently connected to. You can ignore this BLE broadcast packet.
  • the Bluetooth headset After the Bluetooth headset detects the user's operation of opening the headset box, it connects back to the mobile phone A but fails to connect back. For example, if the distance between the mobile phone A and the Bluetooth headset is too far, the Bluetooth headset fails to connect to the mobile phone A.
  • the BLE broadcast data packet may also carry the MAC address of the Bluetooth headset, which is used by surrounding devices to determine whether a Bluetooth connection has been established with the Bluetooth headset before.
  • the BLE broadcast data packet may also carry information about the device type and device name of the Bluetooth headset.
  • the BLE broadcast data packet may also carry specific bytes, which are used to indicate whether the Bluetooth headset has been encrypted and whether it can be encrypted.
  • S1004 Mobile phone B determines that it has not established a Bluetooth connection with the Bluetooth headset before, and prompts the user to enter the encryption password.
  • determining that the mobile phone B has not established a Bluetooth connection with the Bluetooth headset before may include: the mobile phone B determines that the MAC address of the Bluetooth headset has not been saved.
  • the BLE broadcast data packet in S1003 may include the MAC address of the Bluetooth headset.
  • the mobile phone B may use the authentication information in the BLE broadcast data packet to determine that it needs to perform an authentication (or interactive authentication) process with the Bluetooth headset to establish a Bluetooth connection with the Bluetooth headset.
  • Mobile phone B can determine that the Bluetooth headset is an encrypted device by parsing a specific byte (for example, "11").
  • Mobile phone B can broadcast the device type and device name of the Bluetooth headset carried in the data packet through BLE, as shown in the GUI in Figure 4 (e), mobile phone B can prompt the user in the reminder box 407 that the device name of the Bluetooth device is "Bluetooth earphone".
  • Mobile phone B can use the MAC address carried in the BLE broadcast data packet to determine whether a Bluetooth connection has been established with the Bluetooth headset. If the MAC address of the paired device saved by mobile phone B does not contain the MAC address of the Bluetooth headset, mobile phone B can determine the previous No Bluetooth connection has been established with the Bluetooth headset. With the GUI shown in (e) in FIG. 4, the mobile phone B can prompt the user to enter the encryption password in the reminder box 407.
  • FIG. 11 shows a schematic flowchart of a process of interactive authentication between mobile phone B and a Bluetooth headset provided by an embodiment of the present application.
  • the interactive authentication process includes:
  • the mobile phone B and the Bluetooth headset establish an ACL link.
  • the mobile phone B can establish an ACL link under the BR/EDR connection with the Bluetooth headset.
  • mobile phone B and the Bluetooth headset perform interactive authentication on the ACL link.
  • mobile phone B can send the hash value of the encrypted password (which may also include other information, such as MAC address, etc.) input by the user to the Bluetooth headset on the ACL link, and the Bluetooth headset will verify the encrypted password .
  • the hash value of the encrypted password which may also include other information, such as MAC address, etc.
  • mobile phone B may first send part of the authentication information (for example, part of the encrypted password information) hash value to the bluetooth headset on the ACL link, and the bluetooth headset will verify it; after the verification is passed, the bluetooth headset sends the hash value to the mobile phone B requests the remaining authentication information; after mobile phone B sends the remaining authentication information to the Bluetooth headset, the Bluetooth headset verifies the remaining authentication information. If the Bluetooth headset passes the verification of the remaining authentication information, the Bluetooth headset can determine that the authentication of the mobile phone is successful.
  • the authentication information for example, part of the encrypted password information
  • the Bluetooth headset after the Bluetooth headset successfully authenticates the mobile phone, it may also send the hash value of the encrypted password saved by itself to the mobile phone B, and the mobile phone B authenticates the encrypted password. After the mobile phone B successfully authenticates the encryption password, the interactive authentication between the Bluetooth headset and the mobile phone is successful.
  • the mobile phone B can send the authentication information to the Bluetooth headset in an encrypted manner, for example, the mobile phone B sends to the headset based on the hash value of the encrypted password.
  • the Bluetooth headset indicates to the mobile phone B that the Bluetooth headset has entered a pairable mode.
  • the Bluetooth headset may send indication information on the ACL link to indicate that the mobile phone has entered the pairable mode.
  • the mobile phone B and the Bluetooth headset perform a standard Bluetooth pairing process.
  • the mobile phone B can establish a BR/EDR connection with the Bluetooth headset.
  • establishing a BR/EDR connection between the mobile phone B and the Bluetooth headset includes: the mobile phone B initiates a paging to the Bluetooth headset, and the mobile phone B and the Bluetooth headset perform a pairing/SDP/encryption process.
  • FIG. 12 shows a schematic flowchart of another interactive authentication process between a mobile phone B and a Bluetooth headset provided by an embodiment of the present application.
  • the interactive authentication process includes:
  • the mobile phone B carries part of the authentication information (for example, part of the encrypted password) through the first BLE broadcast message and sends it to the Bluetooth headset.
  • the authentication information for example, part of the encrypted password
  • the Bluetooth headset After the Bluetooth headset passes the authentication of this part of the authentication information, it sends a second BLE broadcast message to the mobile phone B.
  • the second BLE broadcast message may instruct the mobile phone B to send the remaining authentication information to the Bluetooth headset.
  • Mobile phone B sends a third BLE broadcast message to the Bluetooth headset, and the third BLE broadcast message carries the remaining authentication information.
  • mobile phone B can send the authentication information to the Bluetooth headset through the BLE broadcast message multiple times.
  • the successful interactive authentication of the Bluetooth headset and the mobile phone B can mean that the Bluetooth headset has passed the authentication information sent by the mobile phone, or that the Bluetooth headset has passed the authentication information sent by the mobile phone and the mobile phone B has passed the authentication information sent by the Bluetooth headset.
  • the Bluetooth headset is also required to send the stored authentication information to the mobile phone B for authentication.
  • the Bluetooth headset sends a fourth BLE broadcast message to the mobile phone B, where the fourth BLE broadcast message is used to instruct the Bluetooth headset to enter a pairable mode.
  • the mobile phone B and the Bluetooth headset perform a standard Bluetooth pairing process.
  • the mobile phone B can establish a BR/EDR connection with the Bluetooth headset.
  • establishing a BR/EDR connection between the mobile phone B and the Bluetooth headset includes: the mobile phone B initiates a paging to the Bluetooth headset, and the mobile phone B and the Bluetooth headset perform a pairing/SDP/encryption process.
  • FIG. 13 shows a schematic flowchart of another process of interactive authentication between a mobile phone B and a Bluetooth headset provided by an embodiment of the present application.
  • the interactive authentication process includes:
  • the mobile phone B and the Bluetooth headset establish an ACL link under the BLE connection.
  • S1302 Mobile phone B performs interactive authentication with the Bluetooth headset on the ACL link.
  • the Bluetooth headset sends instruction information to the mobile phone B, where the instruction information is used to instruct the Bluetooth headset to enter a pairable mode.
  • S1305 Mobile phone B disconnects the ACL link with the Bluetooth headset.
  • the mobile phone B and the Bluetooth headset perform a standard Bluetooth pairing process.
  • the mobile phone B can establish a standard Bluetooth pairing process under the BR/EDR connection with the Bluetooth headset.
  • the standard Bluetooth pairing process under the BR/EDR connection between the mobile phone B and the Bluetooth headset includes: the mobile phone B initiates a paging to the Bluetooth headset, and the mobile phone B and the Bluetooth headset perform a (BR/EDR) pairing/SDP/encryption process.
  • mobile phone B can also continuously link with the ACL of the Bluetooth headset, and mobile phone B can continue to establish a BLE connection with the Bluetooth headset.
  • the mobile phone B may perform a (BLE) pairing/SDP/encryption process under the BLE connection with the Bluetooth headset.
  • the Bluetooth headset enters the pairable mode after it is determined that the interactive authentication is passed.
  • the Bluetooth IO capability flag can be set to the bindable mode, and the Bluetooth headset enters the pairable mode.
  • the mobile phone B and the Bluetooth headset can perform data transmission under the BR/EDR connection.
  • the mobile phone B can also perform data transmission with the Bluetooth headset under the BLE connection.
  • an HFP connection can be made between the mobile phone and the main ear.
  • an A2DP connection can be made between the mobile phone and the main ear.
  • the process further includes:
  • S1008 Mobile phone B reminds the user whether to modify the password of the Bluetooth headset.
  • the mobile phone can remind the user to modify the password.
  • the mobile phone detects that the user has entered a new encrypted password and clicks OK.
  • mobile phone B sends the new encryption password to the Bluetooth headset.
  • FIG. 14 shows a schematic flowchart of a process of establishing a Bluetooth connection between a Bluetooth headset and a mobile phone C provided by an embodiment of the present application. As shown in Figure 14, the process includes:
  • the Bluetooth headset detects the user's operation to open the headset box.
  • the Bluetooth headset in response to the operation, the Bluetooth headset is connected back to the mobile phone A.
  • the Bluetooth headset can initiate a page to the mobile phone based on the MAC address of the mobile phone, and perform a page between the Bluetooth headset and mobile phone A. Standard Bluetooth connection process.
  • the Bluetooth headset broadcasts a BLE broadcast data packet to surrounding devices, where the BLE broadcast data packet carries an authentication identifier, and the authentication identifier is used to indicate that the Bluetooth headset needs to perform an authentication process to establish a Bluetooth connection.
  • S1404 The mobile phone C determines that a Bluetooth connection has been established with the Bluetooth headset before, and prompts the user whether to establish a connection with the Bluetooth headset.
  • the mobile phone C may determine through the authentication information in the BLE broadcast data packet that it needs to perform an authentication (or interactive authentication) process with the Bluetooth headset to establish a Bluetooth connection with the Bluetooth headset.
  • the mobile phone C can determine that the Bluetooth headset is an encrypted device by parsing a specific byte (for example, "11").
  • Mobile phone C can use the MAC address carried in the BLE broadcast data packet to determine whether a Bluetooth connection has been established with the Bluetooth headset before. If the MAC address of the paired device saved by mobile phone C contains the MAC address of the Bluetooth headset, mobile phone C can determine the previous No Bluetooth connection has been established with the Bluetooth headset. Mobile phone C can prompt the user whether to establish a connection with the Bluetooth headset.
  • S1405 The mobile phone C detects that the user clicks to establish a connection with the Bluetooth headset.
  • S1406 may refer to the descriptions in the foregoing methods 1100-1300, and for the sake of brevity, details are not repeated here.
  • the mobile phone C has established a Bluetooth connection with the Bluetooth headset before, the interactive authentication has been performed between the mobile phone C and the Bluetooth headset and the authentication has passed.
  • the Bluetooth headset may be changed by other devices that establish a Bluetooth connection afterwards, so an interactive authentication process is still required here.
  • the Bluetooth headset is a Bluetooth device of user A, and user A can set a password for the Bluetooth headset when using his mobile phone A to establish a Bluetooth connection with the Bluetooth headset.
  • User B borrows the Bluetooth headset from user A, then user A can inform user B of the encryption password, and then user B uses his mobile phone B to connect to the Bluetooth headset for the first time, and he can enter the password notified by user A to make The mobile phone B and the Bluetooth headset establish a Bluetooth connection.
  • the Bluetooth headset can disconnect the Bluetooth connection with mobile phone A when entering the pairable state; or, when During the standard Bluetooth pairing process between the Bluetooth headset and the mobile phone, the Bluetooth headset can disconnect the Bluetooth connection with the mobile phone A.
  • the mobile phone B and the Bluetooth headset perform a standard Bluetooth pairing process.
  • the mobile phone C may also prompt the user whether to change the password.
  • the mobile phone C may also prompt the user whether to change the password.
  • Fig. 15 shows another set of GUIs of an embodiment of the present application.
  • the Bluetooth headset can first connect to the last connected mobile phone A.
  • the mobile phone A can remind the user of the power of the Bluetooth headset and the power of the headset box through the reminder box 1501.
  • mobile phone B when mobile phone B is close to the Bluetooth headset, mobile phone B can automatically pop up a reminder box 1502, where the reminder box 1502 can prompt the user to "detect an encrypted device (Bluetooth headset), if necessary To establish a connection, please enter the encryption password".
  • Bluetooth headset Bluetooth headset
  • mobile phone C when mobile phone C is close to the Bluetooth headset, mobile phone C can automatically pop up a reminder box 1503, where the reminder box 1503 can display the battery level of the Bluetooth headset, the battery level of the headset box, and remind the user " An encrypted device (Bluetooth headset) is detected, whether to establish a connection”.
  • Bluetooth headset Bluetooth headset
  • the Bluetooth headset may not send its power information to surrounding devices before connecting for the first time.
  • the Bluetooth headset can send power information to the paired (or connected) device.
  • the paired device can view the battery information of the Bluetooth headset in the drop-down menu and the negative screen.
  • the Bluetooth headset After the Bluetooth headset is connected to a device, the Bluetooth headset can broadcast its power information to surrounding devices through BLE broadcast packets; or, the Bluetooth headset can send its power information to the connected device through point-to-point.
  • the electronic device 100 may display an interface 1610 of a home screen.
  • the interface 1610 displays a page on which application icons are placed.
  • the page includes multiple application icons (for example, weather application icons, Stock application icon, calculator application icon, setting application icon 1616, mail application icon, Alipay application icon, Facebook application icon, browser application icon, gallery application icon, music application icon, video application icon, application store icon).
  • a page indicator is also displayed below the multiple application icons to indicate the positional relationship between the currently displayed page and other pages.
  • There are multiple tray icons (such as dial-up application icon, information application icon, contact application icon, camera application icon) below the page indicator. The tray icon remains displayed when the page is switched.
  • the above page can also include multiple application icons and pages Indicator; the page indicator may not be a part of the page and exist alone, and the above-mentioned tray icon is also optional, which is not limited in the embodiment of the present application.
  • a status bar 1611 is displayed above the interface 1610, and the status bar 1611 may include: one or more signal strength indicators of mobile communication signals (also called cellular signals), wireless fidelity (Wi-Fi) ) One or more signal strength indicators of the signal, battery status indicator, time indicator, etc.
  • a navigation bar 1612 is displayed below the tray icon, and the navigation bar 1612 may include system navigation keys such as a return button 1613, a home screen button 1614, a call out task history button 1615, and so on.
  • each navigation key in the navigation bar 1612 can also be implemented as a physical key.
  • the electronic device 100 may receive a user's input operation (for example, a click) on the setting icon 1616, and in response to the input operation on the setting icon 1616, the electronic device 100 may display a setting interface 1620 as shown in (b) in FIG. 16 .
  • a user's input operation for example, a click
  • the setting interface 1620 includes wireless and network setting items, device connection setting items 1621, application and notification setting items, battery setting items, display setting items, sound setting items, and storage setting items. , Security and privacy settings entries, user and account settings entries, etc.
  • the electronic device 100 may receive a user's input operation (for example, a click) on the device connection item 1621, and in response to the input operation on the device connection item 1621, the electronic device 100 may display the device as shown in (c) in FIG. 16 Connection interface 1630.
  • a user's input operation for example, a click
  • the device connection interface 1630 displays a Bluetooth setting item 1631, NFC setting item, Huawei Beam setting item, Huawei Share setting item, mobile screen mirroring setting item, USB setting item, print setting Entries, etc.
  • the electronic device 100 can receive a user's input operation on the Bluetooth setting item 1631 in the device connection interface 1630. In response to the input operation on the Bluetooth setting item 1631, the electronic device 100 can display the Bluetooth setting as shown in (d) in FIG. 16 Interface 1640.
  • the Bluetooth setting interface 1640 displays a Bluetooth switch entry 1641, a device name setting entry 1642, a receiving file setting entry 1643, a scanning control 1644, and a help control 1645.
  • the Bluetooth switch 1651 is displayed in the Bluetooth switch entry 1641.
  • the Bluetooth switch 1651 can be used to receive user operations and trigger the electronic device 100 to turn on/off the Bluetooth function.
  • the Bluetooth switch 1651 is currently in the off state, and the electronic device 100 can receive a user's input operation (for example, clicking) on the Bluetooth switch 1651, and in response to the input operation on the Bluetooth switch 1651, the electronic device 100 can turn on the Bluetooth function.
  • a user's input operation for example, clicking
  • the electronic device 100 may also display a paired device list 1646 on the Bluetooth setting interface 1640.
  • the paired device list includes one or more paired device options (for example, "HUAWEI AM08" device option, "HUAWEI Mate 20" device option, etc.), scanning prompt 1647.
  • the Bluetooth function when the Bluetooth function is triggered to turn on, the electronic device 100 can scan the Bluetooth (including BLE and classic Bluetooth) broadcasts of other devices.
  • the electronic device 100 may display the scanning prompt 1647 to prompt the user that the electronic device 100 is currently scanning for available devices.
  • each scan of the electronic device 100 can be limited to a period of time (for example, 5 seconds).
  • the electronic device 100 can receive the user's response to the scan control 1644.
  • An input operation for example, a single click
  • the electronic device 100 can scan the Bluetooth broadcast of another device again.
  • the device name of the accessory device 200 may be "HUAWEI Free Buds".
  • the accessory device 200 When the accessory device 200 is turned on and not in the pairing mode, it can send a BLE broadcast packet, where the BLE broadcast packet includes the broadcast device address, pairing mode information, device name, and so on of the accessory device 200.
  • the pairing mode information is used to indicate whether the accessory device 200 has not entered the pairing mode.
  • the electronic device 100 can determine whether the accessory device 200 has been paired with the electronic device 100 according to the broadcast device address in the BLE broadcast. If it has been paired with the electronic device 100, the electronic device 100 100 may display the device options of the accessory device 200 in the paired device list 1646. If it is not paired with the electronic device 100, the electronic device 100 can display the device options of the accessory device 200 in the available device list 1648.
  • the electronic device 100 when the electronic device 100 determines that the accessory device 200 is not paired with the electronic device 100 according to the broadcast device address in the BLE broadcast of the accessory device 200, the electronic device 100 can In the available device list 1648, the device options 1649 of the accessory device 200 are displayed.
  • the device name of the accessory device 200 (for example, "HUAWEI Free Buds") is displayed in the device option 1649 of the accessory device 200.
  • the electronic device 100 may receive a user's input operation (for example, a click) for the device option 1649 in the available device list 1648, and in response to the input operation for the device option 1649, the electronic device 100 may establish a BLE connection with the accessory device 200. After establishing a BLE connection with the accessory device 200, the electronic device 100 may send a pairing mode modification request to the accessory device 200 for requesting the accessory device 200 to enter the pairable mode. After the accessory device 200 receives the pairing mode modification request sent by the electronic device 100, it can determine whether the accessory device 200 has not established a classic Bluetooth connection with other devices.
  • a user's input operation for example, a click
  • the accessory device 200 can enter the pairable mode and return a pairing mode modification response to The electronic device 100 is used to notify the electronic device 100 that the accessory device 200 has entered the pairable mode. After receiving the pairing mode modification response sent by the accessory device 200, the electronic device 100 can perform the classic Bluetooth pairing process with the accessory device 200.
  • the electronic device 100 may output a pairing prompt after receiving the user's input operation on the device option 1649 (for example, "pairing -- is displayed in the device option 1649, etc. Typeface).
  • the electronic device 100 may display the device options 1652 of the accessory device 200 in the paired device list 1646.
  • the electronic device 100 can establish a classic Bluetooth connection with the accessory device 200.
  • the classic Bluetooth connection established between the electronic device 100 and the accessory device 200 may be triggered after the pairing is successful, or may be triggered by the user.
  • the electronic device 100 may An input operation (for example, a single click) of the device option 1652 in the paired device list 1646 from the user is received, and in response to the input operation, the electronic device 100 can establish a classic Bluetooth connection with the accessory device 200.
  • the electronic device 100 may display a connected prompt message on the device option 1652 to remind the user that the electronic device 100 has established a classic Bluetooth connection with the accessory device 200.
  • the connected prompt information displayed on the device option 1652 of the electronic device 100 may be text information of "connected for audio for calls and media", and so on.
  • the electronic device 100 may display the device options of the accessory device 200 in a pop-up window.
  • the electronic device 100 may display a pairable device window 1653 after scanning the BLE broadcast packet of the accessory device 200.
  • the pairable device window 1653 includes a device option 1654 of the accessory device 200, and the device option 1654 displays the device name of the accessory device 200 (for example, "HUAWEI Free Buds").
  • the electronic device 100 may receive the input operation (for example, a single click) of the device option 1654 of the accessory device 200, and in response to the input operation of the device option 1654, the electronic device 100 may establish a BLE connection with the accessory device 200.
  • the electronic device 100 may send a pairing mode modification request to the accessory device 200 for requesting the accessory device 200 to enter the pairable mode.
  • the accessory device 200 receives the pairing mode modification request sent by the electronic device 100, it can determine whether the accessory device 200 has not established a classic Bluetooth connection with other devices. If so, the accessory device 200 can enter the pairable mode and return a pairing mode modification response to The electronic device 100 is used to notify the electronic device 100 that the accessory device 200 has entered the pairable mode.
  • the electronic device 100 can perform the classic Bluetooth pairing process with the accessory device 200.
  • the device option 1652 of the accessory device 200 as shown in (h) in FIG. 16 may be displayed in the paired device list 1646.
  • the electronic device 100 displays an interface 1710 of the home screen.
  • the interface 1710 displays a page with application icons placed thereon.
  • the page includes multiple application icons (for example, weather application icons, stock Application icon, calculator application icon, setting application icon, the page includes multiple application icons, Alipay application icon, Facebook application icon, browser application icon, gallery application icon, music application icon, video application icon, application store icon) .
  • a page indicator is also displayed below the multiple application icons to indicate the positional relationship between the currently displayed page and other pages.
  • There are multiple tray icons below the page indicator for example, dial-up application icon, information application icon, contact application icon, camera application icon). The tray icon remains displayed when the page is switched.
  • the page can include multiple application icons and page indicators.
  • a status bar 1711 is displayed above the interface 1710.
  • a navigation bar 1712 is displayed below the tray icon.
  • the electronic device 100 can receive a user's sliding operation on the status bar 1711 (for example, sliding down from the position of the status bar 1711), and in response to the sliding operation on the status bar 1711, the electronic device 100 can display (b) ) Shows the window menu 1720.
  • the window menu 1720 can display switch controls with some functions (for example, WLAN switch control, Bluetooth switch control 1721, flashlight switch control, reminder mode switch control, automatic rotation switch control, Huawei share switch control, flight mode switch control, mobile data switch control, positioning switch control, screenshot switch control, eye protection mode switch control, hotspot switch control, screen recording switch control, large screen projection control, NFC switch control, etc.).
  • the electronic device 100 can receive a user's input operation (for example, a single click) on the Bluetooth switch control 1721, and in response to the input operation on the Bluetooth switch control 1721, the electronic device 100 can turn on the Bluetooth function.
  • a user's input operation for example, a single click
  • the Bluetooth switch control 1721 can be switched to the on state to prompt the user that the Bluetooth function is currently turned on.
  • the electronic device 100 can scan Bluetooth broadcasts (including BLE broadcasts and classic Bluetooth broadcasts) of other devices in the background.
  • the electronic device 100 can determine whether the accessory device 200 is not paired with the electronic device 100 according to the broadcast device address in the BLE broadcast If it is not paired with the electronic device 100, the electronic device 100 may display a notification bar 1730 under the window menu 1720. Wherein, the notification bar 1730 displays the device name of the accessory device 200 (for example, "HUAWEI Free Buds"). If the accessory device 200 is not paired with the electronic device 100, the electronic device 100 can establish a classic Bluetooth connection with the accessory device 200.
  • the electronic device 100 can receive a user's input operation (for example, a click) on the notification bar 1730.
  • a user's input operation for example, a click
  • the electronic device 100 can receive a Bluetooth setting interface 1740 as shown in (e) in FIG. 17 .
  • the Bluetooth setting interface 1740 includes a Bluetooth switch entry 1741, a device name setting entry 1742, a receiving file setting entry 1743, a scan control 1744, a help control 1745, a paired device list 1746, and available Device list 1748.
  • the Bluetooth switch 1751 is displayed in the Bluetooth switch entry 1741.
  • the Bluetooth switch 1751 can be used to receive user operations and trigger the electronic device 100 to turn on/off the Bluetooth function. Since the electronic device 100 has currently turned on the Bluetooth function, the Bluetooth switch 1751 may be displayed as an on state.
  • the electronic device 100 can display the device options 1749 of the accessory device 200 in the available device list 1748.
  • the device option 1749 may display the device name of the accessory device 200 (for example, "HUAWEI Free Buds").
  • the electronic device 100 may receive a user's input operation (for example, a single click) on the device option 1749 in the available device list 1748, and in response to the input operation on the device option 1749, the electronic device 100 may establish a BLE connection with the accessory device 200. After the electronic device 100 establishes a BLE connection with the accessory device 200, it may send a pairing mode modification request to the accessory device 200 for requesting the accessory device 200 to enter the pairable mode. After the accessory device 200 receives the pairing mode modification request sent by the electronic device 100, it can determine whether the accessory device 200 has not established a classic Bluetooth connection with other devices.
  • a user's input operation for example, a single click
  • the accessory device 200 can enter the pairable mode and return a pairing mode modification response to The electronic device 100 is used to notify the electronic device 100 that the accessory device 200 has entered the pairable mode. After receiving the pairing mode modification response sent by the accessory device 200, the electronic device 100 can perform the classic Bluetooth pairing process with the accessory device 200.
  • the electronic device 100 may output a pairing prompt after receiving the user's input operation on the device option 1749 (for example, "pairing -- is displayed in the device option 1749, etc. Typeface).
  • the electronic device 100 may display the device options 1752 of the accessory device 200 in the paired device list 1746.
  • the electronic device 100 can establish a classic Bluetooth connection with the accessory device 200.
  • the classic Bluetooth connection established by the electronic device 100 and the accessory device 200 may be triggered by the user.
  • the electronic device 100 can receive the user’s response to the device in the paired device list 1746.
  • the input operation for example, a single click
  • the electronic device 100 can establish a classic Bluetooth connection with the accessory device 200.
  • the electronic device 100 may display a connected prompt message on the device option 1752 to remind the user that the electronic device 100 has established a classic Bluetooth connection with the accessory device 200.
  • the connected prompt information displayed by the electronic device 100 on the device option 1752 may be the text message of "connected for audio for calls and media", and so on.
  • the electronic device 100 may directly establish a connection with the accessory device 200 in response to the input operation (for example, a click) of the user on the notification bar 1730 in FIG. 17D, in response to the input operation on the notification bar 1730.
  • BLE connection After establishing a BLE connection with the accessory device 200, the electronic device 100 may send a pairing mode modification request to the accessory device 200 for requesting the accessory device 200 to enter the pairable mode. After the accessory device 200 receives the pairing mode modification request sent by the electronic device 100, it can determine whether the accessory device 200 has not established a classic Bluetooth connection with other devices.
  • the accessory device 200 can enter the pairable mode and return a pairing mode modification response to The electronic device 100 is used to notify the electronic device 100 that the accessory device 200 has entered the pairable mode. After receiving the pairing mode modification response sent by the accessory device 200, the electronic device 100 can perform the classic Bluetooth pairing process with the accessory device 200.
  • the electronic device 100 After the electronic device 100 is paired with the accessory device 200, it can establish a classic Bluetooth connection with the accessory device 200.
  • the device name of the accessory device 200 for example, " HUAWEI Free Buds”.
  • the method includes:
  • the electronic device 100 scans for the BLE broadcast.
  • the electronic device 100 may scan for the BLE broadcast when the user triggers to turn on the BLE broadcast.
  • the user triggering the operation of turning on the BLE broadcast can refer to the input operation (for example, click) of the Bluetooth switch 1651 in the Bluetooth setting interface 1640 in (d) in the above-mentioned FIG. 16, and also refer to the above-mentioned (b) in FIG. )
  • the input operation for example, single click
  • the Bluetooth switch control 1721 in the window menu 1720 For specific content, please refer to the embodiment shown in (d) in FIG. 16 or (b) in FIG. 17, which will not be repeated here.
  • the process of scanning the BLE broadcast by the electronic device 100 may be that the electronic device 100 sequentially displays multiple broadcast channels (for example, BLE broadcast channel 37 (2402MHz), BLE broadcast channel 38 (2426MHz), and BLE broadcast channel 39 (2480MHz). ) Scan BLE broadcast packets.
  • the duration of the electronic device 100 scanning on a BLE broadcast channel can be called a scanning window, and the scanning window size is fixed (for example, the scanning window can be 10ms to 10.24s), and the time between the start times of two consecutive scanning windows
  • the interval may be referred to as a scan interval, and the scan interval is fixed (for example, the scan interval may be 10 ms to 10.24 s).
  • the accessory device 200 does not enter the pairable mode.
  • the accessory device 200 when the accessory device 200 does not enter the pairable mode, it cannot be paired with the electronic device 100.
  • the accessory device 200 does not enter the pairable mode, the following situations may be included:
  • the accessory device 200 has not been paired currently, and the Bluetooth connection with other devices is disconnected, but it has not entered the pairable mode. For example, the accessory device 200 successfully paired with other devices first, and then unpaired with the other devices.
  • the accessory device 200 has been paired with other devices, and has not established a Bluetooth connection with other devices, but has not entered the pairable mode.
  • the accessory device 200 has been paired with another device, and currently retains the pairing information when paired with the other device, but has been disconnected from the other device.
  • the accessory device 200 has been paired with other devices and established a Bluetooth connection, but has not entered the pairable mode.
  • the accessory device 200 has been paired with other devices and a Bluetooth connection has been established, and is in a connection state.
  • the accessory device 200 does not enter the pairable mode, that is, the accessory device 200 does not enter the inquiry scan state.
  • the accessory device 200 enters the pairable mode it means that the accessory device 200 enters the inquiry scan state.
  • the Bluetooth protocol stack on the accessory device 200 can send a write scan enable command (write scan enable command) to the controller of the classic Bluetooth (BR/EDR).
  • the write scan enable command includes the scan enable parameter, which can control the BR/EDR controller to periodically scan the page or scan request (inquiry request) sent by other devices. ).
  • the accessory device 200 sends a BLE broadcast packet.
  • the BLE broadcast packet includes a pairable mode field
  • the pairable mode field includes first pairing mode information for indicating whether the accessory device 200 enters the pairable mode.
  • the accessory device 200 may periodically send a BLE broadcast packet, where there is a broadcast interval (for example, 100 ms) between two adjacent broadcasts. Each time the accessory device 200 performs BLE broadcast, it can send BLE on one or more BLE broadcast channels (for example, BLE broadcast channel 37 (2402MHz), BLE broadcast channel 38 (2426MHz), BLE broadcast broadcast channel 39 (2480MHz)). Broadcast message.
  • BLE broadcast channel 37 (2402MHz), BLE broadcast channel 38 (2426MHz), BLE broadcast broadcast channel 39 (2480MHz)
  • BLE broadcast broadcast channel 39 (2480MHz
  • the format of the BLE broadcast packet can refer to Figure 19.
  • the BLE broadcast packet may include a broadcast header (Header) field and an information content (Payload) field.
  • the Header field contains information used for link control.
  • link control information may include one or more of the following: broadcast packet type, sender address type, receiving address type, and so on.
  • the least significant bit (LSB) of the BLE broadcast packet is on the left side of the Header field in FIG. 19, and the most significant bit (MSB) of the BLE broadcast packet is on the right side of the Payload field in FIG. 19.
  • the Payload domain may include a broadcast device address (advertiser address, AdvA) domain and a broadcast data domain (advertising data, AdvData).
  • the broadcast device address domain occupies 6 bytes, and the broadcast data domain occupies 31 bytes.
  • the broadcast data field may include a valid data part and an invalid data part.
  • the effective data part includes N broadcast data structures (AD structures), and N is a positive integer.
  • Each AD structure includes a length (Length) field, a broadcast data type (AD Type) field, and a broadcast data structure data (AD Data) field.
  • the invalid data part is filled with 0.
  • the Length field occupies 1 byte, and the Length field is used to indicate the length of the AD Type field and AD Data in the AD structure.
  • the AD Type field is used to indicate the meaning of AD Data. For example, when the value of the AD Type field is 0xFF, it can indicate that the AD Data field in the AD structure is manufacturer-defined data, and the manufacturer can fill in the AD Data field at will.
  • the pairable mode field may be set in the AD Data field.
  • the pairable mode field may occupy 1 bit.
  • the value of the pairable mode field is 0, it may indicate that the accessory device 200 is not currently in the pairable mode.
  • the value of the pairable mode field is 1, it may indicate that the accessory device 200 is not in the pairable mode.
  • the device 200 has currently entered the pairable mode.
  • the electronic device 100 displays a pairing option of the accessory device 200.
  • the pairing option of the accessory device 200 may be as the device option 1649 displayed in the available device list 1648 in (f) in FIG. 16 above, or as the pairable device window 1653 in (j) in FIG. 16 above.
  • the device options 1654 displayed in can also be the notification bar 1730 in (d) in FIG. 17, and so on.
  • the content please refer to the embodiment shown in (f) in FIG. 16 or (d) in FIG. 17, which will not be repeated here.
  • the electronic device 100 receives a pairing operation for the accessory device 200.
  • the pairing operation can refer to the input operation (for example, click) for the device option 1649 in the available device list 1648 in (f) above in FIG. 16, and also refer to the pairable device in (j) above in FIG.
  • the input operation for example, click
  • the foregoing embodiment which will not be repeated here.
  • step S1806 the electronic device 100 determines whether the accessory device 200 is currently in the pairable mode according to the pairable mode field in the BLE broadcast packet. If yes, step S1807 is performed, and the electronic device 100 establishes a BLE connection with the accessory device 200. If not, step S1812 is performed, and the electronic device 100 and the accessory device 200 perform classic Bluetooth pairing.
  • the electronic device 100 After the electronic device 100 receives the BLE broadcast packet sent by the accessory device 200, it can parse the value of the pairable mode field from the BLE broadcast packet, and determine whether the accessory device 200 is currently not in the pairable mode field according to the value of the pairable mode field. Pairing mode. For example, if the pairable mode field occupies 1 bit, when the electronic device 100 parses that the value of the pairing mode field is 0, the electronic device 100 can determine that the accessory device 200 is not currently in the pairable mode, and when the electronic device 100 parses out the When the value of the pairing mode field is 1, the electronic device 100 can determine that the accessory device 200 has entered the pairable mode currently.
  • the following describes the process of establishing a BLE connection between the electronic device 100 and the Bluetooth device in the embodiment of the present application.
  • the electronic device 100 may send a connection request to the accessory device 200, where the connection request includes time window information for the electronic device 100 to send the data packet.
  • the accessory device 200 opens the radio frequency receiving window according to the time window information, and receives the synchronization data packet sent by the electronic device 100.
  • the electronic device 100 may send a synchronization data packet to the accessory device 200.
  • the accessory device 200 may return a confirmation data packet to the electronic device 100 after a time interframe space (T_IFS).
  • T_IFS time interframe space
  • the electronic device 100 sends a pairing mode modification request to the accessory device 200.
  • the pairing mode modification request is used to request the accessory device 200 to enter the pairable mode.
  • the electronic device 100 After the electronic device 100 establishes a BLE connection with the accessory device 200, it can send the pairing mode modification request to the accessory device 200 through a command in the logical link control and adaptation protocol (L2CAP).
  • L2CAP logical link control and adaptation protocol
  • a format of L2CAP signaling is defined for the electronic device 100 to request the accessory device 200 to enter the pairable mode.
  • the L2CAP signaling includes an L2CAP packet header and one or more instructions. among them:
  • the L2CAP packet header part includes a protocol data unit length field (PDU length) and a channel number (channel identity, CID).
  • PDU length protocol data unit length field
  • CID channel identity
  • Each command includes a command code (Code), an identifier (Identifier), a command length (command length), and a data field.
  • the L2CAP signaling instruction code occupies 1 byte
  • the identifier occupies 1 byte
  • the instruction length occupies 2 bytes.
  • the pairing signaling type field and the pairing mode field are defined in the data field of the command with the command code of "0x08" (ie, the echo request command).
  • the position of the pairing signaling type field in the data field is not limited.
  • the pairing signaling type field occupies 1 byte, and the pairing mode value occupies 1 bit.
  • the pairing signaling type field is used to indicate whether the L2CAP signaling is a pairing mode modification request. When the pairing signaling type field is "0x01", it may indicate that the L2CAP signaling is a pairing mode modification request.
  • the pairing mode field is used to indicate whether the request is to enter the pairing mode. When the value of the pairing mode field is "1”, it may indicate a request to enter the pairing mode; when the value of the pairing mode field is "0", it may indicate a request to enter the non-pairing mode.
  • the instruction code in the L2CAP signaling sent by the electronic device 100 to the accessory device 200 is "0x08, the value of the pairing signaling type field is "0x01”, and the pairing mode value is "1", it means that the electronic device 100 sends the accessory device
  • the L2CAP signaling sent by 200 is a pairing mode modification request, which is used to request the accessory device 200 to enter the pairing mode.
  • the L2CAP signaling format of the pairing mode modification request shown in (a) in FIG. 16 is only used to explain the present application and should not be limited to this.
  • the electronic device 100 may also send the pairing mode modification request through other protocol commands. For example, it may also send the pairing mode modification request through a generic attribute profile (GATT) command.
  • GATT generic attribute profile
  • the accessory device 200 may output a first prompt to prompt the user that the electronic device 100 requests pairing with the accessory device 200 and enters the pairable mode.
  • the first prompt may be a display prompt.
  • the accessory device 200 may display the prompt message "HUAWEI P30 requesting pairing" ("HUAWEI P30" is the device name of the electronic device 100).
  • the first prompt may also be an audio prompt.
  • the accessory device 200 may output an audio prompt through the audio output device to prompt the user electronic device 100 to request pairing with the accessory device 200.
  • the first prompt can also be a mechanical vibration prompt.
  • the first prompt may be a display prompt, an audio prompt, a mechanical vibration prompt, and a combination of two or more prompts.
  • the accessory device 200 after the accessory device 200 receives the pairing mode modification request and before entering the pairable mode, it can also determine whether the accessory device 200 is currently disconnected from the classic Bluetooth connection with other devices. If so, the accessory device 200 The pairable mode can be entered, and the electronic device 100 is notified that the accessory device 200 has entered the pairable mode. If not, the accessory device 200 does not enter the pairable mode, and the electronic device 100 is notified that the accessory device 200 does not enter the pairable mode. In this way, the accessory device 200 can refuse the modification of the pairing mode of the electronic device 100 when the accessory device 200 is connected with other devices in the classic Bluetooth connection, so as to ensure that the accessory device 200 will not suddenly disconnect the classic Bluetooth connection with other devices, which improves the user experience.
  • the accessory device 200 may receive a pairing confirmation operation from the user.
  • the accessory device 200 may enter the pairing mode and notify The electronic device 100 currently has the accessory device 200 entered the pairing mode. In this way, the accessory device 200 can allow the user to confirm whether to agree to pair with the electronic device 100, which ensures that the accessory device 200 will not be used by others without consent.
  • the accessory device 200 may send a pairing mode modification response to the electronic device 100.
  • the pairing mode modification response contains second pairing mode information of the accessory device 200, and the second pairing mode information is used to indicate whether the accessory device 200 currently enters the pairable mode after receiving the pairing mode modification request.
  • the pairing mode modification response that characterizes the accessory device 200 entering the pairable mode may be referred to as the first modification response.
  • the pairing mode modification response indicating that the accessory device 200 has not entered the pairable mode may be referred to as the second modification response.
  • the first modification response is used to indicate that the accessory device 200 has entered the pairable mode
  • the second modification response is used to indicate that the accessory device 200 has not entered the pairable mode.
  • the accessory device 200 when the accessory device 200 does not enter the pairing mode before receiving the pairing mode modification request, the following possible situations are possible:
  • the accessory device 200 is currently not paired, but has not entered a pairable state. For example, the accessory device 200 successfully paired with other devices first, and then unpaired with the other devices.
  • the accessory device 200 has been paired with other devices, and has not established a Bluetooth connection with other devices, but has not entered the pairable mode.
  • the accessory device 200 has been paired with other devices and established a Bluetooth connection, but has not entered the pairable mode.
  • the accessory device 200 is not currently paired, but has not entered the pairable state. After receiving the pairing mode modification request sent by the electronic device 100, the accessory device 200 may enter the pairing mode and return a first modification response to the electronic device 100 to notify the electronic device 100 that the accessory device 200 has entered the pairable mode.
  • the accessory device 200 has been paired with other devices, and has not established a Bluetooth connection with the other devices, but has not entered the pairable mode.
  • the accessory device 200 may enter the pairing mode and return a first modification response to the electronic device 100 to notify the electronic device 100 that the accessory device 200 has entered the pairable mode.
  • the accessory device 200 After receiving the pairing mode modification request sent by the electronic device 100, the accessory device 200 keeps the state of not entering the pairing mode, and returns a second modification response to the electronic device 100 for notifying the electronic device 100 of the accessory device 200 did not enter pairable mode.
  • the accessory device 200 may send the pairing mode modification response through L2CAP signaling.
  • L2CAP signaling of the pairing mode modification response For the format of the L2CAP signaling of the pairing mode modification response, refer to (b) in FIG. 16.
  • the L2CAP signaling includes an L2CAP packet header and one or more instructions. among them:
  • the L2CAP packet header part includes a protocol data unit length field (PDU length) and a channel number (channel identity, CID).
  • PDU length protocol data unit length field
  • CID channel identity
  • Each command includes a command code (Code), an identifier (Identifier), a command length (command length), and a data field.
  • the L2CAP signaling instruction code occupies 1 byte
  • the identifier occupies 1 byte
  • the instruction length occupies 2 bytes, which is used to indicate the data length of the data field.
  • the pairing signaling type field and the pairing mode value field are defined in the data field of the command with the command code of "0x09" (ie, the echo response (Echo Response) command).
  • the position of the pairing signaling type field in the data field is not limited.
  • the pairing signaling type field occupies 1 byte, and the pairing mode value occupies 1 bit.
  • the pairing signaling type field is used to indicate whether the L2CAP signaling is a pairing mode modification request. When the pairing signaling type field is "0x01", it may indicate that the L2CAP signaling is a pairing mode modification response.
  • the pairing mode field is used to indicate whether the accessory device 200 has entered the pairing mode. When the value of the pairing mode field is "1", it may indicate that the current accessory device 200 has entered the pairing mode; when the value of the pairing mode field is "0", it may indicate that the current accessory device 200 has not entered the pairing mode.
  • the instruction code in the L2CAP signaling sent by the electronic device 100 to the accessory device 200 is "0x09, the value of the pairing signaling type field is "0x01", and the value of the pairing mode is "1", it means that the electronic device 100 sends the accessory device
  • the L2CAP signaling sent by 200 is the first modification response, which is used to notify the electronic device 100 that the accessory device 200 has entered the pairing mode.
  • the instruction code in the L2CAP signaling sent by the electronic device 100 to the accessory device 200 is "0x09, the value of the pairing signaling type field is "0x01", and the pairing mode value is "0", it means that the electronic device 100 sends the accessory device
  • the L2CAP signaling sent by 200 is the second modification response, which is used to notify the electronic device 100 that the accessory device 200 has not entered the pairing mode.
  • the L2CAP signaling format of the pairing mode modification request shown in (b) in FIG. 20 is only used to explain this application and should not be limited to this.
  • the electronic device 100 may determine whether the accessory device 200 has entered the pairing mode according to the pairing mode modification response. If yes, step S1412 is performed, and the electronic device 100 and the accessory device 200 perform classic Bluetooth pairing. If not, the electronic device 100 disconnects the BLE connection from the accessory device 200, and outputs a pairing failure prompt for prompting the user to fail to pair with the accessory device 200.
  • the electronic device 100 may establish an asynchronous connectionless (ACL) connection with the accessory device 200.
  • ACL asynchronous connectionless
  • the device that first initiates pairing is called the master device (Master), and the device that passively performs pairing is called the slave device (Slave).
  • Master the device that first initiates pairing
  • slave device the slave device
  • the electronic device 100 actively initiates pairing with the accessory device 200
  • the electronic device 100 may be referred to as a master device
  • the accessory device 200 may be referred to as a slave device.
  • the classic Bluetooth pairing process can be as follows:
  • the initial key length is 128 bits (bit), which is generated by the E22 algorithm.
  • the input (plain text) of the E22 algorithm consists of the following three parts: the physical address of the opposite device BD_ADDR, the PIN code and its length, and a 128-bit random number IN_RAND.
  • the master device Before generating the initial secret key for the physical address of the slave device, the master device obtains the address (BD_ADDRB) of the slave device through an inquiry method. Among them, the address of the master device is BD_ADDRA.
  • the PIN code is preset by both devices (master device and slave device), for example, "0000" or "1234" and so on.
  • the random number IN_RAND is generated by the master device and transmitted to the slave device in plain text.
  • the initial secret keys calculated by the two devices should also be the same.
  • the master device After generating the initial secret key, the master device can generate a 128-bit random number Link_RandA, and the slave device can also generate a 128-bit random number Link_RandB.
  • the master device performs a bitwise logical XOR operation on the initial secret key and Link_RandA, and the XOR result is sent to the slave device.
  • the slave device performs a bit-by-bit logical XOR operation on the initial secret key and Link_RandB, and sends the XOR result to the master device.
  • the master device can calculate Link_RandB based on the XOR result sent by the slave device and the initial secret key stored locally.
  • the slave device can calculate Link_RandA based on the XOR result sent by the master device and the initial secret key stored locally. In this way, both the master device and the slave device have the same initial key, Link_RandA, Link_RandA.
  • the master device can use an algorithm (for example, the E21 algorithm) to perform an encryption operation on Link_RandA and BD_ADDRA to obtain Link_KA, and perform an encryption operation on Link_RandB and BD_ADDRB to obtain Link_KB. Then, the master device can XOR according to Link_KA and Link_KB to get Kab.
  • an algorithm for example, the E21 algorithm
  • the slave device can use an algorithm (such as the E21 algorithm) to perform an encryption operation on Link_RandA and BD_ADDRA to obtain Link_KA, and perform an encryption operation on Link_RandB and BD_ADDRB to obtain Link_KB. Then, the slave device can XOR according to Link_KA and Link_KB to get Kab.
  • an algorithm such as the E21 algorithm
  • the master device can be the responder and the slave device can be the requester.
  • the responder can generate a 128-bit random number AU_RANDA and send it to the requester in plain text. Both the responder and the requester use the E1 algorithm to encrypt the AU_RANDA, Kab, and BD_RANDB obtained separately to generate 32-bit SRESA and SRESB.
  • SRESA is generated by the master device as the responder
  • SRESB is generated by the slave device as the requester.
  • the requester sends SRESB to the responder, and the responder compares SRESA and SRESB. If they are equal, the authentication is passed, otherwise the authentication is not passed. After performing this authentication, the roles of the master device and the slave device are exchanged.
  • the master device acts as the requester and the slave device responder in the same way for authentication.
  • the electronic device 100 and the accessory device 200 After the electronic device 100 and the accessory device 200 are authenticated, the electronic device 100 and the accessory device 200 establish a Bluetooth connection for data transmission, and the electronic device 100 and the accessory device 200 can use the link key Kab to encrypt their respective transmitted data.
  • the electronic device 100 may also send a pairing mode modification request to the accessory device 200 in other ways.
  • the accessory device 200 may also respond to the electronic device 100 through pairing mode modification in other ways.
  • the electronic device 100 may also send a pairing mode modification request to the accessory device 200 through a GATT command.
  • the accessory device 200 After the accessory device 200 enters the pairable mode (inquiry scan state), it can modify the response to the electronic device 100 through the pairing mode.
  • the accessory device 200 supports near field communication (NFC) or Wi-Fi
  • the electronic device 100 may also send a pairing mode modification request to the accessory device 200 via NFC or Wi-Fi.
  • the accessory device 200 may also send the pairing mode modification response to the electronic device 100 via NFC or Wi-Fi.
  • FIG. 21 shows a schematic diagram of a system architecture 2100 provided by an embodiment of the present application.
  • the system 2100 may include: an electronic device 2101 and an accessory device 2102.
  • the electronic device 2101 may be the electronic device in the foregoing embodiment, and the accessory device 2102 may be the accessory device in the foregoing embodiment.
  • the electronic device 2101 may be a smart phone, a tablet computer, a personal computer, or the like.
  • the accessory device 2102 may be a Bluetooth headset, Bluetooth speaker, smart watch, or other devices that support Bluetooth functions.
  • the disclosed system, device, and method may be implemented in other ways.
  • the device embodiments described above are merely illustrative, for example, the division of the units is only a logical function division, and there may be other divisions in actual implementation, for example, multiple units or components may be combined or It can be integrated into another system, or some features can be ignored or not implemented.
  • the displayed or discussed mutual coupling or direct coupling or communication connection may be indirect coupling or communication connection through some interfaces, 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 displayed as units may or may not be physical units, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the objectives of the solutions of the embodiments.
  • the functional units in the various embodiments of the present application may be integrated into one processing unit, or each unit may exist alone physically, or two or more units may be integrated into one unit.
  • the function is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer readable storage medium.
  • the technical solution of the present application essentially or the part that contributes to the existing technology or the part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including Several instructions are used to make a computer device (which may be a personal computer, a server, or a network device, etc.) execute all or part of the steps of the methods described in the various embodiments of the present application.
  • the aforementioned storage media include: U disk, mobile hard disk, read-only memory (Read-Only Memory, ROM), random access memory (Random Access Memory, RAM), magnetic disk or optical disk and other media that can store program code .

Landscapes

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

Abstract

L'invention concerne un procédé de connexion Bluetooth et un appareil électronique. Le procédé de connexion Bluetooth consiste : après l'ouverture d'un boîtier d'un casque Bluetooth, à connecter le casque Bluetooth à un téléphone mobile préalablement connecté A et à envoyer un message publicitaire à énergie basse Bluetooth (BLE) à d'autres appareils environnants ; quand un téléphone mobile B a reçu le message publicitaire à BLE, à inviter un utilisateur à entrer un mot de passe de chiffrement ; et si l'authentification mutuelle du téléphone mobile B et du casque Bluetooth est réussie, à établir une connexion Bluetooth entre le téléphone mobile B et le casque Bluetooth. La mise en œuvre de modes de réalisation de la présente invention facilite l'amélioration du degré d'intelligence et de confidentialité d'un appareil électronique et exempte un utilisateur d'opérations complexes.
PCT/CN2020/112126 2019-08-30 2020-08-28 Procédé de connexion bluetooth et appareil électronique WO2021037208A1 (fr)

Applications Claiming Priority (6)

Application Number Priority Date Filing Date Title
CN201910816994 2019-08-30
CN201910816105.7 2019-08-30
CN201910816994.7 2019-08-30
CN201910816105 2019-08-30
CN201910844294.9 2019-09-06
CN201910844294.9A CN112449332B (zh) 2019-08-30 2019-09-06 一种蓝牙连接的方法和电子设备

Publications (1)

Publication Number Publication Date
WO2021037208A1 true WO2021037208A1 (fr) 2021-03-04

Family

ID=74684574

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2020/112126 WO2021037208A1 (fr) 2019-08-30 2020-08-28 Procédé de connexion bluetooth et appareil électronique

Country Status (1)

Country Link
WO (1) WO2021037208A1 (fr)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115038062A (zh) * 2022-06-01 2022-09-09 上海银基信息安全技术股份有限公司 一种蓝牙认证方法、装置及设备

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101399567A (zh) * 2007-09-26 2009-04-01 艾威梯软件技术(北京)有限公司 自动发起蓝牙连接认证的方法和认证发起设备
CN104320412A (zh) * 2014-11-11 2015-01-28 福建联迪商用设备有限公司 一种蓝牙pos、蓝牙pos安全连接的方法及装置
CN108024238A (zh) * 2017-11-07 2018-05-11 联发科技(新加坡)私人有限公司 信息处理方法、装置及存储介质
US20180247034A1 (en) * 2012-11-14 2018-08-30 Blackberry Limited Mobile communications device providing heuristic security authentication features and related methods

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101399567A (zh) * 2007-09-26 2009-04-01 艾威梯软件技术(北京)有限公司 自动发起蓝牙连接认证的方法和认证发起设备
US20180247034A1 (en) * 2012-11-14 2018-08-30 Blackberry Limited Mobile communications device providing heuristic security authentication features and related methods
CN104320412A (zh) * 2014-11-11 2015-01-28 福建联迪商用设备有限公司 一种蓝牙pos、蓝牙pos安全连接的方法及装置
CN108024238A (zh) * 2017-11-07 2018-05-11 联发科技(新加坡)私人有限公司 信息处理方法、装置及存储介质

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115038062A (zh) * 2022-06-01 2022-09-09 上海银基信息安全技术股份有限公司 一种蓝牙认证方法、装置及设备

Similar Documents

Publication Publication Date Title
CN112449332B (zh) 一种蓝牙连接的方法和电子设备
WO2021043286A1 (fr) Procédé de connexion bluetooth et dispositif électronique
WO2021036835A1 (fr) Procédé et système de recherche bluetooth, et appareil associé
JP7317242B2 (ja) ブルートゥース接続方法、システム、および電子デバイス
WO2021027616A1 (fr) Dispositif terminal, procédé et système pour réaliser une projection sur écran par toucher unique par télécommande
WO2021052178A1 (fr) Procédé et dispositif de connexion wi-fi
WO2021043170A1 (fr) Procédé de connexion bluetooth et appareil associé
WO2021043198A1 (fr) Procédé d'appariement bluetooth, et dispositif associé
WO2021043219A1 (fr) Procédé de reconnexion bluetooth et appareil associé
WO2020042119A1 (fr) Procédé et dispositif de transmission de message
WO2021037146A1 (fr) Procédé et dispositif de partage de fichier pour terminal mobile
WO2021093855A1 (fr) Procédé et dispositif de gestion de dispositif mobile
CN113676879A (zh) 一种分享信息的方法、电子设备和系统
WO2021227942A1 (fr) Procédé de partage d'informations, dispositifs électroniques et système
WO2021037208A1 (fr) Procédé de connexion bluetooth et appareil électronique
WO2021043250A1 (fr) Procédé de communication bluetooth, et dispositif associé
WO2022267974A1 (fr) Procédé de projection d'écran et appareil associé
WO2021218544A1 (fr) Système de fourniture de connexion sans fil, procédé et appareil électronique
WO2022007750A1 (fr) Procédé de partage d'écran, terminal, et support de stockage
WO2023025059A1 (fr) Système et procédé de communication
WO2024002137A1 (fr) Procédé de communication, système de communication et dispositif électronique
WO2023051204A1 (fr) Procédé d'interconnexion de dispositifs, dispositif électronique et support de stockage
WO2024037500A1 (fr) Procédé de communication et appareil associé
WO2024001812A1 (fr) Procédé de gestion de messages, dispositif électronique et système
WO2023142993A1 (fr) Procédé de détection, dispositif électronique et système associés

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: 20858855

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 20858855

Country of ref document: EP

Kind code of ref document: A1