Dual-mode Bluetooth devices and Bluetooth connection methods

By using Bluetooth Low Energy Broadcast messages to transmit service capabilities and manufacturer information in dual-mode Bluetooth devices, and by directly comparing service capability information using public key encryption technology, the complex and time-consuming pairing issues of dual-mode Bluetooth devices are solved, resulting in more efficient Bluetooth connectivity and an improved user experience.

CN114786158BActive Publication Date: 2026-11-17HISENSE VISUAL TECH CO LTD
View PDF 4 Cites 0 Cited by

Patent Information

Application Number
CN202210252918.X
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-03-15
Publication Date
2026-11-17
Estimated Expiration
2042-03-15

AI Technical Summary

Technical Problem

Dual-mode Bluetooth devices are complicated to pair, take a long time to connect, and have a poor user experience.

Method used

By introducing Bluetooth Low Energy broadcast messages into dual-mode Bluetooth devices, which contain the device's service capability information and manufacturer information, and encrypting them with public and private keys, the service capability information can be directly compared and a classic Bluetooth connection can be established, reducing the query and authentication process.

Benefits of technology

It simplifies Bluetooth connection operations, improves connection efficiency, reduces connection time, and enhances user experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114786158B_ABST
    Figure CN114786158B_ABST
Patent Text Reader

Abstract

This application relates to a dual-mode Bluetooth device and a Bluetooth connection method, applied in the field of wireless communication technology. The dual-mode Bluetooth device and Bluetooth connection method are applied to a first dual-mode Bluetooth device in source mode. The first dual-mode Bluetooth device includes: a communicator configured to: receive a Bluetooth Low Energy broadcast message sent by a second dual-mode Bluetooth device, wherein the Bluetooth Low Energy broadcast message includes: first service capability information supported by the second dual-mode Bluetooth device; and a controller configured to: compare the first service capability information with the first service capability information of the first dual-mode Bluetooth device itself to obtain first target service capability information; and establish a classic Bluetooth connection with the second dual-mode Bluetooth device based on the first target service capability information. This application can improve the efficiency of Bluetooth connections.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of wireless communication technology, and in particular to a dual-mode Bluetooth device and a Bluetooth connection method. Background Technology

[0002] Dual-mode Bluetooth devices refer to devices that support both classic Bluetooth and BLE (Bluetooth Low Energy). During the pairing process between dual-mode Bluetooth device A and dual-mode Bluetooth device B, the user typically needs to access the Bluetooth configuration interface of dual-mode Bluetooth device A, put it into Inquiry mode, and then instruct dual-mode Bluetooth device B to enter Inquiry scan mode. After the name of dual-mode Bluetooth device B is displayed in the Bluetooth configuration interface of dual-mode Bluetooth device A, the user clicks to pair, completing the connection between dual-mode Bluetooth device A and dual-mode Bluetooth device B. However, this process is complex, takes a long time to establish a Bluetooth connection, and results in a poor user experience. Summary of the Invention

[0003] To address the aforementioned technical problems, this application provides a dual-mode Bluetooth device, a Bluetooth connection method, a storage medium, and a program product.

[0004] According to a first aspect of this application, a dual-mode Bluetooth device is provided, which is applied to a first dual-mode Bluetooth device in source mode, comprising:

[0005] The communicator is configured to receive a Bluetooth Low Energy broadcast message sent by a second dual-mode Bluetooth device, wherein the Bluetooth Low Energy broadcast message includes: first service capability information supported by the second dual-mode Bluetooth device;

[0006] The controller is configured to: compare the first service capability information with the first service capability information of the first dual-mode Bluetooth device itself to obtain the first target service capability information;

[0007] Based on the first target service capability information, a classic Bluetooth connection is established with the second dual-mode Bluetooth device.

[0008] In some embodiments of this application, the Bluetooth Low Energy broadcast message further includes: encrypted information obtained by encrypting the manufacturer information of the second dual-mode Bluetooth device according to a private key;

[0009] The controller is further configured to: decrypt the encrypted information based on the public key to obtain decrypted information;

[0010] If the decrypted information is the same as the preset information, the step of comparing the first service capability information with the first service capability information of the first dual-mode Bluetooth device itself is executed.

[0011] In some embodiments of this application, the controller is further configured to use the public key and the private key as keys created during the binding process of the first dual-mode Bluetooth device and the second dual-mode Bluetooth device.

[0012] In some embodiments of this application, the Bluetooth Low Energy broadcast message also includes an appearance attribute field;

[0013] The controller is further configured to: determine the display symbol corresponding to the appearance attribute field;

[0014] The first dual-mode Bluetooth device further includes: a display;

[0015] The display is configured to display the Bluetooth icon as the display symbol.

[0016] In some embodiments of this application, the controller is further configured to: establish a Bluetooth Low Energy connection with the second dual-mode Bluetooth device based on the first target service capability information.

[0017] In some embodiments of this application, the controller is further configured to obtain second service capability information supported by the second dual-mode Bluetooth device based on the established Bluetooth Low Energy connection path;

[0018] The second service capability information is compared with the second service capability information of the first dual-mode Bluetooth device itself to obtain the second target service capability information.

[0019] Based on the first target service capability information and the second target service capability information, a classic Bluetooth connection is established with the second dual-mode Bluetooth device.

[0020] According to a second aspect of this application, a dual-mode Bluetooth device is provided, a second dual-mode Bluetooth device applied in sink mode, comprising:

[0021] The communicator is configured to: send a Bluetooth Low Energy broadcast message including first service capability information supported by the second dual-mode Bluetooth device to a first dual-mode Bluetooth device, so that the controller in the first dual-mode Bluetooth device compares the first service capability information with the first service capability information of the first dual-mode Bluetooth device itself to obtain first target service capability information; and establish a classic Bluetooth connection with the second dual-mode Bluetooth device based on the first target service capability information.

[0022] In some embodiments of this application, the communicator is further configured to: send a Bluetooth Low Energy broadcast message to a first dual-mode Bluetooth device, including first service capability information supported by the second dual-mode Bluetooth device and encrypted information obtained by encrypting the manufacturer information of the second dual-mode Bluetooth device according to a private key, so that the controller in the first dual-mode Bluetooth device decrypts the encrypted information according to a public key to obtain decrypted information; if the decrypted information is the same as preset information, the step of comparing the first service capability information with the first service capability information of the first dual-mode Bluetooth device itself is executed.

[0023] In some embodiments of this application, the communicator is further configured to: send a Bluetooth Low Energy broadcast message including an appearance attribute field to a first dual-mode Bluetooth device, so that the controller in the first dual-mode Bluetooth device determines the display symbol corresponding to the appearance attribute field, and causes the display in the first dual-mode Bluetooth device to display the Bluetooth icon as the display symbol.

[0024] In some embodiments of this application, the communicator is further configured to: after establishing a Bluetooth Low Energy connection with the first dual-mode Bluetooth device, receive service capability query information sent by the first dual-mode Bluetooth device according to the established Bluetooth Low Energy connection path;

[0025] Send second service capability information for the service capability query information to the first dual-mode Bluetooth device, so that the controller in the first dual-mode Bluetooth device compares the second service capability information with the second service capability information of the first dual-mode Bluetooth device itself to obtain second target service capability information; and establish a classic Bluetooth connection with the second dual-mode Bluetooth device according to the first target service capability information and the second target service capability information.

[0026] According to a third aspect of this application, a Bluetooth connection method is provided, applied to a first dual-mode Bluetooth device in source mode, the method comprising:

[0027] Receive a Bluetooth Low Energy Broadcast message sent by a second dual-mode Bluetooth device, wherein the Bluetooth Low Energy Broadcast message includes: information on the first service capabilities supported by the second dual-mode Bluetooth device;

[0028] The first service capability information is compared with the first service capability information of the first dual-mode Bluetooth device itself to obtain the first target service capability information.

[0029] Based on the first target service capability information, a classic Bluetooth connection is established with the second dual-mode Bluetooth device.

[0030] In some embodiments of this application, the Bluetooth Low Energy broadcast message further includes: encrypted information obtained by encrypting the manufacturer information of the second dual-mode Bluetooth device according to a private key;

[0031] The method further includes:

[0032] The encrypted information is decrypted using the public key to obtain the decrypted information;

[0033] If the decrypted information is the same as the preset information, the step of comparing the first service capability information with the first service capability information of the first dual-mode Bluetooth device itself is executed.

[0034] In some embodiments of this application, the method further includes:

[0035] The public key and the private key are used as the secret key created during the process of binding the first dual-mode Bluetooth device and the second dual-mode Bluetooth device.

[0036] In some embodiments of this application, the Bluetooth Low Energy broadcast message also includes an appearance attribute field;

[0037] The method further includes:

[0038] Determine the display symbol corresponding to the appearance attribute field;

[0039] Display the Bluetooth icon as the aforementioned display symbol.

[0040] In some embodiments of this application, the method further includes:

[0041] Based on the first target service capability information, a Bluetooth Low Energy connection is established with the second dual-mode Bluetooth device.

[0042] In some embodiments of this application, the method further includes:

[0043] Based on the established Bluetooth Low Energy connection path, obtain the second service capability information supported by the second dual-mode Bluetooth device;

[0044] The second service capability information is compared with the second service capability information of the first dual-mode Bluetooth device itself to obtain the second target service capability information.

[0045] Based on the first target service capability information and the second target service capability information, a classic Bluetooth connection is established with the second dual-mode Bluetooth device.

[0046] According to a fourth aspect of this application, a second dual-mode Bluetooth device is provided for use in sink mode, the method comprising:

[0047] A Bluetooth Low Energy Broadcast message including the first service capability information supported by the second dual-mode Bluetooth device is sent to the first dual-mode Bluetooth device, so that the first dual-mode Bluetooth device compares the first service capability information with its own first service capability information to obtain the first target service capability information; and a classic Bluetooth connection is established with the second dual-mode Bluetooth device based on the first target service capability information.

[0048] In some embodiments of this application, the method further includes:

[0049] A Bluetooth Low Energy broadcast message is sent to a first dual-mode Bluetooth device, including first service capability information supported by the second dual-mode Bluetooth device and encrypted information obtained by encrypting the manufacturer information of the second dual-mode Bluetooth device according to the private key, so that the first dual-mode Bluetooth device can decrypt the encrypted information according to the public key to obtain decrypted information; if the decrypted information is the same as preset information, the step of comparing the first service capability information with the first service capability information of the first dual-mode Bluetooth device itself is executed.

[0050] In some embodiments of this application, the method further includes:

[0051] A Bluetooth Low Energy broadcast message including an appearance attribute field is sent to a first dual-mode Bluetooth device, so that the first dual-mode Bluetooth device determines the display symbol corresponding to the appearance attribute field and displays the Bluetooth icon as the display symbol.

[0052] In some embodiments of this application, the method further includes:

[0053] After establishing a Bluetooth Low Energy connection with the first dual-mode Bluetooth device, receive service capability query information sent by the first dual-mode Bluetooth device based on the established Bluetooth Low Energy connection path;

[0054] Send second service capability information for the service capability query information to the first dual-mode Bluetooth device, so that the first dual-mode Bluetooth device compares the second service capability information with its own second service capability information to obtain second target service capability information; and establish a classic Bluetooth connection with the second dual-mode Bluetooth device based on the first target service capability information and the second target service capability information.

[0055] According to a fifth aspect of this application, a computer-readable storage medium is provided having a computer program stored thereon, which, when executed by a processor, implements the Bluetooth connection method described in the third or fourth aspect.

[0056] According to a sixth aspect of this application, a computer program product is provided that, when the computer program product is run on a computer, causes the computer to perform the Bluetooth connection method described in the third or fourth aspect.

[0057] The technical solutions provided in some embodiments of this application have the following advantages compared with related technologies:

[0058] If the first dual-mode Bluetooth device is in source mode (i.e., the data source generator), then the second dual-mode Bluetooth device is in sink mode (i.e., the data source receiver). During the Bluetooth connection process between the first and second dual-mode Bluetooth devices, the communicator in the first dual-mode Bluetooth device can receive Bluetooth Low Energy (BLE) broadcast messages sent by the second dual-mode Bluetooth device. These BLE broadcast messages include information about the first service capabilities supported by the second dual-mode Bluetooth device. The controller in the first dual-mode Bluetooth device can compare this first service capability information with its own first service capability information to obtain first target service capability information (e.g., service capabilities supported by both ends). Based on this first target service capability information, a classic Bluetooth connection is established with the second dual-mode Bluetooth device. It can be seen that during the Bluetooth connection process, the first dual-mode Bluetooth device does not need to actively query the service capability information of the second dual-mode Bluetooth device, as this active query process is time-consuming. Therefore, the efficiency of the Bluetooth connection can be improved. Attached Figure Description

[0059] The accompanying drawings, which are incorporated in and form part of this specification, illustrate embodiments consistent with this application and, together with the description, serve to explain the principles of this application.

[0060] To more clearly illustrate the technical solutions in some embodiments or related technologies of this application, the accompanying drawings used in the description of the embodiments or related technologies will be briefly introduced below. Obviously, for those skilled in the art, other drawings can be obtained based on these drawings without creative effort.

[0061] Figure 1 A schematic diagram of an architecture for a dual-mode Bluetooth device;

[0062] Figure 2A This is a schematic diagram of the classic Bluetooth connection process in related technologies;

[0063] Figure 2B A schematic diagram of BR / EDR scanning across 79 channels;

[0064] Figure 2C This is a diagram of the A2DP connection protocol architecture.

[0065] Figure 3This is a schematic diagram of the structure of a dual-mode Bluetooth device in some embodiments of this application;

[0066] Figure 4 This is a schematic diagram illustrating authentication between two dual-mode Bluetooth devices in some embodiments of this application;

[0067] Figure 5 A schematic diagram of the Bluetooth Low Energy connection process;

[0068] Figure 6A This is a schematic diagram of a classic Bluetooth connection in some embodiments of this application;

[0069] Figure 6B This is a schematic diagram of an A2DP connection in the BR / EDR connection process.

[0070] Figure 7 This is a schematic diagram illustrating an operational scenario between a display device and a control device according to one or more embodiments of this application;

[0071] Figure 8 This is a hardware configuration block diagram of a display device 200 according to one or more embodiments of this application;

[0072] Figure 9A This is a hardware configuration block diagram of a control device 100 according to one or more embodiments of this application;

[0073] Figure 9B This is a schematic diagram of the software configuration in a display device 200 according to one or more embodiments of this application;

[0074] Figure 10 This is a schematic diagram of the structure of a dual-mode Bluetooth device in some embodiments of this application;

[0075] Figure 11 This is a schematic diagram illustrating the interaction between two dual-mode Bluetooth devices in some embodiments of this application;

[0076] Figure 12 This is a flowchart of a Bluetooth connection method in some embodiments of this application;

[0077] Figure 13 This is a flowchart of a Bluetooth connection method in some embodiments of this application. Detailed Implementation

[0078] To make the objectives, implementation methods and advantages of this application clearer, the exemplary implementation methods of this application will be clearly and completely described below with reference to the accompanying drawings of the exemplary embodiments of this application. Obviously, the described exemplary embodiments are only some embodiments of this application, and not all embodiments.

[0079] Based on the exemplary embodiments described in this application, all other embodiments obtained by those skilled in the art without inventive effort are within the scope of protection of the appended claims. Furthermore, although the disclosures in this application are presented by way of one or more exemplary examples, it should be understood that each aspect of these disclosures can constitute a complete implementation on its own. It should be noted that the brief descriptions of terminology in this application are merely for the convenience of understanding the embodiments described below, and are not intended to limit the implementation of this application. Unless otherwise stated, these terms should be understood in their ordinary and common meaning.

