CN114786158A - Dual-mode Bluetooth device and Bluetooth connection method - Google Patents

Dual-mode Bluetooth device and Bluetooth connection method Download PDF

Info

Publication number
CN114786158A
CN114786158A CN202210252918.XA CN202210252918A CN114786158A CN 114786158 A CN114786158 A CN 114786158A CN 202210252918 A CN202210252918 A CN 202210252918A CN 114786158 A CN114786158 A CN 114786158A
Authority
CN
China
Prior art keywords
dual
bluetooth device
service capability
capability information
mode bluetooth
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202210252918.XA
Other languages
Chinese (zh)
Inventor
杨坤
邓子敬
郑鹏
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Hisense Visual Technology Co Ltd
Original Assignee
Hisense Visual Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Hisense Visual Technology Co Ltd filed Critical Hisense Visual Technology Co Ltd
Priority to CN202210252918.XA priority Critical patent/CN114786158A/en
Publication of CN114786158A publication Critical patent/CN114786158A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/80Services using short range communication, e.g. near-field communication [NFC], radio-frequency identification [RFID] or low energy communication
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W12/00Security arrangements; Authentication; Protecting privacy or anonymity
    • H04W12/03Protecting confidentiality, e.g. by encryption
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W12/00Security arrangements; Authentication; Protecting privacy or anonymity
    • H04W12/50Secure pairing of devices
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W76/00Connection management
    • H04W76/10Connection setup
    • H04W76/14Direct-mode setup
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W8/00Network data management
    • H04W8/005Discovery of network devices, e.g. terminals
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W88/00Devices specially adapted for wireless communication networks, e.g. terminals, base stations or access point devices
    • H04W88/02Terminal devices
    • H04W88/06Terminal devices adapted for operation in multiple networks or having at least two operational modes, e.g. multi-mode terminals

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Computer Security & Cryptography (AREA)
  • Databases & Information Systems (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

The application relates to a dual-mode Bluetooth device and a Bluetooth connection method, which are applied to the technical field of wireless communication, wherein the dual-mode Bluetooth device and the Bluetooth connection method are applied to a first dual-mode Bluetooth device in a source mode, and the first dual-mode Bluetooth device comprises: a communicator configured to: receiving a bluetooth low energy broadcast message sent by a second dual mode bluetooth device, wherein the bluetooth low energy broadcast message comprises: first service capability information supported by a second dual mode bluetooth device; a controller configured to: comparing the first service capability information with first service capability information of a first dual-mode Bluetooth device to obtain first target service capability information; and establishing a classic Bluetooth connection with the second dual-mode Bluetooth device according to the first target service capability information. This application can improve the efficiency that the bluetooth is connected.

Description

Dual-mode Bluetooth device and Bluetooth connection method
Technical Field
The present application relates to the field of wireless communications technologies, and in particular, to a dual-mode bluetooth device and a bluetooth connection method.
Background
The dual-mode Bluetooth device is a device that supports both classic Bluetooth and BLE (Bluetooth Low Energy). In the process of pairing the dual-mode bluetooth device a and the dual-mode bluetooth device B, a user is generally required to enter a bluetooth configuration interface of the dual-mode bluetooth device a, so that the dual-mode bluetooth device a enters an Inquiry state, and the dual-mode bluetooth device B is operated to enter an Inquiry scan state. After the name of the dual-mode Bluetooth device B is displayed on a Bluetooth configuration interface of the dual-mode Bluetooth device A, a user clicks pairing to complete connection between the dual-mode Bluetooth device A and the dual-mode Bluetooth device B. However, the operation steps in the process are complex, the time consumed by the bluetooth connection is long, and the user experience is poor.
Disclosure of Invention
In order to solve the above technical problem, the present application provides a dual mode bluetooth device, a bluetooth connection method, a storage medium, and a program product.
According to a first aspect of the present application, there is provided a dual mode bluetooth device, applied to a first dual mode bluetooth device in source mode, comprising:
a communicator configured to: receiving 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;
a controller configured to: comparing the first service capability information with first service capability information of the first dual-mode Bluetooth device to obtain first target service capability information;
and establishing a classic Bluetooth connection with the second dual-mode Bluetooth device according to the first target service capability information.
In some embodiments of the present application, the bluetooth low energy broadcast message further includes: encrypting manufacturer information of the second dual-mode Bluetooth device according to a private key to obtain encrypted information;
the controller further configured to: decrypting the encrypted information according to the public key to obtain decrypted information;
and if the decryption information is the same as preset information, performing the step of comparing the first service capability information with the first service capability information of the first dual mode bluetooth device.
In some embodiments of the present application, the controller is further configured to: and using the public key and the private key as keys created in the binding process of the first dual-mode Bluetooth device and the second dual-mode Bluetooth device.
In some embodiments of the present application, the bluetooth low energy broadcast message further includes an appearance attribute field;
the controller further configured to: determining a display symbol corresponding to the appearance attribute field;
the first dual mode bluetooth device further comprises: a display;
the display configured to display a Bluetooth icon as the display symbol.
In some embodiments of the present application, the controller is further configured to: and establishing Bluetooth low-power connection with the second dual-mode Bluetooth equipment according to the first target service capability information.
In some embodiments of the present application, the controller is further configured to obtain second service capability information supported by the second dual mode bluetooth device according to the established bluetooth low energy connection path;
comparing the second service capability information with second service capability information of the first dual-mode Bluetooth device to obtain second target service capability information;
and establishing 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.
According to a second aspect of the present application, there is provided a dual mode bluetooth device, applied to a sink mode second dual mode bluetooth device, comprising:
a communicator configured to: sending a bluetooth low energy broadcast message including first service capability information supported by a second dual mode bluetooth device to a first dual mode bluetooth device, so that a controller in the first dual mode bluetooth device compares the first service capability information with first service capability information of the first dual mode bluetooth device to obtain first target service capability information; and establishing a classic Bluetooth connection with the second dual-mode Bluetooth device according to the first target service capability information.
In some embodiments of the present application, the communicator is further configured to: sending a Bluetooth low-power consumption broadcast message which comprises first service capability information supported by a second dual-mode Bluetooth device and encrypted information obtained by encrypting manufacturer information of the second dual-mode Bluetooth device according to a private key to a first dual-mode Bluetooth device, so that a controller in the first dual-mode Bluetooth device decrypts the encrypted information according to the public key to obtain decrypted information; and if the decryption information is the same as preset information, executing the step of comparing the first service capability information with the first service capability information of the first dual-mode Bluetooth device.
In some embodiments of the present application, the communicator is further configured to: sending a bluetooth low energy broadcast message including an appearance attribute field to a first dual mode bluetooth device, so that a controller in the first dual mode bluetooth device determines a display symbol corresponding to the appearance attribute field, and a display in the first dual mode bluetooth device displays a bluetooth icon as the display symbol.
In some embodiments of the present application, the communicator is further configured to: after establishing a Bluetooth low-power-consumption connection with the first dual-mode Bluetooth device, receiving service capability inquiry information sent by the first dual-mode Bluetooth device according to the established Bluetooth low-power-consumption connection path;
sending second service capability information aiming at the service capability query information to the first dual-mode Bluetooth device, so that a controller in the first dual-mode Bluetooth device compares the second service capability information with second service capability information of the first dual-mode Bluetooth device to obtain second target service capability information; and establishing 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.
According to a third aspect of the present application, there is provided a bluetooth connection method applied to a first dual mode bluetooth device in source mode, the method comprising:
receiving 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;
comparing the first service capability information with first service capability information of the first dual-mode Bluetooth device to obtain first target service capability information;
and establishing a classic Bluetooth connection with the second dual-mode Bluetooth device according to the first target service capability information.
In some embodiments of the present application, the bluetooth low energy broadcast message further includes: encrypting manufacturer information of the second dual-mode Bluetooth device according to a private key to obtain encrypted information;
the method further comprises the following steps:
decrypting the encrypted information according to the public key to obtain decrypted information;
and if the decryption information is the same as preset information, executing the step of comparing the first service capability information with the first service capability information of the first dual-mode Bluetooth device.
In some embodiments of the present application, the method further comprises:
and using the public key and the private key as keys created in the process of binding the first dual-mode Bluetooth device and the second dual-mode Bluetooth device.
In some embodiments of the present application, the bluetooth low energy broadcast message further includes an appearance attribute field;
the method further comprises the following steps:
determining a display symbol corresponding to the appearance attribute field;
and displaying the Bluetooth icon as the display symbol.
In some embodiments of the present application, the method further comprises:
and establishing Bluetooth low-power-consumption connection with the second dual-mode Bluetooth equipment according to the first target service capability information.
In some embodiments of the present application, the method further comprises:
acquiring second service capability information supported by the second dual mode Bluetooth equipment according to the established Bluetooth low power consumption connection path;
comparing the second service capability information with second service capability information of the first dual-mode Bluetooth device to obtain second target service capability information;
and establishing 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.
According to a fourth aspect of the present application, there is provided a second dual mode bluetooth device applied to a sink mode, the method comprising:
sending a bluetooth low energy broadcast message including first service capability information supported by a second dual mode bluetooth device to a first dual mode bluetooth device, so that the first dual mode bluetooth device compares the first service capability information with first service capability information of the first dual mode bluetooth device to obtain first target service capability information; and establishing a classic Bluetooth connection with the second dual mode Bluetooth device according to the first target service capability information.
In some embodiments of the present application, the method further comprises:
sending a Bluetooth low-power consumption broadcast message which comprises first service capability information supported by a second dual-mode Bluetooth device and encrypted information obtained by encrypting manufacturer information of the second dual-mode Bluetooth device according to a private key to a first dual-mode Bluetooth device, so that the first dual-mode Bluetooth device decrypts the encrypted information according to a public key to obtain decrypted information; and if the decryption information is the same as preset information, performing the step of comparing the first service capability information with the first service capability information of the first dual mode bluetooth device.
In some embodiments of the present application, the method further comprises:
and sending a Bluetooth low-power consumption broadcast message including an appearance attribute field to a first dual-mode Bluetooth device, so that the first dual-mode Bluetooth device determines a display symbol corresponding to the appearance attribute field and displays a Bluetooth icon as the display symbol.
In some embodiments of the present application, the method further comprises:
after establishing a Bluetooth low-power-consumption connection with the first dual-mode Bluetooth device, receiving service capability inquiry information sent by the first dual-mode Bluetooth device according to the established Bluetooth low-power-consumption connection path;
sending second service capability information aiming at 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 second service capability information of the first dual-mode Bluetooth device to obtain second target service capability information; and establishing 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.
According to a fifth aspect of the present application, there is provided a computer-readable storage medium having stored thereon a computer program which, when executed by a processor, implements the bluetooth connection method of the third or fourth aspect.
According to a sixth aspect of the present application, there is provided a computer program product which, when run on a computer, causes the computer to perform the bluetooth connection method of the third or fourth aspect.
Compared with the related art, the technical scheme provided by some embodiments of the application has the following advantages:
if the first dual mode bluetooth device is in source mode, i.e. the producer of the data source, then the second dual mode bluetooth device is in sink mode, i.e. the recipient of the data source. In the process of performing bluetooth connection between a first dual mode bluetooth device and a second dual mode bluetooth device, a communicator in the first dual mode bluetooth device may receive a bluetooth low energy broadcast message sent by the second dual mode bluetooth device, where the bluetooth low energy broadcast message includes: first service capability information supported by the second dual mode bluetooth device. The controller in the first dual mode bluetooth device may 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 (e.g., service capability information supported by both ends), so as to establish a classic bluetooth connection with the second dual mode bluetooth device according to the first target service capability information. Therefore, in the process of Bluetooth connection, the first dual-mode Bluetooth device does not need to actively inquire the service capability information of the second dual-mode Bluetooth device, and the active inquiry process consumes more time, so that the efficiency of Bluetooth connection can be improved.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present application and together with the description, serve to explain the principles of the application.
In order to more clearly illustrate some embodiments of the present application or technical solutions in the related art, the drawings needed to be used in the description of the embodiments or the related art will be briefly described below, and it is obvious for those skilled in the art to obtain other drawings without inventive exercise.
FIG. 1 is a schematic diagram of an architecture of a dual mode Bluetooth device;
FIG. 2A is a diagram illustrating a classic Bluetooth connection procedure in the related art;
FIG. 2B is a schematic representation of BR/EDR scanning at 79 channels;
FIG. 2C is a diagram of the connection protocol architecture of A2 DP;
FIG. 3 is a schematic diagram of an architecture of a dual mode Bluetooth device in accordance with some embodiments of the present application;
FIG. 4 is a schematic diagram of authentication between two dual mode Bluetooth devices in some embodiments of the present application;
FIG. 5 is a diagram illustrating a Bluetooth Low energy connection process;
FIG. 6A is a schematic representation of a classic Bluetooth connection in some embodiments of the present application;
FIG. 6B is a schematic diagram of the connection A2DP in the BR/EDR connection process;
FIG. 7 is a schematic diagram of an operational scenario between a display device and a control apparatus according to one or more embodiments of the present application;
fig. 8 is a block diagram of a hardware configuration of a display device 200 according to one or more embodiments of the present application;
fig. 9A is a block diagram of a hardware configuration of the control apparatus 100 according to one or more embodiments of the present application;
fig. 9B is a schematic diagram of a software configuration in the display device 200 according to one or more embodiments of the present application;
FIG. 10 is a schematic diagram of an architecture of a dual mode Bluetooth device in accordance with some embodiments of the present application;
FIG. 11 is a schematic diagram of interaction between two dual mode Bluetooth enabled devices in some embodiments of the present application;
FIG. 12 is a flow chart of a method of Bluetooth connection in some embodiments of the present application;
fig. 13 is a flowchart of a bluetooth connection method in some embodiments of the present application.
Detailed Description
To make the objects, embodiments and advantages of the present application clearer, the following is a clear and complete description of exemplary embodiments of the present application with reference to the attached drawings in exemplary embodiments of the present application, and it is apparent that the exemplary embodiments described are only a part of the embodiments of the present application, and not all of the embodiments.
All other embodiments, which can be derived by a person skilled in the art from the exemplary embodiments described herein without inventive step, are intended to be within the scope of the claims appended hereto. In addition, while the disclosure herein has been presented in terms of one or more exemplary examples, it should be appreciated that aspects of the disclosure may be implemented solely as a complete embodiment. It should be noted that the brief descriptions of the terms in the present application are only for the convenience of understanding the embodiments described below, and are not intended to limit the embodiments of the present application. These terms should be understood in their ordinary and customary meaning unless otherwise indicated.
Bluetooth is a short-distance wireless communication technology, and has the advantages of low cost, low power consumption, and relatively high transmission rate. The device supporting only BLE connection is a single-mode Bluetooth device, and the device supporting both BLE connection and classic Bluetooth connection is a dual-mode Bluetooth device. The Bluetooth with low power consumption is suitable for transmission of short time and small data, and the classic Bluetooth is suitable for transmission of long time and large data.
Referring to fig. 1, fig. 1 is a schematic structural diagram of a dual-mode bluetooth device, where the dual-mode bluetooth device includes two controllers: BR/EDR Controller (basic rate/enhanced rate Controller) and LE Controller (low power Controller). The BR/EDR Controller typically contains radio processing, baseband, link management, and optionally HCI (Human-Computer Interaction) interface layers. The LE Controller mainly contains LE PHY (physical) layer, link layer, and optional HCI interface layer.
At present, each manufacturer can make some customized schemes for related products to improve the use experience of users. For example, the customization is carried out between a smart phone and a Bluetooth headset, between the smart phone and a smart watch, between a smart television and a smart sound box and the like, and the problems of complex operation, multiple steps and unfriendly operation interface of Bluetooth connection can be solved to a certain extent. However, in the process of establishing bluetooth connection between two dual-mode bluetooth devices, there still exist problems of no user operation, long pairing time, pairing failure, and the like.
Referring to fig. 2A, fig. 2A is a schematic diagram of a classic bluetooth connection process in the related art. It can be seen that, in the bluetooth connection process, the user may perform three operations (enter a bluetooth setting interface in the dual-mode bluetooth device a, operate the dual-mode bluetooth device B to enter an inquiry scan state, select the dual-mode bluetooth device B, and click pairing), and the operations are relatively complicated. In the process of searching other bluetooth devices, the dual-mode bluetooth device a searches 79 channels and reads the name of the bluetooth device. As shown in FIG. 2B, since BR/EDR randomly hops over 79 channels, the time of page is longer, so the process is time-consuming. In addition, in order to secure the connection, the binding process needs to confirm the encryption modes of the two parties, and an encryption algorithm is created, which is time-consuming. After the binding, a query is needed for services supported by the dual-mode bluetooth device B, for example, whether A2DP Profile (Advanced Audio Distribution Profile, bluetooth Audio transmission model agreement) is supported, whether HFP Profile (handles-free Profile) is supported, and the like. In the method, the A2DP adopts a chip in the earphone to stack data, so that the definition of sound is improved. A2DP defines a protocol and procedure for transmitting high quality audio information, such as mono or stereo, over an ACL (Asynchronous Connectionless) channel. HFP enables bluetooth devices to control phone calls, such as answer, hang up, reject, voice dial, etc. The connection can be made after the query is completed, for example, A2DP Profile connection and Hands-free Profile connection are made. The process of querying the service is time-consuming.
Referring to fig. 2C, fig. 2C is a diagram of the connectivity protocol architecture of A2 DP. The AVDTP protocol refers to the transport protocol for audio or video distribution, and the parameter interaction between two dual-mode Bluetooth devices depends on the AVDTP. The service discovery protocol SDP is a core protocol in the Bluetooth protocol system and is an important component of the Bluetooth system. In the bluetooth system, the device information, the service characteristics, etc. can be obtained through the service discovery protocol, and then the mutual connection can be established on the basis. In some embodiments of the present application, the SDP protocol may be updated to improve the efficiency of the bluetooth connection. The link management protocol LMP and the logical link control and adaptation protocol L2CAP both belong to the controller part.
In order to solve the problems of complex user operation and long time consumption in the bluetooth connection process, some embodiments of the present application provide a dual-mode bluetooth device and a bluetooth connection method, which can simplify the bluetooth connection operation and improve the bluetooth connection efficiency between two dual-mode bluetooth devices.
The bluetooth device may include a source mode, which is a producer of a data source, and a sink mode, which refers to a recipient of the data source. If the first dual-mode bluetooth device is in the source mode, that is, the first dual-mode bluetooth device generates data, at this time, the first dual-mode bluetooth device may be connected to the second dual-mode bluetooth device, and sound data is played through the second dual-mode bluetooth device, then the second dual-mode bluetooth device is in the sink mode. On the contrary, if the first dual-mode bluetooth device is in the sink mode and the second dual-mode bluetooth device is in the source mode, the first dual-mode bluetooth device receives the data and the second dual-mode bluetooth device generates the data.
Referring to fig. 3, fig. 3 is a schematic structural diagram of a dual-mode bluetooth device in some embodiments of the present 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 a generator of a data source, and the first dual-mode bluetooth device includes:
a communicator 101 configured to: receiving a bluetooth low energy broadcast message sent by a second dual mode bluetooth device, wherein the bluetooth low energy broadcast message comprises: first service capability information supported by the second dual mode bluetooth device.
The first dual-mode bluetooth device and the second dual-mode bluetooth device may be any two dual-mode bluetooth devices, for example, the first dual-mode bluetooth device may be a display device, and the second dual-mode bluetooth device may be a bluetooth headset; or the first dual-mode bluetooth device may be a display device, and the second dual-mode bluetooth device is an intelligent sound box; or the first dual-mode bluetooth device may be a smart speaker, and the second dual-mode bluetooth device may be a display device, etc.
The second dual-mode bluetooth device may actively send a bluetooth low energy broadcast message through a broadcast channel, where the bluetooth low energy broadcast message may include: first service capability information supported by the second dual mode bluetooth device, the first service capability information may be related information of the basic service, for example, the first service capability information includes one or more of the following: whether A2DP Profile is supported, whether HFP Profile is supported, etc.
A controller 102 configured to: and comparing the first service capability information with the first service capability information of the first dual-mode Bluetooth device to obtain first target service capability information, and establishing classic Bluetooth connection with the second dual-mode Bluetooth device according to the first target service capability information.
After receiving the bluetooth low energy broadcast message, the first dual-mode bluetooth device may compare first service capability information of the second dual-mode bluetooth device in the bluetooth low energy broadcast message with first service capability information of the first dual-mode bluetooth device itself, that is, compare support conditions of both parties for some services, and if both support conditions are supported, the first service capability information is first target service capability information. For example, if the first dual mode bluetooth device supports A2DP Profile and the second dual mode bluetooth device also supports A2DP Profile, then A2DP Profile may be used as the first target service capability information. In establishing a classic bluetooth connection, an A2DP Profile connection may be established. If the first dual mode bluetooth device supports A2DP Profile and the second dual mode bluetooth device does not support A2DP Profile, then A2DP Profile will not be available as the first target service capability information. Accordingly, an A2DP Profile connection cannot be established when establishing a classic bluetooth connection.
It can be seen that, in the process of establishing the classic bluetooth connection, the second dual-mode bluetooth device may actively notify the first dual-mode bluetooth device of the first service capability information of the second dual-mode bluetooth device through the bluetooth low energy broadcast message, so that the first dual-mode bluetooth device does not need to actively query the first service capability information of the second dual-mode bluetooth device. Since the process of inquiring the first service capability information of the second dual mode bluetooth device is time-consuming, the efficiency of the classic bluetooth connection can be improved.
In some embodiments of the present application, the bluetooth low energy broadcast message further includes: and encrypting the manufacturer information of the second dual-mode Bluetooth equipment according to the private key to obtain encrypted information. That is, the second dual-mode bluetooth device may actively inform its own vendor information, and certainly, for security, the second dual-mode bluetooth device may encrypt the vendor information by using an asymmetric encryption algorithm (for example, RSA2048 encryption algorithm), encrypt the vendor information by using a private key to obtain encrypted information, and add the encrypted information to the bluetooth low energy broadcast message.
A controller 102, further configured to: and decrypting the encrypted information according to the public key to obtain decrypted information. And if the decryption information is the same as the preset information, executing a step of comparing the first service capability information with the first service capability information of the first dual-mode Bluetooth device.
If the decryption information decrypted by the first dual-mode Bluetooth device is the same as the preset information, the second dual-mode Bluetooth device belongs to the Bluetooth device which can be paired with the first dual-mode Bluetooth device, and the subsequent process is continuously executed.
In some embodiments, the bluetooth low energy broadcast message may further include: name information (e.g., a brand name) of the second dual mode bluetooth device. Referring to fig. 4, fig. 4 is a schematic diagram of authentication between two dual mode bluetooth devices in some embodiments of the present application. After receiving the bluetooth low-power-consumption broadcast message, the first dual-mode bluetooth device may first determine whether the name information is a preset name, and if the name information is the preset name, decrypt the encrypted information according to the public key to further determine whether the vendor information of the second dual-mode bluetooth device is the preset information. If the manufacturer information of the second dual-mode Bluetooth device is preset information, determining that the authentication is successful, and then continuously analyzing a protocol supported by the second dual-mode Bluetooth device so as to facilitate the next interaction; otherwise, determining that the authentication fails.
Therefore, in the process of establishing the classic bluetooth connection, the second dual-mode bluetooth device can actively inform the first dual-mode bluetooth device of the name information, the manufacturer information and the like of the second dual-mode bluetooth device through the bluetooth low energy broadcast message, and the process of reading the name of the opposite terminal in the classic bluetooth connection process is avoided. Since the process of reading the name also consumes more time, the efficiency of the bluetooth connection can be further improved.
In some embodiments of the present application, the controller 102 is further configured to: and using the public key and the private key as keys created in the process of binding the first dual-mode Bluetooth device and the second dual-mode Bluetooth device.
As shown in fig. 2A, for connection security, during the encryption and binding operation, an encryption algorithm may be created and a key may be generated. After the classical bluetooth connection is established, data encryption is performed by the generated key. The process of creating the encryption algorithm and generating the secret key is complex and time-consuming. Therefore, the private key and the public key are directly used for data encryption and data decryption, the encryption level meets the requirement of the Bluetooth specification, and the process of generating the private key is avoided, so that the efficiency of the classic Bluetooth connection is improved.
In some embodiments of the present application, the bluetooth low energy broadcast message may further include an appearance attribute field, where the appearance attribute field is used to indicate a display mode of the bluetooth icon, and a corresponding relationship between the display symbol and the appearance attribute field may be pre-established. For example, the appearance properties field 1 may display the bluetooth icon as a cell phone and the appearance properties 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, determine the display symbol corresponding to the appearance attribute field based on a pre-established correspondence relationship. The first dual mode bluetooth device may further comprise: and the display is configured to display the Bluetooth icon as a display symbol corresponding to the appearance attribute field.
For example, after the smart television receives the bluetooth low energy broadcast message sent by the smart speaker, the corresponding display symbol is determined to be a speaker according to the appearance attribute field in the bluetooth low energy broadcast message, and the bluetooth icon can be displayed as a speaker, so that the user experience can be improved.
In some embodiments of the present application, the controller 102 is further configured to: and establishing a Bluetooth low energy connection with the second dual-mode Bluetooth device according to the first target service capability information. Referring to fig. 5, fig. 5 is a schematic diagram of a bluetooth low energy connection process, where a second dual-mode bluetooth device sends a bluetooth low energy broadcast message on three broadcast channels, BLE hops on three channels, BR/EDR hops on 79 channels, and a first dual-mode bluetooth device and a second dual-mode bluetooth device hop according to different frequencies and are connected when they meet the same channel. Thus, the establishment of a BR/EDR connection is relatively slow, whereas the establishment of a Bluetooth low energy connection is relatively fast.
In some embodiments, the format of the bluetooth low energy broadcast message may be as shown in table 1.
TABLE 1
Figure BDA0003547472760000111
The MAC address (physical address) of the second dual-mode bluetooth device end BLE is consistent with the MAC address of the classic bluetooth, and the MAC address can be directly used when the first dual-mode bluetooth device initiates connection;
flag may be a standard setting, Flag indicating whether BR/EDR and BLE are supported simultaneously;
name represents the Name of the second dual mode bluetooth device;
the Manufacturer Specific Data may contain 8 bytes, where 0x07 indicates that there are 7 bytes.
0xaa indicates vendor information, which is considered herein to represent a brand, and the specific number can be set according to the brand's application on the SIG website;
0xbb, indicating whether the A2DP protocol is supported, 1 indicating support, 0 indicating not support;
0xcc, indicating whether the HFP protocol is supported, 1 indicating support, 0 indicating not support;
0xdd, which indicates the Codec mode supported by the A2DP protocol, may be eight bits, specifically see table 2.
TABLE 2
Figure BDA0003547472760000121
Here, SBC (Sub-band coding) is an encoding format specified by the A2DP protocol, so all bluetooth audio chips will support the protocol.
AAC (Advanced Audio Coding) is a technology provided by dolby laboratories for music communities, and is a Coding algorithm with high compression ratio.
APTX, a digital audio compression algorithm based on sub-band ADPCM (SB-ADPCM) technology, is a lossless format for Bluetooth transmission.
The Adaptive sound quality adjusting method has the advantages that the Adaptive sound quality adjusting method combines the advantages of both the APTX hd (24 bit high-definition sound quality can be realized by the APTX hd through Bluetooth) and the APTX-LL (Low latency), and can adaptively adjust the sound quality and delay. Combining powerful opportunities for superior audio quality, low bit-rate audio transmission, scalability, and low latency, the final seamless wireless listening experience can be created even in the most challenging radio frequency environments.
APTX-LL is a low latency technique for Aptx, which can reach latencies below 40 ms.
LDAC is a wireless audio coding technology, and the communication code rate of Bluetooth on a device supporting LDAC is close to 1M. Compared with SBC coding, the coding is more than three times higher, and is the closest lossless coding mode in the current wireless transmission.
If bit position 1 in table 2 indicates that Codec is supported, and if bit position 0 indicates that Codec is not supported. Bit6 and Bit7 are temporarily unused and are reserved for subsequent expansion.
0xee, some characteristics supported by the HFP protocol, see table 3 specifically:
TABLE 3
Bit 0 Bit 1 Bit 2 Bit 3 Bit 4 Bit 5 Bit 6 Bit 7
HF Role AG Role mSBC CVSD Call Info Subsequent expansion Subsequent expansion Subsequent expansion
HF Role: a handfree role, for example, the role of a conventional headset.
AG Role: an audio gateway role, such as the role of a smart television or smart phone.
mSBC and CVSD (Continuous Variable Slope Delta Modulation) are two encoding and decoding methods in HFP.
Call Info indicates whether displaying of telephone information, such as a Chinese name corresponding to a telephone number in a handset directory, is supported.
If bit position 1 in table 3 indicates that Codec is supported, bit position 0 indicates that Codec is not supported.
The Appearance attribute field in table 1 indicates the type of the second dual mode bluetooth device, for example, includes a speaker device, a mobile phone device, a headset device, a watch device, and the like.
It should be noted that the formats of the bluetooth low energy broadcast message, the format of 0xdd, and the format of 0xee are not limited thereto. For example, the format of the bluetooth low energy broadcast message may include support cases of more types of protocols, and 0xdd may be sixteen bits, including support cases of more types of encoding schemes, and the like.
As previously mentioned, bluetooth low energy connections are faster than classic bluetooth connections. In some embodiments, if the classic bluetooth connection is not completed after the bluetooth low energy connection is completed, the interaction of subsequent data (for example, specific parameters of Codec) may be performed through the bluetooth low energy connection path, and a page action is initiated to the BR/EDR device.
The controller 102, may be further configured to: and acquiring second service capability information supported by the second dual-mode Bluetooth equipment according to the established Bluetooth low-power connection path.
As described above, the first service capability information represents information about a basic service of the second dual mode bluetooth device, and the first dual mode bluetooth device may add a new service based on an existing service, and accordingly, the first dual mode bluetooth device may query whether the second dual mode bluetooth device also supports the new service. Therefore, the second service capability information may refer to information related to a higher-level service, or more detailed information in a basic service, etc. than the first service capability information. For example, for SBC coding, more service capability information may be queried for SBC coding, and the second service information may include: a sampling rate support case, a channel mode support case, a BlockLength support case, a subbands number support case, a bitpool support case, and the like.
Further, the second service capability information is compared with the second service capability information of the first dual-mode bluetooth device to obtain second target service capability information. The second target service capability information may be service capability information supported by both the first dual mode bluetooth device and the second dual mode bluetooth device. And establishing 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.
Referring to fig. 6A, fig. 6A is a schematic diagram of a classic bluetooth connection in some embodiments of the present application. And after the first dual-mode Bluetooth device successfully authenticates the second dual-mode Bluetooth device, analyzing a protocol supported by the second dual-mode Bluetooth device from the Bluetooth low-power-consumption broadcast message. And initiating the BLE connection and the BR/EDR page according to the analysis result, selecting the highest priority Codec supported in the process, and responding to the BLE connection and the BR/EDR page by the second dual-mode Bluetooth device. The BLE connection is established quickly, and after the BLE connection is established, if BR/EDR is connected, the A2DP profile connection can be directly carried out. The second target service capability information may be acquired through BLE if the BR/EDR is not connected.
And then, comparing the second service capability information of the second dual-mode Bluetooth device with the second service capability information of the second dual-mode Bluetooth device to obtain second target service capability information. For example, the final supported sampling rates include: 16000Hz, 32000Hz, 44100Hz, 48000 Hz; the supported channel modes include: MONO, DUALCHANNEL, SETREO, JOINT SETREO; the supported Block Length comprises 4, 8, 12 and 16, and the supported subbands comprises 4 and 8; the minimum value of supported bitpool is 2 and the maximum value is 53.
And setting second target service capability information through BLE and establishing BR/EDR connection. Referring to FIG. 6B, FIG. 6B is a schematic diagram of the connection A2DP in the BR/EDR connection flow. First, an A2DP profile connection may be initiated, the A2DP capability information of the second dual mode bluetooth device is acquired, and the second dual mode bluetooth device is connected to a corresponding SEP (Stream End Point) according to the A2DP capability information. After the sound data is encrypted, the A2DP profile connection is completed.
It should be noted that after the above data interaction is completed, if the classic bluetooth connection is not established yet, the BR/EDR connection may be established using the parameters already configured in BLE.
In the process of performing bluetooth connection between the first dual mode bluetooth device and the second dual mode bluetooth device, the bluetooth low energy broadcast message sent by the second dual mode bluetooth device includes: name information of the second dual mode bluetooth device, encryption information for encrypting vendor information, and first service capability information supported by the second dual mode bluetooth device. The controller in the first dual-mode Bluetooth device can authenticate according to the name information and the manufacturer information, and after the authentication is passed, the controller initiates the Bluetooth connection with the second dual-mode Bluetooth device, so that the process of acquiring the name of the second dual-mode Bluetooth device is avoided, and the Bluetooth connection efficiency can be improved. In the process of encryption and binding, a preset encryption algorithm can be directly used without creating the encryption algorithm, so that the efficiency of Bluetooth connection is further improved. And comparing the first service capability information with the first service capability information of the first dual-mode Bluetooth device to obtain first target service capability information, and thus establishing classic Bluetooth connection with the second dual-mode Bluetooth device according to the first target service capability information. It can be seen that, in 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 consumes much time, so that the bluetooth connection efficiency can also be improved. And the first dual-mode bluetooth device can acquire the second service capability information of the second dual-mode bluetooth device through the established BLE channel, so that whether the second dual-mode bluetooth device can adapt to more functions supported by the first dual-mode bluetooth device or not is judged, and the use experience of a user is improved.
Suppose that the first dual mode bluetooth device is a display device and the second dual mode bluetooth device is a smart speaker. The intelligent sound box can be a Soundbar sound box (also called a bar sound box) and the like, and the Soundbar sound box is a strip sound box integrating the sound box functions of a plurality of sound channels in one box body and belongs to dual-mode Bluetooth equipment.
Fig. 7 is a schematic diagram of an operation scenario between a display device and a control apparatus according to one or more embodiments of the present application, as shown in fig. 7, a user may operate the display device 200 through a mobile terminal 300 and the control apparatus 100. The control apparatus 100 may be a remote controller, and the communication between the remote controller and the display device includes infrared protocol communication, bluetooth protocol communication, wireless or other wired method to control the display device 200. The user may input a user command through a key on a remote controller, voice input, control panel input, etc. to control the display apparatus 200. In some embodiments, mobile terminals, tablets, computers, laptops, and other smart devices may also be used to control the display device 200.
In some embodiments, the mobile terminal 300 may install a software application with the display device 200 to implement connection communication through a network communication protocol for the purpose of one-to-one control operation and data communication. The audio and video contents displayed on the mobile terminal 300 can also be transmitted to the display device 200, so that the display device 200 with the synchronous display function can also perform data communication with the server 400 through multiple communication modes. The display device 200 may be allowed to be communicatively connected through a Local Area Network (LAN), a Wireless Local Area Network (WLAN), and other networks. The server 400 may provide various contents and interactions to the display apparatus 200. The display device 200 may be a liquid crystal display, an OLED display, or a projection display device. The display apparatus 200 may additionally provide an intelligent network television function providing a computer support function in addition to the broadcast receiving television function.
Fig. 8 exemplarily shows a block diagram of the configuration of the control apparatus 100 according to an exemplary embodiment. As shown in fig. 8, 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 apparatus 100 may receive an input operation instruction from a user and convert the operation instruction into an instruction recognizable and responsive by the display device 200, serving as an interaction intermediary between the user and the display device 200. The communication interface 130 is used for communicating with the outside, and includes a dual-mode bluetooth module, and may further include at least one of a WIFI chip, NFC, or an alternative module. The user input/output interface 140 includes at least one of a microphone, a touch pad, a sensor, a key, or an alternative module.
Fig. 9A illustrates a hardware configuration block diagram of the display apparatus 200 according to an exemplary embodiment. The display apparatus 200 as shown in fig. 9A includes at least one of 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 processor, a video processor, an audio processor, a graphic processor, a RAM, a ROM, and first to nth interfaces for input/output. 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 a broadcast television signal through wired or wireless reception and demodulates an audio/video signal, such as an EPG data signal, from a plurality of wireless or wired broadcast television signals. The detector 230 is used to collect signals of the external environment or interaction with the outside. The controller 250 and the tuner-demodulator 210 may be located in different separate devices, that is, the tuner-demodulator 210 may also be located in an external device of the main device where the controller 250 is located, such as an external set-top box.
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 an external memory. The controller 250 controls the overall operation of the display apparatus 200. A user may input a user command on a Graphical User Interface (GUI) displayed on the display 260, and the user input interface receives the user input command through the Graphical User Interface (GUI). Alternatively, the user may input the user command by inputting a specific sound or gesture, and the user input interface receives the user input command by recognizing the sound or gesture through the sensor.
In some embodiments, a "user interface" is a media interface for interaction and information exchange between an application or operating system and a user that enables conversion between an internal form of information and a form that is acceptable to the user. A common presentation form of a User Interface is a Graphical User Interface (GUI), which refers to a User Interface related to computer operations and displayed in a graphical manner. It may be an interface element such as an icon, a window, a control, etc. displayed in the display screen of the electronic device, where the control may include at least one of an icon, a button, a menu, a tab, a text box, a dialog box, a status bar, a navigation bar, a Widget, etc. visual interface elements.
Fig. 9B is a schematic diagram of software configuration in the display device 200 according to one or more embodiments of the present Application, and as shown in fig. 9B, the system is divided into four layers, which are, from top to bottom, an Application (Applications) layer (referred to as an "Application layer"), an Application Framework (referred to as a "Framework layer"), an Android runtime (Android runtime) layer and a system library layer (referred to as a "system runtime library layer"), respectively. The inner core layer comprises a Bluetooth drive and also at least comprises at least one of the following drives: audio drive, display driver, camera drive, WIFI drive, USB drive, HDMI drive, sensor drive (such as fingerprint sensor, temperature sensor, pressure sensor etc.) and power drive etc..
In some embodiments, the display device 200 may be a terminal device with a display function, such as a television, a smart phone, a computer, a learning machine, and the like.
Corresponding to the first dual-mode bluetooth device in the source mode, the application also provides a second dual-mode bluetooth device applied to the sink mode. Referring to fig. 10, fig. 10 is a schematic structural diagram of a dual mode bluetooth device in some embodiments of the present application, applied to a sink mode of a second dual mode bluetooth device, where the second dual mode bluetooth device includes:
a communicator 1010 configured to: sending a Bluetooth low-power consumption broadcast message including first service capability information supported by a second dual-mode Bluetooth device to a first dual-mode Bluetooth device, so that a controller in the first dual-mode Bluetooth device compares the first service capability information with first service capability information of the first dual-mode Bluetooth device to obtain first target service capability information; and establishing a classic Bluetooth connection with the second dual-mode Bluetooth device according to the first target service capability information.
In some embodiments of the present application, the communicator 1010 is configured to: sending a Bluetooth low-power consumption broadcast message which comprises first service capability information supported by second dual-mode Bluetooth equipment and encrypted information obtained by encrypting manufacturer information of the second dual-mode Bluetooth equipment according to a private key to first dual-mode Bluetooth equipment, so that a controller in the first dual-mode Bluetooth equipment decrypts the encrypted information according to a public key to obtain decrypted information; and if the decryption information is the same as the preset information, performing a step of comparing the first service capability information with the first service capability information of the first dual mode bluetooth device itself.
In some embodiments of the present application, the communicator 1010 is configured to: and sending a Bluetooth low energy broadcast message including the appearance attribute field to the first dual-mode Bluetooth device, so that a controller in the first dual-mode Bluetooth device determines a display symbol corresponding to the appearance attribute field, and a display in the first dual-mode Bluetooth device displays a Bluetooth icon as the display symbol.
In some embodiments of the present application, the communicator 1010 is further configured to: after establishing Bluetooth low-power-consumption connection with a first dual-mode Bluetooth device, receiving service capability inquiry information sent by the first dual-mode Bluetooth device according to the established Bluetooth low-power-consumption connection path;
sending second service capability information aiming at the service capability query information to the first dual-mode Bluetooth device so that a controller in the first dual-mode Bluetooth device compares the second service capability information with second service capability information of the first dual-mode Bluetooth device to obtain second target service capability information; and establishing 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.
It should be noted that, in the bluetooth connection process, the implementation process of the second dual-mode bluetooth device corresponds to the implementation process of the first dual-mode bluetooth device, which is specifically described in the foregoing description for the first dual-mode bluetooth device, and is not described herein again.
Referring to fig. 11, fig. 11 is a schematic diagram of interaction between two dual mode bluetooth devices in some embodiments of the present application.
The second dual mode bluetooth device sends 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.
The controller in the first dual-mode Bluetooth device compares the first service capability information with first service capability information of the first dual-mode Bluetooth device to obtain first target service capability information.
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.
It can be understood that, for two dual mode bluetooth devices (the first dual mode bluetooth device in the embodiment of fig. 3 and the second dual mode bluetooth device in fig. 10) that are collocated, a bluetooth connection can be quickly established according to the above procedure. However, in practical scenarios, a user may use two incompatible dual mode bluetooth devices for bluetooth connection operations. At this point, the bluetooth connection will not be established quickly using the above-described procedure, but for compatibility, the native bluetooth connection procedure may be maintained.
If the first dual-mode bluetooth device does not belong to the dual-mode bluetooth device in the embodiment of fig. 3, and the second dual-mode bluetooth device belongs to the dual-mode bluetooth device in the embodiment of fig. 10, since the first dual-mode bluetooth device does not have the capability of receiving and determining the bluetooth low energy broadcast message sent by the second dual-mode bluetooth device, when the UI displays the searched bluetooth device, it is unknown whether the bluetooth device is a BLE device or a BR/EDR device. The user clicks the connection, and can know that the second dual-mode Bluetooth device is a dual-mode Bluetooth device, and the native classic Bluetooth connection process is followed. If the BLE path is connected, the first dual mode bluetooth device does not perform data interaction with the second dual mode bluetooth device, and at this time, the second dual mode bluetooth device 5s is disconnected in time-out.
If the first dual-mode bluetooth device belongs to the dual-mode bluetooth device in the embodiment of fig. 3 and the second dual-mode bluetooth device does not belong to the dual-mode bluetooth device in the embodiment of fig. 10, because the second dual-mode bluetooth device does not send the bluetooth low energy broadcast message containing the specific format at this time, the first dual-mode bluetooth device does not trigger the fast pairing procedure, and the native bluetooth connection procedure is executed.
Corresponding to the Bluetooth device, the application also provides a Bluetooth connection method.
As shown in fig. 12, fig. 12 is a flowchart of a bluetooth connection method in some embodiments of the present application, and the method may be applied to a first dual-mode bluetooth device in a source mode, and includes the following steps:
step S1210, receiving a bluetooth low energy broadcast packet sent by a second dual mode bluetooth device, where the bluetooth low energy broadcast packet includes: first service capability information supported by the second dual mode bluetooth device.
Step S1220 is performed to compare the first service capability information with the first service capability information of the first dual-mode bluetooth device, so as to obtain a first target service capability information.
Step S1230, according to the first target service capability information, a classic bluetooth connection is established with the second dual mode bluetooth device.
In some embodiments of the present application, the bluetooth low energy broadcast message further includes: encrypting manufacturer information of the second dual-mode Bluetooth device according to the private key to obtain encrypted information;
the bluetooth connection method further comprises:
decrypting the encrypted information according to the public key to obtain decrypted information;
and if the decryption information is the same as the preset information, performing a step of comparing the first service capability information with the first service capability information of the first dual mode bluetooth device itself.
In some embodiments of the present application, the bluetooth connection method further includes:
and using the public key and the private key as keys created in the process of binding the first dual-mode Bluetooth device and the second dual-mode Bluetooth device.
In some embodiments of the present application, the bluetooth low energy broadcast message further includes an appearance attribute field;
the bluetooth connection method further comprises:
determining a display symbol corresponding to the appearance attribute field;
the bluetooth icon is displayed as a display symbol.
In some embodiments of the present application, the bluetooth connection method further includes:
and establishing a Bluetooth low energy connection with the second dual-mode Bluetooth device according to the first target service capability information.
In some embodiments of the present application, the bluetooth connection method further includes:
acquiring second service capability information supported by second dual-mode Bluetooth equipment according to the established Bluetooth low-power-consumption connection path;
comparing the second service capability information with second service capability information of the first dual-mode Bluetooth device to obtain second target service capability information;
and establishing 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.
Some embodiments of the present application further provide a bluetooth connection method, which is applied to a second dual-mode bluetooth device in a sink mode, and referring to fig. 13, the method may include the following steps:
step S1310, sending a bluetooth low energy broadcast message including first service capability information supported by a second dual mode bluetooth device to a first dual mode bluetooth device, so that the first dual mode bluetooth device compares the first service capability information with first service capability information of the first dual mode bluetooth device itself to obtain first target service capability information; and establishing a classic Bluetooth connection with the second dual-mode Bluetooth device according to the first target service capability information.
In some embodiments of the present application, the bluetooth connection method further includes:
sending a Bluetooth low-power consumption broadcast message which comprises first service capability information supported by second dual-mode Bluetooth equipment and encrypted information obtained by encrypting manufacturer information of the second dual-mode Bluetooth equipment according to a private key to the first dual-mode Bluetooth equipment so that the first dual-mode Bluetooth equipment decrypts the encrypted information according to a public key to obtain decrypted information; and if the decryption information is the same as the preset information, executing a step of comparing the first service capability information with the first service capability information of the first dual-mode Bluetooth device.
In some embodiments of the present application, the bluetooth connection method further includes:
and sending a Bluetooth low-power consumption broadcast message comprising the appearance attribute field to the first dual-mode Bluetooth device, so that the first dual-mode Bluetooth device determines a display symbol corresponding to the appearance attribute field and displays a Bluetooth icon as the display symbol.
In some embodiments of the present application, the bluetooth connection method further includes:
after establishing Bluetooth low-power-consumption connection with a first dual-mode Bluetooth device, receiving service capability inquiry information sent by the first dual-mode Bluetooth device according to the established Bluetooth low-power-consumption connection path;
sending second service capability information aiming at 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 second service capability information of the first dual-mode Bluetooth device to obtain second target service capability information; and establishing 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.
It is understood that the steps involved in fig. 12 may include more steps or fewer steps in actual implementation, and the order between the steps may be different, so as to enable the bluetooth connection method provided in the embodiment of the present invention.
The embodiment of the present invention further provides a computer-readable storage medium, where a computer program is stored on the computer-readable storage medium, and when the computer program is executed by a processor, the computer program implements each process executed by the bluetooth connection method, and can achieve the same technical effect, and in order to avoid repetition, details are not repeated here.
The computer-readable storage medium may be a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk.
An embodiment of the present invention further provides a computer program product, including: when the computer program product runs on a computer, the computer is caused to implement the above-mentioned bluetooth connection method.
The foregoing description, for purposes of explanation, has been presented in conjunction with specific embodiments. However, the foregoing discussion in some embodiments is not intended to be exhaustive or to limit the implementations to the precise forms disclosed above. Many modifications and variations are possible in light of the above teaching. The embodiments were chosen and described in order to best explain the principles and the practical application, to thereby enable others skilled in the art to best utilize the embodiments and various embodiments with various modifications as are suited to the particular use contemplated.
Finally, it should be noted that: the above embodiments are only used to illustrate the technical solution of the present invention, and not to limit the same; while the invention has been described in detail and with reference to the foregoing embodiments, it will be understood by those skilled in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some or all of the technical features may be equivalently replaced; and these modifications or substitutions do not depart from the spirit of the corresponding technical solutions of the embodiments of the present invention.

Claims (10)

1. A dual mode bluetooth device, wherein a first dual mode bluetooth device for source mode application, comprises:
a communicator configured to: receiving a bluetooth low energy broadcast message sent by a second dual mode bluetooth device, wherein the bluetooth low energy broadcast message comprises: first service capability information supported by the second dual mode Bluetooth device;
a controller configured to: comparing the first service capability information with first service capability information of the first dual-mode Bluetooth device to obtain first target service capability information;
and establishing a classic Bluetooth connection with the second dual mode Bluetooth device according to the first target service capability information.
2. The dual mode bluetooth device of claim 1, wherein the bluetooth low energy broadcast message further comprises: encrypting manufacturer information of the second dual-mode Bluetooth device according to a private key to obtain encrypted information;
the controller further configured to: decrypting the encrypted information according to the public key to obtain decrypted information;
and if the decryption information is the same as preset information, performing the step of comparing the first service capability information with the first service capability information of the first dual mode bluetooth device.
3. The dual mode bluetooth device of claim 2, wherein the controller is further configured to use the public key and the private key as keys created during the binding of the first dual mode bluetooth device and the second dual mode bluetooth device.
4. The dual mode bluetooth device of claim 1, wherein the bluetooth low energy broadcast message further comprises an appearance attribute field;
the controller further configured to: determining a display symbol corresponding to the appearance attribute field;
the first dual mode bluetooth device further comprises: a display;
the display configured to: and displaying the Bluetooth icon as the display symbol.
5. The dual mode bluetooth device of claim 1, wherein the controller is further configured to: and establishing Bluetooth low-power-consumption connection with the second dual-mode Bluetooth equipment according to the first target service capability information.
6. The dual mode bluetooth device of claim 5, wherein the controller is further configured to: acquiring second service capability information supported by the second dual mode Bluetooth equipment according to the established Bluetooth low power consumption connection path;
comparing the second service capability information with second service capability information of the first dual-mode Bluetooth device to obtain second target service capability information;
and establishing 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.
7. A dual mode bluetooth device, wherein a second dual mode bluetooth device applied to a sink mode comprises:
a communicator configured to: sending a bluetooth low energy broadcast message including first service capability information supported by a second dual-mode bluetooth device to a first dual-mode bluetooth device, so that a controller in the first dual-mode bluetooth device compares the first service capability information with first service capability information of the first dual-mode bluetooth device to obtain first target service capability information; and establishing a classic Bluetooth connection with the second dual mode Bluetooth device according to the first target service capability information.
8. The dual mode bluetooth device of claim 7, wherein the communicator is further configured to: after establishing a Bluetooth low-power-consumption connection with the first dual-mode Bluetooth device, receiving service capability inquiry information sent by the first dual-mode Bluetooth device according to the established Bluetooth low-power-consumption connection path;
sending second service capability information aiming at the service capability query information to the first dual-mode Bluetooth device, so that a controller in the first dual-mode Bluetooth device compares the second service capability information with second service capability information of the first dual-mode Bluetooth device to obtain second target service capability information; and establishing 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.
9. A bluetooth connection method applied to a first dual mode bluetooth device in source mode, the method comprising:
receiving a bluetooth low energy broadcast message sent by a second dual mode bluetooth device, wherein the bluetooth low energy broadcast message comprises: first service capability information supported by the second dual mode Bluetooth device;
comparing the first service capability information with first service capability information of the first dual-mode Bluetooth device to obtain first target service capability information;
and establishing a classic Bluetooth connection with the second dual-mode Bluetooth device according to the first target service capability information.
10. A bluetooth connection method applied to a second dual mode bluetooth device in a sink mode, the method comprising:
sending a bluetooth low energy broadcast message including first service capability information supported by a second dual mode bluetooth device to a first dual mode bluetooth device, so that the first dual mode bluetooth device compares the first service capability information with first service capability information of the first dual mode bluetooth device to obtain first target service capability information; and establishing a classic Bluetooth connection with the second dual mode Bluetooth device according to the first target service capability information.
CN202210252918.XA 2022-03-15 2022-03-15 Dual-mode Bluetooth device and Bluetooth connection method Pending CN114786158A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210252918.XA CN114786158A (en) 2022-03-15 2022-03-15 Dual-mode Bluetooth device and Bluetooth connection method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210252918.XA CN114786158A (en) 2022-03-15 2022-03-15 Dual-mode Bluetooth device and Bluetooth connection method

Publications (1)

Publication Number Publication Date
CN114786158A true CN114786158A (en) 2022-07-22

Family

ID=82424395

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210252918.XA Pending CN114786158A (en) 2022-03-15 2022-03-15 Dual-mode Bluetooth device and Bluetooth connection method

Country Status (1)

Country Link
CN (1) CN114786158A (en)

Similar Documents

Publication Publication Date Title
EP3029650B1 (en) Electronic device, audio device, and methods of controlling electronic device and audio device power supply
CN111459433B (en) Screen transmission method, device and storage medium
EP3893109B1 (en) Method and device for connecting bluetooth devices
CN102812693B (en) The system of user's device
EP4033773B1 (en) Connection method for multimedia playing device, multimedia playing device and control terminal
WO2018032455A1 (en) Bluetooth communication method and terminal
CN104378801A (en) Method and device for having access to wireless network
EP3641366A1 (en) Wireless local area network configuration method and apparatus
US20230039861A1 (en) Projection Connection Control Method And Electronic Device
US20160299739A1 (en) Method for controlling data streaming using bluetooth communication
CN105573609A (en) Content sharing method and device
WO2023273639A1 (en) Device connection method and apparatus, and computer-readable medium and electronic device
WO2023160212A1 (en) Connection establishment method and apparatus, device, storage medium, and program product
US20080085740A1 (en) Method for displaying information in mobile communication terminal using bluetooth
TW202232981A (en) Bluetooth communication system and related computer program product capable of reducing complexity of pairing bluetooth host device with bluetooth device set for user
US9182839B2 (en) Resource controlled user interface resource management
CN105451368A (en) Communication method and apparatus
KR20120034338A (en) Security operating method for access point and system thereof
US20130172077A1 (en) System and method for resource sharing and playing device thereof
KR20160047151A (en) User terminal apparatus and control method thereof
WO2023071993A1 (en) Bluetooth pairing method, device, system, and storage medium
US10529225B2 (en) Electronic device, audio output device, and operating method of electronic device
CN114786158A (en) Dual-mode Bluetooth device and Bluetooth connection method
KR20160039831A (en) Digital device and method for controlling the same
US11575793B2 (en) Service system supporting voice call using digital assistant device, method thereof, and non-transitory computer readable medium having computer program recorded thereon

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination