Bluetooth pairing method and device

By using the classic Bluetooth protocol channel to send pairing status requests to Bluetooth devices in electronic devices, the problem of Bluetooth devices not being able to automatically pair in LEA mode is solved, and the automatic pairing connection between Bluetooth devices and new devices is realized, improving the user experience.

CN119012174APending Publication Date: 2024-11-22BEIJING XIAOMI MOBILE SOFTWARE CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202310553259.8
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-05-16
Publication Date
2024-11-22

AI Technical Summary

Technical Problem

When Bluetooth devices are connected to LEA mode, automatic pairing of the same account across devices cannot be achieved. Users need to manually operate to complete the pairing connection, which has a poor user experience.

Method used

By sending a pairing status request to the Bluetooth device using the classic Bluetooth protocol channel in an electronic device, the Bluetooth device enters the pairing status and establishes a pairing connection to achieve automatic pairing.

Benefits of technology

Automatic pairing of Bluetooth devices and new devices can be achieved without manual operation, improving user experience and suitable for devices compatible with LEA mode and classic Bluetooth mode.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119012174A_ABST
    Figure CN119012174A_ABST
Patent Text Reader

Abstract

The invention relates to the technical field of electronic equipment, and particularly provides a Bluetooth pairing method and device. The Bluetooth pairing method comprises the following steps: acquiring connection information from a server in response to an electronic equipment login account service, generating a pairing state request of Bluetooth equipment according to the connection information in response to receiving a low-power-consumption audio broadcast and a fast connection broadcast sent by the Bluetooth equipment, and sending a pairing state request to the Bluetooth device based on the classic Bluetooth protocol channel, and carrying out pairing connection with the Bluetooth device. In the embodiment of the invention, under the condition of cross-device same-account login, the pairing state request can be sent to the Bluetooth device by using the classic Bluetooth protocol channel, so that the Bluetooth device can enter the pairing state, automatic pairing connection between the Bluetooth device and the new device is realized, and the pairing connection between the Bluetooth device and the new device is realized. The method can be effectively suitable for Bluetooth equipment compatible with an LEA mode and a classic Bluetooth mode, a user does not need to manually operate the Bluetooth equipment to enter a pairing state, and the use experience of the user is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present disclosure relates to the technical field of electronic equipment, and in particular to a Bluetooth pairing method and device. Background Art

[0002] Bluetooth (BT, Blue Tooth) is one of the most common short-range wireless communication technologies. In related technologies, when a Bluetooth device is connected to an electronic device for the first time, the user is often required to manually complete the pairing process, which is relatively complicated and has a poor user experience. Summary of the invention

[0003] In order to improve the Bluetooth connection effect across devices with the same account, the embodiments of the present disclosure provide a Bluetooth pairing method, apparatus, electronic device, Bluetooth device and storage medium.

[0004] In a first aspect, an embodiment of the present disclosure provides a Bluetooth pairing method, which is applied to an electronic device, and the method includes:

[0005] In response to the electronic device logging into the account service, acquiring connection information corresponding to the account service from a server, the connection information indicating relevant information of a Bluetooth device connected to the electronic device;

[0006] In response to receiving the low power audio broadcast and the quick connect broadcast sent by the Bluetooth device, generating a pairing status request for the Bluetooth device according to the connection information;

[0007] The pairing state request is sent to the Bluetooth device based on the classic Bluetooth protocol channel, so as to establish a pairing connection with the Bluetooth device after the Bluetooth device enters the pairing state according to the pairing state request.

[0008] In some implementations, the connection information includes a device address and a key of the Bluetooth device; and in response to receiving a low-power audio broadcast and a quick connect broadcast sent by the Bluetooth device, generating a pairing status request of the Bluetooth device according to the connection information includes:

[0009] In response to receiving the low-power audio broadcast and the quick connect broadcast sent by the Bluetooth device, parsing to obtain the encrypted device address carried by the quick connect broadcast;

[0010] Decrypting the encrypted device address based on the key included in the connection information to obtain an actual device address;

[0011] In response to the actual device address being consistent with the device address included in the connection information, the pairing status request of the Bluetooth device is generated.

[0012] In some implementations, the sending the pairing state request to the Bluetooth device based on the classic Bluetooth protocol channel to establish a pairing connection with the Bluetooth device after the Bluetooth device enters the pairing state according to the pairing state request, includes:

[0013] Sending the pairing state request to the Bluetooth device based on the Rfcomm channel of the classic Bluetooth protocol, so that the Bluetooth device enters the pairing state according to the pairing state request;

[0014] In response to receiving a broadcast instruction sent by the Bluetooth device, a pairing connection with the Bluetooth device is established; the broadcast instruction is used to indicate that the Bluetooth device has entered a pairing state.

[0015] In some implementations, in response to receiving a broadcast instruction sent by the Bluetooth device, establishing a pairing connection with the Bluetooth device includes:

[0016] In response to receiving the broadcast instruction sent by the Bluetooth device, outputting an operation interface on a display interface of the electronic device;

[0017] In response to receiving a connection instruction through the operation interface, a pairing connection with the Bluetooth device is established.

[0018] In some implementations, the process of establishing a pairing connection with the Bluetooth device includes:

[0019] Generate first verification information and second verification information according to the device address of the Bluetooth device;

[0020] Sending the second verification information to the Bluetooth device, and receiving third verification information generated by the Bluetooth device according to the second verification information;

[0021] In response to the first verification information and the third verification information being verified successfully, it is determined that the electronic device is successfully paired and connected with the Bluetooth device.

[0022] In some implementations, the Bluetooth pairing method of the present disclosure further includes:

[0023] In response to receiving the low-power audio broadcast and the quick-connect broadcast sent by the Bluetooth device, hiding the Bluetooth device on the Bluetooth connection page of the electronic device.

[0024] In a second aspect, an embodiment of the present disclosure provides a Bluetooth pairing method, which is applied to a Bluetooth device, and the method includes:

[0025] In response to the historical Bluetooth connection mode between the Bluetooth device and the electronic device being a low-power audio connection, sending a low-power audio broadcast and a quick connection broadcast when the Bluetooth device is turned on;

[0026] Receive a pairing status request sent by the electronic device and enter a pairing state.

[0027] In some implementations, the Bluetooth pairing method of the present disclosure further includes:

[0028] In response to the Bluetooth device establishing a low-power audio connection with the electronic device, the quick connect broadcast address of the Bluetooth device is modified to a false address, and the low-power audio broadcast and the quick connect broadcast including the false address are sent when the Bluetooth connection is established with the electronic device next time.

[0029] In some implementations, the Bluetooth pairing method of the present disclosure further includes:

[0030] After entering the pairing state, stop sending the low power audio broadcast and / or the quick connect broadcast.

[0031] In some embodiments, the Bluetooth device includes a TWS headset, and the electronic device includes a mobile terminal.

[0032] In a third aspect, the present disclosure provides a Bluetooth pairing device, which is applied to an electronic device, and the device includes:

[0033] an information acquisition module, configured to acquire connection information corresponding to the account service from a server in response to the electronic device logging into the account service, wherein the connection information represents relevant information of a Bluetooth device connected to the electronic device;

[0034] a request generating module, configured to generate a pairing status request of the Bluetooth device according to the connection information in response to receiving the low power audio broadcast and the quick connect broadcast sent by the Bluetooth device;

