Bluetooth communication method and device, electronic equipment and storage medium

By providing a protocol option interface in Bluetooth devices, users are allowed to switch Bluetooth protocols, which solves the problem of missing connections in low-power mode and ensures the normal use and user experience of Bluetooth devices.

CN118632383APending Publication Date: 2024-09-10BEIJING XIAOMI MOBILE SOFTWARE CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202310216458.X
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-03-07
Publication Date
2024-09-10

AI Technical Summary

Technical Problem

Bluetooth devices are prone to missing connections in low-power mode, especially when interference from the external environment or packet loss occurs, causing some kit devices to be unable to receive data normally, affecting user experience.

Method used

By providing a protocol option interface, users can freely switch Bluetooth protocols, so that when a connection failure occurs in one of the protocols, they can switch to other protocols to establish a Bluetooth connection, ensuring the normal use of Bluetooth devices, especially for Bluetooth suite devices, reducing the cost of suite devices Risk of leaky connections.

Benefits of technology

Through protocol switching, the normal use of Bluetooth devices is ensured, the risk of missed connections of kit devices is reduced, and the user experience is improved.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118632383A
    Figure CN118632383A
Patent Text Reader

Abstract

The invention relates to the technical field of electronic equipment, and particularly provides a Bluetooth communication method and device, electronic equipment and a storage medium. The Bluetooth communication method comprises the steps of sending a query instruction to a Bluetooth device in response to establishment of pairing connection with the Bluetooth device, outputting and displaying a protocol option interface of the Bluetooth device in response to the fact that the Bluetooth device comprises at least two Bluetooth protocols, and establishing Bluetooth communication connection with the Bluetooth device based on a target protocol determined through the protocol option interface. In the embodiment of the invention, the Bluetooth protocol can be freely switched through the protocol option interface, so that when one protocol has a connection fault and the like, the other protocol can be switched to establish the Bluetooth connection, the normal use of the Bluetooth equipment is ensured, and especially for the Bluetooth suite equipment, the risk of missing connection of the suite equipment is reduced.
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 devices, and in particular to a Bluetooth communication method, device, electronic device and storage medium. Background Art

[0002] Bluetooth (BT, Blue Tooth) is one of the most common short-range wireless communication technologies. In recent years, with the continuous update of Bluetooth versions by the Bluetooth Special Interest Group (SIG, Bluetooth Special Interest Group), there are many Bluetooth protocols supported by existing devices on the market, such as the classic Bluetooth protocol, the low energy (LE, Low Energy) Bluetooth protocol, etc. When electronic devices establish Bluetooth connections through these Bluetooth protocols, there may be problems such as connection failure and disconnection. Summary of the invention

[0003] In order to improve the Bluetooth connection effect between electronic devices, the embodiments of the present disclosure provide a Bluetooth communication method, device, electronic device and storage medium.

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

[0005] In response to establishing a pairing connection with a Bluetooth device, sending a query instruction to the Bluetooth device, wherein the query instruction is used to query a Bluetooth protocol of the Bluetooth device;

[0006] In response to the Bluetooth device including at least two Bluetooth protocols, outputting and displaying a protocol option interface of the Bluetooth device;

[0007] A Bluetooth communication connection is established with the Bluetooth device based on the target protocol determined through the protocol option interface.

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

[0009] Send a pairing instruction to the Bluetooth device, so that the Bluetooth device establishes a pairing connection with the main control device according to the pairing instruction; wherein the pairing instruction is a pairing instruction of the classic Bluetooth protocol.

[0010] In some implementations, in response to the Bluetooth device including at least two Bluetooth protocols, outputting and displaying a protocol option interface of the Bluetooth device includes:

[0011] In response to the Bluetooth protocol of the Bluetooth device including the classic Bluetooth protocol and the low-power Bluetooth protocol, the protocol option interface is output and displayed; wherein the protocol option interface includes options for the classic Bluetooth protocol and the low-power Bluetooth protocol, or the protocol option interface includes a switch option for the low-power Bluetooth protocol.

[0012] In some implementations, establishing a Bluetooth communication connection with the Bluetooth device based on the target protocol determined through the protocol option interface includes:

[0013] Receiving an operation instruction from a user through the protocol option interface, and determining the target protocol corresponding to the operation instruction according to the operation instruction;

[0014] In response to the target protocol being a low power Bluetooth protocol, a Bluetooth communication connection with the Bluetooth device is established based on the low power Bluetooth protocol.

[0015] In some implementations, the Bluetooth device includes at least two suite devices; in response to the target protocol being a low-power Bluetooth protocol, establishing a Bluetooth communication connection with the Bluetooth device based on the low-power Bluetooth protocol includes:

[0016] In response to the target protocol being a low power Bluetooth protocol, scanning a first broadcast signal of any first suite device, and parsing the first broadcast signal to determine a suite identity parsing code of the suite device;

[0017] receiving a second broadcast signal of another set of equipment, and parsing the second broadcast signal to determine a set identification code of the other set of equipment;

[0018] In response to successfully resolving the suite identification code using the suite identity resolution code, it is determined that the successfully resolved suite device and the first suite device belong to the same Bluetooth device, and a Bluetooth communication connection is established with each suite device of the same Bluetooth device.

[0019] In some embodiments, the Bluetooth device includes a TWS headset, and the TWS headset includes a first set of devices and a second set of devices, the first set of devices is a left earphone, and the second set of devices is a right earphone.

[0020] In some implementations, after establishing a Bluetooth communication connection with the Bluetooth device based on the target protocol determined through the protocol option interface, the method further includes:

[0021] Storing the Bluetooth address of the Bluetooth device and the target protocol in a preset storage space;

[0022] When establishing a pairing connection with the Bluetooth device, the corresponding target protocol is determined from the preset storage space based on the Bluetooth address of the Bluetooth device, and a Bluetooth communication connection with the Bluetooth device is established according to the target protocol.

[0023] In some implementations, storing the Bluetooth address of the Bluetooth device and the target protocol in a preset storage space includes:

[0024] In response to the Bluetooth protocol corresponding to the Bluetooth device being stored in the preset storage space, the stored Bluetooth protocol is updated based on the target protocol.

