US20210243831A1 - Method for establishing classic bluetooth connection between dual-mode bluetooth devices, and dual-mode bluetooth device - Google Patents

Method for establishing classic bluetooth connection between dual-mode bluetooth devices, and dual-mode bluetooth device Download PDF

Info

Publication number
US20210243831A1
US20210243831A1 US17/174,526 US202117174526A US2021243831A1 US 20210243831 A1 US20210243831 A1 US 20210243831A1 US 202117174526 A US202117174526 A US 202117174526A US 2021243831 A1 US2021243831 A1 US 2021243831A1
Authority
US
United States
Prior art keywords
dual
bluetooth
bluetooth device
mode
classic
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
US17/174,526
Inventor
Jiaxin Li
Peng Zhao
Feng Chen
Yuanlei SUN
Xiyu ZHOU
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.)
Huawei Technologies Co Ltd
Original Assignee
Huawei Technologies 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 Huawei Technologies Co Ltd filed Critical Huawei Technologies Co Ltd
Priority to US17/174,526 priority Critical patent/US20210243831A1/en
Assigned to HUAWEI TECHNOLOGIES CO., LTD. reassignment HUAWEI TECHNOLOGIES CO., LTD. ASSIGNMENT OF ASSIGNORS INTEREST (SEE DOCUMENT FOR DETAILS). Assignors: LI, JIAXIN, ZHOU, Xiyu, CHEN, FENG, ZHAO, PENG, SUN, Yuanlei
Publication of US20210243831A1 publication Critical patent/US20210243831A1/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W76/00Connection management
    • H04W76/10Connection setup
    • H04W76/15Setup of multiple wireless link connections
    • H04W76/16Involving different core network technologies, e.g. a packet-switched [PS] bearer in combination with a circuit-switched [CS] bearer
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/70Services for machine-to-machine communication [M2M] or machine type communication [MTC]
    • 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
    • H04BTRANSMISSION
    • H04B7/00Radio transmission systems, i.e. using radiation field
    • H04B7/24Radio transmission systems, i.e. using radiation field for communication between two or more posts
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W48/00Access restriction; Network selection; Access point selection
    • H04W48/08Access restriction or access information delivery, e.g. discovery data delivery
    • H04W48/10Access restriction or access information delivery, e.g. discovery data delivery using broadcasted information
    • 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
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W12/00Security arrangements; Authentication; Protecting privacy or anonymity
    • H04W12/50Secure pairing of devices
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D30/00Reducing energy consumption in communication networks
    • Y02D30/70Reducing energy consumption in communication networks in wireless communication networks

Definitions

  • the present invention relates to the wireless communications field, and in particular, to a method for establishing a classic Bluetooth connection between dual-mode Bluetooth devices, and a dual-mode Bluetooth device.
  • a Bluetooth technology is a globally universal short-range wireless communications technology.
  • the Bluetooth technology provides a near-field data communication means, and has advantages such as low costs, low power consumption, and a relatively high transmission rate.
  • a device that supports only a Bluetooth low energy (Bluetooth Low Energy, BLE) connection is referred to as a single-mode Bluetooth device, and a device that supports both a BLE connection and a classic Bluetooth connection is referred to as a dual-mode Bluetooth device.
  • Bluetooth low energy is suitable for short-time transmission with a small amount of data
  • classic Bluetooth is suitable for long-time transmission with a large amount of data.
  • the Bluetooth low energy is more power-saving than the classic Bluetooth.
  • a classic Bluetooth connection usually needs to be established between two dual-mode Bluetooth devices to perform data transmission.
  • the wristband may be searched for and connected by opening an application program (Application, APP) that is in the mobile phone and that is corresponding to the wristband, to establish the classic Bluetooth connection between the mobile phone and the wristband.
  • Application Application
  • the wristband is in the following states, the classic Bluetooth connection cannot be established between the mobile phone and the wristband.
  • the mobile phone when the wristband has established a classic Bluetooth connection to another device or classic Bluetooth of the wristband is not enabled, the mobile phone cannot find the wristband; when the wristband does not enter a searchable state, the mobile phone cannot find the wristband; or when the wristband does not enter a connectable state, the mobile phone cannot be connected to the wristband.
  • an existing solution is to refer to a manual of the wristband, and establish the classic Bluetooth connection between the mobile phone and the wristband step by step according to steps indicated in the manual.
  • this method is relatively complex, and user experience is poor.
  • This application provides a method for establishing a classic Bluetooth connection between dual-mode Bluetooth Bluetooth devices, and a dual-mode Bluetooth device, to simplify a procedure of establishing a classic Bluetooth connection, and improve user experience.
  • a method for establishing a classic Bluetooth connection between dual-mode Bluetooth Bluetooth devices including: receiving, by a first dual-mode Bluetooth device, a Bluetooth low energy BLE advertising packet sent by a second dual-mode Bluetooth device, where the BLE advertising packet includes attribute information of classic Bluetooth of the second dual-mode Bluetooth device; determining, by the first dual-mode Bluetooth device, a status of the classic Bluetooth of the second dual-mode Bluetooth device according to the attribute information; and prompting, by the first dual-mode Bluetooth device according to the status of the classic Bluetooth of the second dual-mode Bluetooth device, a user to operate the first dual-mode Bluetooth device or the second dual-mode Bluetooth device, so as to establish a classic Bluetooth connection between the first dual-mode Bluetooth device and the second dual-mode Bluetooth device.
  • a dual-mode Bluetooth device may determine a status of classic Bluetooth of another dual-mode Bluetooth device according to attribute information that is of the classic Bluetooth and that is obtained from a BLE advertising packet, and instruct, according to the status of the classic Bluetooth, a user to perform a corresponding operation to establish a classic Bluetooth connection between the dual-mode Bluetooth devices. That is, for the classic Bluetooth in different states, the user can establish the classic Bluetooth connection only by performing a corresponding operation according to a prompt of the dual-mode Bluetooth device, so that a procedure of establishing a classic Bluetooth connection is simplified, and user experience is improved.
  • the attribute information includes a Bluetooth address of a peer device to which the classic Bluetooth of the second dual-mode Bluetooth device was connected last time
  • the determining, by the first dual-mode Bluetooth device, a status of the classic Bluetooth of the second dual-mode Bluetooth device according to the attribute information includes: determining, by the first dual-mode Bluetooth device according to a relationship between a Bluetooth address of the first dual-mode Bluetooth device and the Bluetooth address of the peer device, whether the classic Bluetooth of the second dual-mode Bluetooth device can establish the classic Bluetooth connection to the first dual-mode Bluetooth device currently
  • the prompting, by the first dual-mode Bluetooth device according to the status of the classic Bluetooth, a user to operate the first dual-mode Bluetooth device or the second dual-mode Bluetooth device includes: if the classic Bluetooth of the second dual-mode Bluetooth device cannot establish the classic Bluetooth connection to the first dual-mode Bluetooth device currently, prompting, by the first dual-mode Bluetooth device, the user to perform factory reset on the second dual-mode Bluetooth device.
  • the first dual-mode Bluetooth device may directly prompt the user to operate the second dual-mode Bluetooth device to restore the second dual-mode Bluetooth device to a factory setting, so as to establish the classic Bluetooth connection between the two dual-mode Bluetooth devices.
  • the attribute information includes an enabling status of the classic Bluetooth of the second dual-mode Bluetooth device
  • the prompting, by the first dual-mode Bluetooth device according to the status of the classic Bluetooth of the second dual-mode Bluetooth device, a user to operate the first dual-mode Bluetooth device or the second dual-mode Bluetooth device includes: if the classic Bluetooth of the second dual-mode Bluetooth device is disabled, prompting, by the first dual-mode Bluetooth device, the user to enable the classic Bluetooth of the second dual-mode Bluetooth device.
  • the classic Bluetooth of the second dual-mode Bluetooth device may be conveniently and simply enabled by prompting the user, and then the classic Bluetooth connection between the two dual-mode Bluetooth devices can be established more conveniently.
  • the attribute information includes a searchable status of the classic Bluetooth of the second dual-mode Bluetooth device
  • the prompting, by the first dual-mode Bluetooth device according to the status of the classic Bluetooth of the second dual-mode Bluetooth device, a user to operate the first dual-mode Bluetooth device or the second dual-mode Bluetooth device includes: if the classic Bluetooth of the second dual-mode Bluetooth device cannot be searched for, prompting, by the first dual-mode Bluetooth device, the user to set the classic Bluetooth of the second dual-mode Bluetooth device to a searchable state.
  • the classic Bluetooth of the second dual-mode Bluetooth device When the classic Bluetooth of the second dual-mode Bluetooth device cannot be searched for, the classic Bluetooth of the second dual-mode Bluetooth device is set to a searchable state by prompting the user to operate the second dual-mode Bluetooth device, and then the classic Bluetooth connection between the two dual-mode Bluetooth devices can be established more conveniently.
  • the attribute information includes a connectable status of the classic Bluetooth of the second dual-mode Bluetooth device
  • the prompting, by the first dual-mode Bluetooth device according to the status of the classic Bluetooth of the second dual-mode Bluetooth device, a user to operate the first dual-mode Bluetooth device or the second dual-mode Bluetooth device includes: if the classic Bluetooth of the second dual-mode Bluetooth device cannot be connected, prompting, by the first dual-mode Bluetooth device, the user to set the classic Bluetooth of the second dual-mode Bluetooth device to a connectable state.
  • the classic Bluetooth of the second dual-mode Bluetooth device When the classic Bluetooth of the second dual-mode Bluetooth device cannot be connected, the classic Bluetooth of the second dual-mode Bluetooth device is set to a connectable state by prompting the user to operate the second dual-mode Bluetooth device, and then the classic Bluetooth connection between the two dual-mode Bluetooth devices can be established more conveniently.
  • the attribute information further includes application program information of the classic Bluetooth of the second dual-mode Bluetooth device
  • the method further includes: determining, by the first dual-mode Bluetooth device according to the application program information, an application program corresponding to the classic Bluetooth of the second dual-mode Bluetooth device, where the application program is used to establish the classic Bluetooth connection between the first dual-mode Bluetooth device and the second dual-mode Bluetooth device; and prompting, by the first dual-mode Bluetooth device on an operation interface of the first dual-mode Bluetooth device, the user to open the application program corresponding to the second dual-mode Bluetooth device.
  • the user is prompted to open the corresponding application program, so that the user can be conveniently prompted to quickly establish the classic Bluetooth connection between the two dual-mode Bluetooth devices.
  • the application program corresponding to the classic Bluetooth of the second dual-mode Bluetooth device is not installed in the first dual-mode Bluetooth device, and before the prompting, by the first dual-mode Bluetooth device on an operation interface of the first dual-mode Bluetooth device, the user to open the application program corresponding to the classic Bluetooth of the second dual-mode Bluetooth device, the method further includes: prompting, by the first dual-mode Bluetooth device, the user to download and install the application program corresponding to the classic Bluetooth of the second dual-mode Bluetooth device.
  • the user is prompted to download and install the corresponding application program, so that the user can quickly find the corresponding application program if the application program does not exist. In this way, a time period required for establishing the classic Bluetooth connection between the two dual-mode Bluetooth devices is shortened.
  • the method further includes: sending, by the first dual-mode Bluetooth device, another BLE advertising packet to another Bluetooth device, where the another BLE advertising packet includes attribute information of classic Bluetooth of the first dual-mode Bluetooth device.
  • the first dual-mode Bluetooth device sends the BLE advertising packet to a surrounding Bluetooth device, so that the surrounding Bluetooth device can learn of a status of the classic Bluetooth of the first dual-mode Bluetooth device. This facilitates establishment of a classic Bluetooth connection between the first dual-mode Bluetooth device and another dual-mode Bluetooth device.
  • a method for connecting dual-mode Bluetooth devices including: generating, by a dual-mode Bluetooth device, a BLE advertising packet, where the BLE advertising packet includes attribute information of classic Bluetooth of the dual-mode Bluetooth device; and sending, by the dual-mode Bluetooth device, the BLE advertising packet, where the attribute information is used by another Bluetooth device to determine a status of the classic Bluetooth of the dual-mode Bluetooth device, so as to establish a classic Bluetooth connection between the dual-mode Bluetooth device and the another Bluetooth device.
  • the dual-mode Bluetooth device generates the BLE advertising packet including the attribute information of the classic Bluetooth of the dual-mode Bluetooth device, and sends the BLE advertising packet to a surrounding Bluetooth device by using Bluetooth low energy.
  • the surrounding Bluetooth device may determine the status of the classic Bluetooth of the dual-mode Bluetooth device according to the attribute information of the classic Bluetooth of the dual-mode Bluetooth device, and then instruct a user to perform a corresponding operation to establish a classic Bluetooth connection between the dual-mode Bluetooth devices. That is, for the classic Bluetooth in different states, the user can establish the classic Bluetooth connection only by performing a corresponding operation according to a prompt of the dual-mode Bluetooth device, so that a procedure of establishing a classic Bluetooth connection is simplified, and user experience is improved.
  • the attribute information includes a Bluetooth address of a peer device to which the classic Bluetooth of the dual-mode Bluetooth device was connected last time.
  • the attribute information includes an enabling status of the classic Bluetooth of the dual-mode Bluetooth device.
  • the attribute information includes a searchable status of the classic Bluetooth of the dual-mode Bluetooth device.
  • the attribute information includes a connectable status of the classic Bluetooth of the dual-mode Bluetooth device.
  • the attribute information further includes application program information of the classic Bluetooth of the dual-mode Bluetooth device.
  • a dual-mode Bluetooth device includes a Bluetooth low energy module, a classic Bluetooth module, and a processing module, and the Bluetooth low energy module, the classic Bluetooth module, and the processing module of the dual-mode Bluetooth device are configured to perform the method in the first aspect.
  • the dual-mode Bluetooth device may determine a status of classic Bluetooth of another dual-mode Bluetooth device according to attribute information that is of the classic Bluetooth and that is obtained from a BLE advertising packet, and instruct, according to the status of the classic Bluetooth, a user to perform a corresponding operation to establish a classic Bluetooth connection between the dual-mode Bluetooth devices. That is, for the classic Bluetooth in different states, the user can establish the classic Bluetooth connection only by performing a corresponding operation according to a prompt of the dual-mode Bluetooth device, so that a procedure of establishing a classic Bluetooth connection is simplified, and user experience is improved.
  • a dual-mode Bluetooth device includes a classic Bluetooth module, a Bluetooth low energy module, and a control module, and the classic Bluetooth module, the Bluetooth low energy module, and the control module of the dual-mode Bluetooth device are configured to perform the method in the second aspect.
  • the dual-mode Bluetooth device generates a BLE advertising packet including attribute information of classic Bluetooth of the dual-mode Bluetooth device, and sends the BLE advertising packet to a surrounding Bluetooth device by using Bluetooth low energy.
  • the surrounding Bluetooth device may determine a status of the classic Bluetooth of the dual-mode Bluetooth device according to the attribute information of the classic Bluetooth of the dual-mode Bluetooth device, and then instruct a user to perform a corresponding operation to establish a classic Bluetooth connection between the dual-mode Bluetooth devices. That is, for the classic Bluetooth in different states, the user can establish the classic Bluetooth connection only by performing a corresponding operation according to a prompt of the dual-mode Bluetooth device, so that a procedure of establishing a classic Bluetooth connection is simplified, and user experience is improved.
  • a dual-mode Bluetooth device includes: a transceiver, configured to receive a Bluetooth low energy BLE advertising packet sent by another dual-mode Bluetooth device, where the BLE advertising packet includes attribute information of classic Bluetooth of the another dual-mode Bluetooth device; and a processor, configured to determine a status of the classic Bluetooth of the another dual-mode Bluetooth device according to the attribute information, where the processor is further configured to prompt, according to the status of the classic Bluetooth of the another dual-mode Bluetooth device, a user to operate the dual-mode Bluetooth device or the another dual-mode Bluetooth device, so as to establish a classic Bluetooth connection between the dual-mode Bluetooth device and the another dual-mode Bluetooth device.
  • the dual-mode Bluetooth device may determine the status of the classic Bluetooth of the another dual-mode Bluetooth device according to the attribute information that is of the classic Bluetooth and that is obtained from the BLE advertising packet, and instruct, according to the status of the classic Bluetooth, the user to perform a corresponding operation to establish the classic Bluetooth connection between the dual-mode Bluetooth devices. That is, for the classic Bluetooth in different states, the user can establish the classic Bluetooth connection only by performing a corresponding operation according to a prompt of the dual-mode Bluetooth device, so that a procedure of establishing a classic Bluetooth connection is simplified, and user experience is improved.
  • the attribute information includes a Bluetooth address of a peer device to which the classic Bluetooth of the another dual-mode Bluetooth device was connected last time
  • the processor is specifically configured to: determine, according to a relationship between a Bluetooth address of the dual-mode Bluetooth device and the Bluetooth address of the peer device, whether the classic Bluetooth of the another dual-mode Bluetooth device can establish the classic Bluetooth connection to the dual-mode Bluetooth device currently; and if the classic Bluetooth of the another dual-mode Bluetooth device cannot establish the classic Bluetooth connection to the dual-mode Bluetooth device currently, prompt the user to perform factory reset on the another dual-mode Bluetooth device.
  • the attribute information includes an enabling status of the classic Bluetooth of the another dual-mode Bluetooth device
  • the processor is specifically configured to: if the classic Bluetooth of the another dual-mode Bluetooth device is disabled, prompt the user to enable the classic Bluetooth of the another dual-mode Bluetooth device.
  • the attribute information includes a searchable status of the classic Bluetooth of the another dual-mode Bluetooth device
  • the processor is specifically configured to: if the classic Bluetooth of the another dual-mode Bluetooth device cannot be searched for, prompt the user to set the classic Bluetooth of the another dual-mode Bluetooth device to a searchable state.
  • the attribute information includes a connectable status of the classic Bluetooth of the another dual-mode Bluetooth device
  • the processor is specifically configured to: if the classic Bluetooth of the another dual-mode Bluetooth device cannot be connected, prompt the user to set the classic Bluetooth of the another dual-mode Bluetooth device to a connectable state.
  • the attribute information further includes application program information of classic Bluetooth of a second dual-mode Bluetooth device
  • the processor is further configured to: determine, according to the application program information, an application program corresponding to the classic Bluetooth of the another dual-mode Bluetooth device, where the application program is used to connect the dual-mode Bluetooth device to the another dual-mode Bluetooth device; and prompt, on an operation interface of the dual-mode Bluetooth device, the user to open the application program corresponding to the classic Bluetooth of the another dual-mode Bluetooth device.
  • the application program corresponding to the classic Bluetooth of the another dual-mode Bluetooth device is not installed in the dual-mode Bluetooth device, and before the processor prompts, on the operation interface of the dual-mode Bluetooth device, the user to open the application program corresponding to the classic Bluetooth of the another dual-mode Bluetooth device, the processor is further configured to prompt the user to download and install the application program corresponding to the classic Bluetooth of the another dual-mode Bluetooth device.
  • the transceiver is further configured to send another BLE advertising packet to another Bluetooth device, and the another BLE advertising packet includes attribute information of classic Bluetooth of the dual-mode Bluetooth device.
  • a dual-mode Bluetooth device includes a processor and a transceiver, and the transceiver and the processor are configured to perform the method in the second aspect.
  • the dual-mode Bluetooth device generates a BLE advertising packet including attribute information of classic Bluetooth of the dual-mode Bluetooth device, and sends the BLE advertising packet to a surrounding Bluetooth device by using Bluetooth low energy.
  • the surrounding Bluetooth device may determine a status of the classic Bluetooth of the dual-mode Bluetooth device according to the attribute information of the classic Bluetooth of the dual-mode Bluetooth device, and then instruct a user to perform a corresponding operation to establish a classic Bluetooth connection between the dual-mode Bluetooth devices. That is, for the classic Bluetooth in different states, the user can establish the classic Bluetooth connection only by performing a corresponding operation according to a prompt of the dual-mode Bluetooth device, so that a procedure of establishing a classic Bluetooth connection is simplified, and user experience is improved.
  • a Bluetooth communications system includes the dual-mode Bluetooth device in the third aspect and the dual-mode Bluetooth device in the fourth aspect.
  • a dual-mode Bluetooth device generates a BLE advertising packet including attribute information of classic Bluetooth of the dual-mode Bluetooth device, and sends the BLE advertising packet to a surrounding Bluetooth device by using Bluetooth low energy.
  • another surrounding dual-mode Bluetooth device may determine a status of the classic Bluetooth of the dual-mode Bluetooth device according to the attribute information of the classic Bluetooth of the dual-mode Bluetooth device, and then instruct a user to perform a corresponding operation to establish a classic Bluetooth connection between the dual-mode Bluetooth devices. That is, for the classic Bluetooth in different states, the user can establish the classic Bluetooth connection only by performing a corresponding operation according to a prompt of the another dual-mode Bluetooth device, so that a procedure of establishing a classic Bluetooth connection is simplified, and user experience is improved.
  • a Bluetooth communications system includes the dual-mode Bluetooth device in the fifth aspect and the dual-mode Bluetooth device in the sixth aspect.
  • a dual-mode Bluetooth device generates a BLE advertising packet including attribute information of classic Bluetooth of the dual-mode Bluetooth device, and sends the BLE advertising packet to a surrounding Bluetooth device by using Bluetooth low energy.
  • another surrounding dual-mode Bluetooth device may determine a status of the classic Bluetooth of the dual-mode Bluetooth device according to the attribute information of the classic Bluetooth of the dual-mode Bluetooth device, and then instruct a user to perform a corresponding operation to establish a classic Bluetooth connection between the dual-mode Bluetooth devices. That is, for the classic Bluetooth in different states, the user can establish the classic Bluetooth connection only by performing a corresponding operation according to a prompt of the another dual-mode Bluetooth device, so that a procedure of establishing a classic Bluetooth connection is simplified, and user experience is improved.
  • the dual-mode Bluetooth device may determine the status of the classic Bluetooth of the another dual-mode Bluetooth device according to the attribute information that is of the classic Bluetooth and that is obtained from the BLE advertising packet, and instruct, according to the status of the classic Bluetooth, the user to perform a corresponding operation to establish the classic Bluetooth connection between the dual-mode Bluetooth devices. That is, for the classic Bluetooth in different states, the user can establish the classic Bluetooth connection only by performing a corresponding operation according to a prompt of the dual-mode Bluetooth device, so that a procedure of establishing a classic Bluetooth connection is simplified, and user experience is improved.
  • FIG. 1 is a schematic flowchart of a method for establishing a classic Bluetooth connection between dual-mode Bluetooth Bluetooth devices according to an embodiment of the present invention
  • FIG. 2 is a structural diagram of a BLE packet
  • FIG. 3 is a structural diagram of a BLE advertising packet
  • FIG. 4A and FIG. 4B are a schematic flowchart of a method for establishing a classic Bluetooth connection between dual-mode Bluetooth Bluetooth devices according to an embodiment of the present invention:
  • FIG. 5 is a schematic flowchart of a method for establishing a classic Bluetooth connection between dual-mode Bluetooth Bluetooth devices according to an embodiment of the present invention
  • FIG. 6 is a schematic flowchart of a method for establishing a classic Bluetooth connection between dual-mode Bluetooth Bluetooth devices according to an embodiment of the present invention:
  • FIG. 7 is a schematic block diagram of a dual-mode Bluetooth device according to an embodiment of the present invention.
  • FIG. 8 is a schematic block diagram of a dual-mode Bluetooth device according to an embodiment of the present invention.
  • FIG. 9 is a schematic block diagram of a dual-mode Bluetooth device according to an embodiment of the present invention.
  • Bluetooth in the embodiments of the present invention is a wireless communications standard for short-range data exchange, and may include classic Bluetooth and BLE
  • the classic Bluetooth may also be referred to as conventional Bluetooth or standard Bluetooth.
  • the classic Bluetooth is developed and improved based on Bluetooth in previous Bluetooth specification protocol versions 1.0, 1.2, 2.0+EDR, 2.1+EDR, 3.0+HS, and the like, and is a name generally called after the BLE appears. Compared with the BLE, currently, the classic Bluetooth is more appropriate for transmission with a relatively large amount of data, for example, voice transmission or music transmission.
  • the BLE may also be referred to as Bluetooth Smart or the like, is developed based on the Wibree standard of Nokia. and is originally introduced in the Bluetooth specification protocol version 4.0.
  • the BLE consumes extremely low power, and power consumption is 1/10 or less of that of the classic Bluetooth.
  • the BLE is characterized by a short packet, high-efficiency coding, a short connection establishment time period, and the like.
  • For related description of the Bluetooth refer to related content in Wikipedia at https://en.wikipedia.org/wiki/Bluetooth, and a last visit time is Jun. 25, 2016.
  • a dual-mode Bluetooth device mentioned in the present invention is a terminal device that supports both a BLE connection and a classic Bluetooth connection.
  • the dual-mode Bluetooth device may be specifically a mobile phone, a watch, a wristband, a tablet, a point of sale (Point of Sales, POS) terminal, an in-vehicle computer, or the like. This is not specifically limited in the embodiments of the present invention.
  • a Bluetooth low energy connection or a classic Bluetooth connection may be established between dual-mode Bluetooth devices, or both a Bluetooth low energy connection and a classic Bluetooth connection may be established between dual-mode Bluetooth devices. For example, when only a small amount of data needs to be transmitted between a mobile phone and a wristband, only a Bluetooth low energy connection may be established between the mobile phone and the wristband. However, when a large amount of data needs to be transmitted between the mobile phone and the wristband, a classic Bluetooth connection needs to be established between the mobile phone and the wristband. Generally, power consumption of the classic Bluetooth is far higher than power consumption of the Bluetooth low energy.
  • the dual-mode Bluetooth device may disable the classic Bluetooth or set the classic Bluetooth to a sleep state, add attribute information of the classic Bluetooth to a BLE advertising packet, and send the BLE advertising packet to a surrounding Bluetooth device by using Bluetooth low energy.
  • information related to the classic Bluetooth may be sent to the surrounding Bluetooth device by using the Bluetooth low energy.
  • the surrounding Bluetooth device may determine a status of the classic Bluetooth of the Bluetooth device according to the attribute information, and may prompt a user to perform a series of operations to establish a classic Bluetooth connection between the dual-mode Bluetooth device and the surrounding Bluetooth device.
  • the surrounding Bluetooth device may learn of the status of the classic Bluetooth of the dual-mode Bluetooth device according to the BLE packet sent by using the Bluetooth low energy, and then establish the classic Bluetooth connection between the dual-mode Bluetooth device and the surrounding Bluetooth device.
  • a method for connecting dual-mode Bluetooth devices in an embodiment of the present invention is described below in detail with reference to FIG. 1 to FIG. 6 .
  • FIG. 1 is a schematic flowchart of a method for establishing a classic Bluetooth connection between dual-mode Bluetooth Bluetooth devices according to an embodiment of the present invention. Specific steps of the method are as follows:
  • a first dual-mode Bluetooth device receives a BLE advertising packet sent by a second dual-mode Bluetooth device, where the BLE advertising packet includes attribute information of classic Bluetooth of the second dual-mode Bluetooth device.
  • the first dual-mode Bluetooth device and the second dual-mode Bluetooth device are two different Bluetooth devices.
  • the first dual-mode Bluetooth device may be a smartphone
  • the second dual-mode Bluetooth device may be a wearable device such as a smart band or a smartwatch.
  • the second dual-mode Bluetooth device may continuously transmit the BLE advertising packet to a surrounding Bluetooth device, or may transmit the BLE advertising packet to a surrounding Bluetooth device after the second dual-mode Bluetooth device is disconnected from classic Bluetooth of another Bluetooth device.
  • the first dual-mode Bluetooth device may receive the BLE advertising packet of the second dual-mode Bluetooth device.
  • the attribute information in the BLE advertising packet may specifically include a status of a connection between another Bluetooth device and the classic Bluetooth of the second dual-mode Bluetooth device, information indicating whether the classic Bluetooth of the second dual-mode Bluetooth device is enabled, information indicating whether the classic Bluetooth of the second dual-mode Bluetooth device can be found by the another Bluetooth device, information indicating whether the classic Bluetooth of the second dual-mode Bluetooth device can be connected to the another Bluetooth device, and the like.
  • the second dual-mode Bluetooth device may encrypt information carried in the BLE advertising packet. In this way, after receiving the BLE advertising packet, the another Bluetooth device needs to decrypt the carried information to read corresponding information, so that information transmission security is improved.
  • the second dual-mode Bluetooth device herein may establish classic Bluetooth connections to multiple Bluetooth devices, or may establish a classic Bluetooth connection to only one single Bluetooth device.
  • the second dual-mode Bluetooth device may be set to a state in which the second dual-mode Bluetooth device can establish a classic Bluetooth connection to only one single Bluetooth device.
  • the second dual-mode Bluetooth device first needs to release a classic Bluetooth connection to a current Bluetooth device, and then the second dual-mode Bluetooth device can establish the classic Bluetooth connection to the another Bluetooth device.
  • the first dual-mode Bluetooth device determines a status of the classic Bluetooth of the second dual-mode Bluetooth device according to the attribute information.
  • the status of the classic Bluetooth of the second dual-mode Bluetooth device includes a status of a connection between another Bluetooth device and the classic Bluetooth of the second dual-mode Bluetooth device, information indicating whether the classic Bluetooth of the second dual-mode Bluetooth device is enabled, a searchable status of the classic Bluetooth of the second dual-mode Bluetooth device, and a connectable status of the classic Bluetooth of the second dual-mode Bluetooth device.
  • the status of the connection between the another Bluetooth device and the classic Bluetooth of the second dual-mode Bluetooth device includes: the classic Bluetooth of the second dual-mode Bluetooth device has been previously connected to the another Bluetooth device, but is currently disconnected from the another Bluetooth device; or the classic Bluetooth of the second dual-mode Bluetooth device is currently being connected to the another Bluetooth device.
  • the searchable status of the classic Bluetooth of the second dual-mode Bluetooth device indicates whether the classic Bluetooth of the second dual-mode Bluetooth device is in a searchable state.
  • a surrounding Bluetooth device can find the classic Bluetooth of the second dual-mode Bluetooth device; or when the classic Bluetooth of the second dual-mode Bluetooth device is in a non-searchable state, the surrounding Bluetooth device cannot find the classic Bluetooth of the second dual-mode Bluetooth device.
  • the connectable status of the classic Bluetooth of the second dual-mode Bluetooth device indicates whether the classic Bluetooth of the second dual-mode Bluetooth device can be connected to the surrounding Bluetooth device.
  • the surrounding Bluetooth device can establish a classic Bluetooth connection to the second dual-mode Bluetooth device; or when the classic Bluetooth of the second dual-mode Bluetooth device is in a non-connectable state, the surrounding Bluetooth device cannot establish a classic Bluetooth connection to the second dual-mode Bluetooth device.
  • whether the classic Bluetooth of the second dual-mode Bluetooth device is in an inquiry scan state may be used to indicate whether the classic Bluetooth of the second dual-mode Bluetooth device is in a searchable state
  • whether the classic Bluetooth of the second dual-mode Bluetooth device is in a page scan state may be used to indicate whether the classic Bluetooth of the second dual-mode Bluetooth device is in a connectable state.
  • the classic Bluetooth of the second dual-mode Bluetooth device is in an inquiry scan state, it may be considered that the classic Bluetooth of the second dual-mode Bluetooth device is in a searchable state.
  • the classic Bluetooth of the second dual-mode Bluetooth device is in a page scan state, it may be considered that the classic Bluetooth of the second dual-mode Bluetooth device is in a connectable state.
  • the classic Bluetooth of the second dual-mode Bluetooth device is in an inquiry scan state or a page scan state may be controlled by using a corresponding option switch.
  • the corresponding option switch When the corresponding option switch is enabled, the classic Bluetooth of the second dual-mode Bluetooth device is in an inquiry scan state or a page scan state.
  • the corresponding option switch When the corresponding option switch is disabled, the classic Bluetooth of the second dual-mode Bluetooth device is not in an inquiry scan state or a page scan state.
  • the Bluetooth device may search for the surrounding Bluetooth device.
  • the Bluetooth device may initiate a connection request to the surrounding Bluetooth device.
  • the first dual-mode Bluetooth device prompts, according to the status of the classic Bluetooth of the second dual-mode Bluetooth device, a user to operate the first dual-mode Bluetooth device or the second dual-mode Bluetooth device, so as to establish a classic Bluetooth connection between the first dual-mode Bluetooth device and the second dual-mode Bluetooth device.
  • the user When the second dual-mode Bluetooth device is in a different state, the user needs to operate the second dual-mode Bluetooth device or the first dual-mode Bluetooth device, or needs to operate both the first dual-mode Bluetooth device and the second dual-mode Bluetooth device, so as to establish the classic Bluetooth connection between the first Bluetooth device and the second dual-mode Bluetooth device.
  • a dual-mode Bluetooth device may determine a status of classic Bluetooth of another dual-mode Bluetooth device according to attribute information that is of the classic Bluetooth and that is obtained from a BLE advertising packet, and instruct, according to the status of the classic Bluetooth, a user to perform a corresponding operation to establish a classic Bluetooth connection between the dual-mode Bluetooth devices. That is, for the classic Bluetooth in different states, the user can establish the classic Bluetooth connection only by performing a corresponding operation according to a prompt of the dual-mode Bluetooth device, so that a procedure of establishing a classic Bluetooth connection is simplified, and user experience is improved.
  • the BLE advertising packet sent by the second dual-mode Bluetooth device may be specifically an advertising packet in a BLE packet.
  • a structure of the BLE packet is shown in FIG. 2 .
  • the BLE packet includes a preamble, an access address, a header, a length, data, and a verification field.
  • Two types of packets: an advertising packet and a data packet, are defined in the Bluetooth low energy specification.
  • a Bluetooth device may send an advertising packet to a surrounding Bluetooth device.
  • the surrounding Bluetooth device can receive the advertising packet provided that the surrounding Bluetooth device is in an enabled state and is in a specific distance range.
  • a data packet is generally used to transmit data after a connection is established between Bluetooth devices.
  • a difference between the advertising packet and the data packet is that the advertising packet may be used to send data to multiple surrounding listening devices by means of advertising, but the data packet can be understood only by two connected devices. Whether a packet sent by a Bluetooth device is an advertising packet or a data packet depends on a channel for sending the packet. Three advertising channels and 37 data channels are specified in the Bluetooth low energy. If a packet is transmitted on an advertising channel, the packet is an advertising packet. If a packet is transmitted on a data channel, the packet is a data packet.
  • the BLE advertising packet in this embodiment of the present invention may be an advertising packet sent by the second dual-mode Bluetooth device on an advertising channel, and a structure of the advertising packet may be shown in FIG. 3 .
  • a header of the packet includes a type of the advertising packet and some flag bits.
  • each type of advertising packet is corresponding to different packet data, and a meaning indicated by each packet type is as follows:
  • ADV_IND universal advertising indication:
  • ADV_DIRECT_IND directed connection indication
  • ADV_NONCONN_IND non-connectable indication
  • NONCONN_IND scannable indication
  • SCAN_REQ active scanning request
  • the packet When the packet is of the ADV_IND, ADV_DIRECT_IND, ADV_NONCONN_IND, or NONCONN_IND type, it means that a Bluetooth device within a transmission range of a sending device may receive an advertising packet.
  • an advertising packet carries only data related to Bluetooth low energy.
  • the attribute information of the classic Bluetooth is carried by using a reserved field in a data field in an existing advertising packet, an idle field and an extensible field in another field, and a user-defined field reserved in a vendor field, so that the BLE advertising packet can not only carry the data and information related to the Bluetooth low energy, but also carry data or information related to the classic Bluetooth.
  • the Bluetooth device within the transmission range can obtain, by using the BLE advertising packet, the data or the information related to the classic Bluetooth of the Bluetooth device, and power consumption can be reduced by sending the BLE advertising packet.
  • classic Bluetooth of a dual-mode Bluetooth device may establish connections to multiple Bluetooth devices.
  • some vendors set the classic Bluetooth of the dual-mode Bluetooth device to a state in which the classic Bluetooth can be connected to only one Bluetooth device.
  • a classic Bluetooth connection established between the dual-mode Bluetooth device and a previous Bluetooth device needs to be first released, and the dual-mode Bluetooth device needs to restore to a factory setting, so as to establish the classic Bluetooth connection to the another Bluetooth device.
  • the first dual-mode Bluetooth device may obtain, from the attribute information in the BLE advertising packet, the Bluetooth address of the peer device to which the classic Bluetooth of the second dual-mode Bluetooth device was connected last time, and compare the Bluetooth address of the peer device with a Bluetooth address of the first dual-mode Bluetooth device, to determine the status of the classic Bluetooth of the second dual-mode Bluetooth device.
  • the Bluetooth address of the peer device is different from the Bluetooth address of the first dual-mode Bluetooth device, it indicates that the classic Bluetooth of the second dual-mode Bluetooth device was connected to a Bluetooth device last time other than the first dual-mode Bluetooth device.
  • the first dual-mode Bluetooth device prompts the user to perform factory reset on the second dual-mode Bluetooth device.
  • the classic Bluetooth of the second dual-mode Bluetooth device has been previously connected to another Bluetooth device, but is currently disconnected from the another Bluetooth device, the user may directly perform factory reset on the second dual-mode Bluetooth device.
  • the first dual-mode Bluetooth device prompts the user to first release a classic Bluetooth connection between the second dual-mode Bluetooth device and the another Bluetooth device, and then perform factory reset on the second dual-mode Bluetooth device.
  • the factory reset herein may indicate that the factory reset is performed on both classic Bluetooth and Bluetooth low energy of a dual-mode Bluetooth device, or may indicate that the factory reset is performed only on classic Bluetooth of a dual-mode Bluetooth device.
  • the factory reset may include: deleting sensitive information of a previous user, emptying setting information of the classic Bluetooth, or resetting setting information of the classic Bluetooth.
  • the Bluetooth address of the peer device is the same as the Bluetooth device of the first dual-mode Bluetooth device, it indicates that the classic Bluetooth of the second dual-mode Bluetooth device was connected to the first dual-mode Bluetooth device last time, that is, the two Bluetooth devices have been connected, and the second dual-mode Bluetooth device can be found in a list of paired devices of the first dual-mode Bluetooth device.
  • the first dual-mode Bluetooth device prompts the user to tap to select the second dual-mode Bluetooth device that is to be connected. Then, a classic Bluetooth device connection procedure and interface comes, and the user can establish the classic Bluetooth connection between the first dual-mode Bluetooth device and the second dual-mode Bluetooth device only by following a corresponding prompt.
  • the first dual-mode Bluetooth device may determine, according to the attribute information, whether the classic Bluetooth of the second dual-mode Bluetooth device is enabled or disabled. When the classic Bluetooth of the second dual-mode Bluetooth device is disabled, the first dual-mode Bluetooth device prompts the user to enable the classic Bluetooth of the second dual-mode Bluetooth device.
  • the first dual-mode Bluetooth device may determine, according to the attribute information, whether the classic Bluetooth of the second dual-mode Bluetooth device can be searched for.
  • the first dual-mode Bluetooth device prompts the user to set the classic Bluetooth of the second dual-mode Bluetooth device to a searchable state.
  • the first dual-mode Bluetooth device prompts the user to enable a corresponding switch, so that the classic Bluetooth of the second dual-mode Bluetooth device is in an inquiry scan state.
  • the first dual-mode Bluetooth device may determine, according to the attribute information, whether the classic Bluetooth of the second dual-mode Bluetooth device can be connected.
  • the first dual-mode Bluetooth device prompts the user to set the classic Bluetooth of the second dual-mode Bluetooth device to a connectable state.
  • the first dual-mode Bluetooth device prompts the user to enable a corresponding switch, so that the classic Bluetooth of the second dual-mode Bluetooth device is in a page scan state.
  • the second dual-mode Bluetooth device there may be two cases for the second dual-mode Bluetooth device.
  • the second dual-mode Bluetooth device is in a searchable state and a connectable state provided that the classic Bluetooth of the second dual-mode Bluetooth device is enabled.
  • the classic Bluetooth of the second dual-mode Bluetooth device needs to be enabled, but also another operation (for example, enabling the corresponding option switch) needs to performed on the second dual-mode Bluetooth device, so that the second dual-mode Bluetooth device can be in a searchable state and a connectable state.
  • the attribute information may further carry application program information of the classic Bluetooth of the second dual-mode Bluetooth device.
  • the second dual-mode Bluetooth device may obtain, according to the attribute information, an application program corresponding to the second dual-mode Bluetooth device, and then prompt the user to open the application program corresponding to the classic Bluetooth of the second dual-mode Bluetooth device.
  • the first dual-mode Bluetooth device prompts the user to download and install the application program corresponding to the classic Bluetooth of the dual-mode Bluetooth device, and then prompts the user to open the application program.
  • the first dual-mode Bluetooth device may directly prompt the user to open the application program, so as to establish the classic Bluetooth connection between the first dual-mode Bluetooth device and the second dual-mode Bluetooth device.
  • the first dual-mode Bluetooth device may prestore application program information corresponding to classic Bluetooth of different dual-mode Bluetooth devices, and after detecting the second dual-mode Bluetooth device, the first dual-mode Bluetooth device may automatically prompt the user to open the application program corresponding to the classic Bluetooth of the second dual-mode Bluetooth device, or prompt the user to install the application program corresponding to the dual-mode Bluetooth device.
  • the first dual-mode Bluetooth device first prompts the user to perform factory reset on the second dual-mode Bluetooth device, and enable the classic Bluetooth of the second dual-mode Bluetooth device, or set the classic Bluetooth of the second dual-mode Bluetooth device to a searchable state and a connectable state; and then prompts the user to open, on an operation interface of the first dual-mode Bluetooth device, the application program corresponding to the classic Bluetooth of the second dual-mode Bluetooth device.
  • the first dual-mode Bluetooth device may send another BLE advertising packet to another Bluetooth device.
  • the BLE advertising packet may include attribute information of classic Bluetooth of the first dual-mode Bluetooth device.
  • the attribute information may include a Bluetooth address of a peer device to which the classic Bluetooth of the first dual-mode Bluetooth device was connected last time, an enabling status of the classic Bluetooth of the first dual-mode Bluetooth device, a searchable status of the classic Bluetooth of the first dual-mode Bluetooth device, a connectable status of the classic Bluetooth of the first dual-mode Bluetooth device, and the like.
  • the following uses a connection between a mobile phone and a wristband (or a smartwatch) as an example to describe in detail a method for establishing a classic Bluetooth connection between dual-mode Bluetooth Bluetooth devices in an embodiment of the present invention.
  • FIG. 4A and FIG. 4B are a schematic flowchart of a method for establishing a classic Bluetooth connection between dual-mode Bluetooth Bluetooth devices according to an embodiment of the present invention.
  • a connection between a mobile phone and a wristband (both the wristband and the mobile phone herein are dual-mode Bluetooth devices) is used as an example in the method in FIG. 4A and FIG. 4B .
  • the method for connecting dual-mode Bluetooth devices in this embodiment of the present invention is described in detail from a perspective of the mobile phone. Specific steps are as follows:
  • Enable Bluetooth Select the Bluetooth in a setting option in the mobile phone, and switch the Bluetooth from a disabled state to an enabled state, or select a Bluetooth icon from a drop-down shortcut menu of the mobile phone to enable a Bluetooth function.
  • the mobile phone receives a BLE advertising packet sent by the wristband around the mobile phone.
  • the wristband herein may transmit the BLE advertising packet to a surrounding Bluetooth device only when the wristband is not connected to classic Bluetooth of another Bluetooth device, or the wristband may send the BLE advertising packet to a surrounding Bluetooth device regardless of whether the wristband is connected to classic Bluetooth of another Bluetooth device.
  • the wristband may send the BLE advertising packet to the surrounding device.
  • the surrounding Bluetooth device can receive the BLE advertising packet of the wristband.
  • the mobile phone may determine, according to attribute information that is of classic Bluetooth and that is carried in the BLE advertising packet, whether the wristband belongs to a device that has been paired with the mobile phone. If the wristband belongs to the device that has been paired with the mobile phone, the wristband is displayed in a list of paired devices; or if the wristband does not belong to the device that has been paired with the mobile phone, the wristband is displayed in a list of available devices.
  • the wristband is in a list of paired devices of the mobile phone, it indicates that the wristband belongs to the paired device, and in this case, a user may select the wristband from the list of paired devices, to enter a connection interface defined by classic Bluetooth.
  • the mobile phone determines, according to the received BLE advertising packet, whether the wristband establishes a Bluetooth connection to another mobile phone.
  • pairing is relatively independent of connection.
  • the wristband may be paired with multiple different mobile phones or other terminals. Therefore, when the mobile phone belongs to the paired device, the mobile phone may further determine whether the wristband establishes the Bluetooth connection to the another mobile phone. This is not specifically limited in this embodiment of the present invention.
  • the mobile phone If the wristband is in a non-searchable state, the mobile phone prompts the user to operate the wristband, so that the wristband is in a searchable state.
  • the mobile phone If the wristband is in a non-connectable state, the mobile phone prompts the user to operate the wristband, so that the wristband is in a connectable state.
  • the mobile phone may determine, according to application program information that is of the wristband and that is obtained from the BLE advertising packet, the application corresponding to the wristband, or the mobile phone may further determine, according to a prestored application program corresponding to the wristband, the application corresponding to the wristband.
  • the mobile phone When the application corresponding to the wristband is not installed in the mobile phone, the mobile phone prompts the user to download and install the application corresponding to the wristband.
  • the mobile phone may prompt the user to directly open the application corresponding to the wristband, to implement a connection between the wristband and the mobile phone.
  • paired devices and available devices displayed in a list in a mobile phone can be connected to the mobile phone in different manners.
  • the paired devices are Bluetooth devices that have established classic Bluetooth connections to the mobile phone. For example, when a smartwatch (HUAWEI WATCH 01F6) in the paired devices is selected by means of tapping, a classic Bluetooth connection procedure and interface is displayed. Then, a classic Bluetooth connection between the smartwatch and the mobile phone may be completed by performing a corresponding connection procedure.
  • the available devices are surrounding Bluetooth devices found by the mobile phone, and these Bluetooth devices have not established classic Bluetooth connections to the mobile phone. In comparison with the paired devices, a process of establishing classic Bluetooth connections to these unpaired Bluetooth devices by the mobile phone is more complex.
  • a vendor may set the smartwatch to a state in which the smartwatch can be connected to only one mobile phone at a time. If a classic Bluetooth connection needs to be established between the smartwatch and another mobile phone, pairing of the smartwatch and the mobile phone needs to be first cancelled, and then factory reset is performed on the smartwatch. In this way, the smartwatch can be connected to the another mobile phone.
  • the mobile phone finds a surrounding smartwatch (63:54:04:CB:36:C9) by using a BLE advertising packet, but classic Bluetooth of the smartwatch has been bound to another mobile phone device, that is, the smartwatch has established a classic Bluetooth connection to the another mobile phone.
  • an intelligent terminal displays a dialog box shown in the diagram, to notify the user that the classic Bluetooth of the smartwatch has been bound to the another mobile phone device. If the user still needs to connect the smartwatch to the mobile phone, the user needs to select “Cancel pairing with the mobile phone” in a setting list of the smartwatch, and then perform factory reset on the smartwatch.
  • the vendor sets the smartwatch to a state in which the smartwatch can establish classic Bluetooth connections to multiple mobile phones.
  • the smartwatch has established a classic Bluetooth connection to a mobile phone, but also needs to establish a classic Bluetooth connection to another mobile phone, the user directly establishes the classic Bluetooth connection between the smartwatch and the another mobile phone, instead of cancelling pairing of the smartwatch and the mobile phone and performing factory reset on the smartwatch.
  • a mobile phone finds a surrounding smartwatch (63:54:04:CB:36:C9) by using a BLE advertising packet, and the smartwatch is not bound to another mobile phone, and is in a searchable and connectable state.
  • the mobile phone prompts the user to open an application corresponding to the watch. If the application corresponding to the smartwatch is not installed in the mobile phone, the mobile phone prompts the user to download the application corresponding to the smartwatch, and then prompts the user to open the application corresponding to the smartwatch, so as to connect the mobile phone to the smartwatch.
  • a method for connecting dual-mode Bluetooth devices in an embodiment of the present invention is described above in detail with reference to FIG. 1 to FIG. 6 , and a dual-mode Bluetooth device in an embodiment of the present invention is described below with reference to FIG. 7 to FIG. 9 .
  • the dual-mode Bluetooth device described in FIG. 7 to FIG. 9 in the embodiment of the present invention can implement all steps of the method for connecting dual-mode Bluetooth devices that is described in FIG. 1 to FIG. 6 in the embodiment of the present invention.
  • repeated description is appropriately omitted.
  • FIG. 7 is a schematic block diagram of a dual-mode Bluetooth device according to an embodiment of the present invention.
  • the dual-mode Bluetooth device 700 may be corresponding to the first dual-mode Bluetooth device in the method for connecting dual-mode Bluetooth devices in the embodiment of the present invention.
  • the dual-mode Bluetooth device 700 includes a Bluetooth low energy module 710 , a classic Bluetooth module 820 , and a processing module 730 .
  • the Bluetooth low energy module 710 is configured to receive a BLE advertising packet sent by another dual-mode Bluetooth device, and the BLE advertising packet includes attribute information of classic Bluetooth of the another dual-mode Bluetooth device. Then, the processing module 730 may obtain the BLE advertising packet received by the Bluetooth low energy module 710 , and determine a status of the classic Bluetooth of the another dual-mode Bluetooth device according to the attribute information in the advertising packet. Finally, the dual-mode Bluetooth device may prompt, according to the status of the classic Bluetooth of the another dual-mode Bluetooth device, a user to operate the dual-mode Bluetooth device or the another dual-mode Bluetooth device, so as to establish a classic Bluetooth connection between the dual-mode Bluetooth device and the another dual-mode Bluetooth device.
  • the dual-mode Bluetooth device may determine the status of the classic Bluetooth of the another dual-mode Bluetooth device according to the attribute information that is of the classic Bluetooth and that is obtained from the BLE advertising packet, and instruct, according to the status of the classic Bluetooth, the user to perform a corresponding operation to establish the classic Bluetooth connection between the dual-mode Bluetooth devices. That is, for the classic Bluetooth in different states, the user can establish the classic Bluetooth connection only by performing a corresponding operation according to a prompt of the dual-mode Bluetooth device, so that a procedure of establishing a classic Bluetooth connection is simplified, and user experience is improved.
  • the processing module 730 when the processing module 730 obtains, from the attribute information of the classic Bluetooth of the another dual-mode Bluetooth device, a Bluetooth address of a peer device to which the classic Bluetooth of the another dual-mode Bluetooth device was connected last time, the processing module may compare the Bluetooth address of the peer device with a Bluetooth address of the dual-mode Bluetooth device, and determine a status of classic Bluetooth of a second dual-mode Bluetooth device.
  • the dual-mode Bluetooth device prompts the user to perform factory reset on the another dual-mode Bluetooth device.
  • the processing module 730 may obtain an enabling status of the classic Bluetooth of the another dual-mode Bluetooth device from the attribute information.
  • the processing module 730 prompts the user to enable the classic Bluetooth of the another dual-mode Bluetooth device.
  • the processing module 730 may obtain a searchable status of the classic Bluetooth of the another dual-mode Bluetooth device from the attribute information.
  • the processing module 730 prompts the user to set the classic Bluetooth of the another dual-mode Bluetooth device to a searchable state.
  • the processing module 730 may obtain a connectable status of the classic Bluetooth of the another dual-mode Bluetooth device from the attribute information.
  • the processing module 730 prompts the user to set the classic Bluetooth of the another dual-mode Bluetooth device to a connectable state.
  • FIG. 8 is a schematic block diagram of a dual-mode Bluetooth device according to an embodiment of the present invention.
  • the dual-mode Bluetooth device 800 may be corresponding to the second dual-mode Bluetooth device in the method for connecting dual-mode Bluetooth devices in the embodiment of the present invention.
  • the dual-mode Bluetooth device 800 includes a classic Bluetooth module 810 , a Bluetooth low energy module 820 , and a control module 830 .
  • the control module 830 is configured to control the Bluetooth low energy module 820 to generate a BLE advertising packet, and the BLE advertising packet includes attribute information of classic Bluetooth of the classic Bluetooth module 810 of the dual-mode Bluetooth device. Then, the control module 830 controls the Bluetooth low energy module 820 to send the BLE advertising packet. In this way, after receiving the BLE advertising packet, another surrounding Bluetooth device may determine a status of the classic Bluetooth of the dual-mode Bluetooth device according to the attribute information in the BLE advertising packet. Then, a classic Bluetooth connection may be established between the dual-mode Bluetooth device and the another Bluetooth device according to the status of the classic Bluetooth of the dual-mode Bluetooth device.
  • the dual-mode Bluetooth device generates the BLE advertising packet including the attribute information of the classic Bluetooth of the dual-mode Bluetooth device, and sends the BLE advertising packet to the surrounding Bluetooth device by using Bluetooth low energy.
  • the surrounding Bluetooth device may determine the status of the classic Bluetooth of the dual-mode Bluetooth device according to the attribute information of the classic Bluetooth of the dual-mode Bluetooth device, and then instruct a user to perform a corresponding operation to establish the classic Bluetooth connection between the dual-mode Bluetooth devices. That is, for the classic Bluetooth in different states, the user can establish the classic Bluetooth connection only by performing a corresponding operation according to a prompt of the dual-mode Bluetooth device, so that a procedure of establishing a classic Bluetooth connection is simplified, and user experience is improved.
  • the attribute information carried in the BLE advertising packet may include the following several types of information:
  • FIG. 9 is a schematic block diagram of a dual-mode Bluetooth device according to an embodiment of the present invention.
  • the dual-mode Bluetooth device may be the first dual-mode Bluetooth device or the second dual-mode Bluetooth device in the method for connecting dual-mode Bluetooth devices in the embodiment of the present invention.
  • the dual-mode Bluetooth device 900 may include components such as a processor 910 , a memory 920 , a power supply 930 , a Bluetooth chip 940 , an audio frequency circuit 950 , an I/O subsystem 960 , a display 970 , a sensor 980 , and another input device 990 .
  • a structure shown in FIG. 9 does not constitute a limitation on a structure of the dual-mode Bluetooth device in this embodiment of the present invention.
  • the dual-mode Bluetooth device in this embodiment of the present invention may include more or less components than those shown in the diagram, or combine some components, or split some components, or have different component arrangements.
  • Each constituent component of the dual-mode Bluetooth device 900 is described below in detail with reference to FIG. 9 .
  • the processor 910 is a control center of the terminal 900 , and is connected to each part of the entire mobile terminal by using various interfaces and lines. By running or executing a software program and/or a module stored in the memory 920 and invoking data stored in the memory 920 , the processor 910 executes various functions of the dual-mode Bluetooth device 900 and processes data, so as to perform overall monitoring on the mobile terminal.
  • the processor 910 may include one or more processors or processing modules.
  • an application processor Application Processor, AP
  • a modem processor may be integrated into the processor 910 .
  • the AP mainly processes an operating system, a user interface, an application program, and the like, and the modem processor mainly processes wireless communication.
  • the processor 910 may further include a graphics processing unit GPU, and this is not specifically limited in the present invention.
  • the processor 910 is further integrated with a Bluetooth module to implement related functions such as a Bluetooth connection and data transmission.
  • the memory 920 may be configured to store the software program and the module, and the processor 910 executes various function applications of the dual-mode Bluetooth device 900 and processes data by running the software program and the module stored in the memory 920 .
  • the memory 920 may mainly include a program storage area and a data storage area.
  • the program storage area may store an operating system, an application program required by at least one function (for example, Bluetooth control or a Bluetooth connection function), and the like.
  • the data storage area may store data (for example, a ciphertext generation algorithm or a Bluetooth connection record) created according to use of the dual-mode Bluetooth device 900 , and the like.
  • the memory 920 may include a high-speed random access memory, and may further include a nonvolatile memory, for example, at least one magnetic disk memory component, a flash memory component, or another volatile solid-state memory component.
  • the power supply 930 may supply power to each component.
  • the power supply may be logically connected to the processor 910 by using a power supply management system, so as to implement functions such as charging management, discharging management, and power consumption management by using the power supply management system.
  • the dual-mode Bluetooth device 900 may further include the Bluetooth chip 940 .
  • the Bluetooth chip 940 may include a BLE controller 941 , a classic Bluetooth controller 942 , and a transceiver 943 .
  • the BLE controller 941 and the classic Bluetooth controller 942 may send and receive a Bluetooth radio frequency signal by controlling the transceiver 943 .
  • the BLE controller 941 may control the transceiver 943 to send and receive a BLE advertising packet
  • the classic Bluetooth controller 942 may control the transceiver 943 to send and receive a classic Bluetooth connection request, a classic Bluetooth connection response, and the like.
  • the dual-mode Bluetooth device 900 may control the BLE controller 941 and the classic Bluetooth controller 942 in the Bluetooth chip 940 by using the Bluetooth module in the processor 910 .
  • the Bluetooth chip 940 may prestore some data, for example, a prestored signal strength threshold of a Bluetooth signal, an address of a target Bluetooth terminal that can be connected, a ciphertext, or another identity.
  • the Bluetooth chip 940 may independently perform some simple processing, for example, detecting signal strength of a Bluetooth-related message and/or comparing the detected signal strength with the prestored signal strength threshold; or parsing a Bluetooth-related message such as an advertising packet, and matching an address, a ciphertext, or another identity in the Bluetooth-related message with corresponding prestored information.
  • the BLE controller 941 and the classic Bluetooth controller 942 may be independent hardware modules, or may be logically independent modules whose hardware is integrated together.
  • the Bluetooth chip 940 may belong to a category of the processor 910 .
  • the dual-mode Bluetooth device 900 may have no independent Bluetooth chip.
  • a circuit and a function related to the Bluetooth chip 940 may be integrated into the processor 910 .
  • the circuit and the function may be integrated into an AP of a mobile phone or an AP of a watch.
  • the Bluetooth module integrates all the described function modules related to Bluetooth function implementation.
  • the audio frequency circuit 250 may include a microphone and a loudspeaker, and provide an audio interface between a user and the dual-mode Bluetooth device 900 .
  • the audio frequency circuit 950 may output audio data to the Bluetooth module or the Bluetooth chip 940 , to send the audio data to another terminal, or output audio data obtained from the Bluetooth module or the Bluetooth chip 940 to the user, or the like.
  • the I/O subsystem 960 is configured to control an input/output extremal device, and may include another device input controller, a sensor controller, and a display controller.
  • the terminal may include the display 970 .
  • the display 970 may be configured to display information entered by the user or information provided for the user, and various menus of the dual-mode Bluetooth device 900 , and may further receive user input.
  • the display 970 may include a display panel 971 and a touch panel 972 .
  • the display controller in the I/O subsystem 960 may receive a signal from the display 970 and/or send a signal to the display 970 , to implement man-machine interaction.
  • the dual-mode Bluetooth device 900 may further include one or more sensors 980 , such as an optical sensor, a motion sensor, and another sensor.
  • the sensor controller in the I/O subsystem 960 may receive a signal from the one or more sensors 980 and/or may send a signal to the one or more sensors 980 .
  • the another input module 990 may be configured to: receive entered numeral or character information, and generate key signal input related to a user setting and function control of the dual-mode Bluetooth device 900 .
  • One or more other device input controllers receive a signal from the another input device 990 and/or send a signal to the another input device 990 .
  • the dual-mode Bluetooth device 900 may further include a radio frequency circuit, configured to receive and send information, or receive and send a signal during a call.
  • the dual-mode Bluetooth device 900 may further include a camera lens, a Wireless Fidelity (Wireless-Fidelity, Wi-Fi or WiFi) module, an infrared module, and the like. Details are not described herein.
  • the dual-mode Bluetooth device for implementing this embodiment of the present invention may be a processor or a processor with a necessary auxiliary circuit and a necessary auxiliary component, or a chip or a chip group including multiple chips, or the like.
  • the dual-mode Bluetooth device 900 shown in FIG. 9 may receive, by using the transceiver 943 , a BLE advertising packet sent by another dual-mode Bluetooth device.
  • the processor 910 may obtain the BLE advertising packet from the memory 920 or directly obtain the BLE advertising packet from a storage unit of the processor 910 , and then determine a status of classic Bluetooth of the another dual-mode Bluetooth device according to attribute information in the BLE advertising packet.
  • the processor 910 may prompt, by using the display 970 according to the status of the classic Bluetooth of the another Bluetooth device, a user to operate the dual-mode Bluetooth device 910 or the another dual-mode Bluetooth device, so as to establish a classic Bluetooth connection between the dual-mode Bluetooth device 900 and the another dual-mode Bluetooth device.
  • the dual-mode Bluetooth device 900 may further generate, by using the BLE controller, a BLE advertising packet including attribute information of classic Bluetooth of the dual-mode Bluetooth device 900 , and then send the BLE advertising packet to another surrounding Bluetooth device by using the transceiver 943 .
  • the another Bluetooth device may obtain a status of the classic Bluetooth of the dual-mode Bluetooth device 900 .
  • a classic Bluetooth connection may be established between the dual-mode Bluetooth device 900 and the another Bluetooth device according to the status of the classic Bluetooth of the dual-mode Bluetooth device 900 .
  • FIG. 7 to FIG. 9 all show the dual-mode Bluetooth device in the embodiments of the present invention.
  • the processing module 730 in FIG. 7 is equivalent to the processor 910 in FIG. 9
  • the Bluetooth low energy module 710 and the classic Bluetooth module 720 are corresponding to the Bluetooth chip 940 in FIG. 9 .
  • the classic Bluetooth module 810 and the Bluetooth low energy module 820 in FIG. 8 are corresponding to the Bluetooth chip 940 in FIG. 9
  • the control module 830 is corresponding to the BLE controller and the classic Bluetooth controller in the Bluetooth chip 940 in FIG. 9 .
  • the dual-mode Bluetooth device in the embodiments of the present invention may be a device including all the modules shown in FIG. 9 , or may be a device including only some modules shown in FIG. 9 , or may be a device including another module or structure in addition to the modules shown in FIG. 9 .
  • the disclosed system, apparatus, and method may be implemented in other manners.
  • the described apparatus embodiment is merely an example.
  • the unit division is merely logical function division and may be other division in actual implementation.
  • a plurality of units or components may be combined or integrated into another system, or some features may be ignored or not performed.
  • the displayed or discussed mutual couplings or direct couplings or communication connections may be implemented by using some interfaces.
  • the indirect couplings or communication connections between the apparatuses or units may be implemented in electronic, mechanical, or other forms.
  • the units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one position, or may be distributed on a plurality of network units. Some or all of the units may be selected according to actual requirements to achieve the objectives of the solutions of the embodiments.
  • functional units in the embodiments of the present invention may be integrated into one processing unit, or each of the units may exist alone physically, or two or more units are integrated into one unit.
  • the functions When the functions are implemented in the form of a software functional unit and sold or used as an independent product, the functions may be stored in a computer-readable storage medium. Based on such an understanding, the technical solutions of the present invention essentially, or the part contributing to the prior art, or some of the technical solutions may be implemented in a form of a software product.
  • the software product is stored in a storage medium, and includes several instructions for instructing a computer device (which may be a personal computer, a server, or a network device) to perform all or some of the steps of the methods described in the embodiments of the present invention.
  • the foregoing storage medium includes: any medium that can store program code, such as a USB flash drive, a removable hard disk, a read-only memory (ROM, Read-Only Memory), a random access memory (RAM, Random Access Memory), a magnetic disk, or an optical disc.
  • program code such as a USB flash drive, a removable hard disk, a read-only memory (ROM, Read-Only Memory), a random access memory (RAM, Random Access Memory), a magnetic disk, or an optical disc.

