A data collection verification method and system based on the Internet of Things

By generating an encryption function through distance testing between the smart lock and the gateway, and combining it with data collection from the cloud server and dynamic key verification, the cumbersome unlocking problem of smart locks when the user's fingerprint is abnormal or when carrying items makes fingerprint verification inconvenient is solved, thus achieving the convenience of contactless unlocking.

CN118351615BActive Publication Date: 2026-08-04GUANGDONG OPEN UNIV (GUANGDONG POLYTECHNIC VOCATIONAL COLLEGE)
View PDF 2 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
GUANGDONG OPEN UNIV (GUANGDONG POLYTECHNIC VOCATIONAL COLLEGE)
Filing Date
2024-05-23
Publication Date
2026-08-04

AI Technical Summary

Technical Problem

Existing smart locks are cumbersome to unlock when the user's fingerprint is abnormal or when carrying items that make fingerprint verification inconvenient, thus affecting the user experience.

Method used

By constructing an IoT local area network, distance testing is performed using smart locks and gateways to generate encryption functions. These encryption functions are then stored on cloud servers and smart locks. When a mobile device signal is detected, data is collected to generate a dynamic key, which is then sent to the mobile device for verification, thus achieving automated unlocking.

Benefits of technology

It improves the convenience of unlocking, solves the problem of cumbersome unlocking operations when users have abnormal fingerprints or carry items that are inconvenient for fingerprint verification, and achieves the convenience of contactless unlocking.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118351615B_ABST
    Figure CN118351615B_ABST
Patent Text Reader

Abstract

The application is suitable for the technical field of Internet of Things, and particularly relates to a data acquisition verification method and system based on Internet of Things, which comprises a cloud server, and the method comprises the following steps: constructing an Internet of Things local area network, determining an identity verification device in the Internet of Things local area network, and establishing a data connection; performing distance testing through an intelligent door lock and a gateway, constructing an encryption function, and storing the encryption function; when a mobile device signal is detected, acquiring data, and generating a dynamic key through the encryption function and the acquired data; sending the dynamic key to the mobile device, receiving an unlocking instruction, and verifying the dynamic key. The application detects a triggering action of the mobile device, acquires data of the Internet of Things device in the local area network when unlocking is needed, thereby constructing a dynamic key, and the intelligent door lock verifies the dynamic key, so that the effect of automatically opening the door lock is realized, and the convenience of unlocking is greatly improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention belongs to the field of Internet of Things (IoT) technology, and in particular relates to a data acquisition and verification method and system based on IoT. Background Technology

[0002] The Internet of Things (IoT) refers to the ubiquitous connectivity of devices and facilities, including sensors with "intrinsic intelligence," mobile terminals, industrial systems, building control systems, smart home devices, and video surveillance systems.

[0003] Smart locks are common IoT devices with a very high application rate. Existing smart locks usually have fingerprint recognition function, and users unlock the lock by recognizing their fingerprints. However, when the user's fingerprint is abnormal, or when it is inconvenient to verify the fingerprint by carrying items, the unlocking operation will be cumbersome, which will affect the user experience. Summary of the Invention

[0004] The purpose of this invention is to provide a data collection and verification method based on the Internet of Things, which aims to solve the problem of cumbersome unlocking operations when a user's fingerprint is abnormal or when carrying items that are inconvenient for fingerprint verification.

[0005] This invention is implemented as follows: a data acquisition and verification method based on the Internet of Things, including a cloud server, the method comprising:

[0006] Construct an Internet of Things (IoT) local area network (LAN), identify the authentication devices in the IoT LAN, and establish a data connection with the authentication devices through a cloud server. The IoT LAN includes at least a smart door lock and a gateway.

[0007] Distance testing was conducted using smart locks and gateways to construct encryption functions, which were then stored on cloud servers and smart locks.

[0008] When a mobile device signal is detected, data is collected through a cloud server and a smart door lock, and a dynamic key is generated using an encryption function and the collected data.

[0009] Send a dynamic key to the mobile device, receive the unlock command, and verify the dynamic key sent by the mobile device through the smart lock.

[0010] Preferably, the steps of performing distance testing through the smart lock and gateway, constructing an encryption function, and storing the encryption function through a cloud server and the smart lock specifically include:

[0011] The smart lock and the gateway monitor signals to obtain the strength of the two-way communication signal.

[0012] Communication distance is calculated based on the strength of the two-way communication signal, and communication coordinates are constructed according to the communication distance and the order in which the communication distances are obtained.

[0013] The encryption function is obtained by fitting the function based on the communication coordinates, and then stored through a cloud server and a smart door lock.

[0014] Preferably, the step of collecting data through a cloud server and a smart lock when a mobile device signal is detected, and generating a dynamic key through an encryption function and the collected data, specifically includes:

