Summary of the invention
The present invention is directed to prior art Problems existing and propose mechanical lock in a kind of electronic lock and electronic lock, object is the security performance increasing mechanical lock in electronic lock, improves the safety of electronic lock.
The present invention is achieved in that
Mechanical lock in a kind of electronic lock, comprise lock body, be set in the locking closure that described lock body also can rotate relative to lock body, described mechanical lock has lockhole, described lockhole comprises the first hole be positioned on lock body and the second hole be positioned on locking closure, and the inner face of described locking closure is fixed with gear.
A kind of electronic lock, comprises above-mentioned mechanical lock, and the gear on described mechanical lock and drive engagement, described drive is fixed on a motor, and described motor and control chip electrically connect.
Mechanical lock in a kind of electronic lock provided by the present invention and electronic lock, because the locking closure of mechanical lock can rotate relative to lock body, staggered in first hole and the second hole, make lockhole imperfect, make it cannot carry out machinery to unblank, ensure that the security performance of mechanical lock in electronic lock, improve the security performance of electronic lock entirety.
Detailed description of the invention
Below just accompanying drawing in conjunction with the embodiments, is described in further detail the specific embodiment of the present invention, is easier to understand, grasp to make technical solution of the present invention.Should be appreciated that specific embodiment described herein only in order to explain the present invention, be not intended to limit the present invention.
Present embodiments provide the mechanical lock in a kind of electronic lock and this electronic lock, as shown in Figure 1, comprise lock body 100 and locking closure 200, described locking closure 200 is set on described lock body 100 and also can rotates relative to lock body 100.Consult Fig. 2, mechanical lock has the lockhole 300 inserted for key, lockhole 300 comprises the first hole 310 be positioned on lock body 100 and the second hole 320 be positioned on locking closure 200, when locking closure 200 rotates relative to lock body 100, the first hole 310 can be realized and stagger (consulting Fig. 3) and close (consulting Fig. 2) in the second hole 320.When staggering in the first hole 310 and the second hole 320, electronic lock is in blocking, now cannot pass through key unlocking, ensure that the safety of mechanical lock.
Specifically, consult Fig. 1, locking closure 200 inner face is fixed with gear 210, (following structure is not shown), and gear 210 and drive engagement, described drive is fixed on a motor, and described motor and control chip electrically connect.When electronic lock is in blocking, when user inputs password, electronic lock cylinder directly can control electronic lock and realize unblanking, and meanwhile, control chip controls motor and rotates, driven gear 210 rotates, the conjunction realizing the first hole 310 and the second hole 320 is right, like this when electronic lock cylinder damage cannot directly realize unblanking, also can realize unblanking with mechanical lock, both ensure that the safety of electronic lock, in turn ensure that electronics unblank and machinery unblank difunctional.
Based on above-mentioned electronic lock structure, present embodiments provide a kind of electronic lock and to unblank control method, concrete steps are as follows:
A, the first hole and the second hole are in misaligned state, input password, and control chip judges that whether password is correct, if password correctly enters step B, if code error, terminates.
Password in steps A can be numerical ciphers, finger-print cipher, IC-card password etc.
B, control chip control electronic lock cylinder execution and open electronic lock action.
C, control chip judge whether electronic lock is opened, if electronic lock is opened, terminate, if electronic lock is not opened, control motor rotate until the first hole and the second hole close right.
Control chip control electronic lock cylinder perform open electronic lock action time, also can control motor simultaneously and rotate that the first hole and the second hole are closed is right, this can by changing corresponding control program in control chip.
D, insertion key are by mechanical lock unlocking electronic lock.
When electronic lock cannot be unblanked by electronic lock cylinder, possible electronic lock cylinder damages, and at this moment just can be undertaken being unblanked by mechanical lock by standby key.
E, from input password 30-120 second, control chip controls motor revolution and makes the first hole and the dislocation of the second hole.
Ordinary people is no more than 30 seconds by the key operated process of unblanking and just can completes, and to input after password 20 seconds under normal circumstances or 30 seconds control motors turn round.When there being the elderly's action comparatively slow in family, can be also more than 60 seconds or 60 seconds by set of time.In addition, control chip also can control motor revolution by 5-10 after being unlocked second, namely infers that the revolution of rear control motor extracted by key.Locked because user does not look on the bright side of things again after input password, at this moment from input password, the mode of timing can ensure the revolution of motor, ensures the safety of electronic lock.
Should be understood that; the foregoing is only preferred embodiment of the present invention; be not sufficient to limit technical scheme of the present invention; for those of ordinary skills; within the spirit and principles in the present invention; can be increased and decreased according to the above description, replaced, converted or improved, and all these increases and decreases, replacement, conversion or the technical scheme after improving, all should belong to the protection domain of claims of the present invention.