[0035] The pairing connection module is configured to send the pairing state request to the Bluetooth device based on the classic Bluetooth protocol channel, so as to establish a pairing connection with the Bluetooth device after the Bluetooth device enters the pairing state according to the pairing state request.

[0036] In some implementations, the connection information includes a device address and a key of the Bluetooth device; and the request generation module is configured to:

[0037] In response to receiving the low-power audio broadcast and the quick connect broadcast sent by the Bluetooth device, parsing to obtain the encrypted device address carried by the quick connect broadcast;

[0038] Decrypting the encrypted device address based on the key included in the connection information to obtain an actual device address;

[0039] In response to the actual device address being consistent with the device address included in the connection information, the pairing status request of the Bluetooth device is generated.

[0040] In some embodiments, the pairing connection module is configured to:

[0041] Sending the pairing state request to the Bluetooth device based on the Rfcomm channel of the classic Bluetooth protocol, so that the Bluetooth device enters the pairing state according to the pairing state request;

[0042] In response to receiving a broadcast instruction sent by the Bluetooth device, a pairing connection with the Bluetooth device is established; the broadcast instruction is used to indicate that the Bluetooth device has entered a pairing state.

[0043] In some embodiments, the pairing connection module is configured to:

[0044] In response to receiving the broadcast instruction sent by the Bluetooth device, outputting an operation interface on a display interface of the electronic device;

[0045] In response to receiving a connection instruction through the operation interface, a pairing connection with the Bluetooth device is established.

[0046] In some embodiments, the pairing connection module is configured to:

[0047] Generate first verification information and second verification information according to the device address of the Bluetooth device;

[0048] Sending the second verification information to the Bluetooth device, and receiving third verification information generated by the Bluetooth device according to the second verification information;

[0049] In response to the first verification information and the third verification information being verified successfully, it is determined that the electronic device is successfully paired and connected with the Bluetooth device.

[0050] In some implementations, the request generation module is configured to:

[0051] In response to receiving the low-power audio broadcast and the quick-connect broadcast sent by the Bluetooth device, hiding the Bluetooth device on the Bluetooth connection page of the electronic device.

[0052] In a fourth aspect, an embodiment of the present disclosure provides a Bluetooth pairing device, which is applied to a Bluetooth device, and the device includes:

[0053] a broadcast sending module, configured to send a low-power audio broadcast and a quick connection broadcast when the Bluetooth device is turned on in response to the historical Bluetooth connection mode between the Bluetooth device and the electronic device being a low-power audio connection;

[0054] The request receiving module is configured to receive a pairing state request sent by the electronic device and enter a pairing state.

[0055] In some implementations, the broadcast sending module is configured to:

[0056] In response to the Bluetooth device establishing a low-power audio connection with the electronic device, the quick connect broadcast address of the Bluetooth device is modified to a false address, and the low-power audio broadcast and the quick connect broadcast including the false address are sent when the Bluetooth connection is established with the electronic device next time.

[0057] In some implementations, the broadcast sending module is configured to:

[0058] After entering the pairing state, stop sending the low power audio broadcast and / or the quick connect broadcast.

[0059] In some embodiments, the Bluetooth device includes a TWS headset, and the electronic device includes a mobile terminal.

[0060] In a fifth aspect, an embodiment of the present disclosure provides an electronic device, including:

[0061] Processor; and

[0062] A memory storing computer instructions, wherein the computer instructions are used to enable the processor to execute the method described in any embodiment of the first aspect.

[0063] In a sixth aspect, an embodiment of the present disclosure provides a Bluetooth device, including:

[0064] Processor; and

[0065] A memory storing computer instructions, wherein the computer instructions are used to enable the processor to execute the method described in any embodiment of the second aspect.

[0066] In a seventh aspect, an embodiment of the present disclosure provides a storage medium storing computer instructions, wherein the computer instructions are used to enable a computer to execute the method described in any embodiment of the first aspect or the second aspect.

[0067] The Bluetooth pairing method of the disclosed embodiment includes, in response to an electronic device logging into an account service, obtaining connection information corresponding to the account service from a server, in response to receiving a low-power audio broadcast and a quick connection broadcast sent by a Bluetooth device, generating a pairing status request for the Bluetooth device according to the connection information, and sending a pairing status request to the Bluetooth device based on a classic Bluetooth protocol channel, so as to establish a pairing connection with the Bluetooth device after the Bluetooth device enters the pairing state according to the pairing status request. In the disclosed embodiment, in the case of cross-device same account login, when the Bluetooth device is in LEA Bluetooth mode, a pairing status request can be sent to the Bluetooth device using the classic Bluetooth protocol channel, so that the Bluetooth device can enter the pairing state, and realize automatic pairing connection between the Bluetooth device and the new device, and it can be effectively applied to Bluetooth devices compatible with LEA mode and classic Bluetooth mode, without the need for the user to manually operate the Bluetooth device to enter the pairing state, thereby improving the user experience. BRIEF DESCRIPTION OF THE DRAWINGS

[0068] In order to more clearly illustrate the specific embodiments of the present disclosure or the technical solutions in the prior art, the drawings required for use in the specific embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are some embodiments of the present disclosure. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.

[0069] Figure 1 It is a schematic diagram of an application scenario of a Bluetooth pairing method according to some embodiments of the present disclosure.

[0070] Figure 2 is a flowchart of a Bluetooth pairing method according to some embodiments of the present disclosure.

[0071] Figure 3 is a flowchart of a Bluetooth pairing method according to some embodiments of the present disclosure.

[0072] Figure 4 is a flowchart of a Bluetooth pairing method according to some embodiments of the present disclosure.

[0073] Figure 5 is a flowchart of a Bluetooth pairing method according to some embodiments of the present disclosure.

[0074] Figure 6 is a flowchart of a Bluetooth pairing method according to some embodiments of the present disclosure.

[0075] Figure 7 It is a schematic diagram of the principle of the Bluetooth pairing method according to some embodiments of the present disclosure.

[0076] Figure 8 is a flowchart of a Bluetooth pairing method according to some embodiments of the present disclosure.

[0077] Fig. 9 is a structural block diagram of a Bluetooth pairing device according to some embodiments of the present disclosure.

[0078] Fig.10 is a structural block diagram of a Bluetooth pairing device according to some embodiments of the present disclosure.

[0079] Fig.11 is a structural block diagram of an electronic device according to some embodiments of the present disclosure. DETAILED DESCRIPTION

[0080] The technical solution of the present disclosure will be described clearly and completely below in conjunction with the accompanying drawings. Obviously, the described implementation is a part of the implementation of the present disclosure, rather than all the implementations. Based on the implementation in the present disclosure, all other implementations obtained by ordinary technicians in the field without creative work are within the scope of protection of the present disclosure. In addition, the technical features involved in the different implementations of the present disclosure described below can be combined with each other as long as they do not conflict with each other.

[0081] Bluetooth (BT, Blue Tooth) is one of the most common short-range wireless communication technologies. In recent years, with the popularity of TWS (True Wireless Stereo) headphones, major mobile terminal manufacturers have developed Bluetooth quick-connect technology, which can achieve instant connection when the headphone box is opened, greatly improving the user experience.

[0082] When a Bluetooth device establishes a Bluetooth connection with an electronic device for the first time, it needs to be paired, and the pairing process often requires manual settings by the user. For example, taking TWS headphones as an example, there are often buttons on the TWS headphone box. When the user needs to connect a new device, he needs to manually press and hold the button on the headphone box to put the headphones into pairing mode, thereby completing the pairing with the headphones on the new device. The process is relatively cumbersome.