[0015] When a mobile device signal is detected, the authentication device sends a detection request to the cloud server, and the cloud server sends a data collection request to each authentication device based on the monitoring request.

[0016] Each authentication device generates a random string based on the data collection request and sends the random string to the cloud server and smart lock;

[0017] The random string is concatenated based on the timestamp of the random string to construct a character data stream. The character data stream is then dynamically filtered using an encryption function, and a dynamic key is generated based on the filtering result.

[0018] Preferably, the steps of sending a dynamic key to a mobile device, receiving an unlocking command, and verifying the dynamic key sent by the mobile device through the smart lock specifically include:

[0019] The system detects unlocking actions via mobile devices. When an unlocking action is detected, it receives an unlocking command from the mobile device and sends a dynamic key to the mobile device.

[0020] Send a dynamic key to the smart lock via a mobile device, and receive the dynamic key via the smart lock.

[0021] The smart door lock dynamically compares the data of the dynamic key. When the data matching rate reaches a preset value, it is considered to be successfully verified and the unlocking operation is performed.

[0022] Preferably, the unlocking action includes audio detection and vibration detection.

[0023] Another object of the present invention is to provide a data acquisition and verification system based on the Internet of Things, including a cloud server, the system comprising:

[0024] The local area network (LAN) communication module is used to build an IoT LAN, identify authentication devices in the IoT LAN, and establish a data connection with the authentication devices through a cloud server. The IoT LAN includes at least a smart door lock and a gateway.

[0025] The encryption function generation module is used to construct encryption functions through distance testing between smart locks and gateways, and to store the encryption functions through cloud servers and smart locks;

[0026] The key generation module is used to collect data through the cloud server and smart door lock when a mobile device signal is detected, and to generate a dynamic key through an encryption function and the collected data.

[0027] The password verification module is used to send a dynamic key to the mobile device, receive unlocking commands, and verify the dynamic key sent by the mobile device through the smart lock.

[0028] Preferably, the encryption function generation module includes:

[0029] The signal monitoring unit is used to monitor the signal between the smart lock and the gateway to obtain the strength of the two-way communication signal.

[0030] The communication coordinate construction unit is used to calculate the communication distance based on the strength of the two-way communication signal and to construct the communication coordinates according to the communication distance and the order in which the communication distances are obtained.

[0031] The function fitting unit is used to fit a function based on the communication coordinates to obtain an encrypted function, which is then stored through a cloud server and a smart door lock.

[0032] Preferably, the key generation module includes:

[0033] The data acquisition unit is used to send a detection request from the authentication device to the cloud server when a mobile device signal is detected, and the cloud server sends a data acquisition request to each authentication device according to the monitoring request.

[0034] The data interaction unit is used by each authentication device to randomly generate a random string according to the data collection request, and send the random string to the cloud server and the smart lock;

[0035] The key processing unit is used to concatenate random strings based on their timestamps to construct a character data stream, dynamically filter the character data stream using an encryption function, and generate a dynamic key based on the filtering results.

[0036] Preferably, the password verification module includes:

[0037] The unlocking action recognition unit is used to detect unlocking actions via mobile devices. When an unlocking action is detected, it receives an unlocking command from the mobile device and sends a dynamic key to the mobile device.

[0038] The key transceiver unit is used to send dynamic keys to the smart lock via a mobile device and receive dynamic keys via the smart lock.

[0039] The key verification unit is used by the smart door lock to dynamically compare the dynamic key data. When the data matching rate reaches a preset value, it is considered to be successfully verified and the unlocking operation is performed.

[0040] This invention provides a data acquisition and verification method based on the Internet of Things (IoT). By detecting the triggered actions of mobile devices, data is collected from IoT devices within the local area network when unlocking is required, thereby constructing a dynamic key. The smart lock achieves automatic unlocking by verifying the dynamic key, greatly improving the convenience of unlocking. Attached Figure Description

[0041] Figure 1 A flowchart illustrating a data acquisition and verification method based on the Internet of Things (IoT) provided in this embodiment of the invention;

[0042] Figure 2 A flowchart illustrating the steps of performing distance testing via a smart lock and gateway, constructing an encryption function, and storing the encryption function via a cloud server and a smart lock, as provided in an embodiment of the present invention.

[0043] Figure 3 A flowchart of the steps for collecting data through a cloud server and a smart lock when a mobile device signal is detected, and generating a dynamic key through an encryption function and the collected data, provided in an embodiment of the present invention;

[0044] Figure 4 A flowchart illustrating the steps of sending a dynamic key to a mobile device, receiving an unlocking command, and verifying the dynamic key sent by the mobile device through a smart door lock, as provided in an embodiment of the present invention.

[0045] Figure 5 An architecture diagram of an Internet of Things-based data acquisition and verification system provided in this embodiment of the invention;

[0046] Figure 6 An architecture diagram of an encryption function generation module provided in an embodiment of the present invention;

[0047] Figure 7 An architecture diagram of a key generation module provided in an embodiment of the present invention;

[0048] Figure 8 This is an architecture diagram of a password verification module provided in an embodiment of the present invention. Detailed Implementation

[0049] To make the objectives, technical solutions, and advantages of this invention clearer, the invention will be further described in detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative and not intended to limit the invention.

[0050] It is understood that the terms "first," "second," etc., used in this application may be used herein to describe various elements, but unless otherwise specified, these elements are not limited by these terms. These terms are used only to distinguish one element from another. For example, without departing from the scope of this application, a first script may be referred to as a second script, and similarly, a second script may be referred to as a first script.

[0051] like Figure 1 The diagram shows a flowchart of a data acquisition and verification method based on the Internet of Things (IoT) provided in an embodiment of the present invention. The method includes a cloud server and comprises:

[0052] S100, Construct an IoT local area network, identify authentication devices in the IoT local area network, and establish a data connection with the authentication devices through a cloud server. The IoT local area network includes at least smart door locks and gateways.

[0053] In this step, an IoT local area network is constructed. This invention is applicable to home application scenarios. A smart door lock is installed on the entrance door, and the house contains multiple smart home devices, which serve as authentication devices. Examples of smart home devices include smart air conditioners, robot vacuum cleaners, and smart TVs. The multiple smart home devices establish an IoT local area network through wireless communication, which can be either Bluetooth or Wi-Fi. Each smart home device acts as an independent node in the IoT local area network. The IoT local area network also includes the smart door lock and a gateway. The gateway is used to establish a data connection with a cloud server, and the cloud server establishes a data connection with the IoT local area network through the gateway.

[0054] The S200 performs distance testing through smart locks and gateways, constructs encryption functions, and stores these encryption functions through cloud servers and smart locks.

[0055] In this step, a distance test is conducted between the smart lock and the gateway. Specifically, a wireless communication connection is established between the smart lock and the gateway. After the connection is established, when the user's mobile device is detected, it is considered that the user needs to unlock the smart lock. At this point, preparation for unlocking verification begins. The smart lock and the gateway mutually detect each other's wireless communication signal strength. This wireless communication signal strength can be Bluetooth communication signal strength or WIFI communication signal strength. The communication distance is calculated based on the relationship between signal strength and communication distance. Coordinates are then constructed based on the communication distance and the order in which the communication distances are generated. Furthermore, an encryption function is obtained through function fitting. The encryption function is stored on a cloud server and the smart lock for use when generating a dynamic key.

[0056] When the S300 detects a mobile device signal, it collects data through a cloud server and a smart lock, and generates a dynamic key using an encryption function and the collected data.

[0057] In this step, when a mobile device signal is detected, data is collected through the cloud server and smart lock. Upon detection of the mobile device signal, the cloud server sends a data request to each smart home device, requesting each device to randomly generate a string and send it to the cloud server and smart lock through the gateway. The timestamp of the string's generation needs to be recorded in the string. Both the cloud server and the smart lock record encryption functions, so they can process the strings synchronously, filtering consecutive strings to obtain a dynamic key. Since the data collection process is continuous, the dynamic key is also constantly updated.

[0058] The S400 sends a dynamic key to the mobile device, receives the unlock command, and verifies the dynamic key sent by the mobile device through the smart lock.

[0059] In this step, a dynamic key is sent to the mobile device. First, the mobile device receives the unlock command. When the mobile device approaches the smart lock, the user triggers the unlock command by stomping their foot or using voice control. During this process, the mobile device records audio and / or performs vibration monitoring. When vibration or a preset sound is detected on the mobile device, an unlock command is sent to the smart lock and the cloud server. At this time, the cloud server sends the dynamic key to the mobile device, which then sends the dynamic key to the smart lock. The smart lock verifies the dynamic key, and if the dynamic key matches, the lock is unlocked.

[0060] like Figure 2 As shown, in a preferred embodiment of the present invention, the steps of performing distance testing through the smart lock and gateway, constructing an encryption function, and storing the encryption function through a cloud server and the smart lock specifically include:

[0061] S201, the smart lock and the gateway perform signal monitoring to obtain the strength of the two-way communication signal.

[0062] In this step, the smart lock and the gateway monitor each other's signals. When a mobile device is detected, it is considered that there is an intention to unlock. Then, the smart lock and the gateway will perform mutual detection. Specifically, they can detect each other's Bluetooth signal strength to obtain the two-way communication signal strength. The two-way communication signal is the Bluetooth signal detected by the smart lock from the gateway and the Bluetooth signal detected by the gateway from the smart lock.

