WO2023283794A1 - 蓝牙连接方法及装置 - Google Patents

蓝牙连接方法及装置 Download PDF

Info

Publication number
WO2023283794A1
WO2023283794A1 PCT/CN2021/105860 CN2021105860W WO2023283794A1 WO 2023283794 A1 WO2023283794 A1 WO 2023283794A1 CN 2021105860 W CN2021105860 W CN 2021105860W WO 2023283794 A1 WO2023283794 A1 WO 2023283794A1
Authority
WO
WIPO (PCT)
Prior art keywords
type
connection
data packet
bluetooth connection
identification information
Prior art date
Application number
PCT/CN2021/105860
Other languages
English (en)
French (fr)
Inventor
张泽宏
曹聪
陈桐
卢晗
杨玉飞
经迪珊
薛凯
Original Assignee
华为技术有限公司
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 华为技术有限公司 filed Critical 华为技术有限公司
Priority to CN202180099103.6A priority Critical patent/CN117441354A/zh
Priority to PCT/CN2021/105860 priority patent/WO2023283794A1/zh
Priority to EP21949590.0A priority patent/EP4336873A4/en
Publication of WO2023283794A1 publication Critical patent/WO2023283794A1/zh
Priority to US18/410,584 priority patent/US20240147551A1/en

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W76/00Connection management
    • H04W76/10Connection setup
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/80Services using short range communication, e.g. near-field communication [NFC], radio-frequency identification [RFID] or low energy communication
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W48/00Access restriction; Network selection; Access point selection
    • H04W48/08Access restriction or access information delivery, e.g. discovery data delivery
    • H04W48/14Access restriction or access information delivery, e.g. discovery data delivery using user query or user detection
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W84/00Network topologies
    • H04W84/18Self-organising networks, e.g. ad-hoc networks or sensor networks
    • 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 application relates to the technical field of bluetooth, in particular to a bluetooth connection method and device.
  • Bluetooth As a wireless transmission technology, Bluetooth is widely used between smart devices such as mobile phones, earphones, and wearable devices.
  • Bluetooth SIG Bluetooth special interest group
  • BLE/LE low-power bluetooth
  • BLE/LE Bluetooth low energy
  • connection speed of Bluetooth When communicating via Bluetooth between Bluetooth devices, the connection speed of Bluetooth will directly affect the user experience.
  • establishing a BLE connection requires that the data packets used to establish a BLE connection be received by the BLE scanning window
  • establishing a BT connection requires that the data packets used to establish a BT connection be received by the BT scanning window.
  • it is usually used to increase the opening time of the BLE scan window and the BT scan window, thereby increasing the probability that the two scan windows receive corresponding data packets. This method will greatly increase the power consumption of the device. Therefore, Bluetooth Devices need other means to achieve increased Bluetooth connection speeds.
  • Embodiments of the present application provide a Bluetooth connection method and device for improving the Bluetooth connection speed.
  • a method for establishing a Bluetooth connection including: the first device alternately performs periodic scanning, wherein the first scanning period is used for the first type of Bluetooth connection, and the second scanning period is used for the second type of Bluetooth connection; the first device receives the first type of data packet from the second device in the first scan window of any first scan period, wherein the first type of data packet is used to establish the first type of Bluetooth connection; the first device according to the first The type data packet acquires second connection parameters for establishing a second type of Bluetooth connection with the second device; the first device establishes the second type of Bluetooth connection with the second device according to the second connection parameters.
  • the Bluetooth device establishes the second type of Bluetooth connection by receiving the first type of data packet used to establish the first type of Bluetooth connection, thereby increasing the speed of establishing the Bluetooth connection.
  • the first type data packet includes: first identification information and second connection parameters corresponding to the first identification information, the first identification information is used to instruct the first device to establish a second type of Bluetooth connection
  • the The method further includes: the first device parses the first type of data packet, obtains first identification information, and determines to establish a second type of Bluetooth connection according to the first identification information; the first device obtains second connection parameters according to the first type of data packet, including: The first device parses the first type of data packet to obtain the second connection parameter corresponding to the first identification information.
  • the second type of Bluetooth connection is established by carrying the first identification information instructing the first device to establish the second type of Bluetooth connection and the corresponding second connection information in the data packet used to establish the first type of Bluetooth connection , realize information sharing of different types of Bluetooth connections, and accelerate the establishment of Bluetooth connections.
  • the first device acquires the second connection parameters according to the first type of data packet, including: the first device opens a second scan window according to the first type of data packet, and the second scan window is used to receive the second Type data packets, the second type data packets include second connection parameters; the first device parses the second type data packets to obtain the second connection parameters.
  • the first device triggers the opening of the second type of scanning window for establishing the second type of Bluetooth connection through the first type of data packet, and opens the second type of scanning window for receiving the second type of data packet in advance , to accelerate the establishment of Bluetooth connections.
  • the first type of data packet includes first identification information
  • the first identification information is used to indicate opening of the second scan window
  • the first device opens the second scan window according to the first type of data packet, including :
  • the first device opens the second scanning window according to the first identification information.
  • the first type of data packet contains the first identification information used to indicate the opening of the second scan window, and the accelerated establishment of Bluetooth is realized by opening the second type of scan window for receiving the second type of data packet in advance. connect.
  • the first type of data packet is a broadcast packet
  • the second type of data packet is a paging packet
  • the first type of Bluetooth connection is a low-power Bluetooth connection
  • the second type of Bluetooth connection is a classic Bluetooth connection.
  • This possible implementation is suitable for opening a scan window for receiving paging packets according to the first identification information included in the broadcast packet, so as to achieve successful interaction through the broadcast packet and accelerate the establishment of a classic Bluetooth connection.
  • the first device starts the second scan window according to the first type of data packet, including: the first device sends feedback of the first type of data packet to the second device according to the first type of data packet; A device receives first identification information from a second device, where the first identification information is used to indicate opening of a second scanning window; the first device opens the second scanning window according to the first identification information.
  • the second scanning window is opened according to the first identification information sent by the second device, and the second type of scanning window for receiving the second type of data packet is opened in advance, Enables accelerated establishment of Bluetooth connections.
  • the first type of data packet is a paging packet
  • the second type of data packet is a broadcast packet
  • the first type of Bluetooth connection is a classic Bluetooth connection
  • the second type of Bluetooth connection is a low-power Bluetooth connection.
  • the first type of data packet is a paging packet
  • the second type of data packet is a broadcast packet
  • the first type of Bluetooth connection is a classic Bluetooth connection
  • the second type of Bluetooth connection is a low-power Bluetooth connection.
  • This possible implementation is suitable for opening a scanning window for receiving broadcast packets according to the received indication of the first identification information after the paging packet is successfully interacted, so as to accelerate the establishment of the Bluetooth low energy connection.
  • the first device starts the second scan window according to the first type of data packet, including: the first device starts the second scan window within a preset time period after receiving the first type of data packet, The preset time period is within the first scan period.
  • the second scan window for receiving the second type of data packets is opened according to the first type of data packets within the preset time period in the first scan cycle, so as to accelerate the establishment of the Bluetooth connection.
  • the first device obtains the second connection parameter according to the first type of data packet, including: the first device obtains the first connection parameter according to the first type of data packet, and the first connection parameter is used to establish the first type of Bluetooth connection; the first device establishes a communication link of the first type of Bluetooth connection with the second device according to the first connection parameters; the first device obtains the first identification information sent by the second device through the communication link and corresponds to the first identification information
  • the second connection parameter, the first identification information is used to instruct the first device to establish the second type of Bluetooth connection.
  • the first identification information and the first identification information used to indicate the establishment of the second type of Bluetooth connection are exchanged on the communication link for establishing the first type of Bluetooth connection.
  • the corresponding second connection parameter realizes information sharing of different types of Bluetooth connections and accelerates the establishment of Bluetooth connections.
  • the first type of data packet is a broadcast packet
  • the first type of Bluetooth connection is a low-power Bluetooth connection
  • the second type of Bluetooth connection is a classic Bluetooth connection.
  • This possible implementation is suitable for broadcast packets containing the second connection parameters for establishing a classic Bluetooth connection, or exchanging the second connection parameters on the communication link for establishing a low-power Bluetooth connection, so as to accelerate the establishment of a classic Bluetooth connection.
  • the first type of data packet is a paging packet
  • the first type of Bluetooth connection is a classic Bluetooth connection
  • the second type of Bluetooth connection is a low-power Bluetooth connection.
  • This possible implementation is suitable for exchanging the second connection parameters on the communication link for establishing the classic Bluetooth connection, so as to accelerate the establishment of the low-power Bluetooth connection.
  • a method for establishing a Bluetooth connection including: the second device generates first identification information according to the second type of Bluetooth connection to be established; the second device alternately sends the first type of data packets and the second type of data packets , the first type of data packet is used to establish the first type of Bluetooth connection, and the second type of data packet is used to establish the second type of Bluetooth connection; the second device sends the first identification information.
  • the Bluetooth device determines the type of Bluetooth connection to be established, and accelerates The establishment of the second type of Bluetooth connection improves the speed of establishing the Bluetooth connection.
  • the first type of data packet includes: first identification information and second connection parameters corresponding to the first identification information, the first identification information is used to instruct the first device to establish a second type of Bluetooth connection, and the second The second connection parameter is used to establish a second type of Bluetooth connection with the first device.
  • the connection information for establishing the second type of Bluetooth connection in the data packet for establishing the first type of Bluetooth connection, the information sharing of different types of Bluetooth connections is realized, and the establishment of the Bluetooth connection is accelerated.
  • the first type of data packet includes first identification information.
  • the first type of data packet includes the first identification information for determining the establishment of the second type of Bluetooth connection, so as to accelerate the establishment of the Bluetooth connection.
  • the second device generates and sends the first identification information according to the second type of Bluetooth connection to be established, including: the second device responds to the feedback of the first type of data packet sent by the first device, sending to The first device sends first identification information.
  • the second device after exchanging the first type of data packets, the second device sends to the first device first identification information for determining to establish the second type of Bluetooth connection, so as to accelerate the establishment of the Bluetooth connection.
  • the first identification information is used to instruct the first device to open a second scan window, and the second scan window is used for the first device to receive the second type of data packet.
  • the first identification information indicates that the second-type scanning window for receiving the second-type data packets is opened in advance, so as to accelerate the establishment of the Bluetooth connection.
  • the method before the second device sends the first identification information, further includes: the second device establishes a communication link of the first type of Bluetooth connection with the first device according to the first type of data packet; the second The sending of the first identification information by the device includes: the second device sends the first identification information to the first device on the communication link, and the first identification information is used to instruct the first device to establish a second type of Bluetooth connection; the method also includes: the second The device sends the second connection parameter corresponding to the first identification information to the first device on the communication link, and the second connection parameter is used to establish the second type of Bluetooth connection.
  • the first identification information and the first identification information used to indicate the establishment of the second type of Bluetooth connection are exchanged on the communication link for establishing the first type of Bluetooth connection.
  • the corresponding second connection parameter realizes information sharing of different types of Bluetooth connections and accelerates the establishment of Bluetooth connections.
  • the first type of data packet is a broadcast packet
  • the second type of data packet is a paging packet
  • the first type of Bluetooth connection is a low-power Bluetooth connection
  • the second type of Bluetooth connection is a classic Bluetooth connection.
  • This possible implementation is suitable for exchanging the second connection parameters on the communication link for establishing the Bluetooth low energy connection, so as to accelerate the establishment of the classic Bluetooth connection.
  • the first type of data packet is a paging packet
  • the second type of data packet is a broadcast packet
  • the first type of Bluetooth connection is a classic Bluetooth connection
  • the second type of Bluetooth connection is a low-power Bluetooth connection.
  • This possible implementation is suitable for exchanging the second connection parameters on the communication link for establishing the classic Bluetooth connection, so as to accelerate the establishment of the low-power Bluetooth connection.
  • a Bluetooth communication device including: a processing unit configured to alternately perform periodic scanning, wherein the first scanning period is used for a first type of Bluetooth connection, and the second scanning period is used for a second type of Bluetooth connection connection; the receiving unit is used to receive the first type of data packet from the second device in the first scanning window of any first scanning period, wherein the first type of data packet is used to establish the first type of Bluetooth connection; the processing unit is also It is used to obtain the second connection parameter for establishing the second type of Bluetooth connection with the second device according to the first type of data packet; the processing unit is also used for establishing the second type of Bluetooth connection with the second device according to the second connection parameter.
  • the first type of data packet includes: first identification information and second connection parameters corresponding to the first identification information, the first identification information is used to instruct the first device to establish a second type of Bluetooth connection, and the processing The unit is also used for: parsing the first type of data packet, obtaining the first identification information, determining to establish the second type of Bluetooth connection according to the first identification information; the processing unit is specifically used for: parsing the first type of data packet, obtaining the first identification information corresponding to The second connection parameter.
  • the processing unit is specifically configured to: open a second scan window according to the first type of data packet, the second scan window is used to receive the second type of data packet, and the second type of data packet includes the second connection parameter ; Parse the second type of data packet to obtain the second connection parameter.
  • the first type of data packet includes first identification information
  • the first identification information is used to indicate opening of the second scanning window
  • the processing unit is specifically configured to: open the second scanning window according to the first identification information .
  • the apparatus further includes: a sending unit, configured to send feedback of the first type of data packet to the second device according to the first type of data packet; a receiving unit, further configured to receive feedback from the second device First identification information, where the first identification information is used to indicate opening of the second scanning window; the processing unit is specifically configured to open the second scanning window according to the first identification information.
  • the processing unit is specifically configured to: obtain the first connection parameter according to the first type of data packet, and the first connection parameter is used to establish the first type of Bluetooth connection; establish the Bluetooth connection with the second device according to the first connection parameter The communication link of the first type of Bluetooth connection; obtain the first identification information sent by the second device and the second connection parameters corresponding to the first identification information through the communication link, and the first identification information is used to instruct the first device to establish the second type Bluetooth connection.
  • a Bluetooth communication device including: a processing unit, configured to generate first identification information according to a second type of Bluetooth connection to be established; a sending unit, configured to alternately send the first type of data packets and the second type of data packets The data packet, the first type of data packet is used to establish the first type of Bluetooth connection, and the second type of data packet is used to establish the second type of Bluetooth connection; the sending unit is also used to send the first identification information.
  • the first type of data packet includes: first identification information and second connection parameters corresponding to the first identification information, the first identification information is used to instruct the first device to establish a second type of Bluetooth connection, and the second The second connection parameter is used to establish a second type of Bluetooth connection with the first device.
  • the first type of data packet includes first identification information.
  • the sending unit is specifically configured to: send the first identification information to the first device in response to the feedback of the first type of data packet sent by the first device.
  • the first identification information is used to instruct the first device to open a second scan window
  • the second scan window is used for the first device to receive the second type of data packet.
  • the processing unit is further configured to: establish a communication link of the first type of Bluetooth connection with the first device according to the first type of data packet; the sending unit is specifically configured to: Sending the first identification information, the first identification information is used to instruct the first device to establish a second type of Bluetooth connection; the sending unit is also used to: send the second connection parameter corresponding to the first identification information to the first device on the communication link, the first The second connection parameter is used to establish the second type of Bluetooth connection.
  • a Bluetooth communication device including: a processor configured to alternately perform periodic scanning, wherein the first scanning period is used for a first type of Bluetooth connection, and the second scanning period is used for a second type of Bluetooth connection connection; the receiver is used to receive the first type of data packet from the second device in the first scan window of any first scan period, wherein the first type of data packet is used to establish the first type of bluetooth connection; the processor is also The processor is used to obtain the second connection parameter for establishing the second type of Bluetooth connection with the second device according to the first type of data packet; the processor is also used for establishing the second type of Bluetooth connection with the second device according to the second connection parameter.
  • the first type of data packet includes: first identification information and second connection parameters corresponding to the first identification information, the first identification information is used to indicate the establishment of the second type of Bluetooth connection, and the processor further uses In: analyzing the first type of data packet, obtaining the first identification information, determining to establish the second type of Bluetooth connection according to the first identification information; the processor is specifically used for: analyzing the first type of data packet, obtaining the second identification information corresponding to the first identification information; Connection parameters.
  • the second scan window is opened according to the first type of data packet, the second scan window is used to receive the second type of data packet, the second type of data packet includes the second connection parameter; parse the second type of data package to get the second connection parameter.
  • the first type of data packet includes first identification information
  • the first identification information is used to indicate opening of the second scanning window
  • the processor is specifically configured to: open the second scanning window according to the first identification information .
  • the first type of data packet is a broadcast packet
  • the second type of data packet is a paging packet
  • the first type of Bluetooth connection is a low-power Bluetooth connection
  • the second type of Bluetooth connection is a classic Bluetooth connection.
  • the apparatus further includes: a transmitter, configured to send feedback of the first type of data packet to the second device according to the first type of data packet; a receiver, further configured to receive feedback from the second device The first identification information, where the first identification information is used to indicate to open the second scanning window; the processor is specifically used to open the second scanning window according to the first identification information.
  • the first type of data packet is a paging packet
  • the second type of data packet is a broadcast packet
  • the first type of Bluetooth connection is a classic Bluetooth connection
  • the second type of Bluetooth connection is a low-power Bluetooth connection.
  • the processor is specifically configured to: enable the second scanning window within a preset time period after receiving the first type of data packet, and the preset time period is within the first scanning period.
  • the processor is specifically configured to: obtain a first connection parameter according to a first type of data packet, and the first connection parameter is used to establish a first type of Bluetooth connection; establish a Bluetooth connection with a second device according to the first connection parameter A communication link of the first type of Bluetooth connection; through the communication link, the first identification information sent by the second device and the second connection parameters corresponding to the first identification information are acquired, and the first identification information is used for Instructing the first device to establish the second type of Bluetooth connection.
  • the first type of data packet is a broadcast packet
  • the first type of Bluetooth connection is a low-power Bluetooth connection
  • the second type of Bluetooth connection is a classic Bluetooth connection.
  • the first type of data packet is a paging packet
  • the first type of Bluetooth connection is a classic Bluetooth connection
  • the second type of Bluetooth connection is a low-power Bluetooth connection.
  • a Bluetooth communication device including: a processor, configured to generate first identification information according to a second type of Bluetooth connection to be established; a transmitter, configured to alternately send the first type of data packets and the second type of data packets A data packet, the first type of data packet is used to establish the first type of Bluetooth connection, and the second type of data packet is used to establish the second type of Bluetooth connection; the transmitter is also used to send the first identification information.
  • the first type of data packet includes: first identification information and second connection parameters corresponding to the first identification information, the first identification information is used to instruct the first device to establish a second type of Bluetooth connection, and the second The second connection parameter is used to establish a second type of Bluetooth connection with the first device.
  • the first type of data packet includes first identification information.
  • the sender is specifically configured to: send the first identification information to the first device in response to the feedback of the first type of data packet sent by the first device.
  • the first identification information is used to instruct the first device to open a second scan window
  • the second scan window is used for the first device to receive the second type of data packet.
  • the processor is further configured to: establish a communication link of the first type of Bluetooth connection with the first device according to the first type of data packet; Sending first identification information, where the first identification information is used to instruct the first device to establish a second type of Bluetooth connection; the transmitter is also used to send second connection parameters corresponding to the first identification information to the first device on the communication link, and The second connection parameter is used to establish the second type of Bluetooth connection.
  • the first type of data packet is a broadcast packet
  • the second type of data packet is a paging packet
  • the first type of Bluetooth connection is a low-power Bluetooth connection
  • the second type of Bluetooth connection is a classic Bluetooth connection.
  • the first type of data packet is a paging packet
  • the second type of data packet is a broadcast packet
  • the first type of Bluetooth connection is a classic Bluetooth connection
  • the second type of Bluetooth connection is a low-power Bluetooth connection.
  • a seventh aspect provides a Bluetooth communication system, including the devices provided in the third aspect and the fourth aspect; or, the devices provided in the fifth aspect and the sixth aspect.
  • a computer-readable storage medium including computer-executable instructions, and when the computer-executable instructions are run on the computer, the computer executes any one of the methods provided in the first aspect or the second aspect.
  • a computer program product including computer-executable instructions, and when the computer-executable instructions are run on a computer, the computer is made to execute any one of the methods provided in the first aspect or the second aspect.
  • a chip in a tenth aspect, includes: a processor and an interface, the processor is coupled to the memory through the interface, and when the processor executes the computer program or instruction in the memory, any of the functions provided by the first aspect or the second aspect A method is executed.
  • the beneficial effects of the devices corresponding to the methods can refer to the beneficial effects of the corresponding methods, which will not be repeated here.
  • various possible implementations of any one of the above-mentioned aspects can be combined under the premise that the solutions are not contradictory.
  • Fig. 1 is an interactive flow chart for establishing a classic Bluetooth connection
  • Fig. 2 is a schematic diagram of a scan window for establishing a classic Bluetooth connection
  • FIG. 3 is an interactive flow chart for establishing a low-power Bluetooth connection
  • FIG. 4 is a schematic diagram of establishing a low-power bluetooth connection scanning window
  • FIG. 5 is an interactive flowchart of a Bluetooth connection method provided by an embodiment of the present application.
  • FIG. 6 is a schematic diagram of a scanning window of a Bluetooth connection method provided by an embodiment of the present application.
  • FIG. 7 is a schematic diagram of a scanning window of a Bluetooth connection method provided by an embodiment of the present application.
  • FIG. 8 is an interactive flowchart of a Bluetooth connection method provided by an embodiment of the present application.
  • FIG. 9 is an interactive flowchart of a Bluetooth connection method provided by an embodiment of the present application.
  • FIG. 10 is an interactive flowchart of a Bluetooth connection method provided by an embodiment of the present application.
  • FIG. 11 is a schematic diagram of a scanning window of a Bluetooth connection method provided by an embodiment of the present application.
  • FIG. 12 is an interactive flowchart of a Bluetooth connection method provided by the embodiment of the present application.
  • FIG. 13 is a schematic diagram of the composition of a Bluetooth communication device provided by an embodiment of the present application.
  • FIG. 14 is a schematic diagram of a hardware structure of a Bluetooth communication device provided by an embodiment of the present application.
  • the scanner When the first two Bluetooth devices establish a classic Bluetooth (BT) connection or a Bluetooth Low Energy (BLE) connection, the device that performs a fixed-cycle scan during the establishment of the Bluetooth connection is called the scanner, and the device that initiates the connection request is called the connecter. , the scanner and the connecting party need to go through four processes to realize the Bluetooth connection, including: device discovery, parameter interaction, connection confirmation and information interaction.
  • BT Bluetooth
  • BLE Bluetooth Low Energy
  • the process of establishing a BT connection includes:
  • the connecting party sends a paging packet (ID packet), and correspondingly, the scanning party receives the paging packet.
  • ID packet a paging packet
  • the ID packet sent by the connected party is used by the scanner to discover the connected party.
  • the ID packet is used for establishing a connection between the connecting party and the scanning party, and the ID packet carries a device synchronization code, and is used for the connecting party to identify the determined scanning party.
  • Frequency hopping refers to dividing the frequency band into several channels, and "jumping" from one channel to another for data transmission.
  • the scanner opens a page scan window (page scan) for fixed-period scanning, and the page scan is used to receive ID packets.
  • page scan page scan
  • the scanning side uses a BT scanning period of 1.28s to perform BT scanning, and two BT scanning windows can be opened in each scanning period.
  • the ID packet sent by the connected party "collides" with the BT scanning window opened by the scanner, the scanner successfully receives the ID packet, and the scanner and the connected party successfully interact. Therefore, before S101, the ID packet sent by the connecting party by frequency hopping is an ID packet that was not successfully received by the scanning party.
  • the duration of the BT scanning cycle of the scanner and the duration and number of BT scanning windows opened in each BT scanning cycle can be determined according to the device's demand for power consumption. The longer the total duration of the BT scanning window, The higher the power consumption, the present application does not limit it.
  • the scanning direction returns an ID packet to the connecting party, and correspondingly, the connecting party receives the ID packet replied by the scanning party.
  • the scanning side parses the ID packet sent by the connecting side and replies with the ID packet, and the ID packet replied by the scanning side is used to confirm that the connection is supported.
  • the ID packet returned by the scanner carries the device synchronization code.
  • the ID packet replied by the scanning party may also be referred to as a feedback of the ID packet sent by the connecting party, and correspondingly, the connecting party receives the feedback.
  • the connecting party sends a frequency hopping synchronization (FHS) packet, and correspondingly, the scanning party receives the FHS packet.
  • FHS frequency hopping synchronization
  • the connecting party After receiving the ID packet, the connecting party parses the ID packet and determines that the scanning party supports the connection. At this time, the connecting party sends an FHS packet to the scanning party, wherein the FHS packet includes the frequency point, time slot and address of the connecting party's frequency hopping signal Information, that is, specific communication resources for establishing a BT connection, frequency points and time slots are used to realize time and frequency synchronization between the scanning party and the connecting party during the process of establishing a connection.
  • the above-mentioned specific communication resource for establishing the BT connection may also be referred to as connection information for establishing the BT connection.
  • the scanning direction returns an acknowledgment (acknowledge) frame to the connecting party, and correspondingly, the connecting party receives the ACK frame.
  • the ACK frame is used to confirm that the scanner has successfully received the FHS packet and parse the time slot and address information carried in the FHS packet.
  • connection direction sends a test (POLL) packet to the scanner, and correspondingly, the scanner receives and parses the POLL packet.
  • POLL test
  • the POLL packet is sent to the scanner through the above-mentioned specific communication resources in the above-mentioned communication link, and is used to confirm whether the scanner can receive it successfully.
  • the POLL packet may contain data information, or may not contain data information.
  • the scanning direction returns a null (NULL) packet to the connecting party, and correspondingly, the connecting party receives and parses the NULL packet.
  • NULL null
  • the NULL packet is also sent to the connecting party through the above-mentioned specific communication resources in the above-mentioned communication link, indicating that the scanning party has successfully received the POLL packet, and the process of determining that the connecting party and the scanning party can successfully transmit signals on the above-mentioned specific communication resources is completed.
  • the connecting party exchanges device information with the scanning party.
  • the connecting party and the scanning party send device information such as the data packet type supported by each to transmit data information later, confirm the bearer mode of the mutual data information between the two parties establishing the BT connection, and complete the BT connection.
  • the device discovery process is completed through the above steps S101-S102, the parameter interaction process is completed in steps S103-S104, the connection confirmation process is completed in steps S105-S106, and the information exchange process is completed in step S107, completing the complete BT connection process.
  • the process of establishing a BLE connection includes:
  • the connecting party sends a broadcast packet, and correspondingly, the scanning party receives the broadcast packet.
  • the connected party sends a broadcast packet by frequency hopping for the scanning party to discover the connected party's device.
  • broadcasting is divided into traditional advertising (legacy advertising) and extended advertising (extended advertising).
  • the advertising packets used to establish connections in traditional broadcasting include connectable non-directed broadcast (ADV_IND) packets and connectable directed broadcast (ADV_DIRECT_IND) packets. and Scannable Undirected Advertisement (ADV_SCAN_IND) packets.
  • the ADV_IND package indicates that the current device can accept the connection of any device, which contains the address information of the connected party; the ADV_DIRECT_IND package contains the device address of the determined scanner, and the determined scanner scans and receives and establishes a connection; and the ADV_SCAN_IND package can send a broadcast data and is scanned by the scanner, but no connection can be established.
  • the scanner opens the broadcast scan window (BLE SCAN) or the connection scan window (INIT) for fixed-period scanning.
  • BLE SCAN is used to receive the ADV_IND package sent by the connected party
  • INIT is used to receive the ADV_SCAN_IND package sent by the connected party.
  • the ADV_IND packet and the corresponding broadcast scan window are taken as examples for description.
  • Other types of broadcast packets and corresponding scan windows can be understood by reference, and will not be described again.
  • the scanning side adopts a scanning period of 1.28s to open a scanning window for BLE scanning.
  • the scanner successfully receives the ADV_IND packet, and the scanner and the connected party successfully interact. Therefore, the ADV_IND packet sent by the connected party by frequency hopping before S301 is an ADV_IND packet not successfully received by the scanning party.
  • the BLE scanning period of the scanner and the duration of opening the BLE scanning window in each BLE scanning period also depend on the power consumption requirements of the device. The longer the total duration of opening the BLE scanning window, the higher the power consumption. This application is not limited to this.
  • the scanning direction returns a connection information (CONN_IND) packet to the connecting party, and correspondingly, the connecting party receives the CONN_IND packet.
  • CONN_IND connection information
  • the scanner parses the ADV_IND packet sent by the connecter and replies to the CONN_IND packet.
  • the scanner replies with the CONN_IND packet to confirm the support of the connection.
  • the CONN_IND packet carries access code, frequency point, time slot, address and other information, and the access code is used for Confirm the scanning party and the connecting party to establish the connection.
  • the frequency point, time slot and address information indicate the frequency point, time slot and address information used by the scanning party to send signals to the connecting party, that is, the specific communication resources for the scanning party to establish a BLE connection with the connecting party , which is used to establish a time- and frequency-synchronized connection between the scanning party and the connecting party.
  • the above-mentioned specific communication resources for establishing the BLE connection may also be referred to as connection information for establishing the BLE connection.
  • the scanning direction sends a data packet (Data Packet) to the connecting party.
  • Data Packet a data packet
  • the data packet is sent by the scanning party to the connecting party in the above-mentioned communication link according to the above-mentioned specific communication resource, which is called a confirmation data packet in this application.
  • the Data Packet is used to confirm whether the connected party has received the CONN_IND packet and successfully obtained the specific communication resources in it.
  • the Data Packet can also contain device capability information such as the data packet type supported by the scanner for transmitting data information, for receiving Connection party reference and selection to Data Packet.
  • the connecting party receives the Data Packet and replies to the Data Packet.
  • the scanning party receives the Data Packet.
  • the connected party When the connected party successfully receives the Data Packet sent by the scanner, it means that it has successfully received the CONN_IND package and obtained the specific communication resources in it.
  • the connecting party replies Data Packet in the above communication link, and completes the process of determining whether the connecting party and the scanning party can successfully transmit signals on the above specific communication resources.
  • the Data Packet replied by the connected party can also contain device capability information such as the data packet type supported by the connected party for transmitting data information, so that the scanner receiving the Data Packet can determine the bearer mode of the interactive data information between the two parties establishing the BLE connection.
  • device capability information such as the data packet type supported by the connected party for transmitting data information
  • the device discovery process is realized through the above step S301, the parameter interaction process is realized in step S302, the connection confirmation and information interaction process are completed in steps S303-S304, and a complete BLE connection is established.
  • Bluetooth devices both the scanning and connecting devices are Bluetooth devices.
  • a Bluetooth device refers to a device that supports Bluetooth connectivity.
  • Bluetooth devices are divided into three types based on BLE connection and BT connection, namely single-mode Bluetooth, dual-mode Bluetooth and classic Bluetooth.
  • dual-mode Bluetooth supports BLE connection and BT connection
  • single-mode Bluetooth only supports BLE connection
  • classic Bluetooth only supports Support BT connection.
  • the bluetooth device can be a terminal, and the terminal is used to provide one or more of voice service and data connectivity service to the user.
  • a terminal may also be referred to as user equipment (UE), terminal equipment, access terminal, subscriber unit, subscriber station, mobile station, remote station, remote terminal, mobile device, user terminal, wireless communication device, user agent, or user device.
  • UE user equipment
  • Some of these devices are single-mode Bluetooth or classic Bluetooth, that is, support One connection method, BT connection or BLE connection, some are dual-mode Bluetooth, both connection methods are supported; the other is an intelligent control center terminal device, which generally has complex functions and needs to be compatible with various low-power nodes, such as mobile phones, Smart TVs, augmented reality (AR) devices, virtual reality (VR) devices, tablets, laptops, ultra-mobile personal computers (UMPCs), netbooks, personal digital assistants (personal digital assistants) digital assistant, PDA), etc., such devices usually need to support both BT and BLE connection methods.
  • the organic combination of these two types of devices creates a variety of application scenarios, which greatly facilitates people's communication and life.
  • the BT scanning window and the BLE scanning window must be opened normally.
  • the intelligent control center terminal device (such as a mobile phone) can determine the type of Bluetooth connection to be established according to the application.
  • the application chooses to establish a BT connection (at this time, the application can be called a BT application)
  • the BLE scanning window of the mobile phone first receives the ADV_IND packet for establishing a BLE connection, it will choose to discard it until the ID packet is received on the BT scanning window, and then Execute the above steps S102-S107; similarly, if the application chooses to establish a BLE connection (at this time, the application can be called a BLE application), if the BT scanning window of the mobile phone first receives the ID packet for establishing a BT connection, it will choose to discard it until After receiving the ADV_IND packet on the BLE scanning window, execute the above steps S302-S304.
  • connection speed of the BT connection and the connection speed of the BLE connection largely depend on their corresponding scanning duty cycles.
  • the scan duty cycle refers to the ratio of the scan window time to the scan cycle. The larger the duty cycle, the faster the connection speed and the greater the power consumption. Most devices require a difficult trade-off between power consumption and connection speed.
  • the present application provides a Bluetooth connection method, which can be applied between Bluetooth devices.
  • the scanning party receives an ID packet or an ADV_IND packet from the connecting party.
  • a BT connection can be established with the connecting party according to the ADV_IND packet (hereinafter referred to as BT Over BLE for short).
  • BLE Over BLE For BLE applications, if the ID packet is received first, a BLE connection can be established with the connected party according to the ID packet (hereinafter referred to as BLE Over BT for short), thereby increasing the Bluetooth connection speed.
  • the method provided by this application is applicable to Bluetooth technology, and can also be applied to other related connection technologies, such as the Green Tooth technology of the Star Alliance.
  • Scheme 1 to Scheme 3 are the specific implementation methods of BT Over BLE
  • Scheme 4 to Scheme 5 are the specific implementation methods of BLE Over BT.
  • Option 1 triggers the opening of the BT scan window to receive ID packets through the ADV_IND packet to improve the BT connection speed.
  • solution one may include S501-S508 when implemented.
  • the connected party alternately sends ADV_IND packets and ID packets, and the scanning party opens a BT scanning window and a BLE scanning window for scanning.
  • the current connected party sends an ID packet according to the above S101 in the mode of establishing a BT connection, and sends an ADV_IND packet in accordance with the above S301 in the mode of establishing a BLE connection.
  • the connected party switches between the two modes of establishing a BT connection and a BLE connection to achieve alternate Send ADV_IND package and ID package.
  • switching between the two modes can be performed by setting the duration of each mode, such as enabling the BT connection mode, sending an ID packet with a duration of A according to the above S101, switching to the BLE connection mode and sending an ADV_IND packet with a duration of B according to the above S301.
  • the connected party sends ADV_IND packets and ID packets alternately.
  • ADV_IND packets and ID packets can be sent alternately according to a certain number, or can be sent according to a certain interval.
  • the scanning party opens the BLE scanning window and the BT scanning window according to Scanning is performed in the respective scanning cycle, when the BLE scanning window scans the ADV_IND packet, the BLE interaction is performed, and when the BT scanning window scans the ID packet, the BT interaction is performed.
  • the connected party can alternately send ADV_IND packets and ID packets under the instruction of the application layer.
  • the connected party supports two types of Bluetooth connections.
  • the connected party can alternately send ADV_IND package and ID package to accelerate the establishment of BT connection or BLE connection.
  • the connecting party determines to establish a BT connection
  • the connecting party generates identification information corresponding to the BT connection (which may be referred to as first identification information), and the first identification information is used to instruct the scanning party to open the BT scanning window.
  • the scanning party can Receive the ID packet in the open BT scan window and establish a BT connection.
  • the first identification information may be sent in the ADV_IND packet.
  • the scanner receives the ADV_IND packet, and quickly opens a BT scanning window to receive the ID packet.
  • the BLE scanning window of the scanner first receives the ADV_IND packet, the scanner parses the ADV_IND packet and obtains the first identification information, opens the BT scanning window according to the first identification information, and determines to establish a BT connection, that is, the BLE first interacts successfully, triggering the opening of the BT scanning window .
  • quickly opening the BT scanning window refers to opening the BT scanning window within a preset time period, and the preset time period is within the scanning cycle where the BLE scanning window is located, and the preset time period may be preset.
  • the BT scan window is quickly opened according to the ADV_IND packet.
  • the BT scanning window may be started after a preset period of time after the BLE scanning window is separated by two time slots (slots), which is not limited in the present application.
  • the BLE scanning window after the BLE scanning window receives the ADV_IND packet, it will no longer perform BLE scanning according to the indication of the first identification information, that is, the BLE scanning window is closed after receiving the ADV_IND packet, so the BLE scanning
  • the opening time of the window is less than or equal to 60ms, and the opening time of the BT scanning window can be adjusted according to the closing of the BLE scanning window.
  • the scanning side does not need to reply after receiving the ADV_IND packet, and the connecting side keeps sending ADV_IND packets and ID packets alternately.
  • the scanner opens a BT scanning window to receive ID packets to establish a BT connection.
  • the number and size of BT scanning windows can be adjusted according to the power consumption performance of the device. Two BT scanning windows are opened in the figure. Multiple BT scan windows may also be opened, or the BT scan windows may be continuously opened for receiving ID packets.
  • S503-S508 are the same as above-mentioned S102-S107 respectively.
  • the method provided by scheme 1 in the case that the BLE scanning window of the scanning party receives the ADV_IND packet first, opens the BT scanning window according to the first identification information contained in the ADV_IND packet, so that the ID packet can be received as soon as possible in the BT scanning window, and There is no need to receive ID packets through the originally later BT scanning window, thereby improving the Bluetooth connection speed.
  • the BT connection is established on the basis of the successful interaction between the connecting party and the scanning party based on the ADV_IND packet of BLE. Without shortening the scanning cycle of each type of Bluetooth, the scanning party maintains the current BT scanning window and BLE scanning. The period and duration of window opening do not increase the power consumption of the scanner, speed up the BLE device discovery process, and optimize the Bluetooth response time by about 50%.
  • the BLE scan window may be called a first scan window, and the BT scan window may be called a second scan window.
  • the scanning period in which the first scanning window is located may be referred to as a first scanning period, and the scanning period in which the second scanning window is located may be referred to as a second scanning period.
  • the ADV_IND packet may be called a first type data packet, and the ID packet may be called a second type data packet.
  • a BLE connection may be referred to as a first type of Bluetooth connection, and a BT connection may be referred to as a second type of Bluetooth connection.
  • the second solution is to increase the speed of the BT connection by carrying the information used to establish the BT connection in the ADV_IND packet.
  • solution 2 may include S801-S805 during implementation.
  • the connected party alternately sends ADV_IND packets and ID packets, and the scanning party opens a BT scanning window and a BLE scanning window to scan.
  • the description about the connecting party sending ADV_IND packets and ID packets alternately and the scanning party opening the BT scanning window and the BLE scanning window for scanning can be referred to above S501.
  • the ADV_IND packet carries identification information (may be referred to as first identification information) and an FHS packet corresponding to the first identification information.
  • the FHS packet contains the connection information for establishing a BT connection between the scanner and the connecting party
  • the FHS packet corresponding to the first identification information can also be understood as the scanning party corresponding to the first identification information establishing a BT connection with the connecting party connection information.
  • the scanner receives the ADV_IND packet, and replies with an active scanning request SCAN_REQ.
  • the scanner receives the ADV_IND packet, that is, the BLE interaction succeeds first, the scanner parses the ADV_IND packet, obtains the first identification information, determines to establish a BT connection according to the first identification information, and obtains the connection information in the FHS packet corresponding to the first identification information, and establishes BT connection.
  • the scanner replies with SCAN_REQ according to the connection information in the FHS packet corresponding to the first identification information contained therein.
  • SCAN_REQ has the same function as the ACK frame, and is used to confirm that the scanner has received the ANV_IND packet carrying the FHS packet. It should be noted that, the scanner will reply SCAN_REQ only when it confirms the first identification information in the received ADV_IND packet and the connection information in the FHS packet corresponding to the first identification information.
  • time slot carried in the ANV_IND packet needs to be dynamically refreshed according to the local clock. This time slot is the same as the time slot carried in the FHS packet in S103 to ensure the accuracy of time and frequency synchronization between the connecting party and the scanning party.
  • S803-S805 are the same as above-mentioned S105-S107 respectively, that is, S803-S805 complete the part of connection confirmation and information exchange in the BT connection, and realize the BT connection.
  • the method provided by scheme 2 is to carry the connection information in the FHS packet in the ADV_IND packet sent by the connecting party, and when the BLE scanning window of the scanning party receives the ADV_IND packet first, by parsing the first identification information carried in the ADV_IND packet and The connection information in the FHS packet corresponding to the first identification information directly establishes a BT connection, realizing the establishment of a BT connection through the information exchanged by BLE, without receiving the ID packet through the BT scanning window and then performing BT interaction to establish a BT connection, eliminating the need for a BT connection In the part of device discovery and parameter interaction, on the basis of the successful BLE first interaction, the Bluetooth connection speed is improved.
  • the BLE scan window may be called a first scan window, and the BT scan window may be called a second scan window.
  • the scanning period in which the first scanning window is located may be referred to as a first scanning period, and the scanning period in which the second scanning window is located may be referred to as a second scanning period.
  • the ADV_IND packet may be called a first type data packet, and the ID packet may be called a second type data packet.
  • a BLE connection may be referred to as a first type of Bluetooth connection, and a BT connection may be referred to as a second type of Bluetooth connection.
  • connection information (which may be called the second connection parameter) for establishing a BT connection is exchanged on the BLE link to increase the speed of the BT connection.
  • solution three may include S901-S906 when implemented.
  • S901 is the same as S501.
  • S902-S903 are the same as S302-S303 respectively, and complete the process of parameter interaction and connection confirmation in the BLE connection.
  • the connected party sends identification information (which may be referred to as first identification information) and an FHS packet corresponding to the first identification information on the BLE link.
  • identification information which may be referred to as first identification information
  • FHS packet corresponding to the first identification information on the BLE link.
  • the FHS packet contains the connection information for establishing a BT connection between the scanner and the connecting party
  • the FHS packet corresponding to the first identification information can also be understood as the scanning party corresponding to the first identification information establishing a BT connection with the connecting party connection information.
  • the connecting party can send the first identification information and the FHS package corresponding to the first identification information to the scanning party on the BLE link according to the communication resource carried in the CONN_IND packet, and the first identification information is used to instruct the scanning party to establish a BT connection.
  • the first identification information may also be included in the FHS packet and sent.
  • the scanner receives the FHS packet and parses to obtain the first identification information, and uses the connection information in the FHS packet to establish a BT connection according to the instruction of the first identification information.
  • Fig. 9 is an example where the first identification information is included in the FHS packet.
  • S905-S906 are the same as S104 and S107 respectively. That is, when the scanner receives the FHS packet, replies with an ACK frame, and completes the information exchange part on the BT link.
  • the method provided by Scheme 3 is to establish a BLE connection when the BLE scanning window of the scanner first receives the ADV_IND packet, and exchange the FHS packet for the BT connection on the link where the BLE connection is established, so as to avoid scanning the ADV_IND packet first. Discarding leads to waste of resources, saves the process of device discovery, parameter interaction and connection confirmation under BT connection, establishes BT connection on the basis of successful BLE interaction and establishment of BLE connection, and improves Bluetooth connection speed.
  • step S904 is sent on the communication link where the connection confirmation is completed in step S903, which can ensure the security of the communication. If in order to meet the connection requirements of the connecting party faster, the above step S904 can also be performed after step S902, that is, after the parameter interaction for establishing the BLE connection is completed, the communication link between the scanning party and the connecting party has been established, and the connection between the two parties During the confirmation process, the connecting party can send an FHS packet on the above communication link for the scanning party to receive and establish a BT connection.
  • the BLE scan window may be called a first scan window, and the BT scan window may be called a second scan window.
  • the scanning period in which the first scanning window is located may be referred to as a first scanning period, and the scanning period in which the second scanning window is located may be referred to as a second scanning period.
  • the ADV_IND packet may be called a first type data packet, and the ID packet may be called a second type data packet.
  • a BLE connection may be referred to as a first type of Bluetooth connection, and a BT connection may be referred to as a second type of Bluetooth connection.
  • the above three schemes can realize BT Over BLE.
  • the connecting party sends ADV_IND packets and ID packets alternately, the scanning party opens the BT scanning window and the BLE scanning window, and receives the ADV_IND packet first in the BLE scanning window, that is, on the basis of the successful interaction of BLE first. , instruct the scanner to open the BT scanning window to establish a BT connection through the first identification information carried in the ADV_IND packet, or carry the connection information used to establish the BT connection in the ADV_IND packet, or establish a communication link of the BLE connection according to the ADV_IND packet, in The connection information of the BT connection is exchanged on the BLE link to realize the BT connection.
  • the above three schemes can be accelerated without changing the way the existing connecting party sends connection requests and the way the scanning party scans, that is, maintaining the current frequency of sending ID packets and ADV_IND packets and the opening time of the BT scanning window and the BLE scanning window. Improve the speed of BT connection establishment and improve the intelligence of the device.
  • Solution 4 triggers the opening of the BLE scanning window to receive the ADV_IND packet through the FHS packet, so as to accelerate the establishment of the BLE connection.
  • solution four may include S1001-S1008 when implemented.
  • S1001 is the same as S501.
  • the connecting party determines to establish a BLE connection
  • the connecting party when the connecting party determines to establish a BLE connection, the connecting party generates identification information corresponding to the BLE connection (which may be referred to as first identification information), and the first identification information is used to instruct the scanning party to open the BLE scanning window.
  • the scanning party Can receive ADV_IND packet and establish BLE connection.
  • step S1002-S1003 are the same as S102-S103 respectively.
  • step S1003 the FHS packet sent by the connected party includes the first identification information in step S1001.
  • the scanner receives the FHS packet, quickly opens the BLE scanning window to receive the ADV_IND packet, and replies with the ID packet.
  • the BT scanning window of the scanner first receives the ID packet, that is, the BT first interacts successfully, and then receives the FHS packet sent by the connected party.
  • the scanner parses the FHS packet and obtains the first identification information in it, and opens the BLE scanning window according to the first identification information , make sure to establish a BLE connection, and reply with an ID packet.
  • quickly opening the BLE scanning window refers to opening the BT scanning window within a preset time period, and the preset time period is within the scanning cycle where the BLE scanning window is located, and the preset time period may be preset.
  • the BLE scan window can be opened after the preset interval of two time slots (slots) between the BT scan window, and the opened size of the BLE scan window can be adjusted, which is not limited in this application.
  • the BT scanning window will no longer perform BT scanning according to the indication of the first identification information after receiving the FHS packet, that is, the BT scanning window is closed after receiving the FHS packet.
  • the opening time of the first BT scanning window is less than or equal to 10ms, and the second BT scanning window is not opened for BT scanning.
  • the opening time of the BLE scanning window can be determined according to the BT The closing of the scanning window is adjusted.
  • S1005-S1008 are the same as above-mentioned S301-S304 respectively.
  • the scanning party when the BT scanning window of the scanning party receives the ID packet first, the scanning party receives the FHS packet sent by the connecting party, opens the BLE scanning window according to the first identification information contained in the FHS packet, and opens the BLE
  • the scanning window can make the ADV_IND packet received as soon as possible in the BLE scanning window, instead of receiving the ADV_IND packet through the originally later BLE scanning window, thereby improving the Bluetooth connection speed.
  • the BLE connection is established on the basis of the successful interaction between the connecting party and the scanning party based on the BT-based ID packet. Without shortening the scanning cycle of each type of Bluetooth, that is, without increasing the power consumption of the scanning party, The BLE device discovery process is accelerated, and the Bluetooth response time is optimized by about 50%.
  • the BT scan window may be called a first scan window, and the BLE scan window may be called a second scan window.
  • the scanning period in which the first scanning window is located may be referred to as a first scanning period, and the scanning period in which the second scanning window is located may be referred to as a second scanning period.
  • the ID packet may be called a first type data packet, and the ADV_IND packet may be called a second type data packet.
  • the BT connection may be referred to as the first type of Bluetooth connection, and the BLE connection may be referred to as the second type of Bluetooth connection.
  • Solution 5 By establishing a BT connection and exchanging connection information for establishing a BLE connection on the BT link, the speed of the Bluetooth connection is improved.
  • solution five may include S1201-S1210 when implemented.
  • S1201 is the same as S501.
  • S1202-S1206 are the same as S102-S106 respectively.
  • the scanner receives the FHS packet to establish a BT link.
  • the connecting party sends identification information (may be referred to as first identification information) and a CONN_IND packet corresponding to the first identification information on the BT link, and correspondingly, the scanning party receives the first identification information and the CONN_IND packet corresponding to the first identification information .
  • the CONN_IND packet contains the connection information for the scanner to establish a BLE connection with the connecter
  • the CONN_IND packet corresponding to the first identification information can also be understood as the scanner and the connecter corresponding to the first identification information establish a BLE connection connection information.
  • the connecting party sends the first identification information and a CONN_IND packet corresponding to the first identification information to the scanning party on the BT link, and the first identification information is used to instruct the scanning party to establish a BLE connection.
  • the first identification information can also be sent in the CONN_IND packet.
  • the scanner After receiving the CONN_IND packet, the scanner parses to obtain the first identification information, and uses the connection information in the CONN_IND packet to establish a BLE connection according to the instruction of the first identification information.
  • FIG. 12 is an example where the first identification information is included in the CONN_IND packet.
  • the scanning party replies with an ACK frame, and correspondingly, the connecting party receives the ACK frame.
  • S1209-S1210 are the same as S303-S304 respectively.
  • the method provided by scheme 5 establishes a BT connection when the BT scanning window of the scanner first receives the ID packet, and exchanges the CONN_IND packet for the BLE connection on the link establishing the BT connection, so as to avoid scanning the ID packet first and then Discarding leads to waste of resources, saves the process of device discovery and parameter interaction under BLE connection, and establishes BT connection on the basis of BLE first interaction and establishment of BLE connection to improve the Bluetooth connection speed.
  • step S1207 is sent on the communication link where the connection confirmation is completed in step S1206, and the link can guarantee the security of the communication. If in order to meet the connection needs of the connecting party faster, the above step S1207 can also be performed after step S1204, that is, after the parameter interaction for establishing the BT connection is completed, the communication link between the scanning party and the connecting party has been established, and the connection between the two parties During the confirmation process, the connecting party can send a CONN_IND packet on the above communication link for the scanning party to receive and establish a BLE connection.
  • the BT scan window may be called a first scan window, and the BLE scan window may be called a second scan window.
  • the scanning period in which the first scanning window is located may be referred to as a first scanning period, and the scanning period in which the second scanning window is located may be referred to as a second scanning period.
  • the ID packet may be called a first type data packet, and the ADV_IND packet may be called a second type data packet.
  • the BT connection may be referred to as the first type of Bluetooth connection, and the BLE connection may be referred to as the second type of Bluetooth connection.
  • Both of the above schemes 4 and 5 can realize BLE Over BT.
  • the connecting party sends ADV_IND packets and ID packets alternately, the scanning side opens the BT scanning window and the BLE scanning window, and receives the ID packet first in the BT scanning window, that is, the BT interacts successfully first.
  • exchange FHS packets through ID packets instruct the scanner to open the BLE scanning window to establish a BLE connection according to the first identification information carried in the FHS packet, or establish a BT connection communication link according to the ID packet, and exchange BLE on the BT link.
  • the connection information of the connection realizes the BLE connection.
  • the scanner only opens one type of scanning window, such as the scanning side does not start the BT scanning window, but only opens the BLE scanning window, and executing the above-mentioned schemes 1 to 3 can establish a BT connection or A BLE connection can be established to achieve power consumption optimization of about 13-50%; or, the scanner does not start the BLE scan window, but only opens the BT scan window, and executes the above-mentioned scheme 4 and 5 to establish a BLE connection or a BT connection. Achieve power consumption optimization of about 50%-87%.
  • the scanning party is used as the first device
  • the connecting party is used as the second device.
  • the second device generates and sends the first identification information according to the second type of Bluetooth connection to be established, and the second device alternately sends the first type of data packet and the second type of data packet for device discovery, wherein the first type of data packet is used for The first type of Bluetooth connection is established, and the second type of data packet is used to establish the second type of Bluetooth connection.
  • the first device alternately performs periodic scans, wherein the first scan period is used for the first type of Bluetooth connection, and the second scan period is used for the second type of Bluetooth connection; the first device is in the first scan window of any first scan period
  • the first type of data packet is received from the second device; the first device obtains the second connection parameter for establishing the second type of Bluetooth connection with the second device according to the first type of data packet; the first device obtains the second connection parameter according to the second connection parameter and the second type of Bluetooth connection.
  • the two devices establish a second type of Bluetooth connection. Wherein, when the first type of data packet is an ID packet, a BLE connection is established; or, when the second type of data packet is an ADV_IND packet, a BT connection is established.
  • the acquisition by the first device of the second connection parameters used to establish the second type of Bluetooth connection with the second device according to the first type of data packet includes the following three situations:
  • the first device opens the second type of scanning window according to the first type of data packet, and the second type of scanning window is used to receive the second type of data packet, wherein when the first type of data packet is an ID packet, it triggers the start of BLE scanning window, or, when the first type of data packet is an ADV_IND packet, trigger to open the BT scan window.
  • the first type of data packet is an ID packet
  • the first type of data packet is an ID packet
  • it triggers the start of BLE scanning window
  • the first type of data packet is an ADV_IND packet
  • Case 2 The first device establishes the first type of Bluetooth connection according to the first type of data packet, exchanges the second type of Bluetooth connection information on the link of the first type of Bluetooth connection, and establishes the second type of Bluetooth connection according to the second type of Bluetooth connection information .
  • the first type of data packet is an ID packet
  • a BT connection is established and a CONN_IND packet is received on the BT link
  • a BLE connection is established according to the CONN_IND packet
  • a BLE connection is established and the BLE
  • the FHS packet is received on the link
  • a BT connection is established according to the FHS packet.
  • Case 3 When the first type of data packet is an ADV_IND packet, which carries the first identification information indicating the establishment of a BT connection and the connection information in the FHS packet corresponding to the first identification information, the first device according to the FHS packet in the ADV_IND packet The connection information directly establishes the BT connection. As described in Scheme 2 above.
  • the scanning party when the connecting party initiates a connection, the ID packet and the ADV_IND packet are alternately sent, the scanning party organizes the scanning interval in an orderly manner, alternately opens the BT scanning window and the BLE scanning window, and shares the information of successful BLE interaction when establishing a BT connection , share the successful BT interaction information when establishing a BLE connection, build an information sharing mechanism during the BT connection or BLE connection process, and speed up the establishment of the Bluetooth connection.
  • the method provided in the embodiment of the present application can establish other types of Bluetooth connections according to the type of data packets by receiving one type of data packets, and increase the speed of the Bluetooth connection.
  • each module for example, the bluetooth communication device includes at least one of corresponding hardware structures and software modules for performing each function in order to realize the above functions.
  • the present application can be implemented in the form of hardware or a combination of hardware and computer software in combination with the units and algorithm steps of each example described in the embodiments disclosed herein. Whether a certain function is executed by hardware or computer software drives hardware depends on the specific application and design constraints of the technical solution. Those skilled in the art may use different methods to implement the described functions for each specific application, but such implementation should not be regarded as exceeding the scope of the present application.
  • the embodiment of the present application can divide the functional units of the Bluetooth communication device according to the above method example, for example, each functional unit can be divided corresponding to each function, or two or more functions can be integrated into one processing unit.
  • the above-mentioned integrated units can be implemented in the form of hardware or in the form of software functional units. It should be noted that the division of units in the embodiment of the present application is schematic, and is only a logical function division, and there may be another division manner in actual implementation.
  • FIG. 13 shows a bluetooth communication device involved in the above-mentioned embodiment.
  • the Bluetooth communication device may include a processing unit 1301 , a receiving unit 1302 , and a sending unit 1303 .
  • the Bluetooth communication device further includes a storage unit 1304 .
  • the structural diagram shown in FIG. 13 may be used to illustrate the structures of the first device and the second device involved in the above-mentioned embodiments.
  • the processing unit 1301 is used to control and manage the actions of the first device, for example, the processing unit 1301 is used to support the first
  • the device executes S502-S503, S505, S507-S508 in Figure 5, S802, S804, S805 in Figure 8, S902, S903, S905, S906 in Figure 9, S1002, S1004, S1006, S1007 in Figure 10, Actions performed by the first device in S1202, S1204, S1206, S1208, S1209 in FIG. 12 and/or other processes described in the embodiments of this application.
  • the processing unit 1301 can communicate with other devices through the receiving unit 1302 and the sending unit 1303 .
  • the storage unit 1304 is used for storing program codes and data of the first device.
  • the Bluetooth communication device may be a device, or a chip in the device.
  • the processing unit 1301 is used to control and manage the actions of the second device, for example, the processing unit 1301 is used to support the second
  • the device executes S501, S504, S506, S508 in Figure 5, S801, S803, S805 in Figure 8, S901, S904, S906 in Figure 9, S1001, S1003, S105, S1008 in Figure 10, and Actions performed by the second device in S1201, S1203, S1205, S1207, S1210, and/or other processes described in the embodiments of this application.
  • the processing unit 1301 can communicate with other devices through the receiving unit 1302 and the sending unit 1303 .
  • the storage unit 1304 is used for storing program codes and data of the second device.
  • the Bluetooth communication device may be a device, or a chip in the device.
  • the integrated units in FIG. 13 are realized in the form of software function modules and sold or used as independent products, they can be stored in a computer-readable storage medium.
  • the technical solution of the embodiment of the present application is essentially or the part that contributes to the prior art or all or part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage
  • the medium includes several instructions to make a computer device (which may be a personal computer, server, or network device, etc.) or a processor (processor) execute all or part of the steps of the methods in various embodiments of the present application.
  • the storage medium for storing computer software products includes: U disk, mobile hard disk, read-only memory (ROM), random access memory (random access memory, RAM), magnetic disk or optical disk, etc., which can store program codes. medium.
  • Units in FIG. 13 may also be referred to as modules, for example, a processing unit may be referred to as a processing module.
  • the above-mentioned receiving unit and sending unit may be collectively referred to as a transceiver unit or a communication unit.
  • FIG. 14 is a schematic diagram of a hardware structure of a Bluetooth communication device provided by an embodiment of the present application.
  • the Bluetooth communication device includes one or more processors 1401 , a receiver 1402 and a transmitter 1403 .
  • the receiver 1402 and the transmitter 1403 may be collectively referred to as a transceiver.
  • the Bluetooth communication device further includes a memory 1404.
  • the memory 1404 may include a read-only memory and a random access memory, and provides operation instructions and data to the processor 1401.
  • a part of the memory 1404 may also include a non-volatile random access memory (non-volatile random access memory, NVRAM).
  • the Bluetooth communication device executes corresponding operations by calling the operation instructions stored in the memory 1404 (the operation instructions can be stored in the operating system).
  • the processor 1401 may also be called a central processing unit (central processing unit, CPU).
  • CPU central processing unit
  • the processor 1401, the receiver 1402, the transmitter 1403 and the memory 1404 are coupled together through a bus system 1405, wherein the bus system 1405 may include a power bus, a control bus, and a status signal bus in addition to a data bus.
  • the various buses are labeled as bus system 1405 in FIG. 14 for clarity of illustration.
  • the methods disclosed in the foregoing embodiments of the present application may be applied to the processor 1401 or implemented by the processor 1401 .
  • the processor 1401 may be an integrated circuit chip with signal processing capabilities. In the implementation process, each step of the above method may be implemented by an integrated logic circuit of hardware in the processor 1401 or instructions in the form of software.
  • the above-mentioned processor 1401 may be a general-purpose processor, a digital signal processor (digital signal processing, DSP), an application specific integrated circuit (application specific integrated circuit, ASIC), an off-the-shelf programmable gate array (field-programmable gate array, FPGA) or Other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components.
  • a general-purpose processor may be a microprocessor, or the processor may be any conventional processor, or the like.
  • the steps of the method disclosed in connection with the embodiments of the present application may be directly implemented by a hardware decoding processor, or implemented by a combination of hardware and software modules in the decoding processor.
  • the software module can be located in a mature storage medium in the field such as random access memory, flash memory, read-only memory, programmable read-only memory or electrically erasable programmable memory, register.
  • the storage medium is located in the memory 1404, and the processor 1401 reads the information in the memory 1404, and completes the steps of the above method in combination with its hardware.
  • FIG. 14 may be used to illustrate the first device and the second device involved in the foregoing embodiments.
  • the processor 1401, the receiver 1402 and the transmitter 1403 are used to control and manage the actions of the first device, for example,
  • the processor 1401 is used to support the first device to execute S502 in FIG. 5
  • the receiver 1402 is used to support the first device to execute S502, S504, S506, and S508 in FIG. 5, S801, S803, and S805 in FIG. 8, and FIG. 9 S901, S904, S906 in FIG. 10, S1001, S1003, S1005, S1008 in FIG. 10, S1201, S1203, S1205, S1207, S1210 in FIG.
  • the transmitter 1403 is used to support the first device to execute S503, S505, S507-S508, S802, S804, S805 in Figure 8, S902, S903, S905, S906 in Figure 9, S1002, S1004, S1006, S1007 in Figure 10, S1202, S1204, S1206, S1208, S1209, and/or actions performed by the first device in other processes described in the embodiments of this application.
  • the memory 1404 is used to store program codes and data of the first device.
  • the processor 1401, the receiver 1402 and the transmitter 1403 are used to control and manage the actions of the second device, for example,
  • the processor 1401 is used to support the second device to execute S501 in FIG. 5, S801 in FIG. 8, S904 in FIG. 9, S1003 in FIG. 10, and S1207 in FIG. 12, and the receiver 1402 is used to support the second device to execute S503, S505, S507-S508 in Fig. 5, S802, S804, S805 in Fig. 8, S902, S903, S905, S906 in Fig. 9, S1002, S1004, S1006, S1007 in Fig. 10, in Fig.
  • the transmitter 1403 is used to support the second device to execute S502, S504, S506, S508 in Figure 5, S801, S803, S805 in Figure 8, S901, S904, S906, S1001, S1003, S1005, S1008 in FIG. 10, S1201, S1203, S1205, S1207, S1210 in FIG. 12, and/or actions performed by the second device in other processes described in the embodiments of this application.
  • the memory 1404 is used to store program codes and data of the second device.
  • the above communication unit or communication interface may be an interface circuit or communication interface of the device for receiving signals from other devices.
  • the communication unit or communication interface is an interface circuit or communication interface used by the chip to receive or send signals from other chips or devices.
  • the instructions stored in the memory for execution by the processor may be implemented in the form of computer program products.
  • the computer program product may be written in the memory in advance, or may be downloaded and installed in the memory in the form of software.
  • a computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on the computer, the processes or functions according to the embodiments of the present application will be generated in whole or in part.
  • a computer can be a general purpose computer, special purpose computer, computer network, or other programmable device.
  • Computer instructions may be stored in or transmitted from one computer-readable storage medium to another computer-readable storage medium, e.g. Coaxial cable, optical fiber, digital subscriber line (DSL)) or wireless (such as infrared, wireless, microwave, etc.) to another website site, computer, server or data center.
  • the computer-readable storage medium can be any available medium that can be stored by a computer or a data storage device including a server, a data center, and the like integrated with one or more available media. Available media may be magnetic media (eg, floppy disk, hard disk, magnetic tape), optical media (eg, DVD), or semiconductor media (eg, solid state disk, SSD), etc.
  • the embodiment of the present application also provides a computer-readable storage medium, where computer instructions are stored in the computer-readable storage medium; when the computer-readable storage medium is run on a computer, the computer is made to execute this Any one of the methods provided in the application examples.
  • the embodiment of the present application also provides a computer program product including computer instructions, which, when run on a computer, enables the computer to execute any one of the methods provided in the embodiments of the present application.
  • the embodiment of the present application further provides a chip, the chip includes a processor, and when the processor executes instructions, the chip can execute any one of the methods provided in the embodiments of the present application.
  • all or part of them may be implemented by software, hardware, firmware or any combination thereof.
  • a software program When implemented using a software program, it may be implemented in whole or in part in the form of a computer program product.
  • the computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on the computer, the processes or functions according to the embodiments of the present application will be generated in whole or in part.
  • a computer can be a general purpose computer, special purpose computer, computer network, or other programmable device.
  • Computer instructions may be stored in or transmitted from one computer-readable storage medium to another computer-readable storage medium, e.g.
  • the computer-readable storage medium can be any available medium that can be accessed by a computer or include one or more data storage devices such as servers and data centers that can be integrated with the medium. Available media may be magnetic media (eg, floppy disk, hard disk, magnetic tape), optical media (eg, DVD), or semiconductor media (eg, SSD), among others.