[0025] In some implementations, after establishing a Bluetooth communication connection with the Bluetooth device based on the target protocol determined through the protocol option interface, the method further includes:

[0026] Disconnect the connection with other Bluetooth protocols of the Bluetooth device except the target protocol.

[0027] In a second aspect, an embodiment of the present disclosure provides a Bluetooth communication device, which is applied to an electronic device, and the device includes:

[0028] an instruction sending module, configured to send a query instruction to the Bluetooth device in response to establishing a pairing connection with the Bluetooth device, wherein the query instruction is used to query the Bluetooth protocol of the Bluetooth device;

[0029] an interface display module, configured to output and display a protocol option interface of the Bluetooth device in response to the Bluetooth device including at least two Bluetooth protocols;

[0030] The Bluetooth connection module is configured to establish a Bluetooth communication connection with the Bluetooth device based on the target protocol determined through the protocol option interface.

[0031] In some implementations, the instruction sending module is configured to:

[0032] Send a pairing instruction to the Bluetooth device, so that the Bluetooth device establishes a pairing connection with the main control device according to the pairing instruction; wherein the pairing instruction is a pairing instruction of the classic Bluetooth protocol.

[0033] In some embodiments, the interface display module is configured to:

[0034] In response to the Bluetooth protocol of the Bluetooth device including the classic Bluetooth protocol and the low-power Bluetooth protocol, the protocol option interface is output and displayed; wherein the protocol option interface includes options for the classic Bluetooth protocol and the low-power Bluetooth protocol, or the protocol option interface includes a switch option for the low-power Bluetooth protocol.

[0035] In some embodiments, the Bluetooth connection module is configured to:

[0036] Receiving an operation instruction from a user through the protocol option interface, and determining the target protocol corresponding to the operation instruction according to the operation instruction;

[0037] In response to the target protocol being a low power Bluetooth protocol, a Bluetooth communication connection with the Bluetooth device is established based on the low power Bluetooth protocol.

[0038] In some embodiments, the Bluetooth connection module is configured to:

[0039] In response to the target protocol being a low power Bluetooth protocol, scanning a first broadcast signal of any first suite device, and parsing the first broadcast signal to determine a suite identity parsing code of the suite device;

[0040] receiving a second broadcast signal of another set of equipment, and parsing the second broadcast signal to determine a set identification code of the other set of equipment;

[0041] In response to successfully resolving the suite identification code using the suite identity resolution code, it is determined that the successfully resolved suite device and the first suite device belong to the same Bluetooth device, and a Bluetooth communication connection is established with each suite device of the same Bluetooth device.

[0042] In some embodiments, the Bluetooth device includes a TWS headset, and the TWS headset includes a first set of devices and a second set of devices, the first set of devices is a left earphone, and the second set of devices is a right earphone.

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

[0044] Storing the Bluetooth address of the Bluetooth device and the target protocol in a preset storage space;

[0045] When establishing a pairing connection with the Bluetooth device, the corresponding target protocol is determined from the preset storage space based on the Bluetooth address of the Bluetooth device, and a Bluetooth communication connection with the Bluetooth device is established according to the target protocol.

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

[0047] In response to the Bluetooth protocol corresponding to the Bluetooth device being stored in the preset storage space, the stored Bluetooth protocol is updated based on the target protocol.

[0048] In some embodiments, the Bluetooth connection module is configured to:

[0049] Disconnect the connection with other Bluetooth protocols of the Bluetooth device except the target protocol.

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

[0051] Processor; and

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

[0053] In a fourth 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 according to any embodiment of the first aspect.

[0054] The Bluetooth communication method of the disclosed embodiment includes sending a query instruction to the Bluetooth device in response to establishing a pairing connection with the Bluetooth device, outputting and displaying a protocol option interface of the Bluetooth device in response to the Bluetooth device including at least two Bluetooth protocols, and establishing a Bluetooth communication connection with the Bluetooth device based on a target protocol determined through the protocol option interface. In the disclosed embodiment, the Bluetooth protocol can be freely switched through the protocol option interface, so that in the event of a connection failure in one of the protocols, the Bluetooth connection can be switched to another protocol to ensure the normal use of the Bluetooth device, especially for Bluetooth package devices, reducing the risk of missed connection of the package device. BRIEF DESCRIPTION OF THE DRAWINGS

[0055] 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.

[0056] Figure 1 is an architectural diagram of a Bluetooth communication system in some implementations of the present disclosure.

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

[0058] Figure 3 It is a scenario diagram of the Bluetooth communication method in some embodiments of the present disclosure.

[0059] Figure 4 It is a scenario diagram of the Bluetooth communication method in some embodiments of the present disclosure.

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

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

[0062] Figure 7 It is a structural block diagram of a Bluetooth communication device in some implementation modes of the present disclosure.

[0063] Figure 8 It is a structural block diagram of an electronic device according to some implementations of the present disclosure. DETAILED DESCRIPTION

[0064] 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.

[0065] Bluetooth (BT) is one of the most common short-range wireless communication technologies. In recent years, as the Bluetooth Special Interest Group (SIG) has continuously updated the Bluetooth version, 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. In the Bluetooth 4.0 version protocol, SIG defines four Bluetooth technologies, namely BR (Basic Rate), EDR (Enhanced Data Rate), AMP (Alternate MAC / PHY) and LE (Low Energy).

[0066] Among them, the BR / EDR / AMP technology before version 4.0 is called the 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.

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

[0068] For example, taking TWS (True Wireless Stereo) headphones as an example, for TWS headphones that support LE Audio Bluetooth mode, the left and right ears can independently establish Bluetooth connections with mobile terminals, and the audio of the left and right headphones can be independently controlled, thus realizing spatial audio. In addition, the headphones consume less power in LE Audio mode, which extends the battery life of the headphones, further reduces the size of the headphones, and improves the sound quality.

