Anti-misoperation intelligent lock system and method for cable conduit

By combining timestamps and keys, identity verification and valid time verification are synchronized, the risk of replay attacks in cable pipe intelligent lock opening technology is solved, achieving higher security and loss prevention effects.

CN119445703APending Publication Date: 2025-02-14GUANGZHOU PANYU CABLE WORKS
View PDF 8 Cites 0 Cited by

Patent Information

Application Number
CN202411457745.0
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-10-18
Publication Date
2025-02-14

AI Technical Summary

Technical Problem

There is a risk of replay attack in the existing cable pipe intelligent lock opening technology, which leads to the cable pipe intelligent lock opening at will, causing significant losses.

Method used

By combining timestamps and keys, authentication and valid time verification are completed synchronously to avoid replay attacks. The specific steps include: the cable pipe intelligent lock detects the smart key insertion, obtains the combined verification information (key content information, operation user information and key generation time stamp), record the acquisition time, perform key identity authentication and valid time authentication, only in Turn on after passing the authentication.

Benefits of technology

It effectively avoids the situation of unsafely opening of the cable pipe intelligent lock through replay attacks, improves the safety of the cable pipe intelligent lock and prevents the occurrence of major losses.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119445703A_ABST
    Figure CN119445703A_ABST
Patent Text Reader

Abstract

The embodiment of the invention discloses a cable conduit anti-misoperation intelligent lock system and method, and the method comprises the steps: obtaining combined verification information stored in an intelligent key when a cable conduit intelligent lock detects that the intelligent key is in an inserted state, the combined verification information comprises secret key content information, operation user information and a secret key generation timestamp, when the cable pipeline intelligent lock obtains the combined verification information stored in the intelligent key, the obtaining time of the combined verification information is recorded, and key identity authentication is carried out based on the secret key content information and the operation user information; and effective time authentication is carried out based on the key generation timestamp and the acquisition time, and when the key identity authentication and the effective time authentication are both passed, the cable pipeline intelligent lock is unlocked. According to the scheme, identity verification and effective time verification can be synchronously completed in a mode of combining the timestamp and the key, and the situation that the intelligent lock of the cable pipeline is unsafely opened in a replay attack mode is avoided.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The embodiments of the present application relate to the technical field of cable duct smart lock opening, and more particularly to a smart lock system and method for preventing misoperation of a cable duct. Background Art

[0002] Cable duct plugging is essential to prevent sewage and rainwater from flowing into the duct and to avoid the long-term immersion of cables in water and dangerous operation. There are some problems with traditional cable duct plugging methods. For example, the material and the duct may crack due to thermal expansion and contraction, thus losing the waterproof effect. In order to solve the problems of traditional plugging methods, a new type of cable duct plugging sleeve came into being. However, since the plugging sleeve can be disassembled at will during construction, the construction workers can carry out construction according to their own convenience without following the plan, and cannot carry out effective control, resulting in increased construction costs and difficulties in subsequent maintenance. By adopting a highly secure and intelligent passive electronic lock system, the above problems can be effectively solved and the safety and management efficiency of cable ducts can be improved.

[0003] In the related cable duct smart lock opening technology, when using a smart key to open the smart lock, usually when the security verification is successful, the corresponding opening of the cable duct smart lock is executed. The corresponding key is required for verification during the verification process. This cable duct smart lock opening method has the risk of replay attack, which may cause the cable duct smart lock to be opened at will, causing significant losses. Summary of the invention

[0004] The embodiments of the present invention provide a smart lock system and method for preventing misoperation of a cable duct, which solves the problem that in the existing cable duct smart lock opening technology, there is a risk of replay attack when opening the cable duct smart lock, which causes the cable duct smart lock to be opened at will and causes heavy losses. The system can synchronously complete identity authentication and valid time verification by combining a timestamp with a key, thereby avoiding the situation where the cable duct smart lock is opened unsafely through a replay attack.

[0005] In a first aspect, an embodiment of the present invention provides a smart lock method for preventing misoperation of a cable duct, comprising:

[0006] When the cable duct smart lock detects that the smart key is in an inserted state, the combined verification information stored in the smart key is obtained, and the combined verification information includes key content information, operation user information, and key generation timestamp;

[0007] When the cable duct smart lock obtains the combination verification information stored in the smart key, it records the acquisition time of the combination verification information, performs key identity authentication based on the key content information and the operating user information, and performs effective time authentication based on the key generation timestamp and the acquisition time;

[0008] When both the key identity authentication and the validity time authentication are passed, the cable duct smart lock is opened.

[0009] Optionally, before acquiring the combined verification information stored in the smart key, the method further includes:

[0010] When receiving the key content information sent down, the user terminal device records the reception time of the key content information, and calculates the key generation time according to the recorded network delay data within the previous preset time and the reception time;

[0011] The user terminal device calculates the timestamp corresponding to the key generation time and determines it as the key generation timestamp, determines the currently logged-in operating user information, and combines the key content information, the operating user information and the key generation timestamp to obtain combined verification information;

