Wireless encrypted digital lock and unlocking method thereofTechnical Field
The invention relates to the technical field of intelligent locks, in particular to a wireless encryption digital lock and an unlocking method thereof.
Background
Along with the rapid development of modern society, the application field of lock is more and more extensive, and everyone need carry the key more and more, if the key forgets to carry or lose will cause very big inconvenience. At present, a plurality of intelligent locks are used, namely a key type coded lock and a fingerprint lock, and an automatic unlocking mode is also adopted under the condition that a mobile phone is close to the intelligent lock, and the three modes can solve the problem that a key is lost and the door cannot be opened, but have the defects, wherein the key number of the key type coded lock is too large, the operation is inconvenient, and the password is easy to crack due to the difficult realization of blind key play and the existence of key traces; in addition, the fingerprint is unblanked and is attached to the dust easily at the fingerprint collection screen in the use to lead to unable accurate identification user's fingerprint, perhaps the fingerprint can not be opened when impaired, reduced the availability factor of fingerprint lock. Furthermore, the existing method for opening the intelligent lock through the mobile phone is to open the intelligent lock according to the difference of signal strength, when the signal strength is greater than the signal strength, and close the intelligent lock when the signal strength is less than the signal strength, and the unlocking mode has the possibility of mistaken unlocking. Along with the improvement of living standard of people, people put forward higher requirements on the convenience and the intellectualization of the operation of the lock.
Disclosure of Invention
People can not leave the cell-phone in present's the life, and it is not leaving the hand to say that the cell-phone, if send encryption digital key through carrying the cell-phone, one can open the door according to the button of opening the door on the door, need not operate APP, and all people can use like this, and is safe convenient, convenient.
The invention aims to provide a wireless encrypted digital lock, which enables unlocking to be safer, more convenient and more reliable and realizes one-key unlocking. The mobile phone unlocking device does not need to be operated on the mobile phone, so that the old and children can unlock the lock smoothly.
The technical scheme for solving the problems is as follows: a wireless encrypted digital lock comprises a motor module and a mechanical mechanism, wherein the motor module is used for driving an intelligent door lock; the main control module is used for controlling the motor module; the mobile phone also comprises a wireless module, a mobile phone, a server and a door opening key;
the wireless module is used for transmitting data and plays a role of a data line; the wireless module is connected with the mobile phone through a wireless network and is used for transmitting the encrypted digital key on the mobile phone to the main control module;
the mobile phone is provided with an APP, a corresponding encrypted digital key is generated according to the filled information, and the mobile phone sends the generated encrypted digital key to the server and the mobile phone; the mobile phone is connected with the server through a wireless network;
the door opening key is used for triggering the main control module to send the encrypted digital key to the mobile phone;
the server is used for recording the encrypted digital key, is mainly used for receiving the encrypted digital key sent by the mobile phone, and sends return information to the mobile phone after the encrypted digital key is stored;
the main control module is electrically connected with the wireless module, the motor module and the door opening key; the main control module is used for receiving unlocking information of the door opening key, then sending the encrypted digital key one by one to the matched mobile phone, exchanging data with the mobile phone APP through the wireless module, verifying the encrypted digital key of the mobile phone APP, if the verification is passed, the mechanical mechanism of the motor module driving intelligent door lock is unlocked, and if the verification fails, the intelligent door lock cannot be unlocked.
The further technical scheme is as follows: the encryption digital key is generated by user related information and hardware related information in a comprehensive mode, after unlocking is completed each time, the mobile phone automatically generates a new encryption digital key, and the previous encryption digital key is invalid.
The further technical scheme is as follows: the wireless module is one or a combination of a cellular network, a Wi-Fi network and a Bluetooth network.
The further technical scheme is as follows: still including the doorbell, the doorbell is connected with host system, if host system verifies that cell-phone APP's encryption digital key fails then unable unblanking and doorbell sound production.
The other related technical scheme is as follows: an unlocking method of a wireless encryption digital lock is the unlocking method of the wireless encryption digital lock, and comprises the following steps:
initial matching: when the mobile phone is initially matched with the mobile phone, the mobile phone sends the unlocked encrypted digital key to the server, and the server returns information to the mobile phone after storing the encrypted digital key; after receiving the return information of the server, the mobile phone sends the encrypted digital key to the main control module, and after the main control module stores the encrypted digital key, the mobile phone returns the information to the mobile phone; after the mobile phone receives the return information of the master control module, the encrypted digital key on the mobile phone is successfully matched with the encrypted digital key stored in the master control module, namely the initial matching is completed;
unlocking: when a user presses a door opening key, the master control module receives unlocking information and sends the encrypted digital keys to the matched mobile phones one by one, and the mobile phones send the encrypted digital keys and signal strength to the master control module after receiving the information; the master control module successfully compares the encrypted digital key and sends pairing success information to the mobile phone; after the mobile phone receives the pairing success information of the master control module, a new encrypted digital key is edited and sent to the server, and after the server successfully stores the new encrypted digital key, the information is returned to the mobile phone; after receiving the return information of the server, the mobile phone sends a new password to the main control module, and after the main control module successfully stores the new password, the mobile phone returns the information to the mobile phone and unlocks the mobile phone;
when a plurality of mobile phones are unlocked together: when a user presses a door opening key, the master control module receives unlocking information and sends the encrypted digital keys to the matched mobile phones one by one, and after the plurality of mobile phones receive the information, the encrypted digital keys and the signal intensity are respectively sent to the master control module; the master control module successfully compares the encrypted digital keys one by one, only selects the mobile phone with the strongest signal strength, and sends pairing success information to the mobile phone with the strongest signal strength, after the mobile phone with the strongest signal strength receives the pairing success information of the master control module, a new password is edited and sent to the server, and the server successfully stores the new password and returns information to the mobile phone with the strongest signal strength; after receiving the return information of the server, the mobile phone with the strongest signal strength sends a new password to the main control module, the main control module successfully stores the new password, and returns the information to the mobile phone with the strongest signal strength and unlocks the mobile phone;
when the mobile phone is not connected with the server: when a user presses a door opening key, the master control module receives unlocking information and sends the encrypted digital keys to the matched mobile phones one by one, and the mobile phones send the encrypted digital keys and signal strength to the master control module after receiving the information; the master control module successfully compares the encrypted digital key and sends pairing success information to the mobile phone; after the mobile phone receives the successful pairing information of the master control module, a new encrypted digital key is edited and sent to the server, the server does not respond, the mobile phone cannot receive the return information of the server, the mobile phone does not store the new encrypted digital key, only stores the old encrypted digital key and sends information to the master control module to store the information of the old encrypted digital key; the master control module directly unlocks after receiving the information of the mobile phone without changing the encrypted digital key;
reinstalling APP in the mobile phone: and filling by the user according to the APP prompt: and if the information is all consistent, the server sends the password to the mobile phone, and if the user does not remember the information, the initial matching is required to be carried out again.
The further technical scheme is as follows: the wireless encryption digital lock further comprises a doorbell, the doorbell is connected with the main control module, and if the main control module verifies that the encryption digital key of the mobile phone APP fails, the lock cannot be unlocked and the doorbell sounds.
Due to the adoption of the technical scheme, the wireless encryption digital lock has the following characteristics and beneficial effects:
according to the wireless encrypted digital lock, the encrypted digital key is sent by carrying the mobile phone, and the door can be opened by pressing the unlocking key, so that all people can use the wireless encrypted digital lock, and the wireless encrypted digital lock is safe, convenient and fast and does not need to operate an APP. Compared with fingerprint unlocking, the fingerprint unlocking device has the advantages that the fingerprint unlocking convenience is realized, the fingerprint unlocking identification rate is higher than that of fingerprint unlocking, and the 100% unlocking rate can be realized. The wireless signal of the wireless module of the invention only plays a role of connection, and is equivalent to a data line.
Compared with password unlocking, the wireless encryption digital lock is more convenient, more convenient and safer to unlock than the password unlocking, is formed by mixing 512-bit numbers, English capitals and English lowercases, and automatically generates a new encryption digital key after each use.
Compared with NFC card swiping, the wireless encryption digital lock is more convenient and faster, and the mobile phone can be unlocked without being drawn out.
Compared with the existing intelligent lock close to the mobile phone, the wireless encryption digital lock provided by the invention has the advantages that the unlocking is not carried out by mistake, the real-time scanning is not needed to save electricity, and the security is higher than that of the existing intelligent lock close to the mobile phone.
The technical features of the wireless digital encryption lock of the present invention will be further described with reference to the accompanying drawings and embodiments.
Drawings
Fig. 1 is a schematic structural diagram of a wireless encryption digital lock ofembodiment 1.
In the figure:
the system comprises a main control module, a 2-door opening key, a 3-motor module, a 4-wireless module, a 5-mobile phone, a 6-server and a 7-doorbell.
Detailed Description
Example 1:
as shown in fig. 1, a wireless encrypted digital lock comprises amotor module 3 for driving a mechanical mechanism of an intelligent door lock; themain control module 1 is used for controlling the motor module; the system also comprises awireless module 4, amobile phone 5, aserver 6, adoor opening key 2 and adoorbell 7.
Themotor module 3 comprises a motor, and themotor module 3 controls the motor to rotate forward and backward and is used for driving a mechanical mechanism of the intelligent door lock.
The wireless module is used for transmitting data and plays a role of a data line; the wireless module is connected with the mobile phone through a wireless network and is used for transmitting the encrypted digital key on the mobile phone to the main control module; the wireless module is one or a combination of a cellular network, a Wi-Fi network and a Bluetooth network.
The mobile phone is provided with an APP, a corresponding encrypted digital key is generated according to the filled information, and the mobile phone sends the generated encrypted digital key to the server and the mobile phone; the mobile phone is connected with the server through a wireless network; the mobile phone is connected with the main control module through the wireless module.
The door opening key is used for triggering the main control module to send the encrypted digital key to the mobile phone.
The server is used for recording the encrypted digital key, mainly used for receiving the encrypted digital key sent by the mobile phone and sending the return information to the mobile phone after the encrypted digital key is stored;
the main control module is electrically connected with the wireless module, the motor module, the door opening button and the doorbell; the main control module is used for receiving unlocking information of the door opening key, then sending the encrypted digital keys to the matched mobile phones one by one, exchanging data with the mobile phone APP through the wireless module, verifying the encrypted digital keys of the mobile phone APP, and if the data are verified, the motor module drives a mechanical mechanism of the intelligent door lock to unlock; if the verification fails, the lock cannot be unlocked and the doorbell sounds.
The encrypted digital key is generated by user related information and hardware related information in a comprehensive mode, after unlocking is completed each time, the mobile phone automatically generates a new encrypted digital key, and the former digital key is invalid.
The encryption digital key is generated by integrating user related information and hardware related information, a new encryption digital key is automatically generated after unlocking is completed each time, and the former digital key is invalid. For example, the user-related information and the hardware-related information include a user name, a user mobile phone number, a user identification number, a user password and a binding hardware ID, and are formed by mixing 512-digit numbers, capital english letters and lowercase english letters, and a new encrypted digital key is automatically generated after each use.
Example 2:
an unlocking method of a wireless encryption digital lock is the unlocking method of the wireless encryption digital lock inembodiment 1, and comprises the following steps:
initial matching: when the mobile phone is initially matched with the mobile phone, the mobile phone sends the unlocked encrypted digital key to the server, and the server returns information to the mobile phone after storing the encrypted digital key; after receiving the return information of the server, the mobile phone sends the encrypted digital key to the main control module, and after the main control module stores the encrypted digital key, the mobile phone returns the information to the mobile phone; after the mobile phone receives the return information of the master control module, the encrypted digital key on the mobile phone is successfully matched with the encrypted digital key stored in the master control module, namely the initial matching is completed.
Unlocking: when a user presses a door opening key, the master control module receives unlocking information and sends the encrypted digital keys to the matched mobile phones one by one, and the mobile phones send the encrypted digital keys and signal strength to the master control module after receiving the information; the master control module successfully compares the encrypted digital key and sends pairing success information to the mobile phone; after the mobile phone receives the pairing success information of the master control module, a new encrypted digital key is edited and sent to the server, and after the server successfully stores the new encrypted digital key, the information is returned to the mobile phone; and after the main control module successfully stores the information, the mobile phone returns the information to the mobile phone and unlocks. If the master control module fails to compare the encrypted digital key, the unlocking doorbell cannot sound.
When a plurality of mobile phones are unlocked together: when a user presses a door opening key, the master control module receives unlocking information and sends the encrypted digital keys to the matched mobile phones one by one, and after the plurality of mobile phones receive the information, the encrypted digital keys and the signal intensity are respectively sent to the master control module; the master control module successfully compares the encrypted digital keys one by one, only selects the mobile phone with the strongest signal strength (the master control module can calculate the distance between the master control module and the mobile phone according to the wireless signal strength, the stronger the signal strength of the mobile phone is, the closer the mobile phone is to the door lock), and sends pairing success information to the mobile phone with the strongest signal strength, after the mobile phone with the strongest signal strength receives the pairing success information of the master control module, a new password is edited, the new password is sent to the server, the server successfully stores the information, and the information is returned to the mobile phone with the strongest signal strength; and after receiving the return information of the server, the mobile phone with the strongest signal strength sends a new password to the main control module, the main control module successfully stores the new password, and returns the information to the mobile phone with the strongest signal strength to unlock the mobile phone. If the master control module fails to compare the encrypted digital key, the unlocking doorbell cannot sound.
When the mobile phone is not connected with the server: when a user presses a door opening key, the master control module receives unlocking information and sends encrypted digital keys to matched mobile phones one by one, and the mobile phones send the encrypted digital keys and signal intensity to the master control module after receiving the information; the master control module successfully compares the encrypted digital key and sends pairing success information to the mobile phone; after the mobile phone receives the successful pairing information of the master control module, a new encrypted digital key is edited and sent to the server, the server does not respond, the mobile phone cannot receive the return information of the server, the mobile phone does not store the new encrypted digital key, only stores the old encrypted digital key and sends information to the master control module to store the information of the old encrypted digital key; the master control module directly unlocks after receiving the information of the mobile phone without changing the encrypted digital key.
Reinstalling APP in the mobile phone: and filling by the user according to the APP prompt: the user name + the mobile phone number of the user + the identity card number of the user + the password of the user, if the information is all consistent, the password is sent to the mobile phone in the server, and if the user does not remember the information, the initial matching needs to be carried out again. And if the user does not remember the information and does not unlock the lock, contacting the customer service for processing. Forgetting the mobile phone can be unlocked remotely by a key or other users.
The invention can be applied to the field of electric locks such as anti-theft locks, safes, door locks, desks, cabinets, automobile door locks, motorcycle electric door locks, electric vehicle electric door locks and the like.
The above description is only a preferred embodiment of the present invention, and not intended to limit the scope of the present invention, and all equivalent structural changes made by using the contents of the present specification, or any direct or indirect application attached to other related technical fields, are included in the scope of the present invention.