[0083] In order to improve the user experience, in some related technical solutions, account services can be used to achieve Bluetooth quick connection across devices, thereby realizing automatic pairing of Bluetooth devices with multiple devices under the same account without manually long pressing the Bluetooth device button.

[0084] For example Figure 1As shown, after the user logs in to the personal account through mobile phone A1 and completes the pairing connection with earphone B, mobile phone A1 can upload the connection information of earphone B to server C and save it in correspondence with the user's personal account. The connection information may include, for example, the MAC address and key of earphone B. When the user changes to a new mobile phone A2, he logs in to the personal account using mobile phone A2. At this time, mobile phone A2 can obtain the previously uploaded connection information from the server, complete information interaction with earphone B based on the connection information, make it enter the pairing state and establish a Bluetooth connection. The whole process can be done without the user's perception, so that the user can put earphone B into the pairing state and establish a Bluetooth connection with mobile phone A2 without manual operation.

[0085] However, as the Bluetooth Special Interest Group (SIG) continues to update Bluetooth versions, more and more Bluetooth protocols are supported by electronic devices and Bluetooth devices. For example, the Bluetooth protocol version has been upgraded from version 1.0A launched in 1999 to subsequent versions 1.1, 2.0, 3.0, 4.0, 5.0 and now 5.2, among which the BR / EDR / AMP technology before version 4.0 is called classic Bluetooth mode, and the classic Bluetooth mode follows the classic Bluetooth version protocol to establish a Bluetooth connection. Versions after 4.0 are called low-power Bluetooth mode, and the low-power Bluetooth mode follows the low-power Bluetooth version protocol to establish a Bluetooth connection.

[0086] Among them, LEA (Low Energy Audio) technology is a new technology released in Bluetooth version 5.2. Compared with classic Bluetooth, LEA has many advantages such as lower power consumption, higher quality sound source, multiple streams, audio broadcasting, etc. It is the key development direction of Bluetooth technology. Nowadays, more and more mobile terminals and Bluetooth devices are beginning to follow up on LEA technology.

[0087] At present, Bluetooth devices supporting LEA mode must be compatible with classic Bluetooth mode. The inventor of this case found through research that for Bluetooth devices supporting LEA mode, Figure 1 In the example of Bluetooth pairing across devices with the same account, the new phone A2 will not be able to interact with the headset B, so the headset B cannot automatically enter the pairing state. The user can only manually press and hold the headset button to complete the Bluetooth pairing.

[0088] Further research revealed that this is because in traditional devices that do not support LEA mode, earphone B and mobile phone A1 can only establish a classic Bluetooth connection. After the earphone B is opened, it only sends a quick connection broadcast based on BLE (Bluetooth Low Energy). After the user logs in to his personal account on the new mobile phone A2, mobile phone A2 scans the quick connection broadcast of earphone B, and exchanges information according to the quick connection broadcast address, which can notify earphone B to enter the pairing state, and then complete the pairing connection between mobile phone A2 and earphone B.

[0089] However, in devices that support LEA mode, when the LEA function is turned on, earphone B needs to send quick connect broadcasts and LEA broadcasts alternately after the cover is opened. In order to avoid broadcast conflicts, the quick connect broadcast address needs to be replaced with a false address so that the quick connect broadcast address cannot be connected, and the quick connect broadcast only serves to discover the device.

[0090] In a single-device connection scenario, after the headset B and the phone A1 complete the first pairing, there is no need to use the quick connect broadcast to exchange information again, so this method is fine. Figure 1 In the same account cross-device pairing scenario, if the headset B established a BLE connection with mobile phone A1 last time, after the user logged in to the personal account on mobile phone A2, the quick connect broadcast address sent by headset B has been replaced with a fake address. At this time, mobile phone A2 can no longer establish a BLE connection with headset B based on the quick connect broadcast to exchange information, and can no longer notify headset B to enter the pairing state. In this case, the user can only manually press and hold the button on headset B again to make headset B re-enter the pairing mode and manually complete the pairing connection between headset B and mobile phone A2.

[0091] It can be seen that for the same account cross-device pairing scenario, when the Bluetooth device is connected to LEA mode, automatic pairing across devices cannot be achieved, and users can only manually pair and connect, which results in a poor user experience.

[0092] Based on the defects existing in the above-mentioned related technologies, the embodiments of the present disclosure provide a Bluetooth pairing method, apparatus, electronic device, Bluetooth device and storage medium, aiming to enable a Bluetooth device supporting LEA mode to automatically enter a pairing state by interacting with an electronic device in a same account cross-device scenario, and to achieve a pairing connection with the electronic device.

[0093] In a first aspect, the embodiments of the present disclosure provide a Bluetooth pairing method, which can be applied to an electronic device and processed by a processor of the electronic device. The electronic device described in the present disclosure can be any type of device suitable for implementation, such as a smart phone, a tablet computer, a wearable device, a laptop computer, etc., and the present disclosure does not limit this.

[0094] like Figure 2As shown, in some embodiments, the Bluetooth pairing method of the present disclosure example includes:

[0095] S210: In response to the electronic device logging into the account service, obtaining connection information corresponding to the account service from the server.

[0096] In the embodiment of the present disclosure, the server can provide personal account services for users, and users can log in to their personal accounts on any electronic device, so that they can obtain relevant account services included in the personal account from the server. Figure 1 In the example scenario, a user can register a personal account using mobile phone A1. After the personal account is successfully registered, the user can log in to the same personal account on mobile phone A2.

[0097] When a user uses an electronic device, the electronic device can upload the connection information of the Bluetooth device that has established a Bluetooth connection to the server for storage. The connection information may include, for example, the device address, key, and other related information of the Bluetooth device. Thus, when the user logs into the personal account service on other electronic devices, the user can obtain the previously stored connection information of the Bluetooth device from the server.

[0098] Taking a typical scenario where a user replaces a new mobile phone as an example, the user uses the old mobile phone A1 to register and log in to a personal account. During the use of mobile phone A1, mobile phone A1 is used to establish a Bluetooth connection with headset B. The Bluetooth connection mode can include classic Bluetooth and LEA Bluetooth. After mobile phone A1 and headset B are paired and a Bluetooth connection is established, mobile phone A1 can upload the connection information with headset B to server C, and server C saves the connection information in the user's personal account.

[0099] After the user changes to a new mobile phone A2, the user can log in to the personal account service of the same account on the mobile phone A2. At this time, the mobile phone A2 can receive the connection information of each Bluetooth device previously saved under the personal account from the server C.

[0100] S220: In response to receiving the low-power audio broadcast and the quick connect broadcast sent by the Bluetooth device, generate a pairing status request for the Bluetooth device according to the connection information.

[0101] Combined with the above, it can be seen that when a Bluetooth device establishes an LEA connection with an electronic device, when the Bluetooth device is turned on, the Bluetooth device will alternately send low-power audio broadcasts (also known as LEA broadcasts) and quick connect broadcasts. At the same time, the quick connect broadcast address in the quick connect broadcast will be replaced with a false address, so that the quick connect broadcast only serves to discover the device.

[0102] Therefore, for the example scenario of the present disclosure, after the user logs in to the account service on the new electronic device, the Bluetooth device is turned on and sends a broadcast, and the electronic device that logs in to the account service can receive the broadcast sent by the Bluetooth device.

