Bluetooth headset pairing connection method, system and Bluetooth headset
The broadcast signal and key are sent through Bluetooth headsets for preliminary connection and verification, and the pairing score is calculated to determine the best terminal device, which solves the problems of cumbersome pairing connections and environmental interference, and realizes the efficient pairing of Bluetooth headsets and terminal devices.
Patent Information
- Application Number
- CN202411275860.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-09-12
- Publication Date
- 2024-12-06
- Estimated Expiration
- 2044-09-12
AI Technical Summary
The pairing and connection process of traditional Bluetooth headphones is complicated, especially in complex environments when signal interference is severe or there are many devices, the effect is not ideal. When using it again, the default connection to the device last time caused the user to interrupt the old connection for pairing, which is complicated.
Send a broadcast signal and a key through Bluetooth headset for initial connection, obtain the pairing application signal and decrypt it, verify the terminal device, calculate the pairing score to determine the best terminal device for pairing connection, and realize fast pairing and efficient connection.
It improves the pairing efficiency between Bluetooth headsets and terminal devices, simplifies the connection process, and significantly improves the pairing success rate and user experience in complex environments.
Smart Images

Figure CN118803676B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of Bluetooth communication technology, and more specifically, to a Bluetooth headset pairing connection method, system and Bluetooth headset. Background Art
[0002] With the popularization of smart devices and the continuous development of wireless communication technology, Bluetooth headsets have become an indispensable part of people's daily lives, especially playing an important role in mobile communications, music playback and voice interaction. However, the traditional Bluetooth pairing and connection process often requires users to manually search, select and confirm the pairing. Traditional Bluetooth headset pairing and connection methods often lack consideration of environmental factors, resulting in unsatisfactory pairing and connection effects in complex environments (such as severe signal interference, numerous devices, etc.). In addition, when the Bluetooth headset is started again, it defaults to connecting to the last connected terminal device, resulting in the user needing to use a new terminal device to pair with the Bluetooth headset. The connection also needs to interrupt the pairing connection between the last connected terminal device and the Bluetooth headset, which is very cumbersome.
[0003] Therefore, the prior art has defects and is in urgent need of improvement. Summary of the invention
[0004] In view of the above problems, the purpose of the present invention is to provide a Bluetooth headset pairing connection method, system and Bluetooth headset, which can identify and verify multiple terminal devices through pairing scores and Bluetooth pairing conditions, realize efficient pairing between the Bluetooth headset and the terminal devices, and improve the pairing efficiency between the Bluetooth headset and the terminal devices.
[0005] A first aspect of the present invention provides a Bluetooth headset pairing and connection method, comprising:
[0006] When the Bluetooth headset is used for the first time, a complete pairing is performed, a first broadcast signal and a first key are sent to the surroundings through the Bluetooth headset, a preliminary connection is made with the terminal device, and the terminal device with the preliminary connection is determined as the first terminal device; the first broadcast signal and the first key are sent through different channels; the first broadcast signal is obtained by encrypting the Bluetooth address of the Bluetooth headset;
[0007] Get the pairing application signal;
[0008] decrypting the pairing application signal, sending a second broadcast signal to the first terminal device corresponding to the pairing application signal, performing verification according to the received second feedback signal of the first terminal device, determining the first terminal device that meets the Bluetooth pairing condition as the second terminal device, and performing Bluetooth pairing connection between the Bluetooth headset and the second terminal device;
[0009] When the Bluetooth headset is used again, a quick pairing is performed, a third broadcast signal is sent to the surroundings through the Bluetooth headset, and whether a second terminal device exists is determined according to the received third feedback signal;
[0010] If so, verify the second terminal device according to the third feedback signal, calculate the pairing score of the second terminal device, determine the second terminal device with the highest pairing score that meets the Bluetooth pairing condition as the third terminal device, and perform Bluetooth pairing connection between the Bluetooth headset and the third terminal device;
[0011] If not present, a first broadcast signal is sent to the surroundings for complete pairing.
[0012] In this solution, when the Bluetooth headset is used for the first time, a complete pairing is performed, a first broadcast signal and a first key are sent to the surroundings through the Bluetooth headset, a preliminary connection is made with the terminal device, and the terminal device with the preliminary connection is determined as the first terminal device, including:
[0013] The terminal device decrypts the first broadcast signal by using the received first key to obtain the Bluetooth address of the Bluetooth headset;
[0014] The terminal device encrypts the Bluetooth address of the terminal device by using the first key to obtain a first feedback signal, and the terminal device sends the first feedback signal to the Bluetooth headset;
[0015] The Bluetooth headset decrypts the received first feedback signal using the first key to obtain the Bluetooth address of the terminal device;
[0016] The Bluetooth headset is preliminarily connected to the terminal device according to the Bluetooth address of the terminal device, and the terminal device with which the preliminary connection exists is determined as the first terminal device.
[0017] In this solution, the pairing application signal is decrypted, a second broadcast signal is sent to the first terminal device corresponding to the pairing application signal, verification is performed according to the second feedback signal received from the first terminal device, the first terminal device that meets the Bluetooth pairing condition is determined as the second terminal device, and the Bluetooth headset is paired with the second terminal device. The connection includes:
[0018] Obtaining a pairing application signal from a first terminal device;
[0019] The Bluetooth headset decrypts the pairing application signal using the first key to obtain the Bluetooth address of the first terminal device;
[0020] The Bluetooth headset sends a second broadcast signal to the Bluetooth address of the first terminal device in a directionally manner;
[0021] Analyze the received second feedback signal of the first terminal device to determine whether the Bluetooth pairing condition is met;
[0022] If so, the first terminal device is determined as the second terminal device, the Bluetooth headset is paired with the second terminal device through Bluetooth, and the Bluetooth address of the second terminal device is recorded in the corresponding database; otherwise, no processing is performed.
[0023] In this solution, verifying the second terminal device according to the third feedback signal, calculating the pairing score of the second terminal device, and determining the second terminal device with the highest pairing score that meets the Bluetooth pairing condition as the third terminal device includes:
[0024] When there is only one second terminal device, determining whether the second terminal device meets the Bluetooth pairing condition;
[0025] When there are multiple second terminal devices, sending a fourth broadcast signal to the multiple second terminal devices;
[0026] Analyze the received fourth feedback signal to determine the user identity information bound to each second terminal device;
[0027] If the user identity information bound to the multiple second terminal devices is the same, a communication connection is established between the Bluetooth headset and the multiple second terminal devices; otherwise, a pairing score of each second terminal device is calculated according to the fourth feedback signal, and the second terminal device with the highest pairing score is determined as the third terminal device.
[0028] In this solution, after establishing a communication connection between the Bluetooth headset and the plurality of second terminal devices, the method further includes:
[0029] The communication score of each second terminal device is calculated, and the second terminal device with the highest communication score is selected as the third terminal device, and the other second terminal devices are determined as the fourth terminal devices.
[0030] In this solution, calculating the pairing score of each second terminal device according to the fourth feedback signal and determining the second terminal device with the highest pairing score as the third terminal device includes:
[0031] Analyze the fourth feedback signal to determine first impact data of the second terminal device; the first impact data includes connection frequency, last connection time, response time, communication status and user identity level;
[0032] Compare each first impact data of the second terminal device with the corresponding preset impact data threshold interval, and determine the first impact data in the preset impact data threshold interval as the second impact data;
[0033] Filtering the second terminal device that does not have the second influencing data;
[0034] determining an impact level of the second terminal device according to the amount of the second impact data;
[0035] Performing weighted calculation on the first influence data and the second influence data of the second terminal device with the highest influence level to determine a pairing score of the second terminal device with the highest influence level;
[0036] Comparing the pairing score of the second terminal device with the highest impact level with a preset score threshold;
[0037] When the pairing score is greater than a preset score threshold, determining whether the second terminal device with the highest impact level meets the Bluetooth pairing condition, and when the Bluetooth pairing condition is met, determining the second terminal device with the highest impact level as the third terminal device;
[0038] When the pairing score is less than or equal to a preset score threshold, the second terminal device of the next impact level is analyzed until the third terminal device is determined.
[0039] This plan also includes:
[0040] When the pairing scores of all second terminal devices are less than a preset score threshold, the Bluetooth headset sends a fifth broadcast signal to the surroundings;
[0041] Analyze the received fifth feedback signal to determine the pairing score of the surrounding fifth terminal device;
[0042] According to the maximum pairing score q of the fifth terminal device (m)max The maximum pairing score p with the second terminal device (j)max Conduct analysis;
[0043] When k×q (m)max >p (j)max When the maximum pairing score q is determined (m)max whether the corresponding fifth terminal device m meets the Bluetooth pairing condition; if so, determining the fifth terminal device m as the third terminal device;
[0044] When k×q (m)max ≤p (j)max When the maximum pairing score p is determined (j)max Whether the corresponding second terminal device j meets the Bluetooth pairing condition; if so, determining the second terminal device j as the third terminal device;
[0045] Where k is the correction factor.
[0046] This plan also includes:
[0047] When the fifth terminal device m does not meet the Bluetooth pairing condition, a first broadcast signal is sent to the surroundings for complete pairing.
[0048] A second aspect of the present invention provides a Bluetooth headset pairing and connection system, comprising:
[0049] A preliminary connection module is used to perform a complete pairing when the Bluetooth headset is used for the first time, send a first broadcast signal and a first key to the surrounding through the Bluetooth headset, perform a preliminary connection with the terminal device, and determine the terminal device with the preliminary connection as the first terminal device; the first broadcast signal and the first key are sent through different channels; the first broadcast signal is obtained by encrypting the Bluetooth address of the Bluetooth headset;
[0050] A data acquisition module, used to obtain a pairing application signal;
[0051] A pairing connection module, used to decrypt the pairing application signal, send a second broadcast signal to the first terminal device corresponding to the pairing application signal, verify according to the second feedback signal received from the first terminal device, determine the first terminal device that meets the Bluetooth pairing condition as the second terminal device, and perform Bluetooth pairing connection between the Bluetooth headset and the second terminal device;
[0052] The automatic connection module is used to quickly pair the Bluetooth headset when it is used again. The third broadcast signal is sent to the surroundings through the Bluetooth headset, and it is determined whether there is a second terminal device based on the received third feedback signal; if so, the second terminal device is verified according to the third feedback signal, and the pairing score of the second terminal device is calculated. The second terminal device with the highest pairing score that meets the Bluetooth pairing conditions is determined as the third terminal device, and the Bluetooth headset is paired with the third terminal device for Bluetooth connection; if not, the first broadcast signal is sent to the surroundings for complete pairing.
[0053] A third aspect of the present invention provides a Bluetooth headset, comprising:
[0054] Memory for storing computer programs;
[0055] The processor is used to implement the steps of the above-mentioned Bluetooth headset pairing and connection method when executing the computer program.
[0056] The present invention discloses a Bluetooth headset pairing connection method, system and Bluetooth headset, the method comprising: when the Bluetooth headset is used for the first time, sending a first broadcast signal and a first key to the surroundings to determine a first terminal device; determining the first terminal device that meets the Bluetooth pairing condition as the second terminal device, and performing Bluetooth pairing connection with the Bluetooth headset; when the Bluetooth headset is used again, sending a third broadcast signal to the surroundings, judging whether the second terminal device exists according to the received third feedback signal; if it exists, calculating the pairing score of the second terminal device, determining the second terminal device with the highest pairing score that meets the Bluetooth pairing condition as the third terminal device, and performing Bluetooth pairing connection with the Bluetooth headset; if it does not exist, sending the first broadcast signal to the surroundings for complete pairing. The present invention identifies and verifies multiple terminal devices through pairing scores and Bluetooth pairing conditions, and realizes efficient pairing between the Bluetooth headset and the terminal device. BRIEF DESCRIPTION OF THE DRAWINGS
[0057] Figure 1 A flow chart of a Bluetooth headset pairing and connection method provided by the present invention is shown;
[0058] Figure 2 A flow chart showing a method for determining a first terminal device provided by the present invention is shown;
[0059] Figure 3 A flowchart of a third terminal device determination method provided by the present invention is shown;
[0060] Figure 4 A block diagram of a Bluetooth headset pairing and connection system provided by the present invention is shown. DETAILED DESCRIPTION
[0061] In order to more clearly understand the above-mentioned purpose, features and advantages of the present invention, the present invention is further described in detail below in conjunction with the accompanying drawings and specific embodiments. It should be noted that the embodiments of the present application and the features in the embodiments can be combined with each other without conflict.
[0062] In the following description, many specific details are set forth to facilitate a full understanding of the present invention. However, the present invention may also be implemented in other ways different from those described herein. Therefore, the protection scope of the present invention is not limited to the specific embodiments disclosed below.
[0063] Figure 1 A flow chart of a Bluetooth headset pairing and connection method provided by the present invention is shown.
[0064] like Figure 1 As shown, the present invention discloses a Bluetooth headset pairing and connection method, comprising:
[0065] S102, when the Bluetooth headset is used for the first time, a complete pairing is performed, a first broadcast signal and a first key are sent to the surroundings through the Bluetooth headset, a preliminary connection is made with the terminal device, and the terminal device with the preliminary connection is determined as the first terminal device; the first broadcast signal and the first key are sent through different channels; the first broadcast signal is obtained by encrypting the Bluetooth address of the Bluetooth headset;
[0066] S104, obtaining a pairing application signal;
[0067] S106, decrypting the pairing application signal, sending a second broadcast signal to the first terminal device corresponding to the pairing application signal, verifying according to the second feedback signal received from the first terminal device, determining the first terminal device that meets the Bluetooth pairing condition as the second terminal device, and performing Bluetooth pairing connection between the Bluetooth headset and the second terminal device;
[0068] S108, when the Bluetooth headset is used again, fast pairing is performed, a third broadcast signal is sent to the surroundings through the Bluetooth headset, and whether there is a second terminal device is determined according to the received third feedback signal;
[0069] S110, if it exists, verify the second terminal device according to the third feedback signal, calculate the pairing score of the second terminal device, determine the second terminal device with the highest pairing score that meets the Bluetooth pairing condition as the third terminal device, and perform Bluetooth pairing connection between the Bluetooth headset and the third terminal device;
[0070] S112: If not present, a first broadcast signal is sent to the surroundings for complete pairing.
[0071] According to an embodiment of the present invention, when a Bluetooth headset is used for the first time, the Bluetooth address of the Bluetooth headset is encrypted by the first key of the Bluetooth headset to obtain a first broadcast signal, and the first broadcast signal and the first key are sent to the surrounding through different transmission channels. After receiving the complete first broadcast signal and the first key, the terminal device decrypts the first broadcast signal by the first key to determine the Bluetooth address of the Bluetooth headset. Among them, the terminal device can be a Bluetooth device such as a mobile phone, a tablet, a computer, etc. The terminal device encrypts the Bluetooth address of its terminal device by the first key to obtain a first feedback signal, and sends the first feedback signal in a direction according to the Bluetooth address of the Bluetooth device. The Bluetooth headset decrypts the first feedback signal by the first key, determines the Bluetooth address of the terminal device, sends a directional signal to the Bluetooth address of the terminal device, establishes a preliminary connection between the Bluetooth headset and the terminal device, determines the terminal device as the first terminal device, and displays the device name or Bluetooth address of the Bluetooth headset in the Bluetooth list of the first terminal device.
[0072] When the Bluetooth headset receives a pairing request signal from a first terminal device, it sends a second broadcast signal to the first terminal device, and extracts the packet loss rate of the first broadcast signal of the first terminal device, the packet loss rate of the first feedback signal and the response time of the first broadcast signal according to the first feedback signal fed back by the first terminal device. By analyzing the packet loss rate of the first broadcast signal of the first terminal device, the packet loss rate of the first feedback signal and the response time of the first broadcast signal, it is determined whether the first terminal device meets the Bluetooth pairing conditions. If so, the first terminal device is determined as the second terminal device, and a Bluetooth pairing connection is performed with the Bluetooth headset. The Bluetooth device records the Bluetooth address of the second terminal device in the corresponding database, and the second terminal device records the first key of the Bluetooth device in the corresponding database.
[0073] When the Bluetooth device is used again, it first sends a third broadcast signal to the surroundings. The terminal devices around it decrypt the third broadcast signal through the first key recorded in the database, and generate corresponding third feedback data to send to the Bluetooth address of the Bluetooth device. The Bluetooth device determines whether there are second terminal devices around it according to the received third feedback data, and determines the number of second terminal devices. When there is only one second terminal device, it determines whether the second terminal device meets the Bluetooth connection conditions. If it does, it automatically performs Bluetooth pairing connection; when there are multiple second terminal devices around, verify the user identity information bound to each second terminal device. If it is the same user, it communicates with all second terminal devices and adjusts the audio output of the Bluetooth headset according to the audio data of each second terminal device; if there is user identity information of multiple different users, it calculates the impact level and pairing score of each second terminal device, and combines the Bluetooth pairing conditions to determine the second terminal device with the maximum pairing score in the highest impact level and meets the Bluetooth pairing conditions as the third terminal device, and automatically performs Bluetooth pairing connection with the Bluetooth device. When there is no third terminal device, the Bluetooth headset sends the first broadcast signal to the surrounding again, displays the device name or Bluetooth address of the Bluetooth headset in the first terminal device that meets the preliminary connection, and waits for the user to perform manual pairing connection.
[0074] In addition, when the Bluetooth headset sends a broadcast signal (including the first broadcast signal, the second broadcast signal, the third broadcast signal, the fourth broadcast signal and the fifth broadcast signal, etc.), it can add a data acquisition request in the broadcast signal as needed, such as requesting the device to hold the user's identity information, usage status (screen off or on) and other device data. The terminal device adds the corresponding request data to the corresponding feedback signal (including the first feedback signal, the second feedback signal, the third feedback signal, the fourth feedback signal and the fifth feedback signal, etc.) and sends it to the Bluetooth headset based on the data acquisition requirement in the received broadcast signal, thereby ensuring that the Bluetooth headset can obtain various device data of the terminal device through the feedback signal.
[0075] To ensure normal data transmission, the broadcast signal and the feedback signal are sent multiple times. The Bluetooth device adds the number of times the broadcast signal is sent to the broadcast signal. The terminal device determines the packet loss rate of the broadcast signal according to the ratio of the number of times the broadcast signal is received and the number of times it is sent, and adds the packet loss rate of the broadcast signal and the number of times the feedback signal is sent to the feedback signal. The Bluetooth device calculates the packet loss rate of the feedback signal according to the number of times the feedback signal is received and the number of times it is sent, and determines the response time according to the first sending time of the broadcast signal and the first receiving time of the feedback signal. When the packet loss rate of the broadcast signal and the packet loss rate of the feedback signal are both less than the system preset packet loss rate threshold, and the response time is less than the preset response time threshold, it is determined that the current terminal device meets the Bluetooth pairing condition. Wherein, the broadcast signal and the feedback signal are both encrypted by the first key. Wherein, the preset packet loss rate threshold and the preset response time threshold are set and adjusted by technicians in this field and the system according to actual needs.
[0076] To ensure data security, the first key and the second key that can encrypt and decrypt each other are used to encrypt and decrypt the broadcast signal and the feedback signal. The Bluetooth headset uses the second key to encrypt the Bluetooth address to determine the first broadcast signal and other broadcast signals. At this time, the obtained broadcast signal can only be encrypted by the first key. The terminal device uses the first key to encrypt the Bluetooth address of the terminal device to determine the first feedback signal and other feedback signals. At this time, the obtained feedback signal can only be decrypted by the second key.
[0077] Figure 2 A flow chart of the first terminal device determination method provided by the present invention is shown.
[0078] like Figure 2 As shown, according to an embodiment of the present invention, when the Bluetooth headset is used for the first time, a complete pairing is performed, a first broadcast signal and a first key are sent to the surroundings through the Bluetooth headset, a preliminary connection is made with the terminal device, and the terminal device with the preliminary connection is determined as the first terminal device, including:
[0079] S202, the terminal device decrypts the first broadcast signal using the received first key to obtain the Bluetooth address of the Bluetooth headset;
[0080] S204, the terminal device encrypts the Bluetooth address of the terminal device by using the first key to obtain a first feedback signal, and the terminal device sends the first feedback signal to the Bluetooth headset;
[0081] S206, the Bluetooth headset decrypts the received first feedback signal using the first key to obtain a Bluetooth address of the terminal device;
[0082] S208: Preliminarily connect the Bluetooth headset to the terminal device according to the Bluetooth address of the terminal device, and determine the terminal device with the preliminary connection as the first terminal device.
[0083] It should be noted that since the Bluetooth headset sends the first broadcast signal and the first key through different channels, when the terminal device receives the first broadcast signal and the first key at the same time within the system specified time, the terminal device decrypts the first broadcast signal through the first key to obtain the Bluetooth address of the Bluetooth headset.
[0084] When the Bluetooth device and the terminal device establish a preliminary connection, the device name or Bluetooth address of the Bluetooth device is displayed in the connection list of the terminal device.
[0085] According to an embodiment of the present invention, decrypting a pairing application signal, sending a second broadcast signal to a first terminal device corresponding to the pairing application signal, performing verification according to a second feedback signal received from the first terminal device, determining the first terminal device that meets the Bluetooth pairing condition as the second terminal device, and performing Bluetooth pairing connection between the Bluetooth headset and the second terminal device, including:
[0086] Obtaining a pairing application signal from a first terminal device;
[0087] The Bluetooth headset decrypts the pairing application signal using the first key to obtain the Bluetooth address of the first terminal device;
[0088] The Bluetooth headset sends a second broadcast signal to the Bluetooth address of the first terminal device in a directional manner;
[0089] Analyze the received second feedback signal of the first terminal device to determine whether the Bluetooth pairing condition is met;
[0090] If so, the first terminal device is determined as the second terminal device, the Bluetooth headset is paired with the second terminal device through Bluetooth, and the Bluetooth address of the second terminal device is recorded in the corresponding database; otherwise, no processing is performed.
[0091] It should be noted that the first terminal device sends a pairing application signal to the Bluetooth address of the Bluetooth headset according to the user instruction or the system preset Bluetooth connection rule, and the pairing application signal is obtained by encrypting the connection request and Bluetooth address of the first terminal device through the first key encryption. When the Bluetooth headset receives the pairing application signal of the first device, the pairing application signal is decrypted by the first key to determine the Bluetooth address of the first terminal device, and the Bluetooth address and pairing consent information of the Bluetooth device are encrypted by the first key to obtain a second broadcast signal, and the second broadcast signal is sent to the Bluetooth address of the first terminal device by directional transmission. After receiving the second broadcast signal, the first terminal device decrypts it by the first key, and when the pairing consent information of the Bluetooth device is determined, a second feedback signal is sent to the Bluetooth address of the Bluetooth headset again, and the pairing consent information of the Bluetooth device has been received to the Bluetooth device through the second feedback signal.
[0092] The Bluetooth headset decrypts the second feedback signal received by the first key pair to determine the packet loss rate of the second broadcast signal, the packet loss rate of the second feedback signal, and the response time of the second broadcast signal. When the packet loss rate of the second broadcast signal and the packet loss rate of the second feedback signal are both less than the system preset packet loss rate threshold, and the response time of the second broadcast signal is less than the preset response time threshold, it is determined that the current second terminal device meets the Bluetooth pairing condition. A Bluetooth pairing connection is established between the Bluetooth headset and the current second terminal device.
[0093] At the same time, the Bluetooth address of the second terminal device is recorded in the database of the Bluetooth headset, so that the Bluetooth device can automatically perform Bluetooth pairing connection when it detects the Bluetooth address of the second terminal device next time.
[0094] Figure 3 A flow chart of the third terminal device determination method provided by the present invention is shown.
[0095] like Figure 3 As shown, according to an embodiment of the present invention, verifying the second terminal device according to the third feedback signal, calculating the pairing score of the second terminal device, and determining the second terminal device with the highest pairing score that meets the Bluetooth pairing condition as the third terminal device, includes:
[0096] S302, when there is only one second terminal device, determining whether the second terminal device meets the Bluetooth pairing condition;
[0097] S304, when there are multiple second terminal devices, sending a fourth broadcast signal to the multiple second terminal devices;
[0098] S306, analyzing the received fourth feedback signal to determine the user identity information bound to each second terminal device;
[0099] S308, if the user identity information bound to multiple second terminal devices is the same, establish a communication connection between the Bluetooth headset and the multiple second terminal devices; otherwise, calculate the pairing score of each second terminal device according to the fourth feedback signal, and determine the second terminal device with the highest pairing score as the third terminal device.
[0100] It should be noted that when there is only one second terminal device, the Bluetooth headset decrypts the third feedback signal received by the first key pair to determine the packet loss rate of the third broadcast signal, the packet loss rate of the third feedback signal, and the response time of the third broadcast signal. When the packet loss rate of the third broadcast signal and the packet loss rate of the third feedback signal are both less than the system preset packet loss rate threshold, and the response time of the third broadcast signal is less than the preset response time threshold, it is determined that the current second terminal device meets the Bluetooth pairing condition.
[0101] When there are multiple second terminal devices, the Bluetooth headset decrypts the fourth feedback data corresponding to the fourth broadcast signal using the first key to determine the user identity information bound to each of the multiple second terminal devices.
[0102] When the user identity information bound to multiple second terminal devices is the same user, the Bluetooth headset sends a communication connection request to each second terminal device, establishes a communication connection with all second terminal devices, and determines the third terminal device for primary connection and the fourth terminal device for secondary connection according to the pairing score of each second terminal device, and outputs the audio of the third terminal device by default. At the same time, the primary and secondary connections can be switched according to the audio output requirements of the fourth terminal device, and the fourth terminal device with audio requirements can be adjusted to the third terminal device.
[0103] When the user identity information bound to multiple second terminal devices is different users, the fourth feedback signal is analyzed to determine the first impact data of each second terminal device, and the pairing score of each second terminal device is calculated by the first impact data to determine the impact level. The second terminal device with the largest pairing score within the highest impact level and meeting the Bluetooth pairing condition is determined as the third terminal device.
[0104] According to an embodiment of the present invention, after establishing a communication connection between the Bluetooth headset and a plurality of second terminal devices, the method further includes:
[0105] The communication score of each second terminal device is calculated, and the second terminal device with the highest communication score is selected as the third terminal device, and the other second terminal devices are determined as the fourth terminal devices.
[0106] It should be noted that the communication score of the second terminal device is determined by weighted calculation of the packet loss rate of the third broadcast signal, the packet loss rate of the third feedback signal and the response time of the third broadcast signal of the second terminal device. The packet loss rate of the third broadcast signal, the packet loss rate of the third feedback signal and the response time of the third broadcast signal are multiplied by the corresponding influence weights respectively, and the calculation results are accumulated to determine the communication score of each second terminal device, and the second terminal device with the highest communication score is determined as the third terminal device, and the other second terminal devices are determined as the fourth terminal device. Among them, the influence weights of the packet loss rate of the third broadcast signal, the packet loss rate of the third feedback signal and the response time of the third broadcast signal are set by those skilled in the art according to actual needs. At the same time, the user can set a terminal device as the main device according to actual use needs, and when making a communication connection, the main device is determined as the third terminal device by default.
[0107] According to an embodiment of the present invention, calculating the pairing score of each second terminal device according to the fourth feedback signal, and determining the second terminal device with the highest pairing score as the third terminal device includes:
[0108] Analyze the fourth feedback signal to determine first impact data of the second terminal device; the first impact data includes connection frequency, last connection time, response time, communication status and user identity level;
[0109] Compare each first impact data of the second terminal device with the corresponding preset impact data threshold interval, and determine the first impact data in the preset impact data threshold interval as the second impact data;
[0110] Filtering the second terminal device that does not have the second influencing data;
[0111] determining an impact level of the second terminal device according to the amount of the second impact data;
[0112] Performing weighted calculation on the first influence data and the second influence data of the second terminal device with the highest influence level to determine a pairing score of the second terminal device with the highest influence level;
[0113] comparing the pairing score of the second terminal device with the highest impact level with a preset score threshold;
[0114] When the pairing score is greater than a preset score threshold, determining whether the second terminal device with the highest impact level meets the Bluetooth pairing condition, and when the Bluetooth pairing condition is met, determining the second terminal device with the highest impact level as the third terminal device;
[0115] When the pairing score is less than or equal to the preset score threshold, the second terminal device of the next impact level is analyzed until the third terminal device is determined.
[0116] It should be noted that the preset impact data threshold interval for each first impact data is set by those skilled in the art according to actual needs. By comparing the first impact data of the second terminal device with the corresponding preset impact data threshold interval, the number of second impact data in each second terminal device is determined, the impact level of each second terminal device is determined by the number of second impact data, and the second terminal devices without second impact data are filtered. For example, the preset impact data threshold interval for the connection frequency is 3 times / day. When the connection frequency of the second impact data is greater than 3 times per day, the connection frequency of the second impact data is determined as the second impact data. Among them, the corresponding preset impact data threshold is set for each first impact data by those skilled in the art according to data requirements.
[0117] The more the number of second impact data, the higher the corresponding impact level. The second terminal device with the highest impact level is analyzed first, and each impact data (including the first impact data and the second impact data) in the second terminal device is multiplied by the corresponding impact weight, and the calculation results are accumulated to determine the pairing score of the second terminal device. When the pairing score of the second terminal device is greater than the preset score threshold, the packet loss rate of the fourth broadcast signal, the packet loss rate of the fourth feedback signal, and the response time of the fourth broadcast signal are determined through the fourth feedback signal. When the packet loss rate of the fourth broadcast signal and the packet loss rate of the fourth feedback signal are both less than the system preset packet loss rate threshold, and the response time of the fourth broadcast signal is less than the preset response time threshold, it is determined that the current second terminal device meets the Bluetooth pairing condition; otherwise, the Bluetooth pairing condition is not met. When there are multiple second terminal devices within the current impact level, the pairing score of each second terminal device is calculated respectively, and the second terminal device with the highest pairing score and meeting the Bluetooth pairing condition is determined as the third terminal device.
[0118] According to an embodiment of the present invention, it also includes:
[0119] When the pairing scores of all second terminal devices are less than a preset score threshold, the Bluetooth headset sends a fifth broadcast signal to the surroundings;
[0120] Analyze the received fifth feedback signal to determine the pairing score of the surrounding fifth terminal device;
[0121] According to the maximum pairing score q of the fifth terminal device (m)max The maximum pairing score p with the second terminal device (j)max Conduct analysis;
[0122] When k×q (m)max >p (j)max When the maximum pairing score q is determined (m)maxwhether the corresponding fifth terminal device m meets the Bluetooth pairing condition; if so, determining the fifth terminal device m as the third terminal device;
[0123] Where k is the correction coefficient.
[0124] It should be noted that the fifth terminal device is a terminal device that has not been connected to the Bluetooth headset within the communication range of the Bluetooth headset. By analyzing the fifth feedback signal, the first impact data of the fifth terminal device is determined, and by analyzing and calculating the first impact data of the fifth terminal device, the pairing score of each fifth terminal device is determined.
[0125] Since the fifth terminal device has not been paired with the Bluetooth headset, there is no first influencing data such as connection frequency and last connection time. The maximum pairing score q of the fifth terminal device is adjusted by the correction coefficient k. (m)max The maximum pairing score of the fifth terminal device after correction is k×q (m)max and the maximum pairing score p of the second terminal device (j)max For comparison, when k×q (m)max >p (j)max The packet loss rate of the fifth broadcast signal, the packet loss rate of the fifth feedback signal and the response time of the fifth broadcast signal are determined by the fifth feedback data. When the packet loss rate of the fifth broadcast signal and the packet loss rate of the fifth feedback signal are both less than the system preset packet loss rate threshold, and the response time of the fifth broadcast signal is less than the preset response time threshold, it is determined that the current fifth terminal device meets the Bluetooth pairing condition and is determined as the third terminal device.
[0126] In addition, when the Bluetooth headset establishes a Bluetooth pairing connection with a third terminal device obtained through the fifth terminal device, the Bluetooth pairing connection request can also be displayed on the display interface of the third terminal device. The user can choose whether to perform the Bluetooth pairing connection according to actual needs and set the maximum waiting time. If the user does not perform any operation when the maximum waiting time is reached, the Bluetooth pairing connection will be performed or the Bluetooth pairing connection will be canceled according to the system default rules.
[0127] When k×q (m)max ≤p (j)max When it is determined that there is no third terminal device, a first broadcast signal is sent to the surroundings for complete pairing.
[0128] According to an embodiment of the present invention, it also includes:
[0129] When the fifth terminal device m does not meet the Bluetooth pairing condition, a first broadcast signal is sent to the surroundings to perform a complete pairing.
[0130] It should be noted that when the fifth terminal device m does not meet the Bluetooth pairing conditions, n-1 fifth terminal devices can be selected in the order of pairing from large to small according to the system preset rules, and are represented by the fifth terminal device mn, where the value of n is determined by the system. Determine the pairing score q of the fifth terminal device mn based on the correction coefficient k (m-n) and the maximum pairing score p of the second terminal device (j)max The pairing score is greater than the maximum pairing score p of the second terminal device. (j)max The fifth terminal device mn performs Bluetooth pairing condition verification, and determines the fifth terminal device that meets the Bluetooth pairing condition as the third terminal device. If there is no fifth terminal device that meets the Bluetooth pairing condition, a first broadcast signal is sent to the surroundings for complete pairing.
[0131] Figure 4 A block diagram of a Bluetooth headset pairing and connection system provided by the present invention is shown.
[0132] like Figure 4 As shown, the second aspect of the present invention provides a Bluetooth headset pairing and connection system, comprising:
[0133] A preliminary connection module is used to perform a complete pairing when the Bluetooth headset is used for the first time, send a first broadcast signal and a first key to the surrounding through the Bluetooth headset, perform a preliminary connection with the terminal device, and determine the terminal device with the preliminary connection as the first terminal device; the first broadcast signal and the first key are sent through different channels; the first broadcast signal is obtained by encrypting the Bluetooth address of the Bluetooth headset;
[0134] A data acquisition module, used to obtain a pairing application signal;
[0135] A pairing connection module, used to decrypt the pairing application signal, send a second broadcast signal to the first terminal device corresponding to the pairing application signal, verify according to the second feedback signal received from the first terminal device, determine the first terminal device that meets the Bluetooth pairing condition as the second terminal device, and perform Bluetooth pairing connection between the Bluetooth headset and the second terminal device;
[0136] The automatic connection module is used to quickly pair the Bluetooth headset when it is used again. The third broadcast signal is sent to the surroundings through the Bluetooth headset, and it is determined whether there is a second terminal device based on the received third feedback signal; if so, the second terminal device is verified according to the third feedback signal, and the pairing score of the second terminal device is calculated. The second terminal device with the highest pairing score that meets the Bluetooth pairing conditions is determined as the third terminal device, and the Bluetooth headset is paired with the third terminal device for Bluetooth connection; if not, the first broadcast signal is sent to the surroundings for complete pairing.
[0137] A third aspect of the present invention provides a Bluetooth headset, comprising:
[0138] Memory for storing computer programs;
[0139] The processor is used to implement the steps of the above-mentioned Bluetooth headset pairing and connection method when executing the computer program.
[0140] The information (including but not limited to user device information, user personal information, etc.), data (including but not limited to data used for analysis, stored data, displayed data, etc.) and signals (including but not limited to signals transmitted between user terminals and other devices, etc.) involved in this application are all authorized by the user or fully authorized by all parties, and the collection, use and processing of relevant data must comply with relevant laws, regulations and standards of relevant countries and regions. For example, the "first key" and "first impact data" involved in this disclosure are all obtained with full authorization.
[0141] The present invention discloses a Bluetooth headset pairing connection method, system and Bluetooth headset, the method comprising: when the Bluetooth headset is used for the first time, sending a first broadcast signal and a first key to the surroundings to determine a first terminal device; determining the first terminal device that meets the Bluetooth pairing condition as the second terminal device, and performing Bluetooth pairing connection with the Bluetooth headset; when the Bluetooth headset is used again, sending a third broadcast signal to the surroundings, judging whether the second terminal device exists according to the received third feedback signal; if it exists, calculating the pairing score of the second terminal device, determining the second terminal device with the highest pairing score that meets the Bluetooth pairing condition as the third terminal device, and performing Bluetooth pairing connection with the Bluetooth headset; if it does not exist, sending the first broadcast signal to the surroundings for complete pairing. The present invention identifies and verifies multiple terminal devices through pairing scores and Bluetooth pairing conditions, and realizes efficient pairing between the Bluetooth headset and the terminal device.
[0142] In the several embodiments provided in the present application, it should be understood that the disclosed devices and methods can be implemented in other ways. The device embodiments described above are only schematic. For example, the division of the units is only a logical function division. There may be other division methods in actual implementation, such as: multiple units or components can be combined, or can be integrated into another system, or some features can be ignored or not executed. In addition, the coupling, direct coupling, or communication connection between the components shown or discussed can be through some interfaces, and the indirect coupling or communication connection of the devices or units can be electrical, mechanical or other forms.
[0143] The units described above as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units; they may be located in one place or distributed on multiple network units; some or all of the units may be selected according to actual needs to achieve the purpose of the present embodiment.
[0144] In addition, all functional units in the embodiments of the present invention may be integrated into one processing unit, or each unit may be separately used as a unit, or two or more units may be integrated into one unit; the above-mentioned integrated units may be implemented in the form of hardware or in the form of hardware plus software functional units.
[0145] A person of ordinary skill in the art can understand that: all or part of the steps of implementing the above method embodiment can be completed by hardware related to program instructions, and the aforementioned program can be stored in a computer-readable storage medium. When the program is executed, it executes the steps of the above method embodiment; and the aforementioned storage medium includes: a mobile storage device, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk, and other media that can store program codes.
[0146] Alternatively, if the above-mentioned integrated unit of the present invention is implemented in the form of a software function module and sold or used as an independent product, it can also be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the embodiment of the present invention can be essentially or partly reflected in the form of a software product that contributes to the prior art. The computer software product is stored in a storage medium and includes several instructions for a computer device (which can be a personal computer, server, or network device, etc.) to execute all or part of the methods described in each embodiment of the present invention. The aforementioned storage medium includes: various media that can store program codes, such as mobile storage devices, ROM, RAM, magnetic disks or optical disks.
Claims
1. A Bluetooth headset pairing and connection method, characterized in that: include: When the Bluetooth headset is used for the first time, a complete pairing is performed, a first broadcast signal and a first key are sent to the surroundings through the Bluetooth headset, a preliminary connection is made with the terminal device, and the terminal device with the preliminary connection is determined as the first terminal device; The first broadcast signal and the first key are sent through different channels; the first broadcast signal is obtained by encrypting the Bluetooth address of the Bluetooth headset; Get the pairing application signal; decrypting the pairing application signal, sending a second broadcast signal to the first terminal device corresponding to the pairing application signal, performing verification according to the received second feedback signal of the first terminal device, determining the first terminal device that meets the Bluetooth pairing condition as the second terminal device, and performing Bluetooth pairing connection between the Bluetooth headset and the second terminal device; When the Bluetooth headset is used again, a quick pairing is performed, a third broadcast signal is sent to the surroundings through the Bluetooth headset, and whether a second terminal device exists is determined according to the received third feedback signal; If so, verify the second terminal device according to the third feedback signal, calculate the pairing score of the second terminal device, determine the second terminal device with the highest pairing score that meets the Bluetooth pairing condition as the third terminal device, and perform Bluetooth pairing connection between the Bluetooth headset and the third terminal device; If not, a first broadcast signal is sent to the surroundings for complete pairing; The verifying the second terminal device according to the third feedback signal, calculating the pairing score of the second terminal device, and determining the second terminal device with the highest pairing score that meets the Bluetooth pairing condition as the third terminal device includes: When there is only one second terminal device, determining whether the second terminal device meets the Bluetooth pairing condition; When there are multiple second terminal devices, sending a fourth broadcast signal to the multiple second terminal devices; Analyze the received fourth feedback signal to determine the user identity information bound to each second terminal device; If the user identity information bound to the multiple second terminal devices is the same, establish a communication connection between the Bluetooth headset and the multiple second terminal devices; otherwise, calculate the pairing score of each second terminal device according to the fourth feedback signal, and determine the second terminal device with the highest pairing score as the third terminal device; The calculating the pairing score of each second terminal device according to the fourth feedback signal, and determining the second terminal device with the highest pairing score as the third terminal device, includes: Analyze the fourth feedback signal to determine first impact data of the second terminal device; the first impact data includes connection frequency, last connection time, response time, communication status and user identity level; Compare each first impact data of the second terminal device with the corresponding preset impact data threshold interval, and determine the first impact data in the preset impact data threshold interval as the second impact data; Filtering the second terminal device that does not have the second influencing data; determining an impact level of the second terminal device according to the amount of the second impact data; Performing weighted calculation on the first influence data and the second influence data of the second terminal device with the highest influence level to determine a pairing score of the second terminal device with the highest influence level; Comparing the pairing score of the second terminal device with the highest impact level with a preset score threshold; When the pairing score is greater than a preset score threshold, determining whether the second terminal device with the highest impact level meets the Bluetooth pairing condition, and when the Bluetooth pairing condition is met, determining the second terminal device with the highest impact level as the third terminal device; When the pairing score is less than or equal to a preset score threshold, the second terminal device of the next impact level is analyzed until the third terminal device is determined.
2. The Bluetooth headset pairing and connection method according to claim 1, characterized in that: The method of performing complete pairing when the Bluetooth headset is used for the first time, sending a first broadcast signal and a first key to the surroundings through the Bluetooth headset, performing a preliminary connection with the terminal device, and determining the terminal device with the preliminary connection as the first terminal device, includes: The terminal device decrypts the first broadcast signal by using the received first key to obtain the Bluetooth address of the Bluetooth headset; The terminal device encrypts the Bluetooth address of the terminal device by using the first key to obtain a first feedback signal, and the terminal device sends the first feedback signal to the Bluetooth headset; The Bluetooth headset decrypts the received first feedback signal using the first key to obtain the Bluetooth address of the terminal device; The Bluetooth headset is preliminarily connected to the terminal device according to the Bluetooth address of the terminal device, and the terminal device with which the preliminary connection exists is determined as the first terminal device.
3. The Bluetooth headset pairing and connection method according to claim 1, characterized in that: The decrypting the pairing application signal, sending a second broadcast signal to the first terminal device corresponding to the pairing application signal, verifying according to the second feedback signal received from the first terminal device, determining the first terminal device that meets the Bluetooth pairing condition as the second terminal device, and performing Bluetooth pairing connection between the Bluetooth headset and the second terminal device, includes: Obtaining a pairing application signal from a first terminal device; The Bluetooth headset decrypts the pairing application signal using the first key to obtain the Bluetooth address of the first terminal device; The Bluetooth headset sends a second broadcast signal to the Bluetooth address of the first terminal device in a directionally manner; Analyze the received second feedback signal of the first terminal device to determine whether the Bluetooth pairing condition is met; If so, the first terminal device is determined as the second terminal device, the Bluetooth headset is paired with the second terminal device through Bluetooth, and the Bluetooth address of the second terminal device is recorded in the corresponding database; otherwise, no processing is performed.
4. The Bluetooth headset pairing and connection method according to claim 1, characterized in that: After establishing a communication connection between the Bluetooth headset and the plurality of second terminal devices, the method further includes: The communication score of each second terminal device is calculated, and the second terminal device with the highest communication score is selected as the third terminal device, and the other second terminal devices are determined as the fourth terminal devices.
5. The Bluetooth headset pairing and connection method according to claim 1, characterized in that: Also includes: When the pairing scores of all second terminal devices are less than a preset score threshold, the Bluetooth headset sends a fifth broadcast signal to the surroundings; Analyze the received fifth feedback signal to determine the pairing score of the surrounding fifth terminal device; According to the maximum pairing score q of the fifth terminal device (m)max The maximum pairing score p with the second terminal device (j)max Conduct analysis; When k×q (m)max >p (j)max When the maximum pairing score q is determined (m)max Whether the corresponding fifth terminal device m meets the Bluetooth pairing condition; If so, the fifth terminal device m is determined as the third terminal device; When k×q (m)max ≤p (j)max When the maximum pairing score p is determined (j)max Whether the corresponding second terminal device j meets the Bluetooth pairing condition; if so, determining the second terminal device j as the third terminal device; Where k is the correction coefficient.
6. The Bluetooth headset pairing and connection method according to claim 5, characterized in that: Also includes: When the fifth terminal device m does not meet the Bluetooth pairing condition, a first broadcast signal is sent to the surroundings for complete pairing.
7. A Bluetooth headset pairing and connection system, used to implement the Bluetooth headset pairing and connection method according to any one of claims 1 to 6, characterized in that: include: A preliminary connection module is used to perform a complete pairing when the Bluetooth headset is used for the first time, send a first broadcast signal and a first key to the surrounding through the Bluetooth headset, perform a preliminary connection with the terminal device, and determine the terminal device with the preliminary connection as the first terminal device; the first broadcast signal and the first key are sent through different channels; the first broadcast signal is obtained by encrypting the Bluetooth address of the Bluetooth headset; A data acquisition module, used to obtain a pairing application signal; A pairing connection module, used to decrypt the pairing application signal, send a second broadcast signal to the first terminal device corresponding to the pairing application signal, verify according to the second feedback signal received from the first terminal device, determine the first terminal device that meets the Bluetooth pairing condition as the second terminal device, and perform Bluetooth pairing connection between the Bluetooth headset and the second terminal device; The automatic connection module is used to quickly pair the Bluetooth headset when it is used again, send a third broadcast signal to the surroundings through the Bluetooth headset, and determine whether there is a second terminal device according to the received third feedback signal; if so, verify the second terminal device according to the third feedback signal, calculate the pairing score of the second terminal device, determine the second terminal device with the highest pairing score that meets the Bluetooth pairing conditions as the third terminal device, and pair the Bluetooth headset with the third terminal device through Bluetooth; if not, send the first broadcast signal to the surroundings for complete pairing; The verifying the second terminal device according to the third feedback signal, calculating the pairing score of the second terminal device, and determining the second terminal device with the highest pairing score that meets the Bluetooth pairing condition as the third terminal device includes: When there is only one second terminal device, determining whether the second terminal device meets the Bluetooth pairing condition; When there are multiple second terminal devices, sending a fourth broadcast signal to the multiple second terminal devices; Analyze the received fourth feedback signal to determine the user identity information bound to each second terminal device; If the user identity information bound to the multiple second terminal devices is the same, establish a communication connection between the Bluetooth headset and the multiple second terminal devices; otherwise, calculate the pairing score of each second terminal device according to the fourth feedback signal, and determine the second terminal device with the highest pairing score as the third terminal device; The calculating the pairing score of each second terminal device according to the fourth feedback signal, and determining the second terminal device with the highest pairing score as the third terminal device, includes: Analyze the fourth feedback signal to determine first impact data of the second terminal device; the first impact data includes connection frequency, last connection time, response time, communication status and user identity level; Compare each first impact data of the second terminal device with the corresponding preset impact data threshold interval, and determine the first impact data in the preset impact data threshold interval as the second impact data; Filtering the second terminal device that does not have the second influencing data; determining an impact level of the second terminal device according to the amount of the second impact data; Performing weighted calculation on the first influence data and the second influence data of the second terminal device with the highest influence level to determine a pairing score of the second terminal device with the highest influence level; Comparing the pairing score of the second terminal device with the highest impact level with a preset score threshold; When the pairing score is greater than a preset score threshold, determining whether the second terminal device with the highest impact level meets the Bluetooth pairing condition, and when the Bluetooth pairing condition is met, determining the second terminal device with the highest impact level as the third terminal device; When the pairing score is less than or equal to a preset score threshold, the second terminal device of the next impact level is analyzed until the third terminal device is determined.
8. A Bluetooth headset, characterized in that: include: Memory for storing computer programs; A processor, configured to implement the steps of the Bluetooth headset pairing and connection method as described in any one of claims 1 to 6 when executing the computer program.
Citation Information
Patent Citations
Bluetooth headset reconnection control method and device and Bluetooth headset
CN111866821A
Wireless Bluetooth headset connection method and device, terminal equipment and wireless Bluetooth headset
CN114222277A