[0069] However, the inventor of this case found that in some actual scenarios, when the TWS headset establishes a Bluetooth connection with the mobile terminal in LE Audio mode, it is easy for one of the headsets to fail to connect, resulting in only one of the headsets being available. Further research found that this is because in LE Audio mode, the left and right headsets are two components in the package and need to establish connections with the mobile terminal separately. However, under the influence of external environmental interference or factors such as packet loss, after the mobile terminal establishes a Bluetooth connection with one of the headsets, it is easy to fail to scan the other headset, resulting in a missed connection.

[0070] In the event of a missed connection, one of the TWS earphones will not be able to receive data normally, resulting in only one side of the earphone being available. Moreover, if external interference factors are difficult to eliminate, there is a high probability that a missed connection will occur even if the user repeatedly reconnects, affecting the user experience.

[0071] Based on the defects existing in the above-mentioned related technologies, the embodiments of the present disclosure provide a Bluetooth communication method, apparatus, electronic device and storage medium, aiming to allow users to freely switch Bluetooth protocols through a protocol option interface, so that when a connection failure occurs in one of the protocols, it is possible to switch to other protocols to establish a Bluetooth connection, thereby ensuring the normal use of the Bluetooth device, especially for Bluetooth package devices, reducing the risk of missed connection of the package device.

[0072] Figure 1 The scene architecture diagram of the Bluetooth communication system in some embodiments of the present disclosure is shown below. Figure 1 The application scenarios of the embodiments of the present disclosure are described.

[0073] like Figure 1As shown, in some implementations of the present disclosure, the Bluetooth communication system includes an electronic device 10 and a Bluetooth device 20.

[0074] The electronic device 10 refers to a master device in a Bluetooth communication connection, which is used to initiate a Bluetooth communication connection with the Bluetooth device 20, and corresponding Bluetooth function settings. In the embodiments of the present disclosure, the electronic device 10 can be any device type suitable for implementation, such as a smart phone, a tablet computer, a laptop computer, a personal digital assistant (PDA), etc., and the present disclosure does not limit this. For example, Figure 1 In the figure, the electronic device 10 is taken as an example of a smart phone.

[0075] The Bluetooth device 20 refers to a device that establishes a Bluetooth communication connection with the electronic device 10, and is used to receive a pairing request from the electronic device 10 to complete the pairing connection with the electronic device 10, and to implement functions such as music playback and voice calls by receiving data from the electronic device 10 after the connection. In the embodiments of the present disclosure, the Bluetooth device 20 can be any type of device suitable for implementation, such as a smartphone, a tablet computer, a smart watch, a TWS headset, etc., and the present disclosure does not limit this. For example, Figure 1 In the figure, the Bluetooth device 20 takes a TWS headset as an example.

[0076] It is worth noting that some Bluetooth devices 20 often include two or more sub-devices, and these sub-devices together constitute the Bluetooth device 20. Figure 1 The example TWS headset includes a left earphone 21 and a right earphone 22. The left earphone 21 and the right earphone 22 are each an independent sub-device, and the two are matched together to form a TWS headset.

[0077] In the embodiment of the present disclosure, such a Bluetooth device including two or more sub-devices is defined as a "package device", and each sub-device included in the package device is a "suite device", that is, the package device includes two or more suite devices. Figure 1 Taking the exemplary TWS earphones as an example, the left earphone 21 is a kit device, and the right earphone 22 is another kit device. Some TWS earphones also include an earphone box, which can also serve as a third kit device. These kit devices are used as a set to form a set device, namely, a Bluetooth device 20.

[0078] Those skilled in the art can undoubtedly understand and fully implement the concepts of the above-mentioned "package equipment" and "suite equipment", and the present disclosure will not elaborate on this. In addition, the package equipment described in the present disclosure is not limited to the TWS headset in the above example, but can also be any other type of equipment suitable for implementation, such as a keyboard and mouse set, a stereo set, etc., and the present disclosure does not limit this.

[0079] In the embodiments of the present disclosure, both the electronic device 10 and the Bluetooth device 20 are provided with a Bluetooth communication module, and for a set device, each of the set devices included therein is also provided with a Bluetooth communication module, so that the Bluetooth communication connection between the electronic device 10 and the Bluetooth device 20, and between the electronic device 10 and each of the set devices of the Bluetooth device 20 can be achieved through the Bluetooth communication module. In one example, the Bluetooth communication module may include a Bluetooth chip and a corresponding radio frequency circuit, which can be undoubtedly understood and fully implemented by those skilled in the art, and will not be elaborated in this disclosure.

[0080] In addition, it should be noted that the Bluetooth device 20 is not limited to Figure 1 The set device in the example may also be a single Bluetooth device. For example, the Bluetooth device 20 may also be a smart phone, or the Bluetooth device 20 may also be a smart watch. In this way, the Bluetooth device 20 is not a complete set of devices but a separate device. Those skilled in the art may also understand this, and the present disclosure will not elaborate on this.

[0081] In the embodiment of the present disclosure, the Bluetooth communication module of the electronic device 10 may include multiple Bluetooth protocols, and the Bluetooth protocol may include a classic Bluetooth protocol and a low-power Bluetooth protocol. The low-power Bluetooth protocol is the LE Audio protocol, which will be collectively referred to as the low-power Bluetooth protocol hereinafter.

[0082] For example, in some implementations, the electronic device 10 may support both classic Bluetooth and low-power Bluetooth protocols, and the Bluetooth device 20 may also support both classic Bluetooth and low-power Bluetooth protocols. Thus, the electronic device 10 may establish a connection with the Bluetooth device 20 via the classic Bluetooth protocol or via the low-power Bluetooth protocol.

[0083] Of course, those skilled in the art can understand that the Bluetooth protocol can also include other standard protocols and is not limited to the above-mentioned classic Bluetooth and low-power Bluetooth, which will not be elaborated in this disclosure.

[0084] In the above Figure 1 Based on the following Figure 2 The Bluetooth communication method according to the embodiment of the present disclosure is described. The Bluetooth communication method according to the embodiment of the present disclosure can be applied to the electronic device 10 and executed by the processor of the electronic device 10.

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

[0086] S210: In response to establishing a pairing connection with a Bluetooth device, sending a query instruction to the Bluetooth device.

[0087] In the disclosed embodiment, the electronic device 10 can establish a pairing connection with the Bluetooth device 20 through any Bluetooth protocol, thereby achieving Bluetooth communication between the electronic device 10 and the Bluetooth device 20.

