[go: up one dir, main page]

CN110570564A - single-machine lock and control method thereof - Google Patents

single-machine lock and control method thereof Download PDF

Info

Publication number
CN110570564A
CN110570564A CN201910839514.9A CN201910839514A CN110570564A CN 110570564 A CN110570564 A CN 110570564A CN 201910839514 A CN201910839514 A CN 201910839514A CN 110570564 A CN110570564 A CN 110570564A
Authority
CN
China
Prior art keywords
password
unlocking
duration
lock
management
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.)
Pending
Application number
CN201910839514.9A
Other languages
Chinese (zh)
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.)
Anheng Shitong (beijing) Network Technology Co Ltd
Original Assignee
Anheng Shitong (beijing) Network 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 Anheng Shitong (beijing) Network Technology Co Ltd filed Critical Anheng Shitong (beijing) Network Technology Co Ltd
Priority to CN201910839514.9A priority Critical patent/CN110570564A/en
Publication of CN110570564A publication Critical patent/CN110570564A/en
Pending legal-status Critical Current

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/00817Electronically operated locks; Circuits therefor; Nonmechanical keys therefor, e.g. passive or active electrical keys or other data carriers without mechanical keys where the code of the lock can be programmed

Landscapes

  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Lock And Its Accessories (AREA)

Abstract

The invention discloses a single lock and a control method thereof, wherein the control method comprises the following steps: the management terminal adopts the password starting time to cooperate with the unique serial number of the single-machine lock to jointly generate a temporary password, and adopts the temporary password and the password duration time to jointly generate an unlocking password; and the single-machine lock acquires the unlocking password, judges whether the unlocking password is correct or not, acquires the password duration according to the unlocking password if the unlocking password is correct, judges whether the unlocking password is valid or not according to the current time and the password duration, and opens the single-machine lock if the unlocking password is valid. Can support the password of variable ageing, easily manage single or a large amount of unit locks, the unit lock need not the networking and can realize effective management and control, very important design point does not contain the password initial time and judges by the unit lock of not networking in unblanking the password by oneself, can greatly shorten the password length of unblanking from this, convenience of customers inputs, the input efficiency of password has also been promoted, the in-service use of being convenient for, be particularly suitable for the control ageing use of the more hotel of tool to lock quantity, the apartment, student's dormitory etc..

Description