[0080] Bluetooth is a short-range wireless communication technology with advantages such as low cost, low power consumption, and relatively high transmission speed. Devices that only support BLE connectivity are single-mode Bluetooth devices, while devices that support both BLE and Bluetooth Classic connectivity are dual-mode Bluetooth devices. Bluetooth Low Energy (BLE) is suitable for short-duration, small-data transmissions, while Bluetooth Classic is suitable for long-duration, large-data transmissions.

[0081] See Figure 1 , Figure 1 This is a schematic diagram of an architecture for a dual-mode Bluetooth device, which includes two controllers: a BR / EDR Controller (Base Rate / Enhanced Rate Controller) and an LE Controller (Low Power Controller). The BR / EDR Controller typically includes radio processing, baseband, link management, and an optional HCI (Human-Computer Interaction) interface layer. The LE Controller mainly includes the LE PHY (Physical) layer, the link layer, and an optional HCI interface layer.

[0082] Currently, manufacturers can offer customized solutions for related products to enhance the user experience. For example, customization can be implemented between smartphones and Bluetooth headsets, smartphones and smartwatches, and smart TVs and smart speakers, which can alleviate issues such as complex Bluetooth connection operations, numerous steps, and unfriendly interfaces to some extent. However, establishing a Bluetooth connection between two dual-mode Bluetooth devices still presents problems such as user unfamiliarity with the process, long pairing times, and pairing failures.

[0083] See Figure 2A , Figure 2AThis is a schematic diagram of a classic Bluetooth connection process in related technologies. As can be seen, during the Bluetooth connection process, the user performs three operations (accessing the Bluetooth settings interface on dual-mode Bluetooth device A, entering the inquiry scan state on dual-mode Bluetooth device B, and selecting dual-mode Bluetooth device B and clicking pair), making the operation relatively complex. Dual-mode Bluetooth device A searches for other Bluetooth devices across 79 channels, reading the names of Bluetooth devices. For example... Figure 2B As shown, because BR / EDR randomly hops frequencies across 79 channels, the page time is relatively long, making this process time-consuming. Additionally, for connection security, the binding process requires confirming the encryption methods of both parties and creating an encryption algorithm, which also takes considerable time. After binding, it's necessary to query the services supported by the dual-mode Bluetooth device B, such as whether it supports A2DP Profile (Advanced Audio Distribution Profile) and HFP Profile (Hands-free Profile). A2DP uses a chip within the headset to stack data, improving sound clarity. A2DP defines the protocol and process for transmitting high-quality audio information, such as mono or stereo, over an ACL (Asynchronous Connectionless) channel. HFP allows the Bluetooth device to control phone calls, such as answering, hanging up, rejecting calls, and voice dialing. Connection can only proceed after these queries are complete, for example, performing A2DP Profile or Hands-free Profile connections. The process of querying these services also takes considerable time.

[0084] See Figure 2C , Figure 2C This is a diagram of the A2DP connection protocol architecture. AVDTP refers to the audio or video distribution transmission protocol, and parameter interaction between two dual-mode Bluetooth devices depends on AVDTP. The Service Discovery Protocol (SDP) is a core protocol in the Bluetooth protocol suite and an important component of the Bluetooth system. In the Bluetooth system, device information, service information, and service characteristics can only be obtained through the Service Discovery Protocol, and only on this basis can a connection be established. In some embodiments of this application, the SDP protocol can be updated to improve the efficiency of Bluetooth connections. The Link Management Protocol (LMP) and the Logical Link Control and Adaptation Protocol (L2CAP) both belong to the controller part.

[0085] To address the issues of complex user operations and long processing times during Bluetooth connection, some embodiments of this application provide a dual-mode Bluetooth device and a Bluetooth connection method, which can simplify the Bluetooth connection operation and improve the efficiency of Bluetooth connection between two dual-mode Bluetooth devices.

[0086] Bluetooth devices can operate in source and sink modes. Source mode refers to the device that generates the data source, while sink mode refers to the device that receives the data source. If the first dual-mode Bluetooth device is in source mode (generating data) and can connect to the second dual-mode Bluetooth device to play audio data, then the second dual-mode Bluetooth device is in sink mode. Conversely, if the first dual-mode Bluetooth device is in sink mode and the second dual-mode Bluetooth device is in source mode (receiving data and generating data), then the first dual-mode Bluetooth device is receiving data, and the second dual-mode Bluetooth device is generating data.

[0087] See Figure 3 , Figure 3 This is a schematic diagram of a dual-mode Bluetooth device in some embodiments of this application. The dual-mode Bluetooth device is applied to a first dual-mode Bluetooth device in source mode, that is, the first dual-mode Bluetooth device is the data source generator. The first dual-mode Bluetooth device includes:

[0088] The communicator 101 is configured to receive a Bluetooth Low Energy broadcast message sent by a second dual-mode Bluetooth device, wherein the Bluetooth Low Energy broadcast message includes information on the first service capabilities supported by the second dual-mode Bluetooth device.

[0089] The first dual-mode Bluetooth device and the second dual-mode Bluetooth device can be any two dual-mode Bluetooth devices. For example, the first dual-mode Bluetooth device can be a display device and the second dual-mode Bluetooth device can be a Bluetooth headset; or the first dual-mode Bluetooth device can be a display device and the second dual-mode Bluetooth device can be a smart speaker; or the first dual-mode Bluetooth device can be a smart speaker and the second dual-mode Bluetooth device can be a display device, etc.

[0090] The second dual-mode Bluetooth device can actively send Bluetooth Low Energy broadcast messages through the broadcast channel. The Bluetooth Low Energy broadcast message may include: information on the first service capability supported by the second dual-mode Bluetooth device. The first service capability information may be related to basic services. For example, the first service capability information may include one or more of the following: whether A2DPProfile is supported, whether HFP Profile is supported, etc.

[0091] The controller 102 is configured to: compare the first service capability information with the first service capability information of the first dual-mode Bluetooth device itself to obtain the first target service capability information, and establish a classic Bluetooth connection with the second dual-mode Bluetooth device based on the first target service capability information.

[0092] After receiving a Bluetooth Low Energy (BLE) broadcast message, the first dual-mode Bluetooth device can compare the first service capability information of the second dual-mode Bluetooth device in the BLE broadcast message with its own first service capability information. In other words, it compares the support for certain services by both devices. If both are supported, then that first service capability information becomes the first target service capability information. For example, if both the first and second dual-mode Bluetooth devices support the A2DP Profile, then the A2DP Profile can be used as the first target service capability information. An A2DP Profile connection can be established when establishing a classic Bluetooth connection. If the first dual-mode Bluetooth device supports the A2DP Profile but the second dual-mode Bluetooth device does not, then the A2DP Profile cannot be used as the first target service capability information. Consequently, an A2DP Profile connection cannot be established when establishing a classic Bluetooth connection.

[0093] As can be seen, during the establishment of a classic Bluetooth connection, the second dual-mode Bluetooth device can proactively inform the first dual-mode Bluetooth device of its first service capability information via Bluetooth Low Energy broadcast messages. This eliminates the need for the first dual-mode Bluetooth device to actively query the second dual-mode Bluetooth device's first service capability information. Since querying the second dual-mode Bluetooth device's first service capability information is time-consuming, this process improves the efficiency of the classic Bluetooth connection.

[0094] In some embodiments of this application, the Bluetooth Low Energy broadcast message further includes encrypted information obtained by encrypting the manufacturer information of the second dual-mode Bluetooth device using a private key. That is, the second dual-mode Bluetooth device can proactively disclose its manufacturer information. Of course, for security reasons, an asymmetric encryption algorithm (such as the RSA2048 encryption algorithm) can be used for encryption. The manufacturer information is encrypted using a private key to obtain encrypted information, which is then added to the Bluetooth Low Energy broadcast message.

