Patent attributes
A method and device for controlling an electronic lock are disclosed. The electronic lock includes a lock catch and a lock body that includes a first lock hook and a second lock hook. The first lock hook has a first lock hook locking position where it is engaged with the lock catch and a first lock hook unlocking position where it is separated from the lock catch. The second lock hook has a second lock hook locking position where it locks the first lock hook in the first lock hook locking position and a second lock hook unlocking position where it is separated from the first lock hook. The method includes: detecting whether a locking operation occurs; and when detecting a locking operation, controlling at least one of the first lock hook and the second lock hook to vibrate, allowing the second lock hook to lock the first lock hook in the first lock hook locking position or to be separated from the first lock hook.