[0088] It is understandable that early Bluetooth devices generally only support the classic Bluetooth protocol, so there are a large number of Bluetooth devices that only support the classic Bluetooth protocol in the market. In order to be compatible with the old protocol, the newly launched Bluetooth devices need to support both the classic Bluetooth protocol and the low-power Bluetooth protocol. In other words, among the existing Bluetooth devices, some Bluetooth devices only support the classic Bluetooth protocol, and some Bluetooth devices can support both the classic Bluetooth and low-power Bluetooth protocols.

[0089] Therefore, in some embodiments of the present disclosure, considering that current Bluetooth devices at least support the classic Bluetooth protocol, when the electronic device 10 establishes a pairing connection with the Bluetooth device 20, a connection can be established through the classic Bluetooth protocol to ensure that the two can be paired successfully.

[0090] Figure 3 A schematic diagram of a scenario in which an electronic device 10 is paired with a Bluetooth device 20 in some embodiments of the present disclosure is shown. Figure 3 In the example, the electronic device 10 takes a smart phone as an example, and the Bluetooth device 20 takes a TWS headset as an example.

[0091] like Figure 3 As shown in (a), when the user wants to establish a pairing connection between the electronic device 10 and the Bluetooth device 20, the user can open the Bluetooth setting interface on the electronic device 10, so that the electronic device 10 starts scanning the Bluetooth broadcast signals of other Bluetooth devices in the current scene. Figure 3 In example (a), a total of three Bluetooth device broadcast signals are scanned in the current scene, namely "TWS headset", "laptop" and "Bluetooth headset".

[0092] Users can Figure 3 Click "TWS headset" on the interface shown in (a), so that the electronic device 10 can send a pairing instruction to the TWS headset through the classic Bluetooth protocol. After receiving the pairing instruction, the TWS headset can establish a Bluetooth communication connection with the electronic device in the classic Bluetooth mode by parsing the pairing instruction. After the electronic device 10 and the TWS headset are successfully paired, the display interface of the electronic device 10 can be as follows Figure 3 As shown in (b), that is, the paired device is a TWS headset.

[0093] As can be seen from the foregoing, the Bluetooth device 20 will at least support the classic Bluetooth protocol, so pairing and connecting with the Bluetooth device 20 through the classic Bluetooth protocol can ensure that the electronic device 10 and the Bluetooth device 20 can be successfully paired. Some Bluetooth devices 20 also support the low-power Bluetooth protocol, that is, they support both the classic Bluetooth and low-power Bluetooth protocols. In the embodiment of the present disclosure, after the electronic device 10 establishes a pairing connection with the Bluetooth device 20, the electronic device 10 can send a query instruction to the Bluetooth device 20 to query the Bluetooth protocol supported by the Bluetooth device 20.

[0094] For example Figure 3 In the example scenario, after the electronic device 10 establishes a pairing connection with the TWS headset through the classic Bluetooth protocol, the electronic device 10 can send a query instruction to the TWS headset, where the query instruction is used to query the Bluetooth protocol supported by the TWS headset.

[0095] For example, in one example, the TWS headset supports both the classic Bluetooth protocol and the low-power Bluetooth protocol. After receiving the query instruction sent by the electronic device 10, the TWS headset can return the query result to the electronic device 10. The query result carries the Bluetooth protocols it supports, namely, the classic Bluetooth protocol and the low-power Bluetooth protocol.

[0096] S220: In response to the Bluetooth device including at least two Bluetooth protocols, output and display a protocol option interface of the Bluetooth device.

[0097] In the disclosed embodiment, after the electronic device 10 sends a query instruction to the Bluetooth device 20, the Bluetooth device 20 may return a query result to the electronic device 10, and the query result carries all Bluetooth protocols included in the Bluetooth device 20. For example, in the above example, if the Bluetooth device 20 supports both the classic Bluetooth protocol and the low-power Bluetooth protocol, the query result returned to the electronic device 10 may carry the identifiers of the classic Bluetooth protocol and the low-power Bluetooth protocol.

[0098] It is understandable that some Bluetooth devices 20 only support one Bluetooth protocol. For example, existing devices on the market may only support the classic Bluetooth protocol. In this case, the electronic device 10 and the Bluetooth device 20 can only establish a Bluetooth connection through the classic Bluetooth protocol. There is no need to consider the issue of protocol switching, and this disclosure will not go into details.

[0099] Some Bluetooth devices 20 support multiple Bluetooth protocols at the same time. For example, newly launched Bluetooth devices support both the classic Bluetooth protocol and the low-power Bluetooth protocol. In this case, the electronic device 10 and the Bluetooth device 20 can establish a Bluetooth connection through any Bluetooth protocol. In the embodiment of the present disclosure, a protocol option interface can be provided for users to freely switch Bluetooth protocols.

[0100] Specifically, when the electronic device 10 receives the query result returned by the Bluetooth device 20 and determines by parsing the query result that the Bluetooth device supports two or more Bluetooth protocols, the protocol option interface corresponding to the Bluetooth device 20 can be output on the display interface.

[0101] In some implementations, when the electronic device 10 determines that the Bluetooth device 20 includes at least two Bluetooth protocols, the electronic device 10 may directly output a display protocol option interface on the display screen for the user to select a Bluetooth protocol.

[0102] In other embodiments, see Figure 3 As shown in (b), after the electronic device 10 is paired and connected with the Bluetooth device 20, a setting button A may be displayed at the position corresponding to the Bluetooth device 20, and after the user clicks the setting button A, the setting interface of the Bluetooth device 20 may be entered. Therefore, in the embodiment of the present disclosure, when it is determined that the Bluetooth device 20 includes at least two Bluetooth protocols, the protocol option interface may be integrated into the setting interface of the Bluetooth device 20. That is, after the user clicks the setting button A, the setting interface of the Bluetooth device 20 may be entered, and the setting interface includes a protocol option interface for selecting a Bluetooth protocol.

[0103] Figure 4 Two implementations of the protocol option interface in the disclosed method are shown below. Figure 4 Explain them separately.