[0095] The controller 102 is also configured to: decrypt the encrypted information using a public key to obtain decrypted information. If the decrypted information is the same as preset information, perform a step of comparing the first service capability information with the first service capability information of the first dual-mode Bluetooth device itself.

[0096] If the decryption information obtained by the first dual-mode Bluetooth device is the same as the preset information, it means that the second dual-mode Bluetooth device is a Bluetooth device that can be paired with the first dual-mode Bluetooth device, and the subsequent process continues.

[0097] In some embodiments, the Bluetooth Low Energy broadcast message may further include: the name information of the second dual-mode Bluetooth device (e.g., a brand name). See also Figure 4 , Figure 4 This is a schematic diagram illustrating authentication between two dual-mode Bluetooth devices in some embodiments of this application. After receiving a Bluetooth Low Energy broadcast message, the first dual-mode Bluetooth device can first confirm whether the name information is a preset name. If the name information is a preset name, it then decrypts the encrypted information using the public key to further determine whether the manufacturer information of the second dual-mode Bluetooth device is preset information. If the manufacturer information of the second dual-mode Bluetooth device is preset information, authentication is considered successful, and the device continues to parse the protocols supported by the second dual-mode Bluetooth device for further interaction; otherwise, authentication is considered unsuccessful.

[0098] As can be seen, during the establishment of a classic Bluetooth connection, the second dual-mode Bluetooth device can proactively inform the first dual-mode Bluetooth device of its name, manufacturer information, etc., via Bluetooth Low Energy broadcast messages, thus avoiding the process of reading the peer's name during the classic Bluetooth connection process. Since reading the name also consumes a significant amount of time, this further improves the efficiency of the Bluetooth connection.

[0099] In some embodiments of this application, the controller 102 is also configured to use the public and private keys as keys created during the binding of the first dual-mode Bluetooth device and the second dual-mode Bluetooth device.

[0100] like Figure 2A As shown, for connection security, encryption algorithms and keys can be created and generated during encryption and binding operations. After a classic Bluetooth connection is established, data is encrypted using the generated key. However, creating encryption algorithms and generating keys is complex and time-consuming. Therefore, directly using the private and public keys for data encryption and decryption, and ensuring this encryption level complies with Bluetooth specifications, avoids the key generation process, thus improving the efficiency of classic Bluetooth connections.

[0101] In some embodiments of this application, the Bluetooth Low Energy broadcast message may further include an appearance attribute field, which indicates the display method of the Bluetooth icon. A pre-established correspondence between display symbols and appearance attribute fields can be established. For example, appearance attribute field 1 may display the Bluetooth icon as a mobile phone, and appearance attribute field 2 may display the Bluetooth icon as a speaker. Thus, after the first dual-mode Bluetooth device receives the Bluetooth Low Energy broadcast message, the controller 102 is further configured to determine the display symbol corresponding to the appearance attribute field, for example, based on a pre-established correspondence. The first dual-mode Bluetooth device may also include a display, configured to display the Bluetooth icon as the display symbol corresponding to the appearance attribute field.

[0102] For example, when a smart TV receives a Bluetooth Low Energy broadcast message from a smart speaker, it determines the corresponding display symbol as a speaker based on the appearance attribute field in the Bluetooth Low Energy broadcast message, and the Bluetooth icon can then be displayed as a speaker, thereby improving the user experience.

[0103] In some embodiments of this application, the controller 102 is further configured to: establish a Bluetooth Low Energy connection with a second dual-mode Bluetooth device based on the first target service capability information. See also Figure 5 , Figure 5 This diagram illustrates the Bluetooth Low Energy (BLE) connection process. The second dual-mode Bluetooth device transmits BLE broadcast messages on three broadcast channels. BLE uses frequency hopping on three channels, while BR / EDR uses frequency hopping on 79 channels. The first and second dual-mode Bluetooth devices hop at different frequencies, connecting only when they encounter the same channel. Therefore, the BR / EDR connection establishment process is relatively slow, while the Bluetooth BLE connection establishment process is relatively fast.

[0104] In some embodiments, the format of the Bluetooth Low Energy Broadcast message can be found in Table 1.

[0105] Table 1

[0106]

[0107] Among them, the MAC address (physical address) of the second dual-mode Bluetooth device side BLE and classic Bluetooth is the same, and the first dual-mode Bluetooth device can directly use the MAC address when it initiates a connection;

[0108] Flag can be set to the standard; flag indicates whether BR / EDR and BLE are supported simultaneously.

[0109] Name indicates the name of the second dual-mode Bluetooth device;

[0110] Manufacturer Specific Data can contain 8 bytes, where 0x07 indicates that there are 7 bytes remaining.

[0111] 0xaa represents manufacturer information, which is assumed to represent a brand. The specific number can be set according to the brand's application on the SIG website.

[0112] 0xbb indicates whether the A2DP protocol is supported, with 1 indicating support and 0 indicating no support;

[0113] 0xcc indicates whether the HFP protocol is supported; 1 indicates support and 0 indicates no support.

[0114] 0xdd indicates the codec encoding / decoding mode supported by the A2DP protocol, which can be eight bits. See Table 2 for details.

[0115] Table 2

[0116]

[0117] SBC (Sub-band coding) is the encoding format specified by the A2DP protocol, so all Bluetooth audio chips support this protocol.

[0118] AAC (Advanced Audio Coding) is a technology provided by Dolby Laboratories for the music community; it is a high-compression coding algorithm.

[0119] APTX is a digital audio compression algorithm based on sub-band ADPCM (SB-ADPCM) technology, and is a lossless format for Bluetooth transmission.

[0120] APTX-Adaptive combines the advantages of aptX HD (which enables 24-bit high-definition audio via Bluetooth) and APTX-LL (Low Latency), adaptively adjusting sound quality and latency. It combines powerful premium audio quality, low bitrate audio transmission, scalability, and low latency to create the ultimate seamless wireless listening experience, even in the most challenging RF environments.

[0121] APTX-LL is AptX's low-latency technology, which can achieve latency of less than 40ms.

[0122] LDAC is a wireless audio coding technology. On devices that support LDAC, the Bluetooth communication bitrate is close to 1 Mbps. This is more than three times higher than SBC encoding, making it the closest to lossless encoding method currently available for wireless transmission.

[0123] If any of the bits in Table 2 are set to 1, it indicates that this codec is supported; if any bit is set to 0, it indicates that this codec is not supported. Bits 6 and 7 are currently unused and are reserved for future expansion.

[0124] 0xee indicates some features supported by the HFP protocol, as detailed in Table 3:

[0125] Table 3

[0126] Bit 0 Bit 1 Bit 2 Bit 3 Bit 4 Bit 5 Bit 6 Bit 7 HF Role AG Role mSBC CVSD Call Info Further expansion Further expansion Further expansion

[0127] HF Role: Hands-free role, such as the role of traditional headphones.

[0128] AG Role: Audio gateway role, such as the role of a smart TV or smartphone.

[0129] mSBC and CVSD (Continuous Variable Slope Delta Modulation) are two encoding and decoding methods under HFP.

[0130] Call Info indicates whether it supports displaying phone information, such as the Chinese name corresponding to a phone number in a phone book.

[0131] If each bit in Table 3 is set to 1, it means that this codec is supported; if each bit is set to 0, it means that this codec is not supported.

[0132] The Appearance field in Table 1 above indicates the type of the second dual-mode Bluetooth device, such as speaker devices, mobile phone devices, headphone devices, watch devices, etc.

[0133] It should be noted that the formats of Bluetooth Low Energy Broadcast messages, including the 0xdd and 0xee formats, are not limited to these. For example, the format of Bluetooth Low Energy Broadcast messages can include support for more types of protocols, and 0xdd can be sixteen bits, including support for more types of encoding methods, etc.