[0103] In some example scenarios, when only the quick connect broadcast sent by the Bluetooth device is received, it means that the last connection mode of the Bluetooth device is classic Bluetooth, and the quick connect broadcast address in the quick connect broadcast is the real address. In this case, the electronic device logged into the account service can normally establish a BLE connection through the quick connect broadcast for information interaction, thereby sending a pairing status request to the Bluetooth device, so that the Bluetooth device enters the pairing state. This situation is the same as the traditional solution, and those skilled in the art can understand and fully implement it by referring to the relevant technology, and this disclosure will not go into details.

[0104] However, in some other example scenarios, when an electronic device receives both LEA broadcast and Quick Connect broadcast sent by a Bluetooth device, it indicates that the last connection mode of the Bluetooth device was LEA Bluetooth, and the Quick Connect broadcast address in the Quick Connect broadcast has been replaced with a fake address. In this case, the electronic device logged into the account service can no longer establish a BLE connection through the Quick Connect broadcast for information exchange, and can no longer send a pairing status request to the Bluetooth device to put the Bluetooth device into a pairing state. The Bluetooth pairing method of the disclosed embodiment is designed to solve the problem in this case.

[0105] In the disclosed embodiment, when the electronic device simultaneously receives the LEA broadcast and the quick connect broadcast sent by the Bluetooth device, it can first determine whether the Bluetooth device sending the LEA broadcast and the quick connect broadcast is a Bluetooth device paired with the same account based on the connection information previously obtained from the server. If so, a pairing status request for the Bluetooth device can be generated, which refers to a data request for putting the Bluetooth device into a pairing state.

[0106] For example, in some implementations, the quick connect broadcast sent by the Bluetooth device can be parsed, and the quick connect broadcast carries the device address of the Bluetooth device, which can be, for example, the MAC address of the Bluetooth device. The device address obtained by parsing is compared with the device address obtained from the server. If the comparison is consistent, it can be determined that the Bluetooth device sending the broadcast is a Bluetooth device paired with the same account, and a corresponding pairing status request can be generated. This is explained in the following implementation of the present disclosure and will not be described in detail here.

[0107] S230: Send a pairing status request to the Bluetooth device based on the classic Bluetooth protocol channel, so as to establish a pairing connection with the Bluetooth device after the Bluetooth device enters the pairing status request.

[0108] In combination with the foregoing, it can be understood that since the QuickConnect broadcast address is replaced with a fake address, the electronic device cannot establish a BLE connection with the Bluetooth device based on the QuickConnect broadcast address, and cannot send a pairing status request through the BLE channel.

[0109] Therefore, in the embodiment of the present disclosure, the sending of the pairing status request will be realized by using the classic Bluetooth protocol channel. The classic Bluetooth protocol channel may include, for example, the Rfcomm protocol channel, which is a protocol channel in the classic Bluetooth mode, different from the Gatt protocol channel of the BLE protocol, and the Rfcomm protocol channel can realize data transmission without establishing a connection.

[0110] Thus, in some examples of the present disclosure, the electronic device can use the Rfcomm protocol channel of the classic Bluetooth protocol to send a pairing status request to the Bluetooth device. After receiving the pairing status request, the Bluetooth device can enter the pairing state according to the pairing status request. After the Bluetooth device enters the pairing state, the electronic device can complete the pairing connection with the Bluetooth device. The pairing connection process is described in the following implementation of the present disclosure and will not be described in detail here.

[0111] It is worth noting that when a Bluetooth device is paired and connected with an electronic device for the first time, the two need to establish a connection in classic Bluetooth mode. Therefore, the pairing connections described in the following implementation methods of this disclosure are all classic Bluetooth connections, which will not be repeated in this disclosure below.

[0112] Combined with the above, it can be seen that in the embodiments of the present disclosure, when the Bluetooth device was last connected to LEA mode Bluetooth, the Bluetooth pairing connection across devices with the same account can still be achieved, and the user can pair without being aware of it. Figure 1 The example scenario illustrates this process.

[0113] Combination Figure 1 As shown, first, the user uses the old mobile phone A1 to successfully pair and connect with the headset B for the first time, and the old mobile phone A1 uploads the relevant connection information of the headset B to the server C, and the server C saves the connection information under the user's personal account.

[0114] When using old mobile phone A1, users can freely choose the Bluetooth connection mode with headset B. For example, users can choose to establish a classic Bluetooth connection with headset B, or they can choose to establish a LEA Bluetooth connection with headset B. Moreover, based on the quick connection broadcast, headset B and mobile phone A1 can realize the quick connection function, that is, headset B can be connected as soon as the cover is opened.

[0115] Assume that the last Bluetooth connection mode of headset B with old mobile phone A1 was LEA connection, and then the user changes to new mobile phone A2 and logs in to the same account service on new mobile phone A2, new mobile phone A2 can obtain the connection information of various Bluetooth devices including headset B from server C.

[0116] When the user opens the headset box cover of headset B, headset B alternately sends quick connect broadcasts and LEA broadcasts. According to the Bluetooth pairing method of the embodiment of the present disclosure, after receiving the quick connect broadcast and LEA broadcast sent by headset B, mobile phone A2 determines through analysis that the Bluetooth device sending the broadcast is headset B that has been paired with other devices on the same account before, and then generates a corresponding pairing status request. In the case where information exchange cannot be performed through the BLE channel, the pairing status request is sent to headset B using the classic Bluetooth protocol, such as the Rfcomm channel. After receiving the pairing status request, headset B can enter the pairing state, so that mobile phone A2 can achieve pairing connection with headset B.

[0117] Referring to the above example process, it can be seen that after the user changes the mobile phone, the automatic pairing and connection of the Bluetooth device can still be achieved through the account service. Moreover, it is also applicable to devices that are compatible with both LEA Bluetooth and classic Bluetooth. The user does not need to manually operate the Bluetooth device to enter the pairing state. Bluetooth pairing across devices with the same account can be achieved without the user's awareness, and a classic Bluetooth connection between the Bluetooth device and the new mobile phone A2 can be established.

[0118] From the above, it can be seen that in the embodiments of the present disclosure, when the same account is logged in across devices, when the Bluetooth device is in LEA Bluetooth mode, the classic Bluetooth protocol channel can be used to send a pairing status request to the Bluetooth device, so that the Bluetooth device can enter the pairing state, thereby realizing automatic pairing and connection between the Bluetooth device and the new device. Moreover, it can be effectively applied to Bluetooth devices compatible with LEA mode and classic Bluetooth mode, without the need for users to manually operate the Bluetooth device to enter the pairing state, thereby improving the user experience.

[0119] like Figure 3 As shown, in some embodiments, the Bluetooth pairing method of the present disclosure example generates a pairing status request of a Bluetooth device according to connection information, including:

[0120] S221: In response to receiving the low-power audio broadcast and the quick connect broadcast sent by the Bluetooth device, parse and obtain the encrypted device address carried by the quick connect broadcast.

[0121] S222. Decrypt the encrypted device address based on the key included in the connection information to obtain the actual device address.

[0122] S223: In response to the actual device address being consistent with the device address included in the connection information, generate a pairing status request for the Bluetooth device.

[0123] In the disclosed embodiment, when the electronic device simultaneously receives a low power audio LEA broadcast and a quick connect broadcast sent by a Bluetooth device, it indicates that the last connection mode of the Bluetooth device is LEA Bluetooth.