[0012] The user terminal device determines whether a Bluetooth link has been established between the user terminal device and the smart key, and if the Bluetooth link has been established, sends the combined verification information to the smart key.

[0013] Optionally, the calculating the key generation time according to the recorded network delay data within a preset time before and the receiving time includes:

[0014] The user terminal device calculates the average network delay within the pre-set time according to the network delay data, and obtains the key generation time by subtracting the average network delay from the receiving time.

[0015] Optionally, the key content information includes public key information, and the key identity authentication based on the key content information and the operating user information includes:

[0016] The cable duct smart lock pairs the public key information with the stored private key information, and compares the operating user information with the pre-stored staff information. If the public key information is successfully paired with the stored private key information and the pre-stored staff information is the same as the operating user information, it is determined that the key identity authentication is successful.

[0017] Optionally, the performing effective time authentication based on the key generation timestamp and the acquisition time includes:

[0018] The cable duct smart lock calculates the verification information acquisition timestamp corresponding to the acquisition time, calculates the difference between the verification information acquisition timestamp and the key generation timestamp, and performs effective time authentication based on the difference and the average network delay corresponding to the key generation timestamp.

[0019] Optionally, performing effective time authentication according to the difference and an average network delay corresponding to the key generation timestamp includes:

[0020] The cable duct smart lock compares the average network delay with the preset standard network delay, and when the average network delay is less than or equal to the preset standard network delay, compares the difference with the preset difference, and when the difference is less than or equal to the preset difference, determines that the effective time authentication is successful, otherwise, determines that the effective time authentication fails;

[0021] In the case where the average network delay is greater than the preset standard network delay, the difference between the average network delay and the preset standard network delay is determined as an adjustment value, and the preset difference is adjusted according to the adjustment value to obtain a comparison difference. In the case where the difference is less than or equal to the comparison difference, it is determined that the effective time authentication is successful; otherwise, it is determined that the effective time authentication has failed.

[0022] Optionally, when the key identity authentication and / or the validity period authentication fails, the method further includes:

[0023] The cable smart lock increases the value of the number of authentication failures stored in the record by one, and when the number of authentication failures is greater than a preset number, a danger alarm is issued and the lock is frozen, and the number of authentication failures is adjusted to zero every preset period.

[0024] In a second aspect, an embodiment of the present invention further provides a smart lock system for preventing misoperation of a cable duct, comprising:

[0025] An acquisition module is used for the cable duct smart lock to acquire the combined verification information stored in the smart key when the smart key is detected to be in an inserted state, wherein the combined verification information includes key content information, operation user information and key generation timestamp;

[0026] A recording module, used for the cable duct smart lock to record the acquisition time of the combination verification information when the combination verification information stored in the smart key is acquired;

[0027] An authentication module, used to perform key identity authentication based on the key content information and the operating user information, and to perform effective time authentication based on the key generation timestamp and the acquisition time;

[0028] An opening module is used to open the cable duct smart lock when both the key identity authentication and the validity time authentication are passed.

[0029] In a third aspect, an embodiment of the present invention further provides a smart lock device for preventing misoperation of a cable duct, the device comprising:

[0030] one or more processors;

[0031] a storage device for storing one or more programs,

[0032] When the one or more programs are executed by the one or more processors, the one or more processors implement a smart lock method for preventing misoperation of a cable duct as described in an embodiment of the present invention.

[0033] In a fourth aspect, an embodiment of the present invention further provides a storage medium storing computer executable instructions, which, when executed by a computer processor, are used to execute a smart lock method for preventing misoperation of a cable duct as described in an embodiment of the present invention.

[0034] In an embodiment of the present invention, when the cable duct smart lock detects that the smart key is in an inserted state, it obtains the combination verification information stored in the smart key, the combination verification information includes key content information, operating user information and key generation timestamp. When the cable duct smart lock obtains the combination verification information stored in the smart key, it records the acquisition time of the combination verification information, performs key identity authentication based on the key content information and operating user information, and performs effective time authentication based on the key generation timestamp and the acquisition time. When both the key identity authentication and the effective time authentication are passed, the cable duct smart lock is opened. This solution solves the problem that there is a risk of replay attack when opening the cable duct smart lock in the existing cable duct smart lock opening technology, which causes the cable duct smart lock to be opened arbitrarily and causes significant losses, and can avoid the situation where the cable duct smart lock is opened unsafely by replay attack. BRIEF DESCRIPTION OF THE DRAWINGS

[0035] Figure 1 A flow chart of a smart lock method for preventing misoperation of a cable duct provided by an embodiment of the present invention;

[0036] Figure 2 A flow chart of another intelligent locking method for preventing misoperation of a cable duct provided by an embodiment of the present invention;

[0037] Figure 3 A flow chart of another intelligent locking method for preventing misoperation of a cable duct provided by an embodiment of the present invention;

[0038] Figure 4 A flow chart of another intelligent locking method for preventing misoperation of a cable duct provided by an embodiment of the present invention;