[0134] As mentioned earlier, Bluetooth Low Energy (BLE) connections are faster than classic Bluetooth connections. In some embodiments, if a Bluetooth BLE connection is completed before a classic Bluetooth connection is complete, subsequent data (such as codec parameters) can be exchanged through the Bluetooth BLE connection path, while simultaneously initiating a page action on the BR / EDR device.

[0135] The controller 102 can also be configured to: obtain information on the second service capabilities supported by the second dual-mode Bluetooth device based on the established Bluetooth Low Energy connection path.

[0136] As mentioned earlier, the first service capability information represents information related to the basic services of the second dual-mode Bluetooth device. The first dual-mode Bluetooth device can add new services on top of existing services, and correspondingly, it can query whether the second dual-mode Bluetooth device also supports the new service. Therefore, compared to the first service capability information, the second service capability information can refer to information related to advanced services or more detailed information within the basic services. For example, for SBC encoding, more service capability information about SBC encoding can be queried. The second service information may include: sampling rate support, channel mode support, block length support, subbands support, bitpool support, etc.

[0137] Furthermore, the second service capability information is compared with the second service capability information of the first dual-mode Bluetooth device itself to obtain the second target service capability information. The second target service capability information can be service capability information supported by both the first and second dual-mode Bluetooth devices. Based on the first and second target service capability information, a classic Bluetooth connection is established with the second dual-mode Bluetooth device.

[0138] See Figure 6A , Figure 6A This is a schematic diagram of a classic Bluetooth connection in some embodiments of this application. After the first dual-mode Bluetooth device successfully authenticates the second dual-mode Bluetooth device, the protocols supported by the second dual-mode Bluetooth device are parsed from the Bluetooth Low Energy broadcast message. Based on the parsing result, a BLE connection and a BR / EDR page are initiated. During this process, the highest priority codec supported can be selected. The second dual-mode Bluetooth device responds to the BLE connection and the BR / EDR page. The BLE connection establishment speed is relatively fast. After the BLE connection is established, if the BR / EDR is already connected, an A2DP profile connection can be directly established. If the BR / EDR is not connected, the second target service capability information can be obtained through BLE.

[0139] Next, the second service capability information of the second dual-mode Bluetooth device is compared with its own second service capability information to obtain the second target service capability information. For example, the ultimately supported sampling rates include: 16000Hz, 32000Hz, 44100Hz, and 48000Hz; the supported channel modes include: MONO, DUALCHANNEL, SETREO, and JOINT SETREO; the supported block lengths include 4, 8, 12, and 16; the supported subbands include 4 and 8; and the supported bitpool minimum value is 2, and the maximum value is 53.

[0140] Configure the second target service capability information via BLE and establish a BR / EDR connection. See also Figure 6B , Figure 6B This is a schematic diagram of an A2DP connection in the BR / EDR connection process. First, an A2DP profile connection can be initiated to obtain the A2DP capability information of the second dual-mode Bluetooth device. Based on the A2DP capability information, a connection is made to the corresponding SEP (Stream End Point). After the audio data is encrypted, the A2DP profile connection is complete.

[0141] It should be noted that if the classic Bluetooth connection is still not established after the above data exchange is completed, the BR / EDR connection can be established using the parameters already configured in BLE.

[0142] During the Bluetooth connection process between the first and second dual-mode Bluetooth devices, the Bluetooth Low Energy broadcast message sent by the second dual-mode Bluetooth device includes: the name information of the second dual-mode Bluetooth device, encrypted information encrypting the manufacturer information, and the first service capability information supported by the second dual-mode Bluetooth device. The controller in the first dual-mode Bluetooth device can authenticate based on the name and manufacturer information. After successful authentication, it initiates a Bluetooth connection with the second dual-mode Bluetooth device, avoiding the process of obtaining the name of the second dual-mode Bluetooth device and improving the efficiency of the Bluetooth connection. During encryption and binding, a pre-set encryption algorithm can be used directly without creating a new one, further improving the efficiency of the Bluetooth connection. The first service capability information is compared with the first dual-mode Bluetooth device's own first service capability information to obtain the first target service capability information, thereby establishing a classic Bluetooth connection with the second dual-mode Bluetooth device based on the first target service capability information. It can be seen that during the Bluetooth connection process, the first dual-mode Bluetooth device does not need to actively query the service capability information of the second dual-mode Bluetooth device, and the active query process is time-consuming, thus also improving the efficiency of the Bluetooth connection. Furthermore, the first dual-mode Bluetooth device can obtain the second service capability information of the second dual-mode Bluetooth device through the established BLE channel, thereby determining whether the second dual-mode Bluetooth device can adapt to more functions supported by the first dual-mode Bluetooth device and improve the user experience.

[0143] Assume the first dual-mode Bluetooth device is a display device, and the second dual-mode Bluetooth device is a smart speaker. This smart speaker could be a soundbar (also known as a strip speaker), which is a long, rectangular speaker that integrates the functions of multiple channels into one enclosure and is a dual-mode Bluetooth device.

[0144] Figure 7This is a schematic diagram illustrating an operational scenario between a display device and a control device according to one or more embodiments of this application, such as... Figure 7 As shown, a user can operate the display device 200 via a mobile terminal 300 and a control device 100. The control device 100 can be a remote control, and communication between the remote control and the display device includes infrared protocol communication, Bluetooth protocol communication, wireless or other wired methods to control the display device 200. The user can input user commands through buttons on the remote control, voice input, control panel input, etc., to control the display device 200. In some embodiments, a mobile terminal, tablet computer, computer, laptop computer, and other smart devices can also be used to control the display device 200.

[0145] In some embodiments, the mobile terminal 300 can install software applications with the display device 200 to achieve connection and communication via network communication protocols, enabling one-to-one control operations and data communication. Audio and video content displayed on the mobile terminal 300 can also be transmitted to the display device 200 for synchronous display. The display device 200 also communicates with the server 400 via various communication methods. The display device 200 can communicate via a local area network (LAN), wireless local area network (WLAN), and other networks. The server 400 can provide various content and interactive features to the display device 200. The display device 200 can be a liquid crystal display, an OLED display, or a projection display device. In addition to providing broadcast television reception functions, the display device 200 can also be equipped with a smart network television function that provides computer support.

[0146] Figure 8 An exemplary block diagram of the configuration of the control device 100 according to an exemplary embodiment is shown. Figure 8 As shown, the control device 100 includes a controller 110, a communication interface 130, a user input / output interface 140, a memory, and a power supply. The control device 100 can receive user input commands and convert them into commands that the display device 200 can recognize and respond to, acting as an intermediary for interaction between the user and the display device 200. The communication interface 130 is used for external communication and includes a dual-mode Bluetooth module, and may also include at least one of a WIFI chip, NFC, or alternative modules. The user input / output interface 140 includes at least one of a microphone, touchpad, sensor, button, or alternative modules.

[0147] Figure 9A A hardware configuration block diagram of a display device 200 according to an exemplary embodiment is shown. For example... Figure 9AThe display device 200 shown includes at least one of the following: a tuner / demodulator 210, a communicator 220, a detector 230, an external device interface 240, a controller 250, a display 260, an audio output interface 270, an external memory, a power supply, and a user interface 280. The controller includes a central processing unit, a video processor, an audio processor, a graphics processor, RAM, ROM, and a first to nth interface for input / output. The communicator 220 may include a dual-mode Bluetooth module, a wired Ethernet module, and a WIFI module. The display 260 may be at least one of a liquid crystal display, an OLED display, a touch display, and a projection display, and may also be a projection device and a projection screen. The tuner / demodulator 210 receives broadcast television signals via wired or wireless reception and demodulates audio and video signals, such as EPG data signals, from multiple wireless or wired broadcast television signals. The detector 230 is used to collect signals from the external environment or signals interacting with the external environment. The controller 250 and the tuner 210 can be located in different separate devices, that is, the tuner 210 can also be located in an external device of the main device where the controller 250 is located, such as an external set-top box.

