Bluetooth pairing method, device and system

By acquiring and broadcasting identification codes in Bluetooth devices, screening and verifying Bluetooth addresses, signal conflicts and pairing management issues in multi-device environments are resolved, achieving efficient and accurate device connections.

CN120751392APending Publication Date: 2025-10-03SHENZHEN BLUETRUM TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202511016080.4
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-07-23
Publication Date
2025-10-03

AI Technical Summary

Technical Problem

In a multi-device environment, the signal conflict and pairing management of Bluetooth devices cannot meet the needs of a multi-device environment, resulting in signal interference and unstable connection.

Method used

By acquiring and broadcasting the identification code of the Bluetooth device, screening the target devices allowed to connect, and verifying the other party's Bluetooth address when receiving the connection request, a two-way pairing function is achieved, improving the connection accuracy and efficiency.

Benefits of technology

It reduces the risk of signal conflict, improves pairing efficiency and accuracy, and ensures the stability and speed of device connection.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120751392A_ABST
    Figure CN120751392A_ABST
Patent Text Reader

Abstract

The invention provides a Bluetooth pairing method, device and system, the pairing method comprises a first wireless device and a second Bluetooth device applied to a wireless communication system, the first Bluetooth device obtains one or more identification codes of an allowed connection target, the identification codes indicate the unique identity of the allowed connection target, and the second Bluetooth device obtains the unique identity of the allowed connection target. After the second Bluetooth device receives the broadcast packet, the second Bluetooth device obtains the Bluetooth address of the Bluetooth device sending the broadcast packet, judges whether the Bluetooth address is an allowed connection target, then obtains the identification code in the broadcast packet, judges whether the second Bluetooth device itself is one of the allowed connection targets, and sends the identification code to the broadcast packet; according to the method, the signal conflict risk during connection establishment is reduced, the pairing efficiency is improved, and meanwhile, the pairing accuracy is ensured.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of wireless communications, and in particular to a Bluetooth pairing method, device, and system. Background Art

[0002] With the development of communication technology, data transmission between short-range devices via Bluetooth communication connections has become increasingly popular. The communication connection between Bluetooth devices and hosts on the market often follows the following process: the Bluetooth device is in pairing mode, the host initiates a matching request to the Bluetooth device, the host and Bluetooth device are successfully matched, the host sends its own host Bluetooth address to the Bluetooth device for storage, the Bluetooth device sends its own Bluetooth address to the host device for storage, and the host and Bluetooth device establish the first Bluetooth communication connection. After the current Bluetooth communication connection is disconnected, the Bluetooth device automatically enters pairing mode after being turned on and obtains the previously stored host Bluetooth address. When the host initiates a matching request to the Bluetooth device, it identifies the host Bluetooth address and directly sets the Bluetooth device as the successfully matched Bluetooth device, and directly establishes a second Bluetooth communication connection with the Bluetooth device.

[0003] Due to their simple human-computer interaction interfaces, these Bluetooth devices cannot actively select a host to connect to. They typically automatically connect to the last connected host upon startup. If multiple devices are in the same environment, they may simultaneously send connection requests to a Bluetooth device, causing signal interference. This is like multiple messages "crowding" the communication channel, causing signal conflicts and hindering the establishment of a normal connection.

[0004] In addition, the current pairing and binding methods of Bluetooth devices are mostly one-to-many, and the connection method is relatively simple, which makes it difficult to meet the management needs in a multi-device environment. Summary of the Invention

[0006] The present application provides a Bluetooth pairing method, device and system to solve the signal conflict problem and the multi-device pairing problem in a multi-device environment.

[0007] In a first aspect, a Bluetooth pairing method is provided, which is applied to a first Bluetooth device in a Bluetooth communication system, wherein the Bluetooth communication system includes the first Bluetooth device and at least one second Bluetooth device; the method includes: Obtaining an identification code of the second Bluetooth device pre-stored locally, where the identification code is the identity identifier of the second Bluetooth device; Put the identification code into a broadcast packet for broadcasting, and scan whether there is a connection establishment request from the second Bluetooth device; When the connection establishment request is received, it is analyzed whether the second Bluetooth device is an allowed connection target, and if so, paired with the second Bluetooth device for connection.