Single-machine lock and control method thereof
Technical Field
The invention relates to the field of electronic lock production, in particular to a single lock and a control method thereof.
Background
With the development of the technology, the electronic lock is in the rapid market capacity increasing stage, the electronic lock which needs to be used in a networking mode is complex in structure and needs to be matched with a network for use, and therefore the electronic lock is easy to crack, and certain loopholes exist in the safety performance.
The electronic lock which does not need to be used in a network is generally called a single-machine lock, and the biggest problem of the existing single-machine lock is that the existing single-machine lock is difficult to manage and control when the number is large. And the existing single-machine lock can only support the password with fixed time effectiveness.
Disclosure of Invention
The invention provides a single lock and a control method thereof, and aims to solve the technical problems that: how to design the password with variable time efficiency and avoid the problem that the password is too long and difficult to use, etc.
The technical scheme of the invention is as follows: a control method of a single lock comprises the following steps: the management terminal adopts the password starting time to cooperate with the unique serial number of the single-machine lock to jointly generate a temporary password, and adopts the temporary password and the password duration time to jointly generate an unlocking password; and the single-machine lock acquires the unlocking password, judges whether the unlocking password is correct or not, acquires the password duration according to the unlocking password if the unlocking password is correct, judges whether the unlocking password is valid or not according to the current time and the password duration, and opens the single-machine lock if the unlocking password is valid.
preferably, when the management terminal generates an unlocking password, a check bit is also set for the unlocking password; before the single-machine lock judges whether the unlocking password is correct, the method further comprises the following steps: and judging whether the check bit is correct or not, if so, continuously judging whether the unlocking password is correct or not, and if not, not executing the subsequent steps.
Preferably, the bit length of the password duration is set according to the difference of the password duration.
Preferably, the bit length of the password duration is proportional to the duration of the password duration.
Preferably, the length of the number of bits of the temporary password is not less than 6 bits.
Preferably, before the temporary password is generated by using the password start time and the unique serial number of the single-machine lock together, the management and control method further includes the steps of: and the single machine lock is calibrated in advance so as to keep the time of the single machine lock consistent with that of the management end.
Preferably, the management terminal comprises a mobile terminal application, computer software or a website program.
Preferably, the management end adopts the temporary password and the password duration to jointly form the unlocking password.
Preferably, the single lock judges whether the unlocking password is valid according to the current time and the password duration, including: determining the number of target passwords according to the password duration, determining the starting time according to the current time and the number of the target passwords, respectively calculating the check passwords with the number of the target passwords according to the starting time and the number of the target passwords, respectively comparing each check password with the unlocking password, and judging whether any check password is the same as the unlocking password.
A single-machine lock is realized by adopting any one of the control methods.
The single-machine lock and the control method thereof can support variable time-efficient passwords, are easy to manage a single or a large number of single-machine locks, can realize effective control without networking of the single-machine locks, and have the important design point that unlocking passwords do not contain password starting time and are judged by the non-networked single-machine locks, so that the length of the unlocking passwords can be greatly shortened, the input of users is facilitated, the input efficiency of the passwords is also improved, the single-machine lock and the control method thereof are convenient to use practically, and are particularly suitable for controlling time-efficient use of hotels, apartments, student dormitories and the like with a large number of lockset.
Drawings
FIG. 1 is a schematic diagram of one embodiment of the present invention.
Detailed Description
In order to facilitate an understanding of the invention, the invention is described in more detail below with reference to the accompanying drawings and specific examples. The present invention is not limited to the embodiments described herein, but may be embodied in various other forms. It will be understood that when an element is referred to as being "secured to" another element, it can be directly on the other element or intervening elements may also be present. When an element is referred to as being "connected" to another element, it can be directly connected to the other element or intervening elements may also be present.
Unless defined otherwise, all technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this invention belongs. The terminology used in the description of the invention herein is for the purpose of describing particular embodiments only and is not intended to be limiting of the invention. As used herein, the term "and/or" includes any and all combinations of one or more of the associated listed items.
One embodiment of the present invention is a method for managing and controlling a single lock, which includes the following steps: the management terminal adopts the password starting time to cooperate with the unique serial number of the single-machine lock to jointly generate a temporary password, and adopts the temporary password and the password duration time to jointly generate an unlocking password; and the single-machine lock acquires the unlocking password, judges whether the unlocking password is correct or not, acquires the password duration according to the unlocking password if the unlocking password is correct, judges whether the unlocking password is valid or not according to the current time and the password duration, and opens the single-machine lock if the unlocking password is valid. Preferably, as shown in fig. 1, a method for managing and controlling a single lock includes the following steps: the management end adopts the password starting time to cooperate with the unique serial number of the single-machine lock to jointly generate a temporary password, and adopts the temporary password and the password duration to jointly generate an unlocking password; and the single-machine lock acquires the unlocking password, judges whether the unlocking password is correct or not, acquires the password duration time according to the unlocking password if the unlocking password is correct, judges whether the unlocking password is valid or not according to the current time and the password duration time, and opens the single-machine lock, namely opens the door lock, so that a user can enter the single-machine lock. The single-machine lock can support variable time-effect passwords, management personnel can manage a single or a large number of single-machine locks easily, effective management and control of the single-machine locks can be achieved without networking, and the single-machine lock is important in that unlocking passwords do not contain password starting time and are judged by the non-networked single-machine locks, so that the unlocking password length can be greatly shortened, user input is facilitated, password input efficiency is improved, practical use is facilitated, and the single-machine lock is particularly suitable for controlling time effect of hotels, apartments, student dormitories and the like with a large number of locks.
Preferably, the management end generates a temporary password by matching the password starting time with the unique serial number of the single-machine lock, and generates an unlocking password by matching the temporary password with the password duration time; that is, the unlocking password is generated not at one time, but only in two steps, which is one of the important differences between the present invention and the prior art, and this is done to clearly inform the password duration of the unlocking password in the unlocking password. Preferably, the management end adopts the temporary password and the password duration time to jointly form an unlocking password; preferably, the management terminal adopts the temporary password and the password duration to jointly form an unlocking password, including: the management terminal adopts the temporary password to carry out bit-to-number conversion to form an intermediate password, and the intermediate password and the password duration time jointly form an unlocking password; or the management terminal encrypts the temporary password to obtain the intermediate password, and the intermediate password and the password duration time jointly form an unlocking password. Therefore, the password duration can be intuitively represented in the unlocking password. Preferably, the management end adopts the temporary password and the password duration time to jointly form an intermediate password, the management end adopts the intermediate password to perform bit-to-number conversion to form the unlocking password, or the management end encrypts the intermediate password to obtain the unlocking password; preferably, the management terminal uses the temporary password and the password duration to perform bit and number conversion together to form an unlocking password, for example, uses reverse order processing to form the unlocking password; or the management terminal encrypts the temporary password and the password duration together to form an unlocking password. Therefore, the unlocking password with higher safety factor can be obtained. The management side is typically a background, e.g., background application. Preferably, the management terminal comprises a mobile terminal application, computer software or a website program. The mobile terminal applies APP such as a mobile phone or a tablet, can generate an unlocking password through computer software, and can also generate the unlocking password through a website such as accessing a certain website or a program thereof, so that the realization is very convenient. One application scenario is that the hotel foreground can access the applicant website through a mobile phone or a computer to obtain the unlocking password of a certain single-machine lock; the other application scenario is that the hotel reception desk can obtain the unlocking password of a certain single-machine lock through the APP of the mobile phone; other application scenarios are analogized. Therefore, the invention is really convenient for practical use, is particularly suitable for controlling time-effect use of hotels, apartments, student dormitories and the like with a large number of locks, can conveniently generate a short unlocking code no matter for short-time lease or long-time use, has variable time-effect, and is a single lock without networking.
In order to ensure the safety of the unlocking password, the management end preferably encrypts the unique serial number of the single-machine lock together by matching the password starting time to generate a temporary password, and the serial number can be obtained by decrypting the temporary password. Preferably, the temporary password decryption can obtain and only obtain the serial number, that is, the password start time does not appear after decryption, so that the generation mode of the temporary password can be simplified, and the bit length of the temporary password is reduced. The bit length is a key point to be controlled by the invention, and the specific encryption and decryption modes can be realized by adopting the prior art, but the single-machine lock is a simple device, does not need a complex system, and does not need to allow a user to input 128-bit or 256-bit unlocking passwords every time the door is opened, which is obviously unrealistic, so that the invention shortens the bit length of the unlocking passwords on the premise of ensuring the safety and the effectiveness, but keeps important information of the password duration, which cannot be realized by the prior art.
Preferably, in each embodiment, the single-machine lock has a unique serial number, that is, each single-machine lock has a unique serial number, which is used for identifying the identity of the single-machine lock and is used as one of conditions for unlocking by using an unlocking code. Preferably, the single-machine lock acquires the unlocking password, judges whether the unlocking password is correct or not, acquires the password duration time according to the unlocking password if the unlocking password is correct, judges whether the unlocking password is valid or not according to the current time and the password duration time, and opens the single-machine lock if the unlocking password is valid. Preferably, after the unlocking, that is, after the single-machine lock is unlocked or referred to as unlocking the single-machine lock, the management and control method further includes the steps of: displaying a remaining available time of the password duration; that is, after or while the door is opened, the remaining usable time is displayed; for example, if the password duration is 10 days and 7 days have passed, the remaining 3 days are displayed, so that the user can conveniently grasp the specific remaining time for unlocking and can timely pay for the password if necessary. Preferably, the single lock displays the remaining available time of the password duration; or after the registered terminal authenticates and passes the authentication, the registered terminal displays the remaining available time of the password duration; a specific application scenario is that after an authorized user inputs a password to open a door, the registered mobile phone receives a prompt of the remaining available time, or the APP of the registered mobile phone receives a prompt of the remaining available time. Preferably, after displaying the remaining available time of the password duration, the management and control method further includes the steps of: and sending the push information. Preferably, the stand-alone lock sends the push information to the target terminal. Therefore, specific information push of registered users can be realized, the design is that the single-machine lock uses a unidirectional transmission mode rather than a bidirectional interaction mode, the security of the single-machine lock is also increased, if the single-machine lock uses a management end for transmission, networking is required, and the method and the device do not need to be carried out by various embodiments of the invention. Preferably, the stand-alone lock transmits push information to the target terminal in one direction, for example, transmits push information to the target terminal in the signal range by means of bluetooth, and does not receive feedback information. Preferably, the push information includes the remaining available time. Preferably, the push information further comprises a renewal information and/or a renewal entrance. Therefore, the single-machine lock can judge whether the unlocking password is valid by adopting the password starting time of the single-machine lock, and on the premise, the residual available time of the single-machine lock which is not networked is fed back to the user step by step, so that the user obtains more accurate information and certain help is provided for renewal.
Preferably, judging whether the unlocking password is valid according to the current time and the password duration, that is, judging whether the unlocking password is valid according to the current time and the password duration by the single lock, includes: determining the number of target passwords according to the password duration, determining the starting time according to the current time and the number of the target passwords, respectively calculating the check passwords with the number of the target passwords according to the starting time and the number of the target passwords, respectively comparing each check password with the unlocking password, and judging whether any check password is the same as the unlocking password. Therefore, user customization can be realized, and a single lock capable of judging the password with the time effect can be developed, so that the single lock is suitable for short rents and long rents. Preferably, determining the starting time according to the current time and the number of the target passwords comprises: and determining the starting time according to the identification bit, the current time and the number of the target passwords. The identification bit is also important here to tell the unit lock in what time unit this is valid for. This embodiment is also a key design of the present invention, and in this embodiment, the unlocking password can not have the password start time, because the single-machine lock performs a large number of judgment and comparison, for example, the password duration is 5 days, the target password number is determined according to the password duration as 5, the start time is determined as 4 days ahead according to the current time and the target password number, the total time is 5 days by adding the current time, 5 verification passwords are respectively calculated according to the start time and the target password number, then each verification password is compared with the unlocking password one by one, and the unlocking can be performed as long as one verification password is paired. Therefore, various unlocking passwords with changeable validity periods can be compared without networking, which cannot be achieved by a single-machine lock in the prior art, and the invention is also an important invention point, the unlocking passwords do not comprise password starting time, so that the shorter unlocking passwords can be realized, some calculation functions are designed on the single-machine lock, the single-machine lock calculates a batch of temporary verification passwords needing to be verified and compared corresponding to the password duration time according to the self password starting time and by means of the calculation capability of the single-machine lock, then the verification passwords are compared one by one, and when one verification password pair obtains the unlocking password, the unlocking password is considered to be effective; it is obvious here that the ingenious design of the 'unlocking password without password start time' formed by the front and back steps of the ring buckling is provided.
The single-machine lock has the greatest advantages of low cost, convenience in layout and capability of effectively preventing network intrusion, which cannot be achieved by network locks, so that a great number of conservative users are more prone to using the single-machine lock. In order to facilitate the user to know the password duration, it is preferable that the temporary password and the password duration are used together to generate the unlocking password and the unlocking password embodies the password duration, for example, the temporary password and the password duration are used together to generate the unlocking password and the unlocking password intuitively embodies the password duration; preferably, the method for generating the unlocking password by using the temporary password and the password duration comprises the following steps: adding the password duration time after the temporary password to be used as the unlocking password; alternatively, the password duration may be added directly to the string of encrypted temporary passwords by encrypting the temporary password and adding the password duration to the string of encrypted temporary passwords as the unlock password, where the password duration is expressed by a simple number. That is to say, for the user, this password duration is transparent, can directly let the user know this password duration from this, makes it buy peacefully, use peacefully, is fit for the scene of paying to check in such as hotel, apartment and uses, and the entrance guard management and control of renting the hotel or short-lived the hotel when being particularly suitable for does not need to lay the network yet, has not only practiced thrift manual work and material, has avoided the leak that the hacker invaded moreover, has promoted the security of entrance guard management and control. Preferably, the password duration is expressed in simple numbers, for example 05 for 5 hours and 13 for 3 days, where 0 for hours and 1 for days. Alternatively, 3 represents 3 hours, 8 represents 8 hours, 05 represents 5 days, 12 represents 12 days, where 1 digit represents hours and 2 digits represents days. Alternatively, 07 represents 7 hours, 11 represents 11 hours, 006 represents 6 days, 105 represents 105 days, where the 2 digit number represents hours and the 3 digit number represents days. Other embodiments are analogized and will not be described in detail below.
In order to improve the validity of the unlocking password and improve the processing efficiency of verifying the unlocking password, preferably, when the management terminal generates the unlocking password, a check bit is also set for the unlocking password; before the single-machine lock judges whether the unlocking password is correct, the method further comprises the following steps: and judging whether the check bit is correct or not, if so, continuously judging whether the unlocking password is correct or not, and if not, not executing the subsequent steps. That is to say, a method for managing and controlling a single lock comprises the following steps: the management terminal adopts the password starting time to cooperate with the unique serial number of the single-machine lock to jointly generate a temporary password, adopts the temporary password and the password duration to jointly generate an unlocking password and sets a check bit for the unlocking password; and the single-machine lock acquires the unlocking password, judges whether the check digit is correct or not, otherwise does not execute the subsequent steps, if so, continuously judges whether the unlocking password is correct or not, if so, acquires the password duration according to the unlocking password, judges whether the unlocking password is valid or not according to the current time and the password duration, and if so, opens. Other embodiments are analogized and will not be described in detail below. Preferably, the check bits are obtained by a simple four-way operation, and preferably, the check bits are obtained by a simple four-way operation and only the last bit of the check bits is reserved. For example, the check bits are obtained in a manner similar to the check of the patent application number. Therefore, simple detection in one step can be realized, the detection is designed for matching with the judgment of whether the unlocking password is valid according to the current time and the password duration, particularly when a large number of verification passwords are generated by adopting the target password number, the computing capacity of the single-machine lock is limited, when the password duration is too long, for example, a student dormitory may last for 4 years, and more time is needed for comparing a large number of verification passwords, so that the judgment of first-aid through the verification bits is very necessary and very helpful, and the judgment efficiency of unlocking can be improved.
Preferably, the bit length of the password duration is set according to the difference of the password duration. That is, the bit length of the cipher duration may be the same or different, which does not affect the specific implementation of the present invention. Preferably, the bit length of the password duration is proportional to the duration of the password duration. That is, the longer the password duration, the longer the bit length of the password duration; for example, when the password duration is 888 days, the length of the digits is longer than the length of the digits corresponding to the password duration of 1 day. Preferably, the unlocking code has an identification bit indicating a unit of the code duration, for example, an identification bit of 0 represents an hour, and an identification bit of 1 represents a day. Thus, short-term use or long-term use can be treated separately, for example, short-term use suitable for hotels such as 2 hours, 4 hours, 8 hours or 24 hours, or long-term use suitable for hotels, apartments or dormitories such as 2 days, 3 days, 7 days, 30 days, 365 days or even 999 days.
Preferably, the length of the number of bits of the temporary password is not less than 6 bits. Preferably, the length of the number of bits of the temporary password is not less than 7 bits. Therefore, the probability of being cracked by adopting a trial and error method can be avoided; moreover, the 5-digit password is less secure, the 6-digit password is better, and the 7-digit password is better, but if the length of the digit of the temporary password is too long, the original purpose of the invention is against: the unlocking password length is reduced as much as possible; so 6, 7 or 8 bits are preferred, usually not more than 10 bits. The temporary password has short digit length, and can obtain a short unlocking password which is convenient to input and use by matching with the password duration, particularly the password duration with the mark at the mark position. Preferably, after the single-machine lock acquires the unlocking password, the management and control method further includes the steps of: and the single-machine lock judges whether the unlocking password error event continuously occurs for more than a preset number of times, if so, the single-machine lock refuses to continuously judge whether the unlocking password is correct within a preset time period, or the single-machine lock stops obtaining the unlocking password within the preset time period. Preferably, the preset time period is the product of the number of times of continuously occurring unlocking password error event judgment and the preset time length; for example, the preset time duration is 5 seconds, the preset times is 3 times, the 20 seconds are stopped when 4 times of continuous error transmission are performed, the 25 seconds are stopped when 5 times of continuous error transmission are performed, and so on in other embodiments, which will not be described below. Preferably, the preset time period is a sum of products, and the product is a product of the number of times of continuously occurring error events of the unlocking password and a preset time length; for example, the preset time duration is 6 seconds, the predetermined number of times is 4, the 30 seconds are stopped when 5 times of continuous transmission are missed, the 30+36 seconds are stopped when 5 times of continuous transmission are missed, and so on, and other embodiments are similar to this, and will not be described again. Therefore, the cooperation rejection caused by error connection can be realized, and the unlocking password is prevented from being maliciously tested; and the preset time period is increased along with the number of errors, so that the test frequency of maliciously testing the unlocking password can be reduced. Preferably, after the single-machine lock acquires the unlocking password, the management and control method further includes the steps of: and the single-machine lock judges whether the unlocking password error event continuously occurs for more than the limit times, and alarms if the unlocking password error event continuously occurs. For example, the limit number is 10 or 20, and the like. Preferably, after the single-machine lock acquires the unlocking password, the management and control method further includes the steps of: and the single-machine lock judges whether the unlocking password error event continuously occurs for more than the limit times, if so, the video equipment is started, and the video equipment acquires the image at the preset position in front of the single-machine lock and sends the image to the management terminal. Therefore, safer single-machine lock management and control can be realized, malicious unlocking is avoided, and safety accidents are also avoided.
In order to use the password duration more accurately and avoid spurious unlocking, preferably, before the password start time is used to cooperate with the unique serial number of the single-machine lock to generate the temporary password, the management and control method further comprises the steps of: and the single machine lock is calibrated in advance so as to keep the time of the single machine lock consistent with that of the management end. Preferably, each single-machine lock is calibrated in advance, so that the time of each single-machine lock is consistent with that of the management end. Preferably, a mobile phone Bluetooth time calibration mode or a standard time reading mode is adopted to calibrate the single lock in advance. This embodiment is particularly suitable for several application environments such as hotels or centralized apartments which manage a large number of single locks, and the single locks can be calibrated at a specific time, for example, every monday or 1 day per month or the last day of each year, so as to prevent the single lock from being time-wrong due to mechanical failure, battery or circuit problems, and thus the password unlocking function is not affected. In a specific application, preferably, the single-machine lock is calibrated first, and time consistency with a background, that is, a management side, such as PC software, a background website, an APP or an applet, is ensured. And then the background generates a group of temporary passwords through algorithms such as Hash and the like according to the password starting time and the serial number information of the single-machine lock, and then the temporary passwords and the password duration time are combined into a group of unlocking passwords. In order to ensure safety, the total number of unlocking passwords is preferably not less than 8. When the unlocking password is input into the single-machine lock, the password information and the duration information are found from the input unlocking password, and then all the passwords capable of opening the door are generated according to the duration and are compared with the input password. And if the matched password exists, the door is opened. It can be seen from this embodiment that only contains password duration information in the password of unblanking, and the password initial time is judged at the single lock end to reduced the password length of unblanking, be convenient for practical use.
Examples of specific implementations of two passwords are given below.
The first embodiment is an 8-bit time-lease password.
the lease-time password is calculated in hours and is 8 bits in length. At the time of test, since it is 8 bits and occupies only the bit length of 1 bit, it is supported for at most 9 hours. In practice, the length of the digits may be longer, but it is recommended that the time does not exceed 24 hours or 48 hours.
And (3) generating a time-lease password: the management terminal generates a 7-bit temporary password according to the starting time. The start time is the password start time, i.e., the start time of the validity period of the password. Such as 7 months, 25 days, 10 o' clock at the current time 2019. Generating a temporary password 3427683 according to the lock number, namely the unique serial number of the single-machine lock; the 8 th position is the length of time, 1 for 1 hour and 9 for 9 hours. This example took 3 hours and was combined directly. The combined password is 34276833. The 8-bit password is subjected to reversible transformation to generate a new 8-bit password. A simple reverse order algorithm is used here and should not be considered as a specific limitation of the present invention. The final unlock code is obtained as 33867243.
Carry out the operation of unblanking with the password of unblanking, that is the password of unblanking is verified to the single-unit lock: the combination 33867243 is entered at the stand-alone lock. The single-machine lock adopts transformation to obtain a combined password 34276833, the temporary password is 3427683, and the validity period of the unlocking password is 3 hours. And judging that the unlocking password is correct according to the temporary password. Suppose that the current time of the single-machine lock is 10 o' clock 32 minutes in 7 months, 25 days and 2019. According to a 3 hour expiry date. Then 7-bit temporary passwords at the following times are respectively calculated as the check password:
9237430 at 8 o' clock, 7/25/2019;
4293641 at 7/25/2019;
3427683 at 7/25/2019.
This step is to calculate 3 check codes respectively.
And then, checking the temporary password, namely judging whether any check password is the same as the unlocking password, and finding that 10-point passwords are matched. The lock is unlocked. If no verification code is matched, the lock is not opened.
The second embodiment is a 10-bit daily lease password.
The valid period of the daily lease password is calculated according to the day, the length is 10 bits, and the maximum period is 999 days.
And (3) generating a daily lease password: the management terminal generates a 7-bit temporary password according to the starting time. Such as 7 months, 25 days, 10 o' clock at the current time 2019. The temporary pass code is generated 1089274 based on the lock number. The effective period is 100 days. The combined password is 1089274100. The 10-bit cipher is reversibly transformed to generate a new 10-bit cipher. A simple reverse order algorithm is used here as an example, and various transformation algorithms may be employed in other embodiments. The final password is 0014729801.
Unlocking operation is carried out by using an unlocking password: the combination 0014729801 is entered at the stand-alone lock. The single-machine lock is transformed to obtain a combined password 1089274100, and the password validity period is 100 days, and the temporary password is 1089274. Assume that the current time of the one-machine lock is 2019, 7 and 30. According to a 100 day pot life. Respectively calculating the temporary passwords from the current 99 days ago to today as the check passwords.
And obtaining 100 verification passwords in the last step, and unlocking if the verification passwords in 7, 25 and 2019 are matched with the unlocking password, namely the verification passwords and the unlocking password are the same. If no verification code is matched, the lock is not opened.
in the above two embodiments, the time-lease password and the day-lease password are different in length, so as to be distinguished conveniently; an identification bit may also be used, but this would add one bit to the unlocking code. Also, a 7-bit temporary password is used here, and the shortest temporary password is not recommended to be less than 6 bits for security.
Another embodiment of the present invention is a single-machine lock, which is implemented by using the management and control method according to any embodiment. Preferably, the single-machine lock has a function module for realizing the corresponding steps of the management and control method. Preferably, the single lock is provided with a first acquisition module for acquiring the unlocking password, a first judgment module for judging whether the unlocking password is correct, a second acquisition module for acquiring the password duration according to the unlocking password, a second judgment module for judging whether the unlocking password is valid according to the current time and the password duration, and an unlocking module for realizing that the single lock is unlocked and the entrance guard is opened. Other embodiments are analogized and will not be described in detail below. The single-machine lock can support variable time-effect passwords, is easy to manage a single or a large number of single-machine locks, can realize effective control without networking, and has the important design point that the unlocking passwords do not contain password starting time and are judged by the non-networked single-machine locks, so that the unlocking password length can be greatly shortened, the input of users is facilitated, the input efficiency of the passwords is improved, the practical use is facilitated, and the single-machine lock is particularly suitable for controlling time-effect use of hotels, apartments, student dormitories and the like with a large number of locks.
Further, the embodiment of the present invention further includes technical features of the above embodiments, a single-machine lock formed by combining the technical features of the above embodiments, and a control method thereof.
The technical features mentioned above are combined with each other to form various embodiments which are not listed above, and all of them are regarded as the scope of the present invention described in the specification; also, modifications and variations may be suggested to those skilled in the art in light of the above teachings, and it is intended to cover all such modifications and variations as fall within the true spirit and scope of the invention as defined by the appended claims.

