Equipment pairing authentication method, device and system based on radio frequency RSSI (Received Signal Strength Indicator)

By using the wireless radio frequency RSSI device pairing authentication method, and leveraging RSSI values ​​and encrypted challenge response procedures, the security and cost issues of device pairing are resolved. This enables fast and secure pairing of devices in close-range scenarios, ensuring connection stability and signal quality.

CN121284573APending Publication Date: 2026-01-06SHENZHEN ZHONGLINENG TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202511281800.X
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-09-09
Publication Date
2026-01-06

AI Technical Summary

Technical Problem

Existing device pairing methods, such as password-based pairing, have high risks of being forgotten or cracked. NFC-based pairing requires additional hardware modules, increasing costs and complexity, and lacks reliable pairing authentication methods in close-range scenarios.

Method used

By utilizing the Received Signal Strength Index (RSSI) of wireless radio frequency signals, and periodically broadcasting wireless radio frequency signals carrying device identification information, the RSSI values ​​of surrounding devices are measured. A proximity threshold range is set, and the difference is compared and an encrypted challenge response process is implemented to achieve reliable device pairing.

Benefits of technology

It enables fast and secure pairing of devices in close-range scenarios, reduces device costs, improves connection stability and signal quality, and requires no additional hardware modules, making it easy to operate.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN121284573A_ABST
    Figure CN121284573A_ABST
Patent Text Reader

Abstract

The invention discloses an equipment pairing authentication method, device and system based on radio frequency RSSI. The method comprises the following steps: periodically broadcasting a first radio frequency signal according to a first period parameter; measuring wireless radio frequency signals received by the first equipment from surrounding paired equipment to obtain at least one wireless radio frequency signal, and obtaining an RSSI value corresponding to each wireless radio frequency signal to obtain at least one RSSI value; detecting whether the first RSSI value is in a preset close-range RSSI threshold range or not; when the first RSSI value is in a preset close-range RSSI threshold range, analyzing the second wireless radio frequency signal to obtain a second RSSI value; according to the method and the device, the difference value between the first RSSI value and the second RSSI value is determined, when the difference value is within the preset range, the first device and the second device are subjected to pairing operation, and reliable device pairing authentication can be realized in a close-range scene based on the RSSI index.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the fields of database and data processing technology, and specifically to a device pairing authentication method, apparatus and system based on radio frequency RSSI. Background Technology

[0002] With the rapid development of communication technology, in today's wireless communication era, the number of various wireless devices such as smartphones, tablets, smart wearables, and smart home devices has exploded. These devices often need to be paired and connected to achieve functions such as data transmission and collaborative work. Traditional device pairing methods, such as password-based pairing, have problems such as passwords being easy to forget and having a high risk of being cracked. Although NFC (Near Field Communication)-based pairing is convenient, it requires the device to be equipped with an NFC hardware module, increasing the device cost and complexity.

[0003] In short-range device pairing scenarios, such as pairing a new smart light bulb with a smart home gateway in a home environment, or pairing a wireless keyboard with a laptop in an office environment, a convenient yet secure pairing authentication method is needed. Wireless radio frequency signals are widely present in various wireless devices, and RSSI, as an indicator of received signal strength, can reflect the distance between devices. How to utilize this characteristic to achieve reliable device pairing authentication in short-range scenarios has become an urgent problem to be solved. Summary of the Invention

[0004] This invention provides a device pairing authentication method, apparatus, and system based on radio frequency RSSI, which can achieve reliable device pairing authentication in close-range scenarios based on RSSI indicators.

[0005] In a first aspect, embodiments of the present invention provide a device pairing and authentication method based on radio frequency RSSI, applied to a first device, the method comprising:

[0006] A first wireless radio frequency signal is broadcast periodically according to a first periodic parameter, and the first wireless radio frequency signal carries the first identification information of the first device.

[0007] Measure the wireless radio frequency signals received by the first device from the surrounding pairable devices to obtain at least one wireless radio frequency signal, and obtain the RSSI value corresponding to each wireless radio frequency signal to obtain at least one RSSI value;

[0008] Detect whether the first RSSI value is within a preset near-field RSSI threshold range; the first RSSI value is one of the at least one RSSI values, and the first RSSI value corresponds to the second device;

[0009] When the first RSSI value is within the preset near-range RSSI threshold range, the second radio frequency signal is parsed to obtain the second RSSI value. The second RSSI value is the RSSI value of the first device measured by the second device after receiving the first radio frequency signal. The second radio frequency signal is the radio frequency signal corresponding to the second device among the at least one radio frequency signal.

[0010] Determine the difference between the first RSSI value and the second RSSI value, and detect whether the difference is within a preset range;

[0011] When the difference is within the preset range, the first device and the second device are paired.

[0012] Secondly, embodiments of the present invention provide a device pairing authentication method based on radio frequency RSSI, applied to a second device, the method comprising:

[0013] The device receives a first radio frequency signal, which is periodically broadcast by the first device according to a first period parameter, and the first radio frequency signal carries the first identification information of the first device.

[0014] The RSSI value of the first device is measured to obtain a second RSSI value, and the second RSSI value and the second identification information of the second device are encapsulated in a second radio frequency signal.

[0015] The second wireless radio frequency signal is broadcast according to the second period parameters. After the second wireless radio frequency signal is received by the first device, the RSSI value of the second device is measured to obtain the first RSSI value. The first RSSI value is then checked to see if it is within a preset near-field RSSI threshold range. When the first RSSI value is within the preset near-field RSSI threshold range, the second wireless radio frequency signal is parsed to obtain the second RSSI value. The difference between the first RSSI value and the second RSSI value is determined, and the difference is checked to see if it is within a preset range. When the difference is within the preset range, the first device and the second device are paired.

[0016] Thirdly, embodiments of the present invention provide a device pairing and authentication device based on radio frequency RSSI, applied to a first device, the device comprising:

[0017] The broadcasting unit is used to periodically broadcast a first wireless radio frequency signal according to a first period parameter, wherein the first wireless radio frequency signal carries the first identification information of the first device;

[0018] The measurement unit is used to measure the wireless radio frequency signals received by the first device from the surrounding pairable devices, obtain at least one wireless radio frequency signal, acquire the RSSI value corresponding to each wireless radio frequency signal, and obtain at least one RSSI value.

[0019] A detection unit is used to detect whether a first RSSI value is within a preset near-field RSSI threshold range; the first RSSI value is one of the at least one RSSI values, and the first RSSI value corresponds to a second device;

[0020] The parsing unit is used to parse the second radio frequency signal to obtain the second RSSI value when the first RSSI value is within the preset near-range RSSI threshold range. The second RSSI value is the RSSI value of the first device measured by the second device after receiving the first radio frequency signal. The second radio frequency signal is the radio frequency signal corresponding to the second device among the at least one radio frequency signal.

[0021] A determining unit is configured to determine the difference between the first RSSI value and the second RSSI value, and detect whether the difference is within a preset range;

[0022] A pairing unit is used to pair the first device with the second device when the difference is within the preset range.

[0023] Fourthly, embodiments of the present invention provide a device pairing and authentication device based on radio frequency RSSI, applied to a second device, the device comprising:

[0024] The receiving unit is configured to receive a first wireless radio frequency signal, which is periodically broadcast by the first device according to a first period parameter, and the first wireless radio frequency signal carries the first identification information of the first device.

[0025] An encapsulation unit is used to measure the RSSI value of the first device, obtain a second RSSI value, and encapsulate the second RSSI value and the second identification information of the second device into a second radio frequency signal.

[0026] The broadcast unit is configured to broadcast the second wireless radio frequency signal according to the second period parameters, and after receiving the second wireless radio frequency signal through the first device, measure the RSSI value of the second device to obtain a first RSSI value, and detect whether the first RSSI value is within a preset near-field RSSI threshold range; when the first RSSI value is within the preset near-field RSSI threshold range, parse the second wireless radio frequency signal to obtain the second RSSI value, determine the difference between the first RSSI value and the second RSSI value, and detect whether the difference is within a preset range; when the difference is within the preset range, perform a pairing operation between the first device and the second device.

[0027] Fifthly, embodiments of the present invention provide a first device, including a processor, a memory, a communication interface, and one or more programs, wherein the one or more programs are stored in the memory and configured to be executed by the processor, and the programs include instructions for performing the steps in the first aspect of the present invention.

[0028] In a sixth aspect, embodiments of the present invention provide a second device, including a processor, a memory, a communication interface, and one or more programs, wherein the one or more programs are stored in the memory and configured to be executed by the processor, and the programs include instructions for performing the steps in the second aspect of the present invention.

[0029] In a seventh aspect, embodiments of the present invention provide a device pairing and authentication system based on radio frequency RSSI, the device pairing and authentication system based on radio frequency RSSI including a first device as described in the fifth aspect and a second device as described in the sixth aspect.

[0030] Eighthly, embodiments of the present invention provide a computer-readable storage medium storing a computer program for electronic data interchange, wherein the computer program causes a computer to perform some or all of the steps described in the first or second aspect of the embodiments of the present invention.

[0031] In a ninth aspect, embodiments of the present invention provide a computer program product, wherein the computer program product includes a non-transitory computer-readable storage medium storing a computer program operable to cause a computer to perform some or all of the steps described in the first or second aspect of the embodiments of the present invention. The computer program product may be a software installation package.

[0032] Implementing the embodiments of the present invention has the following beneficial effects:

[0033] As can be seen, in this embodiment of the invention, the device is applied to a first device, which periodically broadcasts a first wireless radio frequency signal according to a first period parameter. The first wireless radio frequency signal carries the first identification information of the first device. The device measures the wireless radio frequency signals received by itself from surrounding pairable devices to obtain at least one wireless radio frequency signal. The device obtains the RSSI value corresponding to each wireless radio frequency signal to obtain at least one RSSI value. The device detects whether the first RSSI value is within a preset near-field RSSI threshold range. The first RSSI value is one of the at least one RSSI values, and the first RSSI value corresponds to a second device. The first RSSI value is within the preset near-field RSSI threshold range. If the range is within the specified range, it is initially determined that the second device is in a close-range pairing state. The second wireless radio frequency signal is analyzed to obtain the second RSSI value. The second RSSI value is the RSSI value of the first device measured by the second device after receiving the first wireless radio frequency signal. The second wireless radio frequency signal is the wireless radio frequency signal corresponding to the second device among at least one wireless radio frequency signal. The difference between the first RSSI value and the second RSSI value is determined, and it is detected whether the difference is within a preset range. If the difference is within the preset range, the close range and signal consistency of the second device are further confirmed. In this way, the pairing operation of the first device and the second device can ensure the stability of the subsequent device connection and the connection signal quality. Attached Figure Description

[0034] To more clearly illustrate the technical solutions in the embodiments of the present invention or the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.

[0035] Figure 1 This is a schematic diagram of the system architecture of a device pairing and authentication system based on radio frequency RSSI provided in an embodiment of the present invention;

[0036] Figure 2 This is a schematic diagram of the first process of a device pairing and authentication method based on radio frequency RSSI provided in an embodiment of the present invention;

[0037] Figure 3 This is a schematic diagram of the second process of a device pairing and authentication method based on radio frequency RSSI provided in an embodiment of the present invention;

[0038] Figure 4 This is a schematic diagram of the structure of a first device provided in an embodiment of the present invention;

[0039] Figure 5 This is a schematic diagram of the structure of a second device provided in an embodiment of the present invention;

[0040] Figure 6 This is a block diagram of the first functional unit of a device pairing and authentication device based on radio frequency RSSI provided in an embodiment of the present invention;

[0041] Figure 7 This is a block diagram of the second functional unit of a device pairing and authentication device based on radio frequency RSSI provided in an embodiment of the present invention. Detailed Implementation

[0042] To enable those skilled in the art to better understand the present invention, the technical solutions of the present invention will be clearly and completely described below with reference to the accompanying drawings of the embodiments of the present invention. Obviously, the described embodiments are only some embodiments of the present invention, and not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of the present invention.

[0043] The terms "first," "second," etc., used in the specification, claims, and accompanying drawings of this invention are used to distinguish different objects, not to describe a specific order. Furthermore, the terms "comprising" and "having," and any variations thereof, are intended to cover non-exclusive inclusion. For example, a process, method, system, product, or apparatus that includes a series of steps or units is not limited to the listed steps or units, but may optionally include steps or units not listed, or may optionally include other steps or units inherent to these processes, methods, products, or apparatuses.

[0044] In this document, the term "embodiment" means that a particular feature, structure, or characteristic described in connection with an embodiment may be included in at least one embodiment of the invention. The appearance of this phrase in various places throughout the specification does not necessarily refer to the same embodiment, nor is it a separate or alternative embodiment mutually exclusive with other embodiments. It will be explicitly and implicitly understood by those skilled in the art that the embodiments described herein can be combined with other embodiments.

[0045] The embodiments of the present invention will be described in detail below.

[0046] Please see Figure 1 , Figure 1 This is a schematic diagram of the system architecture of a device pairing and authentication system based on radio frequency RSSI provided in an embodiment of the present invention. The device pairing and authentication system based on radio frequency RSSI includes a device that initiates pairing and at least one pairable device.

[0047] The pairing initiating device described in this embodiment of the invention can be a computer device with communication capabilities. This pairing initiating device may include smartphones (such as Android phones, iOS phones, Windows Phones, etc.), smart wireless earphones (such as Bluetooth earphones, NFC earphones), tablet computers, PDAs, dashcams, laptops, mobile internet devices (MIDs), or wearable devices (such as smartwatches), etc. The above are merely examples, not exhaustive, and include, but are not limited to, the pairing initiating devices described above. The pairing initiating device may also include a server, such as a cloud server. The pairing initiating device may include a first device.

[0048] The pairable device described in this embodiment of the invention can be a computer device with communication capabilities. This pairable device may include smartphones (such as Android phones, iOS phones, Windows Phones, etc.), smart wireless earphones (such as Bluetooth earphones, NFC earphones), tablet computers, PDAs, dashcams, laptops, mobile internet devices (MIDs), or wearable devices (such as smartwatches), etc. The above are merely examples and not exhaustive, including but not limited to the pairable devices described above. The pairable device may also include a server, such as a cloud server. The pairable device may include a second device.

[0049] The pairing consists of an initiating device (referred to as the initiating device) and at least one pairable device (referred to as the target device). For example, the initiating device transmits and receives radio frequency signals via an antenna to perform RSSI measurements and data exchange with nearby target devices. The target device is also equipped with an antenna to receive signals from the initiating device and broadcast its own relevant information.

[0050] This invention provides a device pairing and authentication system based on radio frequency RSSI, which aims to solve the problems of insufficient security, high cost or complicated operation of existing device pairing methods. It utilizes the RSSI value of radio frequency signals to achieve fast and secure device pairing and authentication in close-range scenarios.

[0051] Furthermore, the first device based on the wireless radio frequency RSSI-based device pairing authentication system can achieve the following functions:

[0052] A first wireless radio frequency signal is periodically broadcast according to a first periodic parameter, and the first wireless radio frequency signal carries the first identification information of the initiating device;

[0053] Measure the wireless radio frequency signals received by the first device from the surrounding pairable devices to obtain at least one wireless radio frequency signal, and obtain the RSSI value corresponding to each wireless radio frequency signal to obtain at least one RSSI value;

[0054] Detect whether the first RSSI value is within a preset near-field RSSI threshold range; the first RSSI value is one of the at least one RSSI values, and the first RSSI value corresponds to the second device;

[0055] When the first RSSI value is within the preset near-range RSSI threshold range, the second radio frequency signal is parsed to obtain the second RSSI value. The second RSSI value is the RSSI value of the first device measured by the second device after receiving the first radio frequency signal. The second radio frequency signal is the radio frequency signal corresponding to the second device among the at least one radio frequency signal.

[0056] Determine the difference between the first RSSI value and the second RSSI value, and detect whether the difference is within a preset range;

[0057] When the difference is within the preset range, the first device and the second device are paired.

[0058] The first device periodically broadcasts a first wireless radio frequency signal according to a first period parameter. The first wireless radio frequency signal carries the first identification information of the first device. It measures the wireless radio frequency signals received by the first device from surrounding pairable devices to obtain at least one wireless radio frequency signal. It obtains the RSSI value corresponding to each wireless radio frequency signal to obtain at least one RSSI value. It checks whether the first RSSI value is within a preset near-range RSSI threshold range. The first RSSI value is one of the at least one RSSI values, and the first RSSI value corresponds to the second device. When the first RSSI value is within the preset near-range RSSI threshold range, it is initially determined that the second device is in a near-range pairable state. The second wireless radio frequency signal is parsed to obtain the second RSSI value. The second RSSI value is the RSSI value measured by the second device after receiving the first wireless radio frequency signal. The second wireless radio frequency signal is the wireless radio frequency signal corresponding to the second device among the at least one wireless radio frequency signal. The difference between the first RSSI value and the second RSSI value is determined, and it is checked whether the difference is within a preset range. When the difference is within the preset range, the near-range and signal consistency of the second device are further confirmed. In this way, pairing the first device and the second device can ensure the stability of subsequent device connections and the quality of connection signals.

[0059] For example, this device pairing and authentication system based on RSSI (Radio Frequency Identification) uses energy detection based on the device's private radio frequency for pairing and authentication. Specifically, it can include the following stages: device preparation stage, RSSI measurement and broadcast stage, RSSI threshold setting and matching stage, and pairing request and authentication process stage, as detailed below:

[0060] For the equipment preparation phase, specifically, assume one product is the initiating device A, and another product is the target device B. Both have wireless radio frequency signal transmission and reception capabilities as well as RSSI measurement functions.

[0061] Specifically, during the RSSI measurement and broadcasting phase, after device A enables its RF pairing function, it periodically sends a wireless broadcast signal carrying its own device address and simultaneously measures the RSSI values ​​of signals received from surrounding devices. When device B is powered on and in a pairable state, it receives the broadcast signal from device A, measures the RSSI value of the signal, encapsulates its own device address and the measured RSSI value in RF broadcast data, and broadcasts it at 1-second intervals.

[0062] Regarding RSSI threshold setting and matching, in stage A, the pre-set near-range RSSI threshold range is [-60dBm, -40dBm]. When device A receives broadcast data from device B, it checks whether the RSSI value falls within this range. Assume the RSSI value broadcast by device B is -50dBm, which is within the threshold range. Simultaneously, device A compares its own measured RSSI value for device B's signal (assumed to be -48dBm) with the RSSI value broadcast by device B. The difference is 2dBm, within a reasonable error range, preliminarily confirming device B as a nearby pairable device.

[0063] Specifically, in the pairing request and authentication process, device A sends a pairing request message to device B. This message contains a randomly generated 16-bit numeric string as a challenge, which is encrypted using the AES encryption algorithm. Upon receiving the pairing request, device B decrypts the encrypted challenge using its built-in AES decryption algorithm, then re-encrypts the decrypted numeric string using the same AES encryption algorithm, and returns the encrypted result to device A. Device A decrypts the returned encrypted result using a preset key. If the decrypted numeric string matches the initially sent challenge, authentication of device B is complete, and a private protocol pairing connection is established. Device A can then begin transmitting audio data to device B. If they do not match, pairing fails, and device A continues searching for other pairable devices B.

[0064] To illustrate further, in a multi-device pairing application scenario, the wireless radio frequency (RF) sends a pairing request message to device A, containing encrypted challenge information, according to a certain order of device identification (such as device serial numbers from smallest to largest, or within a single physical data packet). After device A completes the authentication process, it then sends pairing request messages to devices B, C, etc., and completes authentication. Ultimately, devices B and C, etc., successfully establish wireless connections with device A and join the paired network. Users can then control and manage them via a mobile app.

[0065] Please see Figure 2 , Figure 2 This is a flowchart illustrating a device pairing and authentication method based on radio frequency RSSI provided in an embodiment of the present invention. As shown in the figure, applied to a first device, this device pairing and authentication method based on radio frequency RSSI includes:

[0066] S201. A first wireless radio frequency signal is periodically broadcast according to a first periodic parameter, wherein the first wireless radio frequency signal carries the first identification information of the first device.

[0067] The first cycle parameter can be preset or set by the system default. For example, the first cycle parameter can include 1s, 0.1s, 0.01s, 2s, etc., and there is no limitation here.

[0068] The first identification information can be used to uniquely identify the first device. The first identification information may include at least one of the following: physical address (MAC address), universally unique identifier (UUID), international mobile equipment identity (IMEI), integrated circuit card identity (ICCID), etc., without limitation.

[0069] In a specific implementation, the first device can periodically broadcast a first wireless radio frequency signal according to a first periodic parameter. The first wireless radio frequency signal carries the first identification information of the first device, and thus, a pairing operation can be initiated.

[0070] The first device may include a wireless communication module, which may include at least one of the following: NFC communication module, Bluetooth communication module, infrared communication module, visible light communication module, millimeter wave communication module, mobile communication module (such as 4G, 5G, 6G, etc.), Wi-Fi communication module, etc., without limitation.

[0071] S202. Measure the wireless radio frequency signals received by the first device from the surrounding pairable devices to obtain at least one wireless radio frequency signal, obtain the RSSI value corresponding to each wireless radio frequency signal, and obtain at least one RSSI value.

[0072] The first device can measure the wireless radio frequency signals received by the first device from the surrounding pairable devices to obtain at least one wireless radio frequency signal, obtain the RSSI value corresponding to each wireless radio frequency signal, and obtain at least one RSSI value. The RSSI value characterizes the signal strength to a certain extent, or it can also reflect the distance between the devices from the side.

[0073] S203. Detect whether the first RSSI value is within a preset near-field RSSI threshold range; the first RSSI value is one of the at least one RSSI values, and the first RSSI value corresponds to the second device.

[0074] The preset near-field RSSI threshold range can be set in advance or set by system default.

[0075] The second device may include a wireless communication module, which may include at least one of the following: NFC communication module, Bluetooth communication module, infrared communication module, visible light communication module, millimeter wave communication module, mobile communication module (such as 4G, 5G, 6G, etc.), Wi-Fi communication module, etc., without limitation.

[0076] In a specific implementation, for example, the first RSSI value includes a RSSI values, the second device includes a pairable devices, and there is a one-to-one correspondence between the a RSSI values ​​and the a pairable devices, where a is a positive integer.

[0077] In specific implementation, the first device can detect whether the first RSSI value is within a preset near-distance RSSI threshold range. The first RSSI value is one of at least one RSSI value, and the first RSSI value corresponds to the second device. That is, it detects whether the pairable devices meet the near-distance judgment condition. If so, it means that the distance between the two devices is relatively close. In this case, if pairing is achieved, the stability of the device connection and the quality of the connection signal can be guaranteed. Conversely, it means that the distance between the two devices is relatively far. In this case, if pairing is achieved, the stability of the device connection and the quality of the connection signal cannot be guaranteed.

[0078] S204. When the first RSSI value is within the preset near-range RSSI threshold range, the second radio frequency signal is parsed to obtain the second RSSI value. The second RSSI value is the RSSI value of the first device measured by the second device after receiving the first radio frequency signal. The second radio frequency signal is the radio frequency signal corresponding to the second device among the at least one radio frequency signal.

[0079] In specific implementation, when the first RSSI value is within the preset near-range RSSI threshold range, that is, if it is within the range, it is initially determined that the second device is in a near-range pairing state, which means that the distance between the two devices is relatively close. In this case, if pairing is achieved, the stability of the device connection and the quality of the connection signal can be guaranteed. The second wireless radio frequency signal is analyzed to obtain the second RSSI value. The second RSSI value is the RSSI value of the first device measured by the second device after receiving the first wireless radio frequency signal. The second wireless radio frequency signal is the wireless radio frequency signal corresponding to the second device among at least one wireless radio frequency signal.

[0080] The second radio frequency signal includes not only the second RSSI value, but may also include the second identification information of the second device. The second identification information can be used to uniquely identify the second device. The second identification information may include at least one of the following: physical address (MAC address), universal unique identifier, international mobile equipment identifier, integrated circuit card identifier, etc., without limitation.

[0081] S205. Determine the difference between the first RSSI value and the second RSSI value, and detect whether the difference is within a preset range.

[0082] In specific implementation, the first device can determine the difference between the first RSSI value and the second RSSI value, where the difference = first RSSI value - second RSSI value. It can then detect whether the difference is within a preset range. That is, the first device compares the RSSI value of the signal of the second device that it measures with the RSSI value broadcast by the second device. If the difference is within a reasonable error range (e.g., ±3dBm), it can further confirm the close-range and signal consistency of the second device. In this way, the stability of subsequent device connections and the quality of connection signals can be guaranteed.

[0083] S206. When the difference is within the preset range, pair the first device with the second device.

[0084] The preset range can be set in advance or set by system default.

[0085] In practice, when the difference is within a preset range, the first device compares the RSSI value of the signal of the second device measured by itself with the RSSI value broadcast by the second device. If the difference is within a reasonable error range (e.g., ±3dBm), the proximity and signal consistency of the second device are further confirmed. This ensures the stability of subsequent device connections and the quality of connection signals. Then, the first device and the second device are paired to ensure the stability of the paired connection and the quality of connection signals.

[0086] As can be seen, in this embodiment of the invention, the device is applied to a first device, which periodically broadcasts a first wireless radio frequency signal according to a first period parameter. The first wireless radio frequency signal carries the first identification information of the first device. The device measures the wireless radio frequency signals received by itself from surrounding pairable devices to obtain at least one wireless radio frequency signal. The device obtains the RSSI value corresponding to each wireless radio frequency signal to obtain at least one RSSI value. The device detects whether the first RSSI value is within a preset near-field RSSI threshold range. The first RSSI value is one of the at least one RSSI values, and the first RSSI value corresponds to a second device. The first RSSI value is within the preset near-field RSSI threshold range. If the range is within the specified range, it is initially determined that the second device is in a close-range pairing state. The second wireless radio frequency signal is analyzed to obtain the second RSSI value. The second RSSI value is the RSSI value of the first device measured by the second device after receiving the first wireless radio frequency signal. The second wireless radio frequency signal is the wireless radio frequency signal corresponding to the second device among at least one wireless radio frequency signal. The difference between the first RSSI value and the second RSSI value is determined, and it is detected whether the difference is within a preset range. If the difference is within the preset range, the close range and signal consistency of the second device are further confirmed. In this way, the pairing operation of the first device and the second device can ensure the stability of the subsequent device connection and the connection signal quality.