[0148] In some embodiments, the controller 250 controls the operation of the display device and responds to user operations through various software control programs stored in external memory. The controller 250 controls the overall operation of the display device 200. The user can input user commands through a graphical user interface (GUI) displayed on the monitor 260, and the user input interface receives the user input commands through the GUI. Alternatively, the user can input user commands by inputting specific sounds or gestures, and the user input interface receives the user input commands by recognizing the sounds or gestures through sensors.

[0149] In some embodiments, a "user interface" is the medium through which an application or operating system interacts and exchanges information with a user, enabling the conversion between the internal form of information and a form acceptable to the user. A common form of user interface is the graphical user interface (GUI), which refers to a user interface related to computer operation displayed graphically. It can be an icon, window, control, or other interface element displayed on the screen of an electronic device. Controls can include at least one of the visual interface elements such as icons, buttons, menus, tabs, text boxes, dialog boxes, status bars, navigation bars, and widgets.

[0150] Figure 9B This is a schematic diagram of the software configuration in a display device 200 according to one or more embodiments of this application, such as... Figure 9BAs shown, the system is divided into four layers, from top to bottom: the Applications layer (referred to as the "Application Layer"), the Application Framework layer (referred to as the "Framework Layer"), the Android runtime and system library layer (referred to as the "System Runtime Library Layer"), and the kernel layer. The kernel layer contains the Bluetooth driver and may also contain at least one of the following drivers: audio driver, display driver, camera driver, Wi-Fi driver, USB driver, HDMI driver, sensor driver (such as fingerprint sensor, temperature sensor, pressure sensor, etc.), and power driver, etc.

[0151] In some embodiments, the display device 200 described above may be a terminal device with display function, such as a television, smartphone, computer, learning machine, etc.

[0152] Corresponding to the first dual-mode Bluetooth device in source mode described above, this application also provides a second dual-mode Bluetooth device applied in sink mode. See Figure 10 , Figure 10 This is a schematic diagram of a dual-mode Bluetooth device in some embodiments of this application. The second dual-mode Bluetooth device, applied in sink mode, includes:

[0153] The communicator 1010 is configured to: send a Bluetooth Low Energy broadcast message including first service capability information supported by the second dual-mode Bluetooth device to the first dual-mode Bluetooth device, so that the controller in the first dual-mode Bluetooth device compares the first service capability information with the first service capability information of the first dual-mode Bluetooth device itself to obtain first target service capability information; and establish a classic Bluetooth connection with the second dual-mode Bluetooth device according to the first target service capability information.

[0154] In some embodiments of this application, the communicator 1010 is configured to: send a Bluetooth Low Energy broadcast message to a first dual-mode Bluetooth device, including first service capability information supported by the second dual-mode Bluetooth device and encrypted information obtained by encrypting the manufacturer information of the second dual-mode Bluetooth device according to the private key, so that the controller in the first dual-mode Bluetooth device decrypts the encrypted information according to the public key to obtain decrypted information; if the decrypted information is the same as the preset information, perform the step of comparing the first service capability information with the first service capability information of the first dual-mode Bluetooth device itself.

[0155] In some embodiments of this application, the communicator 1010 is configured to: send a Bluetooth Low Energy broadcast message including an appearance attribute field to a first dual-mode Bluetooth device, so that the controller in the first dual-mode Bluetooth device determines the display symbol corresponding to the appearance attribute field, and causes the display in the first dual-mode Bluetooth device to display the Bluetooth icon as the display symbol.

[0156] In some embodiments of this application, the communicator 1010 is further configured to: after establishing a Bluetooth Low Energy connection with the first dual-mode Bluetooth device, receive service capability query information sent by the first dual-mode Bluetooth device according to the established Bluetooth Low Energy connection path;

[0157] Send second service capability information for the service capability query to the first dual-mode Bluetooth device, so that the controller in the first dual-mode Bluetooth device compares the second service capability information with the second service capability information of the first dual-mode Bluetooth device itself to obtain the second target service capability information; and establish a classic Bluetooth connection with the second dual-mode Bluetooth device based on the first target service capability information and the second target service capability information.

[0158] It should be noted that the implementation process of the second dual-mode Bluetooth device during the Bluetooth connection process corresponds to the implementation process of the first dual-mode Bluetooth device mentioned above. For details, please refer to the description of the first dual-mode Bluetooth device mentioned above, which will not be repeated here.

[0159] See Figure 11 , Figure 11 This is a schematic diagram illustrating the interaction between two dual-mode Bluetooth devices in some embodiments of this application.

[0160] The second dual-mode Bluetooth device sends a Bluetooth Low Energy broadcast message to the first dual-mode Bluetooth device, which includes information about the first service capabilities supported by the second dual-mode Bluetooth device.

[0161] The controller in the first dual-mode Bluetooth device compares the first service capability information with the first service capability information of the first dual-mode Bluetooth device itself to obtain the first target service capability information.

[0162] The first dual-mode Bluetooth device establishes a classic Bluetooth connection with the second dual-mode Bluetooth device based on the first target service capability information.