[0104] like Figure 4 As shown in (a), the protocol option interface includes various Bluetooth protocols included in the Bluetooth device 20. In this example, the Bluetooth device 20 is a TWS headset, which supports the classic Bluetooth protocol and the low-power Bluetooth protocol. Figure 4 In the example (a), the protocol option interface includes two options, namely "Classic Bluetooth Option" and "Low Power Bluetooth Option". The user can switch to the corresponding Bluetooth protocol connection by clicking on a Bluetooth protocol. For example, if the user clicks on Low Power Bluetooth, the Bluetooth protocol will be switched to establish a Bluetooth connection between the two.

[0105] like Figure 4 As shown in (b), the protocol option interface only includes a preset Bluetooth protocol of the Bluetooth device 20. In this example, the Bluetooth device 20 is a TWS headset, which supports the classic Bluetooth protocol and the low-power Bluetooth protocol. Figure 4In the example (a), the protocol option interface only includes the switch option of "Bluetooth Low Energy". Users can switch the Bluetooth protocol connection by selecting the on or off switch option. For example, when the user turns on the Bluetooth Low Energy switch, the Bluetooth Low Energy protocol is switched to establish a connection between the two; when the user turns off the Bluetooth Low Energy switch, the Bluetooth Classic protocol is switched to establish a connection between the two.

[0106] Of course, those skilled in the art will appreciate that the protocol option interface described in the present disclosure is not limited to Figure 4 As shown, it can also be any other interface suitable for implementation, and the present disclosure does not limit this.

[0107] S230: Establish a Bluetooth communication connection with the Bluetooth device based on the target protocol determined through the protocol option interface.

[0108] As can be seen from the above, the protocol option interface output displays the various Bluetooth protocols included in the Bluetooth device 20, and the user can select the corresponding Bluetooth protocol through the protocol option interface, so that the electronic device 10 can detect the corresponding user operation instruction through the protocol option interface, and determine the Bluetooth protocol selected by the user according to the user operation instruction, which is also the target protocol. After determining the target protocol, the electronic device 10 can establish a Bluetooth communication connection with the Bluetooth device 20 using the target protocol.

[0109] For example Figure 4 In the scenario shown in (a), when the user clicks on the "Low Power Bluetooth" option, the electronic device 10 can detect the operation instruction corresponding to the click operation, and determine the low power Bluetooth protocol as the target protocol based on the operation instruction, and then establish a Bluetooth communication connection with the Bluetooth device 20 through the low power Bluetooth protocol.

[0110] The process of establishing a connection between the electronic device 10 and the Bluetooth device 20 via low-power Bluetooth is described in the following embodiments of the present disclosure and will not be described in detail here.

[0111] It is understandable that in the above-mentioned related technical scenarios, when the electronic device 10 establishes a Bluetooth connection in the Bluetooth low energy mode with the Bluetooth device 20, due to factors such as environmental interference or parsing packet loss, it is easy for one or more kit devices included in the Bluetooth device 20 to be missed. In this case, the kit device that is missed cannot be used normally, and even if it is reconnected, it is easy to continue to miss the connection.

[0112] In the embodiment of the present disclosure, different Bluetooth protocols can be freely switched through the protocol option interface. For example, when the electronic device 10 and the Bluetooth device 20 have a missing connection under the low-power Bluetooth protocol, the user can switch the Bluetooth protocol to classic Bluetooth through the protocol option interface. Under the classic Bluetooth protocol, one of the kit devices of the Bluetooth device 20 can be used as the main device, and the other kit devices can be used as slave devices. The electronic device 10 only needs to establish a Bluetooth connection with the main device, and the main device and the slave device establish a Bluetooth connection, which can ensure that all kit devices can establish Bluetooth communication normally.

[0113] By comparison, it can be found that in the related technical solution, when a missed connection occurs under the low-power Bluetooth protocol, some of the kit devices of the Bluetooth device 20 in the related technology will not be able to establish normal Bluetooth communication, resulting in the inability to use the kit devices normally. For example, taking the TWS headset as an example, one side of the headset will be completely unusable. In the embodiment of the present disclosure, when a missed connection occurs under the low-power Bluetooth protocol, the protocol option interface can be used to switch to classic Bluetooth, thereby ensuring that each kit device of the Bluetooth device 20 can establish a Bluetooth connection normally. For example, taking the TWS headset as an example, although the use of the classic Bluetooth protocol will lose the advantages of the low-power Bluetooth protocol in terms of high sound quality, low power consumption, and low latency, it at least ensures that both headsets can be used normally.

[0114] From the above, it can be seen that in the embodiments of the present disclosure, the Bluetooth protocol can be freely switched through the protocol option interface, so that when a connection failure occurs in one of the protocols, it is possible to switch to other protocols to establish a Bluetooth connection, thereby ensuring the normal use of the Bluetooth device, especially for Bluetooth package devices, reducing the risk of missed connection of the package device.

[0115] like Figure 5 As shown, in some embodiments, the Bluetooth communication method of the present disclosure example, the process of establishing a Bluetooth communication connection with a Bluetooth device based on the low-power Bluetooth protocol, includes:

[0116] S510: In response to the target protocol being the Bluetooth low energy protocol, scan a first broadcast signal of any first suite device, and parse the first broadcast signal to determine a suite identity parsing code of the suite device.

[0117] S520: Receive a second broadcast signal from another device in the suite, and parse the second broadcast signal to determine a package identification code of the other device in the suite.

[0118] S530: In response to the successful resolution of the suite identification code using the suite identity resolution code, determine that the successfully resolved suite device and the first suite device belong to the same Bluetooth device, and establish Bluetooth communication connections with each suite device of the same Bluetooth device.

[0119] In the embodiment of the present disclosure, when the target protocol is the low-power Bluetooth protocol, each kit device can carry a resolvable kit identity resolution code SIRK in its broadcast signal (Advertising), so that the electronic device 10 scans the Bluetooth broadcast signal in the current scene, and can scan the first broadcast signal of the first kit device. By parsing the first broadcast signal, the kit identity resolution code SIRK carried therein can be read and a Bluetooth communication connection can be established with the first kit device.