Abstract

Methods and devices are provided for establishing a classic Bluetooth connection between dual-mode Bluetooth devices. In one aspect, a method includes receiving, by a first dual-mode Bluetooth device, a Bluetooth low energy advertising packet sent by a second dual-mode Bluetooth device; determining, by the first dual-mode Bluetooth device, a status of the classic Bluetooth of the second dual-mode Bluetooth device according to the Bluetooth low energy advertising packet; and prompting, by the first dual-mode Bluetooth device according to the status of the classic Bluetooth of the second dual-mode Bluetooth device, a user to operate the first dual-mode Bluetooth device or the second dual-mode Bluetooth device to establish a classic Bluetooth connection between the first dual-mode Bluetooth device and the second dual-mode Bluetooth device.

Description

    CROSS-REFERENCE TO RELATED APPLICATIONS
  • This application is a continuation of U.S. patent application Ser. No. 16/313,801, filed on Dec. 27, 2018, which is a national stage of International Application No. PCT/CN2016/087365, filed on Jun. 27, 2016. Both of the aforementioned applications are hereby incorporated by reference in their entireties.
  • TECHNICAL FIELD
  • The present invention relates to the wireless communications field, and in particular, to a method for establishing a classic Bluetooth connection between dual-mode Bluetooth devices, and a dual-mode Bluetooth device.
  • BACKGROUND
  • A Bluetooth technology is a globally universal short-range wireless communications technology. The Bluetooth technology provides a near-field data communication means, and has advantages such as low costs, low power consumption, and a relatively high transmission rate. A device that supports only a Bluetooth low energy (Bluetooth Low Energy, BLE) connection is referred to as a single-mode Bluetooth device, and a device that supports both a BLE connection and a classic Bluetooth connection is referred to as a dual-mode Bluetooth device. Bluetooth low energy is suitable for short-time transmission with a small amount of data, and classic Bluetooth is suitable for long-time transmission with a large amount of data. Generally, the Bluetooth low energy is more power-saving than the classic Bluetooth.
  • In actual application, a classic Bluetooth connection usually needs to be established between two dual-mode Bluetooth devices to perform data transmission. For example, when a classic Bluetooth connection needs to be established between two dual-mode Bluetooth devices, that is, a mobile phone and a wristband, the wristband may be searched for and connected by opening an application program (Application, APP) that is in the mobile phone and that is corresponding to the wristband, to establish the classic Bluetooth connection between the mobile phone and the wristband. However, when the wristband is in the following states, the classic Bluetooth connection cannot be established between the mobile phone and the wristband. For example, when the wristband has established a classic Bluetooth connection to another device or classic Bluetooth of the wristband is not enabled, the mobile phone cannot find the wristband; when the wristband does not enter a searchable state, the mobile phone cannot find the wristband; or when the wristband does not enter a connectable state, the mobile phone cannot be connected to the wristband. For the foregoing case, an existing solution is to refer to a manual of the wristband, and establish the classic Bluetooth connection between the mobile phone and the wristband step by step according to steps indicated in the manual. However, this method is relatively complex, and user experience is poor.
  • SUMMARY
  • This application provides a method for establishing a classic Bluetooth connection between dual-mode Bluetooth Bluetooth devices, and a dual-mode Bluetooth device, to simplify a procedure of establishing a classic Bluetooth connection, and improve user experience.
  • According to a first aspect, a method for establishing a classic Bluetooth connection between dual-mode Bluetooth Bluetooth devices is provided, including: receiving, by a first dual-mode Bluetooth device, a Bluetooth low energy BLE advertising packet sent by a second dual-mode Bluetooth device, where the BLE advertising packet includes attribute information of classic Bluetooth of the second dual-mode Bluetooth device; determining, by the first dual-mode Bluetooth device, a status of the classic Bluetooth of the second dual-mode Bluetooth device according to the attribute information; and prompting, by the first dual-mode Bluetooth device according to the status of the classic Bluetooth of the second dual-mode Bluetooth device, a user to operate the first dual-mode Bluetooth device or the second dual-mode Bluetooth device, so as to establish a classic Bluetooth connection between the first dual-mode Bluetooth device and the second dual-mode Bluetooth device.
  • In this embodiment of the present invention, a dual-mode Bluetooth device may determine a status of classic Bluetooth of another dual-mode Bluetooth device according to attribute information that is of the classic Bluetooth and that is obtained from a BLE advertising packet, and instruct, according to the status of the classic Bluetooth, a user to perform a corresponding operation to establish a classic Bluetooth connection between the dual-mode Bluetooth devices. That is, for the classic Bluetooth in different states, the user can establish the classic Bluetooth connection only by performing a corresponding operation according to a prompt of the dual-mode Bluetooth device, so that a procedure of establishing a classic Bluetooth connection is simplified, and user experience is improved.
  • With reference to the first aspect, in a first implementation of the first aspect, the attribute information includes a Bluetooth address of a peer device to which the classic Bluetooth of the second dual-mode Bluetooth device was connected last time, and the determining, by the first dual-mode Bluetooth device, a status of the classic Bluetooth of the second dual-mode Bluetooth device according to the attribute information includes: determining, by the first dual-mode Bluetooth device according to a relationship between a Bluetooth address of the first dual-mode Bluetooth device and the Bluetooth address of the peer device, whether the classic Bluetooth of the second dual-mode Bluetooth device can establish the classic Bluetooth connection to the first dual-mode Bluetooth device currently; and the prompting, by the first dual-mode Bluetooth device according to the status of the classic Bluetooth, a user to operate the first dual-mode Bluetooth device or the second dual-mode Bluetooth device includes: if the classic Bluetooth of the second dual-mode Bluetooth device cannot establish the classic Bluetooth connection to the first dual-mode Bluetooth device currently, prompting, by the first dual-mode Bluetooth device, the user to perform factory reset on the second dual-mode Bluetooth device.
  • If the classic Bluetooth of the second dual-mode Bluetooth device cannot establish the classic Bluetooth connection to the first dual-mode Bluetooth device currently, the first dual-mode Bluetooth device may directly prompt the user to operate the second dual-mode Bluetooth device to restore the second dual-mode Bluetooth device to a factory setting, so as to establish the classic Bluetooth connection between the two dual-mode Bluetooth devices.
  • With reference to the first aspect or the first implementation of the first aspect, in a second implementation of the first aspect, the attribute information includes an enabling status of the classic Bluetooth of the second dual-mode Bluetooth device, and the prompting, by the first dual-mode Bluetooth device according to the status of the classic Bluetooth of the second dual-mode Bluetooth device, a user to operate the first dual-mode Bluetooth device or the second dual-mode Bluetooth device includes: if the classic Bluetooth of the second dual-mode Bluetooth device is disabled, prompting, by the first dual-mode Bluetooth device, the user to enable the classic Bluetooth of the second dual-mode Bluetooth device.
  • If the classic Bluetooth of the second dual-mode Bluetooth device is disabled, the classic Bluetooth of the second dual-mode Bluetooth device may be conveniently and simply enabled by prompting the user, and then the classic Bluetooth connection between the two dual-mode Bluetooth devices can be established more conveniently.
  • With reference to the first aspect or the first implementation of the first aspect, in a third implementation of the first aspect, the attribute information includes a searchable status of the classic Bluetooth of the second dual-mode Bluetooth device, and the prompting, by the first dual-mode Bluetooth device according to the status of the classic Bluetooth of the second dual-mode Bluetooth device, a user to operate the first dual-mode Bluetooth device or the second dual-mode Bluetooth device includes: if the classic Bluetooth of the second dual-mode Bluetooth device cannot be searched for, prompting, by the first dual-mode Bluetooth device, the user to set the classic Bluetooth of the second dual-mode Bluetooth device to a searchable state.
  • When the classic Bluetooth of the second dual-mode Bluetooth device cannot be searched for, the classic Bluetooth of the second dual-mode Bluetooth device is set to a searchable state by prompting the user to operate the second dual-mode Bluetooth device, and then the classic Bluetooth connection between the two dual-mode Bluetooth devices can be established more conveniently.
  • With reference to the first aspect or the first implementation of the first aspect, in a fourth implementation of the first aspect, the attribute information includes a connectable status of the classic Bluetooth of the second dual-mode Bluetooth device, and the prompting, by the first dual-mode Bluetooth device according to the status of the classic Bluetooth of the second dual-mode Bluetooth device, a user to operate the first dual-mode Bluetooth device or the second dual-mode Bluetooth device includes: if the classic Bluetooth of the second dual-mode Bluetooth device cannot be connected, prompting, by the first dual-mode Bluetooth device, the user to set the classic Bluetooth of the second dual-mode Bluetooth device to a connectable state.
  • When the classic Bluetooth of the second dual-mode Bluetooth device cannot be connected, the classic Bluetooth of the second dual-mode Bluetooth device is set to a connectable state by prompting the user to operate the second dual-mode Bluetooth device, and then the classic Bluetooth connection between the two dual-mode Bluetooth devices can be established more conveniently.
  • With reference to any one of the first aspect, or the first to the fourth implementations of the first aspect, in a fifth implementation of the first aspect, the attribute information further includes application program information of the classic Bluetooth of the second dual-mode Bluetooth device, and the method further includes: determining, by the first dual-mode Bluetooth device according to the application program information, an application program corresponding to the classic Bluetooth of the second dual-mode Bluetooth device, where the application program is used to establish the classic Bluetooth connection between the first dual-mode Bluetooth device and the second dual-mode Bluetooth device; and prompting, by the first dual-mode Bluetooth device on an operation interface of the first dual-mode Bluetooth device, the user to open the application program corresponding to the second dual-mode Bluetooth device.
  • The user is prompted to open the corresponding application program, so that the user can be conveniently prompted to quickly establish the classic Bluetooth connection between the two dual-mode Bluetooth devices.
  • With reference to the fifth implementation of the first aspect, in a sixth implementation of the first aspect, the application program corresponding to the classic Bluetooth of the second dual-mode Bluetooth device is not installed in the first dual-mode Bluetooth device, and before the prompting, by the first dual-mode Bluetooth device on an operation interface of the first dual-mode Bluetooth device, the user to open the application program corresponding to the classic Bluetooth of the second dual-mode Bluetooth device, the method further includes: prompting, by the first dual-mode Bluetooth device, the user to download and install the application program corresponding to the classic Bluetooth of the second dual-mode Bluetooth device.
  • The user is prompted to download and install the corresponding application program, so that the user can quickly find the corresponding application program if the application program does not exist. In this way, a time period required for establishing the classic Bluetooth connection between the two dual-mode Bluetooth devices is shortened.
  • With reference to any one of the first aspect, or the first to the sixth implementations of the first aspect, in a seventh implementation of the first aspect, the method further includes: sending, by the first dual-mode Bluetooth device, another BLE advertising packet to another Bluetooth device, where the another BLE advertising packet includes attribute information of classic Bluetooth of the first dual-mode Bluetooth device.
  • The first dual-mode Bluetooth device sends the BLE advertising packet to a surrounding Bluetooth device, so that the surrounding Bluetooth device can learn of a status of the classic Bluetooth of the first dual-mode Bluetooth device. This facilitates establishment of a classic Bluetooth connection between the first dual-mode Bluetooth device and another dual-mode Bluetooth device.
  • According to a second aspect, a method for connecting dual-mode Bluetooth devices is provided, including: generating, by a dual-mode Bluetooth device, a BLE advertising packet, where the BLE advertising packet includes attribute information of classic Bluetooth of the dual-mode Bluetooth device; and sending, by the dual-mode Bluetooth device, the BLE advertising packet, where the attribute information is used by another Bluetooth device to determine a status of the classic Bluetooth of the dual-mode Bluetooth device, so as to establish a classic Bluetooth connection between the dual-mode Bluetooth device and the another Bluetooth device.
  • In this embodiment of the present invention, the dual-mode Bluetooth device generates the BLE advertising packet including the attribute information of the classic Bluetooth of the dual-mode Bluetooth device, and sends the BLE advertising packet to a surrounding Bluetooth device by using Bluetooth low energy. In this way, the surrounding Bluetooth device may determine the status of the classic Bluetooth of the dual-mode Bluetooth device according to the attribute information of the classic Bluetooth of the dual-mode Bluetooth device, and then instruct a user to perform a corresponding operation to establish a classic Bluetooth connection between the dual-mode Bluetooth devices. That is, for the classic Bluetooth in different states, the user can establish the classic Bluetooth connection only by performing a corresponding operation according to a prompt of the dual-mode Bluetooth device, so that a procedure of establishing a classic Bluetooth connection is simplified, and user experience is improved.
  • With reference to the second aspect, in a first implementation of the second aspect, the attribute information includes a Bluetooth address of a peer device to which the classic Bluetooth of the dual-mode Bluetooth device was connected last time.
  • With reference to the second aspect or the first implementation of the second aspect, in a second implementation of the second aspect, the attribute information includes an enabling status of the classic Bluetooth of the dual-mode Bluetooth device.
  • With reference to any one of the second aspect, or the first to the second implementations of the second aspect, in a third implementation of the second aspect, the attribute information includes a searchable status of the classic Bluetooth of the dual-mode Bluetooth device.
  • With reference to any one of the second aspect, or the first to the third implementations of the second aspect, in a fourth implementation of the second aspect, the attribute information includes a connectable status of the classic Bluetooth of the dual-mode Bluetooth device.
  • With reference to any one of the second aspect, or the first to the fourth implementations of the second aspect, in a fifth implementation of the second aspect, the attribute information further includes application program information of the classic Bluetooth of the dual-mode Bluetooth device.
  • According to a third aspect, a dual-mode Bluetooth device is provided, the dual-mode Bluetooth device includes a Bluetooth low energy module, a classic Bluetooth module, and a processing module, and the Bluetooth low energy module, the classic Bluetooth module, and the processing module of the dual-mode Bluetooth device are configured to perform the method in the first aspect.
  • In this embodiment of the present invention, the dual-mode Bluetooth device may determine a status of classic Bluetooth of another dual-mode Bluetooth device according to attribute information that is of the classic Bluetooth and that is obtained from a BLE advertising packet, and instruct, according to the status of the classic Bluetooth, a user to perform a corresponding operation to establish a classic Bluetooth connection between the dual-mode Bluetooth devices. That is, for the classic Bluetooth in different states, the user can establish the classic Bluetooth connection only by performing a corresponding operation according to a prompt of the dual-mode Bluetooth device, so that a procedure of establishing a classic Bluetooth connection is simplified, and user experience is improved.
  • According to a fourth aspect, a dual-mode Bluetooth device is provided, the dual-mode Bluetooth device includes a classic Bluetooth module, a Bluetooth low energy module, and a control module, and the classic Bluetooth module, the Bluetooth low energy module, and the control module of the dual-mode Bluetooth device are configured to perform the method in the second aspect.
  • In this embodiment of the present invention, the dual-mode Bluetooth device generates a BLE advertising packet including attribute information of classic Bluetooth of the dual-mode Bluetooth device, and sends the BLE advertising packet to a surrounding Bluetooth device by using Bluetooth low energy. In this way, the surrounding Bluetooth device may determine a status of the classic Bluetooth of the dual-mode Bluetooth device according to the attribute information of the classic Bluetooth of the dual-mode Bluetooth device, and then instruct a user to perform a corresponding operation to establish a classic Bluetooth connection between the dual-mode Bluetooth devices. That is, for the classic Bluetooth in different states, the user can establish the classic Bluetooth connection only by performing a corresponding operation according to a prompt of the dual-mode Bluetooth device, so that a procedure of establishing a classic Bluetooth connection is simplified, and user experience is improved.
  • According to a fifth aspect, a dual-mode Bluetooth device is provided, and the dual-mode Bluetooth device includes: a transceiver, configured to receive a Bluetooth low energy BLE advertising packet sent by another dual-mode Bluetooth device, where the BLE advertising packet includes attribute information of classic Bluetooth of the another dual-mode Bluetooth device; and a processor, configured to determine a status of the classic Bluetooth of the another dual-mode Bluetooth device according to the attribute information, where the processor is further configured to prompt, according to the status of the classic Bluetooth of the another dual-mode Bluetooth device, a user to operate the dual-mode Bluetooth device or the another dual-mode Bluetooth device, so as to establish a classic Bluetooth connection between the dual-mode Bluetooth device and the another dual-mode Bluetooth device.
  • In this embodiment of the present invention, the dual-mode Bluetooth device may determine the status of the classic Bluetooth of the another dual-mode Bluetooth device according to the attribute information that is of the classic Bluetooth and that is obtained from the BLE advertising packet, and instruct, according to the status of the classic Bluetooth, the user to perform a corresponding operation to establish the classic Bluetooth connection between the dual-mode Bluetooth devices. That is, for the classic Bluetooth in different states, the user can establish the classic Bluetooth connection only by performing a corresponding operation according to a prompt of the dual-mode Bluetooth device, so that a procedure of establishing a classic Bluetooth connection is simplified, and user experience is improved.
  • With reference to the fifth aspect, in a first implementation of the fifth aspect, the attribute information includes a Bluetooth address of a peer device to which the classic Bluetooth of the another dual-mode Bluetooth device was connected last time, and the processor is specifically configured to: determine, according to a relationship between a Bluetooth address of the dual-mode Bluetooth device and the Bluetooth address of the peer device, whether the classic Bluetooth of the another dual-mode Bluetooth device can establish the classic Bluetooth connection to the dual-mode Bluetooth device currently; and if the classic Bluetooth of the another dual-mode Bluetooth device cannot establish the classic Bluetooth connection to the dual-mode Bluetooth device currently, prompt the user to perform factory reset on the another dual-mode Bluetooth device.
  • With reference to the fifth aspect or the first implementation of the fifth aspect, in a second implementation of the fifth aspect, the attribute information includes an enabling status of the classic Bluetooth of the another dual-mode Bluetooth device, and the processor is specifically configured to: if the classic Bluetooth of the another dual-mode Bluetooth device is disabled, prompt the user to enable the classic Bluetooth of the another dual-mode Bluetooth device.
  • With reference to the fifth aspect or the first implementation of the fifth aspect, in a third implementation of the fifth aspect, the attribute information includes a searchable status of the classic Bluetooth of the another dual-mode Bluetooth device, and the processor is specifically configured to: if the classic Bluetooth of the another dual-mode Bluetooth device cannot be searched for, prompt the user to set the classic Bluetooth of the another dual-mode Bluetooth device to a searchable state.
  • With reference to the fifth aspect or the first implementation of the fifth aspect, in a fourth implementation of the fifth aspect, the attribute information includes a connectable status of the classic Bluetooth of the another dual-mode Bluetooth device, and the processor is specifically configured to: if the classic Bluetooth of the another dual-mode Bluetooth device cannot be connected, prompt the user to set the classic Bluetooth of the another dual-mode Bluetooth device to a connectable state.
  • With reference to any one of the fifth aspect, or the first to the fourth implementations of the fifth aspect, in a fifth implementation of the fifth aspect, the attribute information further includes application program information of classic Bluetooth of a second dual-mode Bluetooth device, and the processor is further configured to: determine, according to the application program information, an application program corresponding to the classic Bluetooth of the another dual-mode Bluetooth device, where the application program is used to connect the dual-mode Bluetooth device to the another dual-mode Bluetooth device; and prompt, on an operation interface of the dual-mode Bluetooth device, the user to open the application program corresponding to the classic Bluetooth of the another dual-mode Bluetooth device.
  • With reference to the fifth implementation of the fifth aspect, in a sixth implementation of the fifth aspect, the application program corresponding to the classic Bluetooth of the another dual-mode Bluetooth device is not installed in the dual-mode Bluetooth device, and before the processor prompts, on the operation interface of the dual-mode Bluetooth device, the user to open the application program corresponding to the classic Bluetooth of the another dual-mode Bluetooth device, the processor is further configured to prompt the user to download and install the application program corresponding to the classic Bluetooth of the another dual-mode Bluetooth device.
  • With reference to any one of the fifth aspect, or the first to the sixth implementations of the fifth aspect, in a seventh implementation of the fifth aspect, the transceiver is further configured to send another BLE advertising packet to another Bluetooth device, and the another BLE advertising packet includes attribute information of classic Bluetooth of the dual-mode Bluetooth device.
  • According to a sixth aspect, a dual-mode Bluetooth device is provided, the dual-mode Bluetooth device includes a processor and a transceiver, and the transceiver and the processor are configured to perform the method in the second aspect.
  • In this embodiment of the present invention, the dual-mode Bluetooth device generates a BLE advertising packet including attribute information of classic Bluetooth of the dual-mode Bluetooth device, and sends the BLE advertising packet to a surrounding Bluetooth device by using Bluetooth low energy. In this way, the surrounding Bluetooth device may determine a status of the classic Bluetooth of the dual-mode Bluetooth device according to the attribute information of the classic Bluetooth of the dual-mode Bluetooth device, and then instruct a user to perform a corresponding operation to establish a classic Bluetooth connection between the dual-mode Bluetooth devices. That is, for the classic Bluetooth in different states, the user can establish the classic Bluetooth connection only by performing a corresponding operation according to a prompt of the dual-mode Bluetooth device, so that a procedure of establishing a classic Bluetooth connection is simplified, and user experience is improved.
  • According to a seventh aspect, a Bluetooth communications system is provided, and the Bluetooth communications system includes the dual-mode Bluetooth device in the third aspect and the dual-mode Bluetooth device in the fourth aspect.
  • In this embodiment of the present invention, a dual-mode Bluetooth device generates a BLE advertising packet including attribute information of classic Bluetooth of the dual-mode Bluetooth device, and sends the BLE advertising packet to a surrounding Bluetooth device by using Bluetooth low energy. In this way, another surrounding dual-mode Bluetooth device may determine a status of the classic Bluetooth of the dual-mode Bluetooth device according to the attribute information of the classic Bluetooth of the dual-mode Bluetooth device, and then instruct a user to perform a corresponding operation to establish a classic Bluetooth connection between the dual-mode Bluetooth devices. That is, for the classic Bluetooth in different states, the user can establish the classic Bluetooth connection only by performing a corresponding operation according to a prompt of the another dual-mode Bluetooth device, so that a procedure of establishing a classic Bluetooth connection is simplified, and user experience is improved.
  • According to an eighth aspect, a Bluetooth communications system is provided, and the Bluetooth communications system includes the dual-mode Bluetooth device in the fifth aspect and the dual-mode Bluetooth device in the sixth aspect.
  • In this embodiment of the present invention, a dual-mode Bluetooth device generates a BLE advertising packet including attribute information of classic Bluetooth of the dual-mode Bluetooth device, and sends the BLE advertising packet to a surrounding Bluetooth device by using Bluetooth low energy. In this way, another surrounding dual-mode Bluetooth device may determine a status of the classic Bluetooth of the dual-mode Bluetooth device according to the attribute information of the classic Bluetooth of the dual-mode Bluetooth device, and then instruct a user to perform a corresponding operation to establish a classic Bluetooth connection between the dual-mode Bluetooth devices. That is, for the classic Bluetooth in different states, the user can establish the classic Bluetooth connection only by performing a corresponding operation according to a prompt of the another dual-mode Bluetooth device, so that a procedure of establishing a classic Bluetooth connection is simplified, and user experience is improved.
  • In this application, the dual-mode Bluetooth device may determine the status of the classic Bluetooth of the another dual-mode Bluetooth device according to the attribute information that is of the classic Bluetooth and that is obtained from the BLE advertising packet, and instruct, according to the status of the classic Bluetooth, the user to perform a corresponding operation to establish the classic Bluetooth connection between the dual-mode Bluetooth devices. That is, for the classic Bluetooth in different states, the user can establish the classic Bluetooth connection only by performing a corresponding operation according to a prompt of the dual-mode Bluetooth device, so that a procedure of establishing a classic Bluetooth connection is simplified, and user experience is improved.
  • BRIEF DESCRIPTION OF DRAWINGS
  • To describe the technical solutions in the embodiments of the present invention more clearly, the following briefly describes the accompanying drawings required for describing the embodiments of the present invention. Apparently, the accompanying drawings in the following description show merely some embodiments of the present invention, and a person of ordinary skill in the art may still derive other drawings from these accompanying drawings without creative efforts.
  • FIG. 1 is a schematic flowchart of a method for establishing a classic Bluetooth connection between dual-mode Bluetooth Bluetooth devices according to an embodiment of the present invention;
  • FIG. 2 is a structural diagram of a BLE packet;
  • FIG. 3 is a structural diagram of a BLE advertising packet;
  • FIG. 4A and FIG. 4B are a schematic flowchart of a method for establishing a classic Bluetooth connection between dual-mode Bluetooth Bluetooth devices according to an embodiment of the present invention:
  • FIG. 5 is a schematic flowchart of a method for establishing a classic Bluetooth connection between dual-mode Bluetooth Bluetooth devices according to an embodiment of the present invention;
  • FIG. 6 is a schematic flowchart of a method for establishing a classic Bluetooth connection between dual-mode Bluetooth Bluetooth devices according to an embodiment of the present invention:
  • FIG. 7 is a schematic block diagram of a dual-mode Bluetooth device according to an embodiment of the present invention;
  • FIG. 8 is a schematic block diagram of a dual-mode Bluetooth device according to an embodiment of the present invention; and
  • FIG. 9 is a schematic block diagram of a dual-mode Bluetooth device according to an embodiment of the present invention.
  • DESCRIPTION OF EMBODIMENTS
  • The following clearly and completely describes the technical solutions in the embodiments of the present invention with reference to the accompanying drawings in the embodiments of the present invention. Apparently, the described embodiments are some rather than all of the embodiments of the present invention. All other embodiments obtained by a person of ordinary skill in the art based on the embodiments of the present invention without creative efforts shall fall within the protection scope of the present invention.
  • Bluetooth in the embodiments of the present invention is a wireless communications standard for short-range data exchange, and may include classic Bluetooth and BLE The classic Bluetooth may also be referred to as conventional Bluetooth or standard Bluetooth. The classic Bluetooth is developed and improved based on Bluetooth in previous Bluetooth specification protocol versions 1.0, 1.2, 2.0+EDR, 2.1+EDR, 3.0+HS, and the like, and is a name generally called after the BLE appears. Compared with the BLE, currently, the classic Bluetooth is more appropriate for transmission with a relatively large amount of data, for example, voice transmission or music transmission. The BLE may also be referred to as Bluetooth Smart or the like, is developed based on the Wibree standard of Nokia. and is originally introduced in the Bluetooth specification protocol version 4.0. The BLE, as the name indicates, consumes extremely low power, and power consumption is 1/10 or less of that of the classic Bluetooth. The BLE is characterized by a short packet, high-efficiency coding, a short connection establishment time period, and the like. For related description of the Bluetooth, refer to related content in Wikipedia at https://en.wikipedia.org/wiki/Bluetooth, and a last visit time is Jun. 25, 2016.
  • A dual-mode Bluetooth device mentioned in the present invention is a terminal device that supports both a BLE connection and a classic Bluetooth connection. The dual-mode Bluetooth device may be specifically a mobile phone, a watch, a wristband, a tablet, a point of sale (Point of Sales, POS) terminal, an in-vehicle computer, or the like. This is not specifically limited in the embodiments of the present invention.
  • A Bluetooth low energy connection or a classic Bluetooth connection may be established between dual-mode Bluetooth devices, or both a Bluetooth low energy connection and a classic Bluetooth connection may be established between dual-mode Bluetooth devices. For example, when only a small amount of data needs to be transmitted between a mobile phone and a wristband, only a Bluetooth low energy connection may be established between the mobile phone and the wristband. However, when a large amount of data needs to be transmitted between the mobile phone and the wristband, a classic Bluetooth connection needs to be established between the mobile phone and the wristband. Generally, power consumption of the classic Bluetooth is far higher than power consumption of the Bluetooth low energy. Therefore, when a dual-mode Bluetooth device does not use classic Bluetooth to transmit data, the dual-mode Bluetooth device may disable the classic Bluetooth or set the classic Bluetooth to a sleep state, add attribute information of the classic Bluetooth to a BLE advertising packet, and send the BLE advertising packet to a surrounding Bluetooth device by using Bluetooth low energy. In this way, information related to the classic Bluetooth may be sent to the surrounding Bluetooth device by using the Bluetooth low energy. After receiving the BLE advertising packet, the surrounding Bluetooth device may determine a status of the classic Bluetooth of the Bluetooth device according to the attribute information, and may prompt a user to perform a series of operations to establish a classic Bluetooth connection between the dual-mode Bluetooth device and the surrounding Bluetooth device. In this way, regardless of the status of the classic Bluetooth of the dual-mode Bluetooth device, the surrounding Bluetooth device may learn of the status of the classic Bluetooth of the dual-mode Bluetooth device according to the BLE packet sent by using the Bluetooth low energy, and then establish the classic Bluetooth connection between the dual-mode Bluetooth device and the surrounding Bluetooth device. A method for connecting dual-mode Bluetooth devices in an embodiment of the present invention is described below in detail with reference to FIG. 1 to FIG. 6.
  • FIG. 1 is a schematic flowchart of a method for establishing a classic Bluetooth connection between dual-mode Bluetooth Bluetooth devices according to an embodiment of the present invention. Specific steps of the method are as follows:
  • 110. A first dual-mode Bluetooth device receives a BLE advertising packet sent by a second dual-mode Bluetooth device, where the BLE advertising packet includes attribute information of classic Bluetooth of the second dual-mode Bluetooth device.
  • It should be understood that the first dual-mode Bluetooth device and the second dual-mode Bluetooth device are two different Bluetooth devices. Preferably, the first dual-mode Bluetooth device may be a smartphone, and the second dual-mode Bluetooth device may be a wearable device such as a smart band or a smartwatch.
  • The second dual-mode Bluetooth device may continuously transmit the BLE advertising packet to a surrounding Bluetooth device, or may transmit the BLE advertising packet to a surrounding Bluetooth device after the second dual-mode Bluetooth device is disconnected from classic Bluetooth of another Bluetooth device. When a distance between the first dual-mode Bluetooth device and the second dual-mode Bluetooth device is in a specific range, the first dual-mode Bluetooth device may receive the BLE advertising packet of the second dual-mode Bluetooth device. The attribute information in the BLE advertising packet may specifically include a status of a connection between another Bluetooth device and the classic Bluetooth of the second dual-mode Bluetooth device, information indicating whether the classic Bluetooth of the second dual-mode Bluetooth device is enabled, information indicating whether the classic Bluetooth of the second dual-mode Bluetooth device can be found by the another Bluetooth device, information indicating whether the classic Bluetooth of the second dual-mode Bluetooth device can be connected to the another Bluetooth device, and the like. It should be understood that the second dual-mode Bluetooth device may encrypt information carried in the BLE advertising packet. In this way, after receiving the BLE advertising packet, the another Bluetooth device needs to decrypt the carried information to read corresponding information, so that information transmission security is improved.
  • In addition, power consumption of Bluetooth low energy is extremely low, but power consumption of the classic Bluetooth is relatively high. Therefore, when the classic Bluetooth does not need to work, the classic Bluetooth may be first disabled, and the attribute information of the classic Bluetooth is sent by using the Bluetooth low energy. In this way, the attribute information of the classic Bluetooth may be sent to the surrounding Bluetooth device without enabling the classic Bluetooth, and power consumption may be further reduced.
  • It should be understood that the second dual-mode Bluetooth device herein may establish classic Bluetooth connections to multiple Bluetooth devices, or may establish a classic Bluetooth connection to only one single Bluetooth device. Certainly, during implementation, in consideration of data security or the like of the second dual-mode Bluetooth device, the second dual-mode Bluetooth device may be set to a state in which the second dual-mode Bluetooth device can establish a classic Bluetooth connection to only one single Bluetooth device. When the second dual-mode Bluetooth device needs to establish a classic Bluetooth connection to another Bluetooth device, the second dual-mode Bluetooth device first needs to release a classic Bluetooth connection to a current Bluetooth device, and then the second dual-mode Bluetooth device can establish the classic Bluetooth connection to the another Bluetooth device.
  • 120. The first dual-mode Bluetooth device determines a status of the classic Bluetooth of the second dual-mode Bluetooth device according to the attribute information.
  • The status of the classic Bluetooth of the second dual-mode Bluetooth device includes a status of a connection between another Bluetooth device and the classic Bluetooth of the second dual-mode Bluetooth device, information indicating whether the classic Bluetooth of the second dual-mode Bluetooth device is enabled, a searchable status of the classic Bluetooth of the second dual-mode Bluetooth device, and a connectable status of the classic Bluetooth of the second dual-mode Bluetooth device.
  • The status of the connection between the another Bluetooth device and the classic Bluetooth of the second dual-mode Bluetooth device includes: the classic Bluetooth of the second dual-mode Bluetooth device has been previously connected to the another Bluetooth device, but is currently disconnected from the another Bluetooth device; or the classic Bluetooth of the second dual-mode Bluetooth device is currently being connected to the another Bluetooth device. The searchable status of the classic Bluetooth of the second dual-mode Bluetooth device indicates whether the classic Bluetooth of the second dual-mode Bluetooth device is in a searchable state. When the classic Bluetooth of the second dual-mode Bluetooth device is in a searchable state, a surrounding Bluetooth device can find the classic Bluetooth of the second dual-mode Bluetooth device; or when the classic Bluetooth of the second dual-mode Bluetooth device is in a non-searchable state, the surrounding Bluetooth device cannot find the classic Bluetooth of the second dual-mode Bluetooth device. The connectable status of the classic Bluetooth of the second dual-mode Bluetooth device indicates whether the classic Bluetooth of the second dual-mode Bluetooth device can be connected to the surrounding Bluetooth device. When the classic Bluetooth of the second dual-mode Bluetooth device is in a connectable state, the surrounding Bluetooth device can establish a classic Bluetooth connection to the second dual-mode Bluetooth device; or when the classic Bluetooth of the second dual-mode Bluetooth device is in a non-connectable state, the surrounding Bluetooth device cannot establish a classic Bluetooth connection to the second dual-mode Bluetooth device.
  • Specifically, for example, during implementation, whether the classic Bluetooth of the second dual-mode Bluetooth device is in an inquiry scan state may be used to indicate whether the classic Bluetooth of the second dual-mode Bluetooth device is in a searchable state, and whether the classic Bluetooth of the second dual-mode Bluetooth device is in a page scan state may be used to indicate whether the classic Bluetooth of the second dual-mode Bluetooth device is in a connectable state. When the classic Bluetooth of the second dual-mode Bluetooth device is in an inquiry scan state, it may be considered that the classic Bluetooth of the second dual-mode Bluetooth device is in a searchable state. When the classic Bluetooth of the second dual-mode Bluetooth device is in a page scan state, it may be considered that the classic Bluetooth of the second dual-mode Bluetooth device is in a connectable state. It should be understood that, whether the classic Bluetooth of the second dual-mode Bluetooth device is in an inquiry scan state or a page scan state may be controlled by using a corresponding option switch. When the corresponding option switch is enabled, the classic Bluetooth of the second dual-mode Bluetooth device is in an inquiry scan state or a page scan state. When the corresponding option switch is disabled, the classic Bluetooth of the second dual-mode Bluetooth device is not in an inquiry scan state or a page scan state. In addition, when the Bluetooth device is in an inquiry state, the Bluetooth device may search for the surrounding Bluetooth device. When the Bluetooth device is in a page state, the Bluetooth device may initiate a connection request to the surrounding Bluetooth device.
  • 130. The first dual-mode Bluetooth device prompts, according to the status of the classic Bluetooth of the second dual-mode Bluetooth device, a user to operate the first dual-mode Bluetooth device or the second dual-mode Bluetooth device, so as to establish a classic Bluetooth connection between the first dual-mode Bluetooth device and the second dual-mode Bluetooth device.
  • When the second dual-mode Bluetooth device is in a different state, the user needs to operate the second dual-mode Bluetooth device or the first dual-mode Bluetooth device, or needs to operate both the first dual-mode Bluetooth device and the second dual-mode Bluetooth device, so as to establish the classic Bluetooth connection between the first Bluetooth device and the second dual-mode Bluetooth device.
  • In this embodiment of the present invention, a dual-mode Bluetooth device may determine a status of classic Bluetooth of another dual-mode Bluetooth device according to attribute information that is of the classic Bluetooth and that is obtained from a BLE advertising packet, and instruct, according to the status of the classic Bluetooth, a user to perform a corresponding operation to establish a classic Bluetooth connection between the dual-mode Bluetooth devices. That is, for the classic Bluetooth in different states, the user can establish the classic Bluetooth connection only by performing a corresponding operation according to a prompt of the dual-mode Bluetooth device, so that a procedure of establishing a classic Bluetooth connection is simplified, and user experience is improved.
  • Optionally, the BLE advertising packet sent by the second dual-mode Bluetooth device may be specifically an advertising packet in a BLE packet. A structure of the BLE packet is shown in FIG. 2. The BLE packet includes a preamble, an access address, a header, a length, data, and a verification field. Two types of packets: an advertising packet and a data packet, are defined in the Bluetooth low energy specification. Generally, a Bluetooth device may send an advertising packet to a surrounding Bluetooth device. The surrounding Bluetooth device can receive the advertising packet provided that the surrounding Bluetooth device is in an enabled state and is in a specific distance range. A data packet is generally used to transmit data after a connection is established between Bluetooth devices. A difference between the advertising packet and the data packet is that the advertising packet may be used to send data to multiple surrounding listening devices by means of advertising, but the data packet can be understood only by two connected devices. Whether a packet sent by a Bluetooth device is an advertising packet or a data packet depends on a channel for sending the packet. Three advertising channels and 37 data channels are specified in the Bluetooth low energy. If a packet is transmitted on an advertising channel, the packet is an advertising packet. If a packet is transmitted on a data channel, the packet is a data packet.
  • It should be understood that the BLE advertising packet in this embodiment of the present invention may be an advertising packet sent by the second dual-mode Bluetooth device on an advertising channel, and a structure of the advertising packet may be shown in FIG. 3. A header of the packet includes a type of the advertising packet and some flag bits. In addition, there are multiple types of advertising packets, each type of advertising packet is corresponding to different packet data, and a meaning indicated by each packet type is as follows:
  • ADV_IND: universal advertising indication:
  • ADV_DIRECT_IND: directed connection indication;
  • ADV_NONCONN_IND: non-connectable indication;
  • NONCONN_IND: scannable indication;
  • SCAN_REQ: active scanning request;
  • SCAN_RSP: active scanning response: and
  • CONNECT_REQ: connection request.
  • When the packet is of the ADV_IND, ADV_DIRECT_IND, ADV_NONCONN_IND, or NONCONN_IND type, it means that a Bluetooth device within a transmission range of a sending device may receive an advertising packet. In the existing Bluetooth low energy specification, an advertising packet carries only data related to Bluetooth low energy. However, in this embodiment of the present invention, the attribute information of the classic Bluetooth is carried by using a reserved field in a data field in an existing advertising packet, an idle field and an extensible field in another field, and a user-defined field reserved in a vendor field, so that the BLE advertising packet can not only carry the data and information related to the Bluetooth low energy, but also carry data or information related to the classic Bluetooth. In this way, the Bluetooth device within the transmission range can obtain, by using the BLE advertising packet, the data or the information related to the classic Bluetooth of the Bluetooth device, and power consumption can be reduced by sending the BLE advertising packet.
  • During specific implementation, classic Bluetooth of a dual-mode Bluetooth device may establish connections to multiple Bluetooth devices. However, in consideration of security and privacy, or due to a resource limitation, some vendors set the classic Bluetooth of the dual-mode Bluetooth device to a state in which the classic Bluetooth can be connected to only one Bluetooth device. When the classic Bluetooth of the dual-mode Bluetooth device needs to establish a connection to another Bluetooth device, a classic Bluetooth connection established between the dual-mode Bluetooth device and a previous Bluetooth device needs to be first released, and the dual-mode Bluetooth device needs to restore to a factory setting, so as to establish the classic Bluetooth connection to the another Bluetooth device.
  • Optionally, when the attribute information includes a Bluetooth address of a peer device to which the classic Bluetooth of the second dual-mode Bluetooth device was connected last time, after receiving the BLE advertising packet, the first dual-mode Bluetooth device may obtain, from the attribute information in the BLE advertising packet, the Bluetooth address of the peer device to which the classic Bluetooth of the second dual-mode Bluetooth device was connected last time, and compare the Bluetooth address of the peer device with a Bluetooth address of the first dual-mode Bluetooth device, to determine the status of the classic Bluetooth of the second dual-mode Bluetooth device. When the Bluetooth address of the peer device is different from the Bluetooth address of the first dual-mode Bluetooth device, it indicates that the classic Bluetooth of the second dual-mode Bluetooth device was connected to a Bluetooth device last time other than the first dual-mode Bluetooth device. In this case the first dual-mode Bluetooth device prompts the user to perform factory reset on the second dual-mode Bluetooth device. Specifically, when the classic Bluetooth of the second dual-mode Bluetooth device has been previously connected to another Bluetooth device, but is currently disconnected from the another Bluetooth device, the user may directly perform factory reset on the second dual-mode Bluetooth device. However, when the classic Bluetooth of the second dual-mode Bluetooth device is currently being connected to the another Bluetooth device, the first dual-mode Bluetooth device prompts the user to first release a classic Bluetooth connection between the second dual-mode Bluetooth device and the another Bluetooth device, and then perform factory reset on the second dual-mode Bluetooth device.
  • It should be understood that, the factory reset herein may indicate that the factory reset is performed on both classic Bluetooth and Bluetooth low energy of a dual-mode Bluetooth device, or may indicate that the factory reset is performed only on classic Bluetooth of a dual-mode Bluetooth device. Specifically, the factory reset may include: deleting sensitive information of a previous user, emptying setting information of the classic Bluetooth, or resetting setting information of the classic Bluetooth.
  • When the Bluetooth address of the peer device is the same as the Bluetooth device of the first dual-mode Bluetooth device, it indicates that the classic Bluetooth of the second dual-mode Bluetooth device was connected to the first dual-mode Bluetooth device last time, that is, the two Bluetooth devices have been connected, and the second dual-mode Bluetooth device can be found in a list of paired devices of the first dual-mode Bluetooth device. In this case, the first dual-mode Bluetooth device prompts the user to tap to select the second dual-mode Bluetooth device that is to be connected. Then, a classic Bluetooth device connection procedure and interface comes, and the user can establish the classic Bluetooth connection between the first dual-mode Bluetooth device and the second dual-mode Bluetooth device only by following a corresponding prompt.
  • Optionally, when the attribute information includes an enabling status of the classic Bluetooth of the second dual-mode Bluetooth device, the first dual-mode Bluetooth device may determine, according to the attribute information, whether the classic Bluetooth of the second dual-mode Bluetooth device is enabled or disabled. When the classic Bluetooth of the second dual-mode Bluetooth device is disabled, the first dual-mode Bluetooth device prompts the user to enable the classic Bluetooth of the second dual-mode Bluetooth device.
  • Optionally, when the attribute information includes the searchable status of the classic Bluetooth of the second dual-mode Bluetooth device, the first dual-mode Bluetooth device may determine, according to the attribute information, whether the classic Bluetooth of the second dual-mode Bluetooth device can be searched for. When the classic Bluetooth of the second dual-mode Bluetooth device cannot be searched for, the first dual-mode Bluetooth device prompts the user to set the classic Bluetooth of the second dual-mode Bluetooth device to a searchable state.
  • Specifically, when whether the classic Bluetooth of the second dual-mode Bluetooth device is in an inquiry scan state is used to indicate whether the classic Bluetooth of the second dual-mode Bluetooth device is in a searchable state, if the classic Bluetooth of the second dual-mode Bluetooth device cannot be searched for, the first dual-mode Bluetooth device prompts the user to enable a corresponding switch, so that the classic Bluetooth of the second dual-mode Bluetooth device is in an inquiry scan state.
  • Optionally, when the attribute information includes the connectable status of the classic Bluetooth of the second dual-mode Bluetooth device, the first dual-mode Bluetooth device may determine, according to the attribute information, whether the classic Bluetooth of the second dual-mode Bluetooth device can be connected. When the classic Bluetooth of the second dual-mode Bluetooth device cannot be connected, the first dual-mode Bluetooth device prompts the user to set the classic Bluetooth of the second dual-mode Bluetooth device to a connectable state.
  • Specifically, when whether the classic Bluetooth of the second dual-mode Bluetooth device is in a page scan state is used to indicate whether the classic Bluetooth of the second dual-mode Bluetooth device is in a connectable state, if the classic Bluetooth of the second dual-mode Bluetooth device cannot be connected, the first dual-mode Bluetooth device prompts the user to enable a corresponding switch, so that the classic Bluetooth of the second dual-mode Bluetooth device is in a page scan state.
  • It should be understood that, in this embodiment of the present invention, there may be two cases for the second dual-mode Bluetooth device. In a first case, the second dual-mode Bluetooth device is in a searchable state and a connectable state provided that the classic Bluetooth of the second dual-mode Bluetooth device is enabled. In a second case, not only the classic Bluetooth of the second dual-mode Bluetooth device needs to be enabled, but also another operation (for example, enabling the corresponding option switch) needs to performed on the second dual-mode Bluetooth device, so that the second dual-mode Bluetooth device can be in a searchable state and a connectable state.
  • Optionally, the attribute information may further carry application program information of the classic Bluetooth of the second dual-mode Bluetooth device. In this way, after receiving the BLE advertising packet, the second dual-mode Bluetooth device may obtain, according to the attribute information, an application program corresponding to the second dual-mode Bluetooth device, and then prompt the user to open the application program corresponding to the classic Bluetooth of the second dual-mode Bluetooth device. Specifically, when the application program corresponding to the second dual-mode Bluetooth device is not installed in the first dual-mode Bluetooth device, the first dual-mode Bluetooth device prompts the user to download and install the application program corresponding to the classic Bluetooth of the dual-mode Bluetooth device, and then prompts the user to open the application program. If the application program is installed in the first dual-mode Bluetooth device, the first dual-mode Bluetooth device may directly prompt the user to open the application program, so as to establish the classic Bluetooth connection between the first dual-mode Bluetooth device and the second dual-mode Bluetooth device.
  • Optionally, in addition to obtaining the application program information of the classic Bluetooth of the second dual-mode Bluetooth device from the attribute information, the first dual-mode Bluetooth device may prestore application program information corresponding to classic Bluetooth of different dual-mode Bluetooth devices, and after detecting the second dual-mode Bluetooth device, the first dual-mode Bluetooth device may automatically prompt the user to open the application program corresponding to the classic Bluetooth of the second dual-mode Bluetooth device, or prompt the user to install the application program corresponding to the dual-mode Bluetooth device.
  • It should be understood that, when the second dual-mode Bluetooth device needs to restore to the factory setting, but does not restore to the factory setting, if the classic Bluetooth of the second dual-mode Bluetooth device is not enabled, or if the classic Bluetooth of the second dual-mode Bluetooth device is not set to a searchable state and a connectable state, the first dual-mode Bluetooth device first prompts the user to perform factory reset on the second dual-mode Bluetooth device, and enable the classic Bluetooth of the second dual-mode Bluetooth device, or set the classic Bluetooth of the second dual-mode Bluetooth device to a searchable state and a connectable state; and then prompts the user to open, on an operation interface of the first dual-mode Bluetooth device, the application program corresponding to the classic Bluetooth of the second dual-mode Bluetooth device.
  • Optionally, the first dual-mode Bluetooth device may send another BLE advertising packet to another Bluetooth device. The BLE advertising packet may include attribute information of classic Bluetooth of the first dual-mode Bluetooth device. The attribute information may include a Bluetooth address of a peer device to which the classic Bluetooth of the first dual-mode Bluetooth device was connected last time, an enabling status of the classic Bluetooth of the first dual-mode Bluetooth device, a searchable status of the classic Bluetooth of the first dual-mode Bluetooth device, a connectable status of the classic Bluetooth of the first dual-mode Bluetooth device, and the like.
  • With reference to FIG. 4A and FIG. 4B to FIG. 6, the following uses a connection between a mobile phone and a wristband (or a smartwatch) as an example to describe in detail a method for establishing a classic Bluetooth connection between dual-mode Bluetooth Bluetooth devices in an embodiment of the present invention.
  • FIG. 4A and FIG. 4B are a schematic flowchart of a method for establishing a classic Bluetooth connection between dual-mode Bluetooth Bluetooth devices according to an embodiment of the present invention. A connection between a mobile phone and a wristband (both the wristband and the mobile phone herein are dual-mode Bluetooth devices) is used as an example in the method in FIG. 4A and FIG. 4B. The method for connecting dual-mode Bluetooth devices in this embodiment of the present invention is described in detail from a perspective of the mobile phone. Specific steps are as follows:
  • 201. Enable Bluetooth. Select the Bluetooth in a setting option in the mobile phone, and switch the Bluetooth from a disabled state to an enabled state, or select a Bluetooth icon from a drop-down shortcut menu of the mobile phone to enable a Bluetooth function.
  • 202. The mobile phone receives a BLE advertising packet sent by the wristband around the mobile phone. It should be understood that, the wristband herein may transmit the BLE advertising packet to a surrounding Bluetooth device only when the wristband is not connected to classic Bluetooth of another Bluetooth device, or the wristband may send the BLE advertising packet to a surrounding Bluetooth device regardless of whether the wristband is connected to classic Bluetooth of another Bluetooth device. Preferably, regardless of a status of the wristband, the wristband may send the BLE advertising packet to the surrounding device. In this case, regardless of whether the wristband is connected to the classic Bluetooth of the another Bluetooth device, the surrounding Bluetooth device can receive the BLE advertising packet of the wristband.
  • 203. Determine whether the wristband belongs to a paired device or an available device. That is, the mobile phone may determine, according to attribute information that is of classic Bluetooth and that is carried in the BLE advertising packet, whether the wristband belongs to a device that has been paired with the mobile phone. If the wristband belongs to the device that has been paired with the mobile phone, the wristband is displayed in a list of paired devices; or if the wristband does not belong to the device that has been paired with the mobile phone, the wristband is displayed in a list of available devices.
  • 204. If the wristband is in a list of paired devices of the mobile phone, it indicates that the wristband belongs to the paired device, and in this case, a user may select the wristband from the list of paired devices, to enter a connection interface defined by classic Bluetooth.
  • 205. If the wristband is in a list of available devices of the mobile phone, it indicates that the wristband belongs to the available device, and in this case, the mobile phone determines, according to the received BLE advertising packet, whether the wristband establishes a Bluetooth connection to another mobile phone. Optionally, pairing is relatively independent of connection. The wristband may be paired with multiple different mobile phones or other terminals. Therefore, when the mobile phone belongs to the paired device, the mobile phone may further determine whether the wristband establishes the Bluetooth connection to the another mobile phone. This is not specifically limited in this embodiment of the present invention.
  • 206. Prompt the user to select “Cancel pairing with the mobile phone” in a setting list of the wristband, and perform factory reset on the wristband.
  • 207. Determine whether the wristband is in a searchable state.
  • 208. If the wristband is in a non-searchable state, the mobile phone prompts the user to operate the wristband, so that the wristband is in a searchable state.
  • 209. If the wristband is in a searchable state, continue to determine whether the wristband is in a connectable state.
  • 210. If the wristband is in a non-connectable state, the mobile phone prompts the user to operate the wristband, so that the wristband is in a connectable state.
  • 211. Determine whether an application corresponding to the wristband is installed in the mobile phone. The mobile phone may determine, according to application program information that is of the wristband and that is obtained from the BLE advertising packet, the application corresponding to the wristband, or the mobile phone may further determine, according to a prestored application program corresponding to the wristband, the application corresponding to the wristband.
  • 212. When the application corresponding to the wristband is not installed in the mobile phone, the mobile phone prompts the user to download and install the application corresponding to the wristband.
  • 213. If the application corresponding to the wristband is installed in the mobile phone, the mobile phone may prompt the user to directly open the application corresponding to the wristband, to implement a connection between the wristband and the mobile phone.
  • It should be understood that, the procedure shown in FIG. 4A and FIG. 4B is only a specific case of the method for connecting dual-mode Bluetooth devices in this embodiment of the present invention, and does not limit a specific implementation procedure of the method for connecting dual-mode Bluetooth devices in this embodiment of the present invention.
  • With reference to mobile phone operation interfaces shown in FIG. 5 and FIG. 6, a method for connecting dual-mode Bluetooth devices in an embodiment of the present invention is described below.
  • In FIG. 5, paired devices and available devices displayed in a list in a mobile phone can be connected to the mobile phone in different manners. The paired devices are Bluetooth devices that have established classic Bluetooth connections to the mobile phone. For example, when a smartwatch (HUAWEI WATCH 01F6) in the paired devices is selected by means of tapping, a classic Bluetooth connection procedure and interface is displayed. Then, a classic Bluetooth connection between the smartwatch and the mobile phone may be completed by performing a corresponding connection procedure. The available devices are surrounding Bluetooth devices found by the mobile phone, and these Bluetooth devices have not established classic Bluetooth connections to the mobile phone. In comparison with the paired devices, a process of establishing classic Bluetooth connections to these unpaired Bluetooth devices by the mobile phone is more complex.
  • It should be understood that, if the smartwatch is bound to another mobile phone device, to ensure user privacy and improve data security, a vendor may set the smartwatch to a state in which the smartwatch can be connected to only one mobile phone at a time. If a classic Bluetooth connection needs to be established between the smartwatch and another mobile phone, pairing of the smartwatch and the mobile phone needs to be first cancelled, and then factory reset is performed on the smartwatch. In this way, the smartwatch can be connected to the another mobile phone.
  • Specifically, it is assumed that the mobile phone finds a surrounding smartwatch (63:54:04:CB:36:C9) by using a BLE advertising packet, but classic Bluetooth of the smartwatch has been bound to another mobile phone device, that is, the smartwatch has established a classic Bluetooth connection to the another mobile phone. In this case, if a user taps to select the smart watch, an intelligent terminal displays a dialog box shown in the diagram, to notify the user that the classic Bluetooth of the smartwatch has been bound to the another mobile phone device. If the user still needs to connect the smartwatch to the mobile phone, the user needs to select “Cancel pairing with the mobile phone” in a setting list of the smartwatch, and then perform factory reset on the smartwatch.
  • Certainly, it is assumed that the vendor sets the smartwatch to a state in which the smartwatch can establish classic Bluetooth connections to multiple mobile phones. When the smartwatch has established a classic Bluetooth connection to a mobile phone, but also needs to establish a classic Bluetooth connection to another mobile phone, the user directly establishes the classic Bluetooth connection between the smartwatch and the another mobile phone, instead of cancelling pairing of the smartwatch and the mobile phone and performing factory reset on the smartwatch.
  • In FIG. 6, it is assumed that a mobile phone finds a surrounding smartwatch (63:54:04:CB:36:C9) by using a BLE advertising packet, and the smartwatch is not bound to another mobile phone, and is in a searchable and connectable state. In this case, if a user taps to select the smartwatch in an available device list in the mobile phone, the mobile phone prompts the user to open an application corresponding to the watch. If the application corresponding to the smartwatch is not installed in the mobile phone, the mobile phone prompts the user to download the application corresponding to the smartwatch, and then prompts the user to open the application corresponding to the smartwatch, so as to connect the mobile phone to the smartwatch.
  • A method for connecting dual-mode Bluetooth devices in an embodiment of the present invention is described above in detail with reference to FIG. 1 to FIG. 6, and a dual-mode Bluetooth device in an embodiment of the present invention is described below with reference to FIG. 7 to FIG. 9.
  • It should be understood that the dual-mode Bluetooth device described in FIG. 7 to FIG. 9 in the embodiment of the present invention can implement all steps of the method for connecting dual-mode Bluetooth devices that is described in FIG. 1 to FIG. 6 in the embodiment of the present invention. For brevity, repeated description is appropriately omitted.
  • FIG. 7 is a schematic block diagram of a dual-mode Bluetooth device according to an embodiment of the present invention. The dual-mode Bluetooth device 700 may be corresponding to the first dual-mode Bluetooth device in the method for connecting dual-mode Bluetooth devices in the embodiment of the present invention. The dual-mode Bluetooth device 700 includes a Bluetooth low energy module 710, a classic Bluetooth module 820, and a processing module 730.
  • The Bluetooth low energy module 710 is configured to receive a BLE advertising packet sent by another dual-mode Bluetooth device, and the BLE advertising packet includes attribute information of classic Bluetooth of the another dual-mode Bluetooth device. Then, the processing module 730 may obtain the BLE advertising packet received by the Bluetooth low energy module 710, and determine a status of the classic Bluetooth of the another dual-mode Bluetooth device according to the attribute information in the advertising packet. Finally, the dual-mode Bluetooth device may prompt, according to the status of the classic Bluetooth of the another dual-mode Bluetooth device, a user to operate the dual-mode Bluetooth device or the another dual-mode Bluetooth device, so as to establish a classic Bluetooth connection between the dual-mode Bluetooth device and the another dual-mode Bluetooth device.
  • In this embodiment of the present invention, the dual-mode Bluetooth device may determine the status of the classic Bluetooth of the another dual-mode Bluetooth device according to the attribute information that is of the classic Bluetooth and that is obtained from the BLE advertising packet, and instruct, according to the status of the classic Bluetooth, the user to perform a corresponding operation to establish the classic Bluetooth connection between the dual-mode Bluetooth devices. That is, for the classic Bluetooth in different states, the user can establish the classic Bluetooth connection only by performing a corresponding operation according to a prompt of the dual-mode Bluetooth device, so that a procedure of establishing a classic Bluetooth connection is simplified, and user experience is improved.
  • Optionally, when the processing module 730 obtains, from the attribute information of the classic Bluetooth of the another dual-mode Bluetooth device, a Bluetooth address of a peer device to which the classic Bluetooth of the another dual-mode Bluetooth device was connected last time, the processing module may compare the Bluetooth address of the peer device with a Bluetooth address of the dual-mode Bluetooth device, and determine a status of classic Bluetooth of a second dual-mode Bluetooth device. When the Bluetooth address of the peer device is different from the Bluetooth address of the dual-mode Bluetooth device, the dual-mode Bluetooth device prompts the user to perform factory reset on the another dual-mode Bluetooth device.
  • Optionally, the processing module 730 may obtain an enabling status of the classic Bluetooth of the another dual-mode Bluetooth device from the attribute information. When the classic Bluetooth of the another dual-mode Bluetooth device is disabled, the processing module 730 prompts the user to enable the classic Bluetooth of the another dual-mode Bluetooth device.
  • Optionally, the processing module 730 may obtain a searchable status of the classic Bluetooth of the another dual-mode Bluetooth device from the attribute information. When the classic Bluetooth of the another dual-mode Bluetooth device cannot be searched for, the processing module 730 prompts the user to set the classic Bluetooth of the another dual-mode Bluetooth device to a searchable state.
  • Optionally, the processing module 730 may obtain a connectable status of the classic Bluetooth of the another dual-mode Bluetooth device from the attribute information. When the classic Bluetooth of the another dual-mode Bluetooth device cannot be connected, the processing module 730 prompts the user to set the classic Bluetooth of the another dual-mode Bluetooth device to a connectable state.
  • FIG. 8 is a schematic block diagram of a dual-mode Bluetooth device according to an embodiment of the present invention. The dual-mode Bluetooth device 800 may be corresponding to the second dual-mode Bluetooth device in the method for connecting dual-mode Bluetooth devices in the embodiment of the present invention. The dual-mode Bluetooth device 800 includes a classic Bluetooth module 810, a Bluetooth low energy module 820, and a control module 830.
  • The control module 830 is configured to control the Bluetooth low energy module 820 to generate a BLE advertising packet, and the BLE advertising packet includes attribute information of classic Bluetooth of the classic Bluetooth module 810 of the dual-mode Bluetooth device. Then, the control module 830 controls the Bluetooth low energy module 820 to send the BLE advertising packet. In this way, after receiving the BLE advertising packet, another surrounding Bluetooth device may determine a status of the classic Bluetooth of the dual-mode Bluetooth device according to the attribute information in the BLE advertising packet. Then, a classic Bluetooth connection may be established between the dual-mode Bluetooth device and the another Bluetooth device according to the status of the classic Bluetooth of the dual-mode Bluetooth device.
  • In this embodiment of the present invention, the dual-mode Bluetooth device generates the BLE advertising packet including the attribute information of the classic Bluetooth of the dual-mode Bluetooth device, and sends the BLE advertising packet to the surrounding Bluetooth device by using Bluetooth low energy. In this way, the surrounding Bluetooth device may determine the status of the classic Bluetooth of the dual-mode Bluetooth device according to the attribute information of the classic Bluetooth of the dual-mode Bluetooth device, and then instruct a user to perform a corresponding operation to establish the classic Bluetooth connection between the dual-mode Bluetooth devices. That is, for the classic Bluetooth in different states, the user can establish the classic Bluetooth connection only by performing a corresponding operation according to a prompt of the dual-mode Bluetooth device, so that a procedure of establishing a classic Bluetooth connection is simplified, and user experience is improved.
  • The attribute information carried in the BLE advertising packet may include the following several types of information:
  • a Bluetooth address of a peer device to which the classic Bluetooth of the dual-mode Bluetooth device was connected last time;
  • an enabling status of the classic Bluetooth of the dual-mode Bluetooth device;
  • a searchable status of the classic Bluetooth of the dual-mode Bluetooth device;
  • a connectable status of the classic Bluetooth of the dual-mode Bluetooth device; and
  • application program information of the classic Bluetooth of the dual-mode Bluetooth device.
  • FIG. 9 is a schematic block diagram of a dual-mode Bluetooth device according to an embodiment of the present invention. The dual-mode Bluetooth device may be the first dual-mode Bluetooth device or the second dual-mode Bluetooth device in the method for connecting dual-mode Bluetooth devices in the embodiment of the present invention.
  • As shown in FIG. 9, the dual-mode Bluetooth device 900 may include components such as a processor 910, a memory 920, a power supply 930, a Bluetooth chip 940, an audio frequency circuit 950, an I/O subsystem 960, a display 970, a sensor 980, and another input device 990. A person skilled in the art may understand that a structure shown in FIG. 9 does not constitute a limitation on a structure of the dual-mode Bluetooth device in this embodiment of the present invention. The dual-mode Bluetooth device in this embodiment of the present invention may include more or less components than those shown in the diagram, or combine some components, or split some components, or have different component arrangements.
  • Each constituent component of the dual-mode Bluetooth device 900 is described below in detail with reference to FIG. 9.
  • The processor 910 is a control center of the terminal 900, and is connected to each part of the entire mobile terminal by using various interfaces and lines. By running or executing a software program and/or a module stored in the memory 920 and invoking data stored in the memory 920, the processor 910 executes various functions of the dual-mode Bluetooth device 900 and processes data, so as to perform overall monitoring on the mobile terminal. Optionally, the processor 910 may include one or more processors or processing modules. Preferably, an application processor (Application Processor, AP) and a modem processor may be integrated into the processor 910. The AP mainly processes an operating system, a user interface, an application program, and the like, and the modem processor mainly processes wireless communication. In this embodiment of the present invention, the processor 910 may further include a graphics processing unit GPU, and this is not specifically limited in the present invention. To implement the solution in the present invention, the processor 910 is further integrated with a Bluetooth module to implement related functions such as a Bluetooth connection and data transmission.
  • The memory 920 may be configured to store the software program and the module, and the processor 910 executes various function applications of the dual-mode Bluetooth device 900 and processes data by running the software program and the module stored in the memory 920. The memory 920 may mainly include a program storage area and a data storage area. The program storage area may store an operating system, an application program required by at least one function (for example, Bluetooth control or a Bluetooth connection function), and the like. The data storage area may store data (for example, a ciphertext generation algorithm or a Bluetooth connection record) created according to use of the dual-mode Bluetooth device 900, and the like. In addition, the memory 920 may include a high-speed random access memory, and may further include a nonvolatile memory, for example, at least one magnetic disk memory component, a flash memory component, or another volatile solid-state memory component.
  • The power supply 930, such as a battery, may supply power to each component. Preferably, the power supply may be logically connected to the processor 910 by using a power supply management system, so as to implement functions such as charging management, discharging management, and power consumption management by using the power supply management system.
  • The dual-mode Bluetooth device 900 may further include the Bluetooth chip 940. In this embodiment of the present invention, the Bluetooth chip 940 may include a BLE controller 941, a classic Bluetooth controller 942, and a transceiver 943. The BLE controller 941 and the classic Bluetooth controller 942 may send and receive a Bluetooth radio frequency signal by controlling the transceiver 943. For example, the BLE controller 941 may control the transceiver 943 to send and receive a BLE advertising packet, and the classic Bluetooth controller 942 may control the transceiver 943 to send and receive a classic Bluetooth connection request, a classic Bluetooth connection response, and the like. The dual-mode Bluetooth device 900 may control the BLE controller 941 and the classic Bluetooth controller 942 in the Bluetooth chip 940 by using the Bluetooth module in the processor 910.
  • The Bluetooth chip 940 may prestore some data, for example, a prestored signal strength threshold of a Bluetooth signal, an address of a target Bluetooth terminal that can be connected, a ciphertext, or another identity. The Bluetooth chip 940 may independently perform some simple processing, for example, detecting signal strength of a Bluetooth-related message and/or comparing the detected signal strength with the prestored signal strength threshold; or parsing a Bluetooth-related message such as an advertising packet, and matching an address, a ciphertext, or another identity in the Bluetooth-related message with corresponding prestored information.
  • It can be understood that the BLE controller 941 and the classic Bluetooth controller 942 may be independent hardware modules, or may be logically independent modules whose hardware is integrated together. It can be further understood that the Bluetooth chip 940 may belong to a category of the processor 910. In addition, the dual-mode Bluetooth device 900 may have no independent Bluetooth chip. A circuit and a function related to the Bluetooth chip 940 may be integrated into the processor 910. For example, the circuit and the function may be integrated into an AP of a mobile phone or an AP of a watch. In this case, the Bluetooth module integrates all the described function modules related to Bluetooth function implementation.
  • The audio frequency circuit 250 may include a microphone and a loudspeaker, and provide an audio interface between a user and the dual-mode Bluetooth device 900. The audio frequency circuit 950 may output audio data to the Bluetooth module or the Bluetooth chip 940, to send the audio data to another terminal, or output audio data obtained from the Bluetooth module or the Bluetooth chip 940 to the user, or the like.
  • The I/O subsystem 960 is configured to control an input/output extremal device, and may include another device input controller, a sensor controller, and a display controller.
  • The terminal may include the display 970. The display 970 may be configured to display information entered by the user or information provided for the user, and various menus of the dual-mode Bluetooth device 900, and may further receive user input. Specifically, the display 970 may include a display panel 971 and a touch panel 972. The display controller in the I/O subsystem 960 may receive a signal from the display 970 and/or send a signal to the display 970, to implement man-machine interaction.
  • The dual-mode Bluetooth device 900 may further include one or more sensors 980, such as an optical sensor, a motion sensor, and another sensor. The sensor controller in the I/O subsystem 960 may receive a signal from the one or more sensors 980 and/or may send a signal to the one or more sensors 980.
  • The another input module 990 may be configured to: receive entered numeral or character information, and generate key signal input related to a user setting and function control of the dual-mode Bluetooth device 900. One or more other device input controllers receive a signal from the another input device 990 and/or send a signal to the another input device 990.
  • Although not shown in FIG. 9, the dual-mode Bluetooth device 900 may further include a radio frequency circuit, configured to receive and send information, or receive and send a signal during a call. The dual-mode Bluetooth device 900 may further include a camera lens, a Wireless Fidelity (Wireless-Fidelity, Wi-Fi or WiFi) module, an infrared module, and the like. Details are not described herein.
  • It should be understood that the dual-mode Bluetooth device for implementing this embodiment of the present invention may be a processor or a processor with a necessary auxiliary circuit and a necessary auxiliary component, or a chip or a chip group including multiple chips, or the like.
  • The dual-mode Bluetooth device 900 shown in FIG. 9 may receive, by using the transceiver 943, a BLE advertising packet sent by another dual-mode Bluetooth device. After the BLE advertising packet is received, the processor 910 may obtain the BLE advertising packet from the memory 920 or directly obtain the BLE advertising packet from a storage unit of the processor 910, and then determine a status of classic Bluetooth of the another dual-mode Bluetooth device according to attribute information in the BLE advertising packet. Then, the processor 910 may prompt, by using the display 970 according to the status of the classic Bluetooth of the another Bluetooth device, a user to operate the dual-mode Bluetooth device 910 or the another dual-mode Bluetooth device, so as to establish a classic Bluetooth connection between the dual-mode Bluetooth device 900 and the another dual-mode Bluetooth device.
  • In addition, the dual-mode Bluetooth device 900 may further generate, by using the BLE controller, a BLE advertising packet including attribute information of classic Bluetooth of the dual-mode Bluetooth device 900, and then send the BLE advertising packet to another surrounding Bluetooth device by using the transceiver 943. In this way, after receiving the BLE advertising packet, the another Bluetooth device may obtain a status of the classic Bluetooth of the dual-mode Bluetooth device 900. Then, a classic Bluetooth connection may be established between the dual-mode Bluetooth device 900 and the another Bluetooth device according to the status of the classic Bluetooth of the dual-mode Bluetooth device 900.
  • It should be understood that, FIG. 7 to FIG. 9 all show the dual-mode Bluetooth device in the embodiments of the present invention. The processing module 730 in FIG. 7 is equivalent to the processor 910 in FIG. 9, and the Bluetooth low energy module 710 and the classic Bluetooth module 720 are corresponding to the Bluetooth chip 940 in FIG. 9. The classic Bluetooth module 810 and the Bluetooth low energy module 820 in FIG. 8 are corresponding to the Bluetooth chip 940 in FIG. 9, and the control module 830 is corresponding to the BLE controller and the classic Bluetooth controller in the Bluetooth chip 940 in FIG. 9. It should be understood that, the dual-mode Bluetooth device in the embodiments of the present invention may be a device including all the modules shown in FIG. 9, or may be a device including only some modules shown in FIG. 9, or may be a device including another module or structure in addition to the modules shown in FIG. 9.
  • A person of ordinary skill in the art may be aware that, in combination with the examples described in the embodiments disclosed in this specification, units and algorithm steps may be implemented by electronic hardware or a combination of computer software and electronic hardware. Whether the functions are performed by hardware or software depends on particular applications and design constraint conditions of the technical solutions. A person skilled in the art may use different methods to implement the described functions for each particular application, but it should not be considered that the implementation goes beyond the scope of the present invention.
  • It can be clearly understood by a person skilled in the art that, for the purpose of convenient and brief description, for a detailed working process of the foregoing system, apparatus, and unit, reference may be made to a corresponding process in the foregoing method embodiments, and details are not described herein again.
  • In the several embodiments provided in this application, it should be understood that the disclosed system, apparatus, and method may be implemented in other manners. For example, the described apparatus embodiment is merely an example. For example, the unit division is merely logical function division and may be other division in actual implementation. For example, a plurality of units or components may be combined or integrated into another system, or some features may be ignored or not performed. In addition, the displayed or discussed mutual couplings or direct couplings or communication connections may be implemented by using some interfaces. The indirect couplings or communication connections between the apparatuses or units may be implemented in electronic, mechanical, or other forms.
  • The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one position, or may be distributed on a plurality of network units. Some or all of the units may be selected according to actual requirements to achieve the objectives of the solutions of the embodiments.
  • In addition, functional units in the embodiments of the present invention may be integrated into one processing unit, or each of the units may exist alone physically, or two or more units are integrated into one unit.
  • When the functions are implemented in the form of a software functional unit and sold or used as an independent product, the functions may be stored in a computer-readable storage medium. Based on such an understanding, the technical solutions of the present invention essentially, or the part contributing to the prior art, or some of the technical solutions may be implemented in a form of a software product. The software product is stored in a storage medium, and includes several instructions for instructing a computer device (which may be a personal computer, a server, or a network device) to perform all or some of the steps of the methods described in the embodiments of the present invention. The foregoing storage medium includes: any medium that can store program code, such as a USB flash drive, a removable hard disk, a read-only memory (ROM, Read-Only Memory), a random access memory (RAM, Random Access Memory), a magnetic disk, or an optical disc.
  • The foregoing descriptions are merely specific implementations of the present invention, but are not intended to limit the protection scope of the present invention. Any variation or replacement readily figured out by a person skilled in the art within the technical scope disclosed in the present invention shall fall within the protection scope of the present invention. Therefore, the protection scope of the present invention shall be subject to the protection scope of the claims.