Claims (10)

1. A single-machine lock control method is characterized by comprising the following steps:
the management terminal adopts the password starting time to cooperate with the unique serial number of the single-machine lock to jointly generate a temporary password, and adopts the temporary password and the password duration time to jointly generate an unlocking password;
And the single-machine lock acquires the unlocking password, judges whether the unlocking password is correct or not, acquires the password duration according to the unlocking password if the unlocking password is correct, judges whether the unlocking password is valid or not according to the current time and the password duration, and opens the single-machine lock if the unlocking password is valid.
2. The management and control method according to claim 1, characterized in that when the management terminal generates an unlocking password, a check bit is further set for the unlocking password; before the single-machine lock judges whether the unlocking password is correct, the method further comprises the following steps: and judging whether the check bit is correct or not, if so, continuously judging whether the unlocking password is correct or not, and if not, not executing the subsequent steps.
3. The management and control method according to claim 1, wherein a bit length of the password duration is set according to different lengths of the password duration.
4. The method of claim 3, wherein a length of a bit of the password duration is proportional to a duration of the password duration.
5. The management and control method according to claim 1, wherein the temporary password has a bit length of not less than 6 bits.
6. The management and control method according to claim 1, wherein before the password start time is used together with the unique serial number of the one-machine lock to generate the temporary password, the management and control method further comprises the steps of: and the single machine lock is calibrated in advance so as to keep the time of the single machine lock consistent with that of the management end.
7. The management and control method according to claim 1, wherein the management terminal includes a mobile terminal application, computer software, or a website program.
8. The management and control method according to claim 1, wherein the management end uses the temporary password and the password duration to jointly form an unlocking password.
9. The management and control method according to any one of claims 1 to 8, wherein the stand-alone lock determines whether the unlocking password is valid according to the current time and the password duration, and includes: determining the number of target passwords according to the password duration, determining the starting time according to the current time and the number of the target passwords, respectively calculating the check passwords with the number of the target passwords according to the starting time and the number of the target passwords, respectively comparing each check password with the unlocking password, and judging whether any check password is the same as the unlocking password.
10. A single machine lock, which is realized by adopting the management and control method of any one of claims 1 to 9.
CN201910839514.9A 2019-09-05 2019-09-05 single-machine lock and control method thereof Pending CN110570564A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910839514.9A CN110570564A (en) 2019-09-05 2019-09-05 single-machine lock and control method thereof

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910839514.9A CN110570564A (en) 2019-09-05 2019-09-05 single-machine lock and control method thereof