[0124] It can be understood that the broadcast field of the Quick Connect broadcast carries the classic Bluetooth address, and the classic Bluetooth address is encrypted based on the key information when it was previously paired with other devices of the same account. Therefore, in the embodiment of the present disclosure, after receiving the Quick Connect broadcast, the electronic device can parse the Quick Connect broadcast to obtain the encrypted classic Bluetooth address it carries, which is also the encrypted device address described in the present disclosure.

[0125] In combination with the aforementioned S210, it can be understood that after the electronic device logs in to the account service, the electronic device can obtain the connection information of each Bluetooth device from the server. For example, in some implementations, the connection information includes the device address and key of the Bluetooth device.

[0126] Therefore, in the embodiment of the present disclosure, the encrypted device address obtained by parsing is decrypted based on the key of the connection information obtained from the server, so as to obtain the decrypted actual device address, that is, the actual classic Bluetooth address.

[0127] It can be understood that the device address in the connection information obtained from the server indicates the address information obtained when the Bluetooth device was paired with the device with the same account before, and the actual device address obtained by decryption indicates the address information of the Bluetooth device paired with the electronic device this time. Therefore, the actual device address is compared with the device address included in the connection information. If the two are consistent, it means that the Bluetooth device paired this time is the Bluetooth device that has been paired with the same account.

[0128] For example Figure 1 In the example scenario, after the user changes to a new phone A2 and logs in to the personal account service, when the user turns on earphone B, phone A2 receives and parses the quick connection broadcast sent by earphone B, and decrypts the encrypted device information obtained based on the key obtained from server C to obtain the actual device address, and then compares the actual device address with the device address obtained from server C. If the two are consistent, it means that the Bluetooth device currently paired with phone A2 is the earphone B that was previously paired with the old phone A1.

[0129] In the embodiments of the present disclosure, those skilled in the art may understand the specific principles and processes of the encryption and decryption algorithms by referring to the relevant technologies, and will not be elaborated on herein.

[0130] When it is determined that the actual device address obtained by decryption is consistent with the device address included in the connection information, a pairing status request corresponding to the Bluetooth device can be generated, and the pairing status request is sent to the Bluetooth device through the Rfcomm channel of the classic Bluetooth protocol through the aforementioned method process, so that the Bluetooth device enters the pairing state according to the pairing status request. Figure 4 Provide explanation.

[0131] like Figure 4As shown, in some embodiments, the Bluetooth pairing method of the present disclosure example, the process of establishing a pairing connection with a Bluetooth device includes:

[0132] S410: Send a pairing state request to the Bluetooth device based on the Rfcomm channel of the classic Bluetooth protocol, so that the Bluetooth device enters a pairing state according to the pairing state request.

[0133] S420: In response to receiving the broadcast instruction sent by the Bluetooth device, establish a pairing connection with the Bluetooth device.

[0134] In combination with the foregoing, it can be seen that after generating a pairing status request for a Bluetooth device, since the Quick Connect broadcast address in the Quick Connect broadcast is a false address, it is impossible to establish a BLE connection through the Quick Connect broadcast for information exchange.

[0135] Therefore, in some embodiments of the present disclosure, the electronic device will use the Rfcomm channel of the classic Bluetooth protocol to send a pairing status request to the Bluetooth device. After receiving the pairing status request, the Bluetooth device can enter the pairing state. The pairing state indicates the state in which the electronic device can be paired. In the related art, the pairing state can generally be entered by long pressing a button on the Bluetooth device, but this operation is not required in the embodiments of the present disclosure.

[0136] After the Bluetooth device enters the pairing state, it can send a broadcast instruction to the electronic device. The broadcast instruction is used to indicate that the Bluetooth device has entered the pairing state, so that the electronic device can be paired with the Bluetooth device. Figure 5 Describes the pairing connection process.

[0137] like Figure 5 As shown, in some embodiments, the Bluetooth pairing method of the present disclosure example, the process of establishing a pairing connection with a Bluetooth device includes:

[0138] S510: Generate first verification information and second verification information according to the device address of the Bluetooth device.

[0139] S520: Send second verification information to the Bluetooth device, and receive third verification information generated by the Bluetooth device according to the second verification information.

[0140] S530: In response to the first verification information and the third verification information being verified successfully, determine that the electronic device is successfully paired and connected with the Bluetooth device.

[0141] In the disclosed embodiment, after receiving the broadcast instruction sent by the Bluetooth device, the electronic device indicates that the Bluetooth device has entered the pairing state, so that the electronic device can generate the first verification information and the second verification information according to the device address (such as MAC address) of the Bluetooth device.

[0142] The first verification information and the second verification information can be the same verification code information, for example, the first verification information is verification code 1, and the second verification information is verification code 2. The first verification information is stored in the electronic device, and the second verification information is sent by the electronic device to the Bluetooth device. In some embodiments, the electronic device can also encrypt the second verification information with a key and then send it to the Bluetooth device.

[0143] After receiving the second verification information, the Bluetooth device can use the key to decrypt the second verification information, and perform data processing on the second verification information, such as encryption processing, to generate third verification information, and return the third verification information to the electronic device.

[0144] After receiving the third verification information returned by the Bluetooth device, the electronic device can decrypt the third verification information and compare the decryption result with the first verification information retained by itself. If the comparison passes, the electronic device and the Bluetooth device are authenticated, and it is determined that the electronic device and the Bluetooth device are paired and connected successfully.

[0145] In the embodiments of the present disclosure, the pairing and connection process is merely an exemplary implementation, and those skilled in the art can undoubtedly understand and fully implement it with reference to the relevant technology, and the present disclosure will not elaborate on it.

[0146] Through the above implementation process, automatic pairing and connection between Bluetooth devices and electronic devices in the same account cross-device scenario can be achieved, and the entire process can be carried out without the user's perception. That is, after the user changes to a new mobile phone and logs in to the same account service, after turning on the Bluetooth device, the new mobile phone and the Bluetooth device can be automatically paired and connected through the above method process.

[0147] In other implementations, after the Bluetooth device enters the pairing state, a corresponding operation interface may also be output and displayed on the electronic device, and the user may choose whether to enter the pairing connection. Figure 6 and Figure 7 Provide explanation.

[0148] like Figure 6 As shown, in some embodiments, the Bluetooth pairing method of the present disclosure example includes:

[0149] S610: In response to receiving a broadcast instruction sent by a Bluetooth device, outputting an operation interface on a display interface of the electronic device.

[0150] S620: In response to receiving a connection instruction through the operation interface, establishing a pairing connection with the Bluetooth device.

[0151] In the disclosed embodiment, after the electronic device receives the broadcast instruction sent by the Bluetooth device, it indicates that the Bluetooth device has entered the pairing state, so that the electronic device can output a quick connection animation and a quick connection operation interface on the display interface. The quick connection animation is used to display the animation effect of the Bluetooth device, and the operation interface is used to provide a user interaction window. The user can select the corresponding function by clicking on the operation interface. After the user clicks to select the corresponding operation, the electronic device can receive the operation instruction. For example, the user chooses to connect the Bluetooth device through the operation interface, so that the electronic device can receive the connection instruction and establish a pairing connection with the Bluetooth device through the aforementioned method process.

[0152] For example Figure 7 In this example, the electronic device is a mobile phone, and the Bluetooth device is a TWS headset. When the mobile phone receives the broadcast command sent by the TWS headset, the mobile phone display interface can output the following display: Figure 7 The operation interface is used to display the animation effect of the TWS headset. At the same time, virtual buttons are provided on the operation interface, and users can click the corresponding virtual buttons to generate corresponding operation instructions.

