Method and device for detecting and improving stability of SparkLink and Bluetooth signals
Through autonomous encryption pairing and signal stability analysis, smart devices can automatically identify and stably switch between StarFlash and Bluetooth protocols, solving the problem of unstable connection between devices with multiple protocols and improving signal quality and user experience.
Patent Information
- Application Number
- CN202510495295.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2025-04-21
- Publication Date
- 2025-08-01
- Estimated Expiration
- 2045-04-21
AI Technical Summary
Existing technologies are inadequate in terms of automatic switching and signal stability between multi-protocol smart devices, resulting in manual operation by users and unstable signals, which affects the user experience.
Through autonomous encryption pairing, RSSI threshold setting, signal filtering analysis, and dynamic adjustment, the system enables smart devices to automatically identify and stably connect between StarFlash and Bluetooth protocols. It also uses wavelet transform and empirical mode decomposition to evaluate signal stability and optimizes signal quality through low-pass filtering.
It enables intelligent devices to automatically identify and stably switch between multiple protocols, improving the quality and reliability of signal connections, reducing interruptions, and enhancing user experience and device flexibility.
Smart Images

Figure CN120034886B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of electronic device communication, and specifically relates to a method and device for detecting and improving the stability of XingShan and Bluetooth signals. Background Art
[0002] With the popularization of intelligent devices, especially various intelligent devices supporting wireless communication gradually becoming a part of daily life and work, the interconnection between devices has become an important requirement. Existing technologies mainly design connection solutions for a single wireless communication protocol, and usually need to establish a communication connection between the device and the host through a pairing method. However, with the increasingly complex connection requirements between devices, many intelligent devices need to support multiple wireless communication protocols and be able to automatically switch to connect to the host with the strongest signal according to the actual situation, so as to improve the user experience and the usage efficiency of the device. Although existing technologies provide relatively perfect solutions for the connection of a single protocol, there are still certain technical challenges in supporting multi-protocol automatic switching connections.
[0003] The existing technologies have the following deficiencies:
[0004] The existing wireless communication technologies mainly focus on the application of a single protocol, such as Bluetooth or Wi-Fi, and the switching between the device and the host is usually manually controlled by the user. For intelligent devices that support multiple protocols such as XingShan and Bluetooth, when switching between multiple devices, most lack an automated mechanism, resulting in the need for manual operation when the user uses different devices and unable to achieve fast and seamless switching. In addition, the existing wireless communication technologies usually only rely on a fixed signal strength threshold to determine whether to switch the connection, ignoring the volatility and stability of the signal reception strength, resulting in the device connection being prone to interruption or instability in the case of unstable signals, thus affecting the user experience. Therefore, how to achieve automatic recognition and switching connection of intelligent devices between multiple communication protocols and ensure the stability and efficiency of the connection is still a difficult point in the current technology. Summary of the Invention
[0005] The purpose of the present invention is to provide a method and device for detecting and improving the stability of XingShan and Bluetooth signals to solve the problems in the above background.
[0006] The purpose of the present invention can be achieved through the following technical solutions:
[0007] A method for detecting and improving the stability of XingShan and Bluetooth signals includes the following steps:
[0008] S1: The intelligent device performs autonomous encrypted pairing with the XingShan host and the Bluetooth host;
[0009] S2: Set the RSSI disconnection threshold and the RSSI reconnection threshold based on the connection status of the RSSI set by the host;
[0010] The RSSI is the signal reception strength;
[0011] S3: Filter the received signal, and analyze the stability of the signal reception strength according to the fluctuation degree of the received RSSI value of the signal;
[0012] S4: Based on the analysis result, improve the signal stability for the signal reception of the unstable host;
[0013] S5: Dynamically allocate the reconnection of the intelligent device;
[0014] S6: In the low-power state, if it is detected that the signal reception strength of the host exceeds the reconnection threshold, actively initiate a connection request to the host.
[0015] As a further solution of the present invention: The intelligent device performs autonomous encrypted pairing with the SparkLink host and the Bluetooth host, specifically including:
[0016] Device discovery: The intelligent device searches for and identifies pairable objects;
[0017] Identity authentication: Verify the identity by means of a password or PIN code;
[0018] Key exchange: Generate and exchange encryption keys to ensure communication security;
[0019] Connection establishment: After completing the pairing, establish a stable connection between the devices.
[0020] As a further solution of the present invention: Analyzing the stability of the signal reception strength specifically includes:
[0021] Obtain the fluctuation amplitude value of the signal reception strength, and calculate the signal amplitude abnormal fluctuation coefficient according to the fluctuation amplitude of the signal reception strength, which is used to evaluate whether the fluctuation of the signal reception strength is abnormal;
[0022] Obtain the signal smoothness of the signal reception strength, and calculate the signal smoothness abnormal coefficient according to the smoothness of the signal change, which is used to evaluate the continuity of the signal change over time;
[0023] Perform normalization calculation processing on the signal amplitude abnormal fluctuation coefficient and the signal smoothness abnormal coefficient, calculate the signal reception quality coefficient, and judge whether the signal smoothness abnormal coefficient is greater than or equal to the preset threshold. If so, it means that the signal reception strength is stable; if not, it means that the signal reception strength is unstable.
[0024] As a further solution of the present invention: The process of obtaining the signal amplitude abnormal fluctuation coefficient is:
[0025] Obtain the signal reception strength sequence between the intelligent device and the host, and perform wavelet transform decomposition to extract the low-frequency and high-frequency components of the signal;
[0026] Perform multi-layer decomposition on the signal reception strength sequence through discrete wavelet transform to obtain the approximation coefficients and detail coefficients of the signal. The calculation expression is: ;
[0027] Among them, represents the approximation coefficient of the th layer, represents the detail coefficient of the th layer, represents the number of layers of wavelet transform;
[0028] Based on the detail coefficients after wavelet transform, calculate the fluctuation amplitude of the signal amplitude fluctuation signal. The calculation expression is: ;
[0029] In the formula, represents the fluctuation amplitude of the th layer signal, represents the number of signal samplings, represents the total number of signal samplings, represents the average value of the detail coefficients;
[0030] By comparing the fluctuation amplitude of the current signal with the expected value of the historical fluctuation amplitude, calculate the signal amplitude abnormal fluctuation coefficient. The calculation expression is: ;
[0031] The number, represents the signal amplitude abnormal fluctuation coefficient, represents the mean value of the historical signal amplitude fluctuation.
[0032] As a further solution of the present invention: The process of obtaining the signal stability degree abnormal coefficient is:
[0033] Obtain the signal reception strength sequence, and use empirical mode decomposition to decompose the signal into multiple intrinsic mode functions;
[0034] Decompose the signal into several intrinsic mode functions with different frequencies and a residual term. The decomposition formula is: ;
[0035] Among them, represents the obtained signal, represents the number of intrinsic mode functions, is a positive integer greater than 0, represents the total number of intrinsic mode functions, represents the An intrinsic mode function, is the residual term, indicating the signal acquisition time point;
[0036] Calculate the fluctuation amplitude of each intrinsic mode function. The calculation expression is: ;
[0037] In the formula, represents the fluctuation amplitude of the th intrinsic mode function, represents the sampling point, is a positive integer greater than 0, represents the total number of sampling points, represents the mean value of the th intrinsic mode function, represents the th sampling point and the th intrinsic mode function;
[0038] Calculate the stationarity measure of the signal. The calculation expression is: ;
[0039] In the formula, represents the stationarity measure of the signal;
[0040] Calculate the ratio of the stationarity measure of the current signal to that of the historical signal to obtain the signal stationarity anomaly coefficient, denoted as .
[0041] As a further solution of the present invention: Based on the analysis results, for the signal reception of unstable hosts, signal stability improvement is carried out, specifically including:
[0042] Real-time receive the signal strength data from unstable hosts and record the signal values at each moment;
[0043] Calculate the change amount of the signal strength at the current moment and the previous moment. The calculation expression is: ;
[0044] In the formula, represents the signal acquisition time point, represents the change amount, represents the signal strength at the current moment, represents the signal strength at the previous moment;
[0045] Compare the change amount with a preset threshold and dynamically adjust the filtering coefficient ;
[0046] Judge whether the change amount is greater than the preset threshold. If so, reduce the filtering coefficient If not, increase the filtering coefficient. ;
[0047] Based on the dynamically adjusted filtering coefficient , perform first-order low-pass filtering on the received signal, and the calculation expression is: ;
[0048] In the formula, represents the filtered signal strength at the current moment, represents the filtered signal strength at the previous moment;
[0049] Output the filtered signal strength for subsequent signal processing.
[0050] As a further solution of the present invention: The dynamic allocation of the reconnection of the smart device specifically includes:
[0051] Determine the maximum value of the received signal strength RSSI value in the unconnected hosts as the first eigenvalue, and use the corresponding host as the first host;
[0052] Determine the minimum value of the received signal strength RSSI value in the connected hosts as the second eigenvalue, and use the corresponding host as the second host;
[0053] When the first eigenvalue exceeds the second eigenvalue, switch the first host to connected and the second host to unconnected.
[0054] The signal stability detection and enhancement device for SparkLink and Bluetooth includes:
[0055] The pairing management module, which enables the smart device to perform autonomous encrypted pairing with the SparkLink host and the Bluetooth host;
[0056] The RSSI threshold management module, which sets the RSSI disconnection threshold and the RSSI reconnection threshold based on the connection status of the RSSI set by the host;
[0057] The signal monitoring module, which filters the received signal, analyzes the fluctuation degree of the received RSSI value, and evaluates the stability of the signal reception strength;
[0058] The signal optimization module, which, based on the analysis results provided by the signal monitoring module, applies the filtering algorithm signal enhancement technology to improve the signal stability for the unstable host signals;
[0059] The connection decision module, which dynamically allocates the reconnection of the smart device;
[0060] A low-power management module. If the low-power management module detects that the signal reception strength of a certain host exceeds its RSSI reconnection threshold, it actively initiates a connection request to the host and re-establishes the connection.
[0061] Advantages of the present invention:
[0062] (1) In the detection and improvement of the stability of SparkLink and Bluetooth signals proposed in this application, the intelligent device supports pairing and connecting with SparkLink hosts and Bluetooth hosts of multiple different wireless communication protocols, and simultaneously broadcasts / receives SparkLink and Bluetooth broadcast data. By obtaining the signal reception strength RSSI values of all paired hosts in real time and comprehensively judging them with their RSSI disconnection thresholds and RSSI reconnection thresholds respectively, the intelligent device automatically identifies and switches the communication connections between the intelligent device and multiple SparkLink hosts and Bluetooth hosts. Compared with intelligent devices of a single wireless communication protocol that cannot connect and switch between multiple wireless communication protocol hosts and need to purchase multiple intelligent devices of a single wireless communication protocol to pair and connect to hosts of different wireless communication protocols respectively, the user usage cost is reduced, and the usage flexibility of the intelligent device and the user experience are improved.
[0063] (2) In-depth analysis and optimization of the stability of the signal reception strength, thereby improving the quality and reliability of the communication connection between the intelligent device and the host. The intelligent device obtains the signal reception strength RSSI values of all hosts in real time, and analyzes the stability of the signal reception strength through a series of complex calculation and evaluation methods. By accurately measuring the fluctuation amplitude of the signal reception strength, decomposing the low-frequency and high-frequency components of the signal using wavelet transform, calculating the signal amplitude abnormal fluctuation coefficient, and evaluating whether the fluctuation of the signal reception strength is abnormal. Using empirical mode decomposition technology to decompose the signal into multiple intrinsic mode functions, calculating the fluctuation amplitude of each function and comprehensively obtaining the signal smoothness measure, thereby obtaining the signal smoothness abnormal coefficient. These detailed analyses help the intelligent device accurately identify changes in signal quality and timely discover potential unstable factors. Based on the analysis results, for unstable signals detected, the intelligent device can dynamically adjust the filtering coefficient and perform first-order low-pass filtering on the received signal, effectively smoothing the change in signal strength and improving the signal stability. This method not only improves the signal reception quality, reduces connection interruptions or instability caused by signal fluctuations, but also enhances the adaptability of the intelligent device in complex environments. In addition, this continuous monitoring and optimization mechanism for the stability of the signal reception strength enables the intelligent device to maintain high-quality communication while more efficiently managing the switching operations between different hosts. Even in an environment where the signal conditions change rapidly or vary, it can ensure the continuity and stability of the connection, greatly improving the user experience. Therefore, from the perspective of the stability of the signal reception strength, the present invention not only solves the problem of automatic identification and switching between multi-protocol intelligent devices, but also provides strong support in ensuring communication quality. Brief Description of the Drawings
[0064] The present invention will be further described below in conjunction with the accompanying drawings.
[0065] Figure 1 is a specific step flow block diagram of the method for detecting and improving the stability of XingShan and Bluetooth signals of the present invention;
[0066] Figure 2 is a flow block diagram of the device for detecting and improving the stability of XingShan and Bluetooth signals in the present invention. Detailed Embodiments
[0067] The technical solutions in the embodiments of the present invention will be clearly and completely described below 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 the embodiments. All other embodiments obtained by those of ordinary skill in the art based on the embodiments of the present invention without creative efforts shall fall within the protection scope of the present invention.
[0068] Please refer to Figure 1 As shown, the present invention is a method and device for detecting and improving the stability of XingShan and Bluetooth signals, including the following steps:
[0069] S1: The intelligent device performs autonomous encrypted pairing with the XingShan host and the Bluetooth host;
[0070] S2: Based on the connection situation of the RSSI set by the host, set the RSSI disconnection threshold and the RSSI reconnection threshold;
[0071] The RSSI is the signal reception strength;
[0072] S3: Filter the received signal, and analyze the stability of the signal reception strength according to the fluctuation degree of the received signal reception strength RSSI value;
[0073] S4: Based on the analysis result, improve the signal stability for the signal reception of the unstable host;
[0074] S5: Dynamically allocate the reconnection of the intelligent device;
[0075] S6: When the intelligent device is in the low-power wake-up state, receive the heartbeat broadcast data sent by all hosts at irregular intervals. If it detects that the signal reception strength RSSI value of a certain host exceeds the corresponding reconnection threshold, it actively initiates a connection request to the corresponding host;
[0076] The heartbeat broadcast data refers to a signal regularly sent between the intelligent device and the host to maintain the connection state.
[0077] In S1, device discovery: the smart device searches for and identifies pairable objects;
[0078] Authentication: Verify your identity through a password or PIN code;
[0079] Key exchange: Generate and exchange encryption keys to ensure communication security;
[0080] Connection establishment: After pairing is completed, a stable connection is established between the devices.
[0081] In S2, based on the RSSI connection status set by the host, the RSSI disconnection threshold and RSSI reconnection threshold are set. The RSSI disconnection threshold refers to the signal strength indication value last received when the connection between the smart device and the host is disconnected; the RSSI reconnection threshold refers to the signal strength indication value received when the smart device is reconnected to the host. By judging and analyzing the signal reception strength RSSI value when the smart device is connected to the host, the connection status of the smart device and the host is determined.
[0082] In S3, the received signal is filtered and the stability of the signal reception strength is analyzed based on the fluctuation of the received signal reception strength RSSI value, which specifically includes:
[0083] Obtain the fluctuation amplitude value of the signal reception strength, and calculate the signal amplitude abnormal fluctuation coefficient based on the fluctuation amplitude of the signal reception strength to evaluate whether the fluctuation of the signal reception strength is abnormal;
[0084] Obtain the signal smoothness of the signal receiving strength, and calculate the signal smoothness anomaly coefficient based on the smoothness of the signal change to evaluate the continuity of the signal change over time;
[0085] The signal amplitude abnormal fluctuation coefficient and the signal stability abnormal coefficient are normalized and calculated to calculate the quality coefficient of signal reception, and it is determined whether the signal stability abnormal coefficient is greater than or equal to the preset threshold. If so, it means that the signal reception strength is stable; if not, it means that the signal reception strength is unstable.
[0086] The process of obtaining the abnormal fluctuation coefficient of the signal amplitude is as follows:
[0087] Obtain the signal reception strength sequence between the smart device and the host, and perform wavelet transform decomposition to extract the low-frequency and high-frequency components of the signal;
[0088] The signal reception strength sequence is decomposed into multiple layers by discrete wavelet transform to obtain the approximate coefficient and detail coefficient of the signal. The calculation expression is: ;
[0089] in, Indicates the Approximation coefficients of the layer, denote detail coefficients of the layer, denote the number of layers of wavelet transform;
[0090] Based on the detail coefficients after wavelet transform, calculate the fluctuation amplitude of the signal amplitude fluctuation signal, and the calculation expression is: ;
[0091] In the formula, denote the fluctuation amplitude of the layer signal, denote the number of signal samplings, denote the total number of signal samplings, denote the average value of the detail coefficients;
[0092] By comparing the fluctuation amplitude of the current signal with the expected value of the historical fluctuation amplitude, calculate the abnormal fluctuation coefficient of the signal amplitude, and the calculation expression is: ;
[0093] number, denote the abnormal fluctuation coefficient of the signal amplitude, denote the mean value of the historical signal amplitude fluctuation;
[0094] The process of obtaining the abnormal coefficient of signal smoothness is as follows:
[0095] Obtain the signal reception strength sequence, and use empirical mode decomposition to decompose the signal into multiple intrinsic mode functions;
[0096] Decompose the signal into several intrinsic mode functions with different frequencies and a residual term, and the decomposition formula is: ;
[0097] Among them, denote the obtained signal, denote the number of intrinsic mode functions, is a positive integer greater than 0, denote the total number of intrinsic mode functions, denote the th intrinsic mode function, is the residual term, denote the signal acquisition time point;
[0098] Calculate the fluctuation amplitude of each intrinsic mode function, and the calculation expression is: ;
[0099] In the formula, denote the th fluctuation amplitude of the intrinsic mode function, denote the sampling point, is a positive integer greater than 0, represents the total number of sampling points, represents the mean of the th intrinsic mode function, represents the th sampling point and the th intrinsic mode function;
[0100] Calculate the stationarity measure of the signal, and the calculation expression is: ;
[0101] In the formula, represents the stationarity measure of the signal;
[0102] Calculate the ratio of the stationarity measure of the current signal to that of the historical signal to obtain the signal stationarity anomaly coefficient, denoted as ,
[0103] The calculation expression of the quality coefficient is: ;
[0104] In the formula, represents the quality coefficient, and are preset proportionality coefficients, and and are both greater than 0, represents the signal amplitude abnormal fluctuation coefficient, represents the signal stationarity anomaly coefficient.
[0105] In S4, based on the analysis results, for the signal reception of unstable hosts, signal stability improvement is performed, specifically including:
[0106] Real-time receive the signal strength data from the unstable host and record the signal value at each moment;
[0107] Calculate the change amount of the signal strength at the current moment and the previous moment, and the calculation expression is: ;
[0108] In the formula, represents the signal acquisition time point, represents the change amount, represents the signal strength at the current moment, represents the signal strength at the previous moment;
[0109] According to the change amount compare with the preset threshold and dynamically adjust the filtering coefficient ;
[0110] Judge whether the change amount is greater than the preset threshold. If so, reduce the filtering coefficient , if not, increase the filtering coefficient ;
[0111] According to the dynamically adjusted filtering coefficient , perform first-order low-pass filtering on the received signal, and the calculation expression is: ;
[0112] In the formula, represents the filtered signal strength at the current moment, represents the filtered signal strength at the previous moment;
[0113] Output the filtered signal strength for subsequent signal processing.
[0114] In S5, perform dynamic allocation on the reconnection of the intelligent device, specifically including:
[0115] Determine the maximum value of the received signal strength RSSI value among the unconnected hosts as the first eigenvalue, and use the corresponding host as the first host;
[0116] Determine the minimum value of the received signal strength RSSI value among the connected hosts as the second eigenvalue, and use the corresponding host as the second host;
[0117] When the first eigenvalue exceeds the second eigenvalue, switch the first host to connected and the second host to unconnected.
[0118] It should be noted that: in the low-power wake-up state, the intelligent device receives the XingShan and Bluetooth broadcast data sent by all hosts at irregular intervals. After determining that the host is a paired host, obtain the received signal strength RSSI values of all hosts and judge them respectively with their corresponding RSSI reconnection thresholds. The intelligent device determines that the host with a received signal strength RSSI value greater than its RSSI reconnection threshold is a connected host, and actively sends a connection instruction to establish a XingShan or Bluetooth connection with the host; when the intelligent device determines that the received signal strength RSSI values of all hosts are less than their corresponding RSSI reconnection thresholds, the intelligent device continues to enter the low-power wake-up state.
[0119] Please refer to Figure 2 shown, the XingShan and Bluetooth signal stability detection and improvement device includes:
[0120] A pairing management module that enables the intelligent device to perform autonomous encrypted pairing with XingShan hosts and Bluetooth hosts;
[0121] An RSSI threshold management module that sets the RSSI disconnection threshold and the RSSI reconnection threshold based on the connection status of the RSSI set by the host;
[0122] A signal monitoring module, which filters the received signal, analyzes the fluctuation degree of the received RSSI value, and evaluates the stability of the signal reception strength;
[0123] A signal optimization module, which, based on the analysis results provided by the signal monitoring module, applies filtering algorithm signal enhancement technology to improve the signal stability for unstable host signals;
[0124] A connection decision module, which dynamically allocates the reconnection of intelligent devices;
[0125] A low-power management module, which, if it detects that the signal reception strength of a certain host exceeds its RSSI reconnection threshold, actively initiates a connection request to that host to re-establish the connection.
[0126] The working principle of the present invention: The present invention enables intelligent devices to be compatible with both the NearLink and Bluetooth wireless communication protocols, and pairs and connects with multiple hosts (at least one NearLink host and one Bluetooth host) by broadcasting data packets of both protocols simultaneously. The intelligent device not only obtains and saves the RSSI disconnection threshold and reconnection threshold of each host, but also, while maintaining a connection with a certain host, real-time monitors the signal reception strength (RSSI value) of all hosts, and judges whether an adaptive switching connection between hosts is needed by analyzing these values. When the intelligent device detects that the signal strength of the currently connected host weakens and there is a stronger signal from another host, it automatically disconnects from the current host and establishes a new connection with the host component with the strongest signal. In addition, in the low-power wake-up state, the intelligent device can also receive heartbeat broadcast data from all hosts and decide whether to actively initiate a connection request according to the signal strength, so as to achieve seamless switching connection, improving the user experience and the flexibility of device use. This method is particularly suitable for intelligent electronic devices such as keyboards that need to frequently switch between different devices, realizing efficient communication connection across protocols.
[0127] 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 real situation. The preset parameters in the formulas are set by those skilled in the art according to the actual situation.
[0128] The above embodiments can be implemented in whole or in part by software, hardware, firmware, or any combination thereof. When implemented using software, the above embodiments can be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions or computer programs. When the computer instructions or computer programs are loaded or executed on a computer, the processes or functions described in the embodiments of the present application are generated in whole or in part. The computer can be a general-purpose computer, a special-purpose computer, a computer network, or other programmable devices. The computer instructions can be stored in a computer-readable storage medium or transmitted from one computer-readable storage medium to another. For example, the computer instructions can be transmitted from one website, computer, server, or data center to another website, computer, server, or data center in a wired or wireless (such as infrared, wireless, microwave, etc.) manner. The computer-readable storage medium can be any available medium that can be accessed by a computer or a data storage device such as a server or data center that contains one or more collections of available media. The available medium can be a magnetic medium (such as a floppy disk, hard disk, or magnetic tape), an optical medium (such as a DVD), or a semiconductor medium. The semiconductor medium can be a solid-state drive.
[0129] It should be understood that the term "and / or" in this document is merely a description of the association relationship between associated objects, indicating that there can be three relationships. For example, A and / or B can represent: A exists alone, A and B exist simultaneously, and B exists alone. Here, A and B can be singular or plural.
[0130] In addition, the character " / " in this document generally represents an "or" relationship between the associated objects before and after, but it may also represent an "and / or" relationship. The specific meaning can be understood by referring to the context before and after.
[0131] It should be understood that in various embodiments of the present application, the magnitudes of the sequence numbers of the above processes do not mean the order of execution. The order of execution of each process should be determined by its function and internal logic, and should not constitute any limitation to the implementation process of the embodiments of the present application.
[0132] The above has described in detail one embodiment of the present invention, but the content described is only a preferred embodiment of the present invention and cannot be considered as limiting the scope of implementation of the present invention. Any equivalent changes and improvements made within the scope of the application of the present invention should still fall within the scope covered by the patent of the present invention.
Claims
1. A method for detecting and improving the stability of SparkLink and Bluetooth signals, characterized in that, Including the following steps: S1: The smart device performs autonomous encrypted pairing with the SparkLink host and the Bluetooth host; S2: Based on the connection status of the RSSI set by the host, set the RSSI disconnection threshold and the RSSI reconnection threshold; The RSSI is the signal reception strength; S3: Filter the received signal, and analyze the stability of the signal reception strength according to the fluctuation degree of the received RSSI value of the signal; S4: Based on the analysis result, for the signal reception of unstable hosts, improve the signal stability, specifically including: Real-time receive the signal strength data from the unstable host and record the signal value at each moment; Calculate the change in signal strength between the current moment and the previous moment. The calculation expression is as follows: ; Wherein, represents the signal acquisition time point, represents the change amount, represents the signal intensity at the current moment, represents the signal intensity at the previous moment; According to the change amount Compare with a preset threshold value and dynamically adjust the filtering coefficient ; Determine the change amount and check if it is greater than a preset threshold. If so, decrease the filtering coefficient , otherwise, increase the filtering coefficient ; According to the dynamically adjusted filtering coefficient , perform first-order low-pass filtering on the received signal, and the calculation expression is: ; In the formula, represents the filtered signal strength at the current moment, represents the filtered signal strength at the previous moment; Output the filtered signal strength for subsequent signal processing; S5: Dynamically allocate the reconnection of the smart device; S6: In the low-power state, if it is detected that the signal reception strength of the host exceeds the reconnection threshold, actively initiate a connection request to the host.
2. The method for detecting and improving the stability of SparkLink and Bluetooth signals according to claim 1, wherein The smart device performs autonomous encrypted pairing with the SparkLink host and the Bluetooth host, specifically including: Device discovery: The smart device searches for and identifies pairable objects; Authentication: Verify the identity by means of a password or PIN code; Key exchange: Generate and exchange encryption keys to ensure communication security; Connection establishment: After pairing is completed, a stable connection is established between the devices.
3. The method for detecting and improving the stability of SparkLink and Bluetooth signals according to claim 1, wherein, The analysis of the stability of the signal reception strength specifically includes: Obtain the fluctuation amplitude value of the signal reception strength, and calculate the signal amplitude abnormal fluctuation coefficient according to the fluctuation amplitude of the signal reception strength, which is used to evaluate whether the fluctuation of the signal reception strength is abnormal; Obtain the signal smoothness of the signal reception strength, and calculate the signal smoothness abnormal coefficient according to the smoothness of the signal change, which is used to evaluate the continuity of the signal change over time; Perform a normalization calculation process on the signal amplitude abnormal fluctuation coefficient and the signal smoothness abnormal coefficient, calculate the signal reception quality coefficient, and judge whether the signal smoothness abnormal coefficient is greater than or equal to the preset threshold. If so, it means that the signal reception strength is stable; if not, it means that the signal reception strength is unstable.
4. The method for detecting and improving the stability of SparkLink and Bluetooth signals according to claim 3, wherein, The process of obtaining the signal amplitude abnormal fluctuation coefficient is: Obtain the signal reception strength sequence between the smart device and the host, and perform wavelet transform decomposition to extract the low-frequency and high-frequency components of the signal; Perform multi-level decomposition on the signal reception strength sequence through discrete wavelet transform to obtain the approximation coefficients and detail coefficients of the signal. The calculation expression is as follows: ; Among them, represents the approximation coefficient of the th layer, represents the detail coefficient of the th layer, represents the number of layers of wavelet transform; Based on the detail coefficients after wavelet transform, calculate the fluctuation amplitude of the signal amplitude fluctuation signal, and the calculation expression is: ; In the formula, represents the fluctuation amplitude of the layer signal, represents the number of signal samplings, represents the total number of signal samplings, represents the average value of the detail coefficients; By comparing the fluctuation amplitude of the current signal with the expected value of the historical fluctuation amplitude, calculate the abnormal fluctuation coefficient of the signal amplitude. The calculation formula is as follows: ; A number, represents the abnormal fluctuation coefficient of the signal amplitude, represents the mean value of the historical signal amplitude fluctuations.
5. The method for detecting and improving the stability of SparkLink and Bluetooth signals according to claim 3, wherein The process of obtaining the signal smoothness abnormal coefficient is: Obtain the signal reception strength sequence, and use empirical mode decomposition to decompose the signal into multiple intrinsic mode functions; Decompose the signal into a number of intrinsic mode functions with different frequencies and a residual term, and the decomposition formula is: ; Among them, represents the acquired signal, represents the number of intrinsic mode functions, is a positive integer greater than 0, represents the total number of intrinsic mode functions, represents the th intrinsic mode function, is the residual term, represents the signal acquisition time point; Calculate the fluctuation amplitude of each intrinsic mode function, and the calculation expression is as follows: ; In the formula, represents the fluctuation amplitude of the th intrinsic mode function, represents the sampling point, is a positive integer greater than 0, represents the total number of sampling points, represents the mean value of the th intrinsic mode function, represents the th sampling point and the th intrinsic mode function; Calculate the stationarity measure of the signal, and the calculation expression is: ; In the formula, represents the stationarity measure of the signal; Calculate the ratio of the stationarity measure of the current signal to the stationarity measure of the historical signal to obtain the signal stationarity anomaly coefficient, denoted as .
6. The method for detecting and improving the stability of SparkLink and Bluetooth signals according to claim 1, wherein The dynamic allocation of the reconnection of the smart device specifically includes: Determine the maximum value of the RSSI value of the signal reception strength among the unconnected hosts as the first eigenvalue, and use the corresponding host as the first host; Determine the minimum value of the RSSI value of the signal reception strength among the connected hosts as the second eigenvalue, and use the corresponding host as the second host; When the first eigenvalue exceeds the second eigenvalue, switch the first host to connected and the second host to unconnected.
7. A device for detecting and improving the stability of SparkLink and Bluetooth signals, characterized in that, For executing the SparkLink and Bluetooth signal stability detection and improvement method as described in any one of claims 1-6, including: A pairing management module, which enables the smart device to perform autonomous encrypted pairing with the SparkLink host and the Bluetooth host; The RSSI threshold management module sets the RSSI disconnection threshold and the RSSI reconnection threshold based on the connection status of the RSSI set by the host; The signal monitoring module filters the received signals, analyzes the fluctuation degree of the received RSSI value, and evaluates the stability of the signal reception intensity; The signal optimization module, based on the analysis results provided by the signal monitoring module, applies the filtering algorithm signal enhancement technology to improve the signal stability for unstable host signals; The connection decision module dynamically allocates the reconnection of intelligent devices; The low-power management module, if it detects that the signal reception intensity of a certain host exceeds its RSSI reconnection threshold, actively initiates a connection request to that host to re-establish the connection.
Citation Information
Patent Citations
Equipment connection method, electronic equipment and computer readable storage medium
CN119545578A
Low-power-consumption Bluetooth device connection matching detection system and method
CN119854966A