Landscapes

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

Abstract

本申请提供了一种蓝牙连接方法及装置,涉及蓝牙技术领域,该方法包括:第一设备交替地进行周期性扫描,其中,第一扫描周期用于第一类型蓝牙连接,第二扫描周期用于第二类型蓝牙连接;第一设备在任一第一扫描周期的第一扫描窗口中从第二设备接收第一类型数据包,其中,第一类型数据包用于建立第一类型蓝牙连接;第一设备根据第一类型数据包获取用于与第二设备建立第二类型蓝牙连接的第二连接参数;第一设备根据第二连接参数与第二设备建立第二类型蓝牙连接,该方法能够实现在蓝牙设备通过接收用于建立第一类型蓝牙连接的第一类型数据包建立第二类型蓝牙连接,提升建立蓝牙连接速度。

Description

蓝牙连接方法及装置 技术领域
本申请涉及蓝牙技术领域,尤其涉及一种蓝牙连接方法及装置。
背景技术
蓝牙作为一种无线传输技术,广泛应用于手机、耳机、穿戴设备等智能设备之间。在2011年蓝牙技术联盟(bluetooth special interest group,Bluetooth SIG)发布低功耗蓝牙(bluetooth low energy,BLE/LE)连接方式之后,低功耗蓝牙和经典蓝牙(bluetooth,BT)两种连接方式极大的扩展了蓝牙的应用场景,使得蓝牙技术在越来越多的设备中得以应用。
在蓝牙设备之间通过蓝牙通信时,蓝牙的连接速度会直接影响到用户的体验。目前建立BLE连接需要满足用于建立BLE连接的数据包被BLE扫描窗口接收,建立BT连接需要满足用于建立BT连接的数据包被BT扫描窗口接收。为了提升两种连接方式的连接速度,通常采用增加BLE扫描窗口和BT扫描窗口开启时长,从而提高两种扫描窗口接收相应的数据包的概率,该方法会大大增加设备的功耗,因此,蓝牙设备需要通过其他方式实现蓝牙连接速度的提升。
发明内容
本申请实施例提供了一种蓝牙连接方法及装置,用于提升蓝牙连接速度。
为达到上述目的,本申请实施例提供如下技术方案:
第一方面,提供了一种建立蓝牙连接的方法,包括:第一设备交替地进行周期性扫描,其中,第一扫描周期用于第一类型蓝牙连接,第二扫描周期用于第二类型蓝牙连接;第一设备在任一第一扫描周期的第一扫描窗口中从第二设备接收第一类型数据包,其中,第一类型数据包用于建立第一类型蓝牙连接;第一设备根据第一类型数据包获取用于与第二设备建立第二类型蓝牙连接的第二连接参数;第一设备根据第二连接参数与第二设备建立第二类型蓝牙连接。第一方面提供的方法,蓝牙设备通过接收用于建立第一类型蓝牙连接的第一类型数据包建立第二类型蓝牙连接,提升建立蓝牙连接速度。
在一种可能的实现方式中,第一类型数据包包括:第一标识信息和第一标识信息对应的第二连接参数,第一标识信息用于指示第一设备建立第二类型蓝牙连接,该方法还包括:第一设备解析第一类型数据包,获取第一标识信息,根据第一标识信息确定建立第二类型蓝牙连接;第一设备根据第一类型数据包获取第二连接参数,包括:第一设备解析第一类型数据包,获取第一标识信息对应的第二连接参数。该种可能的实现方式,通过在用于建立第一类型蓝牙连接的数据包中携带指示第一设备建立第二类型蓝牙连接的第一标识信息以及对应的第二连接信息建立第二类型蓝牙连接,实现不同类型蓝牙连接的信息共享,加速蓝牙连接的建立。
在一种可能的实现方式中,第一设备根据第一类型数据包获取第二连接参数,包括:第一设备根据第一类型数据包开启第二扫描窗口,第二扫描窗口用于接收第二类型数据包,第二类型数据包包括第二连接参数;第一设备解析第二类型数据包,获取 第二连接参数。该种可能的实现方式,第一设备通过第一类型数据包触发开启用于建立第二类型蓝牙连接的第二类型扫描窗口,通过提前开启用于接收第二类型数据包的第二类型扫描窗口,实现加速建立蓝牙连接。
在一种可能的实现方式中,第一类型数据包中包括第一标识信息,第一标识信息用于指示开启第二扫描窗口,第一设备根据第一类型数据包开启第二扫描窗口,包括:第一设备根据第一标识信息开启第二扫描窗口。该种可能的实现方式,第一类型数据包中包含用于指示开启第二扫描窗口的第一标识信息,通过提前开启用于接收第二类型数据包的第二类型扫描窗口,实现加速建立蓝牙连接。
在一种可能的实现方式中,第一类型数据包为广播包,第二类型数据包为寻呼包,第一类型蓝牙连接为低功耗蓝牙连接,第二类型蓝牙连接为经典蓝牙连接。该种可能的实现方式,适用于根据广播包中包含第一标识信息指示开启用于接收寻呼包的扫描窗口,实现通过广播包先交互成功,加速经典蓝牙连接的建立。
在一种可能的实现方式中,第一设备根据第一类型数据包开启第二扫描窗口,包括:第一设备根据第一类型数据包,向第二设备发送第一类型数据包的反馈;第一设备从第二设备接收第一标识信息,第一标识信息用于指示开启第二扫描窗口;第一设备根据第一标识信息开启第二扫描窗口。该种可能的实现方式,在交互第一类型数据包后,根据第二设备发送的第一标识信息开启第二扫描窗口,通过提前开启用于接收第二类型数据包的第二类型扫描窗口,实现加速建立蓝牙连接。
在一种可能的实现方式中,第一类型数据包为寻呼包,第二类型数据包为广播包,第一类型蓝牙连接为经典蓝牙连接,第二类型蓝牙连接为低功耗蓝牙连接。第一类型数据包为寻呼包,第二类型数据包为广播包,第一类型蓝牙连接为经典蓝牙连接,第二类型蓝牙连接为低功耗蓝牙连接。该种可能的实现方式,适用于寻呼包先交互成功后,根据接收到的第一标识信息的指示,开启用于接收广播包的扫描窗口,加速低功耗蓝牙连接的建立。
在一种可能的实现方式中,第一设备根据第一类型数据包开启第二扫描窗口,包括:第一设备在接收到第一类型数据包之后的预设时间段内开启第二扫描窗口,预设时间段位于第一扫描周期内。该种可能的实现方式,在第一扫描周期内的预设时间段内根据第一类型数据包开启第二用于接收第二类型数据包的第二扫描窗口,实现加速建立蓝牙连接。
在一种可能的实现方式中,第一设备根据第一类型数据包获取第二连接参数,包括:第一设备根据第一类型数据包获取第一连接参数,第一连接参数用于建立第一类型蓝牙连接;第一设备根据第一连接参数与第二设备建立第一类型蓝牙连接的通信链路;第一设备通过通信链路获取第二设备发送的第一标识信息和第一标识信息对应的第二连接参数,第一标识信息用于指示第一设备建立第二类型蓝牙连接。该种可能的实现方式,通过根据第一类型数据包先建立第一类型蓝牙连接,在建立第一类型蓝牙连接的通信链路上交互用于指示建立第二类型蓝牙连接的第一标识信息和其对应的第二连接参数,实现不同类型蓝牙连接的信息共享,加速蓝牙连接的建立。
在一种可能的实现方式中,第一类型数据包为广播包,第一类型蓝牙连接为低功耗蓝牙连接,第二类型蓝牙连接为经典蓝牙连接。该种可能的实现方式,适用于广播 包中包含建立经典蓝牙连接的第二连接参数,或在建立低功耗蓝牙连接的通信链路上交互第二连接参数,加速经典蓝牙连接的建立。
在一种可能的实现方式中,第一类型数据包为寻呼包,第一类型蓝牙连接为经典蓝牙连接,第二类型蓝牙连接为低功耗蓝牙连接。该种可能的实现方式,适用于在建立经典蓝牙连接的通信链路上交互第二连接参数,加速低功耗蓝牙连接的建立。
第二方面,提供了一种建立蓝牙连接的方法,包括:第二设备根据要建立的第二类型蓝牙连接生成第一标识信息;第二设备交替发送第一类型数据包和第二类型数据包,第一类型数据包用于建立第一类型蓝牙连接,第二类型数据包用于建立第二类型蓝牙连接;第二设备发送第一标识信息。第二方面提供的方法,蓝牙设备确定建立蓝牙连接的类型,通过交替发送用于建立第一类型蓝牙连接的第一类型数据包和用于建立第二类型蓝牙连接的第二类型数据包,加速第二类型蓝牙连接的建立,提升建立蓝牙连接速度。
在一种可能的实现方式中,第一类型数据包包括:第一标识信息和第一标识信息对应的第二连接参数,第一标识信息用于指示第一设备建立第二类型蓝牙连接,第二连接参数用于与第一设备建立第二类型蓝牙连接。该种可能的实现方式,通过在用于建立第一类型蓝牙连接的数据包中携带用于建立第二类型蓝牙连接的连接信息,实现不同类型蓝牙连接的信息共享,加速蓝牙连接的建立。
在一种可能的实现方式中,第一类型数据包中包括第一标识信息。该种可能的实现方式,第一类型数据包中包含确定建立第二类型蓝牙连接的第一标识信息,实现加速建立蓝牙连接。
在一种可能的实现方式中,第二设备根据要建立的第二类型蓝牙连接生成第一标识信息并发送,包括:第二设备响应于第一设备发送的第一类型数据包的反馈,向第一设备发送第一标识信息。该种可能的实现方式,在交互第一类型数据包后,第二设备向第一设备发送确定建立第二类型蓝牙连接的第一标识信息,实现加速建立蓝牙连接。
在一种可能的实现方式中,第一标识信息用于指示第一设备开启第二扫描窗口,第二扫描窗口用于第一设备接收第二类型数据包。该种可能的实现方式,通过第一标识信息指示提前开启用于接收第二类型数据包的第二类型扫描窗口,实现加速建立蓝牙连接。
在一种可能的实现方式中,第二设备发送第一标识信息之前,该方法还包括:第二设备根据第一类型数据包与第一设备建立第一类型蓝牙连接的通信链路;第二设备发送第一标识信息,包括:第二设备在通信链路向第一设备发送第一标识信息,第一标识信息用于指示第一设备建立第二类型蓝牙连接;该方法还包括:第二设备在通信链路向第一设备发送第一标识信息对应的第二连接参数,第二连接参数用于建立第二类型蓝牙连接。该种可能的实现方式,通过根据第一类型数据包先建立第一类型蓝牙连接,在建立第一类型蓝牙连接的通信链路上交互用于指示建立第二类型蓝牙连接的第一标识信息和其对应的第二连接参数,实现不同类型蓝牙连接的信息共享,加速蓝牙连接的建立。
在一种可能的实现方式中,第一类型数据包为广播包,第二类型数据包为寻呼包, 第一类型蓝牙连接为低功耗蓝牙连接,第二类型蓝牙连接为经典蓝牙连接。该种可能的实现方式,适用于在建立低功耗蓝牙连接的通信链路上交互第二连接参数,加速经典蓝牙连接的建立。
在一种可能的实现方式中,第一类型数据包为寻呼包,第二类型数据包为广播包,第一类型蓝牙连接为经典蓝牙连接,第二类型蓝牙连接为低功耗蓝牙连接。该种可能的实现方式,适用于在建立经典蓝牙连接的通信链路上交互第二连接参数,加速低功耗蓝牙连接的建立。
第三方面,提供了一种蓝牙通信装置,包括:处理单元,用于交替地进行周期性扫描,其中,第一扫描周期用于第一类型蓝牙连接,第二扫描周期用于第二类型蓝牙连接;接收单元,用于在任一第一扫描周期的第一扫描窗口中从第二设备接收第一类型数据包,其中,第一类型数据包用于建立第一类型蓝牙连接;处理单元,还用于根据第一类型数据包获取用于与第二设备建立第二类型蓝牙连接的第二连接参数;处理单元,还用于根据第二连接参数与第二设备建立第二类型蓝牙连接。
在一种可能的实现方式中,第一类型数据包包括:第一标识信息和第一标识信息对应的第二连接参数,第一标识信息用于指示第一设备建立第二类型蓝牙连接,处理单元还用于:解析第一类型数据包,获取第一标识信息,根据第一标识信息确定建立第二类型蓝牙连接;处理单元具体用于:解析第一类型数据包,获取第一标识信息对应的第二连接参数。
在一种可能的实现方式中,处理单元具体用于:根据第一类型数据包开启第二扫描窗口,第二扫描窗口用于接收第二类型数据包,第二类型数据包包括第二连接参数;解析第二类型数据包,获取第二连接参数。
在一种可能的实现方式中,第一类型数据包中包括第一标识信息,第一标识信息用于指示开启第二扫描窗口,处理单元具体用于:根据第一标识信息开启第二扫描窗口。
在一种可能的实现方式中,该装置还包括:发送单元,用于根据第一类型数据包,向第二设备发送第一类型数据包的反馈;接收单元,还用于从第二设备接收第一标识信息,第一标识信息用于指示开启第二扫描窗口;处理单元,具体用于根据第一标识信息开启第二扫描窗口。
在一种可能的实现方式中,处理单元具体用于:根据第一类型数据包获取第一连接参数,第一连接参数用于建立第一类型蓝牙连接;根据第一连接参数与第二设备建立第一类型蓝牙连接的通信链路;通过通信链路获取第二设备发送的第一标识信息和第一标识信息对应的第二连接参数,第一标识信息用于指示第一设备建立第二类型蓝牙连接。
第四方面,提供了一种蓝牙通信装置,包括:处理单元,用于根据要建立的第二类型蓝牙连接生成第一标识信息;发送单元,用于交替发送第一类型数据包和第二类型数据包,第一类型数据包用于建立第一类型蓝牙连接,第二类型数据包用于建立第二类型蓝牙连接;发送单元,还用于发送第一标识信息。
在一种可能的实现方式中,第一类型数据包包括:第一标识信息和第一标识信息对应的第二连接参数,第一标识信息用于指示第一设备建立第二类型蓝牙连接,第二 连接参数用于与第一设备建立第二类型蓝牙连接。
在一种可能的实现方式中,第一类型数据包中包括第一标识信息。
在一种可能的实现方式中,发送单元具体用于:响应于第一设备发送的第一类型数据包的反馈,向第一设备发送第一标识信息。
在一种可能的实现方式中,第一标识信息用于指示第一设备开启第二扫描窗口,第二扫描窗口用于第一设备接收第二类型数据包。
在一种可能的实现方式中,处理单元还用于:根据第一类型数据包与第一设备建立第一类型蓝牙连接的通信链路;发送单元具体用于:在通信链路向第一设备发送第一标识信息,第一标识信息用于指示第一设备建立第二类型蓝牙连接;发送单元还用于:在通信链路向第一设备发送第一标识信息对应的第二连接参数,第二连接参数用于建立第二类型蓝牙连接。
第五方面,提供了一种蓝牙通信装置,包括:处理器,用于交替地进行周期性扫描,其中,第一扫描周期用于第一类型蓝牙连接,第二扫描周期用于第二类型蓝牙连接;接收器,用于在任一第一扫描周期的第一扫描窗口中从第二设备接收第一类型数据包,其中,第一类型数据包用于建立第一类型蓝牙连接;处理器,还用于根据第一类型数据包获取用于与第二设备建立第二类型蓝牙连接的第二连接参数;处理器,还用于根据第二连接参数与第二设备建立第二类型蓝牙连接。
在一种可能的实现方式中,第一类型数据包包括:第一标识信息和第一标识信息对应的第二连接参数,第一标识信息用于指示建立第二类型蓝牙连接,处理器还用于:解析第一类型数据包,获取第一标识信息,根据第一标识信息确定建立第二类型蓝牙连接;处理器具体用于:解析第一类型数据包,获取第一标识信息对应的第二连接参数。
在一种可能的实现方式中,根据第一类型数据包开启第二扫描窗口,第二扫描窗口用于接收第二类型数据包,第二类型数据包包括第二连接参数;解析第二类型数据包,获取第二连接参数。
在一种可能的实现方式中,第一类型数据包中包括第一标识信息,第一标识信息用于指示开启第二扫描窗口,处理器具体用于:根据第一标识信息开启第二扫描窗口。
在一种可能的实现方式中,第一类型数据包为广播包,第二类型数据包为寻呼包,第一类型蓝牙连接为低功耗蓝牙连接,第二类型蓝牙连接为经典蓝牙连接。
在一种可能的实现方式中,该装置还包括:发送器,用于根据第一类型数据包,向第二设备发送第一类型数据包的反馈;接收器,还用于从第二设备接收第一标识信息,第一标识信息用于指示开启第二扫描窗口;处理器,具体用于根据第一标识信息开启第二扫描窗口。
在一种可能的实现方式中,第一类型数据包为寻呼包,第二类型数据包为广播包,第一类型蓝牙连接为经典蓝牙连接,第二类型蓝牙连接为低功耗蓝牙连接。
在一种可能的实现方式中,处理器具体用于:在接收到第一类型数据包之后的预设时间段内开启第二扫描窗口,预设时间段位于第一扫描周期内。
在一种可能的实现方式中,处理器具体用于:根据第一类型数据包获取第一连接参数,第一连接参数用于建立第一类型蓝牙连接;根据第一连接参数与第二设备建立 第一类型蓝牙连接的通信链路;通过所述通信链路获取所述第二设备发送的第一标识信息和所述第一标识信息对应的第二连接参数,所述第一标识信息用于指示所述第一设备建立所述第二类型蓝牙连接。
在一种可能的实现方式中,第一类型数据包为广播包,第一类型蓝牙连接为低功耗蓝牙连接,第二类型蓝牙连接为经典蓝牙连接。
在一种可能的实现方式中,第一类型数据包为寻呼包,第一类型蓝牙连接为经典蓝牙连接,第二类型蓝牙连接为低功耗蓝牙连接。
第六方面,提供了一种蓝牙通信装置,包括:处理器,用于根据要建立的第二类型蓝牙连接生成第一标识信息;发送器,用于交替发送第一类型数据包和第二类型数据包,第一类型数据包用于建立第一类型蓝牙连接,第二类型数据包用于建立第二类型蓝牙连接;发送器,还用于发送第一标识信息。
在一种可能的实现方式中,第一类型数据包包括:第一标识信息和第一标识信息对应的第二连接参数,第一标识信息用于指示第一设备建立第二类型蓝牙连接,第二连接参数用于与第一设备建立第二类型蓝牙连接。
在一种可能的实现方式中,第一类型数据包中包括第一标识信息。
在一种可能的实现方式中,发送器具体用于:响应于第一设备发送的第一类型数据包的反馈,向第一设备发送第一标识信息。
在一种可能的实现方式中,第一标识信息用于指示第一设备开启第二扫描窗口,第二扫描窗口用于第一设备接收第二类型数据包。
在一种可能的实现方式中,处理器还用于:根据第一类型数据包与第一设备建立第一类型蓝牙连接的通信链路;发送器具体用于:在通信链路向第一设备发送第一标识信息,第一标识信息用于指示第一设备建立第二类型蓝牙连接;发送器还用于,在通信链路向第一设备发送第一标识信息对应的第二连接参数,第二连接参数用于建立第二类型蓝牙连接。
在一种可能的实现方式中,第一类型数据包为广播包,第二类型数据包为寻呼包,第一类型蓝牙连接为低功耗蓝牙连接,第二类型蓝牙连接为经典蓝牙连接。
在一种可能的实现方式中,第一类型数据包为寻呼包,第二类型数据包为广播包,第一类型蓝牙连接为经典蓝牙连接,第二类型蓝牙连接为低功耗蓝牙连接。
第七方面,提供了一种蓝牙通信系统,包括第三方面和第四方面提供的装置;或者,第五方面和第六方面提供的装置。
第八方面,提供了一种计算机可读存储介质,包括计算机执行指令,当计算机执行指令在计算机上运行时,使得计算机执行第一方面或第二方面提供的任意一种方法。
第九方面,提供了一种计算机程序产品,包括计算机执行指令,当计算机执行指令在计算机上运行时,使得计算机执行第一方面或第二方面提供的任意一种方法。
第十方面,提供一种芯片,该芯片包括:处理器和接口,处理器通过接口与存储器耦合,当处理器执行存储器中的计算机程序或指令时,使得第一方面或第二方面提供的任意一种方法被执行。
上述各个方面中,方法对应的装置的有益效果可参见相应的方法的有益效果,不再赘述。其中,需要说明的是,上述各个方面中的任意一个方面的各种可能的实现方 式,在方案不矛盾的前提下,均可以进行组合。
附图说明
图1为一种建立经典蓝牙连接交互流程图;
图2为一种建立经典蓝牙连接扫描窗口示意图;
图3为一种建立低功耗蓝牙连接交互流程图;
图4为一种建立低功耗蓝牙连接扫描窗口示意图;
图5为本申请实施例提供的一种蓝牙连接方法交互流程图;
图6为本申请实施例提供的一种蓝牙连接方法扫描窗口示意图;
图7为本申请实施例提供的一种蓝牙连接方法扫描窗口示意图;
图8为本申请实施例提供的一种蓝牙连接方法交互流程图;
图9为本申请实施例提供的一种蓝牙连接方法交互流程图;
图10为本申请实施例提供的一种蓝牙连接方法交互流程图;
图11为本申请实施例提供的一种蓝牙连接方法扫描窗口示意图;
图12为本申请实施例提供的一种蓝牙连接方法交互流程图;
图13为本申请实施例提供的一种蓝牙通信装置的组成示意图;
图14为本申请实施例提供的一种蓝牙通信装置的硬件结构示意图。
具体实施方式
在本申请的描述中,除非另有说明,“/”表示“或”的意思,例如,A/B可以表示A或B。本文中的“和/或”仅仅是一种描述关联对象的关联关系,表示可以存在三种关系,例如,A和/或B,可以表示:单独存在A,同时存在A和B,单独存在B这三种情况。此外,“至少一个”是指一个或多个,“多个”是指两个或两个以上。“第一”、“第二”等字样并不对数量和执行次序进行限定,并且“第一”、“第二”等字样也并不限定一定不同。
需要说明的是,本申请中,“示例性的”或者“例如”等词用于表示作例子、例证或说明。本申请中被描述为“示例性的”或者“例如”的任何实施例或设计方案不应被解释为比其他实施例或设计方案更优选或更具优势。确切而言,使用“示例性的”或者“例如”等词旨在以具体方式呈现相关概念。
当前两个蓝牙设备建立经典蓝牙(BT)连接或低功耗蓝牙(BLE)连接时,将建立蓝牙连接过程中,进行固定周期扫描的设备称为扫描方,发起连接请求的设备称为连接方,扫描方与连接方需要经过四个过程实现蓝牙连接,包括:设备发现、参数交互、连接确认和信息交互。
下面结合图1,示例性说明扫描方和连接方建立BT连接的流程。
如图1所示,建立BT连接的流程包括:
S101、连接方发送寻呼包(ID包),相应的,扫描方接收寻呼包。
连接方发送的ID包用于扫描方发现连接方。其中,ID包用于连接方与扫描方建立连接,ID包携带设备同步码,用于连接方识别确定的扫描方。
在蓝牙通信中,连接方可以通过跳频方式发送ID包,跳频是指把频带分成若干个信道,从一个信道“跳”到另一个信道进行数据传输。
S101在具体实现时,扫描方开启寻呼扫描窗口(page scan)进行固定周期扫描,page scan用于接收ID包。
如图2所示,示例性的,扫描方采用1.28s的BT扫描周期进行BT扫描,每个扫描周期内可以开启两个BT扫描窗口。当连接方发送的ID包与扫描方开启的BT扫描窗口“撞上”,则扫描方成功接收到ID包,扫描方与连接方成功交互。因此,S101之前连接方跳频发送的ID包为扫描方未成功接收到的ID包。
需要说明的是,扫描方的BT扫描周期的时长以及在每个BT扫描周期中开启的BT扫描窗口的时长和个数可以根据设备对于功耗的需求确定,BT扫描窗口的总时长越长,功耗越高,本申请对此不作限制。
S102、扫描方向连接方回复ID包,相应的,连接方接收扫描方回复的ID包。
扫描方解析连接方发送的ID包并回复ID包,扫描方回复的ID包用于确认支持连接。扫描方回复的ID包中携带设备同步码。扫描方回复的ID包也可称为连接方发送的ID包的反馈,相应的,连接方接收该反馈。
S103、连接方发送跳频同步(frequency hopping synchronization,FHS)包,相应的,扫描方接收FHS包。
连接方接收到ID包后,解析该ID包,确定扫描方支持连接,此时,连接方向扫描方发送FHS包,其中,FHS包中包括连接方跳频发送信号的频点、时隙和地址信息,即建立BT连接的具体通信资源,频点和时隙用于实现扫描方与连接方建立连接过程中时间和频率上的同步。上述建立BT连接的具体通信资源也可称为用于建立BT连接的连接信息。
S104、扫描方向连接方回复确认ACK(acknowledge)帧,相应的,连接方接收ACK帧。
ACK帧用于确认扫描方成功接收FHS包以及解析FHS包中携带的时隙与地址信息。
需要说明的是,完成上述步骤S101-步骤S104,连接方与扫描方之间建立BT连接的通信链路。
S105、连接方向扫描方发送测试(POLL)包,相应的,扫描方接收POLL包并解析。
POLL包通过上述具体通信资源在上述通信链路中向扫描方发送,用于确认扫描方是否能够成功接收。其中,POLL包可以包含数据信息,也可以不包含数据信息。
S106、扫描方向连接方回复空(NULL)包,相应的,连接方接收NULL包并解析。
NULL包同样通过上述具体通信资源在上述通信链路中向连接方发送,表示扫描方成功接收到POLL包,完成确定连接方与扫描方可以在上述具体通信资源上成功传输信号的过程。
S107、连接方与扫描方进行设备信息交互。
S107中,连接方和扫描方发送各自支持的用于之后传输数据信息的数据包类型等设备信息,确认建立BT连接双方交互数据信息的承载方式,完成BT连接。
图1中,通过上述步骤S101-S102完成设备发现过程,步骤S103-S104完成参数交互过程,步骤S105-S106完成连接确认过程,以及步骤S107完成信息交互过程,完成完整的BT连接的过程。
下面结合图3,示例性说明扫描方和连接方建立BLE连接的流程。
如图3所示,建立BLE连接的流程包括:
S301、连接方发送广播包,相应的,扫描方接收广播包。
连接方跳频发送广播包用于扫描方发现连接方的设备。其中,广播分为传统广播(legacy advertising)和扩展广播(extended advertising),传统广播中用于建立连接的广播包包括可连接的非定向广播(ADV_IND)包、可连接的定向广播(ADV_DIRECT_IND)包和可扫描的非定向广播(ADV_SCAN_IND)包。ADV_IND包表示当前设备可以接受任何设备的连接,其中包含连接方的地址信息;ADV_DIRECT_IND包中包含确定的扫描方的设备地址,由该确定的扫描方扫描接收并建立连接;而ADV_SCAN_IND包可以发送广播数据并且被扫描方扫描,但不能建立连接。
S301在具体实现时,扫描方开启广播扫描窗口(BLE SCAN)或连接扫描窗口(INIT)进行固定周期扫描,BLE SCAN用于接收连接方发送的ADV_IND包,INIT用于接收连接方发送的ADV_SCAN_IND包。本申请中以ADV_IND包以及相应的广播扫描窗口(简称为BLE扫描窗口)为例进行描述,其他类型广播包以及对应的扫描窗口可参考进行理解,不再赘述。
如图4所示,示例性的,扫描方采用1.28s的扫描周期开启一个扫描窗口的方式进行BLE扫描。当连接方发送的ADV_IND包与扫描方开启的BLE扫描窗口“撞上”,则扫描方成功接收到ADV_IND包,扫描方与连接方成功交互。因此,S301之前连接方跳频发送的ADV_IND包为扫描方未成功接收到的ADV_IND包。
需要说明的是,扫描方的BLE扫描周期以及在每个BLE扫描周期中开启BLE扫描窗口的时长同样取决于设备对于功耗的需求,开启BLE扫描窗口的总时长越长,功耗越高,本申请对此不作限制。
S302、扫描方向连接方回复连接信息(CONN_IND)包,相应的,连接方接收CONN_IND包。
扫描方解析连接方发送的ADV_IND包并回复CONN_IND包,扫描方回复CONN_IND包用于确认支持连接,其中,CONN_IND包中携带接入码、频点、时隙、地址等信息,接入码用于确认建立连接的扫描方和连接方,频点、时隙和地址信息表示扫描方向连接方发送信号时采用的频点、时隙及地址信息,即扫描方与连接方建立BLE连接的具体通信资源,用于实现扫描方与连接方建立时间与频率上的同步连接。上述建立BLE连接的具体通信资源也可称为用于建立BLE连接的连接信息。
需要说明的是,完成上述步骤S301-步骤S302,连接方与扫描方之间建立BLE连接的通信链路。
S303、扫描方向连接方发送数据包(Data Packet)。
该数据包由扫描方按照上述具体通信资源在上述通信链路中向连接方发送,在本申请中称为确认数据包。其中,Data Packet用于确认连接方是否接收到CONN_IND包并成功获取到其中的具体通信资源,Data Packet中还可以包含扫描方支持的用于传输数据信息的数据包类型等设备能力信息,供接收到Data Packet的连接方参考和选择。
S304、连接方接收Data Packet,并回复Data Packet,相应的,扫描方接收Data  Packet。
当连接方成功接收到扫描方发送的Data Packet,则表示其成功接收到CONN_IND包并获取到其中的具体通信资源。连接方在上述通信链路中回复Data Packet,完成确定连接方与扫描方是否可以在上述具体通信资源上成功传输信号的过程。
其中,连接方回复的Data Packet中同样可以包含连接方支持的用于传输数据信息的数据包类型等设备能力信息,供接收到Data Packet的扫描方确定建立BLE连接双方交互数据信息的承载方式,完成连接方与扫描方建立BLE连接的过程。
图3中,通过上述步骤S301实现设备发现过程,步骤S302实现参数交互过程,步骤S303-S304完成连接确认以及信息交互过程,建立完整的BLE连接。
在上述两种类型的蓝牙连接中,扫描方和连接方设备均为蓝牙设备。蓝牙设备是指支持蓝牙连接的设备。当前蓝牙设备基于BLE连接和BT连接分为三种,分别是单模蓝牙、双模蓝牙和经典蓝牙,其中,双模蓝牙支持BLE连接和BT连接,单模蓝牙仅支持BLE连接,经典蓝牙仅支持BT连接。
蓝牙设备可以为终端,终端用于向用户提供语音服务和数据连通性服务中的一种或多种。终端还可以称为用户设备(user equipment,UE)、终端设备、接入终端、用户单元、用户站、移动站、远方站、远程终端、移动设备、用户终端、无线通信设备、用户代理或用户装置。市场上的蓝牙设备种类繁多,主要分为两类:一类是低功耗终端设备,一般功能较为简单,比如手环、鼠标、耳机等,这类设备有的是单模蓝牙或者经典蓝牙,即支持一种连接方式,BT连接或BLE连接,有的是双模蓝牙,两种连接方式都支持;另一类是智能控制中心终端设备,一般功能复杂,需要与各类低功耗节点兼容,比如手机、智能电视、增强现实(augmented reality,AR)设备、虚拟现实(virtual reality,VR)设备、平板电脑、笔记本电脑、超级移动个人计算机(ultra-mobile personal computer,UMPC)、上网本、个人数字助理(personal digital assistant,PDA)等,这类设备通常需要支持BT和BLE两种连接方式。这两类设备有机结合,构建了丰富多彩的应用场景,极大的方便了人们的沟通和生活。
对于智能控制中心终端设备而言,其为了兼容各类仅支持BT连接或者BLE连接的外部设备,必须要常开BT扫描窗口和BLE扫描窗口,一旦外部设备发送ID包被BT扫描窗口接收到,或外部设备发送ADV_IND包被BLE扫描窗口接收到,则可以建立对应的BT连接或BLE连接。具体的,智能控制中心终端设备(如手机)可以根据应用确定建立蓝牙连接的类型。假设应用选择建立BT连接(此时,该应用可以称为BT应用),若手机的BLE扫描窗口先接收到建立BLE连接的ADV_IND包会选择丢弃,直至在BT扫描窗口上接收到ID包,再执行上述步骤S102-S107;类似地,若应用选择建立BLE连接(此时,该应用可以称为BLE应用),若手机的BT扫描窗口先接收到建立BT连接的ID包会选择丢弃,直至在BLE扫描窗口上接收到ADV_IND包,再执行上述步骤S302-S304。因此,建立BT连接或BLE连接过程中无法共享信息,即建立BT连接时,无法共享用于BLE连接的设备发现的ADV_IND包的信息,建立BLE连接时,无法共享用于BT连接的设备发现的ID包的信息。
可以理解的是,BT连接的连接速度和BLE连接的连接速度很大程度取决于各自对应的扫描占空比。扫描占空比是指扫描窗口的时间占扫描周期的比例,占空比越大, 连接速度越快,功耗也越大。大多数设备需要在功耗和连接速度之间进行艰难的权衡。
针对上述两种类型的蓝牙连接过程,为了提高蓝牙连接的速度,本申请提供了一种蓝牙连接方法,可应用于蓝牙设备之间。该方法中,扫描方从连接方接收ID包或ADV_IND包,对于BT应用,若先接收到ADV_IND包,则可以根据ADV_IND包与连接方建立BT连接(以下将该流程简称为BT Over BLE),对于BLE应用,若先接收到ID包,则可以根据ID包与连接方建立BLE连接(以下将该流程简称为BLE Over BT),从而提高蓝牙连接速度。
本申请提供的方法适用于蓝牙技术中,也可以适用于其他相关连接技术中,例如星闪联盟的绿牙技术等。
为了提高蓝牙连接速度,本申请提供了以下方案一至方案五所示的方法。方案一至方案三为BT Over BLE的具体实现方式,方案四至方案五为BLE Over BT的具体实现方式。以下,结合附图,对本申请提供的技术方案进行示例性说明。
方案一
方案一通过ADV_IND包触发开启BT扫描窗口接收ID包,提高BT连接速度。
如图5所示,方案一在实现时可以包括S501-S508。
S501、连接方交替发送ADV_IND包和ID包,扫描方开启BT扫描窗口和BLE扫描窗口进行扫描。
当前连接方在建立BT连接的模式下按照上述S101发送ID包,在建立BLE连接的模式下按照上述S301发送ADV_IND包,连接方通过在建立BT连接和BLE连接两种模式间进行切换,实现交替发送ADV_IND包和ID包。
示例性的,切换两种模式可以通过设定每种模式开启时长,如开启BT连接模式,按照上述S101发送A时长的ID包后,切换至BLE连接模式按照上述S301发送B时长的ADV_IND包。还可以通过设定每种模式发送包的个数,如开启BT连接模式,按照上述S101发送M个ID包后,切换至BLE连接模式按照上述S301发送N个ADV_IND包,其中A、B为大于等于零的实数,M、N为大于等于零的整数。
如图6所示,连接方交替发送ADV_IND包和ID包,其中,ADV_IND包和ID包可以按照一定个数交替发送,也可以按照一定时长间隔发送,扫描方开启BLE扫描窗口和BT扫描窗口按照各自的扫描周期进行扫描,当BLE扫描窗口扫描到ADV_IND包则进行BLE交互,当BT扫描窗口扫描到ID包则进行BT交互。
可选的,连接方可以在应用层的指示下交替发送ADV_IND包和ID包,连接方支持两种类型蓝牙连接,当连接方的应用层指示建立BT连接或BLE连接,连接方可以通过交替发送ADV_IND包和ID包,实现加速BT连接或BLE连接的建立。当连接方确定建立BT连接的同时,连接方生成BT连接对应的标识信息(可以称为第一标识信息),第一标识信息用于指示扫描方开启BT扫描窗口,后续过程中,扫描方可以在开启的BT扫描窗口接收ID包并建立BT连接。第一标识信息可以包括在ADV_IND包中发送。
S502、扫描方接收ADV_IND包,迅速打开BT扫描窗口接收ID包。
扫描方的BLE扫描窗口先接收到ADV_IND包,扫描方解析ADV_IND包并获取第一标识信息,根据第一标识信息开启BT扫描窗口,确定建立BT连接,即BLE先 交互成功,触发开启BT扫描窗口。
其中,迅速打开BT扫描窗口是指在预设时间段内打开BT扫描窗口,该预先时间段位于BLE扫描窗口所在的扫描周期内,预设时间段可以是预先设置的。
如图7所示,根据ADV_IND包迅速开启BT扫描窗口。示例性的,可以在BLE扫描窗口后预设时间段间隔两个时隙(slot)后开启BT扫描窗口,本申请对此不作限制。
需要说明的是,图7所示的方法中,BLE扫描窗口接收到ADV_IND包后根据第一标识信息的指示将不再进行BLE扫描,即BLE扫描窗口在接收到ADV_IND包后关闭,因此BLE扫描窗口开启时长小于等于60ms,BT扫描窗口开启时间可以根据BLE扫描窗口的关闭进行调整。
需要说明的是,扫描方在接收到ADV_IND包后无需进行回复,连接方保持交替发送ADV_IND包和ID包的状态。扫描方打开BT扫描窗口用于接收ID包建立BT连接,示例性的,BT扫描窗口开启的个数和大小可以根据设备的功耗性能进行不同的调整,如图中开启两个BT扫描窗口,也可以开启多个BT扫描窗口,或者持续开启BT扫描窗口用于接收ID包。
S503-S508、与上述S102-S107分别相同。
方案一提供的方法,在扫描方的BLE扫描窗口先接收到ADV_IND包的情况下,根据ADV_IND包中包含的第一标识信息打开BT扫描窗口,可以使得在BT扫描窗口尽快接收到ID包,而不需要通过原本更加靠后的BT扫描窗口接收ID包,从而提高蓝牙连接速度。
通过上述方案一实现在连接方与扫描方基于BLE的ADV_IND包先交互成功的基础上建立BT连接,在不缩短各个类型蓝牙的扫描周期的情况下,即扫描方保持当前BT扫描窗口与BLE扫描窗口打开的周期与时长,不增加扫描方功耗,加速了BLE设备发现过程,蓝牙响应时间优化约50%。
在方案一中,BLE扫描窗口可以称为第一扫描窗口,BT扫描窗口可以称为第二扫描窗口。第一扫描窗口所处的扫描周期可以称为第一扫描周期,第二扫描窗口所处的扫描周期可以称为第二扫描周期。ADV_IND包可以称为第一类型数据包,ID包可以称为第二类型数据包。BLE连接可以称为第一类型蓝牙连接,BT连接可以称为第二类型蓝牙连接。
方案二
方案二通过ADV_IND包中携带用于建立BT连接的信息,提高BT连接速度。
如图8所示,方案二在实现时可以包括S801-S805。
S801、连接方交替发送ADV_IND包和ID包,扫描方开启BT扫描窗口和BLE扫描窗口进行扫描。
其中,关于连接方交替发送ADV_IND包和ID包与扫描方开启BT扫描窗口和BLE扫描窗口进行扫描的描述可参见上述S501。其中,ADV_IND包中携带标识信息(可以称为第一标识信息)以及第一标识信息对应的FHS包。
需要说明的是,由于FHS包中包含扫描方与连接方建立BT连接的连接信息,因此,第一标识信息对应的FHS包也可以理解为第一标识信息对应的扫描方与连接方建 立BT连接的连接信息。
S802、扫描方接收ADV_IND包,回复主动扫描请求SCAN_REQ。
扫描方接收ADV_IND包,即BLE先交互成功,扫描方解析ADV_IND包,获取第一标识信息,根据第一标识信息确定建立BT连接,并获取第一标识信息对应的FHS包中的连接信息,建立BT连接。
扫描方根据其中包含的第一标识信息对应的FHS包中的连接信息回复SCAN_REQ,SCAN_REQ与ACK帧作用相同,用于确认扫描方接收到携带FHS包的ANV_IND包。需要说明的是,扫描方在确定接收到的ADV_IND包中第一标识信息以及第一标识信息对应的FHS包中的连接信息的情况下,才会回复SCAN_REQ。
需要说明的是,ANV_IND包里携带的时隙需要根据本地时钟动态刷新,该时隙与S103中FHS包中携带的时隙相同,保证连接方和扫描方在时间和频率上同步的准确性。
S803-S805、与上述S105-S107分别相同,即S803-S805完成BT连接中连接确认和信息交互的部分,实现BT连接。
方案二提供的方法,在连接方发送的ADV_IND包中携带FHS包中的连接信息,以及扫描方的BLE扫描窗口先接收到ADV_IND包的情况下,通过解析ADV_IND包中携带的第一标识信息以及第一标识信息对应的FHS包中的连接信息直接建立BT连接,实现通过BLE交互的信息建立BT连接,而不需要通过BT扫描窗口接收ID包再进行BT交互建立BT连接,省去了BT连接中设备发现和参数交互的部分,在BLE先交互成功的基础上,提高蓝牙连接速度。
在方案二中,BLE扫描窗口可以称为第一扫描窗口,BT扫描窗口可以称为第二扫描窗口。第一扫描窗口所处的扫描周期可以称为第一扫描周期,第二扫描窗口所处的扫描周期可以称为第二扫描周期。ADV_IND包可以称为第一类型数据包,ID包可以称为第二类型数据包。BLE连接可以称为第一类型蓝牙连接,BT连接可以称为第二类型蓝牙连接。
方案三
方案三通过建立BLE连接,在BLE链路上交互用于建立BT连接的连接信息(可以称为第二连接参数),提高BT连接速度。
如图9所示,方案三在实现时可以包括S901-S906。
S901、与S501相同。
S902-S903、与S302-S303分别相同,完成BLE连接中参数交互、连接确认的过程。
S904、连接方在BLE链路上发送标识信息(可以称为第一标识信息)以及第一标识信息对应的FHS包。
需要说明的是,由于FHS包中包含扫描方与连接方建立BT连接的连接信息,因此,第一标识信息对应的FHS包也可以理解为第一标识信息对应的扫描方与连接方建立BT连接的连接信息。
连接方可以根据CONN_IND包中携带的通信资源在BLE链路上向扫描方发送第一标识信息以及第一标识信息对应的FHS包,第一标识信息用于指示扫描方建立BT 连接。
需要说明的是,第一标识信息也可以包含在FHS包中发送,扫描方接收FHS包后解析得到第一标识信息,并根据第一标识信息的指示利用FHS包中的连接信息建立BT连接。图9是以第一标识信息包含在FHS包为例。
S905-S906、与S104、S107分别相同。即当扫描方接收FHS包,回复ACK帧,并在BT链路上完成信息交互的部分。
方案三中,需要说明的是,成功建立BT连接后,由于不需要继续使用BLE链路传输数据,可以将已建立的BLE链路销毁,节省设备的功耗。
方案三提供的方法,在扫描方的BLE扫描窗口先接收到ADV_IND包的情况下,建立BLE连接,在建立BLE连接的链路上交互用于BT连接的FHS包,避免先扫描到ADV_IND包而丢弃导致资源的浪费,省去BT连接下设备发现、参数交互和连接确认的过程,在BLE先交互成功并建立BLE连接的基础上建立BT连接,提高蓝牙连接速度。
需要说明的是,上述步骤S904是在步骤S903完成连接确认的通信链路上发送的,能够保证通信的安全性。若为了更快满足连接方的连接需求,上述步骤S904也可以在步骤S902之后进行,即完成建立BLE连接的参数交互后,扫描方与连接方之间的通信链路已建立,在双方进行连接确认的过程中,连接方可以在上述通信链路上发送FHS包,用于扫描方接收并建立BT连接。
在方案三中,BLE扫描窗口可以称为第一扫描窗口,BT扫描窗口可以称为第二扫描窗口。第一扫描窗口所处的扫描周期可以称为第一扫描周期,第二扫描窗口所处的扫描周期可以称为第二扫描周期。ADV_IND包可以称为第一类型数据包,ID包可以称为第二类型数据包。BLE连接可以称为第一类型蓝牙连接,BT连接可以称为第二类型蓝牙连接。
以上三种方案均可以实现BT Over BLE,连接方交替发送ADV_IND包和ID包,扫描方开启BT扫描窗口和BLE扫描窗口,在BLE扫描窗口先接收到ADV_IND包,即BLE先交互成功的基础上,通过ADV_IND包中携带的第一标识信息指示扫描方开启BT扫描窗口建立BT连接,或者在ADV_IND包中携带用于建立BT连接的连接信息,或者根据ADV_IND包建立BLE连接的通信链路,在BLE链路上交互BT连接的连接信息实现BT连接。上述三种方案在不改变现有连接方发送连接请求的方式以及扫描方进行扫描的方式下,即保持当前ID包和ADV_IND包发送频率以及BT扫描窗口和BLE扫描窗口开启时长的前提下,加速了BT连接建立的速度,提升设备的智能性。
方案四通过FHS包触发开启BLE扫描窗口接收ADV_IND包,实现加速BLE连接的建立。
如图10所示,方案四在实现时可以包括S1001-S1008。
S1001、与S501相同。其中,连接方确定建立BLE连接的同时,连接方生成BLE连接对应的标识信息(可以称为第一标识信息),第一标识信息用于指示扫描方开启BLE扫描窗口,后续过程中,扫描方可以接收ADV_IND包并建立BLE连接。
S1002-S1003、与S102-S103分别相同。其中,步骤S1003中连接方发送FHS包 中包含步骤S1001中的第一标识信息。
S1004、扫描方接收FHS包,迅速打开BLE扫描窗口接收ADV_IND包,并回复ID包。
扫描方的BT扫描窗口先接收到ID包,即BT先交互成功,再接收连接方发送的FHS包,扫描方解析FHS包并获取其中的第一标识信息,根据第一标识信息开启BLE扫描窗口,确定建立BLE连接,并回复ID包。
其中,迅速打开BLE扫描窗口是指在预设时间段内打开BT扫描窗口,该预先时间段位于BLE扫描窗口所在的扫描周期内,预设时间段可以是预先设置的。
如图11所示,根据BT交互的FHS包迅速开启BLE扫描窗口接收ADV_IND包。示例性的,可以在BT扫描窗口预先设置间隔两个时隙(slot)后开启BLE扫描窗口,BLE扫描窗口开启的大小可以进行调整,本申请对此不作限制。
需要说明的是,图11所示的方法中,BT扫描窗口在接收到FHS包后根据第一标识信息的指示将不再进行BT扫描,即BT扫描窗口在接收到FHS包后关闭,在图示中,由于BT在第一个BT扫描窗口交互成功,因此第一个BT扫描窗口开启时长小于等于10ms,并且不再开启第二个BT扫描窗口进行BT扫描,BLE扫描窗口开启时间可以根据BT扫描窗口的关闭进行调整。
S1005-S1008、与上述S301-S304分别相同。
方案四提供的方法,在扫描方的BT扫描窗口先接收到ID包的情况下,扫描方接收连接方发送的FHS包,根据FHS包中包含的第一标识信息开启BLE扫描窗口,通过打开BLE扫描窗口,可以使得在BLE扫描窗口尽快接收到ADV_IND包,而不需要通过原本更加靠后的BLE扫描窗口接收ADV_IND包,从而提高蓝牙连接速度。通过上述方案四实现在连接方与扫描方基于BT的ID包先交互成功的基础上建立BLE连接,在不缩短各个类型蓝牙的扫描周期的情况下,即不增加扫描方功耗的情况下,加速了BLE设备发现过程,蓝牙响应时间优化约50%。
在方案四中,BT扫描窗口可以称为第一扫描窗口,BLE扫描窗口可以称为第二扫描窗口。第一扫描窗口所处的扫描周期可以称为第一扫描周期,第二扫描窗口所处的扫描周期可以称为第二扫描周期。ID包可以称为第一类型数据包,ADV_IND包可以称为第二类型数据包。BT连接可以称为第一类型蓝牙连接,BLE连接可以称为第二类型蓝牙连接。
方案五
方案五通过建立BT连接,在BT链路上交互用于建立BLE连接的连接信息,提高蓝牙连接速度。
如图12所示,方案五在实现时可以包括S1201-S1210。
S1201、与S501相同。
S1202-S1206、与S102-S106分别相同。扫描方接收FHS包建立BT链路。
S1207、连接方在BT链路上发送标识信息(可以称为第一标识信息)以及第一标识信息对应的CONN_IND包,相应的,扫描方接收第一标识信息以及第一标识信息对应的CONN_IND包。
需要说明的是,由于CONN_IND包中包含扫描方与连接方建立BLE连接的连接 信息,因此,第一标识信息对应的CONN_IND包也可以理解为第一标识信息对应的扫描方与连接方建立BLE连接的连接信息。
连接方在BT链路上向扫描方发送第一标识信息以及第一标识信息对应的CONN_IND包,第一标识信息用于指示扫描方建立BLE连接。
需要说明的是,第一标识信息也可以包含在CONN_IND包中发送,扫描方接收CONN_IND包后解析得到第一标识信息,并根据第一标识信息的指示利用CONN_IND包中的连接信息建立BLE连接。图12是以第一标识信息包含在CONN_IND包为例。
S1208、扫描方回复ACK帧,相应的,连接方接收ACK帧。
S1209-S1210、与S303-S304分别相同。
方案五中,需要说明的是,通过上述方式成功建立BLE连接后,可以将已建立BT链路销毁,节省设备的功耗。
方案五提供的方法,在扫描方的BT扫描窗口先接收到ID包的情况下,建立BT连接,在建立BT连接的链路上交互用于BLE连接的CONN_IND包,避免先扫描到ID包而丢弃导致资源的浪费,省去BLE连接下设备发现、参数交互的过程,在BLE先交互成功并建立BLE连接的基础上建立BT连接,提高蓝牙连接速度。
需要说明的是,上述步骤S1207是在步骤S1206完成连接确认的通信链路上发送的,该链路能够保证通信的安全性。若为了更快满足连接方的连接需求,上述步骤S1207也可以在步骤S1204之后进行,即完成建立BT连接的参数交互后,扫描方与连接方之间的通信链路已建立,在双方进行连接确认的过程中,连接方可以在上述通信链路上发送CONN_IND包,用于扫描方接收并建立BLE连接。
在方案五中,BT扫描窗口可以称为第一扫描窗口,BLE扫描窗口可以称为第二扫描窗口。第一扫描窗口所处的扫描周期可以称为第一扫描周期,第二扫描窗口所处的扫描周期可以称为第二扫描周期。ID包可以称为第一类型数据包,ADV_IND包可以称为第二类型数据包。BT连接可以称为第一类型蓝牙连接,BLE连接可以称为第二类型蓝牙连接。
上述方案四和方案五均可以实现BLE Over BT,连接方交替发送ADV_IND包和ID包,扫描方开启BT扫描窗口和BLE扫描窗口,在BT扫描窗口先接收到ID包,即BT先交互成功的基础上,通过ID包交互FHS包,根据FHS包中携带的第一标识信息指示扫描方开启BLE扫描窗口建立BLE连接,或者根据ID包建立BT连接的通信链路,在BT链路上交互BLE连接的连接信息实现BLE连接。通过上述两种方案同样在不改变现有连接方发送连接请求的方式以及扫描方进行扫描的方式下,即保持当前ID包和ADV_IND包发送频率以及BT扫描窗口和BLE扫描窗口开启时长的前提下,加速了BLE连接建立的速度,提升设备的智能性。
本申请实施例的可替换的实现方式,扫描方仅开启一种类型的扫描窗口,如扫描方不启动BT扫描窗口,仅开启BLE扫描窗口,执行上述方案一至方案三既可以建立BT连接,也可以建立BLE连接,实现功耗优化约13-50%;或者,扫描方不启动BLE扫描窗口,仅开启BT扫描窗口,执行上述方案四和方案五既可以建立BLE连接,也可以建立BT连接,实现功耗优化约50%-87%。
上述实施例提供的方案可以总结成如下:扫描方作为第一设备,连接方作为第二 设备。第二设备根据要建立的第二类型蓝牙连接生成第一标识信息并发送,第二设备交替发送用于设备发现的第一类型数据包以及第二类型数据包,其中第一类型数据包用于建立第一类型蓝牙连接,第二类型数据包用于建立第二类型蓝牙连接。第一设备交替地进行周期性扫描,其中,第一扫描周期用于第一类型蓝牙连接,第二扫描周期用于第二类型蓝牙连接;第一设备在任一第一扫描周期的第一扫描窗口中从第二设备接收第一类型数据包;第一设备根据第一类型数据包获取用于与第二设备建立第二类型蓝牙连接的第二连接参数;第一设备根据第二连接参数与第二设备建立第二类型蓝牙连接。其中第一类型数据包为ID包时,建立BLE连接,或者,第二类型数据包为ADV_IND包时,建立BT连接。
第一设备根据第一类型数据包获取用于与第二设备建立第二类型蓝牙连接的第二连接参数包括以下三种情况:
情况一、第一设备根据第一类型数据包开启第二类型扫描窗口,该第二类型扫描窗口用于接收第二类型数据包,其中当第一类型数据包为ID包时,触发开启BLE扫描窗口,或者,当第一类型数据包为ADV_IND包,触发开启BT扫描窗口。如上述方案一和方案四分别所述。
情况二、第一设备根据第一类型数据包建立第一类型蓝牙连接,在第一类型蓝牙连接的链路上交互第二类型蓝牙连接信息,根据第二类型蓝牙连接信息建立第二类型蓝牙连接。其中,当第一类型数据包为ID包,建立BT连接并在BT链路上接收CONN_IND包,根据CONN_IND包建立BLE连接;或者,当第一类型数据包为ADV_IND包,建立BLE连接并在BLE链路上接收FHS包,根据FHS包建立BT连接。如上述方案三和方案五分别所述。
情况三、当第一类型数据包为ADV_IND包,其中携带指示建立BT连接的第一标识信息以及第一标识信息对应的FHS包中的连接信息,第一设备根据ADV_IND包中的FHS包中的连接信息直接建立BT连接。如上述方案二所述。
本申请实施例提供的方法,通过连接方发起连接时交替发送ID包和ADV_IND包,扫描方有序组织扫描间隔,交替开启BT扫描窗口和BLE扫描窗口,建立BT连接时共享BLE交互成功的信息,建立BLE连接时共享BT交互成功的信息,搭建BT连接或BLE连接过程中的信息共享机制,加速蓝牙连接的建立。
本申请实施例提供的方法,通过接收一种类型数据包能够实现根据该种类型数据包建立其他类型蓝牙连接,提升蓝牙连接速度。
上述主要从方法的角度对本申请实施例的方案进行了介绍。可以理解的是,各个模块,例如,蓝牙通信装置为了实现上述功能,其包含了执行各个功能相应的硬件结构和软件模块中的至少一个。本领域技术人员应该很容易意识到,结合本文中所公开的实施例描述的各示例的单元及算法步骤,本申请能够以硬件或硬件和计算机软件的结合形式来实现。某个功能究竟以硬件还是计算机软件驱动硬件的方式来执行,取决于技术方案的特定应用和设计约束条件。专业技术人员可以对每个特定的应用来使用不同方法来实现所描述的功能,但是这种实现不应认为超出本申请的范围。
本申请实施例可以根据上述方法示例对蓝牙通信装置进行功能单元的划分,例如,可以对应各个功能划分各个功能单元,也可以将两个或两个以上的功能集成在一个处 理单元中。上述集成的单元既可以采用硬件的形式实现,也可以采用软件功能单元的形式实现。需要说明的是,本申请实施例中对单元的划分是示意性的,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式。
在采用集成单元的情况下,图13示出了上述实施例中涉及的一种蓝牙通信装置。该蓝牙通信装置可以包括处理单元1301、接收单元1302、发送单元1303。可选的,该蓝牙通信装置还包括存储单元1304。图13所示的结构示意图可以用于示意上述实施例中所涉及的第一设备、第二设备的结构。
当图13所示的结构示意图用于示意上述实施例中所涉及的第一设备的结构时,处理单元1301用于对第一设备的动作进行控制管理,例如,处理单元1301用于支持第一设备执行图5中的S502-S503、S505、S507-S508,图8中的S802、S804、S805,图9中的S902、S903、S905、S906,图10中的S1002、S1004、S1006、S1007,图12中的S1202、S1204、S1206、S1208、S1209和/或本申请实施例中所描述的其他过程中的第一设备执行的动作。处理单元1301可以通过接收单元1302和发送单元1303与其他装置通信。存储单元1304用于存储第一设备的程序代码和数据。
当图13所示的结构示意图用于示意上述实施例中所涉及的第一设备的结构时,蓝牙通信装置可以是一个设备,也可以是设备内的芯片。
当图13所示的结构示意图用于示意上述实施例中所涉及的第二设备的结构时,处理单元1301用于对第二设备的动作进行控制管理,例如,处理单元1301用于支持第二设备执行图5中的S501、S504、S506、S508,图8中的S801、S803、S805,图9中的S901、S904、S906,图10中的S1001、S1003、S105、S1008,图12中的S1201、S1203、S1205、S1207、S1210和/或本申请实施例中所描述的其他过程中的第二设备执行的动作。处理单元1301可以通过接收单元1302和发送单元1303与其他装置通信。存储单元1304用于存储第二设备的程序代码和数据。
当图13所示的结构示意图用于示意上述实施例中所涉及的第二设备的结构时,蓝牙通信装置可以是一个设备,也可以是设备内的芯片。
图13中的集成的单元如果以软件功能模块的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储介质中。基于这样的理解,本申请实施例的技术方案本质上或者说对现有技术做出贡献的部分或者该技术方案的全部或部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质中,包括若干指令用以使得一台计算机设备(可以是个人计算机,服务器,或者网络设备等)或处理器(processor)执行本申请各个实施例方法的全部或部分步骤。存储计算机软件产品的存储介质包括:U盘、移动硬盘、只读存储器(read-only memory,ROM)、随机存取存储器(random access memory,RAM)、磁碟或者光盘等各种可以存储程序代码的介质。
图13中的单元也可以称为模块,例如,处理单元可以称为处理模块。上述接收单元和发送单元可以统称为收发单元或通信单元。
图14是本申请实施例提供的蓝牙通信装置的硬件结构示意图。蓝牙通信装置包括一个或多个处理器1401、接收器1402和发送器1403。
可选的,接收器1402和发送器1403可以统称为收发器。
可选的,该蓝牙通信装置还包括存储器1404,存储器1404可以包括只读存储器和随机存取存储器,并向处理器1401提供操作指令和数据。存储器1404的一部分还可以包括非易失性随机存取存储器(non-volatile random access memory,NVRAM)。
在本申请实施例中,该蓝牙通信装置通过调用存储器1404存储的操作指令(该操作指令可存储在操作系统中),执行相应的操作。
处理器1401还可以称为中央处理单元(central processing unit,CPU)。
处理器1401、接收器1402、发送器1403以及存储器1404通过总线系统1405耦合在一起,其中,总线系统1405除包括数据总线之外,还可以包括电源总线、控制总线和状态信号总线等。但是为了清楚说明起见,在图14中将各种总线都标为总线系统1405。
上述本申请实施例揭示的方法可以应用于处理器1401中,或者由处理器1401实现。处理器1401可能是一种集成电路芯片,具有信号的处理能力。在实现过程中,上述方法的各步骤可以通过处理器1401中的硬件的集成逻辑电路或者软件形式的指令完成。上述的处理器1401可以是通用处理器、数字信号处理器(digital signal processing,DSP)、专用集成电路(application specific integrated circuit,ASIC)、现成可编程门阵列(field-programmable gate array,FPGA)或者其他可编程逻辑器件、分立门或者晶体管逻辑器件、分立硬件组件。可以实现或者执行本申请实施例中的公开的各方法、步骤及逻辑框图。通用处理器可以是微处理器或者该处理器也可以是任何常规的处理器等。结合本申请实施例所公开的方法的步骤可以直接体现为硬件译码处理器执行完成,或者用译码处理器中的硬件及软件模块组合执行完成。软件模块可以位于随机存储器,闪存、只读存储器,可编程只读存储器或者电可擦写可编程存储器、寄存器等本领域成熟的存储介质中。该存储介质位于存储器1404,处理器1401读取存储器1404中的信息,结合其硬件完成上述方法的步骤。
示例性的,图14所示的结构示意图可以用于示意上述实施例中所涉及的第一设备、第二设备。
当图14所示的结构示意图用于示意上述实施例中所涉及的第一设备的结构时,处理器1401、接收器1402和发送器1403用于对第一设备的动作进行控制管理,例如,处理器1401用于支持第一设备执行图5中的S502,接收器1402用于支持第一设备执行图5中的S502、S504、S506、S508,图8中的S801、S803、S805,图9中的S901、S904、S906,图10中的S1001、S1003、S1005、S1008,图12中的S1201、S1203、S1205、S1207、S1210,发送器1403用于支持第一设备执行图5中的S503、S505、S507-S508,图8中的S802、S804、S805,图9中的S902、S903、S905、S906,图10中的S1002、S1004、S1006、S1007,图12中的S1202、S1204、S1206、S1208、S1209,和/或本申请实施例中所描述的其他过程中的第一设备执行的动作。存储器1404用于存储第一设备的程序代码和数据。
当图14所示的结构示意图用于示意上述实施例中所涉及的第二设备的结构时,处理器1401、接收器1402和发送器1403用于对第二设备的动作进行控制管理,例如,处理器1401用于支持第二设备执行图5中的S501,图8中的S801,图9中的S904,图10中的S1003,图12中的S1207,接收器1402用于支持第二设备执行图5中的S503、 S505、S507-S508,图8中的S802、S804、S805,图9中的S902、S903、S905、S906,图10中的S1002、S1004、S1006、S1007,图12中的S1202、S1204、S1206、S1208、S1209,发送器1403用于支持第二设备执行图5中的S502、S504、S506、S508,图8中的S801、S803、S805,图9中的S901、S904、S906,图10中的S1001、S1003、S1005、S1008,图12中的S1201、S1203、S1205、S1207、S1210,和/或本申请实施例中所描述的其他过程中的第二设备执行的动作。存储器1404用于存储第二设备的程序代码和数据。
以上通信单元或通信接口可以是一种该装置的接口电路或通信接口,用于从其它装置接收信号。例如,当该装置以芯片的方式实现时,该通信单元或通信接口是该芯片用于从其它芯片或装置接收信号或发送信号的接口电路或通信接口。
在上述实施例中,存储器存储的供处理器执行的指令可以以计算机程序产品的形式实现。计算机程序产品可以是事先写入在存储器中,也可以是以软件形式下载并安装在存储器中。
计算机程序产品包括一个或多个计算机指令。在计算机上加载和执行计算机程序指令时,全部或部分地产生按照本申请实施例的流程或功能。计算机可以是通用计算机、专用计算机、计算机网络、或者其他可编程装置。计算机指令可以存储在计算机可读存储介质中,或者从一个计算机可读存储介质向另一计算机可读存储介质传输,例如,计算机指令可以从一个网站站点、计算机、服务器或数据中心通过有线(例如同轴电缆、光纤、数字用户线(DSL))或无线(例如红外、无线、微波等)方式向另一个网站站点、计算机、服务器或数据中心进行传输。计算机可读存储介质可以是计算机能够存储的任何可用介质或者是包括一个或多个可用介质集成的服务器、数据中心等数据存储设备。可用介质可以是磁性介质,(例如,软盘、硬盘、磁带)、光介质(例如,DVD)、或者半导体介质(例如固态硬盘solid state disk,SSD)等。
可选的,本申请实施例还提供一种计算机可读存储介质,所述计算机可读存储介质中存储有计算机指令;当所述计算机可读存储介质在计算机上运行时,使得该计算机执行本申请实施例所提供的任意一种方法。
本申请实施例还提供了一种包含计算机指令的计算机程序产品,当其在计算机上运行时,使得计算机可以执行本申请实施例提供的任意一种方法。
本申请实施例还提供一种芯片,该芯片包括处理器,该处理器执行指令时,使得该芯片可以执行本申请实施例提供的任意一种方法。
在上述实施例中,可以全部或部分地通过软件、硬件、固件或者其任意组合来实现。当使用软件程序实现时,可以全部或部分地以计算机程序产品的形式来实现。该计算机程序产品包括一个或多个计算机指令。在计算机上加载和执行计算机程序指令时,全部或部分地产生按照本申请实施例的流程或功能。计算机可以是通用计算机、专用计算机、计算机网络、或者其他可编程装置。计算机指令可以存储在计算机可读存储介质中,或者从一个计算机可读存储介质向另一个计算机可读存储介质传输,例如,计算机指令可以从一个网站站点、计算机、服务器或者数据中心通过有线(例如同轴电缆、光纤、数字用户线(digital subscriber line,DSL))或无线(例如红外、无线、微波等)方式向另一个网站站点、计算机、服务器或数据中心进行传输。计算 机可读存储介质可以是计算机能够存取的任何可用介质或者是包括一个或多个可以用介质集成的服务器、数据中心等数据存储设备。可用介质可以是磁性介质(例如,软盘、硬盘、磁带),光介质(例如,DVD)、或者半导体介质(例如,SSD)等。
尽管在此结合各实施例对本申请进行了描述,然而,在实施所要求保护的本申请过程中,本领域技术人员通过查看附图、公开内容、以及所附权利要求书,可理解并实现公开实施例的其他变化。在权利要求中,“包括”(comprising)一词不排除其他组成部分或步骤,“一”或“一个”不排除多个的情况。单个处理器或其他单元可以实现权利要求中列举的若干项功能。相互不同的从属权利要求中记载了某些措施,但这并不表示这些措施不能组合起来产生良好的效果。
尽管结合具体特征及其实施例对本申请进行了描述,显而易见的,在不脱离本申请的精神和范围的情况下,可对其进行各种修改和组合。相应地,本说明书和附图仅仅是所附权利要求所界定的本申请的示例性说明,且视为已覆盖本申请范围内的任意和所有修改、变化、组合或等同物。显然,本领域的技术人员可以对本申请进行各种改动和变型而不脱离本申请的精神和范围。这样,倘若本申请的这些修改和变型属于本申请权利要求及其等同技术的范围之内,则本申请也意图包括这些改动和变型在内。

Claims (41)

  1. 一种建立蓝牙连接的方法,其特征在于,包括:
    第一设备交替地进行周期性扫描,其中,第一扫描周期用于第一类型蓝牙连接,第二扫描周期用于第二类型蓝牙连接;
    所述第一设备在任一所述第一扫描周期的第一扫描窗口中从第二设备接收第一类型数据包,其中,所述第一类型数据包用于建立所述第一类型蓝牙连接;
    所述第一设备根据所述第一类型数据包获取用于与所述第二设备建立所述第二类型蓝牙连接的第二连接参数;
    所述第一设备根据所述第二连接参数与所述第二设备建立所述第二类型蓝牙连接。
  2. 根据权利要求1所述的方法,其特征在于,所述第一类型数据包包括:第一标识信息和所述第一标识信息对应的所述第二连接参数,所述第一标识信息用于指示所述第一设备建立所述第二类型蓝牙连接,所述方法还包括:
    所述第一设备解析所述第一类型数据包,获取所述第一标识信息,根据所述第一标识信息确定建立所述第二类型蓝牙连接;
    所述第一设备根据所述第一类型数据包获取所述第二连接参数,包括:
    所述第一设备解析所述第一类型数据包,获取所述第一标识信息对应的所述第二连接参数。
  3. 根据权利要求1所述的方法,其特征在于,所述第一设备根据所述第一类型数据包获取所述第二连接参数,包括:
    所述第一设备根据所述第一类型数据包开启第二扫描窗口,所述第二扫描窗口用于接收第二类型数据包,所述第二类型数据包包括所述第二连接参数;
    所述第一设备解析所述第二类型数据包,获取所述第二连接参数。
  4. 根据权利要求3所述的方法,其特征在于,所述第一类型数据包中包括第一标识信息,所述第一标识信息用于指示开启所述第二扫描窗口,所述第一设备根据所述第一类型数据包开启第二扫描窗口,包括:
    所述第一设备根据所述第一标识信息开启所述第二扫描窗口。
  5. 根据权利要求3或4所述的方法,其特征在于,所述第一类型数据包为广播包,所述第二类型数据包为寻呼包,所述第一类型蓝牙连接为低功耗蓝牙连接,所述第二类型蓝牙连接为经典蓝牙连接。
  6. 根据权利要求3所述的方法,其特征在于,所述第一设备根据所述第一类型数据包开启第二扫描窗口,包括:
    所述第一设备根据所述第一类型数据包,向所述第二设备发送所述第一类型数据包的反馈;
    所述第一设备从所述第二设备接收第一标识信息,所述第一标识信息用于指示开启所述第二扫描窗口;
    所述第一设备根据所述第一标识信息开启所述第二扫描窗口。
  7. 根据权利要求3或6所述的方法,其特征在于,所述第一类型数据包为寻呼包,所述第二类型数据包为广播包,所述第一类型蓝牙连接为经典蓝牙连接,所述第二类型蓝牙连接为低功耗蓝牙连接。
  8. 根据权利要求3-7任一项所述的方法,其特征在于,所述第一设备根据所述第一类型数据包开启第二扫描窗口,包括:
    所述第一设备在接收到所述第一类型数据包之后的预设时间段内开启所述第二扫描窗口,所述预设时间段位于所述第一扫描周期内。
  9. 根据权利要求1所述的方法,其特征在于,所述第一设备根据所述第一类型数据包获取所述第二连接参数,包括:
    所述第一设备根据所述第一类型数据包获取第一连接参数,所述第一连接参数用于建立所述第一类型蓝牙连接;
    所述第一设备根据所述第一连接参数与所述第二设备建立所述第一类型蓝牙连接的通信链路;
    所述第一设备通过所述通信链路获取所述第二设备发送的第一标识信息和所述第一标识信息对应的第二连接参数,所述第一标识信息用于指示所述第一设备建立所述第二类型蓝牙连接。
  10. 根据权利要求2或9所述的方法,其特征在于,所述第一类型数据包为广播包,所述第一类型蓝牙连接为低功耗蓝牙连接,所述第二类型蓝牙连接为经典蓝牙连接。
  11. 根据权利要求9所述的方法,其特征在于,所述第一类型数据包为寻呼包,所述第一类型蓝牙连接为经典蓝牙连接,所述第二类型蓝牙连接为低功耗蓝牙连接。
  12. 一种建立蓝牙连接的方法,其特征在于,包括:
    第二设备根据要建立的第二类型蓝牙连接生成第一标识信息;
    所述第二设备交替发送第一类型数据包和第二类型数据包,所述第一类型数据包用于建立第一类型蓝牙连接,所述第二类型数据包用于建立所述第二类型蓝牙连接;
    所述第二设备发送所述第一标识信息。
  13. 根据权利要求12所述的方法,其特征在于,所述第一类型数据包包括:第一标识信息和所述第一标识信息对应的第二连接参数,所述第一标识信息用于指示第一设备建立所述第二类型蓝牙连接,所述第二连接参数用于与所述第一设备建立所述第二类型蓝牙连接。
  14. 根据权利要求12所述的方法,其特征在于,所述第一类型数据包中包括所述第一标识信息。
  15. 根据权利要求12所述的方法,其特征在于,所述第二设备发送所述第一标识信息,包括:
    所述第二设备响应于第一设备发送的所述第一类型数据包的反馈,向所述第一设备发送所述第一标识信息。
  16. 根据权利要求14或15所述的方法,其特征在于,所述第一标识信息用于指示第一设备开启第二扫描窗口,所述第二扫描窗口用于所述第一设备接收所述第二类型数据包。
  17. 根据权利要求12所述的方法,其特征在于,所述第二设备发送所述第一标识信息之前,所述方法还包括:
    所述第二设备根据所述第一类型数据包与第一设备建立所述第一类型蓝牙连接的通信链路;
    所述第二设备发送所述第一标识信息,包括:
    所述第二设备在所述通信链路向所述第一设备发送所述第一标识信息,所述第一标识信息用于指示所述第一设备建立所述第二类型蓝牙连接;
    所述方法还包括:
    所述第二设备在所述通信链路向所述第一设备发送第一标识信息对应的第二连接参数,所述第二连接参数用于建立所述第二类型蓝牙连接。
  18. 根据权利要求12-14或17任一项所述的方法,其特征在于,所述第一类型数据包为广播包,所述第二类型数据包为寻呼包,所述第一类型蓝牙连接为低功耗蓝牙连接,所述第二类型蓝牙连接为经典蓝牙连接。
  19. 根据权利要求12或15或17任一项所述的方法,其特征在于,所述第一类型数据包为寻呼包,所述第二类型数据包为广播包,所述第一类型蓝牙连接为经典蓝牙连接,所述第二类型蓝牙连接为低功耗蓝牙连接。
  20. 一种蓝牙通信装置,其特征在于,包括:
    处理器,用于交替地进行周期性扫描,其中,第一扫描周期用于第一类型蓝牙连接,第二扫描周期用于第二类型蓝牙连接;
    接收器,用于在任一所述第一扫描周期的第一扫描窗口中从第二设备接收第一类型数据包,其中,所述第一类型数据包用于建立所述第一类型蓝牙连接;
    所述处理器,还用于根据所述第一类型数据包获取用于与所述第二设备建立所述第二类型蓝牙连接的第二连接参数;
    所述处理器,还用于根据所述第二连接参数与所述第二设备建立所述第二类型蓝牙连接。
  21. 根据权利要求20所述的装置,其特征在于,所述第一类型数据包包括:第一标识信息和所述第一标识信息对应的所述第二连接参数,所述第一标识信息用于指示建立所述第二类型蓝牙连接,
    所述处理器还用于:解析所述第一类型数据包,获取所述第一标识信息,根据所述第一标识信息确定建立所述第二类型蓝牙连接;
    所述处理器具体用于:解析所述第一类型数据包,获取所述所述第一标识信息对应的所述第二连接参数。
  22. 根据权利要求20所述的装置,其特征在于,所述处理器具体用于:
    根据所述第一类型数据包开启第二扫描窗口,所述第二扫描窗口用于接收第二类型数据包,所述第二类型数据包包括所述第二连接参数;
    解析所述第二类型数据包,获取所述第二连接参数。
  23. 根据权利要求22所述的装置,其特征在于,所述第一类型数据包中包括第一标识信息,所述第一标识信息用于指示开启所述第二扫描窗口,所述处理器具体用于:
    根据所述第一标识信息开启所述第二扫描窗口。
  24. 根据权利要求22或23所述的装置,其特征在于,所述第一类型数据包为广播包,所述第二类型数据包为寻呼包,所述第一类型蓝牙连接为低功耗蓝牙连接,所述第二类型蓝牙连接为经典蓝牙连接。
  25. 根据权利要求22所述的装置,其特征在于,所述装置还包括:
    发送器,用于根据所述第一类型数据包,向所述第二设备发送所述第一类型数据包的反馈;
    所述接收器,还用于从所述第二设备接收第一标识信息,所述第一标识信息用于指示开启所述第二扫描窗口;
    所述处理器,具体用于根据所述第一标识信息开启所述第二扫描窗口。
  26. 根据权利要求22或25所述的装置,其特征在于,所述第一类型数据包为寻呼包,所述第二类型数据包为广播包,所述第一类型蓝牙连接为经典蓝牙连接,所述第二类型蓝牙连接为低功耗蓝牙连接。
  27. 根据权利要求22-26任一项所述的装置,其特征在于,所述处理器具体用于:
    在接收到所述第一类型数据包之后的预设时间段内开启所述第二扫描窗口,所述预设时间段位于所述第一扫描周期内。
  28. 根据权利要求20所述的装置,其特征在于,所述处理器具体用于:
    根据所述第一类型数据包获取第一连接参数,所述第一连接参数用于建立所述第一类型蓝牙连接;
    根据所述第一连接参数与所述第二设备建立所述第一类型蓝牙连接的通信链路;
    通过所述通信链路获取所述第二设备发送的第一标识信息和所述第一标识信息对应的第二连接参数,所述第一标识信息用于指示所述第一设备建立所述第二类型蓝牙连接。
  29. 根据权利要求21或28所述的装置,其特征在于,所述第一类型数据包为广播包,所述第一类型蓝牙连接为低功耗蓝牙连接,所述第二类型蓝牙连接为经典蓝牙连接。
  30. 根据权利要求28所述的装置,其特征在于,所述第一类型数据包为寻呼包,所述第一类型蓝牙连接为经典蓝牙连接,所述第二类型蓝牙连接为低功耗蓝牙连接。
  31. 一种蓝牙通信装置,其特征在于,包括:
    处理器,用于根据要建立的第二类型蓝牙连接生成第一标识信息;
    发送器,用于交替发送第一类型数据包和第二类型数据包,所述第一类型数据包用于建立第一类型蓝牙连接,所述第二类型数据包用于建立所述第二类型蓝牙连接;
    所述发送器,还用于发送所述第一标识信息。
  32. 根据权利要求31所述的装置,其特征在于,所述第一类型数据包包括:第一标识信息和所述第一标识信息对应的第二连接参数,所述第一标识信息用于指示第一设备建立所述第二类型蓝牙连接,所述第二连接参数用于与第一设备建立所述第二类型蓝牙连接。
  33. 根据权利要求31所述的装置,其特征在于,所述第一类型数据包中包括所述第一标识信息。
  34. 根据权利要求31所述的装置,其特征在于,所述发送器具体用于:
    响应于第一设备发送的所述第一类型数据包的反馈,向所述第一设备发送所述第一标识信息。
  35. 根据权利要求33或34所述的装置,其特征在于,所述第一标识信息用于指示第一设备开启第二扫描窗口,所述第二扫描窗口用于所述第一设备接收所述第二类型 数据包。
  36. 根据权利要求31所述的装置,其特征在于,
    所述处理器还用于:根据所述第一类型数据包与第一设备建立所述第一类型蓝牙连接的通信链路;
    所述发送器具体用于:在所述通信链路向所述第一设备发送所述第一标识信息,所述第一标识信息用于指示所述第一设备建立所述第二类型蓝牙连接;
    所述发送器还用于,在所述通信链路向所述第一设备发送所述第一标识信息对应的第二连接参数,所述第二连接参数用于建立所述第二类型蓝牙连接。
  37. 根据权利要求31-33或36任一项所述的装置,其特征在于,所述第一类型数据包为广播包,所述第二类型数据包为寻呼包,所述第一类型蓝牙连接为低功耗蓝牙连接,所述第二类型蓝牙连接为经典蓝牙连接。
  38. 根据权利要求31或34或36任一项所述的装置,其特征在于,所述第一类型数据包为寻呼包,所述第二类型数据包为广播包,所述第一类型蓝牙连接为经典蓝牙连接,所述第二类型蓝牙连接为低功耗蓝牙连接。
  39. 一种蓝牙通信系统,其特征在于,包括第一设备以及第二设备,所述第一设备用于执行如权利要求1-11中任一项所述的方法,所述第二设备用于执行如权利要求12-19中任一项所述的方法。
  40. 一种计算机可读存储介质,其特征在于,用于存储计算机指令,当所述计算机指令在计算机上运行时,使得所述计算机执行如权利要求1-19中任一项所述的方法。
  41. 一种计算机程序产品,其特征在于,包含计算机指令,当所述计算机指令在计算机上运行时,使得所述计算机执行如权利要求1-19中任一项所述的方法。
PCT/CN2021/105860 2021-07-12 2021-07-12 蓝牙连接方法及装置 WO2023283794A1 (zh)

Priority Applications (4)

Application Number Priority Date Filing Date Title
CN202180099103.6A CN117441354A (zh) 2021-07-12 2021-07-12 蓝牙连接方法及装置
PCT/CN2021/105860 WO2023283794A1 (zh) 2021-07-12 2021-07-12 蓝牙连接方法及装置
EP21949590.0A EP4336873A4 (en) 2021-07-12 2021-07-12 BLUETOOTH CONNECTION METHOD AND DEVICE
US18/410,584 US20240147551A1 (en) 2021-07-12 2024-01-11 Bluetooth connection method and apparatus

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2021/105860 WO2023283794A1 (zh) 2021-07-12 2021-07-12 蓝牙连接方法及装置

Related Child Applications (1)

Application Number Title Priority Date Filing Date
US18/410,584 Continuation US20240147551A1 (en) 2021-07-12 2024-01-11 Bluetooth connection method and apparatus

Publications (1)

Publication Number Publication Date
WO2023283794A1 true WO2023283794A1 (zh) 2023-01-19

Family

ID=84919821

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2021/105860 WO2023283794A1 (zh) 2021-07-12 2021-07-12 蓝牙连接方法及装置