[0039] Figure 5 A module structure block diagram of a smart lock system for preventing misoperation of a cable duct provided by an embodiment of the present invention;

[0040] Figure 6 A schematic structural diagram of a smart lock device for preventing misoperation of a cable duct provided in an embodiment of the present invention. DETAILED DESCRIPTION

[0041] The embodiments of the present invention are further described in detail below in conjunction with the accompanying drawings and embodiments. It is to be understood that the specific embodiments described herein are only used to explain the embodiments of the present invention, rather than to limit the embodiments of the present invention. It is also necessary to explain that, for ease of description, only parts related to the embodiments of the present invention are shown in the accompanying drawings, rather than all structures.

[0042] The terms "first", "second", etc. in the specification and claims of this application are used to distinguish similar objects, and are not used to describe a specific order or sequence. It should be understood that the data used in this way can be interchangeable under appropriate circumstances, so that the embodiments of the present application can be implemented in an order other than those illustrated or described here, and the objects distinguished by "first", "second", etc. are generally of one type, and the number of objects is not limited. For example, the first object can be one or more. In addition, "and or or" in the specification and claims represents at least one of the connected objects, and the character "or" generally indicates that the objects associated before and after are in an "or" relationship.

[0043] The embodiment of the present application provides a smart lock method for preventing misoperation of a cable duct, which can be applied to the scenario of preventing arbitrary operation of a cable duct. The embodiment of the present application provides a smart lock method for preventing misoperation of a cable duct, and the execution subject of each step can be a computer device, which refers to any electronic device with data calculation, processing and storage capabilities, such as mobile phones, PCs (Personal Computers), tablet computers and other terminal devices, and can also be servers and other devices, which are not limited in the embodiment of the present application.

[0044] Figure 1 A flow chart of a smart lock method for preventing misoperation of a cable duct provided by an embodiment of the present invention, such as Figure 1 As shown, specifically including:

[0045] Step S101: When the cable duct smart lock detects that the smart key is inserted, it obtains the combined verification information stored in the smart key, where the combined verification information includes key content information, operating user information, and a key generation timestamp.

[0046] Among them, the cable duct smart lock is used to represent a passive electronic lock body rotary lock, which combines intelligent technology and lock principle and is specially designed for the safety management equipment of cable ducts. The cable duct smart lock can avoid the arbitrary disassembly of the cable duct and prevent the construction personnel from not installing and disassembling in the prescribed order when adding cables later. At the same time, it can also prevent the cable duct from being occupied by unauthorized units, thereby improving the safety and management efficiency of the cable duct. The smart key is used to represent a convenient unlocking tool designed for the cable duct smart lock. The smart key uses Bluetooth technology to achieve wireless communication with the lock body. Through the internal circuit and authentication module, it ensures that only legal keys can open the corresponding lock. The smart key can be used to open the corresponding cable duct smart lock, and it also has the function of powering the lock and transmitting data. The smart key can realize remote authorization operation and remote data upload through communication with the remote cable smart lock opening software. The combined verification information is used to represent the data information that needs to be verified when opening the cable smart lock. The key content information can be a specific code or password content used to control the opening of the cable duct smart lock. The operating user information can be the information of the user who is currently pre-opening the cable smart lock. The key generation timestamp can be a value corresponding to the time when the key is generated. An exemplary example may be that the current cable duct smart lock a detects that the smart key is in an inserted state, and obtains the key content information stored in the inserted smart key as FVATY081, the user name in the operating user information is Zhang San, the work number is 133907, and the key generation timestamp is 1699804800.

[0047] Step S102: When the cable duct smart lock obtains the combination verification information stored in the smart key, it records the acquisition time of the combination verification information, performs key identity authentication based on the key content information and the operating user information, and performs effective time authentication based on the key generation timestamp and the acquisition time.

[0048] Among them, the acquisition time is used to characterize the time when the cable smart lock acquires the smart key. Key identity authentication can be to confirm the identity of the smart key. Valid time authentication can be to confirm the validity period of the key content information. In one embodiment, when the cable duct smart lock acquires the combined verification information stored in the smart key, it records the acquisition time of the combined verification information, determines whether there is associated private key information according to the operating user information, and if there is associated private key information, pairs the public key information in the key content information with the private key information, and if the pairing is successful, determines that the key identity authentication is successful; calculates the verification information acquisition timestamp corresponding to the acquisition time of the combined verification information, and performs valid time authentication according to the key generation timestamp and the verification information acquisition timestamp. Optionally, the key content information includes public key information, and a key identity authentication method can be that the cable duct smart lock pairs the public key information with the stored private key information, and compares the operating user information with the pre-stored staff information, and determines that the key identity authentication is successful when the public key information is successfully paired with the stored private key information and the pre-stored staff information is the same as the operating user information. By pairing the public key and the private key and comparing the information of the cable duct smart lock operator, the accuracy and security of identity authentication can be improved. Optionally, a method of valid time authentication can be that the cable duct smart lock calculates the verification information acquisition timestamp corresponding to the acquisition time of the combined verification information, calculates the difference between the verification information acquisition timestamp and the key generation timestamp, and performs valid time authentication based on the difference and the average network delay corresponding to the key generation timestamp. By verifying the validity period from the key generation time to the key acquisition time of the smart lock through network delay, the accuracy of the key validity time authentication can be improved to improve the security of the smart lock.

