Bluetooth connection establishment method, device, electronic device and computer storage medium

By obtaining the clock information and frequency point information of the second Bluetooth device, determining the target Bluetooth frequency hopping sequence, and establishing an asynchronous connectionless connection based on the sequence, the problem of inefficient connection caused by the failure of the intermediate frequency points in the prior art is solved, and fast and reliable Bluetooth connection establishment is achieved.

CN116669006BActive Publication Date: 2025-05-02AIC SEMICON LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202310754501.8
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-06-25
Publication Date
2025-05-02
Estimated Expiration
2043-06-25

AI Technical Summary

Technical Problem

During the existing Bluetooth connection process, due to the inefficient frequency points, the connection efficiency is ineffective and the connection cannot be established quickly and reliably.

Method used

By acquiring the clock information and frequency point information of the second Bluetooth device, a target Bluetooth frequency hopping sequence is determined, and an asynchronous connection-free setting is established based on the sequence.

Benefits of technology

By optimizing the selection of Bluetooth frequency hopping sequences, quickly locate the frequency hopping sequence of connected devices, avoiding connection failures caused by mismatched frequency points, and improving the efficiency of Bluetooth connection establishment.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116669006B_ABST
    Figure CN116669006B_ABST
Patent Text Reader

Abstract

The embodiments of the present invention provide a method, device, electronic device and computer storage medium for establishing a Bluetooth connection. The method for establishing a Bluetooth connection is applied to a first Bluetooth device, and includes: obtaining clock information and frequency information of a second Bluetooth device; determining a target Bluetooth frequency hopping sequence based on the clock information and frequency information; and establishing an asynchronous connectionless connection with the second Bluetooth device based on the target Bluetooth frequency hopping sequence. The method, device, electronic device and computer storage medium for establishing a Bluetooth connection according to the embodiments of the present invention can improve the efficiency of establishing a Bluetooth connection.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention belongs to the technical field of Bluetooth connection, and in particular relates to a method, device, electronic equipment and computer storage medium for establishing a Bluetooth connection. Background Art

[0002] The existing Bluetooth connection process is based on the Bluetooth standard protocol. The device initiating the connection initiates the paging process and sends identification (ID) packets in a continuous manner. The connected end starts the paging scan process and periodically receives the ID packets sent by the device initiating the connection. When the ID packet is received and replied, the device initiating the connection will send a Filesystem Hierarchy Standard (FHS) packet, and then the page process ends and the Asynchronous Connectionless Link (ACL) begins to be established.

[0003] It can be seen that the related technology is to continuously send ID packets in order to receive the ID packets at the connected end. However, since there is no more frequency modulation information, the frequencies of the device initiating the connection and the connected end may not correspond. In other words, even if the time when the device initiating the connection sends the ID packet and the time when the connected end receives the ID packet correspond, it may still not be received due to the wrong frequency.

[0004] Therefore, how to improve the efficiency of establishing a Bluetooth connection is a technical problem that those skilled in the art need to solve urgently. Summary of the invention

[0005] The embodiments of the present invention provide a method, device, electronic device and computer storage medium for establishing a Bluetooth connection, which can improve the efficiency of establishing a Bluetooth connection.

[0006] In a first aspect, an embodiment of the present invention provides a method for establishing a Bluetooth connection, which is applied to a first Bluetooth device, comprising:

[0007] Obtain clock information and frequency information of the second Bluetooth device;

[0008] Determine the target Bluetooth frequency hopping sequence based on the clock information and frequency information;

[0009] Based on the target Bluetooth frequency hopping sequence, an asynchronous connectionless connection is established with the second Bluetooth device.

[0010] Optionally, when the second Bluetooth device is in an inquiry scanning state and a paging scanning state and the first Bluetooth device performs an inquiry operation, acquiring clock information and frequency information of the second Bluetooth device includes:

[0011] receiving a File System Hierarchy Standard (FHS) packet sent by a second Bluetooth device;

[0012] Parse the FHS packet to obtain clock information and frequency information.

[0013] Optionally, after receiving the File System Hierarchy Standard FHS packet sent by the second Bluetooth device, the method further includes:

[0014] Parse the FHS packet to obtain device address information and device identification information of the second Bluetooth device.

[0015] Optionally, obtaining clock information and frequency information of the second Bluetooth device includes:

[0016] Obtain clock information and frequency information through the wireless network.

[0017] In a second aspect, an embodiment of the present invention provides a Bluetooth connection establishment apparatus, applied to a first Bluetooth device, comprising:

[0018] An acquisition module, used to acquire clock information and frequency information of a second Bluetooth device;

[0019] A determination module, used to determine a target Bluetooth frequency hopping sequence according to clock information and frequency information;

[0020] The connection establishment module is used to establish an asynchronous connectionless connection with a second Bluetooth device based on a target Bluetooth frequency hopping sequence.

[0021] Optionally, when the second Bluetooth device is in an inquiry scanning state and a paging scanning state, and the first Bluetooth device performs an inquiry operation, the acquisition module includes:

[0022] A receiving unit, configured to receive a File System Hierarchy Standard (FHS) packet sent by a second Bluetooth device;

[0023] The parsing unit is used to parse the FHS packet to obtain clock information and frequency information.

[0024] Optionally, after receiving the File System Hierarchy Standard FHS packet sent by the second Bluetooth device, the apparatus further includes:

[0025] The parsing module is used to parse the FHS packet to obtain the device address information and device identification information of the second Bluetooth device.

[0026] Optionally, obtain modules, including:

[0027] The acquisition unit is used to acquire clock information and frequency information through a wireless network.

[0028] In a third aspect, an embodiment of the present invention provides an electronic device, the electronic device comprising:

[0029] a processor and a memory storing computer program instructions;

[0030] When the processor executes the computer program instructions, it implements the Bluetooth connection establishment method in the first aspect or any optional implementation manner of the first aspect.

[0031] In a fourth aspect, an embodiment of the present invention provides a computer storage medium having computer program instructions stored thereon, and when the computer program instructions are executed by a processor, the method for establishing a Bluetooth connection in the first aspect or any optional implementation of the first aspect is implemented.

[0032] The Bluetooth connection establishment method, device, electronic device and computer storage medium of the embodiments of the present invention can improve the efficiency of establishing a Bluetooth connection. The Bluetooth connection establishment method obtains the clock information and frequency information of the second Bluetooth device; determines the target Bluetooth frequency hopping sequence based on the clock information and frequency information; and establishes an asynchronous connectionless connection with the second Bluetooth device based on the target Bluetooth frequency hopping sequence. It can be seen that the method determines the target Bluetooth frequency hopping sequence based on the clock information and frequency information of the second Bluetooth device, and through the selection mechanism of the frequency sequence, it can largely avoid the problem of low connection efficiency caused by the frequency correspondence problem, thereby improving the efficiency of establishing a Bluetooth connection. BRIEF DESCRIPTION OF THE DRAWINGS

[0033] In order to more clearly illustrate the technical solution of the embodiment of the present invention, the following is a brief introduction to the drawings required for use in the embodiment of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.

[0034] Figure 1 is a flowchart of a method for establishing a Bluetooth connection provided by an embodiment of the present invention;

[0035] Figure 2 is a schematic diagram of the structure of a Bluetooth connection establishment device provided by an embodiment of the present invention;

[0036] Figure 3 It is a structural schematic diagram of an electronic device provided by an embodiment of the present invention. DETAILED DESCRIPTION

[0037] The features and exemplary embodiments of various aspects of the present invention will be described in detail below. In order to make the purpose, technical solutions and advantages of the present invention clearer, the present invention will be further described in detail below in conjunction with the accompanying drawings and specific embodiments. It should be understood that the specific embodiments described herein are only configured to explain the present invention and are not configured to limit the present invention. For those skilled in the art, the present invention can be implemented without the need for some of these specific details. The following description of the embodiments is only to provide a better understanding of the present invention by illustrating examples of the present invention.

[0038] It should be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the statement "include..." do not exclude the presence of other identical elements in the process, method, article or device including the elements.

[0039] The existing Bluetooth connection process is based on the Bluetooth standard protocol. The device initiating the connection initiates the paging process and sends identification (ID) packets in a continuous manner. The connected end starts the paging scan process and periodically receives the ID packets sent by the device initiating the connection. When the ID packet is received and replied, the device initiating the connection will send a Filesystem Hierarchy Standard (FHS) packet, and then the page process ends and the Asynchronous Connectionless Link (ACL) begins to be established.

[0040] It can be seen that the related technology is to continuously send ID packets in order to receive the ID packets at the connected end. However, since there is no more frequency modulation information, the frequencies of the device initiating the connection and the connected end may not correspond. In other words, even if the time when the device initiating the connection sends the ID packet and the time when the connected end receives the ID packet correspond, it may still not be received due to the wrong frequency.

