A cable conduit anti-misoperation intelligent lock system and method

CN119445703BActive Publication Date: 2026-10-30GUANGZHOU PANYU CABLE WORKS
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202411457745.0
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-10-18
Publication Date
2026-10-30
Estimated Expiration
2044-10-18

AI Technical Summary

Technical Problem

[0004]本发明实施例提供了一种电缆管道防误操作的智能锁系统及方法,解决了现有电缆管道智能锁开启技术中开启电缆管道智能锁时存在重放攻击的风险,导致电缆管道智能锁随意开启,造成重大损失的问题,能够通过将时间戳与密钥组合的方式,同步完成身份验证以及有效时间验证,避免通过重放攻击方式不安全的开启电缆管道智能锁的情况出现

Benefits of technology

[0033]第四方面,本发明实施例还提供了一种存储计算机可执行指令的存储介质,所述计算机可执行指令在由计算机处理器执行时用于执行本发明实施例所述的一种电缆管道防误操作的智能锁方法。

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119445703B_ABST
    Figure CN119445703B_ABST
Patent Text Reader

Abstract

The embodiment of the application discloses a cable pipeline anti-misoperation intelligent lock system and method, the method comprises the following steps: the cable pipeline intelligent lock acquires the combination verification information stored in the intelligent key when detecting that the intelligent key is in the inserted state, the combination verification information comprises key content information, operation user information and key generation timestamp; the cable pipeline intelligent lock records the acquisition time of the combination verification information when acquiring the combination verification information stored in the intelligent key, performs key identity authentication based on the key content information and the operation user information, and performs valid time authentication based on the key generation timestamp and the acquisition time; when the key identity authentication and the valid time authentication are both passed, the cable pipeline intelligent lock is opened. The scheme can synchronously complete identity authentication and valid time authentication through the combination of the timestamp and the key, and avoid the unsafe opening of the cable pipeline intelligent lock through the replay attack mode.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of smart lock opening technology for cable ducts, and in particular to a smart lock system and method for preventing misoperation of cable ducts. Background Technology

[0002] Cable duct sealing is crucial for preventing sewage and rainwater from flowing into the pipes and for avoiding the dangerous operation of cables that have been submerged in water for extended periods. Traditional cable duct sealing methods have several problems; for example, the material may crack due to thermal expansion and contraction, thus compromising the waterproofing effect. To address these issues, new cable duct sealing sleeves have been developed. However, because these sleeves can be easily removed during construction, installers can disregard the plan and implement installations according to their own convenience, leading to increased construction costs and difficulties in later maintenance. By adopting a highly secure and intelligent passive electronic locking system, these problems can be effectively solved, improving the safety and management efficiency of cable ducts.

[0003] In related cable duct smart lock opening technologies, when using a smart key to open the smart lock, the opening of the cable duct smart lock is usually performed after successful security verification. The verification process requires a corresponding key. This method of opening cable duct smart locks is susceptible to replay attacks, which can lead to the arbitrary opening of cable duct smart locks and cause significant losses. Summary of the Invention

[0004] This invention provides a smart lock system and method for preventing misoperation of cable ducts. It solves the problem that existing smart lock opening technologies for cable ducts are susceptible to replay attacks, which can lead to arbitrary opening of the smart lock and cause significant losses. By combining timestamps and keys, the invention can simultaneously complete identity verification and valid time verification, thus preventing the insecure opening of the smart lock for cable ducts through replay attacks.

[0005] In a first aspect, embodiments of the present invention provide a smart lock method for preventing misoperation of cable ducts, comprising:

[0006] When the smart lock for cable ducts detects that the smart key is inserted, it acquires the combined verification information stored in the smart key. The combined verification information includes key content information, user information, and key generation timestamp.

[0007] When the smart lock for the cable duct obtains the combined verification information stored in the smart key, it records the acquisition time of the combined verification information, performs key identity authentication based on the key content information and the operation user information, and performs valid time authentication based on the key generation timestamp and the acquisition time.

[0008] The cable duct smart lock will be opened if both the key authentication and the validity period authentication are successful.

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

[0010] When the user terminal device receives the key content information, it records the reception time of the key content information and calculates the key generation time based on the network latency data within the recorded preset time and the reception time.

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

[0012] The user terminal device determines whether it has established a Bluetooth connection with the smart key. If a Bluetooth connection has been established, it sends the combined verification information to the smart key.

[0013] Optionally, calculating the key generation time based on the network latency data recorded within a preset time period and the reception time includes:

[0014] The user terminal device calculates the average network latency within the preset time period based on the network latency data, and subtracts the average network latency from the reception time to obtain the key generation time.

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

[0016] The smart lock for cable ducts pairs the public key information with the stored private key information and compares the user information with the pre-stored staff information. If the public key information and the stored private key information are successfully paired and there is a case where the pre-stored staff information is the same as the user information, the key authentication is confirmed to be successful.

[0017] Optionally, the step of performing valid time authentication based on the key-generated timestamp and the acquisition time includes:

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

[0019] Optionally, the step of performing effective time authentication based on the difference and the average network latency corresponding to the key generation timestamp includes:

[0020] The smart lock for the cable duct compares the average network delay with a preset standard network delay. If the average network delay is less than or equal to the preset standard network delay, it compares the difference with a preset difference. If the difference is less than or equal to the preset difference, it determines that the valid time authentication is successful; otherwise, it determines that the valid time authentication fails.

[0021] If the average network latency is greater than the preset standard network latency, the difference between the average network latency and the preset standard network latency is determined as an adjustment value. The preset difference is adjusted according to the adjustment value to obtain a comparison difference. If the difference is less than or equal to the comparison difference, the valid time authentication is determined to be successful; otherwise, the valid time authentication is determined to be unsuccessful.

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

[0023] The smart cable lock increments the number of authentication failures stored in the database by one. If the number of authentication failures exceeds a preset number, a danger alarm is triggered and the system is frozen. The number of authentication failures is adjusted to zero every preset period.

[0024] Secondly, embodiments of the present invention also provide an intelligent lock system for preventing misoperation of cable ducts, comprising:

[0025] The acquisition module is used to acquire the combined verification information stored in the smart key when the smart lock of the cable duct detects that the smart key is inserted. The combined verification information includes key content information, operation user information and key generation timestamp.

[0026] The recording module is used to record the acquisition time of the combined verification information when the smart lock of the cable duct acquires the combined verification information stored in the smart key;

[0027] The authentication module is used to perform key identity authentication based on the key content information and the operation user information, and to perform valid time authentication based on the key generation timestamp and the acquisition time.

[0028] The unlocking module is used to unlock the cable duct smart lock when both the key authentication and the validity period authentication are successful.

[0029] Thirdly, embodiments of the present invention also provide a smart lock device for preventing misoperation of cable ducts, the device comprising:

[0030] One or more processors;

[0031] 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 the smart lock method for preventing misoperation of cable ducts as described in the embodiments of the present invention.

[0033] Fourthly, embodiments of the present invention also provide a storage medium for storing computer-executable instructions, which, when executed by a computer processor, are used to execute the smart lock method for preventing misoperation of cable ducts as described in the embodiments of the present invention.

[0034] In this embodiment of the invention, when the smart lock detects that the smart key is inserted, it acquires the combined verification information stored in the smart key. This combined verification information includes key content information, user information, and a key generation timestamp. Upon acquiring this combined verification information, the smart lock records the acquisition time. It performs key authentication based on the key content information and user information, and performs validity time authentication based on the key generation timestamp and acquisition time. If both key authentication and validity time authentication pass, the smart lock is opened. This solution, by combining timestamps and keys, simultaneously completes identity verification and validity time verification, solving the problem of replay attacks in existing smart lock opening technologies that could lead to arbitrary opening and significant losses. It avoids the possibility of insecurely opening smart locks via replay attacks. Attached Figure Description

[0035] Figure 1 A flowchart illustrating a smart lock method for preventing misoperation of cable ducts provided in an embodiment of the present invention;

[0036] Figure 2 A flowchart of another smart lock method for preventing misoperation of cable ducts provided in an embodiment of the present invention;

[0037] Figure 3 A flowchart of another smart lock method for preventing misoperation of cable ducts provided in an embodiment of the present invention;

[0038] Figure 4 A flowchart of another smart lock method for preventing misoperation of cable ducts provided in an embodiment of the present invention;

[0039] Figure 5 A modular structure block diagram of an intelligent lock system for preventing misoperation of cable ducts provided in an embodiment of the present invention;

[0040] Figure 6 This is a structural schematic diagram of an intelligent lock device for preventing misoperation of cable ducts, provided as an embodiment of the present invention. Detailed Implementation

[0041] The embodiments of the present invention will be further described in detail below with reference to the accompanying drawings and examples. It should be understood that the specific embodiments described herein are merely illustrative of the present invention and not intended to limit the scope of the invention. Furthermore, it should be noted that, for ease of description, the accompanying drawings show only the parts relevant to the embodiments of the present invention, and not all structures.

[0042] The terms "first," "second," etc., used in the specification and claims of this application are used to distinguish similar objects and not to describe a specific order or sequence. It should be understood that such use of data can be interchanged where appropriate so that embodiments of this application can be implemented in orders other than those illustrated or described herein, and the objects distinguished by "first," "second," etc., are generally of the same class and the number of objects is not limited; for example, a first object can be one or more. Furthermore, in the specification and claims, "and or or" indicates at least one of the connected objects, and the character "or" generally indicates that the preceding and following related objects have an "or" relationship.

[0043] This application provides a smart lock method for preventing misoperation of cable ducts, which can be applied to scenarios where arbitrary operation of cable ducts is to be prevented. In this smart lock method for preventing misoperation of cable ducts, the executing entity for each step can be a computer device. This computer device refers to any electronic device with data computing, processing, and storage capabilities, such as mobile phones, PCs (Personal Computers), tablet computers, and other terminal devices, or it can be a server or other devices. This application does not limit the specific device to this type.

[0044] Figure 1 A flowchart of a smart lock method for preventing misoperation of cable ducts provided in an embodiment of the present invention is shown below. Figure 1 As shown, it specifically includes:

[0045] Step S101: When the smart lock detects that the smart key is inserted, it acquires the combined verification information stored in the smart key. The combined verification information includes key content information, user information, and key generation timestamp.

[0046] The cable duct smart lock is a passive electronic rotary lock that combines smart technology and lock principles. Specifically designed for the safety management of cable ducts, it prevents unauthorized disassembly of cable ducts, avoids improper installation and removal of new cables by construction workers, and prevents unauthorized occupation of cable ducts, thus improving security and management efficiency. The smart key is a convenient unlocking tool designed for the cable duct smart lock. It uses Bluetooth technology for wireless communication with the lock body, and through internal circuitry and authentication modules, ensures that only a valid key can open the lock. This smart key can open the corresponding cable duct smart lock and also provides power and data transmission. It can communicate with remote cable lock opening software to enable remote authorization and data upload. The combined verification information represents the data required to open the cable smart lock. The key content information can be a specific code or password used to control the opening of the cable duct smart lock. The user information can be the information of the user currently attempting to open the cable smart lock. The key generation timestamp can be the numerical value corresponding to the time the key was generated. An exemplary example could be that the smart lock A of the cable duct detects that the smart key is inserted and obtains the key content information stored in the inserted smart key as FVATY081, the user name in the operation user information as Zhang San, the employee number as 133907, and the key generation timestamp as 1699804800.

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

[0048] The acquisition time represents the time when the cable smart lock acquires the smart key. Key authentication can confirm the identity of the smart key. Validity time authentication can confirm the validity period of the key content information. In one embodiment, when the cable 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 based on the user information, and if associated private key information exists, pairs the public key information in the key content information with the private key information. If the pairing is successful, the key authentication is confirmed to be successful. The timestamp of the verification information acquisition corresponding to the acquisition time of the combined verification information is calculated, and validity time authentication is performed based on the key generation timestamp and the verification information acquisition timestamp. Optionally, the key content information includes public key information. One key authentication method is that the cable smart lock pairs the public key information with the stored private key information and compares the user information with pre-stored staff information. If the public key information and the stored private key information are successfully paired and there is a pre-stored staff information that matches the user information, the key authentication is confirmed to be successful. By pairing public and private keys and comparing the information of the smart lock operator in the cable duct, the accuracy and security of identity authentication can be improved. Optionally, one valid time authentication method involves the smart lock calculating the timestamp of the verification information acquisition time corresponding to the acquisition time of the combined verification information, calculating the difference between the verification information acquisition timestamp and the key generation timestamp, and performing valid time authentication based on the difference and the average network latency corresponding to the key generation timestamp. Verifying the validity period from the key generation time to the smart lock's key acquisition time through network latency improves the accuracy of valid time authentication, thereby enhancing the security of the smart lock.

[0049] Step S103: If both the key authentication and the validity period authentication are successful, the cable duct smart lock is opened.

[0050] In this system, after key authentication and validity period authentication, the results are checked. If both key authentication and validity period authentication pass, the cable duct smart lock automatically opens. Optionally, if key authentication and / or validity period authentication fail, the cable duct smart lock increments the stored number of failed authentication attempts by one. If the number of failed authentication attempts exceeds a preset number, a danger alarm is triggered and the lock is frozen. The number of failed authentication attempts is adjusted to zero every preset period. The number of failed authentication attempts represents the cumulative number of times key authentication and / or validity period authentication have failed. For example, if the cable duct smart lock stores two failed authentication attempts (preset to two), and both key authentication and validity period authentication fail, the number of failed authentication attempts is incremented to three. If the updated number of failed authentication attempts exceeds the preset number, the cable duct smart lock triggers a danger alarm and freezes, awaiting inspection by relevant personnel. In another embodiment, if key authentication and / or validity period authentication fail, the cable duct smart lock prohibits further opening within a preset waiting time.

[0051] As described above, when the smart lock detects that the smart key is inserted, it acquires the combined verification information stored in the smart key. This combined verification information includes key content information, user information, and a key generation timestamp. Upon acquiring this information, the smart lock records the acquisition time. It then performs key authentication based on the key content information and user information, and validity time authentication based on the key generation timestamp and acquisition time. If both key authentication and validity time authentication pass, the smart lock opens. This solution, by combining timestamps and keys, simultaneously completes identity verification and validity time verification, thus addressing the risk of replay attacks in existing smart lock opening technologies. This risk allows for unauthorized opening of smart locks, potentially causing significant losses. The solution prevents insecure opening of smart locks via replay attacks.

[0052] Figure 2 The flowchart illustrates another method for preventing misoperation of cable ducts using a smart lock, as provided in this embodiment of the invention. It also outlines an optional method for generating combined verification information, such as... Figure 2 As shown, it specifically includes:

[0053] Step S201: When the user terminal device receives the key content information, it records the reception time of the key content information and calculates the key generation time based on the network latency data within the previous preset time and the reception time.

[0054] The user terminal device can be a device that logs into the remote unlocking software for cable duct smart locks and opens the cable duct smart locks. The reception time represents the time when the user terminal device receives the key content information. The network latency data can be the network latency values ​​of the user terminal device at various points within a preset time period; the network latency values ​​can be the length of time elapsed from the key content information being sent to the user terminal device's reception. The key generation time represents the time when the key is generated. When the user terminal device receives the sent key content information, it automatically records the reception time of the key content information, and the user terminal device automatically detects and records its own network latency. The user terminal device calculates the key generation time based on the recorded network latency data within the preset time period and the reception time of the key content information. Optionally, one method for calculating the key generation time is that the user terminal device calculates the average network latency within the preset time period based on the network latency data, and subtracts this average network latency from the reception time of the key content information to obtain the key generation time. One exemplary example is that, with a preset time of 30 seconds, the user terminal device receives the key content information at 8:10:30 AM on September 1, 2024. The network latency data for the user terminal device in the preceding 30 seconds are 5 seconds, 4 seconds, 5 seconds, 6 seconds, and 5 seconds. The calculated average network latency over 30 seconds is 5 seconds, therefore the key generation time is 8:10:25 AM on September 1, 2024. In another embodiment, the key generation time is obtained by inputting the network latency data and the reception time of the key content information into a trained key generation time evaluation model.