[0153] For example, in one example, if the user clicks the "Cancel" button, the pairing process stops and the phone is no longer paired with the TWS. For example, in another example, if the user clicks the "Connect" button, a corresponding connection instruction is generated, so that the above-mentioned Figure 5 The example method process is to establish a pairing connection between the mobile phone and the TWS headset, which will not be described in detail in this disclosure.

[0154] From the above, it can be seen that in the embodiments of the present disclosure, after the Bluetooth device enters the pairing state, an operation interface can be output on the electronic device, so that the user can observe the dynamic effects of the Bluetooth device through the operation interface, and can also perform human-computer interaction corresponding operations through the operation interface, thereby improving the user experience.

[0155] In some embodiments, when an electronic device receives both a LEA broadcast and a quick connect broadcast sent by a Bluetooth device at the same time, if no processing is performed on the setting page, the Bluetooth connection page in the setting of the electronic device will display that a LEA Bluetooth device has been identified and that the LEA Bluetooth device is an invalid Bluetooth device. At this time, if the user manually clicks to connect to the LEA Bluetooth device, a connection conflict will result, which is likely to cause a connection failure.

[0156] Therefore, in the embodiments of the present disclosure, when the electronic device simultaneously receives the LEA broadcast and the quick connect broadcast sent by the Bluetooth device, the electronic device can hide the LEA Bluetooth device in the Bluetooth connection page. In other words, although the electronic device discovers the LEA broadcast sent by the Bluetooth device, it does not display the Bluetooth device in the Bluetooth connection page, but automatically establishes a classic Bluetooth pairing and connection with the Bluetooth device through the above method process.

[0157] From the above, it can be seen that in the embodiments of the present disclosure, when the same account is logged in across devices, when the Bluetooth device is in LEA Bluetooth mode, the classic Bluetooth protocol channel can be used to send a pairing status request to the Bluetooth device, so that the Bluetooth device can enter the pairing state, thereby realizing automatic pairing and connection between the Bluetooth device and the new device. Moreover, it can be effectively applied to Bluetooth devices compatible with LEA mode and classic Bluetooth mode, without the need for users to manually operate the Bluetooth device to enter the pairing state, thereby improving the user experience.

[0158] In a second aspect, the embodiments of the present disclosure provide a Bluetooth pairing method, which can be applied to a Bluetooth device and is processed by a processor of the Bluetooth device. The Bluetooth device described in the present disclosure can be any type of device suitable for implementation, such as a Bluetooth headset, a TWS headset, Bluetooth glasses, a smart bracelet, a smart watch, etc., and the present disclosure does not limit this.

[0159] like Figure 8 As shown, in some embodiments, the Bluetooth pairing method of the present disclosure example includes:

[0160] S810: In response to the historical Bluetooth connection mode between the Bluetooth device and the electronic device being a low-power audio connection, when the Bluetooth device is turned on, sending a low-power audio broadcast and a quick connection broadcast.

[0161] S820: Receive a pairing status request sent by the electronic device and enter a pairing state.

[0162] For ease of understanding, the following will be Figure 1 Taking the scenario shown as an example, the Bluetooth pairing method process of the disclosed example is fully described.

[0163] exist Figure 1 In the example, the electronic devices include mobile phone A1 and mobile phone A2, and the Bluetooth device is TWS headset B.

[0164] First, the user logs in to the account service on mobile phone A1 and establishes a pairing connection between mobile phone A1 and headset B. Mobile phone A1 sends the connection information of headset B to server C, and server C saves the connection information under the user account. When the user subsequently uses headset B, he can automatically connect to mobile phone A1 by opening the cover. At the same time, headset B supports both LEA Bluetooth and classic Bluetooth modes, and the user can freely choose the Bluetooth connection mode through mobile phone A1 or headset B. For the quick connection process and principle between headset B and mobile phone A1, those skilled in the art can refer to the relevant technology, and this disclosure will not go into details.

[0165] In one example, suppose the user selects LEA Bluetooth mode when earphone B is connected to mobile phone A1. At this time, earphone B replaces the quick connect broadcast address in the quick connect broadcast with a completely unrelated false address, so that the quick connect broadcast only serves to be discovered, and cannot establish a BLE connection with the electronic device for information exchange.

[0166] Then, the user logs in to the account service on mobile phone A2, and mobile phone A2 obtains the connection information of all Bluetooth devices previously paired with mobile phone A1 from server C. The user opens the headphone box cover of headset B, and headset B alternately sends fast connection broadcasts and LEA broadcasts. The fast connection broadcast is the broadcast replaced with a fake address.

[0167] Mobile phone A2 receives the quick connect broadcast and LEA broadcast sent by headset B, and through the aforementioned Bluetooth pairing method process, generates and sends a pairing status request to headset B through the Rfcomm protocol channel of the classic Bluetooth protocol.

[0168] After receiving the pairing status request, earphone B can enter the pairing state, which is equivalent to the user long pressing the button on the earphone box to enter the pairing state. Figure 7 As shown, an operation interface is output on the display screen. After the user clicks the "Connect" virtual button, mobile phone A2 completes the pairing connection with headset B based on the aforementioned method process.

[0169] Of course I can understand. Figure 7 The example in which the user chooses whether to pair and connect is only an example implementation of the present disclosure. The mobile phone A2 can also automatically complete the pairing and connection with the headset B, so that the same account can be paired and connected across devices without the user's awareness. This will not be repeated here.

[0170] In some implementations, after receiving a pairing state request sent by an electronic device and entering a pairing state, the Bluetooth device may stop sending low power audio LEA broadcasts and / or quick connect broadcasts to reduce power consumption.

[0171] From the above, it can be seen that in the embodiments of the present disclosure, when the same account is logged in across devices, when the Bluetooth device is in LEA Bluetooth mode, the classic Bluetooth protocol channel can be used to send a pairing status request to the Bluetooth device, so that the Bluetooth device can enter the pairing state, thereby realizing automatic pairing and connection between the Bluetooth device and the new device. Moreover, it can be effectively applied to Bluetooth devices compatible with LEA mode and classic Bluetooth mode, without the need for users to manually operate the Bluetooth device to enter the pairing state, thereby improving the user experience.

[0172] On the third aspect, an embodiment of the present disclosure provides a Bluetooth pairing device, which can be applied to electronic devices. The electronic devices described in the present disclosure can be any type of device suitable for implementation, such as smart phones, tablet computers, wearable devices, laptop computers, etc., and the present disclosure does not limit this.

[0173] like Fig. 9 As shown, in some embodiments, the Bluetooth pairing device of the present disclosure example includes:

[0174] The information acquisition module 10 is configured to acquire connection information corresponding to the account service from the server in response to the electronic device logging into the account service, where the connection information represents relevant information of the Bluetooth device connected to the electronic device;

[0175] The request generating module 20 is configured to generate a pairing status request of the Bluetooth device according to the connection information in response to receiving the low power audio broadcast and the quick connect broadcast sent by the Bluetooth device;

[0176] The pairing connection module 30 is configured to send a pairing state request to the Bluetooth device based on the classic Bluetooth protocol channel, so as to establish a pairing connection with the Bluetooth device after the Bluetooth device enters the pairing state according to the pairing state request.

[0177] In some implementations, the connection information includes a device address and a key of the Bluetooth device; the request generation module 20 is configured to:

[0178] In response to receiving a low-power audio broadcast and a quick connect broadcast sent by a Bluetooth device, parsing to obtain an encrypted device address carried in the quick connect broadcast;

[0179] Decrypting the encrypted device address based on the key included in the connection information to obtain the actual device address;

[0180] In response to the actual device address being consistent with the device address included in the connection information, a pairing status request of the Bluetooth device is generated.

[0181] In some embodiments, the pairing connection module 30 is configured to:

[0182] Send a pairing status request to the Bluetooth device based on the Rfcomm channel of the classic Bluetooth protocol, so that the Bluetooth device enters the pairing state according to the pairing status request;

[0183] In response to receiving a broadcast instruction sent by the Bluetooth device, a pairing connection with the Bluetooth device is established; the broadcast instruction is used to indicate that the Bluetooth device has entered a pairing state.

[0184] In some embodiments, the pairing connection module 30 is configured to:

[0185] In response to receiving a broadcast instruction sent by the Bluetooth device, outputting an operation interface on a display interface of the electronic device;

[0186] In response to receiving a connection instruction through the operation interface, a pairing connection with the Bluetooth device is established.

[0187] In some embodiments, the pairing connection module 30 is configured to:

[0188] Generate first verification information and second verification information according to the device address of the Bluetooth device;

[0189] Sending second verification information to the Bluetooth device, and receiving third verification information generated by the Bluetooth device according to the second verification information;

[0190] In response to the first verification information and the third verification information being verified successfully, it is determined that the electronic device is paired and connected successfully with the Bluetooth device.

[0191] In some implementations, the request generation module 20 is configured to:

[0192] In response to receiving the low power audio broadcast and the quick connect broadcast sent by the Bluetooth device, the Bluetooth device is hidden on the Bluetooth connection page of the electronic device.

[0193] From the above, it can be seen that in the embodiments of the present disclosure, when the same account is logged in across devices, when the Bluetooth device is in LEA Bluetooth mode, the classic Bluetooth protocol channel can be used to send a pairing status request to the Bluetooth device, so that the Bluetooth device can enter the pairing state, thereby realizing automatic pairing and connection between the Bluetooth device and the new device. Moreover, it can be effectively applied to Bluetooth devices compatible with LEA mode and classic Bluetooth mode, without the need for users to manually operate the Bluetooth device to enter the pairing state, thereby improving the user experience.

[0194] Fourthly, an embodiment of the present disclosure provides a Bluetooth pairing device, which can be applied to Bluetooth devices. The Bluetooth devices of the present disclosure can be any type of device suitable for implementation, such as Bluetooth headsets, TWS headsets, Bluetooth glasses, smart bracelets, smart watches, etc., and the present disclosure does not impose any restrictions on this.

[0195] like Fig.10As shown, in some embodiments, the Bluetooth pairing device of the present disclosure example includes:

[0196] The broadcast sending module 40 is configured to send a low-power audio broadcast and a quick connection broadcast when the Bluetooth device is turned on in response to the historical Bluetooth connection mode between the Bluetooth device and the electronic device being a low-power audio connection;

[0197] The request receiving module 50 is configured to receive a pairing state request sent by the electronic device and enter a pairing state.

[0198] In some embodiments, the broadcast sending module 40 is configured to:

[0199] In response to the Bluetooth device establishing a low-power audio connection with the electronic device, the quick connect broadcast address of the Bluetooth device is modified to a false address, and the low-power audio broadcast and the quick connect broadcast including the false address are sent when the Bluetooth connection is established with the electronic device next time.

[0200] In some embodiments, the broadcast sending module 40 is configured to:

[0201] After entering the pairing state, stop sending low-power audio broadcasts and / or quick connect broadcasts.

[0202] In some embodiments, the Bluetooth device includes a TWS headset, and the electronic device includes a mobile terminal.

[0203] From the above, it can be seen that in the embodiments of the present disclosure, when the same account is logged in across devices, when the Bluetooth device is in LEA Bluetooth mode, the classic Bluetooth protocol channel can be used to send a pairing status request to the Bluetooth device, so that the Bluetooth device can enter the pairing state, thereby realizing automatic pairing and connection between the Bluetooth device and the new device. Moreover, it can be effectively applied to Bluetooth devices compatible with LEA mode and classic Bluetooth mode, without the need for users to manually operate the Bluetooth device to enter the pairing state, thereby improving the user experience.

[0204] In a fifth aspect, an embodiment of the present disclosure provides an electronic device, including:

[0205] Processor; and

[0206] A memory stores computer instructions, wherein the computer instructions are used to enable a processor to execute the method of any embodiment of the first aspect.

[0207] In a sixth aspect, an embodiment of the present disclosure provides a Bluetooth device, including:

[0208] Processor; and

[0209] A memory stores computer instructions, wherein the computer instructions are used to enable a processor to execute a method of any embodiment of the second aspect.

[0210] In a seventh aspect, an embodiment of the present disclosure provides a storage medium storing computer instructions, wherein the computer instructions are used to enable a computer to execute a method of any of the above embodiments.

[0211] Fig.11 The electronic device structure in some embodiments of the present disclosure is shown in FIG. Fig.11 Electronic devices according to some embodiments of the present disclosure are described.

[0212] Reference Fig.11 , the electronic device 1800 may include one or more of the following components: a processing component 1802 , a memory 1804 , a power component 1806 , a multimedia component 1808 , an audio component 1810 , an input / output (I / O) interface 1812 , a sensor component 1816 , and a communication component 1818 .

[0213] The processing component 1802 generally controls the overall operation of the electronic device 1800, such as operations associated with display, phone calls, data communications, camera operations, and recording operations. The processing component 1802 may include one or more processors 1820 to execute instructions. In addition, the processing component 1802 may include one or more modules to facilitate interaction between the processing component 1802 and other components. For example, the processing component 1802 may include a multimedia module to facilitate interaction between the multimedia component 1808 and the processing component 1802. For another example, the processing component 1802 may read executable instructions from a memory to implement electronic device related functions.

[0214] The memory 1804 is configured to store various types of data to support operations on the electronic device 1800. Examples of such data include instructions for any application or method operating on the electronic device 1800, contact data, phone book data, messages, pictures, videos, etc. The memory 1804 can be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic disk or optical disk.

[0215] The power supply component 1806 provides power to the various components of the electronic device 1800. The power supply component 1806 may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power to the electronic device 1800.

[0216] The multimedia component 1808 includes a display screen that provides an output interface between the electronic device 1800 and the user. In some embodiments, the multimedia component 1808 includes a front camera and / or a rear camera. When the electronic device 1800 is in an operating mode, such as a shooting mode or a video mode, the front camera and / or the rear camera can receive external multimedia data. Each front camera and rear camera can be a fixed optical lens system or have a focal length and optical zoom capability.

[0217] The audio component 1810 is configured to output and / or input audio signals. For example, the audio component 1810 includes a microphone (MIC), and when the electronic device 1800 is in an operation mode, such as a call mode, a recording mode, and a voice recognition mode, the microphone is configured to receive an external audio signal. The received audio signal can be further stored in the memory 1804 or sent via the communication component 1818. In some embodiments, the audio component 1810 also includes a speaker for outputting audio signals.

[0218] I / O interface 1812 provides an interface between processing component 1802 and peripheral interface modules, such as keyboards, click wheels, buttons, etc. These buttons may include but are not limited to: home button, volume button, start button, and lock button.