Claims (17)

1. A method for establishing a classic Bluetooth connection between dual-mode Bluetooth devices, comprising:
receiving, by a first dual-mode Bluetooth device, a Bluetooth low energy advertising packet sent by a second dual-mode Bluetooth device;
determining, by the first dual-mode Bluetooth device, a status of the classic Bluetooth of the second dual-mode Bluetooth device according to the Bluetooth low energy advertising packet; and
prompting, by the first dual-mode Bluetooth device according to the status of the classic Bluetooth of the second dual-mode Bluetooth device, a user to operate the first dual-mode Bluetooth device or the second dual-mode Bluetooth device to establish a classic Bluetooth connection between the first dual-mode Bluetooth device and the second dual-mode Bluetooth device.
2. The method according to claim 1, wherein the status of the classic Bluetooth of the second dual-mode Bluetooth device comprises at least one of:
a searchable status of the classic Bluetooth of the second dual-mode Bluetooth device;
a connectable status of the classic Bluetooth of the second dual-mode Bluetooth device; or
a status of a connection between another Bluetooth device and the classic Bluetooth of the second dual-mode Bluetooth device.
3. The method according to claim 2, wherein prompting, by the first dual-mode Bluetooth device according to the status of the classic Bluetooth of the second dual-mode Bluetooth device, user to operate the first dual-mode Bluetooth device or the second dual-mode Bluetooth device comprises:
when the classic Bluetooth of the second dual-mode Bluetooth device cannot be searched, prompting, by the first dual-mode Bluetooth device, the user to operate the first dual-mode Bluetooth device or the second dual-mode Bluetooth device to set the classic Bluetooth of the second dual-mode Bluetooth device to a searchable state; or
when the classic Bluetooth of the second dual-mode Bluetooth device cannot be connected, prompting, by the first dual-mode Bluetooth device, the user to operate the first dual-mode Bluetooth device or the second dual-mode Bluetooth device to set the classic Bluetooth of the second dual-mode Bluetooth device to a connectable state.
4. The method according to claim 3,
wherein the classic Bluetooth of the second dual-mode Bluetooth device cannot be searched the second dual-mode Bluetooth device is not in an inquiry scan state; and
wherein the classic Bluetooth of the second dual-mode Bluetooth device cannot be connected when the classic Bluetooth of the second dual-mode Bluetooth device is not in an page scan state.
5. The method according to claim 1, wherein the method further comprises:
determining, by the first dual-mode Bluetooth device, application program information corresponding to the classic Bluetooth of the second dual-mode Bluetooth device according to the Bluetooth low energy advertising packet; and
prompting, by the first dual-mode Bluetooth device, the user to download and install the application program, when the application is not installed in the first dual-mode Bluetooth device; or
prompting, by the first dual-mode Bluetooth device, the user to open the application program, when the application is installed in the first dual-mode Bluetooth device.
6. The method according to claim 1, wherein the method further comprises:
determining, by the first dual-mode Bluetooth device, a status of a connection between another Bluetooth device and the classic Bluetooth of the second dual-mode Bluetooth device according to the Bluetooth low energy advertising packet; and
displaying, by the first dual-mode Bluetooth device, an interface according to the status of a connection.
7. The method according to claim 1, wherein determining, by the first dual-mode Bluetooth device, status of the classic Bluetooth of the second dual-mode Bluetooth device according to the Bluetooth low energy advertising packet, comprises:
determining, by the first dual-mode Bluetooth device, the status of the classic Bluetooth of the second dual-mode Bluetooth device according to a reserved field in a data field in an existing advertising packet, an idle field and an extensible field in another field, or a user-defined field reserved in a vendor field of the Bluetooth low energy advertising packet.
8. A method for establishing a classic Bluetooth connection between dual-mode Bluetooth devices, comprising:
sending, by a second dual-mode Bluetooth device, a Bluetooth low energy advertising packet to a first dual-mode Bluetooth device, wherein:
based on the Bluetooth low energy advertising packet, a status of the classic Bluetooth connection of the second dual Bluetooth device is determined; and
based on the status of the classic Bluetooth connection of the second dual Bluetooth device, a user is promoted to operate the first dual-mode Bluetooth device or the second dual-mode Bluetooth device so as to establish a classic Bluetooth connection between the first dual-mode Bluetooth device and the second dual-mode Bluetooth device.
9. The method according to claim 8, wherein the status of the classic Bluetooth of the second dual-mode Bluetooth device comprises at least one of:
a searchable status of the classic Bluetooth of the second dual-mode Bluetooth device;
a connectable status of the classic Bluetooth of the second dual-mode Bluetooth device; and
a status of a connection between another Bluetooth device and the classic Bluetooth of the second dual-mode Bluetooth device.
10. A dual-mode Bluetooth device, comprising:
a transceiver, configured to receive a Bluetooth low energy advertising packet sent by a second dual-mode Bluetooth device;
at least one processor and one or more memories coupled to the at least one processor and storing programming instructions for execution by the at least one processor to:
determine a status of the classic Bluetooth of the second dual-mode Bluetooth device according to the Bluetooth low energy advertising packet; and
prompt, according to the status of the classic Bluetooth of the second dual-mode Bluetooth device, a user to operate the first dual-mode Bluetooth device or the second dual-mode Bluetooth device to establish a classic Bluetooth connection between the first dual-mode Bluetooth device and the second dual-mode Bluetooth device.
11. The dual-mode Bluetooth device according to claim 10, wherein the status of the classic Bluetooth of the second dual-mode Bluetooth device comprises at least one of:
a searchable status of the classic Bluetooth of the second dual-mode Bluetooth device;
a connectable status of the classic Bluetooth of the second dual-mode Bluetooth device; or
a status of a connection between another Bluetooth device and the classic Bluetooth of the second dual-mode Bluetooth device.
12. The dual-mode Bluetooth device according to claim 11, wherein the status of the classic Bluetooth of the second dual-mode Bluetooth device comprises a searchable status of the classic Bluetooth of the second dual-mode Bluetooth device, and
the one or more memories storing programming instructions for execution by the at least one processor to:
prompt the user to operate the first dual-mode Bluetooth device or the second dual-mode Bluetooth device to set the classic Bluetooth of the second dual-mode Bluetooth device to a searchable state, when the classic Bluetooth of the second dual-mode Bluetooth device cannot be searched.
13. The dual-mode Bluetooth device according to claim 11, wherein the status of the classic Bluetooth of the second dual-mode Bluetooth device comprises a connectable status of the classic Bluetooth of the second dual-mode Bluetooth device, and
the one or more memories storing programming instructions for execution by the at least one processor to prompt the user to operate the first dual-mode Bluetooth device or the second dual-mode Bluetooth device to set the classic Bluetooth of the second dual-mode Bluetooth device to a connectable state, when the classic Bluetooth of the second dual-mode Bluetooth device cannot be connected for.
14. The dual-mode Bluetooth device according to claim 12, wherein the classic Bluetooth of the second dual-mode Bluetooth device cannot be searched when the classic Bluetooth of the second dual-mode Bluetooth device is not in an inquiry scan state.
15. The dual-mode Bluetooth device according to claim 13, wherein the classic Bluetooth of the second dual-mode Bluetooth device cannot be connected when the classic Bluetooth of the second dual-mode Bluetooth device is not in a page scan state.
16. The dual-mode Bluetooth device according to claim 10, wherein the one or more memories storing programming instructions for execution by the at least one processor to:
determine an application program corresponding to the classic Bluetooth of the second dual-mode Bluetooth device according to the Bluetooth low energy advertising packet; and
prompt the user to download and install the application program, when the application program is not installed in the first dual-mode Bluetooth device; or
prompt the user to open the application program, when the application program is installed in the first dual-mode Bluetooth device.
17. The dual-mode Bluetooth device according to claim 10, wherein the one or more memories storing programming instructions for execution by the at least one processor to:
determine a status of a connection between another Bluetooth device and the classic Bluetooth of the second dual-mode Bluetooth device according to the Bluetooth low energy advertising packet; and
display an interface according to the status of a connection.
US17/174,526 2016-06-27 2021-02-12 Method for establishing classic bluetooth connection between dual-mode bluetooth devices, and dual-mode bluetooth device Pending US20210243831A1 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
US17/174,526 US20210243831A1 (en) 2016-06-27 2021-02-12 Method for establishing classic bluetooth connection between dual-mode bluetooth devices, and dual-mode bluetooth device

