Passive lock control method and lock
By setting sensors and control software in NFC passive locks, real-time detection and feedback of the switch status of the locks, the problem of difficulty in obtaining the locks in the prior art is solved, stable and safe switch and lock operations are achieved, and user experience and product competitiveness are improved.
Patent Information
- Application Number
- CN202411850399.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-12-16
- Publication Date
- 2025-04-04
AI Technical Summary
Existing NFC passive locks cannot acquire the switch status of the lock in real time, resulting in unstable unlocking or locking operations and lack of feedback control, affecting user experience and security.
At least two sensors are set in the hardware circuit of the NFC passive lock to detect the switch lock status of the lock in real time, and feedback control is performed through control software to ensure the accuracy and stability of the switch lock operation.
Real-time monitoring and control of the lock switch status is realized, improving the stability and safety of the switch lock, improving the user experience, and increasing the competitiveness of the product.
Abstract
Description
Technical Field
[0001] The present invention belongs to the technical field of passive locks, and in particular relates to a passive lock control method and a passive lock, which is a passive lock that uses NFC near-field communication technology to achieve contactless energy transmission and two-way wireless communication functions. Background Art
[0002] Passive locks refer to electric locks that do not require a built-in power supply to work. One type of passive lock is based on NFC near-field communication technology, which draws power from an NFC control terminal (a mobile phone with NFC function or a dedicated lock opener, etc.) and uses it to drive a motor or electromagnet mechanism to open and close the lock.
[0003] Existing NFC passive locks generally only have simple unlocking control, that is, after a certain amount of electrical energy is stored, it is directly used to drive the motor or electromagnet mechanism to rotate, without any feedback control, so it often prompts that the lock is successfully unlocked but it is not actually unlocked; at the same time, existing NFC passive locks have no locking control, and users cannot know the locking status; in addition, due to the size and transmission power of the transmitting coil of the NFC control terminal, the existing NFC passive locks cannot efficiently obtain wireless energy for stable execution of the switch lock operation. Summary of the invention
[0004] The main purpose of the present invention is to provide a passive lock control method and lock, to solve the problems existing in the prior art, to solve the problem of being unable to obtain the current switch state of the lock, to achieve stable switch lock, and to improve security and user experience.
[0005] In order to achieve the above object, one of the solutions of the present invention is: A passive lock control method, comprising: Step 1: at least two sensors are set in the hardware circuit of the NFC passive lock to detect the switch lock state of the passive lock; Step 2: When the NFC passive lock obtains enough power from the NFC control terminal, the control software of the NFC passive lock is started, and the signals of the two sensors are detected in real time. The switch state of the current lock is obtained by processing the signals, and the switch state is actively read by the control terminal; Step 3: The switch lock control algorithm of the control software is: 3a. When unlocking is required, if the lock is already unlocked, "unlocking success" is directly returned to the control terminal; 3b. When the lock needs to be locked, if the lock is already in the locked state, the "lock is successfully locked" is returned directly to the control terminal; 3c. When unlocking or locking is required, if the lock is not in the corresponding state, first wait for the energy storage capacitor of the lock to charge, and stop charging after the charging is completed in real time. The energy storage capacitor enters the discharge state to drive the drive device of the lock and perform the switch lock operation; in the process of performing the switch lock operation, the voltage of the energy storage capacitor and the switch lock state of the lock are detected in real time: if the voltage of the energy storage capacitor is lower than the preset charging threshold, stop driving the drive device of the lock, and continue to perform the charge-discharge cycle until it is detected that the switch lock state of the lock has been updated; if it is detected that the switch lock state of the lock has been updated, it means that the lock has actually been opened and closed, stop driving the drive device of the lock and end the control of the control terminal over the NFC passive lock, and return "unlocking success" or "locking success" to the control terminal; 3d. The lock control software has a data statistics function, which records various data during each unlocking or locking operation, and optimizes various data during the next unlocking or locking operation. At the same time, the recorded data is sent to the control terminal, which is uploaded to the cloud backend for storage and recorded as historical data; 3e. When the control terminal recognizes an NFC passive lock, it will obtain the lock ID and then send it together with the terminal ID of the control terminal to the cloud background. The cloud background extracts the corresponding historical data based on the lock ID and terminal ID and sends it to the control terminal. The control terminal decides whether to remind the user to try to move the sensing area of the control terminal based on the comparison between the historical data and the current data.
[0006] The sensor added in step 1 is a Hall sensor.
[0007] In step 3, the driving device of the lock is a motor or an electromagnet mechanism.
[0008] In step 3, the data recorded by the control software includes the charging time of the energy storage capacitor, the unlocking time and the locking time.
[0009] In step 3, the data recorded by the control software includes the charging efficiency of the energy storage capacitor. The charging efficiency is calculated by the CPU of the passive lock and then transmitted to the control software, which is then transmitted to the cloud backend by the control software.
[0010] Preferably, in step 3, the cloud backend classifies the data according to the terminal ID and performs adaptive processing on the data, specifically comparing and updating the maximum and minimum values of the data, wherein the unlocking time and the locking time both record the maximum values, and the charging time records the maximum and minimum values; the control terminal is based on the minimum value of the charging time in the historical data, and if the real-time charging time is greater than the minimum value, the user is prompted to try to move the sensing area of the control terminal to obtain the optimal charging efficiency.
[0011] The second solution of the present invention is: A lock is provided, which uses the passive lock control method to open and close the lock.
[0012] After adopting the above technical solution, the present invention has the following technical effects: The present invention can realize accurate and stable switch lock control by detecting the voltage value of the energy storage capacitor and the switch lock state of the lock in real time, thereby improving the safety of the lock and the user experience, thereby increasing the competitiveness of the product, improving market acceptance, and expanding the sales market; at the same time, the present invention can store various data related to the switch lock in real time, compare the real-time data with the historical data during the switch lock process and remind the user in real time, thereby ensuring the charging and discharging efficiency of the energy storage capacitor and achieving more accurate switch lock control. DETAILED DESCRIPTION
[0013] In order to further explain the technical solution of the present invention, the present invention is described in detail below through specific embodiments.
[0014] The present invention discloses a passive lock control method, comprising: Step 1: at least two sensors are set in the hardware circuit of the NFC passive lock to detect the switch lock state of the passive lock; Step 2: When the NFC passive lock obtains enough power from the NFC control terminal, the control software of the NFC passive lock is started, and the signals of the two sensors are detected in real time. The switch state of the current lock is obtained by processing the signals, and the switch state is actively read by the control terminal; Step 3: The switch lock control algorithm of the control software is: 3a. When unlocking is required, if the lock is already unlocked, a message "unlocking success" is directly returned to the control terminal; 3b. When the lock needs to be executed, if the lock is already in the locked state, the "lock is successfully locked" is returned directly to the control terminal; 3c. When unlocking or locking is required, if the lock is not in the corresponding state, first wait for the energy storage capacitor of the lock to charge, and stop charging after the charging is completed in real time. The energy storage capacitor enters the discharge state to drive the drive device of the lock and perform the switch lock operation; in the process of performing the switch lock operation, the voltage of the energy storage capacitor and the switch lock state of the lock are detected in real time: if the voltage of the energy storage capacitor is lower than the preset charging threshold, stop driving the drive device of the lock, and continue to perform the charge-discharge cycle until it is detected that the switch lock state of the lock has been updated; if it is detected that the switch lock state of the lock has been updated, it means that the lock has actually been unlocked (locked), stop driving the drive device of the lock and end the control of the control terminal over the NFC passive lock, and return "unlocking success" or "locking success" to the control terminal; 3d. The lock control software has a data statistics function, which records various data during each unlocking or locking operation, and optimizes various data during the next unlocking or locking operation. At the same time, the recorded data is sent to the control terminal, which is uploaded to the cloud backend for storage and recorded as historical data; 3e. When the control terminal recognizes an NFC passive lock, it will obtain the lock ID and then send it together with the terminal ID of the control terminal to the cloud background. The cloud background extracts the corresponding historical data based on the lock ID and terminal ID and sends it to the control terminal. The control terminal decides whether to remind the user to try to move the sensing area of the control terminal based on the comparison between the historical data and the current data.
[0015] Through the above scheme, the present invention can realize accurate and stable switch lock control by real-time detection of the voltage value of the energy storage capacitor and the switch lock state of the lock, thereby improving the safety of the lock and user experience, thereby increasing product competitiveness, improving market acceptance, and expanding the sales market; at the same time, the present invention can store various data related to the switch lock in real time, compare the real-time data with the historical data during the switch lock process and remind the user in real time, thereby ensuring the charging and discharging efficiency of the energy storage capacitor and achieving more accurate switch lock control.
[0016] Specific embodiments of the present invention are shown below.
[0017] The sensor added in the above step 1 is a Hall sensor, which cooperates with the magnet embedded in the NFC passive lock to detect the switch state of the lock through the position and state of the magnet.
[0018] In the above step 3, the driving device of the lock refers to a motor or an electromagnet mechanism.
[0019] In the above step 3, the data recorded by the control software includes the charging time of the energy storage capacitor (reflecting the charging efficiency of the energy storage capacitor, which can be used to infer the NFC wireless transmission efficiency), the unlocking time, the locking time and the control terminal data of the specific model.
[0020] Preferably, in the above step 3, the data recorded by the control software also includes the charging efficiency of the energy storage capacitor. The charging efficiency is calculated by the CPU of the passive lock and then transmitted to the control software, which is then transmitted to the cloud backend by the control software.
[0021] Furthermore, in the above step 3, the cloud backend classifies the data according to the control terminal ID (such as model, system version, etc.). The cloud can store and analyze these data, continuously and automatically optimize these parameters, and update the latest data in the database, which will be used for more stable and efficient control during the next unlocking (locking) operation. By classifying the control terminal ID data, it is convenient to associate the charging time, the opening and closing time and other information, so as to realize the adaptive processing of the data by the cloud backend: compare and update the maximum and minimum values of the data, where the unlocking time and the locking time both record the maximum value, and the charging time records the maximum and minimum values; the control terminal is based on the minimum charging time in the historical data. If the real-time charging time is greater than the minimum value, the user is prompted to try to move the sensing area of the control terminal to obtain the optimal charging efficiency.
[0022] The invention also discloses a lock, which uses the passive lock control method to open and close the lock.
[0023] The above embodiments do not limit the product form and style of the present invention. Any appropriate changes or modifications made by ordinary technicians in the relevant technical field should be deemed to be within the patent scope of the present invention.
Claims
1. A passive lock control method, characterized in that include: Step 1: at least two sensors are set in the hardware circuit of the NFC passive lock to detect the switch lock state of the passive lock; Step 2: When the NFC passive lock obtains enough power from the NFC control terminal, the control software of the NFC passive lock is started, and the signals of the two sensors are detected in real time. The switch state of the current lock is obtained by processing the signals, and the switch state is actively read by the control terminal; Step 3: The switch lock control algorithm of the control software is: 3a. When unlocking is required, if the lock is already unlocked, "unlocking success" is returned directly to the control terminal; 3b when the need to execute the lock, if the lock is already in the locked state, then directly return to the control terminal "locked successfully"; 3c. When unlocking or locking is required, if the lock is not in the corresponding state, wait for the energy storage capacitor of the lock to charge, and stop charging after the charging is completed in real time. The energy storage capacitor enters the discharge state to drive the drive device of the lock and perform the switch lock operation; During the process of executing the on / off lock operation, the voltage of the energy storage capacitor and the on / off lock state of the lock are detected in real time: if the voltage of the energy storage capacitor is lower than the preset charging threshold, the drive device of the lock is stopped, and the charge-discharge cycle is continued until the on / off lock state of the lock is detected to be updated; if the on / off lock state of the lock is detected to be updated, it means that the lock has actually been opened and closed, the drive device of the lock is stopped, the control terminal's control of the NFC passive lock is terminated, and "unlocking success" or "locking success" is returned to the control terminal; 3d. The lock control software has a data statistics function, which records various data during each unlocking or locking operation, and optimizes various data during the next unlocking or locking operation. At the same time, the recorded data is sent to the control terminal, which is uploaded to the cloud backend for storage and recorded as historical data; 3e. When the control terminal recognizes an NFC passive lock, it will obtain the lock ID and then send it together with the terminal ID of the control terminal to the cloud background. The cloud background extracts the corresponding historical data based on the lock ID and terminal ID and sends it to the control terminal. The control terminal decides whether to remind the user to try to move the sensing area of the control terminal based on the comparison between the historical data and the current data.
2. The passive lock control method according to claim 1, characterized in that: The sensor added in step 1 is a Hall sensor.
3. The passive lock control method according to claim 1, characterized in that: In step 3, the driving device of the lock is a motor or an electromagnet mechanism.
4. The passive lock control method according to claim 1, characterized in that: In step 3, the data recorded by the control software includes the charging time of the energy storage capacitor, the unlocking time and the locking time.
5. The passive lock control method according to claim 1 or 4, characterized in that: In step 3, the data recorded by the control software includes the charging efficiency of the energy storage capacitor. The charging efficiency is calculated by the CPU of the passive lock and then transmitted to the control software, which is then transmitted to the cloud backend by the control software.
6. The passive lock control method according to claim 2, characterized in that: In step 3, the cloud backend classifies the data according to the terminal ID and performs adaptive processing on the data; the control terminal is based on the minimum charging time in the historical data. If the real-time charging time is greater than the minimum value, the user is prompted to try to move the sensing area of the control terminal to obtain the optimal charging efficiency.
7. The passive lock control method according to claim 6, characterized in that: In step 3, when the data is adaptively processed, the maximum and minimum values of the data are compared and updated, wherein the maximum values of the unlocking time and the locking time are recorded, and the maximum and minimum values of the charging time are recorded.
8. A lock, using the passive lock control method according to any one of claims 1 to 7 to open and close the lock.