[0063] S202, calculates the communication distance based on the strength of the two-way communication signal, and constructs the communication coordinates according to the communication distance and the order in which the communication distances are obtained.

[0064] In this step, the communication distance is calculated based on the two-way communication signal strength. According to the relationship between signal strength and communication distance, the two-way distance between the smart lock and the gateway is calculated, and the average value is calculated. This average value is the communication distance obtained in this calculation. The communication distance is calculated at a preset time interval, and the number of each communication distance is determined. For example, the first communication distance value is L1, the nth communication distance value is Ln, and then the communication coordinates are (n, Ln).

[0065] S203, based on communication coordinates, performs function fitting to obtain an encryption function, which is then stored through a cloud server and a smart door lock.

[0066] In this step, a function is fitted based on the communication coordinates. Function fitting software is used to fit the above coordinates, and the fitting precision is set. For example, if the fitting precision is set to 0.01, then the encryption function obtained by fitting needs to satisfy the condition that when the calculated value obtained after substituting the communication coordinates n into the function is accurate to 0.01, the value is the same as Ln. The encryption function is stored through a cloud server and a smart door lock.

[0067] like Figure 3 As shown, in a preferred embodiment of the present invention, the step of collecting data through a cloud server and a smart lock when a mobile device signal is detected, and generating a dynamic key through an encryption function and the collected data, specifically includes:

[0068] S301: When a mobile device signal is detected, the authentication device sends a detection request to the cloud server, and the cloud server sends a data collection request to each authentication device according to the monitoring request.

[0069] In this step, when a mobile device signal is detected, the authentication device sends a detection request to the cloud server. The smart lock marks the Bluetooth signal of the mobile device and performs Bluetooth signal detection at preset time intervals. Similarly, the authentication device also detects the mobile device. When a mobile device is detected, the corresponding authentication device sends a detection request to the cloud server. The cloud server then sends data collection requests to each authentication device based on the monitoring request.

[0070] S302: Each authentication device generates a random string based on the data collection request and sends the random string to the cloud server and the smart lock.

[0071] In this step, each authentication device randomly generates a random string based on the data collection request. Specifically, the random string can be generated by a preset random function or by intercepting data from within the authentication device, such as randomly intercepting a portion of the currently transmitted data, converting it into characters, and thus obtaining a random string. The random string is then sent to the cloud server and the smart lock.

[0072] S303: Concatenate random strings based on their timestamps to construct a character data stream. Dynamically filter the character data stream using an encryption function and generate a dynamic key based on the filtering results.

[0073] In this step, a random string is concatenated based on its timestamp. Since the random string contains a timestamp, both the smart lock and the cloud server, upon receiving the random string, determine the concatenation order based on the timestamp, thus obtaining a character data stream. The character data stream is then dynamically filtered using an encryption function. The corresponding timestamp in the character data stream is substituted into the encryption function, and the calculated value determines whether to retain the corresponding string. For example, if the encryption function is f, and the calculated value after substituting the timestamp is M, taking M = 273.234 as an example, it is determined whether the first three digits of M are odd. If they are odd, the string is retained; otherwise, it is discarded. This dynamic filtering of the character data stream results in the retained string being the dynamic key.

[0074] like Figure 4 As shown, in a preferred embodiment of the present invention, the steps of sending a dynamic key to a mobile device, receiving an unlocking command, and verifying the dynamic key sent by the mobile device through the smart lock specifically include:

[0075] S401 detects unlocking actions via a mobile device. When an unlocking action is detected, it receives an unlocking command from the mobile device and sends a dynamic key to the mobile device.

[0076] In this step, unlocking actions are detected via mobile devices. When a user needs to unlock the door, they can trigger the unlocking action by stomping their foot or using voice control. When the mobile device detects the smart lock and recognizes the unlocking action, it sends an unlocking request to the cloud server, which then sends a dynamic key to the mobile device.

[0077] S402 sends a dynamic key to the smart lock via a mobile device and receives the dynamic key via the smart lock.

[0078] S403, the smart door lock dynamically compares the data of the dynamic key. When the data matching rate reaches the preset value, it is considered to be successfully verified and the unlocking operation is performed.

