Low-power Bluetooth device connection matching detection system and method
By monitoring and detecting the connection process of low-power Bluetooth devices in real time, dynamically adjusting search strategies and calculating dynamic matching scores, the problems of connection failure and unstable pairing in the prior art are solved, and the connection success rate and user experience are improved.
Patent Information
- Application Number
- CN202510315583.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2025-03-18
- Publication Date
- 2025-06-13
- Estimated Expiration
- 2045-03-18
AI Technical Summary
There are problems such as connection failure and unstable pairing during the connection process of existing low-power Bluetooth devices, and there is a lack of real-time status detection and matching verification, which affects the user experience.
Provides a low-power Bluetooth device connection matching detection system and method, including identification module, acquisition module, verification module and detection module, and uses real-time monitoring of signal strength, interference signal characteristics and environmental noise data, dynamically adjusts search strategies, calculates dynamic matching scores, performs identity verification, and judges connection stability by regularly detecting signal strength and communication quality information.
Improves the success rate of equipment connection, provides pairing status feedback and connection quality assessment, reduces manual intervention, and improves compatibility and user experience between devices.
Smart Images

Figure CN119854966B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of Bluetooth communication, and more specifically, to a low-power Bluetooth device connection matching detection system and method. Background Art
[0002] With the popularization of smart devices, low-power Bluetooth (BLE), as a technology suitable for short-distance communication, has been widely used in wireless data transmission between smart devices. However, the connection process of BLE devices is often affected by factors such as environmental interference and signal strength changes. Therefore, the matching process of BLE devices may face problems such as connection failures and unstable pairing. Most current technologies only focus on the completion of device connections, lacking the detection of the real-time status of the connection process and the verification of matching, resulting in some devices not being truly paired successfully during the connection process, which affects the user experience.
[0003] Deficiencies of the prior art: By monitoring and detecting the connection process of BLE devices in real time, it is ensured that the devices can be successfully paired and the pairing status feedback is provided. Through this system, the problem of unstable pairing that may occur during the connection process of BLE devices can be effectively solved, improving the reliability of the devices and the user experience. In the existing low-power Bluetooth device connection matching detection technologies, there are generally problems such as low connection efficiency, poor matching accuracy, and high power consumption. In the device search stage of traditional methods, a wide scanning mode is often adopted, consuming a large amount of time and power, and being easily interfered by other surrounding Bluetooth signals, resulting in an inaccurate device list being searched. During the connection matching process, it mainly relies on the fixed identifiers of the devices for matching, lacking consideration of the dynamic status of the devices and environmental factors, making the matching success rate not high. Especially in complex environments or scenarios with a large number of devices, connection matching failures occur frequently. At the same time, the existing detection methods cannot monitor the stability of the connection status in real time, and cannot detect and handle problems such as connection interruptions or signal quality degradation in a timely manner, affecting the normal use of the devices and the user experience.
[0004] In view of the above problems, the present invention proposes a solution. Summary of the Invention
[0005] In order to overcome the above-mentioned defects of the prior art, embodiments of the present invention provide a low-power Bluetooth device connection matching detection system and method to solve the problems raised in the above background art.
[0006] To achieve the above object, the present invention provides the following technical solutions:
[0007] A low-power Bluetooth device connection matching detection system and method, including the following steps:
[0008] An identification module, which is used for a Bluetooth device to send a broadcast signal to the surrounding environment, the scanning device turns on the scanning function, scans the broadcast signal, and identifies the target device from the scanning results;
[0009] An acquisition module, which is used to collect the broadcast signal strength, interference signal characteristics, and environmental noise data in real time, evaluate the environmental complexity according to the environmental noise data and the broadcast signal strength, and dynamically adjust the search strategy according to the environmental complexity to obtain a list of connectable devices;
[0010] A verification module, which is used to obtain real-time status information, calculate the dynamic matching score of the connectable devices according to the real-time status information, and authenticate the identity of the connectable devices according to the dynamic matching score to obtain the target connected device;
[0011] A detection module, which is used to judge the stability of the connection match by periodically detecting the signal strength and communication quality information, the communication quality information includes data transmission speed and error rate, and interrupt the unstable connection and try to reconnect according to the detection result.
[0012] In a preferred embodiment, the specific steps for the Bluetooth device to send a broadcast signal to the surrounding environment are as follows:
[0013] The Bluetooth device periodically constructs a broadcast packet, and the broadcast packet contains the basic information of the device, including the device name, device type, service list, and broadcast interval;
[0014] After the broadcast packet is constructed, the Bluetooth device sends the broadcast signal into the surrounding environment through a wireless signal.
[0015] In a preferred embodiment, the specific steps for the scanning device to turn on the scanning function, scan the broadcast signal, and identify the target device from the scanning results are as follows:
[0016] The scanning device turns on the scanning program in the Bluetooth protocol stack and listens for the surrounding broadcast signals through active scanning;
[0017] After receiving the broadcast signal, it will listen to the broadcast signal according to the set scanning interval, and parse the received broadcast packet to obtain the device information;
[0018] Filter the target device according to the device information in the broadcast packet;
[0019] When the scanning device identifies a qualified broadcast signal, it judges the target device according to the information in the broadcast packet;
[0020] After identifying the target device, the scanning device performs subsequent operations.
[0021] In a preferred embodiment, the acquisition process of the broadcast signal strength is as follows:
[0022] Obtain the broadcast signal power through a wireless receiving device, and calculate the broadcast signal strength in combination with the reference power. The interference signal characteristics include the interference signal power, and the obtaining process is as follows:
[0023] Discretely sample the broadcast signal at a predetermined sampling frequency to obtain a discrete signal sequence;
[0024] And perform a discrete Fourier transform on the discrete signal sequence, and calculate the signal power spectral density using the periodogram method according to the signal sequence after the discrete Fourier transform;
[0025] Perform spectral analysis on the interference signal based on the signal power spectral density within the frequency band, and calculate the interference signal power;
[0026] The process of obtaining the ambient noise is as follows: Obtain the ambient noise power through a wireless receiving device, and calculate the ambient noise data in combination with the reference power;
[0027] Evaluate the environmental complexity based on the ambient noise data and the broadcast signal strength.
[0028] In a preferred embodiment, the process of obtaining the list of connectable devices is as follows:
[0029] Dynamically adjust the search strategy according to the environmental complexity. If the environmental complexity is less than the preset threshold, it means that in a simple environment, the device adopts a conventional fast scanning mode to obtain the list of connectable devices according to the scanning interval and frequency specified by the Bluetooth protocol;
[0030] If the environmental complexity is greater than the preset threshold, it means that in a complex environment, switch to the intelligent filtering scanning mode, input the monitored environmental signal data into the machine learning algorithm model, classify and filter the scanned Bluetooth signals based on the pre-stored interference and effective device signal characteristics, only retain the potential effective device signals, and then further scan and analyze to obtain the device detailed information and form an accurate list of connectable devices.
[0031] In a preferred embodiment, the dynamic matching score process of the connectable device is as follows:
[0032] Pre-establish a battery power - voltage calibration curve, and obtain the percentage of power through linear interpolation;
[0033] Read the current working mode information from the internal status register, and the status register stores the working mode information in binary coded form;
[0034] The Bluetooth device sends a request to the connectable device through a specific status query instruction in the Bluetooth communication protocol;
[0035] After receiving the request, the connectable device performs the same operations as its own status information, obtains its own battery percentage and working mode, and packages and replies to the Bluetooth device;
[0036] According to its own battery percentage and working mode, combined with the characteristics of the interference signal, based on the pre-constructed correlation model of device status and environmental factors, calculate the dynamic matching score of each connectable device.
[0037] In a preferred embodiment, the process of authenticating the connectable device according to the dynamic matching score is as follows:
[0038] Compare the calculated dynamic matching score of each connectable device with the threshold. For the connectable device with a score greater than the threshold, enter the authentication process;
[0039] For the connectable device with a score less than the threshold, temporarily exclude it from the connection consideration.
[0040] In a preferred embodiment, the process of obtaining the target connected device is as follows:
[0041] Compare the calculated dynamic matching score of each connectable device with the threshold. For the connectable device with a score greater than the threshold, enter the authentication process;
[0042] After authentication, all connectable devices that pass the authentication become potential target connected devices;
[0043] If there are multiple devices that pass the authentication, sort them in descending order according to the dynamic matching score, and select the connectable device with the highest score as the final target connected device;
[0044] If there is only one device that passes the authentication, then this device is the target connected device.
[0045] In a preferred embodiment, the process of judging the stability of the connection match by periodically detecting the signal strength and communication quality information is as follows:
[0046] The Bluetooth device periodically starts the signal strength detection program according to the preset detection period;
[0047] Through the radio frequency module of the Bluetooth device, read the received signal strength indication (RSSI) value between the current connected device;
[0048] In each detection period, record the amount of data sent by the Bluetooth device; according to the detection period T, calculate the data transmission time; calculate the data transmission speed according to the amount of data sent and the transmission time;
[0049] During the data transmission process, utilize the error checking mechanism in the Bluetooth protocol to count the amount of data with transmission errors within the detection period, and combine it with the total amount of data transmitted within the detection period to calculate the error rate;
[0050] Comprehensively calculate the communication quality information based on the Received Signal Strength Indication (RSSI) value and the error rate;
[0051] Comprehensively calculate the matching detection value by combining the communication quality information and the Received Signal Strength Indication (RSSI) value;
[0052] Compare the current matching detection value with the threshold; if the matching detection value is greater than the threshold, it is determined that the connection matching is stable;
[0053] If the matching detection value is less than the threshold, it is determined that the connection matching is unstable.
[0054] In a preferred embodiment, the following steps are included:
[0055] The Bluetooth device sends a broadcast signal to the surrounding environment, the scanning device enables the scanning function, scans the broadcast signal, and identifies the target device from the scanning results;
[0056] Collect the broadcast signal strength, interference signal characteristics, and environmental noise data in real time, evaluate the environmental complexity based on the environmental noise data and the broadcast signal strength, and dynamically adjust the search strategy according to the environmental complexity to obtain a list of connectable devices;
[0057] Obtain the real-time status information, calculate the dynamic matching score of the connectable devices according to the real-time status information, and authenticate the identity of the connectable devices according to the dynamic matching score to obtain the target connected device;
[0058] Judge the stability of the connection matching by regularly detecting the signal strength and communication quality information. The communication quality information includes the data transmission speed and the error rate, and interrupt the unstable connection and try to reconnect according to the detection results.
[0059] The technical effects and advantages of the low-power Bluetooth device connection matching detection system and method of the present invention:
[0060] 1. By monitoring and detecting the device connection process in real time, the present invention avoids pairing failures caused by signal problems or environmental interference, thereby improving the connection success rate of the device. The system provides pairing status feedback and connection quality evaluation, helping users to promptly discover connection problems and take corresponding measures to ensure the smoothness of the connection process.
[0061] 2. The present invention reduces the need for manual intervention through an automated detection and feedback mechanism, and effectively avoids equipment failures caused by incorrect device matching or poor connection quality. Through the optimized detection of signal strength and connection quality, the system can adapt to different environments and improve the compatibility between devices. BRIEF DESCRIPTION OF THE DRAWINGS
[0062] Figure 1 It is a schematic structural diagram of the low-power Bluetooth device connection matching detection system of the present invention.
[0063] Figure 2 It is a schematic structural diagram of the low-power Bluetooth device connection matching detection method of the present invention. DETAILED DESCRIPTION OF THE EMBODIMENTS
[0064] Next, the technical solutions in the embodiments of the present invention will be clearly and completely described in conjunction with the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are only a part of the embodiments of the present invention, rather than all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those of ordinary skill in the art without creative efforts shall fall within the protection scope of the present invention.
[0065] Embodiment 1 Figure 1 A module diagram of the low-power Bluetooth device connection matching detection system of the present invention is given.
[0066] The Bluetooth device sends a broadcast signal to the surrounding environment, and the scanning device enables the scanning function, scans the broadcast signal, and identifies the target device from the scanning results;
[0067] The specific steps for the Bluetooth device to send a broadcast signal to the surrounding environment are as follows:
[0068] The Bluetooth device regularly constructs a broadcast packet, which contains the basic information of the device, including the device name, device type, service list, and broadcast interval;
[0069] The Bluetooth device sets the broadcast interval, which determines the frequency of the device's broadcast signal;
[0070] Once the broadcast packet is constructed, the Bluetooth device sends the broadcast signal into the surrounding environment through a wireless signal; the broadcast signal will spread within a certain range, usually from several meters to dozens of meters. The broadcast signal is connectionless, and the scanning device can receive the signal without the need to establish a connection with the broadcast device;
[0071] The content of the broadcast signal includes the identifier of the device (such as the address of the device), broadcast type (such as non-connectable, connectable, scan response, etc.), device name, and supported service types.
[0072] The specific steps for the scanning device to enable the scanning function, scan the broadcast signal, and identify the target device from the scan results are as follows:
[0073] The scanning device enables the scanning program in the Bluetooth protocol stack and actively scans to listen for surrounding broadcast signals;
[0074] After receiving the broadcast signal, it will listen to the broadcast signal at the set scanning interval, parse the received broadcast packet, and obtain device information;
[0075] Filter the target device according to the device information in the broadcast packet;
[0076] When the scanning device recognizes a qualified broadcast signal, it determines the target device according to the information in the broadcast packet;
[0077] After identifying the target device, the scanning device performs subsequent operations, including sending a connection request, obtaining more device information, and pairing.
[0078] If the scanning device is interested in the broadcast device and the broadcast device allows connection, the scanning device can send a connection request;
[0079] The connection request is processed through the Bluetooth protocol stack. If a connection is established between the two, subsequent data exchange can be carried out through the Bluetooth connection;
[0080] The scanning device transmits the identified target device information to the upper-layer application, and the application program can perform further operations based on this information, such as displaying the device list or initiating a connection;
[0081] For most BLE devices, broadcasting and scanning are usually carried out in the low-power mode, so power consumption management is very crucial.
[0082] Real-time collect the broadcast signal strength, interference signal characteristics, and environmental noise data, evaluate the environmental complexity according to the environmental noise data and broadcast signal strength, and dynamically adjust the search strategy according to the environmental complexity to obtain a list of connectable devices;
[0083] The process of obtaining the broadcast signal strength is as follows:
[0084] Obtain the broadcast signal power through a wireless receiving device, and calculate the broadcast signal strength in combination with the reference power. The calculation formula for the broadcast signal strength is as follows: ; In the formula, is the broadcast signal strength, is the broadcast signal power, is the reference power;
[0085] The interference signal characteristics include the interference signal power, and the acquisition process is as follows:
[0086] Discretely sample the broadcast signal at a predetermined sampling frequency to obtain a discrete signal sequence;
[0087] And perform a discrete Fourier transform on the discrete signal sequence, and calculate the signal power spectral density using the periodogram method based on the signal sequence after the discrete Fourier transform;
[0088] Perform spectral analysis on the interference signal according to the signal power spectral density within the frequency band, and calculate the interference signal power;
[0089] The calculation formula is as follows: ; In the formula, is the interference signal power within the frequency band , is the signal power spectral density.
[0090] The ambient noise refers to the background noise caused by environmental factors (such as equipment noise, electromagnetic interference, surrounding objects, etc.) except for the broadcast signal and the interference signal;
[0091] Obtain the ambient noise power through a wireless receiving device, and calculate the ambient noise data in combination with the reference power. The calculation formula of the ambient noise data is as follows: ; In the formula, is the ambient noise data, is the ambient noise power, is the reference power;
[0092] Evaluate the environmental complexity according to the ambient noise data and the broadcast signal strength;
[0093] The environmental complexity reflects the relative relationship between the interference signal, noise, and broadcast signal, and can be evaluated according to the relative intensity of the noise and interference;
[0094] Use the reciprocal of the intensity ratio (SNR) of the noise to the interference signal to calculate the environmental complexity; the calculation formula is as follows: ; In the formula, R is the environmental complexity, is the ambient noise data, is the broadcast signal strength.
[0095] If R is high, it indicates a high environmental complexity and the signal is greatly affected by noise or interference. On the contrary, the environmental complexity is lower.
[0096] Dynamically adjust the search strategy according to the environmental complexity. If the environmental complexity is less than the preset threshold, it means that in a simple environment, the device uses the conventional fast scan mode to obtain the list of connectable devices according to the scan interval and frequency specified by the Bluetooth protocol;
[0097] If the environmental complexity is greater than the preset threshold, it means that in a complex environment, switch to the intelligent filtering and scanning mode. Input the monitored environmental signal data into a machine learning algorithm model (such as a convolutional neural network model). According to the pre-stored interference and effective device signal characteristics, classify and filter the scanned Bluetooth signals, only retain the potentially effective device signals, and then further scan and analyze to obtain the detailed device information and form an accurate list of connectable devices.
[0098] Obtain the real-time status information, calculate the dynamic matching scores of the connectable devices according to the real-time status information, and authenticate the connectable devices according to the dynamic matching scores to obtain the target connected devices;
[0099] Pre-establish a battery power - voltage calibration curve and obtain the percentage of power through linear interpolation;
[0100] Read the current working mode information from the internal status register. The status register stores the working mode in binary coding form. Bit 0 represents whether it is in the data transmission mode, and bit 1 represents whether it is in the standby mode;
[0101] The Bluetooth device sends a request to the connectable device through a specific status query instruction in the Bluetooth communication protocol;
[0102] After receiving the request, the connectable device performs the same operations as obtaining its own status information above, obtains its own power percentage and working mode, and packs and replies these information to the Bluetooth device;
[0103] According to its own power percentage and working mode combined with the interference signal characteristics, based on the pre-constructed association model between device status and environmental factors, calculate the dynamic matching scores of each connectable device. The calculation formula is as follows: ; where M is the dynamic matching score, D is the power percentage, a is the power percentage weight factor, G is the current working mode information, represented in binary coding form, b is the current working mode information weight factor, c is the interference signal power weight factor, is the interference signal power.
[0104] According to the actual application requirements and experience, preset a dynamic matching score threshold. This threshold is used to preliminarily screen the connectable devices, and only the devices with a matching score greater than the threshold enter the subsequent authentication process;
[0105] Compare the calculated dynamic matching scores of each connectable device with the threshold. For the connectable devices with a score greater than the threshold, enter the authentication process;
[0106] For the connectable devices with a score less than the threshold, temporarily exclude them from the connection consideration range.
[0107] For connectable devices entering the authentication process, the Bluetooth device and the connectable device exchange their respective identity identification information, such as the device unique serial number and device name, through specific authentication instructions.
[0108] The Bluetooth device initiating the verification encrypts its own identity identification information, the identity identification information of the connectable device, and the current timestamp according to a predefined encryption algorithm to generate a verification message.
[0109] Send the generated verification message to the connectable device.
[0110] After receiving the verification message, the connectable device uses the same encryption algorithm to perform the same encryption operation based on the received identity identification information of the device initiating the verification, its own identity identification information, and the locally recorded timestamp (ensuring that the time synchronization error is within an acceptable range) to obtain a local verification message. Then, it compares whether the received verification message is consistent with the locally generated verification message. If they are consistent, the authentication passes; if not, the verification fails and the connectable device is excluded.
[0111] After authentication, all connectable devices that pass the verification become potential target connection devices. If there are multiple devices that pass the verification, they are sorted in descending order according to the dynamic matching score, and the connectable device with the highest score is selected as the final target connection device; if there is only one device that passes the verification, that device is the target connection device.
[0112] Judge the stability of the connection match by regularly detecting the signal strength and communication quality information. The communication quality information includes data transmission speed and error rate, and interrupt unstable connections and attempt to reconnect according to the detection results.
[0113] The Bluetooth device regularly starts the signal strength detection program according to a preset detection period; for example, the detection period can be set to perform a detection every 5 seconds.
[0114] Read the received signal strength indication (RSSI) value between the Bluetooth device and the connected device through the radio frequency module of the Bluetooth device.
[0115] Record the amount of data sent by the Bluetooth device within each detection period.
[0116] Calculate the data transmission time according to the detection period T.
[0117] Calculate the data transmission speed based on the amount of data sent and the transmission time.
[0118] During data transmission, use the error checking mechanism in the Bluetooth protocol (such as CRC checking) to count the amount of data with transmission errors within the detection period, and calculate the error rate in combination with the total amount of data transmitted within the detection period.
[0119] Calculate the communication quality information comprehensively based on the Received Signal Strength Indication (RSSI) value and the error rate;
[0120] Compare the current communication quality information value with a threshold; if the communication quality information value is greater than the threshold, it is determined that the connection match is stable;
[0121] If the communication quality information value is less than the threshold, it is determined that the connection match is unstable.
[0122] When it is determined that the connection match is unstable, the Bluetooth device immediately starts the connection interruption procedure. By sending a specific disconnection instruction, terminate the communication link with the currently connected device. At the same time, record information such as the time and reason of the connection interruption (such as low signal strength, slow data transmission speed, high error rate), etc.
[0123] After the connection is interrupted, the Bluetooth device scans the surrounding connectable Bluetooth devices again according to the search strategy in the adaptive connection matching operation based on environmental perception, and obtains a list of connectable devices.
[0124] According to the obtained list of connectable devices, recalculate the dynamic matching score of each device, and in the order from high to low of the scores, preferentially attempt to connect with the device with a high matching score.
[0125] During the connection process, repeat the steps of authentication, key generation and exchange until the connection is successfully established or the preset number of retries is reached. If the connection is still not successful after reaching the number of retries, wait for the next detection period to try to reconnect again.
[0126] Embodiment 2, Figure 2 The flowchart of the connection matching detection method for the low-power Bluetooth device of the present invention is given.
[0127] The Bluetooth device sends a broadcast signal to the surrounding environment, the scanning device turns on the scanning function, scans the broadcast signal, and identifies the target device from the scanning results;
[0128] Collect the broadcast signal strength, interference signal characteristics and environmental noise data in real time, evaluate the environmental complexity according to the environmental noise data and the broadcast signal strength, and dynamically adjust the search strategy according to the environmental complexity to obtain a list of connectable devices;
[0129] Obtain the real-time status information, calculate the dynamic matching score of the connectable devices according to the real-time status information, and authenticate the connectable devices according to the dynamic matching score to obtain the target connected device;
[0130] Judge the stability of the connection match by regularly detecting the signal strength and communication quality information, where the communication quality information includes the data transmission speed and the error rate, and interrupt the unstable connection and try to reconnect according to the detection result.
[0131] The above formulas are all dimensionless and take their numerical values for calculation. The formulas are obtained by collecting a large amount of data for software simulation to get a formula closest to the actual situation. The preset parameters in the formulas are set by those skilled in the art according to the actual situation.
[0132] The above embodiments can be implemented in whole or in part by software, hardware, firmware, or any other combination. When implemented using software, the above embodiments can be implemented in whole or in part in the form of a computer program product.
[0133] Those of ordinary skill in the art can realize that the modules and algorithm steps of each example described in combination with the embodiments disclosed in this article can be implemented by electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are executed in a hardware or software manner depends on the specific application and design constraints of the technical solution. Professional technicians can use different methods to implement the described functions for each specific application, but such implementation should not be considered to exceed the scope of this application.
[0134] In addition, in each embodiment of this application, the functional modules can be integrated into one processing module, or each module can exist physically alone, or two or more modules can be integrated into one module.
[0135] As mentioned above, the above is only the specific implementation manner of this application, but the protection scope of this application is not limited thereto. Any person skilled in the art can easily think of changes or substitutions within the technical scope disclosed in this application, and all should be covered by the protection scope of this application. Therefore, the protection scope of this application should be subject to the protection scope of the claimed rights.
[0136] Finally: The above is only the preferred embodiment of the present invention and is not used to limit the present invention. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principle of the present invention shall be included in the protection scope of the present invention.
Claims
1. A low-power Bluetooth device connection matching detection system, characterized in that: The following steps are involved: The identification module is used for the Bluetooth device to send a broadcast signal to the surrounding environment, the scanning device to start the scanning function, scan the broadcast signal, and identify the target device from the scanning results; The acquisition module is used to collect broadcast signal strength, interference signal characteristics and environmental noise data in real time, evaluate the environmental complexity based on the environmental noise data and broadcast signal strength, and dynamically adjust the search strategy according to the environmental complexity to obtain a list of connectable devices; A verification module is used to obtain real-time status information, calculate a dynamic matching score of a connectable device according to the real-time status information, and authenticate the connectable device according to the dynamic matching score to obtain a target connection device; A detection module, used to determine the stability of connection matching by regularly detecting signal strength and communication quality information, wherein the communication quality information includes data transmission speed and error rate, and interrupting unstable connections and attempting to reconnect according to the detection results; The process of obtaining a list of connectable devices is as follows: Dynamically adjust the search strategy according to the complexity of the environment. If the complexity of the environment is less than the preset threshold, it means that in a simple environment, the device uses the conventional fast scanning mode to obtain a list of connectable devices according to the scanning interval and frequency specified by the Bluetooth protocol; If the environmental complexity is greater than the preset threshold, it means that in a complex environment, it switches to the intelligent filtering scanning mode, inputs the monitored environmental signal data into the machine learning algorithm model, and classifies and filters the scanned Bluetooth signals according to the pre-stored interference and effective device signal characteristics, retaining only potential effective device signals, and then further scans and analyzes to obtain detailed device information and form an accurate list of connectable devices; The dynamic matching score process of the connectable device is as follows: Pre-establish the battery capacity-voltage calibration curve and obtain the capacity percentage through linear interpolation; Read the current working mode information from the internal status register, which stores the working mode information in binary code form; The Bluetooth device sends a request to the connectable device through a specific status query instruction in the Bluetooth communication protocol; After receiving the request, the connectable device performs the same operation as its own status information, obtains its own power percentage and working mode, and packages and replies to the Bluetooth device; The dynamic matching score of each connectable device is calculated based on its own power percentage and working mode combined with the interference signal characteristics, according to the pre-built device status and environmental factor association model.
2. The low-power Bluetooth device connection matching detection system according to claim 1, characterized in that: The specific steps of the Bluetooth device sending a broadcast signal to the surrounding environment are: Bluetooth devices periodically construct advertising packets that contain basic information about the device, including device name, device type, service list, and advertising interval; Once the advertising packet is constructed, the Bluetooth device sends the advertising signal to the surrounding environment via wireless signals.
3. The low-power Bluetooth device connection matching detection system according to claim 2, characterized in that: The specific steps of the scanning device turning on the scanning function, scanning the broadcast signal, and identifying the target device from the scanning result are as follows: The scanning device starts the scanning program in the Bluetooth protocol stack and monitors the surrounding broadcast signals through active scanning; After receiving the broadcast signal, the broadcast signal is monitored according to the set scanning interval, and the received broadcast packet is analyzed to obtain device information; Filter the target device according to the device information in the advertising packet; When the scanning device identifies a qualified broadcast signal, it determines the target device based on the information in the broadcast packet; After identifying the target device, scan the device for subsequent operations.
4. The low-power Bluetooth device connection matching detection system according to claim 3, characterized in that: The process of obtaining the broadcast signal strength is as follows: The broadcast signal power is obtained by a wireless receiving device, and the broadcast signal strength is calculated in combination with the reference power; the interference signal characteristics include the interference signal power, and the acquisition process is as follows: Discretely sampling the broadcast signal according to a predetermined sampling frequency to obtain a discrete signal sequence; And the discrete signal sequence is subjected to discrete Fourier transform, and the signal power spectrum density is calculated by using the periodogram method according to the signal sequence after discrete Fourier transform; The interference signal power is calculated by analyzing the spectrum of the interference signal according to the signal power spectrum density in the frequency band; The environmental noise acquisition process is as follows: obtaining environmental noise power through a wireless receiving device, and calculating environmental noise data in combination with reference power; Assess environmental complexity based on ambient noise data and broadcast signal strength.
5. The low-power Bluetooth device connection matching detection system according to claim 1, characterized in that: The process of authenticating a connectable device based on a dynamic matching score is as follows: Compare the calculated dynamic matching score of each connectable device with the threshold, and for connectable devices with a score greater than the threshold, enter the identity authentication process; For connectable devices whose size is smaller than the threshold, they are temporarily excluded from connection consideration.
6. The low-power Bluetooth device connection matching detection system according to claim 5, characterized in that: Authentication of connectable devices is performed based on the dynamic matching score. The specific process of obtaining the target connecting device is as follows: Compare the calculated dynamic matching score of each connectable device with the threshold, and for connectable devices with a score greater than the threshold, enter the identity authentication process; After authentication, all connected devices that pass the authentication become potential target connected devices; If there are multiple devices that have passed the verification, they are sorted from high to low according to the dynamic matching scores, and the connectable device with the highest score is selected as the final target connection device; If there is only one device that passes the authentication, then that device is the target connection device.
7. The low-power Bluetooth device connection matching detection system according to claim 6, characterized in that: The process of judging the stability of connection matching by regularly checking signal strength and communication quality information is as follows: The Bluetooth device periodically starts the signal strength detection procedure according to the preset detection cycle; Read the signal strength indicator value between the current and connected device through the radio frequency module of the Bluetooth device; In each detection cycle, the amount of data sent by the Bluetooth device is recorded; according to the detection cycle T, the data transmission time is calculated; the data transmission speed is calculated according to the amount of data sent and the transmission time; During the data transmission process, the error checking mechanism in the Bluetooth protocol is used to count the amount of data transmitted with errors during the detection period, and the error rate is calculated based on the total amount of data transmitted during the detection period. The communication quality information is obtained by comprehensive calculation based on the signal strength indicator value and the error rate; The communication quality information and the signal strength indicator value are comprehensively calculated to obtain a matching detection value; Compare the current match detection value with the threshold; If the match detection value is greater than the threshold, the connection match is determined to be stable; If the match detection value is less than the threshold, the connection match is determined to be unstable.
Citation Information
Patent Citations
Bluetooth earphone automatic pairing method and device for multi-terminal switching
CN119402935A