[0163] Understandably, for the two accompanying dual-mode Bluetooth devices ( Figure 3 The first dual-mode Bluetooth device in the embodiment and Figure 10The second dual-mode Bluetooth device in the setup can quickly establish a Bluetooth connection using the above process. However, in real-world scenarios, users may use two incompatible dual-mode Bluetooth devices to connect via Bluetooth. In this case, the above process cannot be used to quickly establish a Bluetooth connection, but for compatibility, the native Bluetooth connection process can be maintained.

[0164] If the first dual-mode Bluetooth device does not belong to Figure 3 The dual-mode Bluetooth device in the embodiment, while the second dual-mode Bluetooth device belongs to... Figure 10 In this embodiment, the first dual-mode Bluetooth device lacks the ability to receive and interpret Bluetooth Low Energy broadcast messages sent by the second dual-mode Bluetooth device. Therefore, when the UI displays the found Bluetooth devices, it doesn't know whether the device is a BLE device or a BR / EDR device. When the user clicks "Connect," they will recognize the second dual-mode Bluetooth device as a dual-mode Bluetooth device and proceed with the classic Bluetooth connection process. If a BLE connection is established, the first dual-mode Bluetooth device will not interact with the second dual-mode Bluetooth device, and the second dual-mode Bluetooth device will disconnect after a 5-second timeout.

[0165] If the first dual-mode Bluetooth device belongs to Figure 3 The dual-mode Bluetooth device in the embodiment, while the second dual-mode Bluetooth device does not belong to... Figure 10 In the dual-mode Bluetooth device of the embodiment, since the second dual-mode Bluetooth device does not send Bluetooth Low Energy broadcast messages containing a specific format, the first dual-mode Bluetooth device will not trigger the fast pairing process and can simply execute the native Bluetooth connection process.

[0166] Corresponding to the Bluetooth device described above, this application also provides a Bluetooth connection method.

[0167] like Figure 12 As shown, Figure 12 This is a flowchart of a Bluetooth connection method in some embodiments of this application, applied to a first dual-mode Bluetooth device in source mode, and may include the following steps:

[0168] Step S1210: Receive a Bluetooth Low Energy broadcast message sent by the second dual-mode Bluetooth device, wherein the Bluetooth Low Energy broadcast message includes: information on the first service capabilities supported by the second dual-mode Bluetooth device.

[0169] Step S1220: Compare the first service capability information with the first service capability information of the first dual-mode Bluetooth device itself to obtain the first target service capability information.

[0170] Step S1230: Based on the first target service capability information, establish a classic Bluetooth connection with the second dual-mode Bluetooth device.

[0171] In some embodiments of this application, the Bluetooth Low Energy broadcast message further includes: encrypted information obtained by encrypting the manufacturer information of the second dual-mode Bluetooth device according to the private key;

[0172] The above Bluetooth connection methods also include:

[0173] The encrypted information is decrypted using the public key to obtain the decrypted information;

[0174] If the decrypted information is the same as the preset information, the step of comparing the first service capability information with the first service capability information of the first dual-mode Bluetooth device itself is executed.

[0175] In some embodiments of this application, the Bluetooth connection method further includes:

[0176] Use the public and private keys as secrets created during the process of binding the first dual-mode Bluetooth device and the second dual-mode Bluetooth device.

[0177] In some embodiments of this application, the Bluetooth Low Energy broadcast message also includes an appearance attribute field;

[0178] The above Bluetooth connection methods also include:

[0179] Determine the display symbol corresponding to the appearance attribute field;

[0180] Display the Bluetooth icon as a symbol.

[0181] In some embodiments of this application, the Bluetooth connection method further includes:

[0182] Based on the first target service capability information, establish a Bluetooth Low Energy connection with the second dual-mode Bluetooth device.

[0183] In some embodiments of this application, the Bluetooth connection method further includes:

[0184] Based on the established Bluetooth Low Energy connection path, obtain the second service capability information supported by the second dual-mode Bluetooth device;

[0185] The second service capability information is compared with the second service capability information of the first dual-mode Bluetooth device itself to obtain the second target service capability information.

[0186] Based on the first target service capability information and the second target service capability information, a classic Bluetooth connection is established with the second dual-mode Bluetooth device.

[0187] Some embodiments of this application also provide a Bluetooth connection method applied to a second dual-mode Bluetooth device in sink mode. See [link to relevant documentation]. Figure 13 This may include the following steps:

[0188] Step S1310: Send a Bluetooth Low Energy Broadcast message including the first service capability information supported by the second dual-mode Bluetooth device to the first dual-mode Bluetooth device, so that the first dual-mode Bluetooth device compares the first service capability information with its own first service capability information to obtain the first target service capability information; and establish a classic Bluetooth connection with the second dual-mode Bluetooth device based on the first target service capability information.

[0189] In some embodiments of this application, the Bluetooth connection method further includes:

[0190] Send a Bluetooth Low Energy broadcast message to the first dual-mode Bluetooth device, including first service capability information supported by the second dual-mode Bluetooth device and encrypted information obtained by encrypting the manufacturer information of the second dual-mode Bluetooth device according to the private key, so that the first dual-mode Bluetooth device can decrypt the encrypted information according to the public key to obtain decrypted information; if the decrypted information is the same as the preset information, perform the step of comparing the first service capability information with the first service capability information of the first dual-mode Bluetooth device itself.

[0191] In some embodiments of this application, the Bluetooth connection method further includes:

[0192] A Bluetooth Low Energy broadcast message including appearance attribute fields is sent to the first dual-mode Bluetooth device so that the first dual-mode Bluetooth device can determine the display symbol corresponding to the appearance attribute fields and display the Bluetooth icon as the display symbol.

[0193] In some embodiments of this application, the Bluetooth connection method further includes:

[0194] After establishing a Bluetooth Low Energy connection with the first dual-mode Bluetooth device, receive service capability query information sent by the first dual-mode Bluetooth device based on the established Bluetooth Low Energy connection path;

[0195] Send second service capability information for the service capability query to the first dual-mode Bluetooth device, so that the first dual-mode Bluetooth device can compare the second service capability information with its own second service capability information to obtain second target service capability information; and establish a classic Bluetooth connection with the second dual-mode Bluetooth device based on the first target service capability information and the second target service capability information.

[0196] Understandable, Figure 12 The steps involved may include more or fewer steps in actual implementation, and the order of these steps may also be different, depending on whether the Bluetooth connection method provided in the embodiments of the present invention can be implemented.

[0197] This invention also provides a computer-readable storage medium storing a computer program. When the computer program is executed by a processor, it implements the various processes of the Bluetooth connection method described above and achieves the same technical effect. To avoid repetition, it will not be described again here.

[0198] The computer-readable storage medium can be a read-only memory (ROM), a random access memory (RAM), a magnetic disk, or an optical disk, etc.

[0199] This invention also provides a computer program product, including: when the computer program product is run on a computer, causing the computer to implement the above-described Bluetooth connection method.

[0200] For ease of explanation, the above description has been provided in conjunction with specific embodiments. However, the discussion in some embodiments above is not intended to be exhaustive or to limit the embodiments to the specific forms disclosed above. Various modifications and variations can be obtained based on the above teachings. The selection and description of the above embodiments are for the purpose of better explaining the principles and practical applications, thereby enabling those skilled in the art to better utilize the embodiments and various different variations of the embodiments suitable for specific application considerations.

[0201] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, and not to limit them; although the present invention has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that modifications can still be made to the technical solutions described in the foregoing embodiments, or equivalent substitutions can be made to some or all of the technical features; and these modifications or substitutions do not cause the essence of the corresponding technical solutions to deviate from the scope of the technical solutions of the embodiments of the present invention.

Claims

1. A dual-mode Bluetooth device, characterized in that, The first dual-mode Bluetooth device applied to source mode includes: The communicator is configured to receive a Bluetooth Low Energy broadcast message sent by a second dual-mode Bluetooth device, wherein the Bluetooth Low Energy broadcast message includes: first service capability information supported by the second dual-mode Bluetooth device, the first service capability information representing information related to the basic services of the second dual-mode Bluetooth device, the first service capability information including protocols supported by the second dual-mode Bluetooth device, the protocols supported by the second dual-mode Bluetooth device including whether the second dual-mode Bluetooth device supports the A2DP profile, and when the second dual-mode Bluetooth device supports the A2DP profile, the Codec mode supported by the A2DP protocol; the Codec mode includes a subband encoding mode; The controller is configured to: compare the first service capability information with the first service capability information of the first dual-mode Bluetooth device itself to obtain first target service capability information, wherein the first target service capability information includes that both the first dual-mode Bluetooth device and the second dual-mode Bluetooth device support the A2DP profile, and that the codec modes supported by both the first dual-mode Bluetooth device and the second dual-mode Bluetooth device include the sub-band encoding mode; Based on the first target service capability information, establish a classic Bluetooth connection and a Bluetooth Low Energy connection with the second dual-mode Bluetooth device; When the Bluetooth Low Energy connection is established but the Classic Bluetooth connection is not established, based on the established Bluetooth Low Energy connection path, the second service capability information supported by the second dual-mode Bluetooth device is obtained by sending service capability query information. The second service capability information represents information related to advanced services of the second dual-mode Bluetooth device or more detailed information in basic services. When both the first and second dual-mode Bluetooth devices support the A2DP profile, the second service capability information includes information corresponding to the subband encoding mode. The information corresponding to the subband encoding mode includes sampling rate support, channel mode support, block length support, subband quantity support, and bit pool support. Subband encoding is the encoding format specified by the A2DP protocol. The second service capability information is compared with the second service capability information of the first dual-mode Bluetooth device itself to obtain the second target service capability information. The second target service capability information includes: the sampling rate, channel mode, block length, number of sub-bands and bit pool supported by both the first dual-mode Bluetooth device and the second dual-mode Bluetooth device. Based on the first target service capability information and the second target service capability information, establish a classic Bluetooth connection with the second dual-mode Bluetooth device; In the classic Bluetooth connection process, an A2DP profile connection is established based on the subband encoding information in the second target service capability information.

2. The dual-mode Bluetooth device according to claim 1, characterized in that, The Bluetooth Low Energy Broadcast message also includes: encrypted information obtained by encrypting the manufacturer information of the second dual-mode Bluetooth device according to the private key; The controller is further configured to: decrypt the encrypted information based on the public key to obtain decrypted information; If the decrypted information is the same as the preset information, the step of comparing the first service capability information with the first service capability information of the first dual-mode Bluetooth device itself is executed.

3. The dual-mode Bluetooth device according to claim 2, characterized in that, The controller is also configured to use the public key and the private key as secrets created during the binding process of the first dual-mode Bluetooth device and the second dual-mode Bluetooth device.

4. The dual-mode Bluetooth device according to claim 1, characterized in that, The Bluetooth Low Energy broadcast message also includes an appearance attribute field; The controller is further configured to: determine the display symbol corresponding to the appearance attribute field; The first dual-mode Bluetooth device further includes: a display; The display is configured to display the Bluetooth icon as the display symbol.

5. A dual-mode Bluetooth device, characterized in that, Second dual-mode Bluetooth devices applicable to sink mode include: A communicator is configured to: send a Bluetooth Low Energy broadcast message to a first dual-mode Bluetooth device, including first service capability information supported by the second dual-mode Bluetooth device, so that a controller in the first dual-mode Bluetooth device compares the first service capability information with its own first service capability information to obtain first target service capability information; and establish a classic Bluetooth connection and a Bluetooth Low Energy connection with the second dual-mode Bluetooth device based on the first target service capability information. The first service capability information represents information related to the basic services of the second dual-mode Bluetooth device, including protocols supported by the second dual-mode Bluetooth device. The protocols supported by the second dual-mode Bluetooth device include whether the second dual-mode Bluetooth device supports the A2DP profile, and when the second dual-mode Bluetooth device supports the A2DP profile, the Codec mode supported by the A2DP protocol; the Codec mode includes a subband encoding mode; the first target service capability information includes that both the first and second dual-mode Bluetooth devices support the A2DP profile, and the Codec mode supported by both the first and second dual-mode Bluetooth devices includes the subband encoding mode. When the Bluetooth Low Energy connection is established but the Classic Bluetooth connection is not established, the service capability query information sent by the first dual-mode Bluetooth device according to the established Bluetooth Low Energy connection path is received. The first dual-mode Bluetooth device sends second service capability information in response to the service capability query information, so that the controller in the first dual-mode Bluetooth device compares the second service capability information with its own second service capability information to obtain second target service capability information. The second service capability information represents information related to advanced services or more detailed information in basic services of the second dual-mode Bluetooth device. When both the first and second dual-mode Bluetooth devices support the A2DP profile, the second service capability information includes information corresponding to the subband encoding mode. This information includes sampling rate support, channel mode support, block length support, subband quantity support, and bit pool support. Subband encoding is an encoding format specified by the A2DP protocol. The second target service capability information includes: sampling rate, channel mode, block length, subband quantity, and bit pool supported by both the first and second dual-mode Bluetooth devices. Based on the first target service capability information and the second target service capability information, establish a classic Bluetooth connection with the second dual-mode Bluetooth device; In the classic Bluetooth connection process, an A2DP profile connection is established based on the subband encoding information in the second target service capability information.

6. A Bluetooth connection method, characterized in that, The method, applied to a first dual-mode Bluetooth device in source mode, includes: The system receives a Bluetooth Low Energy broadcast message sent by a second dual-mode Bluetooth device. The Bluetooth Low Energy broadcast message includes: first service capability information supported by the second dual-mode Bluetooth device. This first service capability information represents information related to the basic services of the second dual-mode Bluetooth device. The first service capability information includes protocols supported by the second dual-mode Bluetooth device. The protocols supported by the second dual-mode Bluetooth device include whether the second dual-mode Bluetooth device supports the A2DP profile, and when the second dual-mode Bluetooth device supports the A2DP profile, the Codec mode supported by the A2DP protocol; the Codec mode includes subband encoding mode. The first service capability information is compared with the first service capability information of the first dual-mode Bluetooth device itself to obtain the first target service capability information. The first target service capability information includes that both the first dual-mode Bluetooth device and the second dual-mode Bluetooth device support the A2DP profile, and that the codec mode supported by both the first dual-mode Bluetooth device and the second dual-mode Bluetooth device includes the sub-band encoding mode. Based on the first target service capability information, establish a classic Bluetooth connection and a Bluetooth Low Energy connection with the second dual-mode Bluetooth device; When the Bluetooth Low Energy connection is established but the Classic Bluetooth connection is not established, based on the established Bluetooth Low Energy connection path, the second service capability information supported by the second dual-mode Bluetooth device is obtained by sending service capability query information. The second service capability information represents information related to advanced services of the second dual-mode Bluetooth device or more detailed information in basic services. When both the first and second dual-mode Bluetooth devices support the A2DP profile, the second service capability information includes information corresponding to the subband encoding mode. The information corresponding to the subband encoding mode includes sampling rate support, channel mode support, block length support, subband quantity support, and bit pool support. Subband encoding is the encoding format specified by the A2DP protocol. The second service capability information is compared with the second service capability information of the first dual-mode Bluetooth device itself to obtain the second target service capability information. The second target service capability information includes: the sampling rate, channel mode, block length, number of sub-bands and bit pool supported by both the first dual-mode Bluetooth device and the second dual-mode Bluetooth device. Based on the first target service capability information and the second target service capability information, establish a classic Bluetooth connection with the second dual-mode Bluetooth device; In the classic Bluetooth connection process, an A2DP profile connection is established based on the subband encoding information in the second target service capability information.

7. A Bluetooth connection method, characterized in that, A second dual-mode Bluetooth device applied in sink mode, the method comprising: A Bluetooth Low Energy broadcast message, including first service capability information supported by the second dual-mode Bluetooth device, is sent to a first dual-mode Bluetooth device. This allows the first dual-mode Bluetooth device to compare the first service capability information with its own first service capability information to obtain first target service capability information. Based on the first target service capability information, a classic Bluetooth connection and a Bluetooth Low Energy connection are established with the second dual-mode Bluetooth device. The first service capability information represents information related to the basic services of the second dual-mode Bluetooth device. This information includes protocols supported by the second dual-mode Bluetooth device, including whether the second dual-mode Bluetooth device supports the A2DP profile and, when the second dual-mode Bluetooth device supports the A2DP profile, the codec mode supported by the A2DP protocol. The codec mode includes a subband encoding mode. The first target service capability information includes that both the first and second dual-mode Bluetooth devices support the A2DP profile, and that the codec mode supported by both the first and second dual-mode Bluetooth devices includes the subband encoding mode. When the Bluetooth Low Energy connection is established but the Classic Bluetooth connection is not established, the service capability query information sent by the first dual-mode Bluetooth device according to the established Bluetooth Low Energy connection path is received. The first dual-mode Bluetooth device sends second service capability information in response to the service capability query information, so that the controller in the first dual-mode Bluetooth device compares the second service capability information with its own second service capability information to obtain second target service capability information. The second service capability information represents information related to advanced services or more detailed information in basic services of the second dual-mode Bluetooth device. When both the first and second dual-mode Bluetooth devices support the A2DP profile, the second service capability information includes information corresponding to the subband encoding mode. This information includes sampling rate support, channel mode support, block length support, subband quantity support, and bit pool support. Subband encoding is an encoding format specified by the A2DP protocol. The second target service capability information includes: sampling rate, channel mode, block length, subband quantity, and bit pool supported by both the first and second dual-mode Bluetooth devices. Based on the first target service capability information and the second target service capability information, establish a classic Bluetooth connection with the second dual-mode Bluetooth device; In the classic Bluetooth connection process, an A2DP profile connection is established based on the subband encoding information in the second target service capability information.

Citation Information

Patent Citations

  • Bluetooth connection method, device, and intelligent terminal

    CN108551670A

  • Method and device for quickly pairing dual-mode Bluetooth equipment

    CN112788579A

  • Communication equipment pairing connection method, communication terminal and device with storage function

    CN113498045A

  • Method and device for connecting alternative communication means using bluetooth low energy technology

    US20180152979A1