[0219] The sensor assembly 1816 includes one or more sensors for providing various aspects of status assessment for the electronic device 1800. For example, the sensor assembly 1816 can detect the open / closed state of the electronic device 1800, the relative positioning of components, such as the display and keypad of the electronic device 1800, and the sensor assembly 1816 can also detect the position change of the electronic device 1800 or a component of the electronic device 1800, the presence or absence of user contact with the electronic device 1800, the orientation or acceleration / deceleration of the electronic device 1800, and the temperature change of the electronic device 1800. The sensor assembly 1816 may include a proximity sensor configured to detect the presence of a nearby object without any physical contact. The sensor assembly 1816 may also include an optical sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, the sensor assembly 1816 may also include an accelerometer, a gyroscope sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.

[0220] The communication component 1818 is configured to facilitate wired or wireless communication between the electronic device 1800 and other devices. The electronic device 1800 can access a wireless network based on a communication standard, such as Wi-Fi, 2G, 3G, 4G, 5G or 6G, or a combination thereof. In an exemplary embodiment, the communication component 1818 receives a broadcast signal or broadcast-related information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communication component 1818 also includes a near field communication (NFC) module to facilitate short-range communication. For example, the NFC module can be implemented based on radio frequency identification (RFID) technology, infrared data association (IrDA) technology, ultra-wideband (UWB) technology, Bluetooth (BT) technology and other technologies.

[0221] In an exemplary embodiment, the electronic device 1800 may be implemented by one or more application specific integrated circuits (ASICs), digital signal processors (DSPs), digital signal processing devices (DSPDs), programmable logic devices (PLDs), field programmable gate arrays (FPGAs), controllers, microcontrollers, microprocessors, or other electronic components.

[0222] Obviously, the above embodiments are merely examples for the purpose of clear explanation, and are not intended to limit the embodiments. For those skilled in the art, other different forms of changes or modifications can be made based on the above description. It is not necessary and impossible to list all the embodiments here. The obvious changes or modifications derived therefrom are still within the scope of protection of the present invention.

Claims

1. A Bluetooth pairing method, characterized in that: Applied to electronic equipment, the method comprises: In response to the electronic device logging into the account service, acquiring connection information corresponding to the account service from a server, the connection information indicating relevant information of a Bluetooth device connected to the electronic device; In response to receiving the low-power audio broadcast and the quick connect broadcast sent by the Bluetooth device, generating a pairing status request for the Bluetooth device according to the connection information; The pairing state request is sent to the Bluetooth device based on the classic Bluetooth protocol channel, so as to establish a pairing connection with the Bluetooth device after the Bluetooth device enters the pairing state according to the pairing state request.

2. The method according to claim 1, characterized in that: The connection information includes a device address and a key of the Bluetooth device; and in response to receiving a low-power audio broadcast and a quick connection broadcast sent by the Bluetooth device, generating a pairing status request of the Bluetooth device according to the connection information, comprising: In response to receiving the low-power audio broadcast and the quick connect broadcast sent by the Bluetooth device, parsing to obtain the encrypted device address carried by the quick connect broadcast; Decrypting the encrypted device address based on the key included in the connection information to obtain an actual device address; In response to the actual device address being consistent with the device address included in the connection information, the pairing status request of the Bluetooth device is generated.

3. The method according to claim 1, characterized in that: The sending the pairing state request to the Bluetooth device based on the classic Bluetooth protocol channel to establish a pairing connection with the Bluetooth device after the Bluetooth device enters the pairing state according to the pairing state request, includes: Sending the pairing state request to the Bluetooth device based on the Rfcomm channel of the classic Bluetooth protocol, so that the Bluetooth device enters the pairing state according to the pairing state request; In response to receiving a broadcast instruction sent by the Bluetooth device, a pairing connection with the Bluetooth device is established; the broadcast instruction is used to indicate that the Bluetooth device has entered a pairing state.

4. The method according to claim 3, characterized in that The step of establishing a pairing connection with the Bluetooth device in response to receiving a broadcast instruction sent by the Bluetooth device comprises: In response to receiving the broadcast instruction sent by the Bluetooth device, outputting an operation interface on a display interface of the electronic device; In response to receiving a connection instruction through the operation interface, a pairing connection with the Bluetooth device is established.

5. The method according to any one of claims 1 to 4, characterized in that: The process of establishing a pairing connection with the Bluetooth device includes: Generate first verification information and second verification information according to the device address of the Bluetooth device; Sending the second verification information to the Bluetooth device, and receiving third verification information generated by the Bluetooth device according to the second verification information; In response to the first verification information and the third verification information being verified successfully, it is determined that the electronic device is successfully paired and connected with the Bluetooth device.

6. The method according to claim 1, characterized in that Also includes: In response to receiving the low-power audio broadcast and the quick-connect broadcast sent by the Bluetooth device, hiding the Bluetooth device on the Bluetooth connection page of the electronic device.

7. A Bluetooth pairing method, characterized in that: Applied to a Bluetooth device, the method comprises: In response to the historical Bluetooth connection mode between the Bluetooth device and the electronic device being a low-power audio connection, sending a low-power audio broadcast and a quick connection broadcast when the Bluetooth device is turned on; Receive a pairing status request sent by the electronic device and enter a pairing state.

8. The method according to claim 7, characterized in that Also includes: In response to the Bluetooth device establishing a low-power audio connection with the electronic device, the quick connect broadcast address of the Bluetooth device is modified to a false address, and the low-power audio broadcast and the quick connect broadcast including the false address are sent when the Bluetooth connection is established with the electronic device next time.

9. The method according to claim 7, characterized in that: Also includes: After entering the pairing state, stop sending the low power audio broadcast and / or the quick connect broadcast.

10. The method according to any one of claims 7 to 9, characterized in that: The Bluetooth device includes a TWS headset, and the electronic device includes a mobile terminal.

11. A Bluetooth pairing device, characterized in that: Applied to electronic equipment, the device comprises: an information acquisition module, configured to acquire connection information corresponding to the account service from a server in response to the electronic device logging into the account service, wherein the connection information represents relevant information of a Bluetooth device connected to the electronic device; a request generating module, configured to generate a pairing status request of the Bluetooth device according to the connection information in response to receiving the low power audio broadcast and the quick connect broadcast sent by the Bluetooth device; The pairing connection module is configured to send the pairing state request to the Bluetooth device based on the classic Bluetooth protocol channel, so as to establish a pairing connection with the Bluetooth device after the Bluetooth device enters the pairing state according to the pairing state request.

12. A Bluetooth pairing device, characterized in that: Applied to a Bluetooth device, the device comprises: a broadcast sending module, configured to send a low-power audio broadcast and a quick connection broadcast when the Bluetooth device is turned on in response to the historical Bluetooth connection mode between the Bluetooth device and the electronic device being a low-power audio connection; The request receiving module is configured to receive a pairing state request sent by the electronic device and enter a pairing state.

13. An electronic device, characterized in that: include: processor; as well as A memory storing computer instructions, wherein the computer instructions are used to enable the processor to execute the method according to any one of claims 1 to 6.

14. A Bluetooth device, characterized in that: include: processor; as well as A memory storing computer instructions, wherein the computer instructions are used to enable the processor to execute the method according to any one of claims 7 to 10.

15. A storage medium, characterized in that: Computer instructions are stored, and the computer instructions are used to make a computer execute the method according to any one of claims 1 to 6, or execute the method according to any one of claims 7 to 10.