Country Status (4)

Country Link
US (1) US20240147551A1 (zh)
EP (1) EP4336873A4 (zh)
CN (1) CN117441354A (zh)
WO (1) WO2023283794A1 (zh)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20140188348A1 (en) * 2012-12-27 2014-07-03 GM Global Technology Operations LLC Method and system for detecting proximity of an end device to a vehicle based on signal strength information received over a bluetooth low energy (ble) advertising channel
CN105898682A (zh) * 2016-04-11 2016-08-24 上海斐讯数据通信技术有限公司 蓝牙通信方法和系统
US20170223615A1 (en) * 2014-07-31 2017-08-03 Lg Electronics Inc. Method and apparatus for controlling electronic device in wireless communication system supporting bluetooth communication
CN108551670A (zh) * 2018-03-30 2018-09-18 深圳市冠旭电子股份有限公司 一种蓝牙连接方法、装置及智能终端
CN111436038A (zh) * 2019-10-23 2020-07-21 珠海市杰理科技股份有限公司 蓝牙连接方法及系统、蓝牙主、从设备连接方法及蓝牙主、从设备

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108476060B (zh) * 2016-06-27 2021-02-12 华为技术有限公司 用于双模蓝牙设备之间建立经典蓝牙连接的方法和双模蓝牙设备

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20140188348A1 (en) * 2012-12-27 2014-07-03 GM Global Technology Operations LLC Method and system for detecting proximity of an end device to a vehicle based on signal strength information received over a bluetooth low energy (ble) advertising channel
US20170223615A1 (en) * 2014-07-31 2017-08-03 Lg Electronics Inc. Method and apparatus for controlling electronic device in wireless communication system supporting bluetooth communication
CN105898682A (zh) * 2016-04-11 2016-08-24 上海斐讯数据通信技术有限公司 蓝牙通信方法和系统
CN108551670A (zh) * 2018-03-30 2018-09-18 深圳市冠旭电子股份有限公司 一种蓝牙连接方法、装置及智能终端
CN111436038A (zh) * 2019-10-23 2020-07-21 珠海市杰理科技股份有限公司 蓝牙连接方法及系统、蓝牙主、从设备连接方法及蓝牙主、从设备

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
See also references of EP4336873A4 *