Applications Claiming Priority (3)

Application Number Priority Date Filing Date Title
PCT/CN2016/087365 WO2018000156A1 (en) 2016-06-27 2016-06-27 Method for establishing classic bluetooth connection between dual-mode bluetooth devices, and dual-mode bluetooth device
US201816313801A 2018-12-27 2018-12-27
US17/174,526 US20210243831A1 (en) 2016-06-27 2021-02-12 Method for establishing classic bluetooth connection between dual-mode bluetooth devices, and dual-mode bluetooth device

Related Parent Applications (2)

Application Number Title Priority Date Filing Date
PCT/CN2016/087365 Continuation WO2018000156A1 (en) 2016-06-27 2016-06-27 Method for establishing classic bluetooth connection between dual-mode bluetooth devices, and dual-mode bluetooth device
US16/313,801 Continuation US10939490B2 (en) 2016-06-27 2016-06-27 Method for establishing classic Bluetooth connection between dual-mode Bluetooth devices, and dual-mode Bluetooth device

Publications (1)

Publication Number Publication Date
US20210243831A1 true US20210243831A1 (en) 2021-08-05

Family

ID=60785710

Family Applications (2)

Application Number Title Priority Date Filing Date
US16/313,801 Active 2036-11-19 US10939490B2 (en) 2016-06-27 2016-06-27 Method for establishing classic Bluetooth connection between dual-mode Bluetooth devices, and dual-mode Bluetooth device
US17/174,526 Pending US20210243831A1 (en) 2016-06-27 2021-02-12 Method for establishing classic bluetooth connection between dual-mode bluetooth devices, and dual-mode bluetooth device

Family Applications Before (1)

Application Number Title Priority Date Filing Date
US16/313,801 Active 2036-11-19 US10939490B2 (en) 2016-06-27 2016-06-27 Method for establishing classic Bluetooth connection between dual-mode Bluetooth devices, and dual-mode Bluetooth device

Country Status (5)

Country Link
US (2) US10939490B2 (en)
EP (3) EP4184809A1 (en)
CN (2) CN112911556B (en)
ES (2) ES2933731T3 (en)
WO (1) WO2018000156A1 (en)

Families Citing this family (22)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US10820360B1 (en) * 2017-08-30 2020-10-27 Socket Mobile, Inc. Application-assisted friendly pairing
JP7025198B2 (en) * 2017-12-19 2022-02-24 キヤノン株式会社 Communication systems, communication devices and their control methods, programs
JP7149715B2 (en) * 2018-02-05 2022-10-07 キヤノン株式会社 Communication equipment and its control method and program
CN108551670B (en) * 2018-03-30 2021-06-25 深圳市冠旭电子股份有限公司 Bluetooth connection method and device and intelligent terminal
CN108924805B (en) * 2018-07-13 2021-05-14 杭州网易云音乐科技有限公司 Bluetooth connection method, medium, first electronic device, second electronic device and computing device
US11051154B2 (en) * 2018-10-03 2021-06-29 Google Llc Systems and methods for wirelessly coupling a wearable computing device
DE102018124734A1 (en) * 2018-10-08 2020-04-09 Bayerische Motoren Werke Aktiengesellschaft System for connecting a mobile device to a motor vehicle
CN110177361A (en) * 2019-05-21 2019-08-27 语联网(武汉)信息技术有限公司 The method and device of speech-sound intelligent translation is realized based on bimodulus bluetooth
CN112073952B (en) * 2019-06-10 2022-03-15 海信视像科技股份有限公司 External Bluetooth device classification display method and device and dual-hardware system display device
CN110933614B (en) * 2019-10-12 2022-05-31 阿里巴巴集团控股有限公司 Communication processing method and device and electronic equipment
CN112822663B (en) * 2019-10-31 2022-06-14 华为技术有限公司 Bluetooth connection method and related device
KR20210092079A (en) * 2020-01-15 2021-07-23 삼성전자주식회사 Electronic device and operating method for the same
CN115580844A (en) * 2020-01-21 2023-01-06 华为技术有限公司 Bluetooth connection method, system and electronic equipment
CN113709710B (en) * 2020-05-21 2023-08-08 成都鼎桥通信技术有限公司 Interface management method and device
CN111818379B (en) * 2020-07-20 2022-03-11 深圳创维-Rgb电子有限公司 Bluetooth pairing method and device, terminal equipment and readable storage medium
CN112261638B (en) * 2020-09-30 2022-08-12 厦门亿联网络技术股份有限公司 Method and device for rapidly identifying dual-mode Bluetooth device, IOS device and medium
CN115918116A (en) * 2020-10-09 2023-04-04 Oppo广东移动通信有限公司 Information processing method, device and storage medium
CN112270450B (en) * 2020-11-04 2021-07-23 江苏交控智慧城市技术有限公司 Real-time bus dispatching and predicting system under support of Internet of things
CN113490158B (en) * 2021-07-07 2022-06-03 荣耀终端有限公司 Bluetooth device pairing connection method, electronic device, Bluetooth device and terminal system
CN113518336A (en) * 2021-07-16 2021-10-19 Oppo广东移动通信有限公司 Bluetooth connection prompting method, device, terminal and storage medium
CN117479131A (en) * 2022-07-22 2024-01-30 Oppo广东移动通信有限公司 Bluetooth connection method, bluetooth connection device, electronic equipment and computer readable storage medium
CN117156597A (en) * 2023-01-20 2023-12-01 荣耀终端有限公司 Ad hoc network-based device processing method, device and storage medium

Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20110021142A1 (en) * 2009-07-24 2011-01-27 Prasanna Desai Method and system for a dual-mode bluetooth low energy device
US20140355582A1 (en) * 2013-05-29 2014-12-04 Texas Instruments Incorporated Ble scatternet system and method
US8935411B2 (en) * 2012-08-22 2015-01-13 Nokia Corporation Method and apparatus for utilizing advertisements to provide information regarding connection setup
US20150148093A1 (en) * 2013-11-27 2015-05-28 Mophie, Inc. Battery pack with supplemental memory
US20150289124A1 (en) * 2014-04-08 2015-10-08 Nokia Corporation Method, apparatus, and computer program product for seamless switching of communication connection
US20160360345A1 (en) * 2013-11-11 2016-12-08 Lg Electronics Inc. Method and apparatus for bluetooth connection
US9628979B2 (en) * 2012-08-22 2017-04-18 Nokia Technologies Oy Method and apparatus for utilizing advertisements in conjunction with device discovery
US20170279808A1 (en) * 2014-09-04 2017-09-28 Lg Electronics Inc. Method and device for controlling device by using bluetooth low energy (le) technique
US20180098338A1 (en) * 2015-04-13 2018-04-05 Lg Electronics Inc. Method and apparatus for connecting devices using bluetooth low-energy technology
US20180152979A1 (en) * 2015-05-14 2018-05-31 Lg Electronics Inc. Method and device for connecting alternative communication means using bluetooth low energy technology
US20180220335A1 (en) * 2015-07-26 2018-08-02 Lg Electronics Inc. Method and device for connecting substitute communication means by using bluetooth low energy (le) technique

Family Cites Families (19)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9020433B2 (en) 2011-10-05 2015-04-28 Apple Inc. Low power wireless device discovery
KR101974820B1 (en) * 2012-09-10 2019-08-23 삼성전자주식회사 Method for controlling a device and device performing the same
US9363010B2 (en) * 2012-12-03 2016-06-07 Samsung Electronics Co., Ltd. Mobile terminal and method of controlling function of the mobile terminal
KR102092063B1 (en) * 2013-04-26 2020-03-23 삼성전자 주식회사 Method And Apparatus For Performing Communication Service
KR20140134562A (en) * 2013-05-14 2014-11-24 삼성전자주식회사 Method and divece for controlling a communication unit using a magnetic sensor
KR102022666B1 (en) 2013-05-16 2019-09-18 삼성전자주식회사 Method and divece for communication
KR20140146362A (en) * 2013-06-17 2014-12-26 삼성전자주식회사 Method and apparatus for transmitting contents in a portable terminal
CN103747503A (en) * 2013-12-10 2014-04-23 北京智谷睿拓技术服务有限公司 Wireless network accessing method and accessing apparatus
US10264448B2 (en) * 2013-12-17 2019-04-16 Sony Corporation Method and apparatus for facilitating use of services available via wireless connection
KR20160000355A (en) 2014-06-24 2016-01-04 삼성전자주식회사 Method of Inviting other Devices to Chat Room by Using Information on Access Point and Device therefor
KR102397285B1 (en) * 2014-07-31 2022-05-12 엘지전자 주식회사 Method and apparatus for controlling electronic device in wireless communication system supporting bluetooth communication
TWI556596B (en) * 2014-09-30 2016-11-01 美商微晶片科技公司 Bluetooth low energy beacon device and advertising methodology
CN104467925B (en) * 2014-12-31 2017-05-17 重庆金瓯科技发展有限责任公司 Dual-mode Bluetooth communication control method and dual-mode Bluetooth communication switching device
US10182326B2 (en) * 2015-01-27 2019-01-15 Lg Electronics Inc. Method and device for controlling device using bluetooth technology
CN105050033A (en) * 2015-07-01 2015-11-11 惠州Tcl移动通信有限公司 Piconet networking interconnection method and system based on low-power-dissipation Bluetooth and traditional Bluetooth
US10390113B2 (en) * 2015-09-07 2019-08-20 Lg Electronics Inc. Method and apparatus for controlling device using bluetooth technology
US9806900B2 (en) * 2015-10-05 2017-10-31 Savant Systems, Llc Wireless provisioning and configuring of hardware elements of a home automation system
US20170180152A1 (en) * 2015-12-22 2017-06-22 BASF Agro B.V. Multi-mode controller area network-bluetooth network bridge
KR20180038166A (en) * 2016-10-06 2018-04-16 삼성전자주식회사 Display apparatus, electronic apparatus connectable to display apparatus, controlling method thereof