[0087] Optionally, the above steps, pairing the first device with the second device, can be implemented in the following manner:

[0088] A pairing request message is sent to the second device, the pairing request message carrying challenge information; the second device encrypts the challenge information using its own encryption algorithm to obtain a first encryption result, and sends the first encryption result to the first device;

[0089] The first encryption result is decrypted using a decryption algorithm to obtain the first decryption result;

[0090] When the first decryption result meets the preset conditions, the first device and the second device are paired and connected.

[0091] The preset conditions can be set in advance or set by system default.

[0092] Both the encryption and decryption algorithms can be preset or set to system defaults. The challenge information can include a random number, or it can include an already encrypted random number.

[0093] In a specific implementation, the first device can send a pairing request message to the second device. The pairing request message carries challenge information. The second device uses its own encryption algorithm to encrypt the challenge information to obtain a first encryption result, and sends the first encryption result to the first device. Then, the first encryption result is decrypted using a decryption algorithm to obtain a first decryption result. When the first decryption result meets a preset condition, it is checked whether the first decryption result (such as the decrypted number string) is consistent with the challenge information initially sent. If they are consistent, the preset condition is met, and the first device and the second device are paired and connected.

[0094] Optionally, the following steps may also be included:

[0095] If the first decryption result does not meet the preset conditions, the second device is discarded.

[0096] In practice, if the first decryption result does not meet the preset conditions, it means that the pairing requirements between the first device and the second device are not met. In this case, the second device can be discarded, and other pairable devices can be selected for pairing, thereby ensuring pairing security.

[0097] For example, the solution in this embodiment of the invention can be divided into three stages: the first stage is RSSI measurement and broadcasting on the device side; the second stage is RSSI threshold setting and matching; and the third stage is pairing request and authentication process.

[0098] In the first phase, regarding RSSI measurement and broadcasting at the device side, specifically, the device initiating pairing (hereinafter referred to as the initiating device) periodically sends a wireless radio frequency signal carrying its own device identifier (such as MAC address, UUID, etc.), and simultaneously measures the RSSI value of the wireless radio frequency signals it receives from surrounding pairable devices (hereinafter referred to as target devices). After receiving the signal from the initiating device, the target device also measures the RSSI value of the received signal, and encapsulates its own device identifier and the measured RSSI value in broadcast data, which is then periodically broadcast.

[0099] Regarding the second stage, RSSI threshold setting and matching, specifically, a near-range RSSI threshold range is pre-set on the initiating device. When the initiating device receives broadcast data from the target device, it first checks whether the target device's RSSI value is within the preset threshold range. If it is within the range, it initially determines that the target device is in a near-range pairable state. Simultaneously, the initiating device compares its own measured RSSI value for the target device's signal with the RSSI value broadcast by the target device. If the difference is within a reasonable error range (e.g., ±3dBm), it further confirms the near-range and signal consistency of the target device.

[0100] Regarding the third stage, the pairing request and authentication process, specifically, after initial screening and comparison of RSSI values, the initiating device sends a pairing request message to the target device that meets the criteria. This message contains encrypted challenge information (such as a randomly generated string of numbers). Upon receiving the pairing request, the target device encrypts the challenge information using its own encryption algorithm and returns the encrypted result to the initiating device. The initiating device uses a preset decryption algorithm to decrypt the returned encrypted result. If the decrypted result matches the expectation, authentication of the target device is completed, and a pairing connection is established between the two parties; otherwise, pairing fails, and the target device is discarded.

[0101] To illustrate further, in a scenario with multiple target devices, the initiating device can process the broadcast data received from each target device according to the steps described above. For multiple target devices that meet the RSSI criteria, the initiating device can sequentially perform pairing requests and authentication operations according to a certain order of device identifiers (such as MAC addresses from smallest to largest) until pairing with the required number of target devices is completed; or, based on the user's selection on the initiating device, it can selectively perform pairing operations on specific target devices.

[0102] In this embodiment of the invention, firstly, by using dual verification of RSSI values ​​and an encrypted challenge-response authentication process, the risk of unauthorized devices pairing over long distances through forged signals is effectively prevented, improving the security of device pairing and ensuring high security. Secondly, no additional hardware modules are required; the wireless device's built-in wireless radio frequency transceiver function and RSSI measurement function are utilized, reducing device costs and making it suitable for pairing scenarios of various low-cost wireless devices. Thirdly, in close-range scenarios, users do not need to manually enter complex passwords or perform other cumbersome operations; simply bringing the device close automatically completes the pairing authentication process, improving user experience and making operation convenient. Finally, it is applicable to device pairing using various wireless communication protocols (such as Bluetooth, Wi-Fi, etc.) and can handle complex scenarios of multiple devices pairing simultaneously, exhibiting strong versatility and flexibility.

[0103] Please see Figure 3 , Figure 3 This is a flowchart illustrating a device pairing and authentication method based on radio frequency RSSI provided in an embodiment of the present invention. As shown in the figure, applied to a second device, this device pairing and authentication method based on radio frequency RSSI includes:

[0104] S301. Receive a first wireless radio frequency signal, the first wireless radio frequency signal is periodically broadcast by the first device according to a first period parameter, and the first wireless radio frequency signal carries the first identification information of the first device.

[0105] The second device may include a wireless communication module, which may include at least one of the following: NFC communication module, Bluetooth communication module, infrared communication module, visible light communication module, millimeter wave communication module, mobile communication module (such as 4G, 5G, 6G, etc.), Wi-Fi communication module, etc., without limitation.

[0106] The first cycle parameter can be preset or set by the system default. For example, the first cycle parameter can include 1s, 0.1s, 0.01s, 2s, etc., and there is no limitation here.

[0107] The first identification information can be used to uniquely identify the first device. The first identification information may include at least one of the following: physical address (MAC address), universal unique identifier, international mobile equipment identifier, integrated circuit card identifier, etc., without limitation.

[0108] In a specific implementation, the second device can receive the first wireless radio frequency signal, which is periodically broadcast by the first device according to the first period parameters. The first wireless radio frequency signal carries the first identification information of the first device, that is, the second device can respond to the pairing operation.

[0109] The first device may include a wireless communication module, which may include at least one of the following: NFC communication module, Bluetooth communication module, infrared communication module, visible light communication module, millimeter wave communication module, mobile communication module (such as 4G, 5G, 6G, etc.), Wi-Fi communication module, etc., without limitation.

[0110] S302. Measure the RSSI value of the first device to obtain the second RSSI value, and encapsulate the second RSSI value and the second identification information of the second device into the second radio frequency signal.

[0111] The second radio frequency signal includes not only the second RSSI value, but may also include the second identification information of the second device. The second identification information can be used to uniquely identify the second device. The second identification information may include at least one of the following: physical address (MAC address), universal unique identifier, international mobile equipment identifier, integrated circuit card identifier, etc., without limitation.

[0112] In practice, the second device can measure the RSSI value of the first device to obtain a second RSSI value. The second RSSI value and the second identification information of the second device are encapsulated in the second radio frequency signal so that the first device can compare the RSSI value of the signal of the second device that it measures with the RSSI value broadcast by the second device. If the difference between the two is within a reasonable error range (e.g., ±3dBm), the close range and signal consistency of the second device can be further confirmed. In this way, the connection stability and connection signal quality of subsequent devices can be guaranteed.

[0113] S303. Broadcast the second wireless radio frequency signal according to the second period parameters, and after receiving the second wireless radio frequency signal through the first device, measure the RSSI value of the second device to obtain the first RSSI value, and detect whether the first RSSI value is within a preset near-field RSSI threshold range; when the first RSSI value is within the preset near-field RSSI threshold range, parse the second wireless radio frequency signal to obtain the second RSSI value, determine the difference between the first RSSI value and the second RSSI value, and detect whether the difference is within a preset range; when the difference is within the preset range, perform a pairing operation between the first device and the second device.

[0114] The second cycle parameter can be preset or set by the system default. For example, the second cycle parameter can include 1s, 0.1s, 0.01s, 2s, etc., and there is no limitation here. The first cycle parameter and the second cycle parameter can be the same or different.

[0115] In specific implementation, the second device can broadcast the second wireless radio frequency signal according to the second period parameters. After receiving the second wireless radio frequency signal, the first device measures the RSSI value of the second device to obtain the first RSSI value. It then checks whether the first RSSI value is within a preset near-range RSSI threshold range. If the first RSSI value is within the preset near-range RSSI threshold range, the second wireless radio frequency signal is parsed to obtain the second RSSI value. The difference between the first RSSI value and the second RSSI value is determined, and the difference is checked whether it is within a preset range. If the difference is within the preset range, the near-range and signal consistency of the second device are further confirmed. In this way, pairing the first device with the second device can ensure the stability of subsequent device connections and the quality of connection signals.

[0116] Optionally, the following steps may also be included:

[0117] Receive a pairing request message sent by the first device, the pairing request message carrying challenge information;

[0118] The challenge information is encrypted using its own encryption algorithm to obtain a first encryption result, which is then sent to the first device. The first device uses a decryption algorithm to decrypt the first encryption result to obtain a first decryption result. When the first decryption result meets a preset condition, the first device and the second device are paired and connected.

[0119] The preset conditions can be set in advance or set by system default.

[0120] In a specific implementation, the second device can receive a pairing request message sent by the first device. The pairing request message carries challenge information. The second device then uses its own encryption algorithm to encrypt the challenge information to obtain a first encryption result. The first encryption result is then sent to the first device. The first device uses a decryption algorithm to decrypt the first encryption result to obtain a first decryption result. When the first decryption result meets preset conditions, the first device and the second device are paired and connected.

[0121] For example, the solution in this embodiment of the invention can be divided into three stages: the first stage is RSSI measurement and broadcasting on the device side; the second stage is RSSI threshold setting and matching; and the third stage is pairing request and authentication process.

[0122] In the first phase, regarding RSSI measurement and broadcasting at the device side, specifically, the device initiating pairing (hereinafter referred to as the initiating device) periodically sends a wireless radio frequency signal carrying its own device identifier (such as MAC address, UUID, etc.), and simultaneously measures the RSSI value of the wireless radio frequency signals it receives from surrounding pairable devices (hereinafter referred to as target devices). After receiving the signal from the initiating device, the target device also measures the RSSI value of the received signal, and encapsulates its own device identifier and the measured RSSI value in broadcast data, which is then periodically broadcast.

[0123] Regarding the second stage, RSSI threshold setting and matching, specifically, a near-range RSSI threshold range is pre-set on the initiating device. When the initiating device receives broadcast data from the target device, it first checks whether the target device's RSSI value is within the preset threshold range. If it is within the range, it initially determines that the target device is in a near-range pairable state. Simultaneously, the initiating device compares its own measured RSSI value for the target device's signal with the RSSI value broadcast by the target device. If the difference is within a reasonable error range (e.g., ±3dBm), it further confirms the near-range and signal consistency of the target device.

[0124] Regarding the third stage, the pairing request and authentication process, specifically, after initial screening and comparison of RSSI values, the initiating device sends a pairing request message to the target device that meets the criteria. This message contains encrypted challenge information (such as a randomly generated string of numbers). Upon receiving the pairing request, the target device encrypts the challenge information using its own encryption algorithm and returns the encrypted result to the initiating device. The initiating device uses a preset decryption algorithm to decrypt the returned encrypted result. If the decrypted result matches the expectation, authentication of the target device is completed, and a pairing connection is established between the two parties; otherwise, pairing fails, and the target device is discarded.

[0125] To illustrate further, in a scenario with multiple target devices, the initiating device can process the broadcast data received from each target device according to the steps described above. For multiple target devices that meet the RSSI criteria, the initiating device can sequentially perform pairing requests and authentication operations according to a certain order of device identifiers (such as MAC addresses from smallest to largest) until pairing with the required number of target devices is completed; or, based on the user's selection on the initiating device, it can selectively perform pairing operations on specific target devices.

[0126] In this embodiment of the invention, firstly, by using dual verification of RSSI values ​​and an encrypted challenge-response authentication process, the risk of unauthorized devices pairing over long distances through forged signals is effectively prevented, improving the security of device pairing and ensuring high security. Secondly, no additional hardware modules are required; the wireless device's built-in wireless radio frequency transceiver function and RSSI measurement function are utilized, reducing device costs and making it suitable for pairing scenarios of various low-cost wireless devices. Thirdly, in close-range scenarios, users do not need to manually enter complex passwords or perform other cumbersome operations; simply bringing the device close automatically completes the pairing authentication process, improving user experience and making operation convenient. Finally, it is applicable to device pairing using various wireless communication protocols (such as Bluetooth, Wi-Fi, etc.) and can handle complex scenarios of multiple devices pairing simultaneously, exhibiting strong versatility and flexibility.

[0127] Please see Figure 4 , Figure 4 This is a schematic diagram of the structure of a first device provided in an embodiment of the present invention. The first device may include a processor, a memory, a communication interface, and one or more programs. The processor, memory, and communication interface can be interconnected via a bus. The one or more programs are stored in the memory and configured to be executed by the processor. The programs include methods for performing the methods provided in the above embodiments. Figure 2 Instructions for some or all of the steps of the device pairing and authentication method based on radio frequency RSSI, as shown.

[0128] Please see Figure 5 , Figure 5 This is a schematic diagram of the structure of a second device provided in an embodiment of the present invention. The second device may include a processor, a memory, a communication interface, and one or more programs. The processor, memory, and communication interface can be interconnected via a bus. The one or more programs are stored in the memory and configured to be executed by the processor. The programs include those for performing the methods provided in the above embodiments. Figure 3 Instructions for some or all of the steps of the device pairing and authentication method based on radio frequency RSSI, as shown.

[0129] Figure 6 This is a block diagram of the first functional unit of a device pairing and authentication device 600 based on radio frequency radio frequency (RSSI) according to an embodiment of the present invention. The device pairing and authentication device 600 based on RSSI is applied to a first device and includes:

[0130] The broadcasting unit 601 is used to periodically broadcast a first wireless radio frequency signal according to a first period parameter, wherein the first wireless radio frequency signal carries the first identification information of the first device.

[0131] The measurement unit 602 is used to measure the wireless radio frequency signals received by the first device itself from the surrounding pairable devices, obtain at least one wireless radio frequency signal, acquire the RSSI value corresponding to each wireless radio frequency signal, and obtain at least one RSSI value.

[0132] The detection unit 603 is used to detect whether the first RSSI value is within a preset near-field RSSI threshold range; the first RSSI value is one of the at least one RSSI values, and the first RSSI value corresponds to the second device;

[0133] The parsing unit 604 is used to parse the second radio frequency signal to obtain the second RSSI value when the first RSSI value is within the preset near-range RSSI threshold range. The second RSSI value is the RSSI value of the first device measured by the second device after receiving the first radio frequency signal. The second radio frequency signal is the radio frequency signal corresponding to the second device among the at least one radio frequency signal.

[0134] The determining unit 605 is used to determine the difference between the first RSSI value and the second RSSI value, and to detect whether the difference is within a preset range;

[0135] The pairing unit 606 is used to pair the first device with the second device when the difference is within the preset range.

[0136] It is understood that the functions of each program module of the device pairing and authentication device based on radio frequency RSSI in this embodiment can be specifically implemented according to the methods in the above method embodiments. The specific implementation process can be referred to the relevant descriptions in the above method embodiments, and will not be repeated here.

[0137] Figure 7 This is a block diagram of the second functional unit composition of a device pairing and authentication device 700 based on radio frequency radio frequency (RSSI) according to an embodiment of the present invention. The device pairing and authentication device 700 based on RSSI is applied to a second device and includes:

[0138] The receiving unit 701 is used to receive a first wireless radio frequency signal, which is periodically broadcast by the first device according to a first period parameter, and the first wireless radio frequency signal carries the first identification information of the first device.

[0139] The encapsulation unit 702 is used to measure the RSSI value of the first device, obtain a second RSSI value, and encapsulate the second RSSI value and the second identification information of the second device into a second radio frequency signal.

[0140] The broadcast unit 703 is configured to broadcast the second wireless radio frequency signal according to the second period parameters, and after receiving the second wireless radio frequency signal through the first device, measure the RSSI value of the second device to obtain a first RSSI value, and detect whether the first RSSI value is within a preset near-field RSSI threshold range; when the first RSSI value is within the preset near-field RSSI threshold range, parse the second wireless radio frequency signal to obtain the second RSSI value, determine the difference between the first RSSI value and the second RSSI value, and detect whether the difference is within a preset range; when the difference is within the preset range, perform a pairing operation between the first device and the second device.

[0141] It is understood that the functions of each program module of the device pairing and authentication device based on radio frequency RSSI in this embodiment can be specifically implemented according to the methods in the above method embodiments. The specific implementation process can be referred to the relevant descriptions in the above method embodiments, and will not be repeated here.

[0142] This invention also provides a device pairing and authentication system based on radio frequency RSSI, the device pairing and authentication device based on radio frequency RSSI including as follows Figure 6 The device pairing and authentication device based on radio frequency RSSI shown is as follows: Figure 7 The aforementioned device pairing and authentication device based on radio frequency RSSI is used to perform any of the above methods.

[0143] This invention also provides a computer storage medium storing a computer program for electronic data interchange, the computer program causing a computer to perform some or all of the steps of any of the methods described in the above method embodiments, wherein the computer includes a first device or a second device.

[0144] This invention also provides a computer program product, which includes a non-transitory computer-readable storage medium storing a computer program operable to cause a computer to perform some or all of the steps of any of the methods described in the above method embodiments. The computer program product may be a software installation package, and the computer may include a first device or a second device.

[0145] It should be noted that, for the sake of simplicity, the foregoing method embodiments are all described as a series of actions. However, those skilled in the art should understand that the present invention is not limited to the described order of actions, because according to the present invention, some steps can be performed in other orders or simultaneously. Furthermore, those skilled in the art should also understand that the embodiments described in the specification are preferred embodiments, and the actions and modules involved are not necessarily essential to the present invention.

[0146] In the above embodiments, the descriptions of each embodiment have different focuses. For parts not described in detail in a certain embodiment, please refer to the relevant descriptions in other embodiments.

[0147] In the several embodiments provided by this invention, it should be understood that the disclosed apparatus can be implemented in other ways. For example, the apparatus embodiments described above are merely illustrative; for instance, the division of the units described above is only a logical functional division, and in actual implementation, there may be other division methods. For example, multiple units or components may be combined or integrated into another system, or some features may be ignored or not executed. Furthermore, the coupling or direct coupling or communication connection shown or discussed may be through some interfaces; the indirect coupling or communication connection between devices or units may be electrical or other forms.

[0148] The units described above as separate components may or may not be physically separate. The components shown as units may or may not be physical units; that is, they may be located in one place or distributed across multiple network units. Some or all of the units can be selected to achieve the purpose of this embodiment according to actual needs.

[0149] Furthermore, the functional units in the various embodiments of the present invention can be integrated into one processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit. The integrated unit can be implemented in hardware or as a software functional unit.

[0150] If the aforementioned integrated units are implemented as software functional units and sold or used as independent products, they can be stored in a computer-readable storage device (CMD). Based on this understanding, the technical solution of this invention, in essence, or the part that contributes to the prior art, or all or part of the technical solution, can be embodied in the form of a software product. This computer software product is stored in a memory and includes several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) to execute all or part of the steps of the methods described in the various embodiments of this invention. The aforementioned memory includes various media capable of storing program code, such as USB flash drives, read-only memory (ROM), random access memory (RAM), portable hard drives, magnetic disks, or optical disks.

[0151] Those skilled in the art will understand that all or part of the steps in the various methods of the above embodiments can be implemented by a program instructing related hardware. The program can be stored in a computer-readable storage medium, which may include: flash drive, read-only memory (ROM), random access memory (RAM), disk or optical disk, etc.

[0152] The embodiments of the present invention have been described in detail above. Specific examples have been used to illustrate the principles and implementation methods of the present invention. The description of the above embodiments is only for the purpose of helping to understand the method and core ideas of the present invention. At the same time, for those skilled in the art, there will be changes in the specific implementation methods and application scope based on the ideas of the present invention. Therefore, the content of this specification should not be construed as a limitation of the present invention.

Claims

1. A device pairing and authentication method based on radio frequency RSSI, characterized in that, The method applied to a first device comprises: broadcasting a first wireless radio frequency signal periodically according to a first period parameter, the first wireless radio frequency signal carrying first identification information of the first device; measuring wireless radio frequency signals from surrounding pairable devices received by the first device itself to obtain at least one wireless radio frequency signal, obtaining an RSSI value corresponding to each wireless radio frequency signal to obtain at least one RSSI value; detecting whether a first RSSI value is in a preset close distance RSSI threshold range, the first RSSI value being one of the at least one RSSI value and corresponding to a second device; when the first RSSI value is in the preset close distance RSSI threshold range, analyzing a second wireless radio frequency signal to obtain a second RSSI value, the second RSSI value being an RSSI value of the first device measured by the second device after receiving the first wireless radio frequency signal, the second wireless radio frequency signal being a wireless radio frequency signal corresponding to the second device in the at least one wireless radio frequency signal; determining a difference value between the first RSSI value and the second RSSI value, and detecting whether the difference value is in a preset range; when the difference value is in the preset range, pairing the first device with the second device.

2. The method of claim 1, wherein, The pairing of the first device with the second device comprises: sending a pairing request message to the second device, the pairing request message carrying challenge information; using an encryption algorithm of the second device to encrypt the challenge information to obtain a first encryption result, and sending the first encryption result to the first device; decrypting the first encryption result using a decryption algorithm to obtain a first decryption result; when the first decryption result satisfies a preset condition, pairing and connecting the first device with the second device.

3. The method of claim 2, wherein, The method further comprises: when the first decryption result does not satisfy the preset condition, discarding the second device.

4. A wireless radio frequency RSSI based device pairing authentication method, characterized in that, The method applied to a second device comprises: receiving a first wireless radio frequency signal periodically broadcast by a first device according to a first period parameter, the first wireless radio frequency signal carrying first identification information of the first device; measuring an RSSI value of the first device to obtain a second RSSI value, and encapsulating the second RSSI value and second identification information of the second device in a second wireless radio frequency signal; broadcasting the second wireless radio frequency signal according to the second cycle parameter, and after receiving the second wireless radio frequency signal by the first device, measuring an RSSI value of the second device to obtain a first RSSI value, detecting whether the first RSSI value is in a preset close distance RSSI threshold range; when the first RSSI value is in the preset close distance RSSI threshold range, parsing the second wireless radio frequency signal to obtain a second RSSI value, determining a difference value between the first RSSI value and the second RSSI value, and detecting whether the difference value is in a preset range; when the difference value is in the preset range, performing a pairing operation on the first device and the second device.

5. The method of claim 4, wherein, The method further comprises: receiving a pairing request message sent by the first device, the pairing request message carrying challenge information; encrypting the challenge information by using an encryption algorithm of the second device to obtain a first encryption result, and sending the first encryption result to the first device, wherein the first encryption result is decrypted by the first device by using a decryption algorithm to obtain a first decryption result, and the first device and the second device are paired and connected when the first decryption result meets a preset condition.

6. A wireless radio signal strength indication (RSSI)-based device pairing authentication apparatus, comprising: The device applied to the first device comprises: a broadcasting unit configured to periodically broadcast a first wireless radio frequency signal according to a first cycle parameter, wherein the first wireless radio frequency signal carries first identification information of the first device; a measuring unit configured to measure wireless radio frequency signals from surrounding pairable devices received by the first device itself to obtain at least one wireless radio frequency signal, and obtain an RSSI value corresponding to each wireless radio frequency signal to obtain at least one RSSI value; a detecting unit configured to detect whether a first RSSI value is in a preset close distance RSSI threshold range, wherein the first RSSI value is one of the at least one RSSI value, and the first RSSI value corresponds to a second device; a parsing unit configured to, when the first RSSI value is in the preset close distance RSSI threshold range, parse a second wireless radio frequency signal to obtain a second RSSI value, wherein the second RSSI value is an RSSI value of the first device measured after the second device receives the first wireless radio frequency signal, and the second wireless radio frequency signal is a wireless radio frequency signal corresponding to the second device in the at least one wireless radio frequency signal; a determining unit configured to determine a difference value between the first RSSI value and the second RSSI value, and detect whether the difference value is in a preset range; a pairing unit configured to, when the difference value is in the preset range, perform a pairing operation on the first device and the second device.

7. A wireless radio frequency RSSI based device pairing authentication apparatus, characterized in that, The device applied to the second device comprises: a receiving unit configured to receive a first wireless radio frequency signal, wherein the first wireless radio frequency signal is periodically broadcast by the first device according to a first cycle parameter, and the first wireless radio frequency signal carries first identification information of the first device; a sending unit configured to send a pairing request message to the first device, wherein the pairing request message carries challenge information; an encapsulating unit configured to measure an RSSI value of the first device, obtain a second RSSI value, and encapsulate the second RSSI value and second identification information of the second device in a second wireless radio frequency signal; a broadcasting unit configured to broadcast the second wireless radio frequency signal according to a second period parameter, and after the first device receives the second wireless radio frequency signal, measure an RSSI value of the second device, obtain a first RSSI value, and detect whether the first RSSI value is within a preset close distance RSSI threshold range; when the first RSSI value is within the preset close distance RSSI threshold range, parse the second wireless radio frequency signal to obtain the second RSSI value, determine a difference value between the first RSSI value and the second RSSI value, and detect whether the difference value is within a preset range; and when the difference value is within the preset range, perform a pairing operation on the first device and the second device.

8. A first device, comprising: A computer program product including a processor and a memory storing one or more programs configured to be executed by the processor, the programs including instructions for performing steps in the method of any one of claims 1-3.

9. A second device, comprising: A computer program product including a processor and a memory storing one or more programs configured to be executed by the processor, the programs including instructions for performing steps in the method of claim 4 or 5.

10. A wireless radio frequency RSSI based device pairing authentication system, comprising: The wireless radio frequency RSSI-based device pairing authentication system includes the first device of claim 8 and the second device of claim 9.