[0120] Meanwhile, for other suite devices, the second broadcast signal sent by them carries a resolvable set identifier RSI (Resolvable Set Identifier), so that the electronic device 10 can receive the second broadcast signal by scanning, and obtain the set identifier RSI by resolving the second broadcast signal.

[0121] It can be understood that if the other set of equipment and the first set of equipment belong to the same set of equipment, then their set identity resolution codes SIRK should be the same. In other words, the set identification code RSI of the other set of equipment can be successfully resolved by using the set identity resolution code SIRK of the first set of equipment. On the contrary, if the set identification code RSI of the other set of equipment fails to be resolved by using the set identity resolution code SIRK of the first set of equipment, it means that the set of equipment and the first set of equipment do not belong to the same set of equipment.

[0122] Based on this, for each scanned set of equipment, its corresponding set identification code RSI can be parsed, and then the set identification parsing code SIRK of the first set of equipment is used to parse it. If the parsing is successful, it can be determined that the set of equipment and the first set of equipment belong to the same set of equipment. On the contrary, if the parsing fails, it can be determined that the set of equipment and the first set of equipment do not belong to the same set of equipment.

[0123] After all the kit devices included in the set device are determined, a Bluetooth communication connection between the electronic device 10 and all the kit devices can be established using the Bluetooth low energy protocol.

[0124] For example, Figure 1Take the example scenario as an example, the first set device is the left earphone 21 of the TWS earphone, the second set device is the right earphone 22, and the electronic device 10 is a smart phone. The smart phone can scan and obtain the first broadcast signal broadcast by the left earphone 21, and parse the first broadcast signal to obtain the set identity resolution code SIRK, and then receive the second broadcast signal broadcast by the right earphone 22, and parse the second broadcast signal to obtain the set identification code RSI, and then use the set identity resolution code SIRK of the left earphone 21 to parse the set identification code RSI of the right earphone 22. After the resolution is successful, it can be confirmed that the left earphone 21 and the right earphone 22 belong to the same set device, and then the electronic device establishes Bluetooth communication connections with the left earphone 21 and the right earphone 22 respectively to realize low-power Bluetooth communication.

[0125] From the above, it can be seen that in the embodiments of the present disclosure, low-power Bluetooth communication can be established between the electronic device and the Bluetooth device, thereby reducing power consumption, improving sound quality, and realizing multiple streams to reduce transmission delays.

[0126] In some implementations of the present disclosure, in order to avoid multiple Bluetooth protocols operating simultaneously and occupying signal bandwidth, after the electronic device 10 and the Bluetooth device 20 establish a Bluetooth communication connection through the target protocol, the connections of other Bluetooth protocols may be disconnected.

[0127] For example, in some embodiments, based on the foregoing, it is known that when the electronic device 10 and the Bluetooth device 20 establish a pairing connection for the first time, it is necessary to establish a pairing connection between the two according to the classic Bluetooth protocol. The user subsequently selects the low-power Bluetooth protocol through the protocol option interface, and after the electronic device 10 establishes a Bluetooth communication connection with the Bluetooth device 20 according to the low-power Bluetooth protocol, the communication connection of the classic Bluetooth protocol between the electronic device 10 and the Bluetooth device 20 can be disconnected, that is, only the bandwidth occupancy of the low-power Bluetooth protocol is retained, thereby improving bandwidth utilization.

[0128] For example, in some other embodiments, when the electronic device 10 establishes a low-power Bluetooth connection with the Bluetooth device 20, the user selects the classic Bluetooth protocol through the protocol option interface. After the electronic device 10 establishes a Bluetooth communication connection with the Bluetooth device 20 according to the classic Bluetooth protocol, the low-power Bluetooth protocol communication connection between the electronic device 10 and the Bluetooth device 20 can be disconnected, that is, only the bandwidth occupancy of the classic Bluetooth protocol is retained, thereby improving bandwidth utilization.

[0129] From the above, it can be seen that in the embodiment of the present disclosure, after the protocol switching of the Bluetooth communication connection is completed, the connection of other Bluetooth protocols is disconnected, thereby avoiding the occupation of Bluetooth bandwidth by other Bluetooth protocols, improving the Bluetooth bandwidth utilization, and further improving the Bluetooth communication effect.

[0130] In some implementations, after establishing a Bluetooth communication connection with the Bluetooth device 20 through the target protocol, the Bluetooth address and the target protocol of the Bluetooth device 20 can be saved, so that when the electronic device 10 and the Bluetooth device 20 are subsequently reconnected, there is no need to repeat the above method flow, and only needs to connect according to the saved target protocol. Figure 6 The implementation method is described.

[0131] like Figure 6 As shown, in some embodiments, the Bluetooth communication method of the present disclosure example, after establishing a Bluetooth communication connection with a Bluetooth device, further includes:

[0132] S610: Store the Bluetooth address and target protocol of the Bluetooth device in a preset storage space.

[0133] S620: When establishing a pairing connection with a Bluetooth device, determine a corresponding target protocol from a preset storage space based on the Bluetooth address of the Bluetooth device, and establish a Bluetooth communication connection with the Bluetooth device according to the target protocol.

[0134] In the embodiment of the present disclosure, the preset storage space refers to the storage medium of the electronic device 10, such as the memory of the electronic device 10, and the memory may include a volatile memory and / or a non-volatile memory.

[0135] In combination with the foregoing, after determining the target protocol, the electronic device 10 can establish a Bluetooth communication connection with the Bluetooth device 20 through the target protocol. At the same time, the electronic device 10 can store the Bluetooth address and target protocol of the Bluetooth device 20 in a preset storage space.

[0136] In some embodiments, when storing the Bluetooth address and target protocol of the Bluetooth device 20, the electronic device 10 may detect whether the Bluetooth protocol of the Bluetooth device 20 is already stored in the current preset storage space. If the Bluetooth protocol of the Bluetooth device 20 is already stored, the previously stored Bluetooth protocol may be updated with the target protocol, thereby saving the latest Bluetooth protocol. Conversely, if the Bluetooth protocol of the Bluetooth device 20 is not stored in the preset storage space, indicating that the Bluetooth device 20 is paired and connected for the first time, the target protocol and the Bluetooth address may be stored in the preset storage space.

[0137] Since the target protocol of the Bluetooth device 20 is already stored in the preset storage space, when the electronic device 10 re-establishes the Bluetooth connection with the Bluetooth device 20, there is no need to repeat the above method flow, and the target protocol stored in the Bluetooth device 20 can be directly read from the preset storage space, and then the target protocol can be used to establish the Bluetooth connection between the electronic device 10 and the Bluetooth device 20. On the contrary, if the target protocol of the Bluetooth device 20 is not stored in the preset storage space, it means that the Bluetooth device 20 is paired and connected for the first time, and the Bluetooth connection can be established according to the above method flow of S410 to S430, which will not be described in detail in this disclosure.

[0138] In one example, Figure 1 Taking the shown scenario as an example, the entire connection process between the electronic device 10 and the TWS headset is explained.

[0139] First pairing stage: The user can select the TWS headset to be connected on the electronic device 10, and then the electronic device 10 sends a pairing instruction to the TWS headset and establishes a Bluetooth connection between the two using the classic Bluetooth protocol. After that, the electronic device 10 sends a query instruction to the TWS headset to query the Bluetooth protocols supported by the TWS headset, including the classic Bluetooth protocol and the low-power Bluetooth protocol.

[0140] Protocol switching phase: Users can switch between Figure 3 In the interface shown in (b), click the settings button A to enter Figure 4 The protocol option interface shown in the figure is displayed, and the low-power Bluetooth in the protocol option interface is clicked. The electronic device 10 determines the low-power Bluetooth protocol as the target protocol according to the user operation instruction, and then uses the low-power Bluetooth protocol to establish a Bluetooth communication connection between the electronic device 10 and the TWS headset. At the same time, the electronic device 10 disconnects the classic Bluetooth connection with the TWS headset, and stores the Bluetooth address of the TWS headset and the connection strategy of the low-power Bluetooth protocol in the preset storage space.

[0141] Subsequent reconnection stage: When the user disconnects the Bluetooth connection between the electronic device 10 and the TWS headset for a period of time and needs to re-establish the Bluetooth connection between the two, the electronic device 10 can query the preset storage space and find that the target protocol corresponding to the TWS headset is the low-power Bluetooth protocol, thereby directly establishing the Bluetooth connection between the electronic device 10 and the TWS headset using the low-power Bluetooth protocol to achieve quick reconnection.

[0142] From the above, it can be seen that in the embodiments of the present disclosure, by storing the target protocol of the Bluetooth device, the connection strategy between the electronic device and the Bluetooth device is saved. When the electronic device and the Bluetooth device are reconnected, a Bluetooth connection between the two can be automatically established according to the saved target protocol, thereby improving the reconnection efficiency and further improving the Bluetooth connection effect.

[0143] In the above Figure 1 Based on the following Figure 7 The Bluetooth communication device according to the embodiment of the present disclosure is described. The Bluetooth communication device according to the embodiment of the present disclosure can be applied to the electronic device 10.

[0144] like Figure 7 As shown, in some embodiments, the Bluetooth communication device of the present disclosure example includes:

[0145] The instruction sending module 100 is configured to send a query instruction to the Bluetooth device in response to establishing a pairing connection with the Bluetooth device, wherein the query instruction is used to query the Bluetooth protocol of the Bluetooth device;

[0146] The interface display module 200 is configured to output and display a protocol option interface of the Bluetooth device in response to the Bluetooth device including at least two Bluetooth protocols;

[0147] The Bluetooth connection module 300 is configured to establish a Bluetooth communication connection with the Bluetooth device based on the target protocol determined through the protocol option interface.

[0148] From the above, it can be seen that in the embodiments of the present disclosure, the Bluetooth protocol can be freely switched through the protocol option interface, so that when a connection failure occurs in one of the protocols, it is possible to switch to other protocols to establish a Bluetooth connection, thereby ensuring the normal use of the Bluetooth device, especially for Bluetooth package devices, reducing the risk of missed connection of the package device.

[0149] In some implementations, the instruction sending module 100 is configured to:

[0150] Send a pairing instruction to the Bluetooth device, so that the Bluetooth device establishes a pairing connection with the main control device according to the pairing instruction; wherein the pairing instruction is a pairing instruction of the classic Bluetooth protocol.

[0151] In some implementations, the interface display module 200 is configured to:

[0152] In response to the Bluetooth protocol of the Bluetooth device including the classic Bluetooth protocol and the low-power Bluetooth protocol, the protocol option interface is output and displayed; wherein the protocol option interface includes options for the classic Bluetooth protocol and the low-power Bluetooth protocol, or the protocol option interface includes a switch option for the low-power Bluetooth protocol.

[0153] In some embodiments, the Bluetooth connection module 300 is configured to:

[0154] Receiving an operation instruction from a user through the protocol option interface, and determining the target protocol corresponding to the operation instruction according to the operation instruction;

[0155] In response to the target protocol being a low power Bluetooth protocol, a Bluetooth communication connection with the Bluetooth device is established based on the low power Bluetooth protocol.

[0156] In some embodiments, the Bluetooth connection module 300 is configured to:

[0157] In response to the target protocol being a low power Bluetooth protocol, scanning a first broadcast signal of any first suite device, and parsing the first broadcast signal to determine a suite identity parsing code of the suite device;

[0158] receiving a second broadcast signal of another set of equipment, and parsing the second broadcast signal to determine a set identification code of the other set of equipment;

[0159] In response to successfully resolving the suite identification code using the suite identity resolution code, it is determined that the successfully resolved suite device and the first suite device belong to the same Bluetooth device, and a Bluetooth communication connection is established with each suite device of the same Bluetooth device.

[0160] In some embodiments, the Bluetooth device includes a TWS headset, and the TWS headset includes a first set of devices and a second set of devices, the first set of devices is a left earphone, and the second set of devices is a right earphone.

[0161] In some embodiments, the Bluetooth connection module 300 is configured to:

[0162] Storing the Bluetooth address of the Bluetooth device and the target protocol in a preset storage space;