[0079] In this step, a dynamic key is sent to the smart lock via a mobile device. The smart lock then compares its own calculated dynamic key with the one sent from the mobile device. If the matching rate reaches a preset value, the verification is successful. In this invention, the mobile device's signal is detected in real time to determine if the device is outdoors. Unlocking is only possible when the mobile device is outdoors. Specifically, when the smart lock detects a mobile device, each smart home device indoors monitors the wireless communication signal strength of the mobile device and sets a signal threshold for each device. This threshold is determined through testing. Specifically, the user needs to... To enable seamless unlocking via an unlocking action, signal monitoring is required outside the door. This involves the user standing outside with their mobile device, and each smart home device recording its signal strength value, which becomes the signal threshold. During the unlocking process, all smart home devices must verify the user's location against this threshold. If any smart home device determines the user is inside, seamless unlocking cannot be triggered. For mobile smart home devices (such as robot vacuums), they can only function as smart home devices when they are not in operation and are located at a charging station. This process avoids misidentification when the user is indoors.

[0080] like Figure 5 As shown in the figure, an IoT-based data acquisition and verification system is provided in an embodiment of the present invention, including a cloud server. The system includes:

[0081] The local area network communication module 100 is used to construct an Internet of Things (IoT) local area network, identify authentication devices in the IoT local area network, and establish a data connection with the authentication devices through a cloud server. The IoT local area network includes at least a smart door lock and a gateway.

[0082] In this system, the local area network communication module 100 constructs an IoT local area network. This invention is applicable to home application scenarios. A smart door lock is installed on the entrance door, and the house contains multiple smart home devices, which serve as authentication devices. Examples of such devices include smart air conditioners, robot vacuum cleaners, and smart TVs. These smart home devices establish an IoT local area network through wireless communication, which can be either Bluetooth or Wi-Fi. Each smart home device acts as an independent node in the IoT local area network. The IoT local area network also includes the smart door lock and a gateway. The gateway is used to establish a data connection with a cloud server, and the cloud server establishes a data connection with the IoT local area network through the gateway.

[0083] The encryption function generation module 200 is used to perform distance testing through smart locks and gateways, construct encryption functions, and store the encryption functions through cloud servers and smart locks.

[0084] In this system, the encryption function generation module 200 performs distance testing between the smart lock and the gateway. Specifically, a wireless communication connection is established between the smart lock and the gateway. After the connection is established, when the user's mobile device is detected, it is considered that the user needs to unlock the smart lock. At this time, preparation for unlocking verification begins. The smart lock and the gateway mutually detect each other's wireless communication signal strength. This wireless communication signal strength can be Bluetooth communication signal strength or WIFI communication signal strength. The communication distance is calculated based on the relationship between signal strength and communication distance. Coordinates are then constructed based on the communication distance and the order in which the communication distances are generated. Furthermore, an encryption function is obtained through function fitting. The encryption function is stored in the cloud server and the smart lock for use when generating dynamic keys.

[0085] The key generation module 300 is used to collect data through the cloud server and smart door lock when a mobile device signal is detected, and to generate a dynamic key through an encryption function and the collected data.

[0086] In this system, when the key generation module 300 detects a mobile device signal, it collects data through the cloud server and smart lock. Upon detecting the mobile device signal, the cloud server sends a data request to each smart home device, requesting each smart home device to randomly generate a string and send it to the cloud server and smart lock through the gateway. The timestamp of the string generation needs to be recorded in the string. Both the cloud server and the smart lock record encryption functions, so they can process the strings synchronously and filter the content of consecutive strings to obtain a dynamic key. Since the data collection process is continuous, the generated dynamic key is also constantly updated.

[0087] The password verification module 400 is used to send a dynamic key to the mobile device, receive unlocking commands, and verify the dynamic key sent by the mobile device through the smart door lock.

[0088] In this system, the password verification module 400 sends a dynamic key to the mobile device. First, the mobile device receives the unlock command. When the mobile device approaches the smart lock, the user triggers the unlock command by stomping their foot or using voice control. During this process, the mobile device records audio and / or performs vibration monitoring. When vibration or a preset sound is detected, an unlock command is sent to the smart lock and the cloud server. The cloud server then sends the dynamic key to the mobile device, which in turn sends it to the smart lock. The smart lock verifies the dynamic key, and if the dynamic key matches, the lock is unlocked.

[0089] like Figure 6As shown, in a preferred embodiment of the present invention, the encryption function generation module 200 includes:

[0090] The signal monitoring unit 201 is used to monitor the signal between the smart door lock and the gateway to obtain the strength of the two-way communication signal.

[0091] In this module, the signal monitoring unit 201 monitors the signal between the smart lock and the gateway. When a mobile device is detected, it is considered that there is an intention to unlock. Then, the smart lock and the gateway will perform mutual detection. Specifically, they can detect each other's Bluetooth signal strength to obtain the two-way communication signal strength. The two-way communication signal is the Bluetooth signal detected by the smart lock from the gateway and the Bluetooth signal detected by the gateway from the smart lock.