[0049] Step S103: When both the key identity authentication and the validity time authentication are passed, the cable duct smart lock is opened.

[0050] Among them, after the key identity authentication and the effective time authentication are performed, the key identity authentication result and the effective time authentication result are detected. When the key identity authentication and the effective time authentication are both passed, the cable duct intelligent lock automatically opens. Optionally, when the key identity authentication and / or the effective time authentication fail, the cable intelligent lock adds one to the value of the number of authentication failures stored in the record, and when the number of authentication failures is greater than the preset number, a danger alarm is issued and frozen, and the number of authentication failures is adjusted to zero every preset period, wherein the number of authentication failures is used to characterize the cumulative number of situations in which the key identity authentication and / or the effective time authentication fail. An exemplary example may be that the number of authentication failures stored in the cable duct intelligent lock is 2 times, the preset number is 2 times, and the current key identity authentication and the effective time authentication are both failed, then the number of authentication failures is increased by one and updated to 3 times, and the updated number of authentication failures is greater than the preset number, then the cable duct intelligent lock issues a danger alarm and freezes, waiting for the corresponding staff to check. In another embodiment, when the key identity authentication and / or the effective time authentication fail, the cable duct intelligent lock prohibits the next opening within the preset waiting time.

[0051] From the above, it can be seen that when the cable duct smart lock detects that the smart key is in the inserted state, it obtains the combination verification information stored in the smart key. The combination verification information includes key content information, operating user information and key generation timestamp. When the cable duct smart lock obtains the combination verification information stored in the smart key, it records the acquisition time of the combination verification information, performs key identity authentication based on the key content information and operating user information, and performs effective time authentication based on the key generation timestamp and acquisition time. When both the key identity authentication and effective time authentication are passed, the cable duct smart lock is opened. This solution solves the problem that there is a risk of replay attack when opening the cable duct smart lock in the existing cable duct smart lock opening technology, which causes the cable duct smart lock to be opened arbitrarily and causes significant losses. It can avoid the situation where the cable duct smart lock is opened unsafely by replay attack.

[0052] Figure 2 A flowchart of another intelligent lock method for preventing misoperation of a cable conduit provided by an embodiment of the present invention provides an optional specific method for generating combination verification information, such as Figure 2 As shown, specifically including:

[0053] Step S201: When receiving the key content information sent, the user terminal device records the reception time of the key content information, and calculates the key generation time according to the recorded network delay data within a preset time and the reception time.

[0054] Among them, the user-end device can be a device that logs in to the remote unlocking cable duct smart lock software and opens the cable duct smart lock. The receiving time is used to characterize the time when the user-end device receives the key content information. The network delay data can be the network delay value of the user-end device at each time point within the previous preset time, and the network delay value can be the length of time from the key content information being sent to the user-end device. The key generation time is used to characterize the time when the key is generated. When the user-end device receives the key content information sent, it automatically records the receiving time of the key content information, and the user-end device automatically detects and records its own network delay. The user-end device calculates the key generation time based on the recorded network delay data within the previous preset time and the receiving time of the key content information. Optionally, a method for calculating the key generation time can be that the user-end device calculates the average network delay within the previous preset time based on the network delay data, and subtracts the average network delay from the receiving time of the key content information to obtain the key generation time. An exemplary example may be that the preset time is 30s, the time when the user terminal device receives the key content information is 8:10:30 on September 1, 2024, and the network delay data of the user terminal device in the first 30s is 5s, 4s, 5s, 6s, and 5s. The average network delay within 30 seconds is calculated to be 5s, and the key generation time is 8:10:25 on September 1, 2024. In another embodiment, the network delay data and the reception time of the key content information are input into the trained key generation time evaluation model to obtain the key generation time.

[0055] Step S202, the user terminal device calculates the timestamp corresponding to the key generation time and determines it as the key generation timestamp, determines the currently logged-in operating user information, and combines the key content information, the operating user information and the key generation timestamp to obtain combined verification information.

[0056] Among them, after calculating the key generation time, the user terminal device calculates the timestamp corresponding to the key generation time and determines it as the key generation timestamp, determines the operating user information of the current remote smart lock opening software login, and combines the key content information, the operating user information and the key generation timestamp to obtain the combined verification information. An exemplary example can be that the key content information received by the user terminal device is FWKL234, the key generation time determined is 8:10:25 on September 1, 2024, the key generation time is substituted into the timestamp calculation formula to obtain the key generation timestamp of 1696148225, and the operating user information of the current remote smart lock opening software login is Zhang San 133456, then FWKL234, Zhang San 133456, 1696148225 are combined into the combined verification information.