Publications (1)

Publication Number Publication Date
CN110570564A true CN110570564A (en) 2019-12-13

Family

ID=68777954

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910839514.9A Pending CN110570564A (en) 2019-09-05 2019-09-05 single-machine lock and control method thereof

Country Status (1)

Country Link
CN (1) CN110570564A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111080868A (en) * 2019-12-21 2020-04-28 广州保仕盾智能科技有限公司 Temporary password setting and verifying method for intelligent door lock
CN111915772A (en) * 2020-08-04 2020-11-10 四川铁集共联科技股份有限公司 Remote unlocking method
CN113034745A (en) * 2021-03-05 2021-06-25 深圳拓邦股份有限公司 Unlocking method, intelligent lock and unlocking system

Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1870596A (en) * 2005-05-25 2006-11-29 夏普株式会社 Receiver, sender
CN104125562A (en) * 2014-07-09 2014-10-29 李正文 Wireless communication encryption method capable of changing passwords
EP2998940A1 (en) * 2014-09-19 2016-03-23 Skopei holding IP and Brands B.V. A method for hiring vehicles during a user-defined time frame, and a lock system for hiring of vehicles
CN105959114A (en) * 2016-07-12 2016-09-21 安恒世通(北京)网络科技有限公司 Dynamic password generation method for integrated passageway of apartment building
CN106952378A (en) * 2017-04-11 2017-07-14 徐士兰 Method for unlocking and device, electronic lock
CN107154847A (en) * 2016-03-06 2017-09-12 北京火河科技有限公司 Towards the method for generating cipher code, verification method and its smart machine of offline environment
CN107978047A (en) * 2017-12-04 2018-05-01 北京深思数盾科技股份有限公司 Use the methods, devices and systems of password unlocking
CN109377600A (en) * 2018-09-26 2019-02-22 广东西雅斯智能科技有限公司 Smart lock password sharing method, device and system
CN109472904A (en) * 2018-11-20 2019-03-15 北京千丁互联科技有限公司 Door lock password management system and method
CN110098923A (en) * 2019-04-08 2019-08-06 浙江大华技术股份有限公司 A kind of method and apparatus of generation and verifying temporary password