[0092] The communication coordinate construction unit 202 is used to calculate the communication distance based on the strength of the two-way communication signal and to construct communication coordinates according to the communication distance and the order in which the communication distances are obtained.

[0093] In this module, the communication coordinate construction unit 202 calculates the communication distance based on the bidirectional communication signal strength. According to the relationship between signal strength and communication distance, the bidirectional distance between the smart door lock and the gateway is calculated, and the average value is calculated. This average value is the communication distance obtained in this calculation. The communication distance is calculated according to the preset time interval, and the number of each communication distance is determined. For example, the first communication distance value is L1, the nth communication distance value is Ln, and then the communication coordinate is (n, Ln).

[0094] The function fitting unit 203 is used to perform function fitting based on communication coordinates to obtain an encrypted function, which is then stored through a cloud server and a smart door lock.

[0095] In this module, the function fitting unit 203 performs function fitting based on the communication coordinates. The function fitting software is used to fit the above coordinates, and the fitting precision is set. For example, if the fitting precision is set to 0.01, then the encryption function obtained by fitting needs to satisfy the condition that when the calculated value obtained after substituting the communication coordinates n into the function is accurate to 0.01, the value is the same as Ln. The encryption function is stored through the cloud server and the smart door lock.

[0096] like Figure 7 As shown, in a preferred embodiment of the present invention, the key generation module 300 includes:

[0097] The data acquisition unit 301 is used to send a detection request from the authentication device to the cloud server when a mobile device signal is detected, and the cloud server sends a data acquisition request to each authentication device according to the monitoring request.

[0098] In this module, when the data acquisition unit 301 detects a mobile device signal, the authentication device sends a detection request to the cloud server. The smart door lock marks the Bluetooth signal of the mobile device and performs Bluetooth signal detection at preset time intervals. Similarly, the authentication device also detects the mobile device. When a mobile device is detected, the corresponding authentication device sends a detection request to the cloud server. The cloud server then sends data acquisition requests to each authentication device based on the monitoring request.

[0099] The data interaction unit 302 is used by each authentication device to randomly generate a random string according to the data collection request, and send the random string to the cloud server and the smart lock.

[0100] In this module, each authentication device in the data interaction unit 302 randomly generates a random string according to the data collection request. Specifically, the random string can be generated by a preset random function or by intercepting data inside the authentication device, such as randomly intercepting part of the currently transmitted data and converting it into characters to obtain a random string, which is then sent to the cloud server and the smart lock.

[0101] The key processing unit 303 is used to concatenate random strings based on the timestamp of the random strings to construct a character data stream, dynamically filter the character data stream through an encryption function, and generate a dynamic key based on the filtering result.

[0102] In this module, the key processing unit 303 concatenates random strings based on their timestamps. Since the random strings contain timestamps, both the smart lock and the cloud server, upon receiving the random strings, determine the concatenation order based on the timestamps to obtain a character data stream. The character data stream is then dynamically filtered using an encryption function. The corresponding timestamps in the character data stream are substituted into the encryption function, and the calculated value determines whether to retain the corresponding string. For example, if the encryption function is f, and the calculated value obtained after substituting the timestamps is M, taking M = 273.234 as an example, it is determined whether the first three digits of M are odd. If they are odd, the string is retained; otherwise, it is discarded. This dynamic filtering of the character data stream results in the retained string being the dynamic key.

[0103] like Figure 8 As shown, in a preferred embodiment of the present invention, the password verification module 400 includes:

[0104] The unlocking action recognition unit 401 is used to detect unlocking actions through a mobile device. When an unlocking action is detected, it receives an unlocking command from the mobile device and sends a dynamic key to the mobile device.

[0105] In this module, the unlocking action recognition unit 401 detects unlocking actions through the mobile device. When the user needs to unlock, the mobile device can trigger the unlocking action by stomping or voice control. When the mobile device detects the smart lock and recognizes the unlocking action, the mobile device sends an unlocking request to the cloud server, and the cloud server sends a dynamic key to the mobile device.

[0106] The key transceiver unit 402 is used to send a dynamic key to the smart lock via a mobile device and to receive the dynamic key via the smart lock.

[0107] The key verification unit 403 is used by the smart door lock to dynamically compare the data of the dynamic key. When the data matching rate reaches a preset value, it is considered to be successfully verified and the unlocking operation is performed.

