CN112037383B - Intelligent door lock and authority judgment method and application system thereof - Google Patents

Intelligent door lock and authority judgment method and application system thereof Download PDF

Info

Publication number
CN112037383B
CN112037383B CN202010936319.0A CN202010936319A CN112037383B CN 112037383 B CN112037383 B CN 112037383B CN 202010936319 A CN202010936319 A CN 202010936319A CN 112037383 B CN112037383 B CN 112037383B
Authority
CN
China
Prior art keywords
door lock
intelligent door
unlocking password
unlocking
data
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
CN202010936319.0A
Other languages
Chinese (zh)
Other versions
CN112037383A (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.)
Beijing Ziguang Anxin Technology Co ltd
Original Assignee
Beijing Ziguang Anxin 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 Beijing Ziguang Anxin Technology Co ltd filed Critical Beijing Ziguang Anxin Technology Co ltd
Priority to CN202010936319.0A priority Critical patent/CN112037383B/en
Publication of CN112037383A publication Critical patent/CN112037383A/en
Application granted granted Critical
Publication of CN112037383B publication Critical patent/CN112037383B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

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/00896Electronically operated locks; Circuits therefor; Nonmechanical keys therefor, e.g. passive or active electrical keys or other data carriers without mechanical keys specially adapted for particular uses
    • 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
    • G07C2009/00634Power supply for the lock
    • G07C2009/00642Power supply for the lock by battery

Abstract

The method comprises the steps of obtaining an unlocking password carried by a carrier card, obtaining a target unlocking password of the intelligent door lock by adopting a preset encryption algorithm based on prestored data and random data in the unlocking password according to a generation mode the same as that of the unlocking password, judging whether the unlocking password is the same as the target unlocking password, and further judging whether the carrier card has unlocking permission; that is, according to the invention, whether the carrier card has the unlocking authority can be known without putting an NB module in the intelligent door lock into a working state, so that the current increased by using the NB module is avoided, the information of the carrier card does not need to be submitted to a cloud platform in advance, and the use experience of a user is not different.

Description

Intelligent door lock and authority judgment method and application system thereof
Technical Field
The invention relates to the technical field of detection, in particular to an intelligent door lock, and a permission judgment method and an application system thereof.
Background
The intelligent door lock is a lockset which is different from the traditional mechanical lock, is improved on the basis of the traditional mechanical lock and is more intelligent, simple and convenient in the aspects of application safety, identification and management performance. The intelligent door lock has extremely strict requirements on current, the current is generally maintained at 20-30 uA in a sleep state, and the current is maintained at 50-100 mA in a working state. Once an NB (Narrow Band Internet of Things) module in the intelligent door lock is opened, the work consumption of the NB module can be superposed, so that the current of the whole intelligent door lock reaches 400mA.
Because the low-power consumption technique of current NB module self can not satisfy the low current requirement of intelligent lock, consequently, the NB module only under specific circumstances, for example when taking place to report an emergency and ask for help or increased vigilance and off-line password unblank, just can launch the power and network to the number of times of networking every day is restricted. After the number of times of networking reaches the upper limit, the NB module needs to wait for the next day before networking. If the intelligent door lock does not have any operation, the state of the intelligent door lock is reported to the cloud platform once at intervals of 24 hours.
In the prior art, if an intelligent door lock needs to be opened through a door card carrying an unlocking password, for example, in an apartment application scene, an NB module needs to be opened in time so that the intelligent door lock can know that the corresponding door card has an unlocking authority, and power consumption is inevitably increased; or need inform intelligent lock through the NB module in advance, obviously not be applicable to this scene.
Disclosure of Invention
Therefore, the application provides the intelligent door lock, the authority judgment method and the application system thereof, so that the intelligent door lock can know whether the door card has the unlocking authority or not in time with low power consumption.
In order to achieve the above purpose, the embodiments of the present invention provide the following technical solutions:
the application discloses in a first aspect, a permission judgment method for an intelligent door lock, comprising:
acquiring an unlocking password carried by a carrier card;
based on pre-stored data and random data in the unlocking password, a preset encryption algorithm is adopted to obtain a target unlocking password of the intelligent door lock; the target unlocking password and the unlocking password are generated in the same way;
judging whether the unlocking password is the same as the target unlocking password or not;
and if the unlocking password is the same as the target unlocking password, judging that the carrier card has the unlocking authority.
Optionally, in the method for determining authority of an intelligent door lock, the unlocking password includes: the random data and the mixed encrypted data are arranged according to a preset sequence;
the mixed encrypted data is generated by encrypting the random data and the secret data; the secret data and the pre-stored data are the same data.
Optionally, in the method for determining a permission of an intelligent door lock, the obtaining a target unlocking password of the intelligent door lock by using a preset encryption algorithm based on pre-stored data and random data in the unlocking password includes:
encrypting the random data and the secret data for multiple times to generate a plurality of target encrypted data;
and for a plurality of target encrypted data, respectively arranging the target encrypted data and the random data according to the preset sequence to generate a plurality of passwords which are all used as the target unlocking passwords.
Optionally, in the method for determining the authority of the intelligent door lock, determining whether the unlocking password is the same as the target unlocking password includes:
judging whether the unlocking password is the same as any one of the target unlocking passwords or not;
and if the unlocking password is the same as any one of the target unlocking passwords, judging that the unlocking password is the same as the target unlocking password.
Optionally, in the method for determining authority of an intelligent door lock, the secret data includes a root key, a timestamp, and a lock device ID of the intelligent door lock;
encrypting the random data and the secret data a plurality of times, comprising:
calculating by adopting the same algorithm based on the root key, the timestamp, the lock equipment ID and the random data to obtain corresponding passwords of N preset time periods after the current timestamp, wherein the passwords are used as the target encrypted data;
wherein N is a positive integer.
Optionally, in the method for determining authority of an intelligent door lock, N is 3, and the preset time period is 8 hours.
Optionally, in the method for determining the authority of the intelligent door lock, the cloud platform holds the secret data, and the unlocking password is generated after the cloud platform receives a password application request.
Optionally, in the method for determining an authority of an intelligent door lock, after determining whether the unlocking password is the same as the target unlocking password, if the unlocking password is not the same as the target unlocking password, the method further includes:
and judging that the carrier card does not have unlocking authority.
Optionally, in the method for determining authority of an intelligent door lock, after determining that the carrier card has the unlocking authority, the method further includes:
and writing the information of the carrier card into a white list of the intelligent door lock.
Optionally, in the method for determining authority of an intelligent door lock, after obtaining the unlocking password carried by the carrier card, the method further includes:
judging whether the information of the carrier card belongs to the intelligent door lock white list or not; wherein the white list of the intelligent door lock is updated when the intelligent door lock is networked with the cloud platform;
if the information of the carrier card does not belong to the white list, executing the step of obtaining a target unlocking password of the intelligent door lock by adopting a preset encryption algorithm based on the pre-stored data and random data in the unlocking password;
and if the information of the carrier card belongs to the white list, judging that the carrier card has unlocking authority.
The application second aspect discloses an intelligence lock, includes: the lock comprises a lock body, a battery, an NB module, a memory and a processor; wherein:
the battery is used for supplying power to the intelligent door lock;
the NB module is used for realizing communication between the processor and the cloud platform;
the processor is used for controlling the lock body and operating the program stored in the memory;
the program stored in the memory includes any one of the methods for determining the authority of the intelligent door lock disclosed in the first aspect.
The third aspect of the present application discloses an application system of an intelligent door lock, comprising: the system comprises a processing terminal, a cloud platform, at least one carrier card and at least one intelligent door lock as disclosed in the second aspect; wherein:
the cloud platform is in communication connection with the processing terminal and an NB module in the intelligent door lock respectively;
the processing terminal is used for responding to user operation and sending a password application request to the cloud platform so as to ask for an unlocking password of the corresponding intelligent door lock; receiving an unlocking password fed back by the cloud platform, and writing the unlocking password into the carrier card;
and the cloud platform is used for responding to the password application request, calculating the unlocking password according to random data and confidential data commonly held by the intelligent door lock and the cloud platform, and feeding the unlocking password back to the processing terminal.
Optionally, in the application system of the intelligent door lock, when an NB module in the intelligent door lock is networked with the cloud platform, the cloud platform is further configured to: the unlocking password is issued to the intelligent door lock;
the intelligent door lock is also used for: and receiving the unlocking password and updating a white list in the user.
Based on the authority judgment method of the intelligent door lock, after the unlocking password carried by the carrier card is obtained, a target unlocking password of the intelligent door lock is obtained according to the same generation mode as the unlocking password and based on pre-stored data and random data in the unlocking password by adopting a preset encryption algorithm, and then whether the unlocking password is the same as the target unlocking password is judged, so that whether the carrier card has the unlocking authority is judged; that is, the method can check whether the unlocking password is correct or not by adopting the same generation mode as the unlocking password through the intelligent door lock when the NB module in the intelligent door lock is not required to be put into operation, so that whether the carrier card has the unlocking authority or not can be known.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to the provided drawings without creative efforts.
Fig. 1 is a flowchart of an authority determination method for an intelligent door lock according to an embodiment of the present application;
fig. 2 is a partial flowchart of a method for determining authority of an intelligent door lock according to an embodiment of the present application;
3-5 are flowcharts of three other methods for determining the authority of the intelligent door lock according to the embodiment of the present application;
fig. 6 is a schematic structural diagram of an application system of an intelligent door lock according to an embodiment of the present application.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be obtained by a person skilled in the art without making any creative effort based on the embodiments in the present invention, belong to the protection scope of the present invention.
The embodiment of the application provides an authority judgment method of an intelligent door lock, which is applied to a processor of the intelligent door lock, so that the intelligent door lock can timely know whether a door card has unlocking authority or not with low power consumption.
Referring to fig. 1, the method for determining the authority mainly includes the following steps:
s101, obtaining an unlocking password carried by the carrier card.
In an application system of the intelligent door lock, a carrier card is a user card which is matched with the intelligent door lock and carries an unlocking password of the intelligent door lock.
In practical application, the carrier card may be a radio frequency card or a contactless TM card; of course, other door cards that can be used in the smart door lock system in the prior art are also possible. The specific form of the carrier card is not limited in this application, and all of the forms belong to the protection scope of this application.
Specifically, this password of unblanking includes: random data and mixed encrypted data arranged in a preset order. The mixed encrypted data is generated by encrypting based on random data and secret data. In practical application, the unlocking password can be generated by the cloud platform, and the cloud platform and the intelligent door lock jointly hold the secret data.
After the smart door lock obtains the unlocking password, the random data can be obtained, and the secret data is pre-stored in the smart door lock, so that step S102 can be executed.
S102, based on the pre-stored data and random data in the unlocking password, a preset encryption algorithm is adopted to obtain a target unlocking password of the intelligent door lock.
The pre-stored data is secret data pre-stored in the intelligent door lock.
In practical application, step S102 is a specific process of obtaining a target unlocking password of the intelligent door lock by using a preset encryption algorithm, which can be seen in fig. 2.
S201, encrypting the random data and the secret data for multiple times to generate a plurality of target encrypted data.
Specifically, if the secret data includes the root key, the timestamp, and the lock device ID of the smart door lock itself, the specific process of encrypting the random data and the secret data for multiple times includes:
and calculating by adopting the same algorithm based on the root key, the timestamp, the locking equipment ID and the random data to obtain corresponding passwords of N preset time periods after the current timestamp, wherein the passwords are used as target encryption data. Wherein N is a positive integer.
In practical application, the value of N and the preset time interval are determined according to the NB networking interval, for example, if the NB networking interval is 24 hours, N is 3, the preset time interval is 8 hours, if the NB networking interval is 12 hours, N is 3, the preset time is 4 hours, and so on. Of course, the specific values of N and the preset time period may also be determined according to the specific application environment and the user requirements, and the application is not particularly limited and belongs to the protection scope of the application.
S202, arranging the plurality of target encrypted data and the random data according to a preset sequence to generate a plurality of passwords which are all used as target unlocking passwords.
The preset sequence can be a splicing sequence of random data before and target encrypted data after; of course, the target encrypted data can be spliced in the sequence of the front random data and the back random data. The specific manner of presetting the sequence is not limited in the present application, and all the embodiments belong to the protection scope of the present application.
Actually, the target unlocking password and the unlocking password are generated in the same manner, that is, the generation manner of each password in the target unlocking password is the same as that of the unlocking password; the following further explains the process of obtaining the unlocking code and the target unlocking code by using a specific example:
firstly, after a processing terminal in an application system of the intelligent door lock, such as a foreground computer of a hotel, responds to user operation, a password application request is sent to a cloud platform to ask for an unlocking password of the corresponding intelligent door lock. At the moment, the cloud platform responds to the password application request, and an unlocking password is calculated by adopting a preset encryption algorithm according to the random data and the confidential data jointly held by the intelligent door lock and the cloud platform.
Assuming that the number of digits of the unlocking password is six, the specific process of generating the unlocking password by the cloud platform is as follows:
a. the cloud platform first generates 2-bit random data, e.g., 28.
b. The cloud platform calculates by using a preset encryption algorithm according to the timestamp in the confidential data, the root key of the intelligent door lock, the lock device ID and the generated random data, so as to obtain mixed encrypted data 4685.
c. And arranging the random data and the mixed encrypted data according to the random data before and the mixed encrypted data after to obtain the unlocking password 284685.
And then the cloud platform returns the unlocking password to the processing terminal, and the processing terminal writes the unlocking password into the carrier card.
Then, the user carries the carrier card to perform a first door opening operation, and the intelligent door lock executes the steps S101 and S102; the method is the same as the unlocking password generation method, and if N is 3 and the preset time period is 8 hours, the specific process of obtaining the target unlocking password by the intelligent door lock is as follows:
1. the smart door lock first obtains random data in the unlock code, such as 28 above.
2. The intelligent door lock adopts a preset encryption algorithm to calculate according to the timestamp in the confidential data, the root key of the intelligent door lock, the lock equipment ID and the random data, and obtains corresponding passwords 3 after the current timestamp and 8 hours in a preset time period, wherein the passwords are respectively as follows: 4685. 5326, 9643, as target encrypted data.
3. Arranging the random data and each target data respectively according to the random data before and after the target data to obtain 3 six-digit target unlocking passwords, wherein the three target unlocking passwords are respectively as follows: 284685, 285326, 289643.
In other words, when N is 3 and the preset time period is 8 hours, the smart door lock may perform 3 times of calculation by using a preset encryption algorithm according to the root key of the smart door lock, the timestamp, the lock device ID, and the first two random data in the unlocking password, so as to obtain the password corresponding to the current timestamp and every 8 hours. That is, according to the above-described manner, the unlocking password of the smart door lock corresponding to each 8 hours within the future 24 hours of the smart door lock can be obtained as the target unlocking password. Step S103 may be performed.
And S103, judging whether the unlocking password is the same as the target unlocking password or not.
Similarly, if N is 3 and the preset time period is 8 hours, if the unlocking password carried by the carrier card is any one of the passwords within 24 hours after the current timestamp of the smart door lock, it is determined that the unlocking password is the same as the target unlocking password, and step S104 is executed.
And S104, judging that the carrier card has unlocking authority.
In practical application, as long as the unlocking password carried by the carrier card is the same as any one of the target unlocking passwords corresponding to the intelligent door lock within 24 hours before the current timestamp, in other words, if the unlocking password carried by the carrier card is the same as any one of the target unlocking passwords obtained by adopting the preset encryption algorithm in the intelligent door lock, the carrier card can be judged to have the unlocking authority.
In the implementation, the authority judgment of the carrier card can be directly realized in the process that the user uses the carrier card to open the intelligent door lock for the first time through the process; that is, the method and the device can check whether the unlocking password is correct or not by adopting the same generation mode as the unlocking password through the intelligent door lock when the NB module in the intelligent door lock is not required to be put into operation, so that whether the carrier card has the unlocking authority or not can be known.
Optionally, in another embodiment provided by the present application, please refer to fig. 3, after step S103 is executed, and it is determined whether the unlocking password is the same as any one of the target unlocking passwords, if the unlocking password is different from all the target unlocking passwords, step S301 is further included.
S301, judging that the carrier card does not have unlocking authority.
Suppose N is 3 in the same way, the preset time quantum is 8 hours, and when the unlocking password carried by the carrier card is different from the corresponding unlocking password of the intelligent door lock within 24 hours after the current timestamp, the unlocking password carried by the carrier card can be known, and the carrier card is not obtained by using the secret data and the random data jointly held by the intelligent door lock and the cloud platform, so that the carrier card can be judged not to have the unlocking authority.
Optionally, on the basis of any of the above embodiments, please refer to fig. 4 (which is shown on the basis of fig. 1 as an example), after the step S104 is executed and the carrier card is determined to have the unlocking authority, the method further includes:
s401, writing the information of the carrier card into a white list of the intelligent door lock.
It should be noted that, after the carrier card is determined to have the unlocking authority, the information of the carrier card may be written into the white list of the smart door lock by using the manner of obtaining the target unlocking password by using the same encryption algorithm as that used for generating the unlocking password, so that the carrier card becomes a user card authorized legally by the smart door lock, and when a subsequent user uses the carrier card, the subsequent user can directly pass the verification of the smart door lock.
Optionally, on the basis of any of the above embodiments, please refer to fig. 5 (which is shown on the basis of fig. 1 as an example), after the step S101 is executed to obtain the unlocking password carried by the carrier card, the method further includes:
s501, judging whether the information of the carrier card belongs to the intelligent door lock white list.
Wherein, the white list of the intelligent door lock is updated when the intelligent door lock is networked with the cloud platform.
And if the information of the carrier card does not belong to the white list, executing the step S102, and obtaining a target unlocking password of the intelligent door lock by adopting a preset encryption algorithm based on the pre-stored data and random data in the unlocking password. That is, after the result of judging the unlocking authority of the carrier card by the white list of the intelligent door lock is that the unlocking authority is not available, the subsequent steps are executed, a mode of obtaining a target unlocking password by a preset encryption algorithm is adopted, secondary judgment is carried out on whether the carrier card has the unlocking authority or not, so that when the intelligent door lock does not start the NB module and the cloud platform networking and updates the white list in the intelligent door lock, the authority judgment can still be carried out on the unlocking password carried by the carrier card through the intelligent door lock, and the mode of carrying out the authority judgment after the intelligent door lock white list is updated by starting the NB module and the cloud platform networking is not poor.
And if the unlocking password belongs to the passwords in the white list, executing the step S104 and judging that the carrier card has the unlocking authority.
In practical application, if the intelligent door lock can be before obtaining the password of unblanking that the carrier card carried, just network with the cloud platform through NB module in self, update the white list in self, then just can realize the information verification to the carrier card through this white list, and then can directly judge whether this carrier card has the authority of unblanking.
On the basis of the above-described authority determination method for an intelligent door lock, another embodiment of the present application further provides an intelligent door lock, which mainly includes:
lock body, battery, NB module, memory and treater.
Wherein, the battery is used for supplying power for intelligent lock.
The NB module is used for realizing communication between the processor and the cloud platform.
The processor is used for controlling the lock body and operating the program stored in the memory.
The program stored in the memory comprises the authority determination method of the intelligent door lock according to any embodiment.
It should be noted that, the principle and the related description of the lock body, the battery, the NB module, the memory and the processor in the intelligent door lock can refer to the prior art, and are not described in detail in this application.
It should be noted that, the principle and the related description of the authority determination method of the intelligent door lock in the program stored in the memory may refer to the embodiments corresponding to fig. 1 to fig. 5 of the present application, and are not described herein again.
Optionally, on the basis of the foregoing, an embodiment of the present application further provides an application system of an intelligent door lock, please refer to fig. 6, where the application system of the intelligent door lock mainly includes: the system comprises a processing terminal 101, a cloud platform 102, at least one carrier card 104 and at least one intelligent door lock 103 executing the authority determination method of the intelligent door lock.
The cloud platform 102 is in communication connection with the NB modules in the processing terminal 101 and the intelligent door lock 103, respectively.
The processing terminal 101 is used for responding to user operation and sending a password application request to the cloud platform 102 to ask for an unlocking password of the corresponding intelligent door lock; and receiving the unlocking password fed back by the cloud platform 102, and writing the unlocking password into the carrier card 104.
And the cloud platform 102 is used for responding to the password application request, calculating an unlocking password according to the random data and the confidential data commonly held by the intelligent door lock 103 and the cloud platform 102, and feeding the unlocking password back to the processing terminal 101.
In practical applications, the cloud platform 102 may be a server for implementing management of the processing terminal 101 and the smart door lock 103.
The processing terminal 101 may be a front end of a computer, or may be a terminal server having a processing function in any application system of the intelligent door lock. The present application is not limited to the specific form thereof, and the present application is intended to cover all such forms as fall within the scope of the present application.
In practical applications, the carrier card 104 may be a radio frequency card, and the processing terminal 101 may write the unlocking password into the radio frequency card through a radio frequency card reader.
It should be noted that if the application scenario of the application system of the intelligent door lock is a hotel, and the carrier card 104 is a radio frequency card, the processing terminal 101 is a hotel foreground and a computer for checking in. When the hotel manager transacts the check-in procedure for the guest, the computer can respond to the operation of the hotel manager and send a password application request to the cloud platform so as to ask for the unlocking password of the corresponding intelligent door lock. After receiving the unlocking password fed back by the cloud platform 102, the hotel manager can operate the processing terminal 101, and write the unlocking password into the radio frequency card through the radio frequency card reader, so that the user can open the door of the intelligent door lock by using the radio frequency card within a preset time period, for example, within 24 hours.
With reference to fig. 6 and the above description, the following further explains and explains an application system of the intelligent door lock with a specific example:
1. after the user completes the check-in procedure, the processing terminal 101 applies for a temporary password for 24 hours to the cloud platform 102 through the network.
2. The cloud platform 102 first generates a two-digit random number, then obtains other four digits through a certain algorithm by using the generated random data in combination with a timestamp, a root key of the intelligent door lock 103 and a lock device ID, and then combines the two digits and the four digits to form a six-digit password, namely an unlocking password.
3. The processing terminal 101 writes an unlocking password into a radio frequency card (namely the carrier card 101) through a radio frequency card reader, when a user opens a door for the first time by using the radio frequency card within 24 hours, if the cloud platform 102 sends information of the radio frequency card to the intelligent door lock 103 through a networking window of the intelligent door lock NB module, the intelligent door lock 103 compares the white list information of the radio frequency card, and the unlocking is performed if the verification is passed; if the radio frequency card is not in the white list of the intelligent door lock, the intelligent door lock 103 calculates the password every 8 hours behind the current timestamp by adopting the same algorithm according to the root key, the timestamp, the lock equipment ID and the first two random data of the unlocking password carried by the radio frequency card, the calculation is carried out for 3 times in total, if one 8-hour password is the same as the unlocking password of the radio frequency card, the radio frequency card is considered to be legally authorized, the information of the radio frequency card is written into the intelligent door lock 103 to form a formal card, and if not, the radio frequency card is considered to be illegal.
It should be noted that, with the random data, leakage of the secret data of the cloud platform 101 can be prevented. Moreover, the data in the radio frequency card has certain timeliness, and the data is invalidated after a certain time. The method comprises the steps that a person serves as an information carrier, random data in information is partially informed to an intelligent door lock 103, the intelligent door lock 103 obtains a target unlocking password through the same algorithm by using secret data held by a cloud platform 102 and the intelligent door lock 103, and the target unlocking password and the secret data are compared to obtain a final judgment result.
It should be noted that setting information in the carrier card 104 to be valid for a short time corresponds to writing data into the smart door lock 103 via the carrier card 104. Exceeding the time efficiency range of the information in the carrier card 104, the cloud platform 102 can be issued to the intelligent door lock 103 through the NB module channel, and then the information in the original carrier card can still pass through the verification, so that the user experience is indistinguishable. That is, this scheme utilizes the people as the passer who carries the information, makes up the non-real-time shortage of NB module communication mode, realizes the transmission of information safety ground from cloud platform 102 to intelligent lock 103 in the short time.
In other words, the scheme utilizes the operation that the user can carry the carrier card to the intelligent door lock 103 for swiping the card, namely, the user plays a role in data transmission in the communication process, the key backup of the NB module communication channel is realized, and the data safety can be ensured.
Moreover, after the intelligent door lock 103 in the application system knows that the carrier card has the unlocking authority, the unlocking password can be written into the white list of the intelligent door lock 103, so that the carrier card becomes a user card authorized by the intelligent door lock legally, and the follow-up user can be directly authenticated by the intelligent door lock 103 when using the carrier card.
In practical application, when the NB module in the smart door lock 103 is networked with the cloud platform 102, the cloud platform 102 is further configured to: and issuing the unlocking password to the intelligent door lock.
The smart door lock 103 is also used for: and receiving an unlocking password and updating a white list in the user.
It should be noted that the NB module in the smart door lock 103 is networked with the cloud platform 102, so that the information of the smart door lock 103 and the cloud platform 102 can be synchronized.
It should be noted that, the principle and the related description of the authority determination method executed by the intelligent door lock 103 and the intelligent door lock 103 in the application system may also refer to the above embodiments, and are not described herein again.
Features described in the embodiments in the present specification may be replaced or combined with each other, and the same and similar portions among the embodiments may be referred to each other, and each embodiment is described with emphasis on differences from other embodiments. In particular, the system or system embodiments are substantially similar to the method embodiments and therefore are described in a relatively simple manner, and reference may be made to some of the descriptions of the method embodiments for related points. The above-described system and system embodiments are merely illustrative, and the units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of the present embodiment. One of ordinary skill in the art can understand and implement it without inventive effort.
Those of skill would further appreciate that the various illustrative components and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware, computer software, or combinations of both, and that the components and steps of the various examples have been described above generally in terms of their functionality in order to clearly illustrate this interchangeability of hardware and software. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the implementation. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present invention.
The previous description of the disclosed embodiments is provided to enable any person skilled in the art to make or use the present invention. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the generic principles defined herein may be applied to other embodiments without departing from the spirit or scope of the invention. Thus, the present invention is not intended to be limited to the embodiments shown herein but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.
It is further noted that, herein, relational terms such as first and second, and the like may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrases "comprising a," "8230," "8230," or "comprising" does not exclude the presence of additional like elements in a process, method, article, or apparatus that comprises the element.

Claims (12)

1. An authority judgment method of an intelligent door lock is characterized by comprising the following steps:
acquiring an unlocking password carried by a carrier card;
based on pre-stored data and random data in the unlocking password, a preset encryption algorithm is adopted to obtain a target unlocking password of the intelligent door lock; the target unlocking password and the unlocking password are generated in the same way;
judging whether the unlocking password is the same as the target unlocking password or not;
if the unlocking password is the same as the target unlocking password, judging that the carrier card has unlocking permission;
and writing the information of the carrier card into a white list of the intelligent door lock.
2. The authority determination method for an intelligent door lock according to claim 1, wherein the unlocking password includes: the random data and the mixed encrypted data are arranged according to a preset sequence;
the mixed encrypted data is generated by encrypting the random data and the secret data; the secret data and the pre-stored data are the same data.
3. The permission judging method of the intelligent door lock according to claim 2, wherein the obtaining of the target unlocking password of the intelligent door lock by using a preset encryption algorithm based on pre-stored data and random data in the unlocking password comprises:
encrypting the random data and the secret data for multiple times to generate a plurality of target encrypted data;
and for a plurality of target encrypted data, respectively arranging the target encrypted data and the random data according to the preset sequence to generate a plurality of passwords which are all used as the target unlocking passwords.
4. The method for judging the authority of the intelligent door lock according to claim 3, wherein the step of judging whether the unlocking password is the same as the target unlocking password comprises the steps of:
judging whether the unlocking password is the same as any one of the target unlocking passwords;
and if the unlocking password is the same as any one of the target unlocking passwords, judging that the unlocking password is the same as the target unlocking password.
5. The method of claim 3, wherein the secret data includes a root key, a timestamp, and a lock device ID of the smart door lock;
encrypting the random data and the secret data a plurality of times, comprising:
calculating by adopting the same algorithm based on the root key, the timestamp, the lock device ID and the random data to obtain corresponding passwords of N preset time periods after the current timestamp, wherein the passwords are all used as the target encrypted data;
wherein N is a positive integer.
6. The method for judging the authority of an intelligent door lock according to claim 5, wherein N is 3, and the preset time period is 8 hours.
7. The intelligent door lock permission determination method according to any one of claims 2 to 6, wherein the cloud platform holds the secret data, and the unlocking password is generated after the cloud platform receives a password application request.
8. The method for determining the authority of the intelligent door lock according to claim 1, wherein after determining whether the unlocking password is the same as the target unlocking password, if the unlocking password is not the same as the target unlocking password, the method further comprises:
and judging that the carrier card does not have unlocking authority.
9. The method of claim 7, further comprising, after obtaining the unlock code carried by the carrier card:
judging whether the information of the carrier card belongs to the intelligent door lock white list or not; wherein the white list of the intelligent door lock is updated when the intelligent door lock is networked with the cloud platform;
if the information of the carrier card does not belong to the white list, executing the step of obtaining a target unlocking password of the intelligent door lock by adopting a preset encryption algorithm based on the prestored data and random data in the unlocking password;
and if the information of the carrier card belongs to the white list, judging that the carrier card has unlocking authority.
10. An intelligent door lock, comprising: the lock comprises a lock body, a battery, an NB module, a memory and a processor; wherein:
the battery is used for supplying power to the intelligent door lock;
the NB module is used for realizing communication between the processor and a cloud platform;
the processor is used for controlling the lock body and operating the program stored in the memory;
the program stored in the memory includes the authority determination method of the intelligent door lock according to any one of claims 1 to 9.
11. An application system of an intelligent door lock is characterized by comprising: a processing terminal, a cloud platform, at least one carrier card, and at least one smart door lock as recited in claim 10; wherein:
the cloud platform is in communication connection with the processing terminal and an NB module in the intelligent door lock respectively;
the processing terminal is used for responding to user operation and sending a password application request to the cloud platform so as to ask for an unlocking password of the corresponding intelligent door lock; receiving an unlocking password fed back by the cloud platform, and writing the unlocking password into the carrier card;
and the cloud platform is used for responding to the password application request, calculating the unlocking password according to random data and confidential data commonly held by the intelligent door lock and the cloud platform, and feeding the unlocking password back to the processing terminal.
12. The application system of the intelligent door lock according to claim 11, wherein when an NB module in the intelligent door lock is networked with the cloud platform, the cloud platform is further configured to: the unlocking password is issued to the intelligent door lock;
the intelligent door lock is also used for: and receiving the unlocking password and updating a white list in the user.
CN202010936319.0A 2020-09-08 2020-09-08 Intelligent door lock and authority judgment method and application system thereof Active CN112037383B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010936319.0A CN112037383B (en) 2020-09-08 2020-09-08 Intelligent door lock and authority judgment method and application system thereof

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010936319.0A CN112037383B (en) 2020-09-08 2020-09-08 Intelligent door lock and authority judgment method and application system thereof

Publications (2)

Publication Number Publication Date
CN112037383A CN112037383A (en) 2020-12-04
CN112037383B true CN112037383B (en) 2022-11-08

Family

ID=73585383

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010936319.0A Active CN112037383B (en) 2020-09-08 2020-09-08 Intelligent door lock and authority judgment method and application system thereof

Country Status (1)

Country Link
CN (1) CN112037383B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113689610A (en) * 2021-08-31 2021-11-23 深圳指芯物联技术有限公司 Off-line authorization method and system for rental period password of rental house tenant
CN115314272A (en) * 2022-07-29 2022-11-08 金邦达有限公司 Remote authorization method for intelligent door lock

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103729818B (en) * 2014-01-20 2017-02-08 深圳市再丰达科技有限公司 Hotel self-service check-in and check-out system and method
CN108551455B (en) * 2018-04-24 2021-02-26 北京小米移动软件有限公司 Configuration method and device of smart card
CN110895839A (en) * 2018-09-13 2020-03-20 杭州涂鸦信息技术有限公司 Intelligent door lock unlocking method and device in network-free state
CN110535962B (en) * 2019-09-03 2022-02-25 日立楼宇技术(广州)有限公司 Data synchronization method, device, equipment and storage medium based on authentication equipment
CN110930551A (en) * 2019-11-27 2020-03-27 惠州拓邦电气技术有限公司 Unlocking method and device, password authorization method and device, and door lock system

Also Published As

Publication number Publication date
CN112037383A (en) 2020-12-04

Similar Documents

Publication Publication Date Title
US11120656B2 (en) Methods and systems for offline verification code generation based on smart door lock system
CN109272606B (en) Intelligent lock supervision equipment and method based on block chain and storage medium
CN111478918B (en) Device with access control function
CN1323538C (en) A dynamic identity certification method and system
CN106789875B (en) A kind of block chain service unit, block chain service system and its communication means
EP1810093B1 (en) Actuating a security system using a wireless device
CN207409010U (en) The newer temporary password access control system of encryption parameter dynamic
CN101667308B (en) Access control system, access control devices, access card and access control method
CN104299300B (en) The unblanking and close locking method of safety intelligent lock system based on NFC
CN112037383B (en) Intelligent door lock and authority judgment method and application system thereof
CN110601844B (en) System and method for guaranteeing safety and authentication of Internet of things equipment by using block chain technology
CN109840975A (en) Remote authorization unlocking system and method without networking
CN107958513A (en) A kind of offline authorization method and system of electronic lock
CN109035515A (en) The control method and door-locking system of smart lock
KR20120112598A (en) Implementing method, system of universal card system and smart card
CN113965328B (en) Authority transfer method and system for digital key offline condition of trusted execution environment
CN109003368B (en) Bluetooth access control system offline password updating method and Bluetooth access control system
CN110298947A (en) A kind of method for unlocking and electronic lock
CN104282059A (en) Bluetooth-based safety intelligent lock system with video monitoring function and unlocking and locking methods
US11228453B2 (en) Secure provisioning of electronic lock controllers
CN111161454A (en) Intelligent lock safety networking and control method
CN101465011B (en) Lock control system
CN114170709A (en) Money box management method and system based on Internet of things
CN114220199A (en) Unlocking method, intelligent lock and intelligent lock system
CN113468565A (en) Intelligent door lock control method and 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