Cluster verification method and system of intelligent lock and storage medium
Through the local cluster joint verification method, when the smart lock cannot communicate with the management platform, it solves the verification problems caused by the smart lock management platform failure or network link failure by collaborating with other smart locks to ensure that the verification service is available and safe.
Patent Information
- Application Number
- CN202510752921.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-06-06
- Publication Date
- 2025-07-04
- Estimated Expiration
- 2045-06-06
AI Technical Summary
In smart lock systems, the problem of the failure of the smart lock management platform or the failure of the network link causes the problem of large-area smart locks being unable to be verified and opened.
Through the local cluster joint verification method, when the smart lock cannot communicate with the management platform, it broadcasts messages to other smart locks in the permission list, collaboratively calculates the verification code and compares it to ensure that the verification service is available.
When the smart lock management platform is unreachable, ensure that the verification service is available, avoid single points of risk, and ensure verification security.
Smart Images

Figure CN120260170A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of intelligent locks, and in particular, to a cluster verification method, system and storage medium for an intelligent lock. Background Art
[0002] In an intelligent lock system, in order to prevent local intelligent locks from being breached and for more convenient centralized management, a centralized verification method using an intelligent lock management platform is adopted. The intelligent lock reads the user ID and sends it to the intelligent lock management platform. The intelligent lock management platform determines whether the user ID has the permission to open the intelligent lock and then notifies the intelligent lock whether to open the door lock.
[0003] However, this centralized management method has very high requirements for the reliability of the intelligent lock management platform. If the intelligent lock management platform fails or there is a fault in the intermediate network link, a large area of intelligent locks will be unable to be verified and opened.
[0004] Therefore, there is an urgent need for a verification solution to solve the situation where the intelligent lock and the intelligent lock management platform cannot communicate due to a failure of the intelligent lock management platform or a fault in the intermediate network link. Summary of the Invention
[0005] The purpose of the embodiments of the present invention is to provide a method for ensuring the availability of the intelligent lock verification service through local cluster joint verification when the intelligent lock management platform is unreachable, while ensuring the verification security and avoiding the single-point risk that a single intelligent lock is easily breached.
[0006] The first aspect of the present invention provides a cluster verification method for an intelligent lock, and the method includes: According to the first intelligent lock reading an access permission card, if the first intelligent lock ID is in the permission list and the first intelligent lock is unreachable from the intelligent lock management platform, broadcast and send a first message to a second intelligent lock in the permission list; the first message includes the intelligent lock management platform IP, the permission list, and the second intelligent lock ID; the second intelligent lock is all other intelligent locks in the permission list except the first intelligent lock; the permission list includes user ID, intelligent lock ID, opening time, and verification information; Check the connection status of the second intelligent lock with the intelligent lock management platform according to the first message and return a second message to the second intelligent lock; the connection status includes reachable and unreachable; the second message includes the connection status, the second intelligent lock ID, and the second intelligent lock IP; In response to the unreachable connection statuses in the second message, the first smart lock sends a collaborative calculation verification code request to the second smart lock based on the second smart lock's IP. The first smart lock determines the first verification code according to the first smart lock ID and its opening time in the permission list. The second smart lock determines the second verification code according to the collaborative calculation verification code request, the second smart lock ID in the permission list, and its opening time, and returns it to the first smart lock. The first smart lock compares the first verification code, the second verification code with the verification information, and opens the first smart lock.
[0007] Further, before the first smart lock reads the access permission card, the method further includes: Creating an access permission card for the user by the smart lock management platform; the access permission card stores a permission list; wherein, according to the user ID, smart lock ID, and opening time, through the HASH algorithm calculation, verification information corresponding to different smart lock IDs is generated; the verification information includes a verification code.
[0008] Further, when creating an access permission card for the user by the smart lock management platform, it further includes: Generating different encryption keys according to different smart lock IDs, and sending them to the corresponding smart locks; Encrypting the verification information in the permission list respectively according to the encryption keys, and respectively forming encrypted verification codes; Accumulating the encrypted verification codes to form a combined verification code, and writing it into the access permission card.
[0009] Further, the collaborative calculation verification code request includes the user ID and the opening time of the first smart lock ID; The second smart lock determines the second verification code according to the collaborative calculation verification code request, the second smart lock ID in the permission list, and its opening time, and returns it to the first smart lock, including: After receiving the collaborative calculation verification code request, the second smart lock calculates the second verification code through the HASH algorithm according to the user ID, the second smart lock ID, and its opening time; Encrypting the second verification code based on the encryption key corresponding to the second smart lock ID, obtaining a second encrypted verification code, and sending it to the first smart lock.
[0010] Further, the first smart lock determines the first verification code according to the first smart lock ID and its opening time in the permission list, including: The first smart lock calculates the first verification code through the HASH algorithm according to the user ID, the first smart lock ID, and its opening time; Encrypting the first verification code based on the encryption key corresponding to the first smart lock ID, obtaining a first encrypted verification code.
[0011] Further, the first intelligent lock compares the first verification code, the second verification code with the verification information and opens the first intelligent lock, including: The first intelligent lock accumulates the first encrypted verification code and the second encrypted verification code to generate a third verification code; According to the comparison between the third verification code and the synthesized verification code, if they are the same, the verification passes and the first intelligent lock is opened.
[0012] In addition, the third aspect of the present invention provides a cluster verification system for an intelligent lock. The system includes a reading module, an inspection module, a collaborative request module, and a verification module; wherein: The reading module is used to read an access permission card according to the first intelligent lock. If the first intelligent lock ID is in the permission list and the first intelligent lock is unreachable from the intelligent lock management platform, it broadcasts and sends a first message to the second intelligent locks in the permission list; the first message includes the intelligent lock management platform IP, the permission list, and the second intelligent lock ID; the second intelligent locks are all other intelligent locks in the permission list except the first intelligent lock; the permission list includes user ID, intelligent lock ID, opening time, and verification information; The inspection module is used to check the connection status between the second intelligent lock and the intelligent lock management platform according to the first message and return a second message to the second intelligent lock; the connection status includes reachable and unreachable; the second message includes the connection status, the second intelligent lock ID, and the second intelligent lock IP; The collaborative request module is used to, in response to the connection status in the second message being all unreachable, the first intelligent lock sends a collaborative calculation verification code request to the second intelligent lock based on the second intelligent lock IP; the first intelligent lock determines a first verification code according to the first intelligent lock ID and its opening time in the permission list, and the second intelligent lock determines a second verification code according to the collaborative calculation verification code request and the second intelligent lock ID and its opening time in the permission list and returns it to the first intelligent lock; The verification module enables the first intelligent lock to compare the first verification code, the second verification code with the verification information and open the first intelligent lock.
[0013] Further, the system further includes a creation module for: Creating an access permission card for a user according to the intelligent lock management platform; the access permission card stores the permission list; wherein, according to the user ID, intelligent lock ID, and opening time, through the HASH algorithm calculation, verification information corresponding to different intelligent lock IDs is generated; the verification information includes verification codes.
[0014] When creating an access permission card for a user according to the intelligent lock management platform, it further includes: Generate different encryption keys according to different smart lock IDs and send them to the corresponding smart locks; Encrypt the verification information in the permission list according to the encryption key respectively to form encrypted verification codes; Accumulate the encrypted verification codes to form a combined verification code and write it into the access permission card.
[0015] In addition, the third aspect of the present invention provides a storage medium, which stores a computer program; the program is loaded and executed by a processor to implement the steps of the cluster verification method of the smart lock as described in the first aspect above.
[0016] In the solution of the present invention, by reading the access permission card according to the first smart lock, if the first smart lock ID is in the permission list and the first smart lock is unreachable from the smart lock management platform, broadcast and send a first message to the second smart locks in the permission list; the first message includes the smart lock management platform IP, the permission list, and the second smart lock ID; the second smart locks are all other smart locks in the permission list except the first smart lock; the permission list includes user ID, smart lock ID, opening time, and verification information; check the connection status between the second smart lock and the smart lock management platform according to the first message and return a second message to the second smart lock; the connection status includes reachable and unreachable; the second message includes the connection status, the second smart lock ID, and the second smart lock IP; in response to the connection status in the second message being all unreachable, the first smart lock sends a collaborative calculation verification code request to the second smart lock based on the second smart lock IP; the first smart lock determines a first verification code according to the first smart lock ID and its opening time in the permission list, and the second smart lock determines a second verification code according to the collaborative calculation verification code request and the second smart lock ID and its opening time in the permission list and returns it to the first smart lock; the first smart lock compares the first verification code, the second verification code with the verification information to open the first smart lock. Compared with the prior art, the embodiments of the present application mainly have the following beneficial effects: when the smart lock management platform is unreachable, the smart lock ensures the availability of the smart lock verification service through local cluster joint verification, and at the same time ensures the verification security, avoiding the single-point risk that a single smart lock is easily broken. Description of the Drawings
[0017] In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the following will briefly introduce the drawings required to be used in the embodiments. It should be understood that the following drawings only show some embodiments of the present invention and should not be regarded as limiting the scope. For those of ordinary skill in the art, other related drawings can be obtained based on these drawings without creative efforts.
[0018] Figure 1It is a schematic flowchart of a cluster verification method for an intelligent lock disclosed in an embodiment of the present invention; Figure 2 It is a schematic structural diagram of a cluster verification system for an intelligent lock disclosed in an embodiment of the present invention; Figure 3 It is a schematic structural diagram of an electronic device disclosed in an embodiment of the present invention. Detailed implementation manners
[0019] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as commonly understood by those of ordinary skill in the technical field to which this application belongs; the terms used in the specification of this application are only for the purpose of describing specific embodiments and are not intended to limit this application; the terms "including" and "having" and any variations thereof in the specification and claims of this application and the above drawings are intended to cover non-exclusive inclusion. The terms "first", "second", etc. in the specification and claims of this application or the above drawings are used to distinguish different objects and not to describe a specific order.
[0020] Reference to "embodiment" herein means that a particular feature, structure, or characteristic described in connection with the embodiment can be included in at least one embodiment of this application. The phrase does not necessarily refer to the same embodiment at every occurrence in the specification, nor is it an independent or alternative embodiment mutually exclusive with other embodiments. Those skilled in the art will explicitly and implicitly understand that the embodiments described herein can be combined with other embodiments.
[0021] It should be noted that: "a plurality of" mentioned herein refers to two or more.
[0022] The implementation details of the technical solutions of the embodiments of this application are elaborated in detail below: In the first aspect of this embodiment, a cluster verification method for an intelligent lock is implemented. Please refer to Figure 1 , Figure 1 which is a schematic flowchart of a cluster verification method for an intelligent lock disclosed in an embodiment of the present invention. The method includes: S101, read an access permission card according to the first intelligent lock. If the first intelligent lock ID is in the permission list and the first intelligent lock is unreachable from the intelligent lock management platform, broadcast and send a first message to the second intelligent locks in the permission list; the first message includes the IP of the intelligent lock management platform, the permission list, and the second intelligent lock ID; the second intelligent locks are all other intelligent locks in the permission list except the first intelligent lock; the permission list includes user ID, intelligent lock ID, opening time, and verification information; Before reading the access permission card according to the first intelligent lock, the method further includes: Create an access permission card for the user according to the intelligent lock management platform; the access permission card stores a list of permissions; among them, verification information corresponding to different intelligent lock IDs is generated by calculating through the HASH algorithm according to the user ID, intelligent lock ID, and opening time; the verification information includes a verification code.
[0023] Specifically, in this embodiment, when the intelligent lock management platform creates an access permission card for the user and writes the verification information, for user ID-1, based on the list of intelligent lock IDs that can be opened (i.e., the permission list), corresponding to different opening start and end dates of the intelligent lock, the user ID, intelligent lock ID, and start and end date information are used to calculate through the HASH algorithm to generate a verification code.
[0024] For example: For user ID 0x0011, the intelligent locks to be opened include: Intelligent Lock-1: ID0x0021, with an opening time from January 1, 2025 to January 30, 2025, and the verification code calculated through the HASH algorithm is 0xAEDF; Intelligent Lock-2: ID0x0022, with an opening time from January 1, 2025 to February 30, 2025, and the verification code calculated through the HASH algorithm is 0xA13A; Intelligent Lock-3: ID0x0023, with an opening time from January 15, 2025 to February 30, 2025, and the verification code calculated through the HASH algorithm is 0xB1E3.
[0025] Furthermore, when creating an access permission card for the user according to the intelligent lock management platform, it also includes: Generate different encryption keys according to different intelligent lock IDs and send them to the corresponding intelligent locks; Encrypt the verification information in the permission list respectively according to the encryption key and form encrypted verification codes respectively; Accumulate the encrypted verification codes to form a combined verification code and write it into the access permission card.
[0026] Specifically, in this embodiment, to prevent the intelligent lock side from reading the verification code and reverse engineering the HASH algorithm, the intelligent lock management platform also needs to encrypt the verification code. The intelligent lock management platform will generate different encryption keys according to different intelligent lock IDs and synchronize them to the corresponding intelligent locks respectively. For example, the intelligent lock management platform generates an encryption key: abcd for Intelligent Lock-1: ID0x0021, and an encryption key: hijk for Intelligent Lock-2: ID0x0022, etc. Each intelligent lock can only know its own encryption key.
[0027] It should be noted that Intelligent Lock-1 can correspond to the first intelligent lock in this example; Intelligent Lock-2 and Intelligent Lock-3 (mentioned below) correspond to the second intelligent lock in this example.
[0028] The intelligent lock management platform will encrypt the corresponding verification codes with the encryption keys of the intelligent locks corresponding to the intelligent lock ID list in the intelligent lock ID list respectively. For example, it encrypts the verification code 0xAEDF with the encryption key: abcd, and encrypts the verification code 0xA13A with the encryption key: hijk. The intelligent lock management platform accumulates all the encrypted verification codes to generate the final verification code, for example: 0x1ehf. Finally, the user ID - 1, the list of intelligent lock IDs that can be opened, the different opening start and end dates corresponding to the intelligent locks, and the finally synthesized verification code are written into the user access privilege card.
[0029] Next, this example will start to illustrate how the intelligent lock reads the information of the access privilege card and, when it recognizes that the intelligent lock management platform is unreachable, uses the local cluster mode to calculate the verification code respectively for joint verification.
[0030] Specifically, in this embodiment, when the user uses the user access privilege card to open the intelligent lock, for example, intelligent lock - 1, intelligent lock - 1 reads the information of the user access privilege card, first obtains the user ID, and reads the intelligent lock ID list. If the ID of the intelligent lock itself is not in the list, it returns verification failure. If it is in the list, it further compares the opening time. If the unlocking time is within the opening start and end date period corresponding to the lock ID, it enters the verification code verification stage. If it is not within the time period, it returns verification failure.
[0031] S102, check the connection status between the second intelligent lock and the intelligent lock management platform according to the first message, and return the second message to the second intelligent lock; the connection status includes reachable and unreachable; the second message includes the connection status, the second intelligent lock ID, and the second intelligent lock IP; Specifically, in this embodiment, when intelligent lock - 1 enters the verification code verification stage, if the intelligent lock management platform is reachable, it sends the user ID and the corresponding verification code to the intelligent lock management platform; if it is found that the intelligent lock management platform is unreachable, it uses the local cluster mode for verification; Intelligent lock - 1 sends a broadcast query message to other intelligent locks to query that the intelligent lock management platform is unreachable. If the intelligent locks are deployed using a layer - 2 network, the broadcast query can be sent in the layer - 2 broadcast mode. If a layer - 3 network is used, multicast can be used. The intelligent lock sends an IGMP join message to join the same multicast group, establish a multicast forwarding tree, and send the broadcast query message in the form of a multicast message to the multicast forwarding tree and then to other intelligent locks in the form of a multicast packet. The broadcast query message (i.e., the first message) sent by the intelligent lock includes the intelligent lock management platform IP and the information of the intelligent lock ID that needs to be jointly verified (consistent with the intelligent lock list) to confirm whether there are other intelligent locks in the intelligent lock list in a connected state with the intelligent lock management platform.
[0032] Other intelligent locks, that is, the second intelligent lock in this example, such as Intelligent Lock - 2 and Intelligent Lock - 3, after receiving the query message sent by Intelligent Lock - 1, first determine whether the IP of the intelligent lock management platform sent is the same as its own intelligent lock management platform IP, and whether its own ID exists in the intelligent lock ID list. If they are not the same, no processing is performed. If they are the same, then check the connection status between itself and the intelligent lock management platform. If it is reachable, a unicast method is used to return an intelligent lock management platform reachable message to Intelligent Lock - 1, carrying the local intelligent lock ID and IP; if it is unreachable, a unicast method is used to return an intelligent lock management platform unreachable message to Intelligent Lock - 1, carrying the local intelligent lock ID and IP.
[0033] If Intelligent Lock - 1 receives an intelligent lock management platform reachable message returned by other intelligent locks, it considers it a fault of its own intelligent lock, exits the local cluster mode, and waits for Intelligent Lock - 1 to restore the connection with the intelligent lock management platform.
[0034] S103, in response to the connection statuses in the second message all being unreachable, the first intelligent lock sends a collaborative calculation verification code request to the second intelligent lock based on the second intelligent lock IP; the first intelligent lock determines the first verification code according to the first intelligent lock ID and its opening time in the permission list, and the second intelligent lock determines the second verification code according to the collaborative calculation verification code request and the second intelligent lock ID and its opening time in the permission list, and returns it to the first intelligent lock; Furthermore, the collaborative calculation verification code request includes the user ID and the opening time of the first intelligent lock ID; the second intelligent lock determines the second verification code according to the collaborative calculation verification code request and the second intelligent lock ID and its opening time in the permission list, and returns it to the first intelligent lock, including: after receiving the collaborative calculation verification code request, the second intelligent lock calculates the second verification code through the HASH algorithm according to the user ID, the second intelligent lock ID, and its opening time; encrypts the second verification code based on the encryption key corresponding to the second intelligent lock ID to obtain the second encrypted verification code, and sends it to the first intelligent lock.
[0035] Furthermore, the first intelligent lock determines the first verification code according to the first intelligent lock ID and its opening time in the permission list, including: the first intelligent lock calculates the first verification code through the HASH algorithm according to the user ID, the first intelligent lock ID, and its opening time; encrypts the first verification code based on the encryption key corresponding to the first intelligent lock ID to obtain the first encrypted verification code.
[0036] Specifically, in this embodiment, if confirmation messages indicating that the intelligent lock management platform is unreachable are received from all other intelligent locks in the intelligent lock list, the intelligent lock IDs and corresponding IP addresses are recorded, and requests for collaborative calculation verification codes are sent to the intelligent locks in the list, each carrying the user ID and the opening time corresponding to the intelligent lock ID. For example, Intelligent Lock - 1 sends the user ID: 0x0011 and the opening time from January 1, 2025 to February 30, 2025 to Intelligent Lock - 2, and sends the ID: 0x0011 and the opening time from January 15, 2025 to February 30, 2025 to Intelligent Lock - 3.
[0037] After receiving the request message for collaborative calculation verification code sent by Intelligent Lock - 1, Intelligent Lock - 2 and Intelligent Lock - 3 calculate the verification code through the HASH algorithm using the user ID, their own intelligent lock ID and the corresponding opening time, and then further encrypt the verification code with the encryption key synchronized by the previous intelligent lock management platform to their own intelligent locks to form a second encrypted verification code, and return it to Intelligent Lock - 1.
[0038] Intelligent Lock - 1 also calculates the verification code through the HASH algorithm using the opening time, user ID and intelligent lock ID for its own lock ID, and then encrypts it with the encryption key synchronized by the intelligent lock management platform to its own intelligent lock to form a first encrypted verification code.
[0039] S104, the first intelligent lock opens the first intelligent lock according to the comparison between the first verification code, the second verification code and the verification information.
[0040] Further, the first intelligent lock opens the first intelligent lock according to the comparison between the first verification code, the second verification code and the verification information, including: the first intelligent lock accumulates the first encrypted verification code and the second encrypted verification code to generate a third verification code; according to the comparison between the third verification code and the synthesized verification code, if they are consistent, the verification passes and the first intelligent lock is opened.
[0041] Specifically, in this embodiment, Intelligent Lock - 1 also calculates the verification code through the HASH algorithm using the opening time, user ID and intelligent lock ID for its own lock ID, then encrypts it with the encryption key synchronized by the intelligent lock management platform to its own intelligent lock, and accumulates it with the encrypted verification codes returned by Intelligent Lock - 2 and Intelligent Lock - 3 to obtain the encrypted verification code for verification. Intelligent Lock - 1 compares the encrypted verification code for verification with the verification code read from the user access permission card. If they are consistent, the verification passes and the intelligent lock is opened. If they are inconsistent, the verification fails and "unauthorized access" is returned.
[0042] Based on this, in this embodiment, the intelligent lock management platform generates verification codes for users respectively based on different lock IDs that can be accessed and the corresponding access times, encrypts them with different encryption keys respectively, and then aggregates them into the final encrypted verification code; the intelligent lock synchronizes the reachable status of the intelligent lock management platform through broadcasting or multicasting, and for the status judged as unreachable, it adopts the local cluster mode for verification; the intelligent lock initiates a collaborative verification operation to other intelligent locks in the intelligent lock list in the local cluster mode. Different intelligent locks respectively calculate the verification codes corresponding to their own locks and encrypt them with their own encryption keys, and finally the verified intelligent lock conducts an aggregated judgment. Thus, when the intelligent lock management platform is unreachable, the intelligent lock realizes joint verification through the local cluster, ensuring the availability of the intelligent lock verification service, while guaranteeing the verification security and avoiding the single-point risk that a single intelligent lock is easily broken.
[0043] In addition, the second aspect of this embodiment provides a cluster verification system for intelligent locks, as Figure 2 shown. The system includes a reading module 201, an inspection module 202, a collaborative request module 203, and a verification module 204; where: The reading module 201 is used to read an access permission card according to the first intelligent lock. If the first intelligent lock ID is in the permission list and the first intelligent lock is unreachable from the intelligent lock management platform, it broadcasts and sends a first message to the second intelligent locks in the permission list; the first message includes the intelligent lock management platform IP, the permission list, and the second intelligent lock ID; the second intelligent locks are all other intelligent locks in the permission list except the first intelligent lock; the permission list includes the user ID, the intelligent lock ID, the opening time, and the verification information. The inspection module 202 is used to check the connection status between the second intelligent lock and the intelligent lock management platform according to the first message and return a second message to the second intelligent lock; the connection status includes reachable and unreachable; the second message includes the connection status, the second intelligent lock ID, and the second intelligent lock IP. The collaborative request module 203 is used to, in response to the connection status in the second message all being unreachable, the first intelligent lock sends a collaborative calculation verification code request to the second intelligent lock based on the second intelligent lock IP; the first intelligent lock determines a first verification code according to the first intelligent lock ID and its opening time in the permission list, and the second intelligent lock determines a second verification code according to the collaborative calculation verification code request and the second intelligent lock ID and its opening time in the permission list, and returns it to the first intelligent lock. The verification module 204 enables the first intelligent lock to compare the first verification code, the second verification code with the verification information, and open the first intelligent lock.
[0044] Furthermore, the system further includes a creation module 200, which is used for: Create an access permission card for the user according to the intelligent lock management platform; the access permission card stores a permission list; wherein, according to the user ID, intelligent lock ID, and opening time, verification information corresponding to different intelligent lock IDs is calculated through the HASH algorithm; the verification information includes a verification code.
[0045] Further, when creating the access permission card for the user according to the intelligent lock management platform, it further includes: Generate different encryption keys according to different intelligent lock IDs and send them to the corresponding intelligent locks; Encrypt the verification information in the permission list respectively according to the encryption keys to form encrypted verification codes respectively; Accumulate the encrypted verification codes to form a combined verification code and write it into the access permission card.
[0046] Further, the collaborative calculation verification code request includes the user ID and the opening time of the first intelligent lock ID; The second intelligent lock determines a second verification code according to the collaborative calculation verification code request, the second intelligent lock ID and its opening time in the permission list and returns it to the first intelligent lock, including: After receiving the collaborative calculation verification code request, the second intelligent lock calculates the second verification code through the HASH algorithm according to the user ID, the second intelligent lock ID and its opening time; Encrypt the second verification code based on the encryption key corresponding to the second intelligent lock ID to obtain a second encrypted verification code and send it to the first intelligent lock.
[0047] Further, the first intelligent lock determines the first verification code according to the first intelligent lock ID and its opening time in the permission list, including: The first intelligent lock calculates the first verification code through the HASH algorithm according to the user ID, the first intelligent lock ID and its opening time; Encrypt the first verification code based on the encryption key corresponding to the first intelligent lock ID to obtain a first encrypted verification code.
[0048] Further, the first intelligent lock compares the first verification code, the second verification code with the verification information and opens the first intelligent lock, including: The first intelligent lock accumulates the first encrypted verification code and the second encrypted verification code to generate a third verification code; Compare according to the third verification code and the combined verification code. If they are the same, the verification passes and the first intelligent lock is opened.
[0049] In addition, the third aspect of the present invention provides a storage medium, the storage medium stores a computer program; the program is loaded and executed by a processor to implement the steps of the cluster verification method of the intelligent lock as described in the first aspect above.
[0050] In addition, an embodiment of the present application also discloses an electronic device, such as Figure 3 shown, the electronic device includes: one or more processors, a memory for storing one or more computer programs; characterized in that the computer programs are configured to be executed by the one or more processors, and the programs include steps for executing the cluster verification method of the intelligent lock described in the first aspect above.
[0051] Those of ordinary skill in the art can realize that the units and algorithm steps of each example described in combination with the embodiments disclosed herein can be implemented by electronic hardware, computer software, or a combination of the two. To clearly illustrate the interchangeability of hardware and software, the composition and steps of each example have been generally described according to functions in the above description. Whether these functions are executed in a hardware or software manner depends on the specific application and design constraints of the technical solution. Professional technicians can use different methods to implement the described functions for each specific application, but such implementation should not be considered to exceed the scope of the present invention.
[0052] In several embodiments provided by the present application, it should be understood that the disclosed devices and methods can be implemented in other ways. For example, the device embodiments described above are merely illustrative. For example, the division of the units is only a logical function division, and there may be other division methods in actual implementation. For example, multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. In addition, the displayed or discussed couplings or direct couplings or communication connections to each other can be indirect couplings or communication connections through some interfaces, devices or units, and can also be electrical, mechanical or other forms of connection.
[0053] The units described as separate components may or may not be physically separated. As units, those of ordinary skill in the art can realize that the units and algorithm steps of each example described in combination with the embodiments disclosed herein can be implemented by electronic hardware, computer software, or a combination of the two. To clearly illustrate the interchangeability of hardware and software, the composition and steps of each example have been generally described according to functions in the above description. Whether these functions are executed in a hardware or software manner depends on the specific application and design constraints of the technical solution. Professional technicians can use different methods to implement the described functions for each specific application, but such implementation should not be considered to exceed the scope of the present invention.
[0054] In addition, in each embodiment of the present invention, each functional unit may be integrated into one processing unit, or each unit may exist physically alone, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of a software functional unit.
[0055] If the above-mentioned integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it may be stored in a computer-readable storage medium. Based on such an understanding, the technical solution of the present invention, in essence, or the part that contributes to the prior art, or all or part of the technical solution, may be embodied in the form of a software product. The computer software product is stored in a storage medium and includes several instructions for causing a computer device (which may be a personal computer, a server, or a grid device, etc.) to execute all or part of the steps of the methods described in each embodiment of the present invention. The foregoing storage medium includes: various media such as a USB flash drive, a mobile hard disk, a read-only memory (ROM, Read-Only Memory), a random access memory (RAM, Random Access Memory), a magnetic disk, or an optical disc that can store program codes.
[0056] The specific embodiments described above have further elaborated on the purpose, technical solution, and beneficial effects of the present invention. It should be understood that the above description is only the specific embodiments of the present invention and is not used to limit the protection scope of the present invention. Any modifications, equivalent replacements, improvements, etc. made within the spirit and principle of the present invention shall be included in the protection scope of the present invention.
Claims
1. A cluster verification method for an intelligent lock, characterized in that The method includes: Read an access permission card by the first smart lock. If the first smart lock ID is in the permission list and the first smart lock is unreachable from the smart lock management platform, broadcast a first message to a second smart lock in the permission list; the first message includes the IP of the smart lock management platform, the permission list, and the second smart lock ID; the second smart lock is all other smart locks in the permission list except the first smart lock; the permission list includes user ID, smart lock ID, opening time, and verification information. Check the connection status between the second smart lock and the smart lock management platform according to the first message, and return a second message to the second smart lock; the connection status includes reachable and unreachable; the second message includes the connection status, the second smart lock ID, and the second smart lock IP. In response to the connection status in the second message all being unreachable, the first smart lock sends a collaborative calculation verification code request to the second smart lock based on the second smart lock IP; the first smart lock determines a first verification code according to the first smart lock ID and its opening time in the permission list, and the second smart lock determines a second verification code according to the collaborative calculation verification code request, the second smart lock ID and its opening time in the permission list, and returns it to the first smart lock. The first smart lock compares the first verification code, the second verification code with the verification information, and opens the first smart lock.
2. The cluster verification method of the intelligent lock according to claim 1, wherein, Before the step of reading the access permission card by the first smart lock, the method further includes: Create an access permission card for the user according to the smart lock management platform; the access permission card stores the permission list; wherein, according to the user ID, smart lock ID, and opening time, calculate through the HASH algorithm to generate verification information corresponding to different smart lock IDs; the verification information includes verification codes.
3. The cluster verification method for the intelligent lock according to claim 2, wherein When creating the access permission card for the user according to the smart lock management platform, it further includes: Generate different encryption keys according to different smart lock IDs, and send them to the corresponding smart locks. Encrypt the verification information in the permission list respectively according to the encryption keys, and form encrypted verification codes respectively. Accumulate the encrypted verification codes to form a combined verification code, and write it into the access permission card.
4. The cluster verification method of the intelligent lock according to claim 3, characterized in that, The collaborative calculation verification code request includes the user ID and the opening time of the first smart lock ID. The step that the second smart lock determines a second verification code according to the collaborative calculation verification code request, the second smart lock ID and its opening time in the permission list, and returns it to the first smart lock includes: After receiving the collaborative calculation verification code request, the second smart lock calculates the second verification code through the HASH algorithm according to the user ID, the second smart lock ID and its opening time. Encrypt the second verification code based on the encryption key corresponding to the second smart lock ID to obtain a second encrypted verification code, and send it to the first smart lock.
5. The cluster verification method of the intelligent lock according to claim 4, characterized in that, The step that the first smart lock determines a first verification code according to the first smart lock ID and its opening time in the permission list includes: The first smart lock calculates the first verification code through the HASH algorithm according to the user ID, the first smart lock ID and its opening time. Encrypt the first verification code based on the encryption key corresponding to the first intelligent lock ID to obtain the first encrypted verification code.
6. The cluster verification method of the intelligent lock according to claim 5, characterized in that, The first intelligent lock compares the first verification code, the second verification code with the verification information to open the first intelligent lock, including: The first intelligent lock accumulates the first encrypted verification code and the second encrypted verification code to generate a third verification code; Compare according to the third verification code and the synthesized verification code. If they are the same, the verification passes and the first intelligent lock is opened.
7. An intelligent lock cluster verification system, characterized in that, The system includes a reading module, an inspection module, a collaborative request module, and a verification module; among them: The reading module is used to read the access permission card according to the first intelligent lock. If the first intelligent lock ID is in the permission list and the first intelligent lock is unreachable from the intelligent lock management platform, broadcast and send the first message to the second intelligent locks in the permission list; the first message includes the intelligent lock management platform IP, the permission list, and the second intelligent lock ID; the second intelligent locks are all other intelligent locks except the first intelligent lock in the permission list; the permission list includes the user ID, the intelligent lock ID, the opening time, and the verification information; The inspection module is used to check the connection status between the second intelligent lock and the intelligent lock management platform according to the first message, and return the second message to the second intelligent lock; the connection status includes reachable and unreachable; the second message includes the connection status, the second intelligent lock ID, and the second intelligent lock IP; The collaborative request module is used to respond to the connection status in the second message being all unreachable. The first intelligent lock sends a collaborative calculation verification code request to the second intelligent lock based on the second intelligent lock IP; the first intelligent lock determines the first verification code according to the first intelligent lock ID and its opening time in the permission list, and the second intelligent lock determines the second verification code according to the collaborative calculation verification code request and the second intelligent lock ID and its opening time in the permission list, and returns it to the first intelligent lock; The verification module enables the first intelligent lock to compare the first verification code, the second verification code with the verification information to open the first intelligent lock.
8. The cluster verification system of the intelligent lock according to claim 7, wherein, The system further includes a creation module for: Create an access permission card for the user according to the intelligent lock management platform; the access permission card stores the permission list; among them, according to the user ID, the intelligent lock ID, and the opening time, calculate through the HASH algorithm to generate the verification information corresponding to different intelligent lock IDs; the verification information includes the verification code.
9. The cluster verification system of the intelligent lock according to claim 8, characterized in that, When creating an access permission card for the user according to the intelligent lock management platform, it further includes: Generate different encryption keys according to different intelligent lock IDs and send them to the corresponding intelligent locks; Encrypt the verification information in the permission list respectively according to the encryption keys to form encrypted verification codes respectively; Accumulate the encrypted verification codes to form a synthesized verification code and write it into the access permission card.
10. A storage medium, the storage medium stores a computer program; the program is loaded and executed by a processor to implement the steps of the cluster verification method of the intelligent lock as described in any one of claims 1-6.
Citation Information
Patent Citations
Door control management system and door control management method based on blockchain
CN110599652A
Unlocking system and method and intelligent door lock
CN114241637A
Block chain intelligent cooperative authentication method for multi-user common management
CN115987519A
Cloud storage method and system based on secret sharing
CN116192367A
Intelligent lock system supported by block chain
CN118196938A
Cited By
Card-free hotel door lock processing method and system and storage medium
CN121053715A