[0108] In this module, the key transceiver unit 402 sends a dynamic key to the smart lock via a mobile device. The smart lock then compares its own calculated dynamic key with the dynamic key sent from the mobile device. If the matching rate reaches a preset value, the verification is successful. In this invention, the mobile device's signal is detected in real time to determine whether the mobile device is outdoors. Unlocking is only possible when the mobile device is outdoors. Specifically, when the smart lock detects a mobile device, each smart home device located indoors monitors the wireless communication signal strength of the mobile device and sets a signal threshold for it. This threshold is obtained through testing. When users need to set up seamless unlocking via an unlocking action, signal monitoring is required outside the door. This means that when the user stands outside the door with their mobile device, each smart home device records the signal strength value, which becomes the signal threshold. During the unlocking process, all smart home devices need to verify whether the user is outside the door using the signal threshold. If any smart home device determines that the user is inside, then seamless unlocking cannot be triggered. For mobile smart home devices (such as robot vacuums), they can only be considered smart home devices when they are not in operation and are located at a charging base station. Through the above operations, misidentification when the user is indoors can be avoided.

[0109] It should be understood that although the steps in the flowcharts of the various embodiments of the present invention are shown sequentially according to the arrows, these steps are not necessarily executed in the order indicated by the arrows. Unless explicitly stated herein, there is no strict order restriction on the execution of these steps, and they can be executed in other orders. Moreover, at least some steps in the various embodiments may include multiple sub-steps or multiple stages. These sub-steps or stages are not necessarily completed at the same time, but can be executed at different times. The execution order of these sub-steps or stages is not necessarily sequential, but can be performed alternately or in turn with other steps or at least a portion of the sub-steps or stages of other steps.

[0110] Those skilled in the art will understand that all or part of the processes in the above embodiments can be implemented by a computer program instructing related hardware. The program can be stored in a non-volatile computer-readable storage medium, and when executed, it can include the processes of the embodiments described above. Any references to memory, storage, databases, or other media used in the embodiments provided in this application can include non-volatile and / or volatile memory. Non-volatile memory can include read-only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM), or flash memory. Volatile memory can include random access memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in various forms, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), dual data rate SDRAM (DDRSDRAM), enhanced SDRAM (ESDRAM), synchronous link DRAM (SLDRAM), RAMbus direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and RAMbus dynamic RAM (RDRAM), etc.

[0111] The technical features of the above embodiments can be combined in any way. For the sake of brevity, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.

[0112] The embodiments described above are merely illustrative of several implementations of the present invention, and while the descriptions are specific and detailed, they should not be construed as limiting the scope of the present invention. It should be noted that those skilled in the art can make various modifications and improvements without departing from the concept of the present invention, and these modifications and improvements all fall within the scope of protection of the present invention. Therefore, the scope of protection of this patent should be determined by the appended claims.

[0113] The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. Any modifications, equivalent substitutions, and improvements made within the spirit and principles of the present invention should be included within the protection scope of the present invention.

Claims

1. A data acquisition and verification method based on the Internet of Things, comprising a cloud server, characterized in that, The method includes: Construct an Internet of Things (IoT) local area network (LAN), identify the authentication devices in the IoT LAN, and establish a data connection with the authentication devices through a cloud server. The IoT LAN includes at least a smart door lock and a gateway. Distance testing was conducted using smart locks and gateways to construct encryption functions, which were then stored on cloud servers and smart locks. When a mobile device signal is detected, data is collected through a cloud server and a smart door lock, and a dynamic key is generated using an encryption function and the collected data. Send a dynamic key to the mobile device, receive the unlock command, and verify the dynamic key sent by the mobile device through the smart door lock; The steps of collecting data via a cloud server and smart lock when a mobile device signal is detected, and generating a dynamic key using an encryption function and the collected data, specifically include: When a mobile device signal is detected, the authentication device sends a detection request to the cloud server, and the cloud server sends a data collection request to each authentication device based on the monitoring request. The smart door lock marks the Bluetooth signal of the mobile device and detects the Bluetooth signal at preset time intervals. The authentication device detects the mobile device. When the mobile device is detected, the corresponding authentication device sends a detection request to the cloud server. The cloud server sends a data collection request to each authentication device according to the monitoring request. Each authentication device generates a random string based on the data collection request and sends the random string to the cloud server and smart lock; The random string is generated by a preset random function or obtained by intercepting data from the internal system of the authentication device, converting it into characters, and then sending the random string to the cloud server and the smart lock. The random string is concatenated based on the timestamp of the random string to construct a character data stream. The character data stream is dynamically filtered through an encryption function, and a dynamic key is generated based on the filtering result. The random string contains a timestamp, information about the smart lock and the cloud server. Upon receiving the random string, the concatenation order is determined based on the timestamp, resulting in a character data stream. This stream is then dynamically filtered using an encryption function. The corresponding timestamp from the character data stream is substituted into the encryption function, and the calculated value determines whether to retain the corresponding string. The first three digits of the calculated value are also checked; if they are odd, the string is retained, otherwise it is discarded. This dynamic filtering process retains the string as the dynamic key.

