A method for detecting and recovering electronic lock jam

Through infrared tube detection and timer combined with the motor reverse rotation, the problem of electronic lock blocking detection and recovery is solved, low-cost automatic recovery is achieved, damage caused by motor heating is avoided, and the safety of electronic locks is improved. reliability.

CN117288090BActive Publication Date: 2024-12-27TOPFLYTECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202311225080.6
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-09-21
Publication Date
2024-12-27
Estimated Expiration
2043-09-21

AI Technical Summary

Technical Problem

The prior art cannot effectively detect and automatically restore the blocking problem of electronic locks, resulting in heat and damage to the motor, which is costly and difficult to maintain.

Method used

By triggering unlocking or locking, using infrared tube to detect the position of the lock tongue, and using the timer to determine the blockage condition, control the reverse rotation of the motor to make recovery attempts, set the number of recovery times and time, and avoid heating caused by the long-term operation of the motor.

Benefits of technology

It realizes low-cost electronic lock blocking detection and automatic recovery, reduces the heat generation of the motor, extends the service life of the motor, and improves the safety and reliability of the electronic lock.

✦ Generated by Eureka AI based on patent content.
Patent Text Reader

Abstract

The present invention discloses a method for detecting and recovering a stalled electronic lock. The solution provided by the present invention uses a conventional motor and a simple infrared tube detection method to realize the detection, stall retry and automatic recovery of the stalled electronic lock at a low cost. In this process, the effective rotation time of the motor is short, the heat generated by the motor is reduced, and the failure and damage of the motor due to heat are avoided. At the same time, the solution provided by the present invention can quickly identify and recover the state of the electronic lock, effectively ensuring the safety and reliability of the electronic lock.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of smart home technology, and in particular to a method for detecting and recovering an electronic lock from stalling. Background Art

[0002] With the development of Internet of Things technology, related supporting products such as smart home and smart logistics have also been born. In the fields of smart home and smart logistics, various types of electronic locks are often used to lock doors or cabinets. During the operation of the electronic lock, the electronic lock motor may be blocked due to structural failure or other abnormalities. If it cannot be detected and restored in time, the motor will be blocked for a long time, causing heat and eventually damage the electronic lock. The current solutions to this problem include using a motor with a clutch function, controlling the rotation time of the motor, designing complex structural devices, etc., all of which have the problems of high cost, difficulty in maintenance and control, and inability to automatically recover.

[0003] Therefore, the prior art has defects and needs to be improved. Summary of the invention

[0004] The purpose of the present invention is to overcome the deficiencies of the prior art and provide a method for detecting and recovering an electronic lock stall.

[0005] The technical solution of the present invention is as follows: a method for detecting and recovering an electronic lock jam is provided, comprising the following steps:

[0006] Step 1: Trigger unlocking or locking;

[0007] Step 2: Control the motor to start, control the movement of the lock tongue to unlock or lock, turn on the infrared tube to detect the position of the lock tongue, and start the timer for timing;

[0008] Step 3: When the infrared light detects that the lock tongue reaches the specified position, the unlocking or locking action is successful; if the lock tongue does not reach the specified position within the set time of the timer, it is judged to be blocked;

[0009] Step 4: If it is determined to be blocked, the motor is controlled to rotate in the opposite direction, the infrared tube is turned on to detect the position of the lock tongue, and the timer is turned on for timing;

[0010] Step 5: When the lock tongue is detected to be in the reverse state of the original trigger state within the set time of the motor reversal, the timer is turned off to determine whether the number of recovery times of the current stall reaches the set value. If it reaches, the motor and the infrared tube are turned off and restored to the reverse state of the original trigger state. If it does not reach, go to step 7;

[0011] Step 6: If the lock tongue is not detected in the reverse state within the set time of motor reversal, determine whether the current stall recovery times have reached the set value. If so, turn off the motor, infrared tube and timer to restore to the stall state. If not, proceed to step 7.

[0012] Step 7: The motor starts in the original direction of rotation, starts unlocking or locking, and starts the infrared tube and timer to detect and judge again.

[0013] Furthermore, the timing time of the timer is 5-10s.

[0014] Furthermore, the setting value of the number of recovery times is 3-5 times.

[0015] Furthermore, in step 7, if the infrared tube detects that the lock tongue has reached the specified position, the motor, the infrared tube and the timer are turned off, and the lock is unlocked or locked successfully; if the infrared tube does not detect that the lock tongue has reached the specified unlocking position within the set time, it is determined whether the current number of stalls has reached the set value. If so, the motor infrared tube is turned off and the lock state is entered. If not, step 4 is repeated.

[0016] Furthermore, when entering the stalled state, the motor is turned off and the recovery is performed after waiting for the next startup.