[0008] With reference to the first aspect, in a possible implementation manner, the identification code is specifically obtained by processing a Bluetooth address of the second Bluetooth device.

[0009] In combination with the first aspect, in a possible implementation, when there are multiple identification codes, they are sorted in a sequential order when placed in a broadcast packet.

[0010] In combination with the first aspect, in a possible implementation, when the first Bluetooth device receives multiple connection establishment requests, it parses RSSI parameters in the multiple connection establishment requests and selects a target second Bluetooth device for pairing and connection based on the RSSI parameters.

[0011] In combination with the first aspect, in a possible implementation manner, the analyzing whether the second Bluetooth device is an allowed connection target specifically includes analyzing the Bluetooth address of the second Bluetooth device and determining whether it is an allowed connection target based on the Bluetooth address.

[0012] In this technical solution, the first Bluetooth device first obtains the identification code of the target allowed to connect, which can be one or more identification codes, indicating the unique identity of the target allowed to connect, and puts the identification code into a broadcast packet for transmission, so that the Bluetooth device as a part of the receiving end filters the connection establishment requests of the target not allowed to connect, reducing the risk of signal conflict when establishing a connection and improving the pairing efficiency; then, when receiving the connection establishment request, by parsing the Bluetooth address of the Bluetooth device sending the request, it is further determined whether it is a target allowed to connect, thereby ensuring the accuracy of pairing.

[0013] In a second aspect, a Bluetooth pairing method is provided, which is applied to a second Bluetooth device in a Bluetooth communication system, wherein the Bluetooth communication system includes the first Bluetooth device and at least one second Bluetooth device; the method includes: Obtaining a broadcast packet sent by the first Bluetooth device, and analyzing whether the first Bluetooth device is an allowed connection target; When the Bluetooth address of the first Bluetooth device is an allowed connection target, analyzing whether the broadcast packet contains the identification code to which the first Bluetooth device belongs, the identification code being the identity identifier of the second Bluetooth device; If yes, a connection establishment request is sent to the first Bluetooth device; otherwise, no processing is performed.

[0014] In combination with the second aspect, in a possible implementation manner, the analyzing whether the first Bluetooth device is a connection-allowed target specifically involves analyzing a Bluetooth address of the first Bluetooth device and determining whether the connection is an allowed target based on the Bluetooth address.

[0015] In this technical solution, after receiving the broadcast packet, the second Bluetooth device first obtains the Bluetooth address of the Bluetooth device that sends the broadcast packet, determines whether it is a target that is allowed to connect, then obtains the identification code in the broadcast packet, determines whether it is one of the targets that are allowed to connect, and sends a connection request after determining that all conditions are met, thereby improving pairing efficiency and ensuring pairing accuracy.

[0016] In a third aspect, a Bluetooth device is provided, comprising a memory, a transceiver, and one or more processors, wherein the memory and the transceiver are connected to the one or more processors, the transceiver is used to transmit data, and the one or more processors are used to execute one or more computer programs stored in the memory. When the one or more processors execute the one or more computer programs, the Bluetooth device implements the Bluetooth pairing method of the first aspect mentioned above.

[0017] In a fourth aspect, a Bluetooth device is provided, comprising a memory, a transceiver, and one or more processors, wherein the memory and the transceiver are connected to the one or more processors, the transceiver is used to transmit data, and the one or more processors are used to execute one or more computer programs stored in the memory. When the one or more processors execute the one or more computer programs, the Bluetooth device implements the Bluetooth pairing method of the second aspect mentioned above.

[0018] In a fifth aspect, a Bluetooth pairing system is provided, wherein the Bluetooth communication system includes the first Bluetooth device and at least one second Bluetooth device, the first Bluetooth device executes the Bluetooth pairing method of the first aspect during the pairing process, and the second Bluetooth device executes the Bluetooth pairing method of the third aspect during the pairing process.