2. The data acquisition and verification method based on the Internet of Things according to claim 1, characterized in that, The steps of performing distance testing via smart locks and gateways, constructing encryption functions, and storing the encryption functions via cloud servers and smart locks specifically include: The smart lock and the gateway monitor signals to obtain the strength of the two-way communication signal. Communication distance is calculated based on the strength of the two-way communication signal, and communication coordinates are constructed according to the communication distance and the order in which the communication distances are obtained. The encryption function is obtained by fitting the function based on the communication coordinates, and then stored through a cloud server and a smart door lock.

3. The data acquisition and verification method based on the Internet of Things according to claim 1, characterized in that, The steps of sending a dynamic key to a mobile device, receiving an unlocking command, and verifying the dynamic key sent by the mobile device through the smart lock specifically include: The system detects unlocking actions via mobile devices. When an unlocking action is detected, it receives an unlocking command from the mobile device and sends a dynamic key to the mobile device. Send a dynamic key to the smart lock via a mobile device, and receive the dynamic key via the smart lock. The smart door lock dynamically compares the data of the dynamic key. When the data matching rate reaches a preset value, it is considered to be successfully verified and the unlocking operation is performed.

4. The data acquisition and verification method based on the Internet of Things according to claim 3, characterized in that, The unlocking action includes audio detection and vibration detection.

5. A data acquisition and verification system based on the Internet of Things, comprising a cloud server, characterized in that, The system includes: The local area network (LAN) communication module is used to build an IoT LAN, identify authentication devices in the IoT LAN, and establish a data connection with the authentication devices through a cloud server. The IoT LAN includes at least a smart door lock and a gateway. The encryption function generation module is used to construct encryption functions through distance testing between smart locks and gateways, and to store the encryption functions through cloud servers and smart locks; The key generation module is used to collect data through the cloud server and smart door lock when a mobile device signal is detected, and to generate a dynamic key through an encryption function and the collected data. The password verification module is used to send a dynamic key to the mobile device, receive unlocking commands, and verify the dynamic key sent by the mobile device through the smart door lock. The key generation module includes: The data acquisition unit is used to send a detection request from the authentication device to the cloud server when a mobile device signal is detected, and the cloud server sends a data acquisition request to each authentication device according to the monitoring request. The smart door lock marks the Bluetooth signal of the mobile device and detects the Bluetooth signal at preset time intervals. The authentication device detects the mobile device. When the mobile device is detected, the corresponding authentication device sends a detection request to the cloud server. The cloud server sends a data collection request to each authentication device according to the monitoring request. The data interaction unit is used by each authentication device to randomly generate a random string according to the data collection request, and send the random string to the cloud server and the smart lock; The random string is generated by a preset random function or obtained by intercepting data from the internal system of the authentication device, converting it into characters, and then sending the random string to the cloud server and the smart lock. The key processing unit is used to concatenate random strings based on the timestamp of the random strings to construct a character data stream, dynamically filter the character data stream through an encryption function, and generate a dynamic key based on the filtering result; The random string contains a timestamp, information about the smart lock and the cloud server. Upon receiving the random string, the concatenation order is determined based on the timestamp, resulting in a character data stream. This stream is then dynamically filtered using an encryption function. The corresponding timestamp from the character data stream is substituted into the encryption function, and the calculated value determines whether to retain the corresponding string. The first three digits of the calculated value are also checked; if they are odd, the string is retained, otherwise it is discarded. This dynamic filtering process retains the string as the dynamic key.

6. The data acquisition and verification system based on the Internet of Things according to claim 5, characterized in that, The encryption function generation module includes: The signal monitoring unit is used to monitor the signal between the smart lock and the gateway to obtain the strength of the two-way communication signal. The communication coordinate construction unit is used to calculate the communication distance based on the strength of the two-way communication signal and to construct the communication coordinates according to the communication distance and the order in which the communication distances are obtained. The function fitting unit is used to fit a function based on the communication coordinates to obtain an encrypted function, which is then stored through a cloud server and a smart door lock.

7. The data acquisition and verification system based on the Internet of Things according to claim 5, characterized in that, The password verification module includes: The unlocking action recognition unit is used to detect unlocking actions via mobile devices. When an unlocking action is detected, it receives an unlocking command from the mobile device and sends a dynamic key to the mobile device. The key transceiver unit is used to send dynamic keys to the smart lock via a mobile device and receive dynamic keys via the smart lock. The key verification unit is used by the smart door lock to dynamically compare the dynamic key data. When the data matching rate reaches a preset value, it is considered to be successfully verified and the unlocking operation is performed.

8. The data acquisition and verification system based on the Internet of Things according to claim 7, characterized in that, The unlocking action includes audio detection and vibration detection.