[0041] In order to solve the problems in the prior art, the embodiments of the present invention provide a method, device, electronic device and computer storage medium for establishing a Bluetooth connection. The method for establishing a Bluetooth connection provided by the embodiments of the present invention is first introduced below.

[0042] Figure 1 FIG. 1 is a flow chart showing a method for establishing a Bluetooth connection provided by an embodiment of the present invention. Figure 1 As shown, the Bluetooth connection establishment method is applied to a first Bluetooth device and may include the following steps:

[0043] S101. Acquire clock information and frequency information of a second Bluetooth device.

[0044] In one embodiment, when the second Bluetooth device is in an inquiry scan state and a paging scan state, and the first Bluetooth device performs an inquiry operation, the clock information and frequency information of the second Bluetooth device are obtained, including: receiving an FHS packet sent by the second Bluetooth device; parsing the FHS packet to obtain the clock information and frequency information.

[0045] In one embodiment, after receiving the File System Hierarchy Standard FHS package sent by the second Bluetooth device, the method further includes: parsing the FHS package to obtain device address information and device identification information of the second Bluetooth device.

[0046] In one embodiment, acquiring the clock information and the frequency information of the second Bluetooth device includes: acquiring the clock information and the frequency information through a wireless network.

[0047] S102: Determine a target Bluetooth frequency hopping sequence according to the clock information and the frequency information.

[0048] S103: Establish an asynchronous connectionless connection with a second Bluetooth device based on the target Bluetooth frequency hopping sequence.

[0049] It can be seen that this method determines the target Bluetooth frequency hopping sequence according to the clock information and frequency information of the second Bluetooth device. Through the frequency sequence selection mechanism, it can largely avoid the problem of low connection efficiency caused by frequency correspondence problems, thereby improving the efficiency of establishing Bluetooth connections.

[0050] The above-mentioned method for establishing a Bluetooth connection is specifically described below with reference to a scenario embodiment.

[0051] Assume that device A wants to initiate a Bluetooth connection with device B, and device B is in the state of fully opening the inquiry scan and paging scan. First, device A initiates the inquiry process and receives the FHS packet of device B to obtain the device address, device name, and clock information of device B. Then, after device A parses this information, it initiates the page process for the Bluetooth address corresponding to device B. Before initiating the process, the clock information in the FHS packet is transmitted to the controller of classic Bluetooth (BT). The controller selects the Bluetooth frequency hopping sequence (A train or B train) based on the bit16 of its own clock and the corresponding relationship with the bit16 of the clock of device B.

[0052] The advantage of the present invention is that the selection of Bluetooth frequency hopping sequence can be optimized by calculation before initiating the page process, and the frequency hopping sequence of the connected device can be quickly located. In the receiving window corresponding to a scan cycle, the ID packet will not be received due to the wrong frequency point, thereby avoiding the problem of connection failure, thereby achieving fast and reliable connection.

[0053] The following is an explanation with specific experimental data.

[0054] Name of the device initiating the connection: A. Name of the connected device: B

[0055] Experimental conditions: B is in the inquiry scan and page scan states, with cycles of 1.28s and receiving windows of 20ms respectively. A initiates a connection to B using the Bluetooth connection establishment method provided by the prior art and the embodiment of the present application respectively, with a page cycle of 1.28s.

[0056] Experimental results:

[0057] (1) Experimental results of the prior art: When device B is in the A train, the probability of connecting in 1.28 seconds is 100%; when it is in the B train, the probability of connecting in 1.28 seconds is 0.

[0058] (2) Experimental results of the present invention: Regardless of whether B is in the A train or the B train, the probability of connecting in 1.28s is 100%.

[0059] It can be seen from the experimental results that the Bluetooth connection establishment method provided in the embodiment of the present application greatly improves the connection efficiency.

[0060] like Figure 2 As shown, the embodiment of the present application also provides a Bluetooth connection establishment device, which is applied to a first Bluetooth device, including:

[0061] An acquisition module 201 is used to acquire clock information and frequency information of a second Bluetooth device;

[0062] A determination module 202, configured to determine a target Bluetooth frequency hopping sequence according to the clock information and the frequency information;

[0063] The connection establishing module 203 is configured to establish an asynchronous connectionless connection with a second Bluetooth device based on a target Bluetooth frequency hopping sequence.

[0064] In one embodiment, when the second Bluetooth device is in the inquiry scanning state and the paging scanning state, and the first Bluetooth device performs an inquiry operation, the acquisition module 201 includes:

[0065] A receiving unit, configured to receive a File System Hierarchy Standard (FHS) packet sent by a second Bluetooth device;

[0066] The parsing unit is used to parse the FHS packet to obtain clock information and frequency information.

[0067] In one embodiment, after receiving the File System Hierarchy Standard FHS packet sent by the second Bluetooth device, the apparatus further includes:

[0068] The parsing module is used to parse the FHS packet to obtain the device address information and device identification information of the second Bluetooth device.

[0069] In one embodiment, the acquisition module 201 includes:

[0070] The acquisition unit is used to acquire clock information and frequency information through a wireless network.

[0071] Figure 2 Each module in the device shown has the function of realizing Figure 1 The functions of each step in the process can achieve the corresponding technical effects, which will not be described in detail here for the sake of brevity.

[0072] Figure 3 A schematic structural diagram of an electronic device provided by an embodiment of the present invention is shown.

[0073] The electronic device may include a processor 301 and a memory 302 storing computer program instructions.

[0074] Specifically, the processor 301 may include a central processing unit (CPU), or an application specific integrated circuit (ASIC), or may be configured to implement one or more integrated circuits of the embodiment of the present invention.

[0075] The memory 302 may include a large capacity memory for data or instructions. By way of example and not limitation, the memory 302 may include a hard disk drive (HDD), a floppy disk drive, a flash memory, an optical disk, a magneto-optical disk, a magnetic tape, or a universal serial bus (USB) drive, or a combination of two or more of these. In one example, the memory 302 may include a removable or non-removable (or fixed) medium, or the memory 302 is a non-volatile solid-state memory. The memory 302 may be inside or outside the electronic device.

[0076] In one example, the memory 302 may be a read-only memory (ROM). In one example, the ROM may be a mask-programmed ROM, a programmable ROM (PROM), an erasable PROM (EPROM), an electrically erasable PROM (EEPROM), an electrically rewritable ROM (EAROM), or a flash memory, or a combination of two or more of these.

[0077] The processor 301 reads and executes the computer program instructions stored in the memory 302 to implement Figure 1 The method in the embodiment shown in the figure is achieved Figure 1 The corresponding technical effects achieved by executing the methods / steps in the example shown are not repeated here for the sake of brevity.

[0078] In one example, the electronic device may further include a communication interface 303 and a bus 310. Figure 3 As shown, the processor 301, the memory 302, and the communication interface 303 are connected via a bus 310 and communicate with each other.

[0079] The communication interface 303 is mainly used to implement the communication between the modules, devices, units and / or equipment in the embodiment of the present invention.

[0080] Bus 310 includes hardware, software or both, and the components of electronic equipment are coupled to each other. For example, but not limitation, bus may include Accelerated Graphics Port (AGP) or other graphics bus, Enhanced Industry Standard Architecture (EISA) bus, Front Side Bus (FSB), Hyper Transport (HT) interconnection, Industry Standard Architecture (ISA) bus, InfiniBand interconnection, Low Pin Count (LPC) bus, Memory bus, Micro Channel Architecture (MCA) bus, Peripheral Component Interconnect (PCI) bus, PCI-Express (PCI-X) bus, Serial Advanced Technology Attachment (SATA) bus, Video Electronics Standards Association Local (VLB) bus or other suitable bus or two or more of these combinations. In appropriate cases, bus 310 may include one or more buses. Although the embodiment of the present invention describes and shows a specific bus, the present invention considers any suitable bus or interconnection.

[0081] In addition, the embodiments of the present invention may be implemented by providing a computer storage medium having computer program instructions stored thereon; when the computer program instructions are executed by a processor, any one of the Bluetooth connection establishment methods in the above embodiments is implemented.

[0082] It should be clear that the present invention is not limited to the specific configuration and processing described above and shown in the figures. For the sake of simplicity, a detailed description of the known method is omitted here. In the above embodiments, several specific steps are described and shown as examples. However, the method process of the present invention is not limited to the specific steps described and shown, and those skilled in the art can make various changes, modifications and additions, or change the order between the steps after understanding the spirit of the present invention.

[0083] The functional blocks shown in the above-described block diagram can be implemented as hardware, software, firmware or a combination thereof. When implemented in hardware, it can be, for example, an electronic circuit, an application-specific integrated circuit (Application Specific Integrated Circuit, ASIC), appropriate firmware, plug-in, function card, etc. When implemented in software, the elements of the present invention are programs or code segments used to perform the required tasks. The program or code segment can be stored in a machine-readable medium, or transmitted on a transmission medium or a communication link by a data signal carried in a carrier. "Machine-readable medium" can include any medium capable of storing or transmitting information. Examples of machine-readable media include electronic circuits, semiconductor memory devices, ROM, flash memory, erasable ROM (EROM), floppy disks, CD-ROMs, optical disks, hard disks, optical fiber media, radio frequency (Radio Frequency, RF) links, etc. The code segment can be downloaded via a computer network such as the Internet, an intranet, etc.

[0084] It should also be noted that the exemplary embodiments mentioned in the present invention describe some methods or systems based on a series of steps or devices. However, the present invention is not limited to the order of the above steps, that is, the steps can be performed in the order mentioned in the embodiments, or in a different order from the embodiments, or several steps can be performed simultaneously.

[0085] The above is only a specific implementation of the present invention. Those skilled in the art can clearly understand that for the convenience and simplicity of description, the specific working process of the system, module and unit described above can refer to the corresponding process in the aforementioned method embodiment, and will not be repeated here. It should be understood that the protection scope of the present invention is not limited to this. Any technician familiar with the technical field can easily think of various equivalent modifications or replacements within the technical scope disclosed by the present invention, and these modifications or replacements should be covered within the protection scope of the present invention.

Claims

1. A method for establishing a Bluetooth connection, characterized in that: Applicable to the first Bluetooth device, including: Obtain clock information and frequency information of the second Bluetooth device; Determine a target Bluetooth frequency hopping sequence according to the clock information and frequency information; Based on the target Bluetooth frequency hopping sequence, an asynchronous connectionless link is established with the second Bluetooth device.

2. The method for establishing a Bluetooth connection according to claim 1, wherein: When the second Bluetooth device is in an inquiry scanning state and a paging scanning state, and the first Bluetooth device performs an inquiry operation, the acquiring clock information and frequency information of the second Bluetooth device includes: receiving a File System Hierarchy Standard (FHS) packet sent by the second Bluetooth device; Parse the FHS packet to obtain the clock information and the frequency information.

3. The method for establishing a Bluetooth connection according to claim 2, wherein: After receiving the File System Hierarchy Standard FHS packet sent by the second Bluetooth device, the method further includes: Parse the FHS packet to obtain device address information and device identification information of the second Bluetooth device.

4. The method for establishing a Bluetooth connection according to claim 1, wherein: The acquiring of clock information and frequency information of the second Bluetooth device includes: The clock information and the frequency information are acquired through a wireless network.

5. A Bluetooth connection establishment device, characterized in that: Applicable to the first Bluetooth device, including: An acquisition module, used to acquire clock information and frequency information of a second Bluetooth device; A determination module, used to determine a target Bluetooth frequency hopping sequence according to the clock information and frequency information; A connection establishing module is used to establish an asynchronous connectionless link with the second Bluetooth device based on the target Bluetooth frequency hopping sequence.

6. The Bluetooth connection establishment device according to claim 5, characterized in that: When the second Bluetooth device is in an inquiry scanning state and a paging scanning state, and the first Bluetooth device performs an inquiry operation, the acquisition module includes: A receiving unit, configured to receive a File System Hierarchy Standard (FHS) packet sent by the second Bluetooth device; The parsing unit is used to parse the FHS packet to obtain the clock information and the frequency information.

7. The Bluetooth connection establishment device according to claim 6, characterized in that: After receiving the File System Hierarchy Standard FHS packet sent by the second Bluetooth device, the apparatus further includes: The parsing module is used to parse the FHS packet to obtain the device address information and device identification information of the second Bluetooth device.

8. The Bluetooth connection establishment device according to claim 5, characterized in that: The acquisition module comprises: An acquiring unit is used to acquire the clock information and the frequency information through a wireless network.

9. An electronic device, characterized in that: The electronic device comprises: a processor, and a memory storing computer program instructions; The processor reads and executes the computer program instructions to implement the Bluetooth connection establishment method according to any one of claims 1 to 4.

10. A computer storage medium, characterized in that: The computer storage medium stores computer program instructions, and when the computer program instructions are executed by the processor, the method for establishing a Bluetooth connection according to any one of claims 1 to 4 is implemented.

Citation Information

Patent Citations

  • Bluetooth communication method and system and electronic equipment

    CN115250451A

  • Method for establishing Bluetooth connection, storage medium, chip, earphone and equipment system

    CN115665888A