[0019] This application can achieve the following technical effects: on the one hand, the first Bluetooth device manages multi-device pairing through an identification code, broadcasts the identification code during pairing, assists the second Bluetooth device in performing preliminary screening of connection targets, and verifies the other party's Bluetooth address when receiving a connection request; on the other hand, after receiving the broadcast, the second Bluetooth device first confirms whether the first Bluetooth device is a permitted connection target, and then checks whether itself is a permitted connection target. It initiates a connection request only if it meets the conditions, thereby realizing a two-way pairing function, and can speed up device connection speed and improve connection efficiency. BRIEF DESCRIPTION OF THE DRAWINGS

[0020] In order to more clearly illustrate the technical solutions of the embodiments of the present application, the following briefly introduces the drawings required for use in the description of the embodiments of the present application. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without any creative work.

[0021] Figure 1 A schematic diagram of a Bluetooth pairing method applied to a first Bluetooth device provided in an embodiment of the present application.

[0022] Figure 2 A schematic diagram of a Bluetooth pairing method applied to a second Bluetooth device provided in an embodiment of the present application.

[0023] Figure 3 A communication diagram of a Bluetooth device pairing connection provided in an embodiment of the present application.

[0024] Figure 4 A communication diagram of another Bluetooth device pairing connection provided in an embodiment of the present application.

[0025] Figure 5 This is another communication diagram of Bluetooth device pairing and connection provided in an embodiment of the present application.

[0026] Figure 6 This is a schematic diagram of the structure of a Bluetooth device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0027] In order to make the purpose, technical solutions and advantages of this application more clearly understood, the present application is further described in detail below with reference to the accompanying drawings and examples. It should be understood that the specific embodiments described herein are only used to explain this application and are not intended to limit this application. Based on the embodiments in this application, all other embodiments obtained by ordinary technicians in this field without making creative efforts are within the scope of protection of this application.

[0028] It should be noted that, if there is no conflict, the various features in the embodiments of the present application can be combined with each other and are all within the scope of protection of the present application. In addition, although the functional modules are divided in the device schematic and the logical order is shown in the flow chart, in some cases, the steps shown or described can be performed in a different order than the module division in the device or the order in the flow chart. Furthermore, the words "first", "second", "third", etc. used in this application do not limit the data and execution order, but only distinguish between the same items or similar items with basically the same functions and effects.

[0029] See also Figure 1 , Figure 1 A flowchart of a Bluetooth pairing method provided in an embodiment of the present application is provided. The method is applied to a first Bluetooth device in a Bluetooth communication system, the Bluetooth communication system including the first Bluetooth device and at least one second Bluetooth device. The method includes the following steps: S101, obtaining an identification code of the second Bluetooth device pre-stored locally, where the identification code is an identity identifier of the second Bluetooth device; S102, putting the identification code into a broadcast packet for broadcasting, and scanning whether there is a connection establishment request from the second Bluetooth device; S103: Upon receiving the connection establishment request, analyzing whether the second Bluetooth device is an allowed connection target, and if so, pairing and connecting with the second Bluetooth device.

[0030] The above identification code is a list of second Bluetooth device identities pre-stored on the first Bluetooth device. Different second Bluetooth devices have different identification codes. Similar to the Bluetooth whitelist, when the first Bluetooth device establishes a connection with the second Bluetooth device for the first time, it will obtain and store the corresponding identification code and embed the identification code in the broadcast packet for transmission during pairing.

[0031] Generally speaking, the unique identifier of a Bluetooth device is its Bluetooth address. The Bluetooth address is a 48-bit binary value and can be divided into two parts. The first 24 bits are the "Organizationally Unique Identifier (OUI)", which is assigned to the device manufacturer by the Institute of Electrical and Electronics Engineers (IEEE) to identify the manufacturer. The last 24 bits are the "Extended Identifier", which is assigned by the manufacturer to distinguish different devices produced by the same manufacturer and ensure that the address of each device is unique.