Patent Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1870596A (en) * 2005-05-25 2006-11-29 夏普株式会社 Receiver, sender
CN104125562A (en) * 2014-07-09 2014-10-29 李正文 Wireless communication encryption method capable of changing passwords
EP2998940A1 (en) * 2014-09-19 2016-03-23 Skopei holding IP and Brands B.V. A method for hiring vehicles during a user-defined time frame, and a lock system for hiring of vehicles
CN107154847A (en) * 2016-03-06 2017-09-12 北京火河科技有限公司 Towards the method for generating cipher code, verification method and its smart machine of offline environment
CN105959114A (en) * 2016-07-12 2016-09-21 安恒世通(北京)网络科技有限公司 Dynamic password generation method for integrated passageway of apartment building
CN106952378A (en) * 2017-04-11 2017-07-14 徐士兰 Method for unlocking and device, electronic lock
CN107978047A (en) * 2017-12-04 2018-05-01 北京深思数盾科技股份有限公司 Use the methods, devices and systems of password unlocking
CN109377600A (en) * 2018-09-26 2019-02-22 广东西雅斯智能科技有限公司 Smart lock password sharing method, device and system
CN109472904A (en) * 2018-11-20 2019-03-15 北京千丁互联科技有限公司 Door lock password management system and method
CN110098923A (en) * 2019-04-08 2019-08-06 浙江大华技术股份有限公司 A kind of method and apparatus of generation and verifying temporary password

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111080868A (en) * 2019-12-21 2020-04-28 广州保仕盾智能科技有限公司 Temporary password setting and verifying method for intelligent door lock
CN111915772A (en) * 2020-08-04 2020-11-10 四川铁集共联科技股份有限公司 Remote unlocking method
CN113034745A (en) * 2021-03-05 2021-06-25 深圳拓邦股份有限公司 Unlocking method, intelligent lock and unlocking system