[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 user information, and combines the key content information, the user information, and the key generation timestamp to obtain combined verification information.

[0056] In this process, after calculating the key generation time, the user-end device calculates and determines the timestamp corresponding to the key generation time as the key generation timestamp. It then determines the user information for the current remote smart lock unlocking software login operation. The key content information, user information, and key generation timestamp are combined to obtain the combined verification information. For example, if the user-end device receives key content information as FWKL234, and the determined key generation time is 8:10:25 AM on September 1, 2024, substituting the key generation time into the timestamp calculation formula yields the key generation timestamp 1696148225. If the current user information for the remote smart lock unlocking software login operation is Zhang San 133456, then FWKL234, Zhang San 133456, and 1696148225 are combined to form the combined verification information.

[0057] Step S203: The user terminal device determines whether it has established a Bluetooth connection with the smart key. If a Bluetooth connection has been established, the combined verification information is sent to the smart key.

[0058] After the user terminal device completes the combination of verification information, it automatically checks whether it has established a Bluetooth connection with the smart key. If it confirms that a Bluetooth connection has been established, it sends the confirmed combination of verification information to the smart key. Optionally, if the user terminal device detects that it has not established a Bluetooth connection with the smart key, it checks whether its Bluetooth is turned on. If Bluetooth is not turned on, it turns on Bluetooth to establish a Bluetooth connection with the smart key.

[0059] Step S204: When the smart lock detects that the smart key is inserted, it acquires the combined verification information stored in the smart key. The combined verification information includes key content information, user information, and key generation timestamp.

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

[0061] Step S206: If both the key authentication and the validity period authentication are successful, the smart lock for the cable duct will be opened.

[0062] As described above, when the user terminal device receives the key content information, it records the reception time of the key content information. Based on the network latency data within the recorded preset time and the reception time, it calculates 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. It then determines the currently logged-in user information and combines the key content information, user information, and key generation timestamp to obtain combined verification information. The user terminal device determines whether it has established a Bluetooth connection with the smart key. If a Bluetooth connection has been established, it sends the combined verification information to the smart key. This solution enables remote authorization operations and flexible permission management through the transmission of verification information between the user terminal device and the smart key, allowing authorization to be completed without physical contact.

[0063] Figure 3 The flowchart illustrates another smart lock method for preventing misoperation of cable ducts provided in this embodiment of the invention, which gives a specific method for optional key authentication, such as... Figure 3 As shown, it specifically includes:

[0064] Step S301: When the smart lock detects that the smart key is inserted, it acquires the combined verification information stored in the smart key. The combined verification information includes key content information, user information, and key generation timestamp.

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

[0066] Step S303: The smart lock for cable ducts pairs the public key information with the stored private key information and compares the operation user information with the pre-stored staff information. If the public key information and the stored private key information are successfully paired and there is a case where the pre-stored staff information is the same as the operation user information, the key authentication is confirmed to be successful.

[0067] The key content information includes public key information. The public and private key information can be a key pair obtained through 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 information about staff who can open the cable duct smart lock. One key authentication method is as follows: the cable duct smart lock pairs the public key information with the stored private key information and compares the user information with the pre-stored staff information. If the public key information and the stored private key information match successfully, and there is a match between the pre-stored staff information and the user information, then the key authentication is successful. One exemplary example is that the smart lock for cable ducts pairs the public key information with the stored private key information, displays a successful pairing, and shows that the user name in the user information is Zhang San and the employee number is 133456, the user name in pre-stored employee information 1 is Li Si and the employee number is 188902, and the user name in pre-stored employee information 2 is Zhang San and the employee number is 133456. The user information and pre-stored employee information 2 are successfully compared, meaning the public key information and the stored private key information are successfully paired, and there is a matching pre-stored employee information and user information, thus the key authentication is successful. In another embodiment, the smart lock for cable ducts generates key content information to be compared using the same encryption algorithm and data as the key content information. If the key content information and the key content information to be compared are the same, and there is a matching pre-stored employee information and user information, then the key authentication is successful.

[0068] Step S304: Based on the key generation timestamp and the acquisition time, perform valid time authentication. If both the key identity authentication and the valid time authentication are successful, the cable duct smart lock is opened.

[0069] As described above, the smart lock for cable ducts pairs the public key information with the stored private key information and compares the user information with the pre-stored staff information. If the public key information and the stored private key information match, and there is a match between the pre-stored staff information and the user information, then the key authentication is successful. This solution improves the accuracy and security of authentication by pairing public and private keys and comparing the information of the smart lock operator.

[0070] Figure 4 A flowchart of another smart lock method for preventing misoperation of cable ducts provided by an embodiment of the present invention is shown, which illustrates a specific method for optional valid time authentication, such as... Figure 4 As shown, it specifically includes:

[0071] Step S401: When the smart lock detects that the smart key is inserted, it acquires the combined verification information stored in the smart key. The combined verification information includes key content information, user information, and key generation timestamp.

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

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

[0074] The verification information acquisition timestamp is used to characterize the time when the cable duct smart lock acquires the combined verification information. Optionally, one valid time authentication method is as follows: The cable duct smart lock compares the average network latency with a preset standard network latency. If the average network latency is less than or equal to the preset standard network latency, it compares the difference between the verification information acquisition timestamp and the key generation timestamp with a preset difference. If the difference is less than or equal to the preset difference, the valid time authentication is determined to be successful; otherwise, the valid time authentication is determined to be unsuccessful. If the average network latency is greater than the preset standard network latency, the difference between the average network latency and the preset standard network latency is determined as an adjustment value. The preset difference is adjusted according to the adjustment value to obtain a comparison difference. If the difference between the verification information acquisition timestamp and the key generation timestamp is less than or equal to the comparison difference, the valid time authentication is determined to be successful; otherwise, the valid time authentication is determined to be unsuccessful. One exemplary example could 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 latency is 5 seconds, the average network latency is 8 seconds, the average network latency is greater than the preset standard network latency, and the difference between the average network latency and the preset standard network latency, i.e., the adjustment value, is 3 seconds. Adding the preset difference and the adjustment value yields a comparison difference of 33 seconds. Since the difference between the verification information acquisition timestamp and the key generation timestamp is less than the comparison difference, the valid 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, as well as the average network latency, into a trained valid time authentication model to obtain the valid time authentication result.

[0075] Step S404: If both the key authentication and the validity period authentication are successful, the smart lock for the cable duct will be opened.

[0076] As described above, the smart lock for cable ducts calculates the timestamp of the verification information acquisition time 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 latency corresponding to the key generation timestamp. This scheme verifies the validity period from the key generation time to the smart lock's key acquisition time by using network latency, which can improve the accuracy of key validity time authentication and thus enhance the security of the smart lock.

[0077] Figure 5 This is a block diagram of a module structure for an intelligent lock system for preventing misoperation of cable ducts, provided in an embodiment of the present invention. This system is used to execute the intelligent lock method for preventing misoperation of cable ducts provided in the above embodiment, and has corresponding functional modules and beneficial effects for executing the method. For example... Figure 5 As shown, the system specifically includes:

[0078] The acquisition module 101 is used to acquire the combined verification information stored in the smart key when the smart lock of the cable duct detects that the smart key is inserted. The combined verification information includes key content information, operation user information and key generation timestamp.

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

[0080] The authentication module 103 is used to perform key identity authentication based on the key content information and the operation user information, and to perform valid 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 successful.

[0082] As described in the above scheme, when the smart lock detects that the smart key is inserted, it obtains the combined verification information stored in the smart key. This combined verification information includes key content information, user information, and a key generation timestamp. Upon obtaining this information, the smart lock records the acquisition time. It then performs key authentication based on the key content information and user information, and validity time authentication based on the key generation timestamp and acquisition time. If both key authentication and validity time authentication pass, the smart lock opens. This scheme, by combining timestamps and keys, simultaneously completes identity verification and validity time verification, thus solving the risk of replay attacks in existing smart lock opening technologies. This risk allows for unauthorized opening of smart locks and can lead to significant losses. The scheme avoids the possibility of insecurely opening smart locks through replay attacks.

[0083] In one possible embodiment, a verification information determination module is further included, specifically for:

[0084] When the user terminal device receives the key content information, it records the reception time of the key content information and calculates the key generation time based on the network latency data within the recorded preset time and the reception time.

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

[0086] The user terminal device determines whether it has established a Bluetooth connection with the smart key. If a Bluetooth connection has been established, it sends the combined verification information to the smart key.

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

[0088] The user terminal device calculates the average network latency within the preset time period based on the network latency data, and subtracts the average network latency from the reception time to obtain the key generation time.

[0089] In one possible embodiment, the authentication module 103 is specifically used for:

[0090] The smart lock for cable ducts pairs the public key information with the stored private key information and compares the user information with the pre-stored staff information. If the public key information and the stored private key information are successfully paired and there is a case where the pre-stored staff information is the same as the user information, the key authentication is confirmed to be successful.

[0091] In one possible embodiment, the authentication module 103 is further configured to:

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

[0093] In one possible embodiment, the authentication module 103 is further configured to:

[0094] The smart lock for the cable duct compares the average network delay with a preset standard network delay. If the average network delay is less than or equal to the preset standard network delay, it compares the difference with a preset difference. If the difference is less than or equal to the preset difference, it determines that the valid time authentication is successful; otherwise, it determines that the valid time authentication fails.

[0095] If the average network latency is greater than the preset standard network latency, the difference between the average network latency and the preset standard network latency is determined as an adjustment value. The preset difference is adjusted according to the adjustment value to obtain a comparison difference. If the difference is less than or equal to the comparison difference, the valid time authentication is determined to be successful; otherwise, the valid time authentication is determined to be unsuccessful.

[0096] In one possible embodiment, it also includes a non-execution module, specifically used for:

[0097] The smart cable lock increments the number of authentication failures stored in the database by one. If the number of authentication failures exceeds a preset number, a danger alarm is triggered and the system is frozen. The number of authentication failures is adjusted to zero every preset period.

[0098] Figure 6 This is a structural schematic diagram of a smart lock device for preventing misoperation of cable ducts provided in an embodiment of the present invention, as shown below. 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 Taking a processor 201 as an example; the processor 201, memory 202, input device 203, and output device 204 in the device can be connected via a bus or other means. Figure 6 Taking a bus connection as an example, the memory 202, as a computer-readable storage medium, can be used to store software programs, computer-executable programs, and modules, such as the program instructions or modules corresponding to the smart lock method for preventing misoperation of cable ducts in this embodiment of the 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, thereby realizing the aforementioned smart lock method for preventing misoperation of cable ducts. The input device 203 can be used to receive input digital or character information and generate key signal inputs related to user settings and function control of the device. The output device 204 may include display devices such as a display screen.

[0099] This invention also provides a storage medium containing computer-executable instructions, which, when executed by a computer processor, are used to perform a smart lock method for preventing misoperation of cable ducts. The method includes:

[0100] When the smart lock for cable ducts detects that the smart key is inserted, it acquires the combined verification information stored in the smart key. The combined verification information includes key content information, user information, and key generation timestamp.

[0101] When the smart lock for the cable duct obtains the combined verification information stored in the smart key, it records the acquisition time of the combined verification information, performs key identity authentication based on the key content information and the operation user information, and performs valid time authentication based on the key generation timestamp and the acquisition time.

[0102] The cable duct smart lock will be opened if both the key authentication and the validity period authentication are successful.

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

[0104] Note that the above are merely preferred embodiments and the technical principles applied in this invention. Those skilled in the art will understand that the embodiments of this invention are not limited to the specific embodiments described herein, and various obvious changes, readjustments, and substitutions can be made without departing from the protection scope of this invention. Therefore, although the embodiments of this invention have been described in detail above, the embodiments of this invention are not limited to the above embodiments. More other equivalent embodiments may be included without departing from the concept of the embodiments of this invention, and the scope of the embodiments of this invention is determined by the scope of the appended claims.

Claims

1. A smart lock method for preventing misoperation of cable ducts, characterized in that, include: When the user terminal device receives the key content information, it records the reception time of the key content information, calculates the average network latency within the previous preset time based on the network latency data recorded within the previous preset time, and subtracts the average network latency from the reception time to obtain the key generation time. The user terminal device calculates and determines the timestamp corresponding to the key generation time as the key generation timestamp, determines the currently logged-in operation user information, and combines the key content information, the operation user information and the key generation timestamp to obtain combined verification information. The key content information includes public key information. The user terminal device determines whether it has established a Bluetooth connection with the smart key. If a Bluetooth connection has been established, it sends the combined verification information to the smart key. When the smart lock for cable ducts detects that the smart key is inserted, it acquires the combined verification information stored in the smart key. The combined verification information includes key content information, user information, and key generation timestamp. When the cable duct smart lock obtains the combined verification information stored in the smart key, it records the acquisition time of the combined verification information and performs key identity authentication based on the key content information and the operation user information. This includes: the cable duct smart lock determines whether there is associated private key information based on the operation user information; if associated private key information exists, it pairs the public key information with the associated private key information and compares the operation user information with pre-stored staff information; if the public key information and the associated private key information are successfully paired and there is a case where the pre-stored staff information is the same as the operation user information, it determines that the key identity authentication is successful. Valid time authentication is performed based on the key generation timestamp and the acquisition time, including: 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, the cable duct smart lock compares the average network latency with a preset standard network latency, if the average network latency is less than or equal to the preset standard network latency, compares the difference with a preset difference, if the difference is less than or equal to the preset difference, the valid time authentication is determined to be successful; otherwise, the valid time authentication is determined to be unsuccessful. If the average network latency is greater than the preset standard network latency, the difference between the average network latency and the preset standard network latency is determined as an adjustment value. The preset difference is adjusted according to the adjustment value to obtain a comparison difference. If the difference is less than or equal to the comparison difference, the valid time authentication is determined to be successful; otherwise, the valid time authentication is determined to be unsuccessful. The cable duct smart lock will be opened if both the key authentication and the validity period authentication are successful.

2. The intelligent lock method for preventing misoperation of cable ducts according to claim 1, characterized in that, If the key authentication and / or the validity period authentication fails, the method further includes: The smart lock for the cable duct increments the number of authentication failures stored in the database by one. If the number of authentication failures exceeds a preset number, a danger alarm is triggered and the system is frozen. The number of authentication failures is adjusted to zero every preset period.

3. A smart lock system for preventing misoperation of cable ducts, characterized in that, include: The verification information determination module is used to record the reception time of the key content information when the user terminal device receives the key content information, calculate the average network latency within the previous preset time based on the network latency data recorded within the previous preset time, and subtract the average network latency from the reception time to obtain the key generation time. The user terminal device calculates and determines the timestamp corresponding to the key generation time as the key generation timestamp, determines the currently logged-in user information, and combines the key content information, the user information, and the key generation timestamp to obtain combined verification information. The key content information includes public key information. The user terminal device determines whether it has established a Bluetooth connection with the smart key. If a Bluetooth connection has been established, the combined verification information is sent to the smart key. The acquisition module is used to acquire the combined verification information stored in the smart key when the smart lock of the cable duct detects that the smart key is inserted. The combined verification information includes key content information, operation user information and key generation timestamp. The recording module is used to record the acquisition time of the combined verification information when the smart lock of the cable duct acquires the combined verification information stored in the smart key; The authentication module is used by the cable conduit smart lock to determine whether associated private key information exists based on the user information, and to perform key identity authentication based on the key content information and the user information. This includes: if associated private key information exists, pairing the public key information with the associated private key information, and comparing the user information with pre-stored staff information; if the public key information and the associated private key information are successfully paired and there is a pre-stored staff information matching the user information, determining that the key identity authentication is successful; and performing valid time authentication based on the key generation timestamp and the acquisition time, including: the cable conduit smart lock calculating the verification information acquisition timestamp corresponding to the acquisition time, and calculating the verification information acquisition timestamp. The cable duct smart lock takes the difference between the timestamp and the timestamp generated by the key, compares the average network delay with a preset standard network delay, and compares the difference with a preset difference if the average network delay is less than or equal to the preset standard network delay. If the difference is less than or equal to the preset difference, the valid time authentication is determined to be successful; otherwise, the valid time authentication is determined to be unsuccessful. If 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. If the difference is less than or equal to the comparison difference, the valid time authentication is determined to be successful; otherwise, the valid time authentication is determined to be unsuccessful. The unlocking module is used to unlock the cable duct smart lock when both the key authentication and the validity period authentication are successful.

4. A smart lock device for preventing misoperation of cable ducts, the device comprising: One or more processors; A storage device for storing one or more programs, which, when executed by one or more processors, cause the one or more processors to implement the smart lock method for preventing misoperation of cable ducts as described in any one of claims 1-2.

5. A storage medium storing computer-executable instructions, which, when executed by a computer processor, are used to perform the smart lock method for preventing misoperation of cable ducts as described in any one of claims 1-2.

Citation Information

Patent Citations

  • A lock system

    EP0122244A2

  • Time stamping method, time stamping apparatus and program

    US20210234626A1