[0032] Therefore, in some possible scenarios, the identification code is specifically obtained by further processing the Bluetooth address of the second Bluetooth device. This processing method can be to select a binary code segment from the Bluetooth address, encode the Bluetooth address, or perform a predetermined algorithm optimization on the Bluetooth address, such as a hash operation. The identification code formed after the Bluetooth address is processed is more concise, maintaining uniqueness while taking up less space, and a broadcast packet of the same length can embed more identification codes.

[0033] If a first Bluetooth device has multiple pre-stored identification codes and multiple identification codes are embedded in a broadcast packet, the first Bluetooth device may receive connection establishment requests from multiple second Bluetooth devices in a short period of time. Therefore, in some embodiments, the ranking of the identification codes has a priority order, and the order can be based on the number of recent connections, the time of the most recent connection, or user-specified, etc. After receiving connection establishment requests from multiple second Bluetooth devices, the first Bluetooth device verifies the order of the identification codes corresponding to the second Bluetooth devices and preferentially selects the device with the higher identification code order for connection.

[0034] For example, the first Bluetooth device embeds identification code a representing the second Bluetooth device A, identification code b representing the second Bluetooth device B, identification code c representing the second Bluetooth device C, and identification code d representing the second Bluetooth device D in the broadcast packet. The identification codes a, b, c, and d are sorted in order, and the ones with the earlier order have the priority to establish a connection; after the broadcast packet is sent, the first Bluetooth device scans and receives the connection establishment requests from the second Bluetooth device B, the second Bluetooth device C, and the second Bluetooth device D, and verifies that the connection establishment priority of the second Bluetooth device B is the highest, so it chooses to establish a Bluetooth connection with the second Bluetooth device B.

[0035] In some possible embodiments, when a first Bluetooth device receives connection establishment requests from multiple second Bluetooth devices within a short period of time, it analyzes the RSSI (Received Signal Strength Indication) parameter in each request. The RSSI parameter is a measure of the strength of the wireless signal received by the Bluetooth device. It directly reflects the degree of signal attenuation during transmission and is an important parameter for assessing inter-device distance and connection quality in Bluetooth communication. The first Bluetooth device compares the multiple RSSI parameters of multiple second Bluetooth devices and selects the target second Bluetooth device with the best communication quality for pairing and connection, making the established connection more stable and reliable.

[0036] In the above embodiment, although the identification code has been used to restrict whether the second Bluetooth device can initiate a connection request, this can only limit Bluetooth devices configured with this private protocol. Some Bluetooth devices that are not configured with this private protocol cannot parse the meaning of the identification code, but will directly skip parsing data segments of unknown types or private protocols, which will not affect the normal response of the Bluetooth device to initiate a connection request.

[0037] In conjunction with the unique Bluetooth address of the Bluetooth device, in some possible embodiments, the first Bluetooth device resolves whether the second Bluetooth device is an allowed connection target. Specifically, the first Bluetooth device resolves the Bluetooth address of the second Bluetooth device and determines whether the second Bluetooth device is an allowed connection target based on the Bluetooth address. The allowed connection target may be a local Bluetooth whitelist of the Bluetooth device, a user-specified list of Bluetooth devices, or a Bluetooth device whose OUI in the Bluetooth address is from the same manufacturer. This embodiment does not impose any specific limitations on this.

[0038] The first Bluetooth device manages multi-device pairing through an identification code, broadcasts the identification code during pairing, and assists the second Bluetooth device in performing preliminary screening of the connection target. At the same time, it verifies the other party's Bluetooth address when receiving a connection request, reducing the risk of signal conflict when establishing a connection and improving pairing efficiency.

