CN112750242B - Dynamic coded lock unlocking method and system and dynamic coded lock circuit - Google Patents

Dynamic coded lock unlocking method and system and dynamic coded lock circuit Download PDF

Info

Publication number
CN112750242B
CN112750242B CN202110096001.0A CN202110096001A CN112750242B CN 112750242 B CN112750242 B CN 112750242B CN 202110096001 A CN202110096001 A CN 202110096001A CN 112750242 B CN112750242 B CN 112750242B
Authority
CN
China
Prior art keywords
unlocking
dynamic password
dynamic
verification
lock
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202110096001.0A
Other languages
Chinese (zh)
Other versions
CN112750242A (en
Inventor
肖维亮
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guangzhou Changlian Information Technology Co ltd
Original Assignee
Guangzhou Changlian Information Technology Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Guangzhou Changlian Information Technology Co ltd filed Critical Guangzhou Changlian Information Technology Co ltd
Priority to CN202110096001.0A priority Critical patent/CN112750242B/en
Publication of CN112750242A publication Critical patent/CN112750242A/en
Application granted granted Critical
Publication of CN112750242B publication Critical patent/CN112750242B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G07CHECKING-DEVICES
    • G07CTIME OR ATTENDANCE REGISTERS; REGISTERING OR INDICATING THE WORKING OF MACHINES; GENERATING RANDOM NUMBERS; VOTING OR LOTTERY APPARATUS; ARRANGEMENTS, SYSTEMS OR APPARATUS FOR CHECKING NOT PROVIDED FOR ELSEWHERE
    • G07C9/00Individual registration on entry or exit
    • G07C9/00174Electronically operated locks; Circuits therefor; Nonmechanical keys therefor, e.g. passive or active electrical keys or other data carriers without mechanical keys
    • G07C9/00309Electronically operated locks; Circuits therefor; Nonmechanical keys therefor, e.g. passive or active electrical keys or other data carriers without mechanical keys operated with bidirectional data transmission between data carrier and locks
    • GPHYSICS
    • G07CHECKING-DEVICES
    • G07CTIME OR ATTENDANCE REGISTERS; REGISTERING OR INDICATING THE WORKING OF MACHINES; GENERATING RANDOM NUMBERS; VOTING OR LOTTERY APPARATUS; ARRANGEMENTS, SYSTEMS OR APPARATUS FOR CHECKING NOT PROVIDED FOR ELSEWHERE
    • G07C9/00Individual registration on entry or exit
    • G07C9/00174Electronically operated locks; Circuits therefor; Nonmechanical keys therefor, e.g. passive or active electrical keys or other data carriers without mechanical keys
    • G07C9/00571Electronically operated locks; Circuits therefor; Nonmechanical keys therefor, e.g. passive or active electrical keys or other data carriers without mechanical keys operated by interacting with a central unit
    • GPHYSICS
    • G07CHECKING-DEVICES
    • G07CTIME OR ATTENDANCE REGISTERS; REGISTERING OR INDICATING THE WORKING OF MACHINES; GENERATING RANDOM NUMBERS; VOTING OR LOTTERY APPARATUS; ARRANGEMENTS, SYSTEMS OR APPARATUS FOR CHECKING NOT PROVIDED FOR ELSEWHERE
    • G07C9/00Individual registration on entry or exit
    • G07C9/00174Electronically operated locks; Circuits therefor; Nonmechanical keys therefor, e.g. passive or active electrical keys or other data carriers without mechanical keys
    • G07C9/00309Electronically operated locks; Circuits therefor; Nonmechanical keys therefor, e.g. passive or active electrical keys or other data carriers without mechanical keys operated with bidirectional data transmission between data carrier and locks
    • G07C2009/0042Electronically operated locks; Circuits therefor; Nonmechanical keys therefor, e.g. passive or active electrical keys or other data carriers without mechanical keys operated with bidirectional data transmission between data carrier and locks the transmitted data signal containing a code which is changed
    • G07C2009/00476Electronically operated locks; Circuits therefor; Nonmechanical keys therefor, e.g. passive or active electrical keys or other data carriers without mechanical keys operated with bidirectional data transmission between data carrier and locks the transmitted data signal containing a code which is changed dynamically

Landscapes

  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Lock And Its Accessories (AREA)

Abstract

The invention relates to a dynamic coded lock unlocking method, a system and a dynamic coded lock circuit, wherein the unlocking method comprises the steps that a server responds to an unlocking request of a user, and an unlocking parameter is encrypted through an encryption key to generate a dynamic code; the user inputs a dynamic password, the dynamic password lock decrypts the dynamic password to obtain corresponding unlocking parameters and a generation time point, the dynamic password lock compares the unlocking parameters obtained by decryption with the unlocking parameters prestored in the dynamic password lock, after the consistency comparison is passed, whether the dynamic password is used for the first time is judged, if so, effective time verification is carried out, and if not, the effective time verification or the first verification pass of the effective time verification is carried out, and the dynamic password lock is opened. The unlocking system and the dynamic coded lock circuit are used for realizing the unlocking method. According to the invention, the dynamic password is sent to the user through the server, and verification of the dynamic password is completed at the dynamic password lock, so that the safety and stability of the dynamic password lock can be improved, and the use cost is reduced.

Description

Dynamic coded lock unlocking method and system and dynamic coded lock circuit
Technical Field
The invention relates to the technical field of coded locks, in particular to a dynamic coded lock unlocking method, a dynamic coded lock unlocking system and a dynamic coded lock circuit.
Background
The traditional lockset is opened by a key, and the key needs to be carried about, is troublesome and has low safety. With the development of electronic technology in recent years, the application of the coded lock in daily life is becoming widespread. A common coded lock is usually provided with a unique code, and the door lock can be opened only when the correct code is input, so that the coded lock is suitable for private home environments.
In other scenes with high mobility of personnel such as hotels and apartments, if the password is modified once every time a resident is replaced, the management work of the hotels and apartments is very complicated, and the method is not practical.
At present, a common practice is to adopt a method of refreshing dynamic passwords in real time, a communication module is arranged in a password lock, the communication module is communicated with a server in a GSM (global system for mobile communications), TD-LTE (time division-Long term evolution) mode and the like, the server responds to a request of a user, meanwhile, the dynamic passwords are sent to the user and the password lock, when the user inputs the dynamic passwords, the password lock is communicated with the server to confirm, after the verification is confirmed, the door lock is opened, the unlocking mode is required to be established on the basis that the password lock is in communication connection with the server, and the following defects exist:
Firstly, the security problem is that the dynamic password of the coded lock is sent by the server in real time, and the coded lock is unlocked after confirming that the dynamic password is correct to the server, namely, the unlocking and the locking of the coded lock are controlled by external equipment, namely, the server, so that the risk of being cracked by the outside is higher, the unlocking of the coded lock is controlled by communicating with the coded lock through other equipment, and a certain potential safety hazard exists;
Secondly, the stable communication connection is established between the server and the coded lock when the situation that signals are interfered and the like causes unstable communication between the server and the coded lock, so that the coded lock cannot be normally closed, and the normal experience of a user is affected. Meanwhile, if the communication is performed by adopting the modes of GSM, TD-LTE and the like, a SIM card is generally required to be placed in each coded lock to provide data flow, which increases the communication cost, so that the use cost of the coded lock is increased.
In summary, the existing coded lock cannot be well applied to the scene of large mobility of people such as hotels and apartments, and the dynamic coded lock has the defects of low security, poor stability and high communication cost.
Disclosure of Invention
Aiming at the defects existing in the prior art, one of the purposes of the invention is to provide a dynamic coded lock unlocking method, the other purpose is to provide a dynamic coded lock unlocking system, and the other purpose is to provide a dynamic coded lock circuit. According to the invention, the dynamic password is sent to the user through the server, and verification of the dynamic password is completed at the dynamic password lock, so that the safety and stability of the dynamic password lock can be improved, and the use cost is reduced.
The technical aim of the invention is realized by the following technical scheme: an unlocking method of a dynamic coded lock, wherein unlocking parameters are prestored in the dynamic coded lock; writing the unlocking parameters into a server, and presetting an encryption key in the server;
presetting an effective time period and a decryption key corresponding to the encryption key in the dynamic coded lock;
the unlocking method of the dynamic coded lock comprises the following steps:
S01, the server responds to an unlocking request of a user, encrypts the unlocking parameter through the encryption key to generate a dynamic password, wherein the dynamic password comprises a generation time point of the dynamic password, and sends the dynamic password to the user;
S02, inputting the dynamic password into the dynamic password lock by a user, and decrypting the dynamic password by the dynamic password lock through the decryption key to obtain unlocking parameters and generation time points corresponding to the dynamic password;
S03, the dynamic coded lock compares the unlocking parameters obtained through decryption with the unlocking parameters prestored in the dynamic coded lock, if the consistency comparison is passed, the next step is carried out, and otherwise, the verification is not passed;
S04, after the consistency comparison is passed, judging whether the dynamic password is used for the first time, if so, carrying out effective time verification, if not, carrying out effective verification,
The effective time verification specifically comprises the following steps: comparing the difference between the current time point and the generation time point with the effective time period, if the difference between the current time point and the generation time point is smaller than or equal to the effective time period, verifying the effective time, marking the dynamic password as used, and opening the dynamic password lock; if the difference between the current time point and the generation time point is larger than the effective time period, the effective time verification is not passed, and the dynamic coded lock is kept closed;
The validity verification specifically comprises the following steps: and verifying the validity of the dynamic password, opening the dynamic password lock if the verification is passed, and otherwise, keeping the dynamic password lock closed.
In one embodiment, in the step S01, the step of encrypting the unlocking parameter by the encryption key to generate a dynamic password by the server in response to an unlocking request of the user is specifically:
and the server responds to an unlocking request of a user, receives user information and unlocking authority of the user, verifies the user information and the unlocking authority, and encrypts unlocking parameters corresponding to the user to generate a dynamic password after the user information and the unlocking authority pass the verification.
In one embodiment, the unlocking authority includes an unlocking period and an unlocking number.
In one embodiment, in the verification of validity, the verification of the validity of the dynamic password specifically includes:
Judging whether the current time point is in the unlocking period corresponding to the dynamic password, judging whether the unlocking times of the dynamic password are single, if the current time point is in the unlocking period corresponding to the dynamic password and the unlocking times of the dynamic password are not single, verifying the validity, otherwise, verifying the validity.
In one embodiment, the effective period of time is 24 hours.
In one embodiment, the dynamic password is a 6-12 digit digital password.
In one embodiment, the encryption key is encrypted by an encryption algorithm, the decryption key is decrypted by a decryption algorithm, and the encryption algorithm and the decryption algorithm are at least one of the following:
HOPT algorithm, DES algorithm, RSA algorithm, and SHA algorithm.
The invention also provides an unlocking system of the dynamic coded lock, which comprises a server, and an input module, a verification module and an unlocking module which are arranged at the dynamic coded lock; the server is in communication connection with the verification module; the output end of the input module is electrically connected with the input end of the verification module, and the output end of the verification module is electrically connected with the input end of the unlocking module;
The verification module pre-stores unlocking parameters, the unlocking parameters are written in the server, an encryption key is preset in the server, and an effective time period and a decryption key corresponding to the encryption key are preset in the verification code block;
The server is used for responding to an unlocking request of a user, encrypting the unlocking parameter through the encryption key to generate a dynamic password, wherein the dynamic password comprises a generation time point of the dynamic password, and sending the dynamic password to the user;
the input module is used for inputting a dynamic password by a user;
The verification module is used for decrypting the dynamic password through the decryption key to obtain an unlocking parameter corresponding to the dynamic password and a generation time point, comparing the unlocking parameter obtained by decryption with the unlocking parameter prestored by the verification module, judging whether the dynamic password is used for the first time, if so, carrying out effective time verification, if not, carrying out effective verification,
The effective time verification specifically comprises the following steps: comparing the difference between the current time point and the generation time point with the effective time period, if the difference between the current time point and the generation time point is smaller than or equal to the effective time period, verifying the effective time, marking the dynamic password as used, and opening the dynamic password lock; if the difference between the current time point and the generation time point is larger than the effective time period, the effective time verification is not passed, and the dynamic coded lock is kept closed;
the validity verification specifically comprises the following steps: verifying the validity of the dynamic password, if the verification is passed, opening the dynamic password lock, otherwise, keeping the dynamic password lock closed;
And the unlocking module is used for unlocking the dynamic coded lock when verification is passed.
The invention also provides a dynamic coded lock circuit, which comprises a coded input module, an M1 card reading module, an RF433 module and a main control module;
the output ends of the password input module, the M1 card reading module and the RF433 module are electrically connected with the input end of the main control module, and the output end of the main control module is electrically connected with the input end of the electromagnetic lock power supply of the dynamic password lock.
In one embodiment, the main control module comprises a processor chip and a Bluetooth communication chip which are electrically connected.
In summary, the invention has the following beneficial effects:
the invention can encrypt the unlocking parameter according to the request of the user to generate the dynamic password, and the dynamic password lock verifies the dynamic password after the user inputs the dynamic password, and the door lock is opened after the verification is passed. The method can generate different dynamic passwords in real time, and is suitable for scenes with high mobility of people such as hotels and apartments. And the verification of the dynamic password is completed at the dynamic password lock, and is not controlled from the outside by external equipment such as a server, so that the risk of external cracking can be reduced, and the security is higher. By setting the effective time period, the dynamic password needs to be used for activation for the first time in a certain period after generation, so that the probability of collision between the random input password and the effective password is greatly reduced, and the safety is improved.
The dynamic coded lock does not need to be communicated with a server, can be suitable for scenes with strong signal interference or unstable signal transmission, solves the problem that the normal opening and closing of the dynamic coded lock are affected due to unstable communication between the dynamic coded lock and the server, and enables the use process of the dynamic coded lock to be more stable. Meanwhile, communication between the dynamic coded lock and the server is not required to be maintained, so that the communication cost can be reduced, and the use cost of the dynamic coded lock is further reduced.
Drawings
FIG. 1 is a flow chart of steps of a method for unlocking a dynamic coded lock according to an embodiment of the present invention;
FIG. 2 is a block diagram of a dynamic coded lock unlocking system according to an embodiment of the present invention;
FIG. 3 is a block diagram of a dynamic trick lock circuit according to an embodiment of the present invention;
fig. 4 is a pin wiring diagram of a bluetooth communication chip according to an embodiment of the invention;
FIG. 5 is a pin wiring diagram of a processor chip according to an embodiment of the present invention;
FIG. 6 is a circuit diagram of a password input module according to an embodiment of the invention;
FIG. 7 is a circuit diagram of an M1 card reading module according to an embodiment of the invention;
Fig. 8 is a circuit diagram of the RF433 module according to an embodiment of the present invention.
In the figure: the system comprises a 1-server, a 2-dynamic coded lock, a 21-input module, a 22-verification module, a 23-unlocking module, a 3-coded input module, a 4-M1 card reading module, a 5-RF433 module, a 6-main control module and a 7-electromagnetic lock power supply.
Detailed Description
The present invention will be described in detail below with reference to the accompanying drawings and examples.
As shown in FIG. 1, the unlocking method of the dynamic coded lock comprises the steps of pre-configuration. The pre-configuration step specifically includes that an unlocking parameter is pre-stored in the dynamic coded lock 2, when the dynamic coded lock 2 is installed, an initial code is set by a user and is input into the dynamic coded lock 2, the dynamic coded lock 2 decodes and converts the initial code into a data parameter which can be recognized by a machine, the data parameter is the unlocking parameter, and the unlocking parameter can be used for unlocking the dynamic coded lock 2.
After the user sets the initial password, the software matched with the dynamic password lock 2 is installed on the terminal equipment such as a PC, the software is used for communication with the server 1, after registration and login, data such as a unique identification number of the dynamic password lock 2 can be input, the user is bound with the installed dynamic password lock 2, the user writes the set initial password into the server 1 through the software, the server 1 decodes and converts the initial password into corresponding unlocking parameters, and the unlocking parameters are identical with the unlocking parameters in the dynamic password lock 2.
The server 1 is preset with encryption keys for encrypting the unlocking parameters, and in order to obtain dynamic passwords with a plurality of different authorities, the encryption keys are usually arranged in a plurality, and the unlocking parameters are encrypted by the different encryption keys to obtain the dynamic passwords with the different authorities. When the dynamic coded lock 2 leaves the factory, an effective time period is preset in the dynamic coded lock 2, the effective time period is generally the same when the dynamic coded lock leaves the factory, for example, the effective time period is configured to be 24 hours, and when a user performs authorized configuration, writing modification can be performed after connection is established between the dynamic coded lock 2 and an intelligent terminal such as a mobile phone. After the generation of the dynamic password, the server 1 must be activated for the first time in the corresponding dynamic password lock 2 in a limited period of time since the generation time point, otherwise the dynamic password is deactivated. The effective time period can be set at the end of the dynamic coded lock 2, and the effective time period can be set to be of different durations according to different use requirements of individual users. The dynamic coded lock 2 is also pre-configured with a decryption key corresponding to the encryption key, and when the dynamic coded lock 2 is input after the unlocking parameter is encrypted into a dynamic code by the encryption key at the server 1 end, the dynamic coded lock 2 is decrypted by the corresponding decryption key, and the unlocking parameter is reversely processed into the corresponding unlocking parameter.
After the above-described pre-configuration step is completed, the dynamic combination lock 2 is normally installed at the entrance guard. When the door control needs to be opened, the dynamic coded lock unlocking method is used as follows.
The unlocking method of the dynamic coded lock specifically comprises the following steps:
S01, installing matched software on a handheld intelligent terminal, such as a smart phone, a tablet personal computer and the like, and enabling the user to communicate with the server 1 after registering and logging in. The user sends an unlocking request to the server 1 through the handheld intelligent terminal, the server 1 responds to the unlocking request of the user, the unlocking parameters are encrypted through the encryption key to generate a dynamic password, and meanwhile the dynamic password comprises a generation time point of the dynamic password and is sent to the user;
s02, after receiving the dynamic password, a user inputs the dynamic password into the dynamic password lock 2, and the dynamic password lock 2 decrypts the dynamic password through a decryption key to obtain unlocking parameters and a generation time point corresponding to the dynamic password;
S03, carrying out consistency comparison on the unlocking parameters obtained by decryption and the unlocking parameters prestored by the dynamic coded lock 2, entering a next step for further verification after the consistency comparison is passed, and otherwise, not passing the verification;
s04, after consistency comparison is passed, firstly judging whether the dynamic password is used for the first time, if so, carrying out effective time verification, if not, carrying out effective verification,
The effective time verification specifically comprises the following steps: comparing the difference between the current time point and the generation time point with the effective time period, if the difference between the current time point and the generation time point is smaller than or equal to the effective time period, namely the dynamic password is used for the first time in the effective time period after the generation time point for activation and storage, the effective time is verified, the dynamic password is marked as used, and the dynamic password lock 2 is opened; if the difference between the current time point and the generation time point is larger than the effective time period, namely the dynamic password is not used for activating for the first time in the effective time period after the generation time point, the effective time verification is not passed, the dynamic password is invalid, and the dynamic password lock 2 is kept closed;
The validity verification specifically comprises the following steps: and verifying the validity of the dynamic password, if the verification is passed, opening the dynamic password lock 2, otherwise, keeping the dynamic password lock 2 closed.
When the applicant unlocks based on the current dynamic coded lock, the verification process of the dynamic coded lock needs to be completed with the assistance of external equipment such as a server 1, and the like, so that the problem of poor safety and stability in the unlocking process of the dynamic coded lock 2 is caused. In order to solve this problem, the verification process of the dynamic password is completed by the dynamic password lock 2 itself, so that communication with the server 1 is not required, and the above problem can be solved. However, the problem brought by this way is that, firstly, in order to facilitate memorizing and inputting, the length of the dynamic password is not suitable to be too long, usually 6-12 digits, and secondly, in order to support the dynamic passwords with different authorities, unlocking parameters corresponding to various dynamic passwords need to be pre-stored in the dynamic password lock 2, so that when the corresponding dynamic password is input, the dynamic password lock 2 can recognize, convert and execute corresponding actions, which occupies most of the storage capacity of the dynamic password lock 2, and more troublesome, because the unlocking parameters correspond to various dynamic passwords, a password can be input randomly, the probability that the password can open the dynamic password lock 2 is extremely high, that is, the probability that the randomly input password collides with the effective password is extremely high, so that the safety requirement of the dynamic password lock 2 in use cannot be met.
In order to solve the problem, the applicant introduces effective time period verification in the process of verifying the password according to the actual application scene of the dynamic password lock 2, namely, the generation time point of the dynamic password is simultaneously included in the generation of the dynamic password, and the dynamic password must be used for the first time to be activated in the corresponding dynamic password lock 2 in the effective time period after the generation time point, otherwise, the dynamic password is invalid. The probability of collision between the randomly input password and the effective password at a certain moment is as follows:
P= (number of dynamic passwords generated in the effective period of time before the current time point+number of used and continuously effective dynamic passwords)/number of dynamic passwords corresponding to the unlock parameters prestored in the dynamic password lock 2;
therefore, the probability of collision between the randomly input password and the effective password is greatly reduced, and the phenomenon that the randomly input password can unlock the dynamic password lock 2 is basically avoided.
The following will describe a practical application scenario of the unlocking method of the dynamic coded lock according to the present embodiment. Taking an apartment application scenario as an example, when a tenant looks at a house in the apartment renting process, a homeowner can request to obtain a dynamic password with single unlocking times from the server 1, and the dynamic password is sent to the tenant. The tenant can use the dynamic password to unlock the corresponding dynamic password lock 2 to see the house within 24 hours of the time point of generating the dynamic password, and after the dynamic password is used, the dynamic password is marked as invalid by the dynamic password lock 2, and the dynamic password lock 2 cannot be unlocked again. When a tenant looks at a house, the tenant does not need to open a door for the tenant in the past in person, especially when the tenant has multiple houses and is far away. After renting a house, the homeowner can generate a dynamic password corresponding to the unlocking period according to the period of the contract, so that repeated password input and deletion are not needed, and the homeowner can manage conveniently.
In some semi-open places, such as natatorium, gymnasium and the like, corresponding periodic passwords or time-limited passwords can be generated for different customers, repeated input and deletion of the passwords are not needed, and daily management is facilitated.
In the application scene of private residence, when a friend visits, a dynamic password with short timeliness or single time can be generated for the friend to use, and the password used by the friend does not need to be opened to the friend, so that the use is more convenient.
In application scenes of public access such as community access control, the dynamic passwords used by each person are different in a certain period, so that the tracing is more convenient.
The invention can encrypt the unlocking parameter according to the request of the user to generate the dynamic password, and the dynamic password lock 2 verifies the dynamic password after the user inputs the dynamic password, and the door lock is opened after the verification is passed. The method can generate different dynamic passwords in real time, and is suitable for scenes with high mobility of people such as hotels and apartments. And the verification of the dynamic password is completed at the dynamic password lock 2, and is not controlled from the outside by external equipment such as the server 1, so that the risk of external cracking can be reduced, and the security is higher. By setting the effective time period, the dynamic password needs to be used for activation for the first time in a certain period after generation, so that the probability of collision between the random input password and the effective password is greatly reduced, and the safety is improved.
The dynamic coded lock 2 does not need to be communicated with the server 1, can be suitable for scenes with strong signal interference or unstable signal transmission, solves the problem that the normal open and close of the dynamic coded lock 2 are affected due to unstable communication between the dynamic coded lock 2 and the server 1, and enables the use process of the dynamic coded lock 2 to be more stable. Meanwhile, communication between the dynamic coded lock 2 and the server 1 is not required to be maintained, so that communication cost can be reduced, and further, the use cost of the dynamic coded lock 2 is reduced.
In one embodiment, in step S01, in response to an unlocking request of a user, the server 1 encrypts the unlocking parameter with an encryption key to generate a dynamic password specifically:
The server 1 responds to an unlocking request of a user, receives user information and unlocking authority of the user, verifies the user information and the unlocking authority, and encrypts unlocking parameters corresponding to the user to generate a dynamic password after verification. When receiving an unlocking request of a user, the server 1 verifies the user information and unlocking authority of the user, can ensure the legality of the user identity, and can authorize various unlocking authorities according to different unlocking requests so as to meet diversified use requirements of the user.
In one embodiment, the unlocking authority specifically includes an unlocking period and unlocking times, for example, the dynamic password can have the following unlocking authorities:
1. the method is effective continuously, and the use times and the use time are not limited;
2. The door is opened in a limited time, the time is effective in a designated time period, and the use times are not limited;
3. For a specific period of time, such as a day or a specific period of time on a day;
4. The dynamic password lock 2 marks the dynamic password as invalid after unlocking the door once;
5. when the dynamic password is input, all dynamic passwords acquired by the server 1 are disabled.
Through above-mentioned multiple different unlocking authorities, can satisfy user's diversified user demand.
In one embodiment, in the verification of validity, the verification of the validity of the dynamic password specifically includes:
Judging whether the current time point is in the unlocking period corresponding to the dynamic password, judging whether the unlocking times of the dynamic password are single, if the current time point is in the unlocking period corresponding to the dynamic password and the unlocking times of the dynamic password are not single, verifying the validity, otherwise, verifying the validity. After judging that the dynamic password is not used for the first time, the validity verification is considered to pass when the dynamic password is required to be in a specified period corresponding to the dynamic password and the unlocking times of the dynamic password are unlimited times. Through the verification process, the validity of the dynamic password can be verified, and the operation is rapid.
In one embodiment, according to the common practical application scenario of the dynamic coded lock 2, the effective time period is set to 24 hours, so that the probability of collision between the random input password and the effective password can be greatly reduced, and meanwhile, the dynamic password can be conveniently activated by a user.
In one embodiment, the dynamic password is a 6-12 digit digital password, which can be conveniently memorized and input by a user and has enough digital information capacity.
In one embodiment, the encryption key is encrypted by an encryption algorithm, the decryption key is decrypted by a decryption algorithm, and the encryption algorithm and the decryption algorithm are at least one of the following:
HOPT algorithm, DES algorithm, RSA algorithm, and SHA algorithm. The algorithm has the advantages of good encryption effect, high safety and quick operation.
As shown in fig. 2, the invention further provides a dynamic coded lock unlocking system, which comprises a server 1, and an input module 21, a verification module 22 and an unlocking module 23 which are configured at the dynamic coded lock 2; the server 1 is in communication with the authentication module 22; the output end of the input module 21 is electrically connected with the input end of the verification module 22, and the output end of the verification module 22 is electrically connected with the input end of the unlocking module 23;
the verification module 22 pre-stores unlocking parameters, the unlocking parameters are written in the server 1, the encryption key is preset in the server 1, and the effective time period and the decryption key corresponding to the encryption key are preset in the verification code block;
The server 1 is used for responding to an unlocking request of a user, encrypting the unlocking parameter through an encryption key to generate a dynamic password, wherein the dynamic password comprises a generation time point of the dynamic password, and sending the dynamic password to the user;
the input module 21 is used for inputting a dynamic password by a user;
the verification module 22 is configured to decrypt the dynamic password by using the decryption key, obtain an unlock parameter and a generation time point corresponding to the dynamic password, compare the unlock parameter obtained by decryption with the unlock parameter pre-stored in the module itself, and then determine whether the dynamic password is used for the first time, if so, perform validity time verification, if not, perform validity verification,
The effective time verification specifically comprises the following steps: comparing the difference between the current time point and the generation time point with the effective time period, if the difference between the current time point and the generation time point is smaller than or equal to the effective time period, the effective time is verified, the dynamic password is marked as used, and the dynamic password lock 2 is opened; if the difference between the current time point and the generation time point is larger than the effective time period, the effective time verification is not passed, and the dynamic coded lock 2 is kept closed;
The validity verification specifically comprises the following steps: verifying the validity of the dynamic password, if the verification is passed, opening the dynamic password lock 2, otherwise, keeping the dynamic password lock 2 closed;
the unlocking module 23 is used for unlocking the dynamic coded lock 2 when the verification is passed.
The dynamic coded lock unlocking system has the advantages of high safety and stability and low communication cost due to the adoption of the unlocking method. The specific implementation manner of the dynamic coded lock unlocking system is similar to the specific implementation manner of the unlocking method, and can be understood with reference to the above description, so that redundancy is reduced, and no further description is given here.
As shown in fig. 3-8, the present invention further provides a dynamic coded lock circuit, which is disposed at the end of the dynamic coded lock 2 and is used to cooperate with the server 1 to implement the unlocking method described above. The circuit specifically comprises a password input module 3, an M1 card reading module 4, an RF433 module 5 and a main control module 6;
The output ends of the password input module 3, the M1 card reading module 4 and the RF433 module 5 are electrically connected with the input end of the main control module 6, and the output end of the main control module 6 is electrically connected with the input end of the electromagnetic lock power supply 7 of the dynamic password lock 2. The password input module 3 is typically a touch screen or a keypad for inputting dynamic passwords. The M1 card reading module 4 reads card information of electronic cards such as an IC card and the like through electromagnetic induction and inputs the card information into the main control module 6, so that the dynamic coded lock 2 can be compatible with an access card mode. The RF433 module 5 is a wireless transceiver module, which can efficiently transmit data, and can be used for communication with external devices, for example, in an application scenario of a hotel room, the RF433 module 5 can be used for communication with a room circuit, so as to control the room circuit to be electrified when the room door lock is unlocked, realize synchronous power-on when the door lock is unlocked, and expand the functions of the dynamic coded lock 2.
In one embodiment, the main control module 6 specifically includes a processor chip and a bluetooth communication chip that are electrically connected, where the processor chip is used to process data operation to perform verification of parameters such as dynamic passwords and access cards, and the bluetooth communication chip is used to perform bluetooth data transmission with an external device, so as to transmit log files and other data, and increase available communication modes of the dynamic password lock 2.
Specifically, the bluetooth communication chip may be a CC2540 chip, and the pin connection of the chip is specifically shown in fig. 4.
The processor chip selects STM8L151G4U6 chip, and the pin wiring diagram of the chip is shown in FIG. 5.
The password input module 3 selects an MA51T12B touch input chip, the circuit diagram of which is shown in fig. 6, and pins 17, 18 and 19 of which are respectively connected to pins 5, 6 and 7 of the CC2540 chip, so as to transmit input signals to the processor chip through the CC2540 chip.
The M1 card reading module 4 selects an MH1608C contactless read/write card chip for reading card information of the contactless read/write card such as an IC card, and the circuit diagram is shown in fig. 7, wherein pin 24 of the MH1608C chip is connected to pin 15 of the CC2540 chip, so as to transmit the read card information to the processor chip through the CC2540 chip.
The circuit diagram of the RF433 module 5 is shown in fig. 8, and pins 9, 10, 11, and 12 are connected to pins 19, 18, 17, and 16 of the STM8L151G4U6 chip, respectively, and the processor chip can communicate with external devices through the RF433 module 5.
The dynamic coded lock 2 circuit can perform data operation and verification of dynamic codes through the processor chip, and after the verification is passed, the electromagnetic lock power supply 7 is controlled to be turned off, so that the electromagnetic lock is opened. The dynamic coded lock circuit can be used for executing the unlocking method and has the advantages of stable circuit structure and rapid signal transmission and processing.
The above description is only a preferred embodiment of the present invention, and the protection scope of the present invention is not limited to the above examples, and all technical solutions belonging to the concept of the present invention belong to the protection scope of the present invention. It should be noted that modifications and adaptations to the present invention may occur to one skilled in the art without departing from the principles of the present invention and are intended to be within the scope of the present invention.

Claims (6)

1. The unlocking method of the dynamic coded lock is characterized in that unlocking parameters are prestored in the dynamic coded lock (2); writing the unlocking parameters into a server (1), and presetting an encryption key in the server (1);
Presetting a valid time period and a decryption key corresponding to the encryption key in the dynamic coded lock (2);
the unlocking method of the dynamic coded lock comprises the following steps:
s01, the server (1) responds to an unlocking request of a user, encrypts the unlocking parameter through the encryption key to generate a dynamic password, wherein the dynamic password comprises a generation time point of the dynamic password, and sends the dynamic password to the user;
S02, inputting the dynamic password into the dynamic password lock (2) by a user, and decrypting the dynamic password by the dynamic password lock (2) through the decryption key to obtain unlocking parameters and a generation time point corresponding to the dynamic password;
S03, the dynamic coded lock (2) compares the unlocking parameters obtained through decryption with the unlocking parameters prestored in the dynamic coded lock, if the consistency comparison is passed, the next step is carried out, and otherwise, the verification is not passed;
S04, after the consistency comparison is passed, judging whether the dynamic password is used for the first time, if so, carrying out effective time verification, if not, carrying out effective verification,
The effective time verification specifically comprises the following steps: comparing the difference between the current time point and the generation time point with the effective time period, if the difference between the current time point and the generation time point is smaller than or equal to the effective time period, verifying the effective time, marking the dynamic password as used, and opening the dynamic password lock (2); if the difference between the current time point and the generation time point is larger than the effective time period, the effective time verification is not passed, and the dynamic coded lock (2) is kept closed;
the validity verification specifically comprises the following steps: verifying the validity of the dynamic password, if the verification is passed, opening the dynamic password lock (2), otherwise, keeping the dynamic password lock (2) closed;
in the step S01, the server (1) encrypts the unlocking parameter by the encryption key in response to the unlocking request of the user to generate a dynamic password specifically including:
The server (1) responds to an unlocking request of a user, receives user information and unlocking authority of the user, verifies the user information and the unlocking authority, and encrypts unlocking parameters corresponding to the user to generate a dynamic password after the user information and the unlocking authority pass the verification;
the unlocking authority comprises unlocking time periods and unlocking times.
2. The method for unlocking a dynamic coded lock according to claim 1, wherein in the verification of the validity, the verification of the validity of the dynamic coded lock specifically includes:
Judging whether the current time point is in the unlocking period corresponding to the dynamic password, judging whether the unlocking times of the dynamic password are single, if the current time point is in the unlocking period corresponding to the dynamic password and the unlocking times of the dynamic password are not single, verifying the validity, otherwise, verifying the validity.
3. The method of dynamic combination lock unlocking according to any one of claims 1 to 2, wherein the effective period of time is 24 hours.
4. The method for unlocking a dynamic coded lock according to any one of claims 1 to 2, wherein the dynamic code is a 6-12 digit digital code.
5. The dynamic coded lock unlocking method according to any one of claims 1 to 2, wherein the encryption key is encrypted by an encryption algorithm, the decryption key is decrypted by a decryption algorithm, and the encryption algorithm and the decryption algorithm are at least one of:
HOPT algorithm, DES algorithm, RSA algorithm, and SHA algorithm.
6. The dynamic coded lock unlocking system is characterized by comprising a server (1), and an input module (21), a verification module (22) and an unlocking module (23) which are arranged at the dynamic coded lock (2); the server (1) is in communication connection with the authentication module (22); the output end of the input module (21) is electrically connected with the input end of the verification module (22), and the output end of the verification module (22) is electrically connected with the input end of the unlocking module (23);
the verification module (22) is pre-stored with unlocking parameters, the unlocking parameters are written in the server (1), an encryption key is preset in the server (1), and an effective time period and a decryption key corresponding to the encryption key are preset in the verification module;
the server (1) is used for responding to an unlocking request of a user, encrypting the unlocking parameter through the encryption key to generate a dynamic password, wherein the dynamic password comprises a generation time point of the dynamic password, and sending the dynamic password to the user;
the input module (21) is used for inputting a dynamic password by a user;
The verification module (22) is used for decrypting the dynamic password through the decryption key to obtain an unlocking parameter corresponding to the dynamic password and a generation time point, comparing the unlocking parameter obtained by decryption with the unlocking parameter prestored by the verification module, judging whether the dynamic password is used for the first time, if so, carrying out effective time verification, if not, carrying out effective verification,
The effective time verification specifically comprises the following steps: comparing the difference between the current time point and the generation time point with the effective time period, if the difference between the current time point and the generation time point is smaller than or equal to the effective time period, verifying the effective time, marking the dynamic password as used, and opening the dynamic password lock (2); if the difference between the current time point and the generation time point is larger than the effective time period, the effective time verification is not passed, and the dynamic coded lock (2) is kept closed;
the validity verification specifically comprises the following steps: verifying the validity of the dynamic password, if the verification is passed, opening the dynamic password lock (2), otherwise, keeping the dynamic password lock (2) closed;
the unlocking module (23) is used for opening the dynamic coded lock (2) when verification is passed;
The server (1) responds to an unlocking request of a user, and the unlocking parameters are encrypted through the encryption key to generate a dynamic password specifically as follows:
The server (1) responds to an unlocking request of a user, receives user information and unlocking authority of the user, verifies the user information and the unlocking authority, and encrypts unlocking parameters corresponding to the user to generate a dynamic password after the user information and the unlocking authority pass the verification;
the unlocking authority comprises unlocking time periods and unlocking times.
CN202110096001.0A 2021-01-25 2021-01-25 Dynamic coded lock unlocking method and system and dynamic coded lock circuit Active CN112750242B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110096001.0A CN112750242B (en) 2021-01-25 2021-01-25 Dynamic coded lock unlocking method and system and dynamic coded lock circuit

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110096001.0A CN112750242B (en) 2021-01-25 2021-01-25 Dynamic coded lock unlocking method and system and dynamic coded lock circuit

Publications (2)

Publication Number Publication Date
CN112750242A CN112750242A (en) 2021-05-04
CN112750242B true CN112750242B (en) 2024-06-25

Family

ID=75653017

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110096001.0A Active CN112750242B (en) 2021-01-25 2021-01-25 Dynamic coded lock unlocking method and system and dynamic coded lock circuit

Country Status (1)

Country Link
CN (1) CN112750242B (en)

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113593088A (en) * 2021-07-27 2021-11-02 胡奕旸 Intelligent unlocking method, intelligent lock, mobile terminal and server
CN113726508B (en) * 2021-08-30 2024-04-02 北京博瑞翔伦科技发展有限公司 TOTP algorithm and system for unmanned bin offline intelligent lock
CN114821860B (en) * 2022-03-30 2024-06-07 深圳绿米联创科技有限公司 Password generation method, device and system and electronic equipment
CN115147960A (en) * 2022-05-18 2022-10-04 阿里云计算有限公司 Electronic lock processing method and device
CN116543486B (en) * 2023-07-05 2023-09-26 深圳市旭子科技有限公司 Offline control method of coded lock and coded lock system

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN214202481U (en) * 2021-01-25 2021-09-14 广州畅联信息科技有限公司 Dynamic coded lock circuit

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20070186115A1 (en) * 2005-10-20 2007-08-09 Beijing Watch Data System Co., Ltd. Dynamic Password Authentication System and Method thereof
CN105827576B (en) * 2015-01-05 2019-07-26 珠海汇金科技股份有限公司 Method for unlocking and system based on dynamic puzzle-lock
CN106898064A (en) * 2017-01-09 2017-06-27 云丁网络技术(北京)有限公司 A kind of generation method and its system of the off-line verification code based on intelligent door lock system
CN106869616A (en) * 2017-03-05 2017-06-20 宁波亿拍客网络科技有限公司 A kind of dynamic puzzle-lock, dynamic cipher system and dynamic encryption and decryption system
CN110163995B (en) * 2018-02-12 2021-04-30 天扬精密科技股份有限公司 Remote control electronic lock system
CN110415414B (en) * 2019-07-31 2021-09-21 中国工商银行股份有限公司 Unlocking method and device of dynamic coded lock based on two-party authentication

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN214202481U (en) * 2021-01-25 2021-09-14 广州畅联信息科技有限公司 Dynamic coded lock circuit

Also Published As

Publication number Publication date
CN112750242A (en) 2021-05-04

Similar Documents

Publication Publication Date Title
CN112750242B (en) Dynamic coded lock unlocking method and system and dynamic coded lock circuit
US10742630B2 (en) Method and apparatus for making a decision on a card
CN105069876B (en) Intelligent access control method and system
CN104966336B (en) Intelligent lock and authorization management method and device of intelligent lock
US8437477B2 (en) Key information issuing device, wireless operation device, and program
US10171444B1 (en) Securitization of temporal digital communications via authentication and validation for wireless user and access devices
EP0924657B2 (en) Remote idendity verification technique using a personal identification device
US20180152444A1 (en) Method and apparatus for making a decision on a card
CN108712389B (en) Intelligent lock system
JP2016536889A (en) Authentication system, transmitting terminal, receiving terminal, and authority authentication method
US20190385392A1 (en) Digital door lock having unique master key and method of operating the digital door
CN103021045A (en) Intelligent entrance guard system for mobile terminal user verification
JPH03158955A (en) Security system and its control
CN106952377A (en) The method and system of smart home door lock are opened by mobile fingerprint
JP2012074011A (en) Biometric key
KR101613476B1 (en) Face recognition based authenticable door-lock control system
CN108650219B (en) User identity identification method, related device, equipment and system
CN113971849A (en) Dynamic coded lock with management system
CN104135480A (en) Entrance guard authorization system and entrance guard authorization method
JP4624322B2 (en) Terminal authentication system and server
CN110298947B (en) Unlocking method and electronic lock
WO2019202929A1 (en) Sharing system
CN214202481U (en) Dynamic coded lock circuit
CN107070663B (en) Mobile terminal-based field authentication method and field authentication system
CN109754507A (en) Control method for door lock, device and its system

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant