Intelligent lock unlocking system based on Internet of Things and storage medium thereof
By designing an Internet of Things-based smart lock unlocking system in power enterprises, and using blockchain co-governance management network to realize dynamic authorization management of smart keys, the problem that existing lock products cannot meet industry needs is solved, and efficient information management of smart locks and secure distribution of authorization certificates is realized.
Patent Information
- Application Number
- CN202411616660.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-11-13
- Publication Date
- 2025-03-11
- Estimated Expiration
- Not applicable · inactive patent
AI Technical Summary
Existing lock products cannot fully meet industry needs, especially in the safety production management of power enterprises, and there is a lack of efficient intelligent lock unlocking system and dynamic authorization management mechanism.
A smart lock unlocking system based on the Internet of Things is designed, using the blockchain co-governance management network to realize the dynamic authorization management of smart keys, communicate with the smart lock through the gateway, and realize the opening and locking of passive smart locks.
It realizes the informatization and electronic management of smart locks, improves the flexibility and security of distribution of authorization certificates, and is suitable for the authorization management of massive smart key nodes.
Smart Images

Figure CN119600708A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of smart lock management, and in particular to a smart lock unlocking system based on the Internet of Things and a storage medium thereof. Background Art
[0002] With the continuous progress of society and the sustained development of economy, the use of locks and keys in various industries has gradually shown a diversified development trend. For example, the one-key unlocking in the power industry, the multi-key one-locking in the logistics and transportation industry, the master key system in the financial industry, etc. In order to meet the special needs of these industries, a number of new functional locks have emerged in the market, such as mechanical unlocking, mechanical key master locks, etc. Although these locks have been partially optimized in terms of usage compared to traditional locks and have achieved certain results, they cannot completely meet industry needs and solve key problems. Summary of the invention
[0003] The present invention provides an intelligent lock and unlocking system based on the Internet of Things and a storage medium thereof. The intelligent key is authorized by the intelligent lock and unlocking method stored on the storage medium, and a passive intelligent lock is used to lock various passage doors, protective screen cabinets, equipment and ladders related to production safety management in power enterprises, thereby realizing the informatization and electronicization of the unlocking operation process.
[0004] In order to achieve the above technical objectives, the present invention provides the following technical solutions:
[0005] A smart lock unlocking method based on the Internet of Things comprises the following steps:
[0006] Step 1: Build a control computer cluster. The control computers in the control computer cluster jointly build a blockchain co-governance management network with equal identities.
[0007] Before entering the IoT smart lock unlocking system under the control of the gateway, the control computer nodes, smart keys and passive smart locks in the blockchain co-governance management network need to perform the following initialization operations:
[0008] The control computer node in the blockchain co-governance management network enters its own device fingerprint information into the public database of the IoT smart lock unlocking system under the jurisdiction of the gateway and loads the common information in the IoT smart lock unlocking system under the jurisdiction of the gateway and the communication credentials of the control computer node in the blockchain co-governance management network and the co-governance credentials of the blockchain co-governance management network to which it belongs;
[0009] The smart key enters its own device fingerprint information into the public database of the IoT smart lock unlocking system under the jurisdiction of the gateway and loads the shared information in the IoT smart lock unlocking system under the jurisdiction of the gateway and the co-governance certificate of the blockchain co-governance management network;
[0010] The passive smart lock enters its own device fingerprint information into the public database of the IoT smart lock unlocking system under the jurisdiction of the gateway and loads the shared information in the IoT smart lock unlocking system under the jurisdiction of the gateway and the co-governance certificate of the blockchain co-governance management network;
[0011] Step 2: The control computer node in the blockchain co-governance management network authorizes the smart key. The specific process is as follows:
[0012] Based on the shared information in the IoT smart lock unlocking system under the control of the gateway, the smart key is set with the permission certificate for opening the passive smart lock, and then the first permission auxiliary application information, the second permission auxiliary application information and the third permission auxiliary application information are calculated and transmitted to the control computer node in the blockchain co-governance management network;
[0013] When a control computer node in the blockchain co-governance management network receives permission assistance application information, a control computer node in the blockchain co-governance management network is set as a proxy node and the remaining control computer nodes are set as non-proxy nodes. The proxy node executes smart contract I;
[0014] Smart Contract I: When the smart key applies to the control computer node in the blockchain co-governance management network for the permission certificate for opening the passive smart lock, the proxy node in the blockchain co-governance management network begins to verify the legitimacy of the identity of the smart key;
[0015] When smart contract I is successfully executed, set the non-agent nodes in the blockchain co-governance management network to execute smart contract II;
[0016] Smart Contract II: When Smart Contract I is successfully executed, the non-agent nodes in the blockchain co-governance management network begin to verify the legitimacy of the identity of the smart key and the agent node;
[0017] After the identity authentication of the smart key and the proxy node is successful, the non-proxy nodes in the blockchain co-governance management network jointly generate and send permission auxiliary challenge information to the smart key;
[0018] The smart key confirms the validity of the permission auxiliary challenge information, and after confirming that the verification is successful, generates the fourth permission auxiliary application information using the permission certificate, and sends the fourth permission auxiliary application information to the control computer node in the blockchain co-governance management network as a response;
[0019] When the control computer node in the blockchain co-governance management network receives the fourth permission auxiliary application information, the control computer in the blockchain co-governance management network is set to execute smart contract III;
[0020] Smart Contract III: When receiving the fourth permission auxiliary application information, the control computer node in the blockchain co-governance management network verifies the consistency of the response information and the challenge content;
[0021] When Smart Contract III is successfully executed, the control computer node in the blockchain co-governance management network authorizes the smart key and records the fourth permission auxiliary application information in the public database as the authorization certificate. The smart key officially obtains the permission certificate for opening the passive smart lock.
[0022] The control computer nodes in the blockchain co-governance management network authorize the unlocking user and send the unlocking user's identity information to the smart key;
[0023] Step 3: The smart key uses the permission certificate to open the passive smart lock. The specific process is as follows:
[0024] Collect the identity information of the unlocking user and compare it with the identity information of the unlocking user issued by the control computer node in the blockchain co-governance management network. When the comparison is correct, the unlocking user uses the smart key to open or close the passive smart lock. The specific process is as follows:
[0025] When the smart key opens the passive smart lock, the smart key supplies power to the passive smart lock and communicates with it, and the passive smart lock loads the second authority auxiliary application information and the fourth authority auxiliary application information from the smart key;
[0026] The passive smart lock authenticates the smart key. When the authentication of the smart key is correct, the unlocking user turns the mechanical key component of the smart key, and the passive smart lock opens and simultaneously uploads the opening status information to the control computer node in the blockchain co-governance management network.
[0027] When the smart key performs a locking operation on the passive smart lock, the smart key supplies power to the passive smart lock and communicates, and the passive smart lock loads the second authority auxiliary application information and the fourth authority auxiliary application information from the smart key;
[0028] The passive smart lock authenticates the authority of the smart key. When the authority of the smart key is correctly authenticated, the unlocking user turns the mechanical key component of the smart key, the passive smart lock locks and simultaneously uploads the locking status information to the control computer node in the blockchain co-governance management network.
[0029] A smart lock unlocking system based on the Internet of Things, the system is used to execute the smart lock unlocking method, including a management and control computer cluster, a smart key, a passive smart lock, a gateway and a public database of the Internet of Things smart lock unlocking system under the control of the gateway;
[0030] The control computer in the control computer cluster communicates with the smart key and the passive smart lock respectively through the gateway;
[0031] The control computer cluster is set to consist of at least four control computers, and the control computers in the control computer cluster jointly build a blockchain co-governance management network with equal identities.
[0032] Preferably, the management and control computer directly binds the user information with the smart key when allocating permissions and indirectly matches the user information with the passive smart lock.
[0033] A management and control computer includes a processor, a memory, a network interface and a database connected through a system bus, wherein a computer program is stored in the memory, and the computer program is characterized in that when the computer program is executed by the processor, the steps of the smart lock unlocking method based on the Internet of Things are implemented.
[0034] A computer-readable storage medium stores a computer program, which, when executed by a processor, implements the steps of a smart lock unlocking method based on the Internet of Things.
[0035] Compared with the prior art, the present invention has the following beneficial technical effects:
[0036] The present invention firstly constructs a smart lock unlocking system using the Internet of Things technology, and then designs an Internet of Things-based smart lock unlocking scheme based on the system. In the smart lock unlocking scheme, a new distributed lightweight dynamic authorization management mechanism is designed for the smart key used to open the passive smart lock. The dynamic authorization management mechanism can synchronously issue authorization credentials to a large number of smart key nodes, and the sending of authorization credentials does not require a secure channel, which effectively improves the flexibility and security of authorization credential distribution. BRIEF DESCRIPTION OF THE DRAWINGS
[0037] Figure 1 This is a schematic diagram of the architecture of an intelligent lock unlocking system based on the Internet of Things. DETAILED DESCRIPTION
[0038] Embodiment 1:
[0039] An intelligent lock unlocking system based on the Internet of Things, such as Figure 1 As shown, it includes a control computer cluster, a public database, smart keys, passive smart locks and gateways;
[0040] Set the control computer cluster to be n{n|n>3, n∈N *} control computers, which are: control computer S1, control computer S2, ..., control computer S i ,…, control computer Sn ; Wherein, the symbol i represents the number of the control computer S;
[0041] And control computer S1, control computer S2, ..., control computer S i ,…, control computer S n Jointly build a blockchain co-governance management network with equal identity.
[0042] Embodiment 2:
[0043] The control computers in Example 1 all include a processor, a memory, a network interface, and a database connected via a system bus;
[0044] Processors are used to provide computing and control capabilities;
[0045] The memory includes an internal memory and a non-volatile storage medium, wherein the internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium;
[0046] The non-volatile storage medium stores an operating system, a computer program and a database, and when the computer program is executed by the processor, the steps of a smart lock unlocking method based on the Internet of Things are implemented;
[0047] The network interface is used to communicate with external terminals through a network connection.
[0048] Embodiment 3:
[0049] The smart key is used to mechanically open, lock and exchange information with the passive smart lock, and communicate with the control computer node in the blockchain co-governance management network through the gateway;
[0050] The passive smart lock is equipped with an electronic chip, which is used for identification, opening and locking operations through the smart key. During the working process, the opening and locking status of the passive smart lock is uploaded to the control computer node in the blockchain co-governance management network through the gateway;
[0051] On the one hand, the management and control computer communicates data with the user information collection module to collect user information and perform authorization management on users. On the other hand, it communicates data with the smart key to perform authorization management on the smart key and bind user information with the smart key when assigning permissions. On the third hand, it configures the smart key to open the passive smart lock information.
[0052] Embodiment 4:
[0053] A smart lock unlocking method based on the Internet of Things includes the following implementation steps:
[0054] Step 1: Control Computer S i 、Smart Key sk iAnd passive smart lock psl i Before entering the IoT smart lock unlocking system set up by the gateway, you need to perform the following initialization operations:
[0055] Step S1, control computer S i The fingerprint information ID of your own device i Enter into the public database of the Internet of Things smart lock unlocking system under the jurisdiction of the gateway and load the common information in the Internet of Things smart lock unlocking system under the jurisdiction of the gateway and the information belonging to the control computer S i Communication credentials C i ∈Z q * And the co-governance certificate C of the blockchain co-governance management network to which it belongs net =(C1×C2×…×C i ×…×C n )×P2;
[0056] The above-mentioned shared information includes:
[0057] (1) A bilinear map e: G1×G1→G2; where G1 is a cyclic additive group of order prime number q, which has two isomorphic generators P1 and P2, and both generators P1 and P2 are points on the elliptic curve E; G2 is a cyclic multiplicative group of the same order q;
[0058] (2) A hash function H: {0,1} * →Z q * ;
[0059] (3) Control Computer S i 、Smart Key sk i And passive smart lock psl i Device fingerprint information;
[0060] Step S2, smart key sk i Its own device fingerprint information ID ski Enter into the public database of the IoT smart lock unlocking system under the jurisdiction of the gateway and load the shared information in the IoT smart lock unlocking system under the jurisdiction of the gateway and the co-governance certificate C of the blockchain co-governance management network net ;
[0061] Step S3, passive smart lock psl i Its own device fingerprint information ID psli Enter into the public database of the IoT smart lock unlocking system under the jurisdiction of the gateway and load the shared information in the IoT smart lock unlocking system under the jurisdiction of the gateway and the co-governance certificate C of the blockchain co-governance management network net ;
[0062] Step 2: The control computer node in the blockchain co-governance management network authorizes the smart key. The specific process is as follows:
[0063] Step S1, based on the shared information in the IoT smart lock unlocking system set up by the gateway, the smart key sk i Setting for opening passive smart lock psl i Authorization certificate C ski-psli ∈Z q * , then calculate the permission auxiliary application information (I ski-1 , I ski-2 , I ski-3 ) and transmitted to the control computer nodes in the blockchain co-governance management network;
[0064] Step S2: When the control computer node in the blockchain co-governance management network receives the permission auxiliary application information (I ski-1 , I ski-2 , I ski-3 ), the control computer S1 in the blockchain co-governance management network is set to execute smart contract I;
[0065] Smart Contract I: Smart Key sk i Apply to the control computer node in the blockchain co-governance management network to open the passive smart lock psl i Authorization certificate C ski-psli When the control computer S1 starts to verify the smart key sk i The legitimacy of the identity; among them, the determination of the smart key sk i The condition for the legitimacy of identity is: Equation whether it is established;
[0066] Among them, the symbol ID1 represents the device fingerprint information of the control computer S1;
[0067] I ski-1 ={H(ID ski )÷[C ski-psli +H(ID ski )]}×P1 is the first permission auxiliary application information;
[0068] I ski-2 =C ski-psli ×P2 is the second permission auxiliary application information;
[0069] Step S3, when the control computer S1 determines that the smart key sk i After the identity is legal, set up the control computer S in the blockchain co-governance management network i,i≠1 Execute smart contracts II;
[0070] Smart Contract II: When Smart Contract I is successfully executed, the control computer S in the blockchain co-governance management network i,i≠1 Start verifying the smart key sk i and control the legitimacy of the identity of computer S1;
[0071] Among them, the smart key sk i The condition for controlling the legitimacy of the identity of computer S1 is: whether it is established;
[0072] Among them, I ski-3 ={H(ID ski )÷[C ski-psli +H(ID1)]}×P1 is the third permission auxiliary application information;
[0073] Smart Key SK i After the identity verification of the control computer S1 is successful, the control computers S2, …, and control computers S i ,…, control computer S n Jointly generate and send permission auxiliary challenge information (e1, e2) to the smart key sk i ;
[0074] Smart Key SK i By verifying equation C ski-psli (e1-C ski-psli ×C net )P2=e2 to confirm the validity of the permission auxiliary challenge information (e1, e2). After confirming that the verification is successful, the permission certificate C ski-psli Generate the fourth permission auxiliary application information I ski-4 ={H(ID ski )÷[C ski-psli +H(ID1)]}×C net and sends the fourth permission auxiliary application information I to the control computer node in the blockchain co-governance management network ski-4 In response;
[0075] Step S4, when the control computer node in the blockchain co-governance management network receives the fourth permission auxiliary application information I ski-4 When setting the control computer S in the blockchain co-governance management network i Execute smart contract III;
[0076] Smart Contract III: When receiving the fourth permission auxiliary application information I ski-4 When the blockchain co-governance management network is i Verify the consistency between the response information and the challenge content. The consistency judgment condition is: Verify the equation whether it is established;
[0077] Step S5: After the smart contract III is successfully executed, the control computer node in the blockchain co-governance management network authorizes the smart key and records the fourth permission auxiliary application information I in the public database. ski-4 As authorization certificate, the smart key sk i Officially obtained for opening passive smart lock psl i Authorization certificate C ski-psli ;
[0078] The control computer node in the blockchain co-governance management network authorizes the unlocking user and sends the unlocking user's identity information to the smart key sk i ;
[0079] Step 3: Smart key sk i Utilize Permission Credential C ski-psli Open passive smart lock psl i , the specific process is as follows:
[0080] Step S1, collect the identity information of the unlocking user, and compare it with the identity information of the unlocking user issued by the control computer node in the blockchain co-governance management network. When the comparison is correct, the unlocking user uses the smart key sk i Turn on or off the passive smart lock psl i ;
[0081] Step S2, smart key sk i Open passive smart lock psl i When the smart key sk i For passive smart lock psl i Power supply and communication, passive smart lock psl i From the smart key sk i Load the second permission auxiliary application information I ski-2 And the fourth authority auxiliary application information I ski-4 ;
[0082] Passive smart lock psl i For smart key sk i Perform authority authentication; the authority authentication method is: verify the equation whether it is established;
[0083] When the smart key sk i After the authorization is verified correctly, the unlocking user turns the smart key sk i Mechanical key parts, passive smart lock psl i Enable and synchronously upload the enablement status information to the control computer nodes in the blockchain co-governance management network;
[0084] Step S3, smart key sk i Passive smart lock psl i When locking, the smart key sk i For passive smart lock psl i Power supply and communication, passive smart lock psl i From the smart key sk i Load the second permission auxiliary application information I ski-2 And the fourth authority auxiliary application information I ski-4 ;
[0085] Passive smart lock psl i For smart key sk i Perform authority authentication; the authority authentication method is: verify the equation whether it is established;
[0086] When the smart key sk i After the authorization is verified correctly, the unlocking user turns the smart key sk i Mechanical key parts, passive smart lock psl i Lock and synchronously upload the lock status information to the control computer node in the blockchain co-governance management network.
Claims
1. A smart lock unlocking method based on the Internet of Things, characterized in that: The steps include: Step 1: Build a control computer cluster. The control computers in the control computer cluster jointly build a blockchain co-governance management network with equal identities. Before entering the IoT smart lock unlocking system under the control of the gateway, the control computer nodes, smart keys and passive smart locks in the blockchain co-governance management network need to perform the following initialization operations: Step S1-1, the control computer node in the blockchain co-governance management network enters its own device fingerprint information into the public database of the IoT smart lock unlocking system under the jurisdiction of the gateway and loads the common information in the IoT smart lock unlocking system under the jurisdiction of the gateway and the communication credentials of the control computer node in the blockchain co-governance management network and the co-governance credentials of the blockchain co-governance management network to which it belongs; Step S1-2, the smart key enters its own device fingerprint information into the public database of the IoT smart lock unlocking system under the jurisdiction of the gateway and loads the shared information in the IoT smart lock unlocking system under the jurisdiction of the gateway and the co-governance certificate of the blockchain co-governance management network; Step S1-3, the passive smart lock enters its own device fingerprint information into the public database of the IoT smart lock unlocking system under the jurisdiction of the gateway and loads the shared information in the IoT smart lock unlocking system under the jurisdiction of the gateway and the co-governance certificate of the blockchain co-governance management network; Step 2: The control computer node in the blockchain co-governance management network authorizes the smart key. The specific process is as follows: Step S2-1, based on the shared information in the IoT smart lock unlocking system under the control of the gateway, the smart key sets the permission certificate for opening the passive smart lock, and then calculates the first permission auxiliary application information, the second permission auxiliary application information and the third permission auxiliary application information and transmits them to the control computer node in the blockchain co-governance management network; Step S2-2, when the control computer node in the blockchain co-governance management network receives the permission auxiliary application information, a control computer node in the blockchain co-governance management network is set as a proxy node and the other control computer nodes are set as non-proxy nodes, and the proxy node executes smart contract I; Smart Contract I: When the smart key applies to the control computer node in the blockchain co-governance management network for the permission certificate for opening the passive smart lock, the proxy node in the blockchain co-governance management network begins to verify the legitimacy of the identity of the smart key; Step S2-3, when smart contract I is successfully executed, set the non-agent node in the blockchain co-governance management network to execute smart contract II; Smart Contract II: When Smart Contract I is successfully executed, the non-agent nodes in the blockchain co-governance management network begin to verify the legitimacy of the identity of the smart key and the agent node; After the identity authentication of the smart key and the proxy node is successful, the non-proxy nodes in the blockchain co-governance management network jointly generate and send permission auxiliary challenge information to the smart key; The smart key confirms the validity of the permission auxiliary challenge information, and after confirming that the verification is successful, generates the fourth permission auxiliary application information using the permission certificate, and sends the fourth permission auxiliary application information to the control computer node in the blockchain co-governance management network as a response; Step S2-4, when the control computer node in the blockchain co-governance management network receives the fourth permission auxiliary application information, the control computer in the blockchain co-governance management network is set to execute smart contract III; Smart Contract III: When receiving the fourth permission auxiliary application information, the control computer node in the blockchain co-governance management network verifies the consistency of the response information and the challenge content; Step S2-5, when the smart contract III is successfully executed, the control computer node in the blockchain co-governance management network authorizes the smart key, records the fourth permission auxiliary application information in the public database as the authorization certificate, and the smart key officially obtains the permission certificate for opening the passive smart lock; The control computer nodes in the blockchain co-governance management network authorize the unlocking user and send the unlocking user's identity information to the smart key; Step 3: The smart key uses the permission certificate to open the passive smart lock. The specific process is as follows: Step 3-1, collect the identity information of the unlocking user, and compare it with the identity information of the unlocking user issued by the control computer node in the blockchain co-governance management network. When the comparison is correct, the unlocking user uses the smart key to open or close the passive smart lock. The specific process is as follows: (1) When the smart key opens the passive smart lock, the smart key supplies power to the passive smart lock and communicates with it, and the passive smart lock loads the second permission auxiliary application information and the fourth permission auxiliary application information from the smart key; The passive smart lock authenticates the smart key. When the authentication of the smart key is correct, the unlocking user turns the mechanical key component of the smart key, and the passive smart lock opens and simultaneously uploads the opening status information to the control computer node in the blockchain co-governance management network. (2) When the smart key performs a locking operation on the passive smart lock, the smart key supplies power to the passive smart lock and communicates with the passive smart lock, and the passive smart lock loads the second authority auxiliary application information and the fourth authority auxiliary application information from the smart key; The passive smart lock authenticates the authority of the smart key. When the authority of the smart key is correctly authenticated, the unlocking user turns the mechanical key component of the smart key, the passive smart lock locks and simultaneously uploads the locking status information to the control computer node in the blockchain co-governance management network.
2. A smart lock unlocking system based on the Internet of Things, the system is used to execute the smart lock unlocking method described in claim 1, characterized in that: Includes a public database for managing computer clusters, smart keys, passive smart locks, gateways, and IoT smart lock and unlocking systems under the control of the gateways; The control computer in the control computer cluster communicates with the smart key and the passive smart lock respectively through the gateway; It is assumed that the control computer cluster consists of at least four control computers, and the control computers in the control computer cluster jointly build a blockchain co-governance management network with equal identities.
3. The smart lock unlocking system based on the Internet of Things according to claim 2 is characterized in that: The smart key is used to mechanically open, lock and exchange information on the passive smart lock, and communicate with the control computer node in the blockchain co-governance management network through the gateway.
4. The smart lock unlocking system based on the Internet of Things according to claim 2 is characterized in that: The passive smart lock is equipped with an electronic chip inside, which is identified, opened and locked by a smart key, and during the working process, the opening and locking status of the passive smart lock is uploaded to the control computer node in the blockchain co-governance management network through the gateway.
5. The smart lock unlocking system based on the Internet of Things according to claim 2 is characterized in that: The control computer directly binds the user information with the smart key and indirectly matches the user information with the passive smart lock when allocating permissions.
6. A control computer, comprising a processor, a memory, a network interface and a database connected via a system bus, wherein a computer program is stored in the memory, characterized in that: When the computer program is executed by the processor, the steps of the smart lock unlocking method based on the Internet of Things described in claim 1 are implemented.
7. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by the processor, the steps of the smart lock unlocking method based on the Internet of Things described in claim 1 are implemented.