[0039] See also Figure 2 , Figure 2A flowchart of a Bluetooth pairing method provided in an embodiment of the present application is applied to a second Bluetooth device in a Bluetooth communication system, wherein the Bluetooth communication system includes the first Bluetooth device and at least one second Bluetooth device; the method includes: S201, obtaining a broadcast packet sent by the first Bluetooth device, and analyzing whether the first Bluetooth device is an allowed connection target; S202: When the Bluetooth address of the first Bluetooth device is an allowed connection target, analyzing whether the broadcast packet contains an identification code of the first Bluetooth device, the identification code being the identity of the second Bluetooth device; S203: If yes, send a connection establishment request to the first Bluetooth device; otherwise, do nothing.

[0040] Similar to the first Bluetooth device parsing whether the second Bluetooth device is an allowed connection target, in some possible embodiments, the first Bluetooth device is parsed to determine whether it is an allowed connection target, specifically, the Bluetooth address of the first Bluetooth device is parsed, and whether it is an allowed connection target is determined based on the Bluetooth address.

[0041] After receiving the broadcast packet, the second Bluetooth device first obtains the Bluetooth address of the Bluetooth device that sent the broadcast packet, determines whether it is a target that is allowed to connect, then obtains the identification code in the broadcast packet, determines whether it is one of the targets that are allowed to connect, and sends a connection request after determining that all conditions are met, thereby improving pairing efficiency and ensuring pairing accuracy.

[0042] In order to more clearly illustrate the contents of the above embodiments, Figure 3 、 4 Further explanation of the above content: See also Figure 3, the first Bluetooth device obtains a local identification code list and broadcasts a broadcast packet including identification code a. Identification code a is the identity identifier of the second Bluetooth device A. The second Bluetooth device A, the second Bluetooth device B, and the second Bluetooth device C all receive the broadcast packet. Among them, the second Bluetooth device A, the second Bluetooth device B and the first Bluetooth device are all configured with the Bluetooth pairing method described in the present invention, while the second Bluetooth device C is not configured. Then, the second Bluetooth device A parses the Bluetooth address and identification code of the first Bluetooth device in the broadcast packet, determines that it meets the conditions for establishing a connection, and then initiates a connection establishment request. The second Bluetooth device B parses the Bluetooth address and identification code of the first Bluetooth device in the broadcast packet, determines that it does not meet the conditions for establishing a connection, and then ignores it. The second Bluetooth device C cannot interpret the meaning of the identification code, but still initiates a connection establishment request in accordance with the standard protocol. After receiving the connection establishment requests from the second Bluetooth device A and the second Bluetooth device C, the first Bluetooth device parses the Bluetooth address of the second Bluetooth device in the connection request and chooses to pair with the second Bluetooth device A. Among them, the first Bluetooth device can review the Bluetooth address of the second Bluetooth device A based on the identification code a.

[0043] See also Figure 4 , the first Bluetooth device obtains a local identification code list and broadcasts a broadcast packet including identification codes a and c, where identification code a is the identity identifier of the second Bluetooth device A, and identification code c is the identity identifier of the second Bluetooth device C, and the identification code a has a higher priority than identification code c. The second Bluetooth device A, the second Bluetooth device B, and the second Bluetooth device C all receive the broadcast packet, wherein the second Bluetooth device A, the second Bluetooth device B, the second Bluetooth device C and the first Bluetooth device are all configured with the Bluetooth pairing method described in the present invention; then, the second Bluetooth device A parses the Bluetooth address and identification code of the first Bluetooth device in the broadcast packet, determines that it meets the conditions for establishing a connection, and then initiates a connection establishment request; the second Bluetooth device B parses the Bluetooth address and identification code of the first Bluetooth device in the broadcast packet, determines that it does not meet the conditions for establishing a connection, and then ignores it; the second Bluetooth device C parses the Bluetooth address and identification code of the first Bluetooth device in the broadcast packet, and also determines that it meets the conditions for establishing a connection, and then initiates a connection establishment request. After receiving the connection establishment request from the second Bluetooth device A and the second Bluetooth device C, the first Bluetooth device parses the Bluetooth address of the second Bluetooth device in the connection request and determines the sequence of the identification codes, and chooses to pair with the second Bluetooth device A. The first Bluetooth device can review the Bluetooth addresses of the second Bluetooth device A and the second Bluetooth device C based on the identification codes a and c.

