A Smart Lock Opening and Closing System and Method for Cable Pipes Based on Access Information
By decrypting the access information in the smart key, the permissions and operation content of staff can be determined, and the opening and closing time of the smart lock for cable ducts can be reasonably controlled. This solves the problem of crude access management in the management of smart locks for cable ducts, and realizes orderly and safe cable laying.
Patent Information
- Application Number
- CN202411706442.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-11-26
- Publication Date
- 2025-10-28
- Estimated Expiration
- 2044-11-26
AI Technical Summary
The lack of reasonable access control methods in existing smart lock management for cable ducts leads to chaotic cable installation during cable laying and makes it impossible to effectively control the position and sequence of cables in cable wells.
By combining permission information and key information, the permission key information in the smart key is decrypted to obtain the staff member's employee number, permission level, and pipeline pre-operation content. Based on the permission level and operation content, the opening duration of the smart lock is determined, and reasonable opening and closing management is carried out when the opening time arrives.
It achieves access control and security for smart locks on cable ducts, reasonably controls their opening and closing, and ensures the orderly progress of cable laying.
Smart Images

Figure CN119810954B_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of smart lock management technology for cable ducts, and in particular to a smart lock opening and closing system and method for cable ducts based on access information. Background Technology
[0002] Because the sealing sleeves of cable ducts can be easily removed during construction, workers can proceed haphazardly without planning, making effective control impossible. This often leads to problems such as cables not being installed in the prescribed order, cables not being positioned correctly in each cable well, and cables being tangled and disorderly. To address these issues, smart cable duct locks have been developed. These locks combine digital encryption, wireless communication, and remote management technologies to ensure that only authorized personnel can access the cable ducts, effectively preventing unauthorized access and potential threats.
[0003] In relevant cable duct smart lock management solutions, when assigning personnel to open cable duct smart locks, most platforms will determine the personnel's permissions accordingly to ensure that only users with the corresponding permissions can unlock the lock. This method of permission management for opening cable duct smart locks is relatively crude and lacks a reasonable method for controlling the opening and closing of cable duct smart locks. Summary of the Invention
[0004] This invention provides a cable duct smart lock opening and closing system and method based on permission information, which solves the problems of relatively crude permission management for opening cable duct smart locks and the lack of reasonable methods for controlling the opening and closing of cable duct smart locks in existing cable duct smart lock management technologies. It can ensure the security of permission management by combining permission information and key information, and reasonably control the opening and closing of cable duct smart locks by combining permission information.
[0005] In a first aspect, embodiments of the present invention provide a method for opening and closing a smart lock for a cable duct based on access information, comprising:
[0006] When the smart key is detected to be inserted and the power is on, the system receives the permission key information sent by the smart key, and decrypts the permission key information according to the preset decryption rules to obtain decrypted data. The decrypted data includes the employee's ID number, permission level, and pipeline pre-operation content.
[0007] Obtain the stored permission ID information, perform matching processing based on the permission ID information and the employee ID, determine whether to open the lock based on the matching processing result, and if it is determined to open the lock, determine the smart lock opening duration based on the permission level and the pipeline pre-operation content, and then open the lock.
[0008] If the opening time reaches the smart lock's opening duration, determine the current location of the smart lock and perform a smart lock closing management operation based on the smart lock's location.
[0009] Optionally, the permission key information includes three different codes to be decrypted, and the step of decrypting the permission key information according to a preset decryption rule to obtain decrypted data includes:
[0010] The encoding formats of the three different codes to be decrypted in the permission key information are identified, and the classification of the codes to be decrypted is determined based on the identification results. The classification includes employee number classification, permission level classification, and operation content classification.
[0011] Based on the classification, the decryption content of the corresponding code to be decrypted is determined, and the decryption content of the three different codes to be decrypted is determined as the decryption data of the permission key information.
[0012] Optionally, determining the decryption content of the corresponding code to be decrypted based on the classification includes:
[0013] Based on the classification, determine the decryption part of the corresponding code to be decrypted, obtain the stored preset decryption lookup table associated with the classification, and query the preset decryption lookup table according to the code to be decrypted to obtain the corresponding partial code decryption content.
[0014] When there are multiple codes for the part to be decrypted, the decrypted content of each part to be decrypted is combined to obtain the decrypted content of the code to be decrypted.
[0015] Optionally, determining the smart lock opening duration based on the permission level and the pre-operation content of the pipeline includes:
[0016] The corresponding smart lock opening duration determination range is obtained by querying the preset smart lock opening duration determination range mapping table according to the permission level, and the smart lock opening duration is determined according to the pipeline pre-operation content and the smart lock opening duration determination range.
[0017] Optionally, determining the smart lock opening duration based on the pipeline pre-operation content and the smart lock opening duration determination range includes:
[0018] The complexity of the pre-operation content of the pipeline is detected, and the selected position of the time range of the smart lock opening time is determined according to the complexity of the operation. The value corresponding to the selected position of the time is determined as the smart lock opening time.
[0019] Optionally, the smart lock closing management operation based on the smart lock location includes:
[0020] When the smart lock is in the closed position, the open state is automatically closed;
[0021] When the smart lock is in a non-closed position, a closing prompt sound is emitted, and the open / closed status is monitored in real time. Based on the open / closed status and the current monitoring time, corresponding management operations are performed.
[0022] Optionally, the management operation based on the open / closed state and the current detection time includes:
[0023] If the detection time is within a preset time and the opening / closing state is closed, the closing prompt sound warning will be stopped.
[0024] If the detection time reaches the preset time and the opening / closing state is open, information on the violation of opening the smart lock is uploaded to the management device to prompt the management personnel to perform corresponding management operations.
[0025] Secondly, embodiments of the present invention also provide a smart lock opening and closing system for cable ducts based on access information, comprising:
[0026] The information receiving module is used to receive the authorization key information sent by the smart key when the smart key is detected to be inserted and the power is turned on;
[0027] The decryption module is used to decrypt the permission key information according to the preset decryption rules to obtain decrypted data, which includes the staff member's employee number, permission level, and pipeline pre-operation content.
[0028] The activation judgment module is used to obtain the stored permission employee number information, perform matching processing based on the permission employee number information and the employee number, and determine whether to enable it based on the matching processing result.
[0029] The management module is enabled to determine the smart lock opening duration based on the permission level and the pre-operation content of the pipeline when it is determined to open the lock, and then open the lock.
[0030] The shutdown management module is used to determine the current location of the smart lock when the opening time reaches the smart lock's opening duration, and to perform a smart lock shutdown management operation based on the smart lock's location.
[0031] Thirdly, embodiments of the present invention also provide a smart lock opening and closing device for cable ducts based on access information, the device comprising:
[0032] One or more processors;
[0033] Storage device for storing one or more programs.
[0034] When the one or more programs are executed by the one or more processors, the one or more processors implement the cable duct smart lock opening and closing method based on permission information as described in the embodiments of the present invention.
[0035] 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 cable duct smart lock opening and closing method based on permission information described in embodiments of the present invention.
[0036] In this embodiment of the invention, when a smart key is detected being inserted and power is on, the system receives the access key information sent by the smart key. The access key information is decrypted according to a preset decryption rule to obtain decrypted data, which includes the worker's ID, access level, and pre-operation content for the pipeline. The stored access ID information is retrieved, and a matching process is performed between the access ID information and the worker's ID. Based on the matching result, it is determined whether to open the lock. If opening is determined, the smart lock opening duration is determined based on the worker's access level and the pre-operation content for the pipeline, and the lock is opened. If the opening time reaches the smart lock opening duration, the current location of the smart lock is determined, and a smart lock closing management operation is performed based on the smart lock location. This solution solves the problem that existing cable pipeline smart lock management technologies have relatively crude access control for cable pipeline smart lock opening and lack a reasonable method for controlling the opening and closing of cable pipeline smart locks. It can ensure the security of access control by combining access information and key information, and reasonably control the opening and closing of cable pipeline smart locks based on the access information. Attached Figure Description
[0037] Figure 1 A flowchart of a method for opening and closing a smart lock for cable ducts based on access information, provided in an embodiment of the present invention;
[0038] Figure 2 A flowchart of another method for opening and closing a smart lock for cable ducts based on access information provided in an embodiment of the present invention;
[0039] Figure 3 A flowchart of another method for opening and closing a smart lock for cable ducts based on access information provided in an embodiment of the present invention;
[0040] Figure 4 A flowchart of another method for opening and closing a smart lock for cable ducts based on access information provided in an embodiment of the present invention;
[0041] Figure 5 A module structure block diagram of a smart lock opening and closing system for cable ducts based on access information provided in an embodiment of the present invention;
[0042] Figure 6This is a schematic diagram of a smart lock opening and closing device for cable ducts based on access information, provided as an embodiment of the present invention. Detailed Implementation
[0043] The following is a further detailed description of the embodiments of the present invention in conjunction with the accompanying drawings and examples. It should be understood that the specific embodiments described herein are merely illustrative of the embodiments of the present invention and are not intended to limit the embodiments of the present invention. It should also be noted that, for ease of description, the accompanying drawings only illustrate portions of the embodiments of the present invention, rather than all structures.
[0044] 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.
[0045] The cable duct smart lock opening and closing method based on permission information provided in this application embodiment can be applied to the opening and closing management scenario of cable duct smart locks. In the cable duct smart lock opening and closing method based on permission information provided in this application embodiment, 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 embodiment does not limit this.
[0046] Figure 1 A flowchart of a method for opening and closing a smart lock for cable ducts based on access information, provided in an embodiment of the present invention, is shown below. Figure 1 As shown, it specifically includes:
[0047] Step S101: When the smart key is detected to be inserted and the power is on, the permission key information sent by the smart key is received, and the permission key information is decrypted according to the preset decryption rules to obtain decrypted data. The decrypted data includes the employee ID, permission level and pipeline pre-operation content.
[0048] The smart key is a convenient unlocking tool designed for a passive electronic rotary lock. It powers the cable duct smart lock and transmits information. The access key information includes user access information. The preset decryption rule represents a pre-set method for decrypting the access key information. The employee ID is a unique number representing the employee's identity. The access level is the employee's permission level to operate the cable duct smart lock. The pre-operation content of the duct can be the operations the employee plans to perform on the cable duct corresponding to the smart lock. In one embodiment, after the smart key is inserted into the cable duct smart lock, it powers the lock and transmits the access key information. Upon detecting the insertion of the smart key and power on, the cable duct smart lock receives the access key information sent by the smart key, inputs it into a trained decryption model to obtain the corresponding decrypted data, which includes the employee ID, access level, and pre-operation content of the duct. Optionally, the access key information includes three different codes to be decrypted. One decryption method is to identify the encoding format of the three different codes in the access key information, determine the classification of the codes based on the identification results (including employee number classification, access level classification, and operation content classification), determine the decryption content of the corresponding codes based on the classification, and use the decryption content of the three different codes as the decrypted data of the access key information. By decrypting each code separately according to its different classification in the access key information, the confidentiality of the access information can be improved, thus ensuring the security of opening the smart lock on the cable duct.
[0049] Step S102: Obtain the stored permission ID information, perform matching processing based on the permission ID information and the employee ID, determine whether to open the lock based on the matching processing result, and if it is determined to open the lock, determine the smart lock opening duration based on the permission level and the pipeline pre-operation content, and then open the lock.
[0050] The employee ID information is used to identify the employee ID of the personnel authorized to open the smart lock on the cable duct. This employee ID information is used to determine whether the personnel in the decrypted data have the authority to open the smart lock on the cable duct, thus determining whether to open it. The smart lock opening duration is used to characterize the allowed opening time of the smart lock on the cable duct. In one embodiment, the employee ID in the decrypted data is matched with each employee ID in the employee ID information. If a matching employee ID is found, opening is determined; otherwise, opening is determined not to proceed. An exemplary example could be that the employee ID information includes employee ID 1, employee ID 2, employee ID 3, and employee ID 4, which are 133456, 122345, 123456, and 134245 respectively. The employee ID in the decrypted data is 122345. The employee ID in the decrypted data matches employee ID 2 in the employee ID information, and the smart lock on the cable duct is determined to be opened.
[0051] In one embodiment, upon determining that opening is required, the system queries a preset duration lookup table based on the pre-operation content of the pipeline in the decrypted data to obtain the opening duration to be adjusted, determines the adjustment coefficient corresponding to the permission level in the decrypted data, and adjusts the opening duration to be adjusted based on the adjustment coefficient to obtain the smart lock opening duration. Optionally, a method for determining the smart lock opening duration may involve querying a preset smart lock opening duration determination range mapping table based on the permission level in the decrypted data to obtain the corresponding smart lock opening duration determination range, and then determining the smart lock opening duration based on the pre-operation content of the pipeline in the decrypted data and the smart lock opening duration determination range. By determining the opening duration range through permission levels and then determining the final opening duration within this range based on the pre-operation content of the pipeline, the system can reasonably control the opening duration of the cable pipeline smart lock by combining permission information.
[0052] Step S103: If the opening time reaches the smart lock opening duration, determine the current smart lock location and perform a smart lock closing management operation based on the smart lock location.
[0053] The smart lock location can be the position of the smart lock in the cable duct. This location allows for corresponding closing management operations on the smart lock. In one embodiment, if the opening time reaches the designated opening duration, the smart lock automatically closes when it is in the closed position, and issues a closing warning until it is closed when it is not in the closed position. Optionally, a smart lock closing management method could involve automatically closing the open position when the smart lock is in the closed position, issuing a closing audible warning when it is not in the closed position, and continuously monitoring the open / closed status, performing corresponding management operations based on this status and the current monitoring time. By using the location of the smart lock in the cable duct for corresponding closing management operations, the closing of the smart lock in the cable duct can be effectively controlled.
[0054] As described above, when the smart key is inserted and the power is on, the system receives the access key information sent by the smart key. According to a preset decryption rule, the access key information is decrypted to obtain decrypted data, which includes the worker's ID, access level, and pre-operation content for the pipeline. The stored access ID information is retrieved, and a matching process is performed between the access ID information and the worker's ID. Based on the matching result, it is determined whether to open the lock. If opening is determined, the smart lock opening duration is determined based on the worker's access level and the pre-operation content for the pipeline, and the lock is opened. If the opening time reaches the specified duration, the current location of the smart lock is determined, and a smart lock closing management operation is performed based on the location. This solution solves the problem of relatively crude access control for cable pipeline smart locks in existing cable pipeline smart lock management technologies, which lack a reasonable method for controlling the opening and closing of cable pipeline smart locks. It can ensure the security of access control by combining access information and key information, and reasonably control the opening and closing of cable pipeline smart locks based on the access information.
[0055] Figure 2 The flowchart illustrates another method for opening and closing a smart lock for cable ducts based on access control information, provided in this embodiment of the invention. It also outlines a specific method for decrypting optional access control key information, such as... Figure 2 As shown, it specifically includes:
[0056] Step S201: When the smart key is detected to be inserted and the power is on, the authorization key information sent by the smart key is received, the encoding formats of the three different codes to be decrypted in the authorization key information are identified, and the classification of the codes to be decrypted is determined according to the identification results. The classification includes employee number classification, authorization level classification, and operation content classification.
[0057] The access control key information includes three different codes to be decrypted, which represent codes awaiting decryption. The encoding format can be the content format of the code to be decrypted. This encoding format can be used to determine the classification of the corresponding code to be decrypted. For example, if code to be decrypted 1 is AECDFG, code to be decrypted 2 is afo, and code to be decrypted 3 is operate1, then the encoding format of code to be decrypted 1 is identified as an uppercase letter combination, the encoding format of code to be decrypted 2 is a lowercase letter combination, and the encoding format of code to be decrypted 3 is a combination of lowercase letters and numbers. The uppercase letter combination recorded in the storage module is associated with the employee ID classification, the lowercase letter combination with the permission level classification, and the lowercase letter and number combination with the operation content classification. That is, code to be decrypted 1 is classified as employee ID, code to be decrypted 2 as permission level, and code to be decrypted 3 as operation content.
[0058] Step S202: Based on the classification, determine the decryption content of the corresponding code to be decrypted, and determine the decryption content of the three different codes to be decrypted as the decryption data of the permission key information. The decryption data includes the employee ID, permission level and pipeline pre-operation content.
[0059] The decrypted content represents the plaintext content obtained after decrypting the code to be decrypted. Optionally, one method for determining the decrypted content is to determine the decryptable portion of the code to be decrypted based on the category, obtain a stored pre-defined decryption lookup table associated with that category, query the pre-defined decryption lookup table based on the decryptable portion code to obtain the corresponding partial code decryption content, and combine the partial code decryption contents of each decryptable portion code to obtain the decrypted content of the code to be decrypted. An exemplary example is that the decryptable portion code corresponding to the employee ID category is each character in the code to be decrypted, while the decryptable portion code corresponding to the permission level category and the operation content category is the entire code to be decrypted. If the code to be decrypted is AECDFG and the category is employee ID, then the decryptable portion codes of code to be decrypted are A, E, C, D, F, and G respectively. The pre-defined decryption lookup table corresponding to the employee ID category is shown in the table below:
[0060]
[0061]
[0062] The aforementioned preset decryption lookup table describes the association between the decrypted partial codes and their decrypted contents for each employee number category. Querying the preset decryption lookup table yields partial codes 1, 5, 3, 4, 6, and 7 for each decrypted partial code of the employee number 1, meaning the decrypted content for the employee number 1 is 153467. In another embodiment, the stored preset decryption lookup table associated with each category is retrieved, and the decrypted content is obtained by querying the corresponding preset decryption lookup table based on the employee number to be decrypted.
[0063] Step S203: Obtain the stored permission ID information, perform matching processing based on the permission ID information and the employee ID, determine whether to open the lock based on the matching processing result, and if it is determined to open the lock, determine the smart lock opening duration based on the permission level and the pipeline pre-operation content, and then open the lock.
[0064] Step S204: If the opening time reaches the smart lock opening duration, determine the current smart lock location and perform a smart lock closing management operation based on the smart lock location.
[0065] As described above, the encoding formats of the three different codes to be decrypted in the access control key information are identified. Based on the identification results, the codes to be decrypted are classified, including employee ID, access level, and operation content. The decryption content of the corresponding codes is then determined based on the classification, and the decryption content of the three different codes is used as the decrypted data of the access control key information. This scheme improves the confidentiality of access control information by decrypting each code separately according to its different classifications, thus ensuring the security of opening the smart lock on the cable duct.
[0066] Figure 3 The flowchart illustrates another method for opening and closing a smart lock for cable ducts based on access information, provided in an embodiment of the present invention. It also outlines an optional method for determining the smart lock's opening duration, such as... Figure 3 As shown, it specifically includes:
[0067] Step S301: When the smart key is detected to be inserted and the power is on, the permission key information sent by the smart key is received, and the permission key information is decrypted according to the preset decryption rules to obtain decrypted data. The decrypted data includes the employee's ID number, permission level and pipeline pre-operation content.
[0068] Step S302: Obtain the stored permission employee number information, perform matching processing based on the permission employee number information and the employee number, and determine whether to enable it based on the matching processing result.
[0069] Step S303: If it is determined to open, query the preset smart lock opening duration determination range mapping table according to the permission level to obtain the corresponding smart lock opening duration determination range, determine the smart lock opening duration according to the pipeline pre-operation content and the smart lock opening duration determination range, and then open the lock.
[0070] The preset smart lock opening duration determination range mapping table is used to represent the mapping relationship between the pre-set permission level and the smart lock opening duration determination range. The smart lock opening duration determination range can be a selected range of the smart lock opening time for cable ducts; the smart lock opening duration can be determined within this range. Optionally, one method for determining the smart lock opening duration can be to detect the operational complexity of the pre-operation content of the duct, determine the selected position of the smart lock opening duration determination range based on the operational complexity, and determine the value corresponding to the selected position as the smart lock opening duration. One exemplary example is that the access level in the decrypted data is level two, the pre-operation content of the pipeline is cable laying, and the pre-defined smart lock opening time range in the preset smart lock opening time determination range mapping table corresponds to the smart lock opening time range of level two access level as [60min, 120min]. The operation complexity corresponding to cable laying is 60%. Therefore, the 60% position from the beginning to the end of the smart lock opening time determination range is determined as the selected time position. The value corresponding to the 60% position from the beginning to the end of [60min, 120min] is 96 minutes, meaning the smart lock opening time is 96 minutes. In another embodiment, a preset score corresponding to the pipeline pre-operation content is queried, and the value at the position corresponding to this preset score within the smart lock opening time determination range is determined as the smart lock opening time.
[0071] Step S304: If the opening time reaches the smart lock opening duration, determine the current smart lock location and perform a smart lock closing management operation based on the smart lock location.
[0072] As described above, the corresponding smart lock opening duration range is obtained by querying the preset smart lock opening duration determination range mapping table based on the permission level in the decrypted data. The smart lock opening duration is then determined based on the pipeline pre-operation content in the decrypted data and the smart lock opening duration determination range. This solution determines the opening duration range by using permission levels, and then determines the final opening duration within this range based on the pipeline pre-operation content. This allows for reasonable control of the cable pipeline smart lock opening duration by combining permission information.
[0073] Figure 4 The flowchart illustrates another method for opening and closing a smart lock for cable ducts based on access information, provided in an embodiment of the present invention. It outlines an optional method for performing smart lock closing management operations, such as... Figure 4 As shown, it specifically includes:
[0074] Step S401: When the smart key is detected to be inserted and the power is on, the permission key information sent by the smart key is received, and the permission key information is decrypted according to the preset decryption rules to obtain decrypted data. The decrypted data includes the employee ID, permission level and pipeline pre-operation content.
[0075] Step S402: Obtain the stored permission ID information, perform matching processing based on the permission ID information and the employee ID, determine whether to open the lock based on the matching processing result, and if it is determined to open the lock, determine the smart lock opening duration based on the permission level and the pipeline pre-operation content, and then open the lock.
[0076] Step S403: If the opening time reaches the smart lock opening duration, determine the current smart lock position. If the smart lock position is in the closed position, automatically close the open state. If the smart lock position is in the open position, issue a closing prompt sound warning, and monitor the open / closed state in real time. Perform corresponding management operations based on the open / closed state and the current detection time.
[0077] The closed position can be the groove position corresponding to the lock cylinder. The non-closed position can be a groove position not corresponding to the lock cylinder. The detection time can be the length of time from the start of the open / closed state to the current time. When the smart lock is in the closed position, the open state is automatically closed. When the smart lock is in the non-closed position, a closing prompt sound is emitted, and the open / closed state is detected in real time. Based on the detected open / closed state and the current detection time, corresponding management operations are performed. Optionally, if the detection time is within a preset time and the open / closed state is closed, the closing prompt sound is stopped. If the detection time reaches the preset time and the open / closed state is open, the smart lock opening violation information is uploaded to the management device to prompt the management personnel to perform corresponding management operations. An example could be that the preset time is 3 minutes, the current detection time is 3 minutes, and the open / closed state is open. That is, if the cable duct smart lock is still not closed after the preset time, the cable duct smart lock will identify the stored identity information and the employee's employee number as smart lock opening violation information and upload it to the management device. Upon receiving the smart lock opening violation information, the management device will issue a corresponding alarm. In another embodiment, if the detection time is within a preset time and the open / closed state is open, the difference between the detection time and the preset time is calculated and determined as the countdown time. The countdown time is highlighted in the display area. If the detection time reaches the preset time and the open / closed state is open, the smart lock opening violation information is uploaded to the management device.
[0078] As described above, after the smart lock has been open for the designated time, it automatically closes when the lock is in the closed position and issues a closing warning sound when it is not in the closed position. The system also continuously monitors the opening and closing status and performs corresponding management operations based on this status and the current monitoring time. This solution manages the closing of cable duct smart locks by determining their location, thus enabling reasonable control over their operation.
[0079] Figure 5 This is a block diagram of a module structure for a cable duct smart lock opening and closing system based on access information, provided as an embodiment of the present invention. This system is used to execute the cable duct smart lock opening and closing method based on access information provided in the above embodiment, and possesses the corresponding functional modules and beneficial effects of the method. For example... Figure 5 As shown, the system specifically includes:
[0080] The information receiving module 101 is used to receive the permission key information sent by the smart key when the smart key is detected to be inserted and the power is turned on;
[0081] Decryption module 102 is used to decrypt the permission key information according to preset decryption rules to obtain decrypted data, the decrypted data including staff member ID, permission level and pipeline pre-operation content;
[0082] The activation judgment module 103 is used to obtain the stored permission employee number information, perform matching processing based on the permission employee number information and the employee number of the staff, and determine whether to activate based on the matching processing result;
[0083] The management module 104 is used to determine the smart lock opening duration based on the permission level and the pipeline pre-operation content when it is determined to open the lock, and then open the lock.
[0084] The closing management module 105 is used to determine the current position of the smart lock when the opening time reaches the opening duration of the smart lock, and to perform a smart lock closing management operation based on the smart lock position.
[0085] As described above, when the smart key is inserted and the power is on, the system receives the access key information sent by the smart key. According to a preset decryption rule, the access key information is decrypted to obtain decrypted data, which includes the worker's ID, access level, and pre-operation content for the pipeline. The stored access ID information is retrieved, and a matching process is performed between the access ID information and the worker's ID. Based on the matching result, it is determined whether to open the lock. If opening is determined, the smart lock opening duration is determined based on the worker's access level and the pre-operation content for the pipeline, and the lock is opened. If the opening time reaches the specified duration, the current location of the smart lock is determined, and a smart lock closing management operation is performed based on the location. This solution solves the problem of relatively crude access control for cable pipeline smart locks in existing cable pipeline smart lock management technologies, which lack a reasonable method for controlling the opening and closing of cable pipeline smart locks. It can ensure the security of access control by combining access information and key information, and reasonably control the opening and closing of cable pipeline smart locks based on the access information.
[0086] In one possible embodiment, the decryption module 102 is specifically used for:
[0087] The encoding formats of the three different codes to be decrypted in the permission key information are identified, and the classification of the codes to be decrypted is determined based on the identification results. The classification includes employee number classification, permission level classification, and operation content classification.
[0088] Based on the classification, the decryption content of the corresponding code to be decrypted is determined, and the decryption content of the three different codes to be decrypted is determined as the decryption data of the permission key information.
[0089] In one possible embodiment, the decryption module 102 is further configured to:
[0090] Based on the classification, determine the decryption part of the corresponding code to be decrypted, obtain the stored preset decryption lookup table associated with the classification, and query the preset decryption lookup table according to the code to be decrypted to obtain the corresponding partial code decryption content.
[0091] When there are multiple codes for the part to be decrypted, the decrypted content of each part to be decrypted is combined to obtain the decrypted content of the code to be decrypted.
[0092] In one possible embodiment, the activation management module 104 is specifically used for:
[0093] The corresponding smart lock opening duration determination range is obtained by querying the preset smart lock opening duration determination range mapping table according to the permission level, and the smart lock opening duration is determined according to the pipeline pre-operation content and the smart lock opening duration determination range.
[0094] In one possible embodiment, the activation management module 104 is further configured to:
[0095] The complexity of the pre-operation content of the pipeline is detected, and the selected position of the time range of the smart lock opening time is determined according to the complexity of the operation. The value corresponding to the selected position of the time is determined as the smart lock opening time.
[0096] In one possible embodiment, the shutdown management module 105 is specifically used for:
[0097] When the smart lock is in the closed position, the open state is automatically closed;
[0098] When the smart lock is in a non-closed position, a closing prompt sound is emitted, and the open / closed status is monitored in real time. Based on the open / closed status and the current monitoring time, corresponding management operations are performed.
[0099] In one possible embodiment, the shutdown management module 105 is further configured to:
[0100] If the detection time is within a preset time and the opening / closing state is closed, the closing prompt sound warning will be stopped.
[0101] If the detection time reaches the preset time and the opening / closing state is open, information on the violation of opening the smart lock is uploaded to the management device to prompt the management personnel to perform corresponding management operations.
[0102] Figure 6 A schematic diagram of a smart lock opening and closing device for cable ducts based on access information is provided as 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 6Taking 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 cable duct smart lock opening and closing method based on permission information 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 cable duct smart lock opening and closing method based on permission information. 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 a display screen or other display device.
[0103] This invention also provides a storage medium containing computer-executable instructions, which, when executed by a computer processor, are used to perform a method for opening and closing a smart lock for cable ducts based on access information. The method includes:
[0104] When the smart key is detected to be inserted and the power is on, the system receives the permission key information sent by the smart key, and decrypts the permission key information according to the preset decryption rules to obtain decrypted data. The decrypted data includes the employee's ID number, permission level, and pipeline pre-operation content.
[0105] Obtain the stored permission ID information, perform matching processing based on the permission ID information and the employee ID, determine whether to open the lock based on the matching processing result, and if it is determined to open the lock, determine the smart lock opening duration based on the permission level and the pipeline pre-operation content, and then open the lock.
[0106] If the opening time reaches the smart lock's opening duration, determine the current location of the smart lock and perform a smart lock closing management operation based on the smart lock's location.
[0107] It is worth noting that in the embodiments of the above-mentioned cable duct smart lock opening and closing method system based on permission information, 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.
[0108] 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 method for opening and closing a smart lock for cable ducts based on access control information, applied to smart locks for cable ducts, characterized in that: include: When the insertion of the smart key is detected and the power is on, the system receives the access key information sent by the smart key. The encoding formats of the three different codes to be decrypted included in the permission key information are identified. Based on the identification results, the classification of the codes to be decrypted is determined. The classification includes employee number classification, permission level classification, and operation content classification. Based on the classification of the codes to be decrypted, the corresponding decryption part of the codes to be decrypted is determined. A preset decryption lookup table associated with the classification of the codes to be decrypted is obtained. Based on the decryption part of the codes to be decrypted, the preset decryption lookup table is queried to obtain the corresponding partial code decryption content. When there are multiple codes to be decrypted, the partial decryption contents of each code to be decrypted are combined to obtain the decryption contents of the code to be decrypted; the decryption contents of the three different codes to be decrypted are determined as the decryption data of the permission key information, and the decryption data includes the employee ID, permission level and pipeline pre-operation content. Obtain the stored permission ID information, perform matching processing based on the permission ID information and the employee ID, determine whether to open the lock based on the matching processing result, if it is determined to open the lock, query the preset smart lock opening duration determination range mapping table according to the permission level to obtain the corresponding smart lock opening duration determination range, determine the smart lock opening duration according to the pipeline pre-operation content and the smart lock opening duration determination range, and then open the lock. If the opening time reaches the smart lock's opening duration, determine the current location of the smart lock and perform a smart lock closing management operation based on the smart lock's location.
2. The method for opening and closing a smart lock for cable ducts based on access information according to claim 1, characterized in that, The step of determining the smart lock opening duration based on the pipeline pre-operation content and the smart lock opening duration range includes: The complexity of the pre-operation content of the pipeline is detected, and the selected position of the time range of the smart lock opening time is determined according to the complexity of the operation. The value corresponding to the selected position of the time is determined as the smart lock opening time.
3. The method for opening and closing a smart lock for cable ducts based on access information according to any one of claims 1, characterized in that, The smart lock closing management operation based on the smart lock location includes: When the smart lock is in the closed position, the open state is automatically closed; When the smart lock is in a non-closed position, a closing prompt sound is emitted, and the open / closed status is monitored in real time. Based on the open / closed status and the current monitoring time, corresponding management operations are performed.
4. The method for opening and closing a smart lock for cable ducts based on access information according to claim 3, characterized in that, The management operations based on the open / closed state and the current detection time include: If the detection time is within a preset time and the opening / closing state is closed, the closing prompt sound warning will be stopped. If the detection time reaches the preset time and the opening / closing state is open, information on the violation of opening the smart lock is uploaded to the management device to prompt the management personnel to perform corresponding management operations.
5. A smart lock opening and closing system for cable ducts based on access control information, characterized in that: include: The information receiving module is used to receive the authorization key information sent by the smart key when the smart key is detected to be inserted and the power is turned on; The decryption module is used to identify the encoding formats of the three different codes to be decrypted included in the permission key information, determine the classification of the codes to be decrypted based on the identification results, and the classification includes employee number classification, permission level classification, and operation content classification; determine the corresponding decryption part of the code to be decrypted based on the classification of the code to be decrypted, obtain a preset decryption lookup table associated with the classification of the code to be decrypted, and query the preset decryption lookup table based on the code to be decrypted to obtain the corresponding partial code decryption content; When there are multiple codes to be decrypted, the partial decryption contents of each code to be decrypted are combined to obtain the decryption contents of the code to be decrypted; the decryption contents of the three different codes to be decrypted are determined as the decryption data of the permission key information, and the decryption data includes the employee ID, permission level and pipeline pre-operation content. The activation judgment module is used to obtain the stored permission employee number information, perform matching processing based on the permission employee number information and the employee number, and determine whether to enable it based on the matching processing result. The management module is used to, when it is determined that it is to be opened, query the preset smart lock opening duration determination range mapping table according to the permission level to obtain the corresponding smart lock opening duration determination range, determine the smart lock opening duration according to the pipeline pre-operation content and the smart lock opening duration determination range, and then open the smart lock. The shutdown management module is used to determine the current location of the smart lock when the opening time reaches the smart lock's opening duration, and to perform a smart lock shutdown management operation based on the smart lock location.
6. A smart lock opening and closing device for cable ducts based on access control information, 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 cable duct smart lock opening and closing method based on permission information as described in any one of claims 1-4.
7. A storage medium storing computer-executable instructions, which, when executed by a computer processor, are used to perform the cable duct smart lock opening and closing method based on access information as described in any one of claims 1-4.
Citation Information
Patent Citations
Intelligent lock control system of transformer substation
CN114550353A
Lock task processing method and device, computer equipment and storage medium
CN115497201A