[0057] Step S203: the user terminal device determines whether a Bluetooth link has been established between itself and the smart key, and if a Bluetooth link has been established, sends the combined verification information to the smart key.

[0058] After the combination verification information is combined, the user terminal device automatically detects whether a Bluetooth connection has been established between itself and the smart key. If it is determined that a Bluetooth connection has been established between itself and the smart key, the determined combination verification information is sent to the smart key. Optionally, if the user terminal device detects that a Bluetooth connection has not been established between itself and the smart key, it detects whether Bluetooth has been turned on. If Bluetooth has not been turned on, Bluetooth is turned on to establish a Bluetooth connection with the smart key.

[0059] Step S204: When the cable duct smart lock detects that the smart key is inserted, it obtains the combined verification information stored in the smart key, where the combined verification information includes key content information, operating user information, and a key generation timestamp.

[0060] Step S205: When the cable duct smart lock obtains the combination verification information stored in the smart key, it records the acquisition time of the combination verification information, performs key identity authentication based on the key content information and the operating user information, and performs effective time authentication based on the key generation timestamp and the acquisition time.

[0061] Step S206: When both the key identity authentication and the validity time authentication are passed, the cable duct smart lock is opened.

[0062] As can be seen from the above, when the user-end device receives the key content information sent down, it records the reception time of the key content information, calculates the key generation time according to the recorded network delay data within the preset time and the reception time, calculates the timestamp corresponding to the key generation time and determines it as the key generation timestamp, determines the currently logged-in operating user information, combines the key content information, the operating user information and the key generation timestamp to obtain the combined verification information, and the user-end device determines whether it has established a Bluetooth link with the smart key, and if the Bluetooth link has been established, sends the combined verification information to the smart key. This solution can realize remote authorization operation and flexible permission management through the transmission of verification information between the user-end device and the smart key, and can complete the authorization without physical contact.

[0063] Figure 3 A flowchart of another intelligent lock method for preventing misoperation of a cable duct provided by an embodiment of the present invention is provided, which provides a specific method for optional key identity authentication, such as Figure 3 As shown, specifically including:

[0064] Step S301: When the cable duct smart lock detects that the smart key is inserted, it obtains the combined verification information stored in the smart key, where the combined verification information includes key content information, operating user information, and a key generation timestamp.

[0065] Step S302: When the cable duct smart lock obtains the combination verification information stored in the smart key, it records the time when the combination verification information is obtained.

[0066] Step S303: The cable duct smart lock pairs the public key information with the stored private key information, and compares the operating user information with the pre-stored staff information. If the public key information is successfully paired with the stored private key information and the pre-stored staff information is the same as the operating user information, it is determined that the key identity authentication is successful.

[0067] Among them, the key content information includes public key information. The public key information and the private key information can be a key pair obtained by an encryption algorithm. The public key information can be publicly distributed, while the private key information must be kept confidential. The pre-stored staff information can be pre-stored information of staff who can open the cable duct smart lock. A key identity authentication method can be: the cable duct smart lock pairs the public key information with the stored private key information, and compares the operating user information with the pre-stored staff information. When the public key information is successfully paired with the stored private key information and the pre-stored staff information is the same as the operating user information, it is determined that the key identity authentication is successful. An exemplary example may be that the cable duct smart lock pairs the public key information with the stored private key information, and displays that the pairing is successful. The user name in the operating user information is Zhang San and the work number is 133456, the user name in the pre-stored staff information 1 is Li Si and the work number is 188902, and the user name in the pre-stored staff information 2 is Zhang San and the work number is 133456. The operating user information is successfully compared with the pre-stored staff information 2, that is, the public key information is successfully paired with the stored private key information and the pre-stored staff information is the same as the operating user information, and the key identity authentication is successful. In another embodiment, the cable duct smart lock generates the key content information to be compared by using the same encryption algorithm and the data used to generate the key content information. When the key content information is the same as the key content information to be compared and the pre-stored staff information is the same as the operating user information, it is determined that the key identity authentication is successful.

[0068] Step S304: Perform valid time authentication based on the key generation timestamp and the acquisition time. When both the key identity authentication and the valid time authentication are passed, the cable duct smart lock is opened.

[0069] From the above, it can be seen that the cable duct smart lock pairs the public key information with the stored private key information, and compares the operating user information with the pre-stored staff information. When the public key information is successfully paired with the stored private key information and the pre-stored staff information is the same as the operating user information, it is determined that the key identity authentication is successful. This solution can improve the accuracy and security of identity authentication by pairing the public key and the private key and comparing the information of the cable duct smart lock operator.

[0070] Figure 4 A flowchart of another intelligent lock method for preventing misoperation of a cable duct provided by an embodiment of the present invention is provided, which provides a specific method for optional valid time authentication, such as Figure 4 As shown, specifically including:

[0071] Step S401: When the cable duct smart lock detects that the smart key is inserted, it obtains the combined verification information stored in the smart key, where the combined verification information includes key content information, operating user information, and a key generation timestamp.

[0072] Step S402: When the cable duct smart lock obtains the combination verification information stored in the smart key, it records the time of obtaining the combination verification information and performs key identity authentication based on the key content information and the operating user information.

[0073] Step S403: The cable duct smart lock calculates the verification information acquisition timestamp corresponding to the acquisition time, calculates the difference between the verification information acquisition timestamp and the key generation timestamp, and performs effective time authentication based on the difference and the average network delay corresponding to the key generation timestamp.

[0074] Among them, the verification information acquisition timestamp is used to characterize the timestamp corresponding to the time when the cable duct smart lock obtains the combined verification information. Optionally, a valid time authentication method can be that the cable duct smart lock compares the average network delay with the preset standard network delay. When the average network delay is less than or equal to the preset standard network delay, the difference between the verification information acquisition timestamp and the key generation timestamp is compared with the preset difference. When the difference between the verification information acquisition timestamp and the key generation timestamp is less than or equal to the preset difference, it is determined that the valid time authentication is successful. Otherwise, it is determined that the valid time authentication fails. When the average network delay is greater than the preset standard network delay, the difference between the average network delay and the preset standard network delay is determined as the adjustment value. The preset difference is adjusted according to the adjustment value to obtain the comparison difference. When the difference between the verification information acquisition timestamp and the key generation timestamp is less than or equal to the comparison difference, it is determined that the valid time authentication is successful. Otherwise, it is determined that the valid time authentication fails. An exemplary example may be that the verification information acquisition timestamp is 1725149445 seconds, the key generation timestamp is 1725149425 seconds, the difference between the verification information acquisition timestamp and the key generation timestamp is 20, the preset difference is 30, the preset standard network delay is 5s, the average network delay is 8s, the average network delay is greater than the preset standard network delay, the difference between the average network delay and the preset standard network delay, that is, the adjustment value is 3s, the preset difference and the adjustment value are added to obtain a comparison difference of 33s, the difference between the verification information acquisition timestamp and the key generation timestamp is less than the comparison difference, and the effective time authentication is successful. In another embodiment, the cable duct smart lock inputs the difference between the verification information acquisition timestamp and the key generation timestamp and the average network delay into the trained effective time authentication model to obtain the effective time authentication result.

[0075] Step S404: When both the key identity authentication and the validity time authentication are passed, the cable duct smart lock is opened.

[0076] From the above, it can be seen that the cable duct smart lock calculates the verification information acquisition timestamp corresponding to the acquisition time of the combined verification information, calculates the difference between the verification information acquisition timestamp and the key generation timestamp, and performs effective time authentication based on the difference and the average network delay corresponding to the key generation timestamp. This solution verifies the validity period from the key generation time to the time when the smart lock obtains the key through network delay, which can improve the accuracy of the key effective time authentication and improve the security of the smart lock.

[0077] Figure 5 This is a module structure diagram of a cable duct anti-misoperation smart lock system provided by an embodiment of the present invention. The system is used to execute a cable duct anti-misoperation smart lock method provided by the above embodiment, and has the corresponding functional modules and beneficial effects of the execution method. Figure 5 As shown, the system specifically includes:

[0078] An acquisition module 101 is used for the cable duct smart lock to acquire the combined verification information stored in the smart key when detecting that the smart key is in an inserted state, wherein the combined verification information includes key content information, operation user information, and key generation timestamp;

[0079] The recording module 102 is used for the cable duct smart lock to record the acquisition time of the combination verification information when the combination verification information stored in the smart key is acquired;

[0080] An authentication module 103, configured to perform key identity authentication based on the key content information and the operating user information, and perform effective time authentication based on the key generation timestamp and the acquisition time;

[0081] The opening module 104 is used to open the cable duct smart lock when both the key identity authentication and the validity time authentication are passed.

[0082] It can be seen from the above scheme that when the cable duct smart lock detects that the smart key is in the inserted state, it obtains the combination verification information stored in the smart key. The combination verification information includes key content information, operating user information and key generation timestamp. When the cable duct smart lock obtains the combination verification information stored in the smart key, it records the acquisition time of the combination verification information, performs key identity authentication based on the key content information and operating user information, and performs effective time authentication based on the key generation timestamp and acquisition time. When both the key identity authentication and effective time authentication are passed, the cable duct smart lock is opened. This scheme solves the problem that there is a risk of replay attack when opening the cable duct smart lock in the existing cable duct smart lock opening technology, which causes the cable duct smart lock to be opened arbitrarily and causes significant losses. It can avoid the situation where the cable duct smart lock is opened unsafely by replay attack.

[0083] In a possible embodiment, a verification information determination module is further included, which is specifically used to:

[0084] When receiving the key content information sent down, the user terminal device records the reception time of the key content information, and calculates the key generation time according to the recorded network delay data within the previous preset time and the reception time;

[0085] The user terminal device calculates the timestamp corresponding to the key generation time and determines it as the key generation timestamp, determines the currently logged-in operating user information, and combines the key content information, the operating user information and the key generation timestamp to obtain combined verification information;

[0086] The user terminal device determines whether a Bluetooth link has been established between the user terminal device and the smart key, and if the Bluetooth link has been established, sends the combined verification information to the smart key.

[0087] In a possible embodiment, the verification information determination module is further used to:

[0088] The user terminal device calculates the average network delay within the pre-set time according to the network delay data, and obtains the key generation time by subtracting the average network delay from the receiving time.

[0089] In a possible embodiment, the authentication module 103 is specifically used to:

[0090] The cable duct smart lock pairs the public key information with the stored private key information, and compares the operating user information with the pre-stored staff information. If the public key information is successfully paired with the stored private key information and the pre-stored staff information is the same as the operating user information, it is determined that the key identity authentication is successful.

[0091] In a possible embodiment, the authentication module 103 is further used for:

[0092] The cable duct smart lock calculates the verification information acquisition timestamp corresponding to the acquisition time, calculates the difference between the verification information acquisition timestamp and the key generation timestamp, and performs effective time authentication based on the difference and the average network delay corresponding to the key generation timestamp.

[0093] In a possible embodiment, the authentication module 103 is further used for:

[0094] The cable duct smart lock compares the average network delay with the preset standard network delay, and when the average network delay is less than or equal to the preset standard network delay, compares the difference with the preset difference, and when the difference is less than or equal to the preset difference, determines that the effective time authentication is successful, otherwise, determines that the effective time authentication fails;

[0095] In the case where the average network delay is greater than the preset standard network delay, the difference between the average network delay and the preset standard network delay is determined as an adjustment value, and the preset difference is adjusted according to the adjustment value to obtain a comparison difference. In the case where the difference is less than or equal to the comparison difference, it is determined that the effective time authentication is successful; otherwise, it is determined that the effective time authentication has failed.

[0096] In a possible embodiment, a failed execution module is further included, which is specifically used to:

[0097] The cable smart lock increases the value of the number of authentication failures stored in the record by one, and when the number of authentication failures is greater than a preset number, a danger alarm is issued and the lock is frozen, and the number of authentication failures is adjusted to zero every preset period.

[0098] Figure 6 A schematic diagram of a structure of a smart lock device for preventing misoperation of a cable duct provided by an embodiment of the present invention, such as Figure 6 As shown, the device includes a processor 201, a memory 202, an input device 203 and an output device 204; the number of processors 201 in the device can be one or more. Figure 6 A processor 201 is taken as an example; the processor 201, memory 202, input device 203 and output device 204 in the device can be connected by a bus or other means. Figure 6 The example of connecting through a bus is taken. The memory 202, as a computer-readable storage medium, can be used to store software programs, computer executable programs and modules, such as program instructions or modules corresponding to a smart lock method for preventing misoperation of a cable duct in an embodiment of the present invention. The processor 201 executes various functional applications and data processing of the device by running the software programs, instructions and modules stored in the memory 202, that is, realizes the above-mentioned smart lock method for preventing misoperation of a cable duct. The input device 203 can be used to receive input digital or character information, and generate key signal input related to user settings and function control of the device. The output device 204 may include a display device such as a display screen.

[0099] An embodiment of the present invention further provides a storage medium containing computer executable instructions, wherein the computer executable instructions are used to execute a smart lock method for preventing misoperation of a cable duct when executed by a computer processor, the method comprising:

[0100] When the cable duct smart lock detects that the smart key is in an inserted state, the combined verification information stored in the smart key is obtained, and the combined verification information includes key content information, operation user information, and key generation timestamp;

[0101] When the cable duct smart lock obtains the combination verification information stored in the smart key, it records the acquisition time of the combination verification information, performs key identity authentication based on the key content information and the operating user information, and performs effective time authentication based on the key generation timestamp and the acquisition time;

[0102] When both the key identity authentication and the validity time authentication are passed, the cable duct smart lock is opened.

[0103] It is worth noting that in the embodiment of the above-mentioned intelligent lock method system for preventing misoperation of a cable duct, the various units and modules included are only divided according to functional logic, but are not limited to the above-mentioned division, as long as the corresponding functions can be achieved; in addition, the specific names of the functional units are only for the convenience of distinguishing each other, and are not used to limit the protection scope of the embodiments of the present invention.

[0104] Note that the above are only preferred embodiments of the present invention and the technical principles used. Those skilled in the art will understand that the embodiments of the present invention are not limited to the specific embodiments described herein, and that various obvious changes, readjustments and substitutions can be made by those skilled in the art without departing from the protection scope of the embodiments of the present invention. Therefore, although the embodiments of the present invention are described in more detail through the above embodiments, the embodiments of the present invention are not limited to the above embodiments, and may include more other equivalent embodiments without departing from the concept of the embodiments of the present invention, and the scope of the embodiments of the present invention is determined by the scope of the appended claims.

Claims

1. A smart locking method for preventing misoperation of a cable duct, characterized in that: include: When the cable duct smart lock detects that the smart key is in an inserted state, the combined verification information stored in the smart key is obtained, and the combined verification information includes key content information, operation user information, and key generation timestamp; When the cable duct smart lock obtains the combination verification information stored in the smart key, it records the acquisition time of the combination verification information, performs key identity authentication based on the key content information and the operating user information, and performs effective time authentication based on the key generation timestamp and the acquisition time; When both the key identity authentication and the validity time authentication are passed, the cable duct smart lock is opened.

2. The intelligent locking method for preventing misoperation of a cable duct according to claim 1, characterized in that: Before acquiring the combined verification information stored in the smart key, the method further includes: When receiving the key content information sent down, the user terminal device records the reception time of the key content information, and calculates the key generation time according to the recorded network delay data within the previous preset time and the reception time; The user terminal device calculates the timestamp corresponding to the key generation time and determines it as the key generation timestamp, determines the currently logged-in operating user information, and combines the key content information, the operating user information and the key generation timestamp to obtain combined verification information; The user terminal device determines whether a Bluetooth link has been established between the user terminal device and the smart key, and if the Bluetooth link has been established, sends the combined verification information to the smart key.

3. The intelligent locking method for preventing misoperation of a cable duct according to claim 2, characterized in that: The calculating the key generation time according to the recorded network delay data within a preset time and the receiving time includes: The user terminal device calculates the average network delay within the pre-set time according to the network delay data, and obtains the key generation time by subtracting the average network delay from the receiving time.

4. The intelligent locking method for preventing misoperation of a cable duct according to any one of claims 1 to 3, characterized in that: The key content information includes public key information, and the key identity authentication based on the key content information and the operating user information includes: The cable duct smart lock pairs the public key information with the stored private key information, and compares the operating user information with the pre-stored staff information. If the public key information is successfully paired with the stored private key information and the pre-stored staff information is the same as the operating user information, it is determined that the key identity authentication is successful.

5. The intelligent locking method for preventing misoperation of a cable conduit according to any one of claims 1 to 3, characterized in that: The performing effective time authentication based on the key generation timestamp and the acquisition time includes: The cable duct smart lock calculates the verification information acquisition timestamp corresponding to the acquisition time, calculates the difference between the verification information acquisition timestamp and the key generation timestamp, and performs effective time authentication based on the difference and the average network delay corresponding to the key generation timestamp.

6. The intelligent locking method for preventing misoperation of a cable conduit according to claim 5, characterized in that: The performing effective time authentication according to the difference and the average network delay corresponding to the key generation timestamp includes: The cable duct smart lock compares the average network delay with the preset standard network delay, and when the average network delay is less than or equal to the preset standard network delay, compares the difference with the preset difference, and when the difference is less than or equal to the preset difference, determines that the effective time authentication is successful, otherwise, determines that the effective time authentication fails; In the case where the average network delay is greater than the preset standard network delay, the difference between the average network delay and the preset standard network delay is determined as an adjustment value, and the preset difference is adjusted according to the adjustment value to obtain a comparison difference. In the case where the difference is less than or equal to the comparison difference, it is determined that the effective time authentication is successful; otherwise, it is determined that the effective time authentication has failed.

7. The intelligent locking method for preventing misoperation of a cable conduit according to any one of claims 1 to 3, characterized in that: In case the key identity authentication and / or the validity period authentication fails, the method further includes: The cable smart lock increases the value of the number of authentication failures stored in the record by one, and when the number of authentication failures is greater than a preset number, a danger alarm is issued and the lock is frozen, and the number of authentication failures is adjusted to zero every preset period.

8. A smart lock system for preventing misoperation of a cable duct, characterized in that: include: An acquisition module is used for the cable duct smart lock to acquire the combined verification information stored in the smart key when the smart key is detected to be in an inserted state, wherein the combined verification information includes key content information, operation user information and key generation timestamp; A recording module, used for the cable duct smart lock to record the acquisition time of the combination verification information when the combination verification information stored in the smart key is acquired; An authentication module, used to perform key identity authentication based on the key content information and the operating user information, and to perform effective time authentication based on the key generation timestamp and the acquisition time; An opening module is used to open the cable duct smart lock when both the key identity authentication and the validity time authentication are passed.

9. A smart lock device for preventing misoperation of a cable duct, the device comprising: one or more processors; A storage device for storing one or more programs, when the one or more programs are executed by the one or more processors, the one or more processors implement the intelligent lock method for preventing misoperation of the cable duct as described in any one of claims 1-7.

10. A storage medium storing computer executable instructions, wherein the computer executable instructions are used to execute the intelligent lock method for preventing misoperation of a cable duct according to any one of claims 1 to 7 when executed by a computer processor.

Citation Information

Patent Citations

  • Delay compensation method for network control system

    CN102064931A

  • Method and system for realizing self-compensation 1588 link asynchronous time delay

    CN102932905A

  • Input line time-delay compensation apparatus and method of time synchronization equipment

    CN104980244A

  • Temporary password offline verification method and system of intelligent lock and intelligent lock

    CN113593095A

  • A lock system

    EP0122244A2