WO2023283794A1 - 蓝牙连接方法及装置 - Google Patents
蓝牙连接方法及装置 Download PDFInfo
- 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
Links
- 238000000034 method Methods 0.000 title claims abstract description 123
- 230000000737 periodic effect Effects 0.000 claims abstract description 7
- 238000004891 communication Methods 0.000 claims description 88
- 238000004590 computer program Methods 0.000 claims description 11
- 230000004044 response Effects 0.000 claims description 6
- 230000008569 process Effects 0.000 description 35
- 230000003993 interaction Effects 0.000 description 25
- 238000012545 processing Methods 0.000 description 25
- 238000010586 diagram Methods 0.000 description 17
- 230000006870 function Effects 0.000 description 15
- 238000012790 confirmation Methods 0.000 description 11
- 230000002452 interceptive effect Effects 0.000 description 8
- 238000005516 engineering process Methods 0.000 description 6
- 238000012986 modification Methods 0.000 description 5
- 230000004048 modification Effects 0.000 description 5
- 230000005540 biological transmission Effects 0.000 description 3
- 238000013461 design Methods 0.000 description 3
- 230000003287 optical effect Effects 0.000 description 3
- 230000009286 beneficial effect Effects 0.000 description 2
- 238000013500 data storage Methods 0.000 description 2
- 239000013307 optical fiber Substances 0.000 description 2
- 238000005457 optimization Methods 0.000 description 2
- 239000004065 semiconductor Substances 0.000 description 2
- 238000004904 shortening Methods 0.000 description 2
- 239000002699 waste material Substances 0.000 description 2
- 241000699670 Mus sp. Species 0.000 description 1
- 230000003190 augmentative effect Effects 0.000 description 1
- 230000008901 benefit Effects 0.000 description 1
- 239000003795 chemical substances by application Substances 0.000 description 1
- 230000008094 contradictory effect Effects 0.000 description 1
- 230000001419 dependent effect Effects 0.000 description 1
- 230000009191 jumping Effects 0.000 description 1
- 230000007246 mechanism Effects 0.000 description 1
- 239000007787 solid Substances 0.000 description 1
- 238000012360 testing method Methods 0.000 description 1
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W76/00—Connection management
- H04W76/10—Connection setup
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W4/00—Services specially adapted for wireless communication networks; Facilities therefor
- H04W4/80—Services using short range communication, e.g. near-field communication [NFC], radio-frequency identification [RFID] or low energy communication
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W48/00—Access restriction; Network selection; Access point selection
- H04W48/08—Access restriction or access information delivery, e.g. discovery data delivery
- H04W48/14—Access restriction or access information delivery, e.g. discovery data delivery using user query or user detection
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W84/00—Network topologies
- H04W84/18—Self-organising networks, e.g. ad-hoc networks or sensor networks
-
- Y—GENERAL 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
- Y02—TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
- Y02D—CLIMATE 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/00—Reducing energy consumption in communication networks
- Y02D30/70—Reducing 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
Claims (41)
- 一种建立蓝牙连接的方法,其特征在于,包括:第一设备交替地进行周期性扫描,其中,第一扫描周期用于第一类型蓝牙连接,第二扫描周期用于第二类型蓝牙连接;所述第一设备在任一所述第一扫描周期的第一扫描窗口中从第二设备接收第一类型数据包,其中,所述第一类型数据包用于建立所述第一类型蓝牙连接;所述第一设备根据所述第一类型数据包获取用于与所述第二设备建立所述第二类型蓝牙连接的第二连接参数;所述第一设备根据所述第二连接参数与所述第二设备建立所述第二类型蓝牙连接。
- 根据权利要求1所述的方法,其特征在于,所述第一类型数据包包括:第一标识信息和所述第一标识信息对应的所述第二连接参数,所述第一标识信息用于指示所述第一设备建立所述第二类型蓝牙连接,所述方法还包括:所述第一设备解析所述第一类型数据包,获取所述第一标识信息,根据所述第一标识信息确定建立所述第二类型蓝牙连接;所述第一设备根据所述第一类型数据包获取所述第二连接参数,包括:所述第一设备解析所述第一类型数据包,获取所述第一标识信息对应的所述第二连接参数。
- 根据权利要求1所述的方法,其特征在于,所述第一设备根据所述第一类型数据包获取所述第二连接参数,包括:所述第一设备根据所述第一类型数据包开启第二扫描窗口,所述第二扫描窗口用于接收第二类型数据包,所述第二类型数据包包括所述第二连接参数;所述第一设备解析所述第二类型数据包,获取所述第二连接参数。
- 根据权利要求3所述的方法,其特征在于,所述第一类型数据包中包括第一标识信息,所述第一标识信息用于指示开启所述第二扫描窗口,所述第一设备根据所述第一类型数据包开启第二扫描窗口,包括:所述第一设备根据所述第一标识信息开启所述第二扫描窗口。
- 根据权利要求3或4所述的方法,其特征在于,所述第一类型数据包为广播包,所述第二类型数据包为寻呼包,所述第一类型蓝牙连接为低功耗蓝牙连接,所述第二类型蓝牙连接为经典蓝牙连接。
- 根据权利要求3所述的方法,其特征在于,所述第一设备根据所述第一类型数据包开启第二扫描窗口,包括:所述第一设备根据所述第一类型数据包,向所述第二设备发送所述第一类型数据包的反馈;所述第一设备从所述第二设备接收第一标识信息,所述第一标识信息用于指示开启所述第二扫描窗口;所述第一设备根据所述第一标识信息开启所述第二扫描窗口。
- 根据权利要求3或6所述的方法,其特征在于,所述第一类型数据包为寻呼包,所述第二类型数据包为广播包,所述第一类型蓝牙连接为经典蓝牙连接,所述第二类型蓝牙连接为低功耗蓝牙连接。
- 根据权利要求3-7任一项所述的方法,其特征在于,所述第一设备根据所述第一类型数据包开启第二扫描窗口,包括:所述第一设备在接收到所述第一类型数据包之后的预设时间段内开启所述第二扫描窗口,所述预设时间段位于所述第一扫描周期内。
- 根据权利要求1所述的方法,其特征在于,所述第一设备根据所述第一类型数据包获取所述第二连接参数,包括:所述第一设备根据所述第一类型数据包获取第一连接参数,所述第一连接参数用于建立所述第一类型蓝牙连接;所述第一设备根据所述第一连接参数与所述第二设备建立所述第一类型蓝牙连接的通信链路;所述第一设备通过所述通信链路获取所述第二设备发送的第一标识信息和所述第一标识信息对应的第二连接参数,所述第一标识信息用于指示所述第一设备建立所述第二类型蓝牙连接。
- 根据权利要求2或9所述的方法,其特征在于,所述第一类型数据包为广播包,所述第一类型蓝牙连接为低功耗蓝牙连接,所述第二类型蓝牙连接为经典蓝牙连接。
- 根据权利要求9所述的方法,其特征在于,所述第一类型数据包为寻呼包,所述第一类型蓝牙连接为经典蓝牙连接,所述第二类型蓝牙连接为低功耗蓝牙连接。
- 一种建立蓝牙连接的方法,其特征在于,包括:第二设备根据要建立的第二类型蓝牙连接生成第一标识信息;所述第二设备交替发送第一类型数据包和第二类型数据包,所述第一类型数据包用于建立第一类型蓝牙连接,所述第二类型数据包用于建立所述第二类型蓝牙连接;所述第二设备发送所述第一标识信息。
- 根据权利要求12所述的方法,其特征在于,所述第一类型数据包包括:第一标识信息和所述第一标识信息对应的第二连接参数,所述第一标识信息用于指示第一设备建立所述第二类型蓝牙连接,所述第二连接参数用于与所述第一设备建立所述第二类型蓝牙连接。
- 根据权利要求12所述的方法,其特征在于,所述第一类型数据包中包括所述第一标识信息。
- 根据权利要求12所述的方法,其特征在于,所述第二设备发送所述第一标识信息,包括:所述第二设备响应于第一设备发送的所述第一类型数据包的反馈,向所述第一设备发送所述第一标识信息。
- 根据权利要求14或15所述的方法,其特征在于,所述第一标识信息用于指示第一设备开启第二扫描窗口,所述第二扫描窗口用于所述第一设备接收所述第二类型数据包。
- 根据权利要求12所述的方法,其特征在于,所述第二设备发送所述第一标识信息之前,所述方法还包括:所述第二设备根据所述第一类型数据包与第一设备建立所述第一类型蓝牙连接的通信链路;所述第二设备发送所述第一标识信息,包括:所述第二设备在所述通信链路向所述第一设备发送所述第一标识信息,所述第一标识信息用于指示所述第一设备建立所述第二类型蓝牙连接;所述方法还包括:所述第二设备在所述通信链路向所述第一设备发送第一标识信息对应的第二连接参数,所述第二连接参数用于建立所述第二类型蓝牙连接。
- 根据权利要求12-14或17任一项所述的方法,其特征在于,所述第一类型数据包为广播包,所述第二类型数据包为寻呼包,所述第一类型蓝牙连接为低功耗蓝牙连接,所述第二类型蓝牙连接为经典蓝牙连接。
- 根据权利要求12或15或17任一项所述的方法,其特征在于,所述第一类型数据包为寻呼包,所述第二类型数据包为广播包,所述第一类型蓝牙连接为经典蓝牙连接,所述第二类型蓝牙连接为低功耗蓝牙连接。
- 一种蓝牙通信装置,其特征在于,包括:处理器,用于交替地进行周期性扫描,其中,第一扫描周期用于第一类型蓝牙连接,第二扫描周期用于第二类型蓝牙连接;接收器,用于在任一所述第一扫描周期的第一扫描窗口中从第二设备接收第一类型数据包,其中,所述第一类型数据包用于建立所述第一类型蓝牙连接;所述处理器,还用于根据所述第一类型数据包获取用于与所述第二设备建立所述第二类型蓝牙连接的第二连接参数;所述处理器,还用于根据所述第二连接参数与所述第二设备建立所述第二类型蓝牙连接。
- 根据权利要求20所述的装置,其特征在于,所述第一类型数据包包括:第一标识信息和所述第一标识信息对应的所述第二连接参数,所述第一标识信息用于指示建立所述第二类型蓝牙连接,所述处理器还用于:解析所述第一类型数据包,获取所述第一标识信息,根据所述第一标识信息确定建立所述第二类型蓝牙连接;所述处理器具体用于:解析所述第一类型数据包,获取所述所述第一标识信息对应的所述第二连接参数。
- 根据权利要求20所述的装置,其特征在于,所述处理器具体用于:根据所述第一类型数据包开启第二扫描窗口,所述第二扫描窗口用于接收第二类型数据包,所述第二类型数据包包括所述第二连接参数;解析所述第二类型数据包,获取所述第二连接参数。
- 根据权利要求22所述的装置,其特征在于,所述第一类型数据包中包括第一标识信息,所述第一标识信息用于指示开启所述第二扫描窗口,所述处理器具体用于:根据所述第一标识信息开启所述第二扫描窗口。
- 根据权利要求22或23所述的装置,其特征在于,所述第一类型数据包为广播包,所述第二类型数据包为寻呼包,所述第一类型蓝牙连接为低功耗蓝牙连接,所述第二类型蓝牙连接为经典蓝牙连接。
- 根据权利要求22所述的装置,其特征在于,所述装置还包括:发送器,用于根据所述第一类型数据包,向所述第二设备发送所述第一类型数据包的反馈;所述接收器,还用于从所述第二设备接收第一标识信息,所述第一标识信息用于指示开启所述第二扫描窗口;所述处理器,具体用于根据所述第一标识信息开启所述第二扫描窗口。
- 根据权利要求22或25所述的装置,其特征在于,所述第一类型数据包为寻呼包,所述第二类型数据包为广播包,所述第一类型蓝牙连接为经典蓝牙连接,所述第二类型蓝牙连接为低功耗蓝牙连接。
- 根据权利要求22-26任一项所述的装置,其特征在于,所述处理器具体用于:在接收到所述第一类型数据包之后的预设时间段内开启所述第二扫描窗口,所述预设时间段位于所述第一扫描周期内。
- 根据权利要求20所述的装置,其特征在于,所述处理器具体用于:根据所述第一类型数据包获取第一连接参数,所述第一连接参数用于建立所述第一类型蓝牙连接;根据所述第一连接参数与所述第二设备建立所述第一类型蓝牙连接的通信链路;通过所述通信链路获取所述第二设备发送的第一标识信息和所述第一标识信息对应的第二连接参数,所述第一标识信息用于指示所述第一设备建立所述第二类型蓝牙连接。
- 根据权利要求21或28所述的装置,其特征在于,所述第一类型数据包为广播包,所述第一类型蓝牙连接为低功耗蓝牙连接,所述第二类型蓝牙连接为经典蓝牙连接。
- 根据权利要求28所述的装置,其特征在于,所述第一类型数据包为寻呼包,所述第一类型蓝牙连接为经典蓝牙连接,所述第二类型蓝牙连接为低功耗蓝牙连接。
- 一种蓝牙通信装置,其特征在于,包括:处理器,用于根据要建立的第二类型蓝牙连接生成第一标识信息;发送器,用于交替发送第一类型数据包和第二类型数据包,所述第一类型数据包用于建立第一类型蓝牙连接,所述第二类型数据包用于建立所述第二类型蓝牙连接;所述发送器,还用于发送所述第一标识信息。
- 根据权利要求31所述的装置,其特征在于,所述第一类型数据包包括:第一标识信息和所述第一标识信息对应的第二连接参数,所述第一标识信息用于指示第一设备建立所述第二类型蓝牙连接,所述第二连接参数用于与第一设备建立所述第二类型蓝牙连接。
- 根据权利要求31所述的装置,其特征在于,所述第一类型数据包中包括所述第一标识信息。
- 根据权利要求31所述的装置,其特征在于,所述发送器具体用于:响应于第一设备发送的所述第一类型数据包的反馈,向所述第一设备发送所述第一标识信息。
- 根据权利要求33或34所述的装置,其特征在于,所述第一标识信息用于指示第一设备开启第二扫描窗口,所述第二扫描窗口用于所述第一设备接收所述第二类型 数据包。
- 根据权利要求31所述的装置,其特征在于,所述处理器还用于:根据所述第一类型数据包与第一设备建立所述第一类型蓝牙连接的通信链路;所述发送器具体用于:在所述通信链路向所述第一设备发送所述第一标识信息,所述第一标识信息用于指示所述第一设备建立所述第二类型蓝牙连接;所述发送器还用于,在所述通信链路向所述第一设备发送所述第一标识信息对应的第二连接参数,所述第二连接参数用于建立所述第二类型蓝牙连接。
- 根据权利要求31-33或36任一项所述的装置,其特征在于,所述第一类型数据包为广播包,所述第二类型数据包为寻呼包,所述第一类型蓝牙连接为低功耗蓝牙连接,所述第二类型蓝牙连接为经典蓝牙连接。
- 根据权利要求31或34或36任一项所述的装置,其特征在于,所述第一类型数据包为寻呼包,所述第二类型数据包为广播包,所述第一类型蓝牙连接为经典蓝牙连接,所述第二类型蓝牙连接为低功耗蓝牙连接。
- 一种蓝牙通信系统,其特征在于,包括第一设备以及第二设备,所述第一设备用于执行如权利要求1-11中任一项所述的方法,所述第二设备用于执行如权利要求12-19中任一项所述的方法。
- 一种计算机可读存储介质,其特征在于,用于存储计算机指令,当所述计算机指令在计算机上运行时,使得所述计算机执行如权利要求1-19中任一项所述的方法。
- 一种计算机程序产品,其特征在于,包含计算机指令,当所述计算机指令在计算机上运行时,使得所述计算机执行如权利要求1-19中任一项所述的方法。
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)
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)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108476060B (zh) * | 2016-06-27 | 2021-02-12 | 华为技术有限公司 | 用于双模蓝牙设备之间建立经典蓝牙连接的方法和双模蓝牙设备 |
-
2021
- 2021-07-12 WO PCT/CN2021/105860 patent/WO2023283794A1/zh active Application Filing
- 2021-07-12 CN CN202180099103.6A patent/CN117441354A/zh active Pending
- 2021-07-12 EP EP21949590.0A patent/EP4336873A4/en active Pending
-
2024
- 2024-01-11 US US18/410,584 patent/US20240147551A1/en active Pending
Patent Citations (5)
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)
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 |