Also Published As

Publication number Publication date
US20240147551A1 (en) 2024-05-02
CN117441354A (zh) 2024-01-23
EP4336873A1 (en) 2024-03-13
EP4336873A4 (en) 2024-05-01

Similar Documents

Publication Publication Date Title
US9420631B2 (en) WLAN peer-to-peer group owner negotiation
WO2018113086A1 (zh) 一种无线连接切换方法及终端
US20220159696A1 (en) Wireless communication method, terminal device, and network device
WO2018059463A1 (zh) 波束指示方法、网络设备及终端
WO2023279297A1 (zh) 随机接入方法、装置及存储介质
KR20230121909A (ko) Uwb를 이용한 장치 탐색 방법 및 장치
CN111669835B (zh) 通信的方法、装置及系统
CN114830699A (zh) 建立iso链路的方法和ble设备
WO2023283794A1 (zh) 蓝牙连接方法及装置
US20230180344A1 (en) Wireless communication method and device
US20220287014A1 (en) Resource allocation methods and apparatuses, message frame processing methods, apparatuses and storage mediums
CN113810964A (zh) 一种通信方法及设备
CN112291757A (zh) 数据传输方法、装置、存储介质及电子设备
WO2014186583A2 (en) Wireless station and method for managing a multi-band session in wi-fi direct services
TW202121861A (zh) 藍牙查詢/尋呼的方法及通信設備
WO2024041161A1 (zh) 发送与接收信息的方法、通信装置及系统
WO2023151085A1 (zh) 一种系统信息的传输方法、通信装置及通信设备
WO2024051660A1 (zh) 通信方法和通信装置
CN113841431B (zh) 通信方法和通信装置
WO2023231864A1 (zh) 一种时效保证方法、装置及系统
CN114556872B (zh) 无线通信方法、装置、电子设备以及存储介质
WO2023179585A1 (zh) 时钟同步的方法和装置
WO2023004834A1 (zh) 资源分配方法、装置及系统
WO2024087064A1 (zh) 通信方法、电子设备及存储介质
US20220304008A1 (en) Data transmission method and apparatus and storage medium

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 21949590

Country of ref document: EP

Kind code of ref document: A1

WWE Wipo information: entry into national phase

Ref document number: 2021949590

Country of ref document: EP

ENP Entry into the national phase

Ref document number: 2021949590

Country of ref document: EP

Effective date: 20231204

WWE Wipo information: entry into national phase

Ref document number: 202180099103.6

Country of ref document: CN

NENP Non-entry into the national phase

Ref country code: DE