Similar Documents

Publication Publication Date Title
US12212689B2 (en) Providing security in an intelligent electronic device
CN106971442B (en) A kind of safe and intelligent lock system
CN105279832B (en) Intelligent door lock system and its control method
US9467293B1 (en) Generating authentication codes associated with devices
US9659424B2 (en) Technologies and methods for security access
KR101618692B1 (en) User authentication method for security enhancement
JP5574611B2 (en) Electronic unlocking system, server, user terminal, electric lock terminal, and information processing method
US20190088048A1 (en) System and method for managing distributed encrypted combination over-locks from a remote location
CN107146307B (en) A kind of method of securely unlocking of intelligent lock system
US9580295B2 (en) Systems and methods for fuel dispenser security
CN106952378A (en) Method for unlocking and device, electronic lock
US20170063549A1 (en) Portable Biometric-based Identity Device
CN107210919A (en) The method that trust is set up between equipment and device
CN105900148A (en) time synchronization
CN110570564A (en) single-machine lock and control method thereof
KR20160003796A (en) User authentication
KR101746102B1 (en) User authentication method for integrity and security enhancement
GB2531247A (en) Method, hardware and digital certificate for authentication of connected devices
CN107958513A (en) A kind of offline authorization method and system of electronic lock
CN112734989A (en) Bluetooth key distribution method of intelligent door lock
CN109064599A (en) Purview certification method and device
US20240338756A1 (en) System and method for transmitting unlock codes based on event triggers
CN110580759A (en) Manageable single-machine lock, realization method thereof and centralized single-machine lock management system
CN113593085A (en) Door lock temporary password generation method, system, equipment and storage medium
CN112446982A (en) Method, device, computer readable medium and equipment for controlling intelligent lock

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
RJ01 Rejection of invention patent application after publication

Application publication date: 20191213

RJ01 Rejection of invention patent application after publication