[0163] When establishing a pairing connection with the Bluetooth device, the corresponding target protocol is determined from the preset storage space based on the Bluetooth address of the Bluetooth device, and a Bluetooth communication connection with the Bluetooth device is established according to the target protocol.

[0164] In some embodiments, the Bluetooth connection module 300 is configured to:

[0165] In response to the Bluetooth protocol corresponding to the Bluetooth device being stored in the preset storage space, the stored Bluetooth protocol is updated based on the target protocol.

[0166] In some embodiments, the Bluetooth connection module 300 is configured to:

[0167] Disconnect the connection with other Bluetooth protocols of the Bluetooth device except the target protocol.

[0168] From the above, it can be seen that in the embodiments of the present disclosure, by storing the target protocol of the Bluetooth device, the connection strategy between the electronic device and the Bluetooth device is saved. When the electronic device and the Bluetooth device are reconnected, a Bluetooth connection between the two can be automatically established according to the saved target protocol, thereby improving the reconnection efficiency and further improving the Bluetooth connection effect.

[0169] In some embodiments, the present disclosure provides an electronic device, including:

[0170] Processor; and

[0171] A memory stores computer instructions, wherein the computer instructions are used to enable the processor to execute the method described in any of the above embodiments.

[0172] In a fourth 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 of the aforementioned embodiments.

[0173] Figure 8 The structural block diagram of the electronic device in some embodiments of the present disclosure is shown in FIG. Figure 8 The principles related to electronic devices and storage media in some embodiments of the present disclosure are described.

[0174] Reference Figure 8 , 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 .

[0175] 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.

[0176] 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.

[0177] 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.

[0178] 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.

[0179] 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.

[0180] 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.

[0181] 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.

[0182] 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.

[0183] 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.

[0184] 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 communication method, characterized in that: Applied to electronic equipment, the method includes: In response to establishing a pairing connection with a Bluetooth device, sending a query instruction to the Bluetooth device, wherein the query instruction is used to query a Bluetooth protocol of the Bluetooth device; In response to the Bluetooth device including at least two Bluetooth protocols, outputting and displaying a protocol option interface of the Bluetooth device; A Bluetooth communication connection is established with the Bluetooth device based on the target protocol determined through the protocol option interface.

2. The method according to claim 1, characterized in that The process of establishing a pairing connection with a Bluetooth device includes: Send a pairing instruction to the Bluetooth device, so that the Bluetooth device establishes a pairing connection with the electronic device according to the pairing instruction; wherein the pairing instruction is a pairing instruction of the classic Bluetooth protocol.

3. The method according to claim 1, characterized in that In response to the Bluetooth device including at least two Bluetooth protocols, outputting and displaying a protocol option interface of the Bluetooth device includes: In response to the Bluetooth protocol of the Bluetooth device including the classic Bluetooth protocol and the low-power Bluetooth protocol, the protocol option interface is output and displayed; wherein, the protocol option interface includes options for the classic Bluetooth protocol and the low-power Bluetooth protocol, or the protocol option interface includes a switch option for the low-power Bluetooth protocol.

4. The method according to any one of claims 1 to 3, characterized in that Establishing a Bluetooth communication connection with the Bluetooth device based on the target protocol determined through the protocol option interface includes: receiving an operation instruction from a user through the protocol option interface, and determining the target protocol corresponding to the operation instruction according to the operation instruction; In response to the target protocol being the Bluetooth low energy protocol, a Bluetooth communication connection is established with the Bluetooth device based on the Bluetooth low energy protocol.

5. The method according to claim 4, characterized in that The Bluetooth device includes at least two suite devices; in response to the target protocol being a low-power Bluetooth protocol, establishing a Bluetooth communication connection with the Bluetooth device based on the low-power Bluetooth protocol, comprising: In response to the target protocol being the Bluetooth Low Energy protocol, scanning a first broadcast signal of any first suite device, and parsing the first broadcast signal to determine a suite identity resolution code of the suite device; receiving a second broadcast signal from another device in the suite, and parsing the second broadcast signal to determine a suite identification code of the other device in the suite; In response to successfully resolving the suite identification code using the suite identity resolution code, it is determined that the successfully resolved suite device and the first suite device belong to the same Bluetooth device, and a Bluetooth communication connection is established with each suite device of the same Bluetooth device.

6. The method according to claim 5, characterized in that The Bluetooth device includes a TWS headset, and the TWS headset includes a first set of devices and a second set of devices, the first set of devices is a left earphone, and the second set of devices is a right earphone.

7. The method according to claim 1, characterized in that After establishing a Bluetooth communication connection with the Bluetooth device based on the target protocol determined through the protocol option interface, the method further includes: Storing the Bluetooth address of the Bluetooth device and the target protocol in a preset storage space; When establishing a pairing connection with the Bluetooth device, the corresponding target protocol is determined from the preset storage space based on the Bluetooth address of the Bluetooth device, and a Bluetooth communication connection with the Bluetooth device is established according to the target protocol.

8. The method according to claim 7, characterized in that The storing the Bluetooth address of the Bluetooth device and the target protocol in a preset storage space includes: In response to the Bluetooth protocol corresponding to the Bluetooth device being stored in the preset storage space, the stored Bluetooth protocol is updated based on the target protocol.

9. The method according to claim 1, characterized in that After establishing a Bluetooth communication connection with the Bluetooth device based on the target protocol determined through the protocol option interface, the method further includes: Disconnect the Bluetooth device from other Bluetooth protocols except the target protocol.

10. A Bluetooth communication device, characterized in that: Applied to electronic equipment, the device comprises: an instruction sending module, configured to, in response to establishing a pairing connection with a Bluetooth device, send a query instruction to the Bluetooth device, wherein the query instruction is used to query a Bluetooth protocol of the Bluetooth device; an interface display module, configured to output and display a protocol option interface of the Bluetooth device in response to the Bluetooth device including at least two Bluetooth protocols; The Bluetooth connection module is configured to establish a Bluetooth communication connection with the Bluetooth device based on the target protocol determined through the protocol option interface.

11. An electronic device, characterized in that: include: processor; and 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 9.

12. 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 9.