Intelligent locking device control method, device, equipment, medium and program product

By using smart locks as blockchain nodes and using the blockchain consensus mechanism to generate and store execution records, it solves the problem that smart lock execution records are easily tampered with, achieves high robustness of records and timely detection of tampering behaviors, and enhances Security.

CN118823905APending Publication Date: 2024-10-22LIAONING MOBILE COMM +1
View PDF 6 Cites 0 Cited by

Patent Information

Application Number
CN202410726148.7
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-06-05
Publication Date
2024-10-22

AI Technical Summary

Technical Problem

The execution records of existing smart locks are easily tampered with, making it difficult to detect and hold accountable security issues in a timely manner, affecting security and trust.

Method used

By using the smart lock as a blockchain node and utilizing the consensus mechanism of the blockchain system, execution records are generated and stored, and unlocking and locking operations are performed based on the action information in the records. If the unlocking fails, it is determined that the record has been tampered with and the user is reminded.

Benefits of technology

It improves the robustness of smart locks, promptly detects and reminds to record tampering, reduces the adverse effects caused by tampering, and enhances the protection of high-value items and materials.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118823905A_ABST
    Figure CN118823905A_ABST
Patent Text Reader

Abstract

The invention discloses an intelligent locking device control method and device, equipment, a medium and a program product, an intelligent lock can execute different locking actions, when the intelligent lock is locked, action information used for indicating the locking action needing to be executed when the intelligent lock is locked is obtained, and the intelligent lock is controlled to be locked based on the action information, so that the intelligent lock is locked. And generating and storing an execution record containing the action information, during unlocking, obtaining the execution record generated and stored during last locking, and controlling the intelligent lock to be unlocked based on the action information in the execution record. Therefore, if the unlocking fails, the action information in the execution record is tampered, so that according to the embodiment of the invention, the user can be reminded of the tampering condition of the execution record in the intelligent lock explicitly by judging whether the unlocking can be successful or not, so that the user can find the record tampering behavior in time, and the adverse effect caused by tampering of the execution record is reduced.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application belongs to the field of blockchain technology, and in particular, relates to a smart locking device control method, device, equipment, medium and program product. Background Art

[0002] With the development of smart home products, smart locks, as one of the products, have brought a lot of convenience to people's lives. At present, during the use of smart locks, the execution records of unlocking and locking can be saved through the built-in storage or through the cloud. In specific application scenarios, for example, for confidential files and storage spaces for high-value items that are particularly sensitive to lock execution records, when security issues such as lost items occur, in order to facilitate the retrieval of items or accountability, it is necessary to find the relevant executors based on the execution records of the locks. In order to prevent their illegal acts from being discovered, some lawless elements will tamper with the execution records of the locks. Therefore, the anti-tampering function of the lock execution records is very important.

[0003] In the existing related technologies, the anti-tampering function of execution records is mainly the conventional security protection of the records themselves, for example, controlling the add, delete, modify and query permissions of the execution records themselves. However, when the permissions themselves are compromised, the operation of tampering with the execution records will be easily implemented.

[0004] In view of this, in order to reduce the adverse effects caused by tampering of execution records, a solution that can detect tampering behavior in a timely manner is urgently needed. Summary of the invention

[0005] The embodiments of the present application provide a smart locking device control method, device, equipment, medium and program product, which can promptly detect tampering of the execution record of the smart locking device.

[0006] In a first aspect, an embodiment of the present application provides a smart locking device control method, which is applied to a blockchain node. The blockchain node includes a smart locking device, which can perform different locking actions. The smart locking device unlocks based on the locking action at the most recent locking. The method includes:

[0007] In response to receiving the locking request, obtaining action information, the action information including the locking action that needs to be performed when the smart locking device is locked;

[0008] Based on the action information, control the intelligent locking device to perform a locking action, and generate and store an execution record, wherein the execution record includes at least the action information;

[0009] After the locking is completed, in response to receiving an unlocking request, the intelligent locking device is controlled to perform an unlocking action based on the action information in the execution record;

[0010] In response to the unlocking failure, it is determined that the execution record stored in the blockchain node has been tampered with.

[0011] In a second aspect, an embodiment of the present application provides a smart locking device control device, which is applied to a blockchain node. The blockchain node includes a smart locking device, which can perform different locking actions. The smart locking device unlocks based on the locking action at the most recent locking. The device includes:

[0012] An acquisition module, configured to acquire action information in response to receiving a locking request, wherein the action information includes a locking action to be performed when the intelligent locking device is locked;

[0013] A control module, for controlling the intelligent locking device to perform a locking action based on the action information, and generating and storing an execution record, wherein the execution record includes at least the action information;

[0014] The control module is further used to control the intelligent locking device to perform an unlocking action based on the action information in the execution record in response to receiving an unlocking request after the locking is completed;

[0015] The tampering determination module is used to determine, in response to a failure in unlocking, that an execution record stored in a blockchain node has been tampered with.

[0016] In a third aspect, an embodiment of the present application provides an electronic device, the electronic device comprising: a processor and a memory storing computer program instructions;

[0017] When the processor executes the computer program instructions, the intelligent locking device control method of the first aspect is implemented.

[0018] In a fourth aspect, an embodiment of the present application provides a computer storage medium, on which computer program instructions are stored. When the computer program instructions are executed by a processor, the smart locking device control method of the first aspect is implemented.

[0019] In a fifth aspect, an embodiment of the present application provides a computer program product. When instructions in the computer program product are executed by a processor of an electronic device, the electronic device executes the smart locking device control method of the first aspect.

[0020] The control method, device, equipment, medium and program product of the smart lock device of the embodiment of the present application are used to control the smart lock in the blockchain system. By using the smart lock as a blockchain node, the difficulty of tampering with the execution record in the smart lock can be improved based on the consensus mechanism of the blockchain system, and the robustness of the smart lock can be improved. The smart lock can perform different locking actions. When the smart lock is locked, the action information indicating the locking action to be performed when the smart lock is locked is obtained, and the smart lock is controlled to lock based on the action information, and the execution record containing the action information is generated and stored. When unlocking, the execution record generated and stored at the last locking is obtained, and the smart lock is controlled to unlock based on the action information in the execution record. In this way, if the unlocking fails, it means that there is an error in the action information in the execution record. At this time, it can be determined that the execution record has been tampered with. In this way, the user can be explicitly reminded of the tampering of the execution record in the smart lock by whether the unlocking is successful, so that the user can discover the record tampering behavior in time, thereby reducing the adverse effects caused by the tampering of the execution record. BRIEF DESCRIPTION OF THE DRAWINGS

[0021] In order to more clearly illustrate the technical solution of the embodiments of the present application, the following is a brief introduction to the drawings required for use in the embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without any creative work.

[0022] Figure 1 It is a schematic diagram of a blockchain node provided in an embodiment of the present application;

[0023] Figure 2 It is a flowchart of a smart locking device control method provided in an embodiment of the present application;

[0024] Figure 3 is a schematic diagram of a smart locking device provided in an embodiment of the present application;

[0025] Figure 4 is a schematic diagram of a smart locking device provided in an embodiment of the present application;

[0026] Figure 5 is a schematic diagram of an intelligent locking control device provided in an embodiment of the present application;

[0027] Figure 6 It is a schematic diagram of the structure of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0028] The features and exemplary embodiments of various aspects of the present application will be described in detail below. In order to make the purpose, technical solutions and advantages of the present application clearer, the present application will be further described in detail below in conjunction with the accompanying drawings and specific embodiments. It should be understood that the specific embodiments described herein are only intended to explain the present application, rather than to limit the present application. For those skilled in the art, the present application can be implemented without the need for some of these specific details. The following description of the embodiments is only to provide a better understanding of the present application by illustrating the examples of the present application.

[0029] It should be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the statement "include..." do not exclude the presence of other identical elements in the process, method, article or device including the elements.

[0030] In order to solve the problems of the prior art, the embodiments of the present application provide a smart locking device control method, device, equipment, medium and program product. The smart locking device control method provided by the embodiments of the present application is first introduced below.

[0031] The smart locking device control method provided in the embodiment of the present application can be applied to a blockchain node including a smart locking device, and is used to control the smart locking device in the blockchain node, wherein the smart locking device can perform different locking actions. When the smart locking device is unlocked, it is unlocked based on the locking action during the most recent locking. The locking actions performed by the smart locking device at different times may be different.

[0032] In some embodiments of the present application, Figure 1As shown, the blockchain node 100 may include a front-end application module 101, a blockchain control module 102, a smart locking device 103, a network interface module 104, etc. Among them, the front-end application module 101 is used to send an unlocking request or a locking request to the blockchain control module 102 to request the smart locking device 103 to perform an unlocking action or a locking action. The blockchain control module 102 is used to obtain action information according to the request sent by the front-end application module 101, and drive the smart locking device 103 to perform an unlocking action or a locking action based on the obtained action information. In addition, the blockchain control module 102 also generates and stores an execution record based on the obtained action information. Based on the above design, when the stored execution record is tampered with, the stored execution record will change. In this way, when receiving the unlocking request sent by the front-end application module 101, the fully enclosed smart locking device 103 will perform an erroneous unlocking action, resulting in failure to unlock. It can be seen that when the execution record is tampered with, the smart locking device 103 will fail to unlock successfully. Therefore, when the execution record cannot be successfully unlocked, the user can determine that the execution record has been tampered with. In this way, it is possible to realize self-discovery of the execution record being tampered with, and explicitly remind the user that the execution record of the smart locking device 102 has been tampered with.

[0033] In some embodiments of the present application, the front-end application module 101 is mainly composed of user-side devices and software, wherein the user-side devices may include but are not limited to the control panel of the smart locking device 103, mobile phones and other devices that can interact with the user. The user can send an unlocking request or a locking request to the blockchain control module 102 through the front-end application module 101.

[0034] In some embodiments of the present application, the blockchain control module 102 is used to receive an unlock request or a lock request sent by the front-end application module 101, obtain action information based on the unlock request or the lock request, and control the smart locking device 103 to perform an unlock action or a lock action based on the action information. The blockchain control module 102 is also used to generate an execution record corresponding to the unlock request or the lock request based on the acquired action information, and store the execution record. In the case where the blockchain node 100 is successfully connected to the blockchain system through the network interface module 104, the blockchain control module 102 can also upload the execution record to the blockchain system for storage, and synchronize it to other blockchain nodes in the blockchain system. In the blockchain system, data is stored in a chain storage method, such as a hash table chain storage method. Based on this, the blockchain control module 102 uses a chain storage method to store execution records. Based on the characteristics of chain storage, when any execution record stored is tampered with, the entire chain data stored will be broken, so that the entire chain list will have data disorder. Based on this, after any execution record stored in the blockchain control module 102 is tampered with, the action information in the execution record stored at the last lock will change. In this way, when the blockchain control module 102 receives an unlocking request, it will obtain wrong action information, so that the unlocking action of the intelligent locking device 103 controlled by the obtained action information will not be successfully unlocked. In this way, the last unlocking user can promptly perceive that the execution record has been tampered with, which is convenient for timely corresponding emergency processing, and also plays a role in protecting the last unlocking user.

[0035] In some embodiments of the present application, the smart locking device 103 is a module that performs unlocking and locking actions based on the action information sent by the blockchain control module 102. The smart locking device 103 is usually integrated with a lock that can be driven and controlled. The smart locking device 103 can be a complex multi-link password lock or a simple electromagnetic drive lock. Its main function is to parse and execute the action information sent by the blockchain control module 103, and perform the correct unlocking or locking action.

[0036] In some embodiments of the present application, the network interface module 104 is connected to the blockchain control module 102, and the execution record stored in the blockchain node can be synchronized with other blockchain nodes in the blockchain system through the blockchain node network. When the network is offline, any change to the execution record will cause the execution record stored in the blockchain node at the time of the last lock to be wrong, which will cause confusion in the state of the smart locking device 103. At this time, the smart locking device 103 will not be able to perform the correct unlocking action, which can effectively remind the front-end user to trace and verify.

[0037] Figure 2FIG. 1 is a flow chart showing a method for controlling a smart locking device according to an embodiment of the present application. Figure 2 As shown, the method can be executed by the blockchain control module 102 in the above-mentioned blockchain node 100. The method can include the following steps S21-S24, which are described in detail below.

[0038] S21. In response to receiving the locking request, obtaining action information, where the action information includes a locking action that needs to be performed when the smart locking device is locked.

[0039] In some embodiments of the present application, when the user needs the smart locking device 102 to lock, the user can send a locking request to the blockchain control module 102 through the front-end application module 101, and the locking request is used to request the smart locking device 102 to perform the locking action. In response to receiving the locking request, the blockchain control module 102 obtains action information, and the action information includes the locking action that needs to be performed when the smart locking device 102 is locked.

[0040] In one possible implementation, the blockchain control module 102 may randomly generate action information in response to receiving a locking request, as long as it is ensured that the smart locking device 102 can successfully lock based on the generated action information.

[0041] In another possible implementation, the blockchain control module 102 can store multiple pre-set action information for locking. Based on this, the blockchain control module 102 can randomly select an action information from the multiple pre-set action information for locking in response to receiving a locking request as the locking action that the smart locking device 102 needs to perform when locking this time.

[0042] S22. Based on the action information, control the intelligent locking device to perform a locking action, and generate and store an execution record, wherein the execution record at least includes the action information.

[0043] In this embodiment, after obtaining the action information, the blockchain control module 102 can control the smart locking device 103 based on the action information, so that the smart locking device 103 performs a locking action.

[0044] In this embodiment, after obtaining the action information, the blockchain control module 102 generates an execution record based on the action information, and stores the generated execution record on the chain. In the blockchain system, data is stored in a chain storage manner. Based on this, the blockchain control module 102 stores the execution record as block data in a chain storage manner.

[0045] In a possible implementation, the blockchain control module 102 may use a hash table chain storage method to store the execution record as block data. The hash value in the block header of the block data stored by the hash table chain storage method is the same as the hash value of the previous block data.

[0046] S23. After the locking is completed, in response to receiving an unlocking request, the intelligent locking device is controlled to perform an unlocking action based on the action information in the execution record.

[0047] In this embodiment, after the smart locking device 102 completes the locking, the user can send an unlocking request to the blockchain control module 102 through the front-end application module 101 when the smart locking device 102 needs to unlock. The unlocking request is used to request the smart locking device 102 to perform the unlocking action. As can be seen from the foregoing content, in this embodiment, when the smart locking device 102 unlocks, it is unlocked based on the locking action during the most recent locking. Based on this, the blockchain control module 102 responds to receiving the unlocking request, obtains the execution record stored during the most recent locking, and then controls the smart locking device 103 to perform the unlocking action according to the action information in the execution record. Here, when the smart locking device 103 is controlled to perform the unlocking action according to the action information in the execution record, the smart locking device 103 can be controlled to perform an action opposite to the action information in the execution record, thereby achieving unlocking. For example, the smart locking device 103 includes a lock pin and a lock hole, and the action information in the execution record is to control the lock pin to be inserted into the lock hole. When the smart locking device 103 is controlled to perform an unlocking action based on the action information in the execution record, the smart locking device 103 can be controlled to pull the lock pin out of the lock hole.

[0048] S24. In response to the unlocking failure, it is determined that the execution record in the blockchain node has been tampered with.

[0049] In this embodiment, the execution records in the blockchain node are stored as block data in a chain storage manner. According to the characteristic that if any block data in the blockchain is tampered, the entire blockchain will be broken, resulting in data confusion in the entire blockchain, if any execution record stored in the blockchain node is tampered, the last stored execution record will change, resulting in the inability to unlock. Based on this, if all the stored execution records have not been tampered with, the smart locking device 102 can successfully unlock based on the action information in the execution record stored at the last lock, and if any execution record is tampered with, the execution record stored at the last lock in the smart locking device 102 will change, so that the action information recorded therein is different from the action information executed at the last lock, resulting in the inability to successfully unlock.

[0050] It can be seen that when the action information in the execution record stored at the time of the most recent lock cannot be successfully unlocked, it can be determined that the execution record stored in the blockchain node has been tampered with. In this way, by checking whether the smart lock can successfully unlock when receiving the unlock request, the user can be explicitly reminded that the execution record of the smart lock has been tampered with, which is convenient for reminding the user to check the stored high-value items and materials, etc., and reduce the adverse effects caused by the tampering of the execution record.

[0051] The smart lock device control method provided in this embodiment is used to control the smart lock in the blockchain system. By using the smart lock as a blockchain node, the difficulty of tampering with the execution record in the smart lock can be increased based on the consensus mechanism of the blockchain system, and the robustness of the smart lock can be improved. The smart lock can perform different locking actions. When the smart lock is locked, the action information indicating the locking action to be performed when the smart lock is locked is obtained, and the smart lock is controlled to lock based on the action information, and the execution record containing the action information is generated and stored. When unlocking, the execution record generated and stored during the most recent locking is obtained, and the smart lock is controlled to unlock based on the action information in the execution record. In this way, if the unlocking fails, it means that there is an error in the action information in the execution record. At this time, it can be determined that the execution record has been tampered with. In this way, the user can be explicitly reminded of the tampering of the execution record in the smart lock by whether the unlocking is successful, so that the user can discover the record tampering behavior in time, thereby reducing the adverse effects caused by the tampering of the execution record.

[0052] In some embodiments, the locking request includes the user's identity authentication information. Based on this, before obtaining the action information in step S21, the following steps may also be performed:

[0053] Authenticate the user based on the identity authentication information;

[0054] Accordingly, obtain action information, including:

[0055] In response to successful user authentication, action information is obtained.

[0056] In this way, the security of smart locks can be improved through identity authentication.

[0057] Similarly, the unlock request may also carry the user's identity authentication information. Based on this, in the above step S23, before controlling the smart lock to perform the unlock action based on the action information in the execution record, the user may be authenticated based on the user's identity authentication information carried in the unlock request. If the identity authentication is successful, the smart lock may be controlled to perform the unlock action based on the action information in the execution record. In this way, the security of the smart lock can be improved.

[0058] The user's identity authentication information may include but is not limited to the user's account number, password and other information.

[0059] In some embodiments, when the locking request includes the user's identity authentication information, the generated execution record may also include the user's identity authentication information, so that the corresponding execution user can be quickly found based on the execution record when needed.

[0060] Furthermore, in some embodiments, the execution record may also include a timestamp corresponding to the action information, so that the execution record can be easily managed.

[0061] In some embodiments, after the execution record is generated, the following steps may also be performed:

[0062] The execution record is synchronized to other blockchain nodes in the target blockchain system, wherein the target blockchain system refers to the blockchain system to which the blockchain node 100 belongs.

[0063] Based on this, in response to the unlocking failure, after determining that the execution record stored in the blockchain node 100 has been tampered with, the following steps may also be performed:

[0064] Based on the data stored in other blockchain nodes in the target blockchain system, the tampered execution record in the blockchain node 100 is restored.

[0065] In this embodiment, the multi-node recovery mechanism of the blockchain system can be used to restore the erroneous execution record in the blockchain node 100 to normal based on the data stored in other blockchain nodes in the target blockchain system.

[0066] In this embodiment, the blockchain node 100 can exchange data with other blockchain nodes in the target blockchain system through the network interface module 104. When the network interface module 104 operates normally and the network is always connected, any operation to modify the execution record in the blockchain node 100 will fail due to the limitation of the consensus mechanism of the blockchain node network. Therefore, if the execution record is tampered with, it can be determined that the network connection between the blockchain node 100 and the target blockchain system is disconnected. Based on this, before restoring the tampered execution record in the blockchain node 100 based on the data stored in other blockchain nodes in the target blockchain system, the blockchain node 100 can first be connected to the target blockchain system through the network interface module 104. When the network connectivity is restored, the tampered execution record in the blockchain node 100 can be restored based on the data stored in other blockchain nodes in the target blockchain system.

[0067] In some embodiments, in response to the unlocking failure, after determining that the execution record stored in the blockchain node has been tampered with, the following steps may also be performed:

[0068] Reset the genesis block in the smart lock device and blockchain node.

[0069] Similar to restoring the execution record in the blockchain node 100, before resetting the genesis block in the smart locking device and the blockchain node, you can first access the target blockchain system through the network interface module 104. When the network connectivity is restored, reset the genesis block in the smart locking device and the blockchain node.

[0070] In this way, by resetting the genesis block in the smart locking device and the blockchain node, the smart locking device can continue to be used.

[0071] In some embodiments, the smart locking device can be a smart rotary combination lock similar to a safe deposit box rotary combination lock. Figure 3 As shown, the intelligent locking device 103 at least includes a controller 301 and an actuator 302, and the actuator 302 includes at least one execution unit, such as Figure 3 As shown, each execution unit includes a motor 3021, a turntable lock assembly 3022 and an electromagnetic telescopic rod 3023. By controlling the rotation angle of the motor 3021 and the telescopic state of the electromagnetic telescopic rod 3023 by the controller 301, the turntable lock assembly 3022 can perform an unlocking action or a locking action, thereby realizing the unlocking or locking of the intelligent locking device 103. Based on this, the action information may include the rotation angle of the motor in at least one execution unit 302 and the action information of the electromagnetic telescopic rod 3023.

[0072] The intelligent locking device 103 can perform different locking actions based on different rotation angles of the motor and the telescopic states of the electromagnetic telescopic rod, and has a high safety factor.

[0073] In some embodiments of the present application, Figure 4 As shown, the turntable lock assembly 3022 includes a driving gear 401, a driven gear 402 and a dial assembly which are coaxially arranged in sequence;

[0074] The driving gear 401 is connected to the rotating shaft of the motor 3021, and the rotation of the motor 3021 drives the driving gear 401 to rotate;

[0075] The driving gear 401 is meshed with the driven gear 402, and the rotation of the driving gear 401 drives the driven gear 402 to rotate;

[0076] The passive gear 402 and the dial assembly are provided with limiting holes of the same density;

[0077] The electromagnetic telescopic rod 3023 is used to be inserted into the limiting holes on the passive gear 402 and the dial assembly. By changing the telescopic state of the electromagnetic telescopic rod 3023, the number of rotations of the passive gear 402 and the dial assembly is changed.

[0078] Here, the dial assembly may include one or more dials.

[0079] In some embodiments of the present application, Figure 4 As shown, the dial assembly includes a first dial 4031, a second dial 4032 and a third dial 4033 which are coaxially arranged in sequence;

[0080] The first dial 4031 is provided with limiting holes with the same density as that of the passive gear 402;

[0081] A first stopper 501 is provided on a surface of the first dial 4031 close to the second dial 4032;

[0082] A second stopper 502 is provided on a surface of the third dial 4033 close to the second dial 4032;

[0083] A third stopper 503 cooperating with the first stopper 501 is disposed on one side of the second dial 4032 close to the first dial 4031 , and a fourth stopper 504 cooperating with the second stopper 502 is disposed on one side of the second dial 4032 close to the third dial 4033 .

[0084] In this way, the passive gear 402 can drive the first dial 4031 to rotate through the electromagnetic telescopic rod 3023; the first dial 4031 drives the second dial 4032 to rotate through the first block 501 and the third block 503; the second dial 4032 drives the third dial 4033 to rotate through the second block 502 and the fourth block 504.

[0085] In this way, the actions of the various components in the turntable lock assembly 3022 can be realized.

[0086] In addition, if Figure 4 As shown, the smart locking device 103 also includes a lock tongue control lever 303, and each dial of the dial assembly is provided with a notch. When the notches on all the dials in the dial assembly are in the same position and can be passed through by the lock tongue control lever 303, the lock tongue control lever 303 can pass through the notch of the dial assembly to open the lock tongue.

[0087] Below Figure 4 The working principle of the smart locking device 102 is described below.

[0088] Figure 4The smart locking device 102 shown is a multi-link rotary password lock, and its principle is similar to that of a safe rotary password lock, that is, by rotating the corresponding password dial back and forth and rotating the corresponding dial recess to the same position, the lock tongue can control the barrier rod to enter, thereby opening the lock tongue and other parts. The difference is that in this embodiment, the smart password lock module 103 is a multi-link unit, and the password dial on the outside is replaced by an active gear 401. The most different thing is that there are limiting holes of the same density between the passive gear 402 and the adjacent first dial 4031. The electromagnetic telescopic rod 3023 can be inserted into the limiting hole to change the number of rotations of the passive gear 402 and the first dial 4031, thereby changing the initial angle of each execution unit in the smart locking device 103, which is equivalent to changing the reference password for each lock. The smart locking device 103 is integrated with a lock driving module, namely a controller 301, which obtains instructions and combines the actions of the motor 3021 and the electromagnetic telescopic rod 3023 to execute the actions of the gear transmission and the telescopic rod to change the rotation angle and limit of the smart locking device 103, thereby realizing the unlocking and locking of the smart locking device 103.

[0089] Under the control of the controller 301, the active gear 401 is connected to the passive gear 402 to rotate, thereby completing the unlocking or locking process. At the same time, the smart locking device 103 integrates an electromagnetic telescopic rod 3023 that can be controlled to retract by electromagnetic effect, which can be inserted into the limiting holes of the passive gear 402 and the first dial 4031 to control the insertion and removal of the magnetic short rod in the smart password lock module. When inserted into different limiting holes, it is equivalent to a change of the initial password. The smart locking device 103 is connected to the blockchain control module 102, parses the execution record sent by the blockchain control module 102, and converts it into the rotation angle of the motor 3021 and the action of the electromagnetic telescopic rod 3023 to achieve locking and unlocking. Accordingly, the smart locking device 102 can achieve fully enclosed and invisible automatic unlocking and locking.

[0090] All the dial slots of the multi-link execution unit of the smart locking device 102 are in the same position before the first use. When used for the first time, the smart locking device 102 initializes the actuator 302. The initialization method is: the controller 301 parses the set initialization action information into the telescopic action of the electromagnetic telescopic rod 3023 and the rotation angle of the active gear 401 driven by the motor 3021. The rotation of the active gear 401 drives the rotation of the passive gear 402 to change the rotation of multiple dials, and disperses the slots of the corresponding dials into different angular positions, so that the lock tongue control lever 303 cannot be inserted through the slot, thereby achieving locking. At this time, the user authentication information implemented by the initialization, the action information of the electromagnetic telescopic rod 3023, and the rotation angle of the motor 3021 can be formed into an execution record and stored on the chain to form a genesis block.

[0091] The following control Figure 4 Taking the smart locking device 103 shown as an example, the smart locking device control method provided in the embodiment of the present application is described.

[0092] First, the locking process is described through the following steps 1 to 5.

[0093] Step 1: The user logs in to the front-end application module 101 using identity authentication information such as account number and password, and performs corresponding operations.

[0094] Step 2: The user sends a locking request to the blockchain control module 102 through the front-end application module 101.

[0095] Step 3: The blockchain control module 102 receives the locking request and generates an action information, which is used to indicate the extension or retraction state of the electromagnetic telescopic rod 3023 and the rotation angle of the motor 3021.

[0096] Step 4: The blockchain control module 102 controls the smart locking device 103 to positively drive the electromagnetic telescopic rod 3023 to extend or retract and the rotation angle of the motor 3021 based on the action information, and the smart locking device 103 is locked.

[0097] Step 5: Associate the action information with the user’s identity authentication information, add a timestamp to the associated information to form an execution record and store it on the chain.

[0098] The unlocking process is described below through steps 1 to 7.

[0099] Step 1: The user logs in to the front-end application module 101 using identity authentication information such as account number and password, and performs corresponding operations.

[0100] Step 2: The user sends an unlocking request to the blockchain control module 102 through the front-end application module 101.

[0101] Step 3: The blockchain control module 102 receives an unlocking request and retrieves the execution record stored during the last locking. The execution record includes the action information during the last locking. The action information is used to indicate the extension or retraction state of the electromagnetic telescopic rod 3023 and the rotation angle of the motor 3021 during the last locking.

[0102] Step 4: The blockchain control module 102 controls the smart locking device 103 to reversely drive the extension or retraction state of the electromagnetic telescopic rod 3023 and the rotation angle of the motor 3021 based on the action information. If the smart locking device 103 successfully unlocks the door, it is determined that the execution record has not been tampered with. If the smart locking device 103 fails to unlock the door, it is determined that the execution record has been tampered with.

[0103] Step 5: Associate the action information with the user’s identity authentication information, add a timestamp to the associated information to form an execution record and store it on the chain.

[0104] Step 6: If you want to restore the unlocked or locked state, reset the genesis block and the smart locking device 103 to the initial state.

[0105] Based on the smart locking device control method provided in the above embodiment, the present application also provides a specific implementation of a smart locking device control device. Please refer to the following embodiment.

[0106] See also Figure 5 , is a schematic diagram of a smart locking device control device provided in an embodiment of the present application, the device 500 is applied to a blockchain node, the blockchain node includes a smart locking device, the smart locking device can perform different locking actions, the smart locking device is unlocked based on the locking action at the most recent locking, such as Figure 5 As shown, the device 500 includes the following modules:

[0107] An acquisition module 501 is used to acquire action information in response to receiving a locking request, where the action information includes a locking action that needs to be performed when the smart locking device is locked;

[0108] The control module 502 is used to control the intelligent locking device to perform a locking action based on the action information, and to generate and store an execution record, wherein the execution record includes at least the action information;

[0109] The control module 502 is further used to control the intelligent locking device to perform an unlocking action based on the action information in the execution record in response to receiving an unlocking request after the locking is completed;

[0110] The tampering determination module 503 is used to determine, in response to a failure in unlocking, that the execution record stored in the blockchain node has been tampered with.

[0111] In some embodiments, the locking request includes the user's identity authentication information; the device 500 further includes: an authentication module, which is used to:

[0112] Authenticate the user based on the identity authentication information;

[0113] The acquisition module 501 is used to:

[0114] In response to successful user authentication, action information is obtained.

[0115] In some embodiments, the execution record also includes the user's identity authentication information.

[0116] In some embodiments, the apparatus 500 further includes a synchronization module, configured to:

[0117] Synchronize the execution record to other blockchain nodes in the target blockchain system, where the target blockchain system is the blockchain system to which the blockchain node belongs;

[0118] Recovery module for:

[0119] Restore the tampered execution records in the blockchain node based on the data stored in other blockchain nodes.

[0120] In some embodiments, the apparatus 500 further includes: a reset module, configured to:

[0121] Reset the genesis block in the smart lock device and blockchain node.

[0122] In some embodiments, the intelligent locking device includes at least a controller and an actuator, the actuator includes at least one actuator unit, each actuator unit includes a motor, a turntable lock assembly and an electromagnetic telescopic rod, and the controller controls the rotation angle of the motor and the telescopic state of the electromagnetic telescopic rod to make the turntable lock assembly perform an unlocking action or a locking action;

[0123] The motion information includes the rotation angle of the motor in at least one execution unit and the motion information of the electromagnetic telescopic rod.

[0124] In some embodiments, the turntable lock assembly includes a driving gear, a driven gear, and a dial assembly that are coaxially arranged in sequence;

[0125] The driving gear is connected to the rotating shaft of the motor, and the rotation of the motor drives the driving gear to rotate;

[0126] The driving gear meshes with the driven gear, and the rotation of the driving gear drives the rotation of the driven gear;

[0127] The passive gear and the dial assembly are provided with limiting holes of the same density;

[0128] The electromagnetic telescopic rod is used to be inserted into the limiting hole on the passive gear and the dial assembly. By changing the telescopic state of the electromagnetic telescopic rod, the number of rotations of the passive gear and the dial assembly is changed.

[0129] The intelligent locking device control device provided in the embodiment of the present application can achieve Figure 3 to Figure 4 To avoid repetition, the various processes implemented by the method embodiment are not described here.

[0130] Figure 6 A schematic diagram of the hardware structure of an electronic device provided in an embodiment of the present application is shown.

[0131] The electronic device 600 may include a processor 601 and a memory 602 storing computer program instructions.

[0132] Specifically, the processor 601 may include a central processing unit (CPU), or an application specific integrated circuit (ASIC), or may be configured to implement one or more integrated circuits of the embodiments of the present application.

[0133] The memory 602 may include a large capacity memory for data or instructions. By way of example and not limitation, the memory 602 may include a hard disk drive (HDD), a floppy disk drive, a flash memory, an optical disk, a magneto-optical disk, a magnetic tape, or a universal serial bus (USB) drive or a combination of two or more of these. In appropriate cases, the memory 602 may include a removable or non-removable (or fixed) medium. In appropriate cases, the memory 602 may be inside or outside the integrated gateway disaster recovery device. In a specific embodiment, the memory 602 is a non-volatile solid-state memory.

[0134] The memory 602 may include a read-only memory (ROM), a random access memory (RAM), a disk storage medium device, an optical storage medium device, a flash memory device, an electrical, optical or other physical / tangible memory storage device. Therefore, generally, the memory 602 includes one or more tangible (non-transitory) computer-readable storage media (e.g., a memory device) encoded with software including computer executable instructions, and when the software is executed (e.g., by one or more processors), it can perform the operations described in any one of the smart locking device control methods in the above embodiments.

[0135] The processor 601 implements any one of the intelligent locking device control methods in the above embodiments by reading and executing computer program instructions stored in the memory 602 .

[0136] In one example, the electronic device 600 may further include a communication interface 603 and a bus 610. Figure 6 As shown, the processor 601, the memory 602, and the communication interface 603 are connected via a bus 610 and communicate with each other.

[0137] The communication interface 603 is mainly used to implement communication between various modules, devices, units and / or equipment in the embodiments of the present application.

[0138] Bus 610 includes hardware, software or both, and the parts of online data flow billing equipment are coupled to each other. For example, but not limitation, bus may include accelerated graphics port (AGP) or other graphics bus, enhanced industrial standard architecture (EISA) bus, front-end bus (FSB), hypertransport (HT) interconnection, industrial standard architecture (ISA) bus, infinite bandwidth interconnection, low pin count (LPC) bus, memory bus, micro channel architecture (MCA) bus, peripheral component interconnection (PCI) bus, PCI-Express (PCI-X) bus, serial advanced technology attachment (SATA) bus, video electronics standard association local (VLB) bus or other suitable bus or two or more of these combinations. In appropriate cases, bus 610 may include one or more buses. Although the present application embodiment describes and shows a specific bus, the present application considers any suitable bus or interconnection.

[0139] In addition, in combination with the smart locking device control method in the above embodiments, the present application embodiment can provide a computer storage medium for implementation. The computer storage medium stores computer program instructions; when the computer program instructions are executed by a processor, any one of the smart locking device control methods in the above embodiments is implemented.

[0140] It should be clear that the present application is not limited to the specific configuration and processing described above and shown in the figures. For the sake of simplicity, a detailed description of the known method is omitted here. In the above embodiments, several specific steps are described and shown as examples. However, the method process of the present application is not limited to the specific steps described and shown, and those skilled in the art can make various changes, modifications and additions, or change the order between the steps after understanding the spirit of the present application.

[0141] The functional blocks shown in the above-described block diagram can be implemented as hardware, software, firmware or a combination thereof. When implemented in hardware, it can be, for example, an electronic circuit, an application specific integrated circuit (ASIC), appropriate firmware, a plug-in, a function card, etc. When implemented in software, the elements of the present application are programs or code segments that are used to perform the required tasks. The program or code segment can be stored in a machine-readable medium, or transmitted on a transmission medium or a communication link by a data signal carried in a carrier wave. "Machine-readable medium" can include any medium capable of storing or transmitting information. Examples of machine-readable media include electronic circuits, semiconductor memory devices, ROM, flash memory, erasable ROM (EROM), floppy disks, CD-ROMs, optical disks, hard disks, optical fiber media, radio frequency (RF) links, etc. The code segment can be downloaded via a computer network such as the Internet, an intranet, etc.

[0142] It should also be noted that the exemplary embodiments mentioned in this application describe some methods or systems based on a series of steps or devices. However, this application is not limited to the order of the above steps, that is, the steps can be performed in the order mentioned in the embodiment, or in a different order from the embodiment, or several steps can be performed simultaneously.

[0143] Aspects of the present disclosure are described above with reference to the flowchart and / or block diagram of the method, device (system) and computer program product according to the embodiment of the present disclosure. It should be understood that each box in the flowchart and / or block diagram and the combination of each box in the flowchart and / or block diagram can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, or other programmable data processing device to produce a machine so that these instructions executed by the processor of the computer or other programmable data processing device enable the implementation of the function / action specified in one or more boxes of the flowchart and / or block diagram. Such a processor can be, but is not limited to, a general-purpose processor, a special-purpose processor, a special application processor, or a field programmable logic circuit. It can also be understood that each box in the block diagram and / or flowchart and the combination of boxes in the block diagram and / or flowchart can also be implemented by dedicated hardware that performs a specified function or action, or can be implemented by a combination of dedicated hardware and computer instructions.

[0144] The above is only a specific implementation of the present application. Those skilled in the art can clearly understand that for the convenience and simplicity of description, the specific working processes of the systems, modules and units described above can refer to the corresponding processes in the aforementioned method embodiments, and will not be repeated here. It should be understood that the protection scope of the present application is not limited to this. Any technician familiar with the technical field can easily think of various equivalent modifications or replacements within the technical scope disclosed in this application, and these modifications or replacements should be included in the protection scope of this application.

Claims

1. A method for controlling an intelligent locking device, characterized in that: Applied to a blockchain node, the blockchain node includes a smart locking device, the smart locking device can perform different locking actions, the smart locking device unlocks based on the locking action during the most recent locking, the method includes: In response to receiving a locking request, obtaining action information, the action information including a locking action that needs to be performed when the smart locking device is locked; Based on the action information, control the intelligent locking device to perform a locking action, and generate and store an execution record, wherein the execution record at least includes the action information; After locking is completed, in response to receiving an unlocking request, based on the action information in the execution record, controlling the smart locking device to perform an unlocking action; In response to the unlocking failure, it is determined that the execution record stored in the blockchain node has been tampered with.

2. The method according to claim 1, characterized in that The locking request includes the user's identity authentication information; Before obtaining the action information, the method further includes: authenticating the user based on the identity authentication information; The obtaining of action information includes: In response to successful identity authentication of the user, action information is obtained.

3. The method according to claim 2, characterized in that The execution record also includes the identity authentication information of the user.

4. The method according to claim 1, characterized in that After generating the execution record, the method further includes: Synchronize the execution record to other blockchain nodes in a target blockchain system, where the target blockchain system is the blockchain system to which the blockchain node belongs; After the response to the unlocking failure is to determine that the execution record stored in the blockchain node has been tampered with, the method further includes: Based on the data stored in the other blockchain nodes, the tampered execution record in the blockchain node is restored.

5. The method according to claim 1, characterized in that After the response to the unlocking failure is to determine that the execution record stored in the blockchain node has been tampered with, the method further includes: Resetting the genesis block in the smart locking device and the blockchain node.

6. The method according to any one of claims 1 to 5, characterized in that: The intelligent locking device at least includes a controller and an actuator, the actuator includes at least one actuator unit, each of the actuator units includes a motor, a turntable lock assembly and an electromagnetic telescopic rod, and the controller controls the rotation angle of the motor and the telescopic state of the electromagnetic telescopic rod to make the turntable lock assembly perform an unlocking action or a locking action; The action information includes the rotation angle of the motor in the at least one execution unit and the action information of the electromagnetic telescopic rod.

7. The method according to claim 6, characterized in that The turntable lock assembly comprises a driving gear, a driven gear and a dial assembly which are coaxially arranged in sequence; The driving gear is connected to the rotating shaft of the motor, and the rotation of the motor drives the driving gear to rotate; The driving gear is meshed with the driven gear, and the driving gear rotates to drive the driven gear to rotate; The passive gear and the dial assembly are provided with limiting holes of the same density; The electromagnetic telescopic rod is used to be inserted into the limiting holes on the passive gear and the dial assembly. By changing the telescopic state of the electromagnetic telescopic rod, the number of rotations of the passive gear and the dial assembly is changed.

8. An intelligent locking device control device, characterized in that: Applied to a blockchain node, the blockchain node includes a smart locking device, the smart locking device can perform different locking actions, the smart locking device unlocks based on the locking action during the most recent locking, and the device includes: An acquisition module, configured to acquire action information in response to receiving a locking request, wherein the action information includes a locking action to be performed when the intelligent locking device is locked; A control module, configured to control the intelligent locking device to perform a locking action based on the action information, and to generate and store an execution record, wherein the execution record includes at least the action information; The control module is further configured to control the intelligent locking device to perform an unlocking action based on the action information in the execution record in response to receiving an unlocking request after the locking is completed; The tampering determination module is used to determine, in response to a failure in unlocking, that the execution record stored in the blockchain node has been tampered with.

9. An electronic device, characterized in that: The electronic device comprises: a processor and a memory storing computer program instructions; When the processor executes the computer program instructions, the smart locking device control method according to any one of claims 1 to 7 is implemented.

10. A computer storage medium, characterized in that: The computer storage medium stores computer program instructions, and when the computer program instructions are executed by the processor, the intelligent locking device control method according to any one of claims 1 to 7 is implemented.

11. A computer program product, characterized in that When the instructions in the computer program product are executed by a processor of an electronic device, the electronic device executes the smart locking device control method according to any one of claims 1 to 7.

Citation Information

Patent Citations

  • Mechanical coded lock

    CN106593107A

  • Method and system for unlocking and locking bicycle lock

    CN108154587A

  • Intelligent lock supervision device and method based on blockchain, and storage medium

    CN109272606A

  • Intelligent lock control method and system based on password group

    CN110335394A

  • Management method for carrying out anti-theft early warning on lock by utilizing visual technology

    CN118072420A