[0017] By adopting the above scheme, the scheme provided by the present invention realizes the detection, retry and automatic recovery of electronic lock stalling at a low cost through conventional motors and simple infrared tube detection. In this process, the effective rotation time of the motor is short, which reduces the heat generated by the motor and avoids the failure and damage of the motor due to heat. At the same time, the scheme provided by the present invention can quickly identify and restore the state of the electronic lock, effectively ensuring the safety and reliability of the electronic lock. DETAILED DESCRIPTION

[0018] The present invention is described in detail below in conjunction with specific embodiments.

[0019] The present invention provides a method for detecting and recovering an electronic lock jam, comprising the following steps:

[0020] Step 1: Trigger unlocking or locking;

[0021] Step 2: Control the motor to start, control the movement of the lock tongue to unlock or lock, turn on the infrared tube to detect the position of the lock tongue, and start the timer for timing;

[0022] Step 3: When the infrared light detects that the lock tongue reaches the specified position, the unlocking or locking action is successful; if the lock tongue does not reach the specified position within the set time of the timer, it is judged to be blocked;

[0023] Step 4: If it is determined to be blocked, the motor is controlled to rotate in the opposite direction, the infrared tube is turned on to detect the position of the lock tongue, and the timer is turned on for timing;

[0024] Step 5: When the lock tongue is detected to be in the reverse state of the original trigger state within the set time of the motor reversal, the timer is turned off to determine whether the number of recovery times of the current stall reaches the set value. If it reaches, the motor and the infrared tube are turned off and restored to the reverse state of the original trigger state. If it does not reach, go to step 7;

[0025] Step 6: If the lock tongue is not detected in the reverse state within the set time of motor reversal, determine whether the current stall recovery times have reached the set value. If so, turn off the motor, infrared tube and timer to restore to the stall state. If not, proceed to step 7.

[0026] Step 7: The motor starts in the original direction of rotation, starts unlocking or locking, and starts the infrared tube and timer for detection and judgment again. If the infrared tube detects that the lock tongue has reached the specified position, the motor, infrared tube and timer are turned off, and the unlocking or locking is successful; if the infrared tube does not detect that the lock tongue has reached the specified unlocking position within the set time, it is determined whether the current number of stalls has reached the set value. If it has reached, the motor infrared tube is turned off and the lock enters the stall state. If it has not reached, repeat step 4.

[0027] The timing time of the timer is 5-10s. In the embodiment provided by the present invention, 7s is used as the timing time of the timer, which provides a certain time guarantee for the operation of the motor and avoids the motor being damaged due to heating during the too long detection time.

[0028] The setting value of the number of recovery times is 3-5 times. In the embodiment provided by the present invention, the number of recovery times adopted is 3 times to avoid excessive repeated tests causing heating of the motor and resulting in damage.

[0029] When entering the stall state, the motor is turned off and the recovery is resumed after the next startup.

[0030] The following are embodiments of the present invention:

[0031] Unlock and stall detection:

[0032] When performing unlocking jam detection, when the electronic lock triggers the unlocking state, the motor is controlled to rotate forward, unlocking is started, and a 7s timer is started. The infrared tube is used to detect whether the lock tongue has reached the designated unlocking position. If it has reached the designated position, the motor, infrared tube and timer are turned off, and the unlocking is successful. If the infrared tube does not detect that the lock tongue has reached the designated position within 7s, the unlocking jam is detected.

[0033] Unlock and stall recovery:

[0034] The motor reverses, starts the lock, and turns on the infrared tube to detect the position of the lock tongue, and starts a 7s timer. If the lock tongue reaches the lock position, turn off the timer, and determine whether the current unlocking jam recovery times have reached the set value. If so, turn off the motor, turn off the infrared tube, turn off the timer, and return to the lock state.

[0035] If the lock tongue is not detected to be in the locked state after 7s, determine whether the current unlocking and blocking recovery times have reached the set value. If so, turn off the motor, turn off the infrared tube, turn off the timer, restore to the unlocking and blocking state, and wait for the next power-on to resume.

[0036] If the number of recovery times does not reach the set value, the motor rotates forward, unlocking is started, the infrared tube is turned on to detect the position of the lock tongue, and the 7s timer is turned on. The infrared tube detects whether the lock tongue has reached the designated unlocking position. If it has, the motor is turned off, the infrared tube detection is turned off, the timer is turned off, and the unlocking is successful. If the infrared tube does not detect that the lock tongue has reached the designated unlocking position within 7s, it is determined whether the number of recovery times for the current unlocking jam has reached the set value. If it has, the motor is turned off, the infrared tube is turned off, and the device enters the unlocking jam state and waits for the next startup to recover; if it has not reached, the jam recovery is repeated.