[0044] See also Figure 5, the first Bluetooth device obtains a local identification code list and broadcasts a broadcast packet including identification codes a and c, where identification code a is the identity of the second Bluetooth device A, and identification code c is the identity of the second Bluetooth device C. The second Bluetooth device A, the second Bluetooth device B, and the second Bluetooth device C all receive the broadcast packet, wherein the second Bluetooth device A, the second Bluetooth device B, the second Bluetooth device C and the first Bluetooth device are all configured with the Bluetooth pairing method described in the present invention; then, the second Bluetooth device A parses the Bluetooth address and identification code of the first Bluetooth device in the broadcast packet, determines that it meets the conditions for establishing a connection, and then initiates a connection establishment request; the second Bluetooth device B parses the Bluetooth address and identification code of the first Bluetooth device in the broadcast packet, determines that it does not meet the conditions for establishing a connection, and then ignores it; the second Bluetooth device C parses the Bluetooth address and identification code of the first Bluetooth device in the broadcast packet, and also determines that it meets the conditions for establishing a connection, and then initiates a connection establishment request. After receiving the connection establishment request from the second Bluetooth device A and the second Bluetooth device C, the first Bluetooth device parses the Bluetooth address and RSSI parameters of the second Bluetooth device in the connection request respectively, determines that the communication conditions with the second Bluetooth device A are better, and chooses to pair and connect with the second Bluetooth device A. The first Bluetooth device can review the Bluetooth addresses of the second Bluetooth device A and the second Bluetooth device C based on the identification codes a and c.

[0045] See also Figure 6 , Figure 6 3 is a schematic diagram of the structure of a Bluetooth device provided in an embodiment of the present application, wherein the Bluetooth device 30 includes a processor 301, a memory 302, and a transceiver 303. The memory 302 and the transceiver 303 are connected to the processor 301, for example, via a bus.

[0046] The processor 301 is configured to support the Bluetooth device 30 in executing the corresponding functions of the method in the above method embodiment. The processor 301 can be a central processing unit (CPU), a network processor (NP), a hardware chip, or any combination thereof. The hardware chip can be an application-specific integrated circuit (ASIC), a programmable logic device (PLD), or any combination thereof. The PLD can be a complex programmable logic device (CPLD), a field-programmable gate array (FPGA), a generic array logic (GAL), or any combination thereof.

[0047] Memory 302 is used to store program code, etc. Memory 302 may include volatile memory (VM), such as random access memory (RAM); non-volatile memory (NVM), such as read-only memory (ROM), flash memory, a hard disk drive (HDD), or a solid-state drive (SSD); or a combination of the aforementioned types of memory.

[0048] The transceiver 303 is used to transmit data.

[0049] In some possible embodiments, the processor 301 may call the program code to perform the following operations: Obtaining an identification code of the second Bluetooth device pre-stored locally, where the identification code is the identity identifier of the second Bluetooth device; Put the identification code into a broadcast packet for broadcasting, and scan whether there is a connection establishment request from the second Bluetooth device; When the connection establishment request is received, it is analyzed whether the second Bluetooth device is an allowed connection target, and if so, paired with the second Bluetooth device for connection.

[0050] In some other possible embodiments, the processor 301 may call the program code to perform the following operations: Obtaining a broadcast packet sent by the first Bluetooth device, and analyzing whether the first Bluetooth device is an allowed connection target; When the Bluetooth address of the first Bluetooth device is an allowed connection target, analyzing whether the broadcast packet contains the identification code to which the first Bluetooth device belongs, the identification code being the identity identifier of the second Bluetooth device; If yes, a connection establishment request is sent to the first Bluetooth device; otherwise, no processing is performed.