Patent Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20110021142A1 (en) * 2009-07-24 2011-01-27 Prasanna Desai Method and system for a dual-mode bluetooth low energy device
US8935411B2 (en) * 2012-08-22 2015-01-13 Nokia Corporation Method and apparatus for utilizing advertisements to provide information regarding connection setup
US9628979B2 (en) * 2012-08-22 2017-04-18 Nokia Technologies Oy Method and apparatus for utilizing advertisements in conjunction with device discovery
US20140355582A1 (en) * 2013-05-29 2014-12-04 Texas Instruments Incorporated Ble scatternet system and method
US20160360345A1 (en) * 2013-11-11 2016-12-08 Lg Electronics Inc. Method and apparatus for bluetooth connection
US20150148093A1 (en) * 2013-11-27 2015-05-28 Mophie, Inc. Battery pack with supplemental memory
US20150289124A1 (en) * 2014-04-08 2015-10-08 Nokia Corporation Method, apparatus, and computer program product for seamless switching of communication connection
US20170279808A1 (en) * 2014-09-04 2017-09-28 Lg Electronics Inc. Method and device for controlling device by using bluetooth low energy (le) technique
US20180098338A1 (en) * 2015-04-13 2018-04-05 Lg Electronics Inc. Method and apparatus for connecting devices using bluetooth low-energy technology
US20180152979A1 (en) * 2015-05-14 2018-05-31 Lg Electronics Inc. Method and device for connecting alternative communication means using bluetooth low energy technology
US20180220335A1 (en) * 2015-07-26 2018-08-02 Lg Electronics Inc. Method and device for connecting substitute communication means by using bluetooth low energy (le) technique

Also Published As

Publication number Publication date
CN112911556A (en) 2021-06-04
EP3468068A1 (en) 2019-04-10
EP4184809A1 (en) 2023-05-24
EP3468068A4 (en) 2019-06-26
EP3873004B1 (en) 2022-09-14
EP3873004A1 (en) 2021-09-01
EP3468068B1 (en) 2021-02-17
CN108476060B (en) 2021-02-12
CN108476060A (en) 2018-08-31
ES2933731T3 (en) 2023-02-13
US20190150215A1 (en) 2019-05-16
CN112911556B (en) 2023-07-14
ES2866873T3 (en) 2021-10-20
US10939490B2 (en) 2021-03-02
WO2018000156A1 (en) 2018-01-04

Similar Documents

Publication Publication Date Title
US20210243831A1 (en) Method for establishing classic bluetooth connection between dual-mode bluetooth devices, and dual-mode bluetooth device
US20220030346A1 (en) Wireless audio output devices
US10645559B2 (en) Bluetooth connection method and terminal
US11856498B2 (en) Bluetooth device connection method and device
US20190159271A1 (en) Bluetooth connection management method, master bluetooth device, and apparatus
WO2021077830A1 (en) Bluetooth communication method, and apparatus and device with bluetooth communication function
US10912027B2 (en) Scanning method and device
US11895364B2 (en) Bluetooth connection method and television
WO2021022720A1 (en) Bluetooth-based data transmission method, storage medium and terminal
US10813051B2 (en) Power management method and terminal device
CN112839326A (en) Network switching method, device, storage medium and gateway equipment
CN114173321B (en) Equipment communication connection establishment method and equipment communication system
CN111083285A (en) Mobile terminal call positioning system and method
CN111182141B (en) Method, device and storage medium for acquiring state of terminal device
CN113014998A (en) Audio output method, device, television and computer readable storage medium

Legal Events

Date Code Title Description
AS Assignment

Owner name: HUAWEI TECHNOLOGIES CO., LTD., CHINA

Free format text: ASSIGNMENT OF ASSIGNORS INTEREST;ASSIGNORS:LI, JIAXIN;ZHAO, PENG;CHEN, FENG;AND OTHERS;SIGNING DATES FROM 20190307 TO 20200723;REEL/FRAME:055376/0480

STPP Information on status: patent application and granting procedure in general

Free format text: APPLICATION DISPATCHED FROM PREEXAM, NOT YET DOCKETED

STPP Information on status: patent application and granting procedure in general

Free format text: DOCKETED NEW CASE - READY FOR EXAMINATION

STPP Information on status: patent application and granting procedure in general

Free format text: NON FINAL ACTION MAILED

STPP Information on status: patent application and granting procedure in general

Free format text: RESPONSE TO NON-FINAL OFFICE ACTION ENTERED AND FORWARDED TO EXAMINER

STPP Information on status: patent application and granting procedure in general

Free format text: ADVISORY ACTION MAILED

STPP Information on status: patent application and granting procedure in general

Free format text: DOCKETED NEW CASE - READY FOR EXAMINATION

STPP Information on status: patent application and granting procedure in general

Free format text: NON FINAL ACTION MAILED

STPP Information on status: patent application and granting procedure in general

Free format text: RESPONSE TO NON-FINAL OFFICE ACTION ENTERED AND FORWARDED TO EXAMINER

STPP Information on status: patent application and granting procedure in general

Free format text: NON FINAL ACTION MAILED