[0037] Locking and blocking detection:

[0038] When performing lock-locking and stalling detection, when the electronic lock triggers the lock-locking state, the motor is controlled to reverse, start the lock-locking, and start the 7s timer at the same time. The infrared pair tube detects whether the lock tongue reaches the designated lock-locking position. If it reaches the designated position, the motor, infrared pair tube and timer are turned off, and the lock is successfully locked. If the infrared pair tube does not detect that the lock tongue reaches the designated position within 7s, the lock-locking and stalling situation is detected.

[0039] Lock and stall recovery:

[0040] The motor rotates forward, starts unlocking, and turns on the infrared tube to detect the position of the lock tongue, and starts a 7s timer. If the lock tongue reaches the unlocking position, turn off the timer, and determine whether the number of recovery times of the current lock jam has reached the set value. If so, turn off the motor, turn off the infrared tube, turn off the timer, and return to the unlocking state.

[0041] If the lock tongue is not detected to be in the unlocked state after 7s, determine whether the current lock-locked and blocked recovery times have reached the set value. If reached, turn off the motor, turn off the infrared tube, turn off the timer, restore to the locked and blocked state, and wait for the next power-on to recover.

[0042] If the number of recovery times does not reach the set value, the motor reverses, starts to lock, turns on the infrared tube to detect the position of the lock tongue, and starts the 7s timer. The infrared tube detects whether the lock tongue has reached the designated position for locking. If it has, the motor is turned off, the infrared tube detection is turned off, the timer is turned off, and the lock is successfully locked. If the infrared tube does not detect that the lock tongue has reached the designated unlocking position within 7s, it is determined whether the number of recovery times for the current lock jam has reached the set value. If it has, the motor is turned off, the infrared tube is turned off, and the device enters the lock jam state and waits for the next startup to recover; if it has not reached, the jam recovery is repeated.

[0043] In summary, the solution provided by the present invention realizes the detection, retry and automatic recovery of electronic lock stall at a low cost through conventional motors and simple infrared tube detection. In this process, the effective rotation time of the motor is short, which reduces the heat generated by the motor and avoids the failure and damage of the motor due to heat. At the same time, the solution provided by the present invention can quickly identify and restore the state of the electronic lock, effectively ensuring the safety and reliability of the electronic lock.

[0044] The above are only preferred embodiments of the present invention and are 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 in the protection scope of the present invention.

Claims

1. A method for detecting and recovering an electronic lock jam, characterized in that: The steps include: Step 1: Trigger unlocking or locking; Step 2: Control the motor to start, control the movement of the lock tongue to unlock or lock, turn on the infrared tube to detect the position of the lock tongue, and start the timer for timing; Step 3: When the infrared light detects that the lock tongue reaches the specified position, the unlocking or locking action is successful; if the lock tongue does not reach the specified position within the set time of the timer, it is judged to be blocked; Step 4: If it is determined to be blocked, the motor is controlled to rotate in the opposite direction, the infrared tube is turned on to detect the position of the lock tongue, and the timer is turned on for timing; Step 5: When the lock tongue is detected to be in the reverse state of the original trigger state within the set time of the motor reversal, the timer is turned off to determine whether the number of recovery times of the current stall reaches the set value. If it reaches, the motor and the infrared tube are turned off and restored to the reverse state of the original trigger state. If it does not reach, go to step 7; Step 6: If the lock tongue is not detected in the reverse state within the set time of motor reversal, determine whether the current stall recovery times have reached the set value. If so, turn off the motor, infrared tube and timer to restore to the stall state. If not, proceed to step 7. Step 7: The motor starts in the original direction of rotation, starts unlocking or locking, and starts the infrared tube and timer to detect and judge again.

2. The method for detecting and recovering an electronic lock jam according to claim 1, characterized in that: The timing time of the timer is 5-10s.

3. The method for detecting and recovering an electronic lock jam according to claim 1, characterized in that: The setting value of the recovery times is 3-5 times.

4. The method for detecting and recovering an electronic lock jam according to claim 1, characterized in that: In step 7, if the infrared tube detects that the lock tongue has reached the specified position, the motor, the infrared tube and the timer are turned off, and the lock is unlocked or locked successfully; if the infrared tube does not detect that the lock tongue has reached the specified unlocking position within the set time, it is determined whether the number of recovery times of the current stall has reached the set value. If so, the motor infrared tube is turned off and the stall state is entered. If not, step 4 is repeated.

5. The method for detecting and recovering an electronic lock jam according to claim 1, characterized in that: When entering the stall state, the motor is turned off and waits for the next startup to resume.