[0051] An embodiment of the present application also provides a Bluetooth pairing system, which includes the first Bluetooth device and at least one second Bluetooth device. The first Bluetooth device executes the above-mentioned Bluetooth pairing method applied to the first Bluetooth device during the pairing process, and the second Bluetooth device executes the above-mentioned Bluetooth pairing method applied to the second Bluetooth device during the pairing process.

[0052] Those skilled in the art will understand that all or part of the processes in the above-mentioned embodiment methods can be implemented by instructing related hardware through a computer program. The program can be stored in a computer-readable storage medium. When the program is executed, it can include the processes of the embodiments of the above-mentioned methods.

[0053] The above disclosure is only a preferred embodiment of the present application, and certainly cannot be used to limit the scope of rights of the present application. Therefore, equivalent changes made according to the claims of the present application are still within the scope covered by the present application.

Claims

1. A Bluetooth pairing method, applied to a first Bluetooth device in a Bluetooth communication system, characterized in that: The Bluetooth communication system includes the first Bluetooth device and at least one second Bluetooth device; the method includes: Obtaining an identification code of the second Bluetooth device pre-stored locally, where the identification code is the identity identifier of the second Bluetooth device; Put the identification code into a broadcast packet for broadcasting, and scan whether there is a connection establishment request from the second Bluetooth device; When the connection establishment request is received, it is analyzed whether the second Bluetooth device is an allowed connection target, and if so, paired with the second Bluetooth device for connection.

2. The method according to claim 1, characterized in that The identification code is specifically obtained by processing the Bluetooth address of the second Bluetooth device.

3. The method according to claim 2, characterized in that When there are multiple identification codes, they are sorted in a sequential order when placed in a broadcast packet.

4. The method according to claim 1, wherein The analyzing whether the second Bluetooth device is a connection-allowed target specifically includes analyzing the Bluetooth address of the second Bluetooth device and determining whether the connection is an allowed target according to the Bluetooth address.

5. The method according to claim 1, wherein When the first Bluetooth device receives multiple connection establishment requests, it parses RSSI parameters in the multiple connection establishment requests and selects a target second Bluetooth device for pairing and connection according to the RSSI parameters.

6. A Bluetooth pairing method, applied to a second Bluetooth device in a Bluetooth communication system, characterized in that: The Bluetooth communication system includes the first Bluetooth device and at least one second Bluetooth device; the method includes: Obtaining a broadcast packet sent by the first Bluetooth device, and analyzing whether the first Bluetooth device is an allowed connection target; When the Bluetooth address of the first Bluetooth device is an allowed connection target, analyzing whether the broadcast packet contains the identification code to which the first Bluetooth device belongs, the identification code being the identity identifier of the second Bluetooth device; If yes, a connection establishment request is sent to the first Bluetooth device; otherwise, no processing is performed.

7. The method according to claim 6, characterized in that The analyzing whether the first Bluetooth device is a connection-allowed target specifically includes analyzing the Bluetooth address of the first Bluetooth device and determining whether the connection is an allowed target according to the Bluetooth address.

8. A Bluetooth device comprising a memory, a transceiver, and one or more processors, wherein the memory and the transceiver are connected to the one or more processors, the transceiver is used to transmit data, and the one or more processors are used to execute one or more computer programs stored in the memory, and when the one or more processors execute the one or more computer programs, the Bluetooth device implements the Bluetooth pairing method according to any one of claims 1 to 5.

9. A Bluetooth device comprising a memory, a transceiver, and one or more processors, wherein the memory and the transceiver are connected to the one or more processors, the transceiver is used to transmit data, and the one or more processors are used to execute one or more computer programs stored in the memory, and when the one or more processors execute the one or more computer programs, the Bluetooth device implements the Bluetooth pairing method described in any one of claims 6-7.

10. A Bluetooth pairing system, the Bluetooth communication system comprising the first Bluetooth device and at least one second Bluetooth device, the first Bluetooth device executing the Bluetooth pairing method according to any one of claims 1 to 5 during the pairing process, and the second Bluetooth device executing the Bluetooth pairing method according to any one of claims 6 to 7 during the pairing process.